2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.1devel.
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 (c) 1996-2005, 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='8.1devel'
262 PACKAGE_STRING='PostgreSQL 8.1devel'
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 infodir='${prefix}/info'
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 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
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 infodir 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_LDFLAGS_SL_set=${LDFLAGS_SL+set}
761 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
762 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
763 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
764 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
765 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
767 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
770 # Report the --help message.
772 if test "$ac_init_help" = "long"; then
773 # Omit some internal or obsolete options to make the list less imposing.
774 # This message is too long to be a string in the A/UX 3.1 sh.
776 \`configure' configures PostgreSQL 8.1devel to adapt to many kinds of systems.
778 Usage: $0 [OPTION]... [VAR=VALUE]...
780 To assign environment variables (e.g., CC, CFLAGS...), specify them as
781 VAR=VALUE. See below for descriptions of some of the useful variables.
783 Defaults for the options are specified in brackets.
786 -h, --help display this help and exit
787 --help=short display options specific to this package
788 --help=recursive display the short help of all the included packages
789 -V, --version display version information and exit
790 -q, --quiet, --silent do not print \`checking...' messages
791 --cache-file=FILE cache test results in FILE [disabled]
792 -C, --config-cache alias for \`--cache-file=config.cache'
793 -n, --no-create do not create output files
794 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799 Installation directories:
800 --prefix=PREFIX install architecture-independent files in PREFIX
802 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 By default, \`make install' will install all the files in
806 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
807 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
808 for instance \`--prefix=\$HOME'.
810 For better control, use the options below.
812 Fine tuning of the installation directories:
813 --bindir=DIR user executables [EPREFIX/bin]
814 --sbindir=DIR system admin executables [EPREFIX/sbin]
815 --libexecdir=DIR program executables [EPREFIX/libexec]
816 --datadir=DIR read-only architecture-independent data [PREFIX/share]
817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
820 --libdir=DIR object code libraries [EPREFIX/lib]
821 --includedir=DIR C header files [PREFIX/include]
822 --oldincludedir=DIR C header files for non-gcc [/usr/include]
823 --infodir=DIR info documentation [PREFIX/info]
824 --mandir=DIR man documentation [PREFIX/man]
830 --build=BUILD configure for building on BUILD [guessed]
831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of PostgreSQL 8.1devel:";;
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-integer-datetimes enable 64-bit integer date/time support
845 --enable-nls[=LANGUAGES] enable Native Language Support
846 --disable-shared do not build shared libraries
847 --disable-rpath do not embed shared library search path in executables
848 --disable-spinlocks do not use spinlocks
849 --enable-debug build with debugging symbols (-g)
850 --enable-depend turn on automatic dependency tracking
851 --enable-cassert enable assertion checks (for debugging)
852 --enable-thread-safety make client libraries thread-safe
853 --enable-thread-safety-force force thread-safety in spite of thread test failure
854 --disable-largefile omit support for large files
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
861 --without-docdir do not install the documentation
862 --with-includes=DIRS look for additional header files in DIRS
863 --with-libraries=DIRS look for additional libraries in DIRS
864 --with-libs=DIRS alternative spelling of --with-libraries
865 --with-pgport=PORTNUM change default port number 5432
866 --with-tcl build Tcl modules (PL/Tcl)
867 --with-tclconfig=DIR tclConfig.sh is in DIR
868 --with-perl build Perl modules (PL/Perl)
869 --with-python build Python modules (PL/Python)
870 --with-krb4 build with Kerberos 4 support
871 --with-krb5 build with Kerberos 5 support
872 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
873 --with-pam build with PAM support
874 --with-rendezvous build with Rendezvous support
875 --with-openssl build with OpenSSL support
876 --without-readline do not use Readline
877 --without-zlib do not use Zlib
878 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
890 location of DocBook stylesheets
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
895 Report bugs to <pgsql-bugs@postgresql.org>.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
958 PostgreSQL configure 8.1devel
959 generated by GNU Autoconf 2.53
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
966 Copyright (c) 1996-2005, PostgreSQL Global Development Group
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by PostgreSQL $as_me 8.1devel, which was
976 generated by GNU Autoconf 2.53. Invocation command line was
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Also quote any args containing shell meta-characters.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n ) continue ;;
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042 case " $ac_configure_args " in
1043 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1044 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081 if test -s confdefs.h; then
1088 sed "/^$/d" confdefs.h
1091 test "$ac_signal" != 0 &&
1092 echo "$as_me: caught signal $ac_signal"
1093 echo "$as_me: exit $exit_status"
1095 rm -f core core.* *.core &&
1096 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099 for ac_signal in 1 2 13 15; do
1100 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1105 rm -rf conftest* confdefs.h
1106 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109 # Predefined preprocessor variables.
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_NAME "$PACKAGE_NAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_STRING "$PACKAGE_STRING"
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1136 # Let the site file select an alternate cache file if it wants to.
1137 # Prefer explicitly selected file to automatically selected ones.
1138 if test -z "$CONFIG_SITE"; then
1139 if test "x$prefix" != xNONE; then
1140 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1142 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145 for ac_site_file in $CONFIG_SITE; do
1146 if test -r "$ac_site_file"; then
1147 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1148 echo "$as_me: loading site script $ac_site_file" >&6;}
1149 sed 's/^/| /' "$ac_site_file" >&5
1154 if test -r "$cache_file"; then
1155 # Some versions of bash will fail to source /dev/null (special
1156 # files actually), so we avoid doing that.
1157 if test -f "$cache_file"; then
1158 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1159 echo "$as_me: loading cache $cache_file" >&6;}
1161 [\\/]* | ?:[\\/]* ) . $cache_file;;
1162 *) . ./$cache_file;;
1166 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1167 echo "$as_me: creating cache $cache_file" >&6;}
1171 # Check that the precious variables saved in the cache have kept the same
1173 ac_cache_corrupted=false
1174 for ac_var in `(set) 2>&1 |
1175 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1177 eval ac_new_set=\$ac_env_${ac_var}_set
1178 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1179 eval ac_new_val="\$ac_env_${ac_var}_value"
1180 case $ac_old_set,$ac_new_set in
1182 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1184 ac_cache_corrupted=: ;;
1186 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1187 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1188 ac_cache_corrupted=: ;;
1191 if test "x$ac_old_val" != "x$ac_new_val"; then
1192 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1193 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1194 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1195 echo "$as_me: former value: $ac_old_val" >&2;}
1196 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1197 echo "$as_me: current value: $ac_new_val" >&2;}
1198 ac_cache_corrupted=:
1201 # Pass precious variables to config.status.
1202 if test "$ac_new_set" = set; then
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 *) ac_arg=$ac_var=$ac_new_val ;;
1208 case " $ac_configure_args " in
1209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1210 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1214 if $ac_cache_corrupted; then
1215 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1216 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1217 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1218 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1219 { (exit 1); exit 1; }; }
1223 ac_cpp='$CPP $CPPFLAGS'
1224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258 for ac_dir in config $srcdir/config; do
1259 if test -f $ac_dir/install-sh; then
1261 ac_install_sh="$ac_aux_dir/install-sh -c"
1263 elif test -f $ac_dir/install.sh; then
1265 ac_install_sh="$ac_aux_dir/install.sh -c"
1267 elif test -f $ac_dir/shtool; then
1269 ac_install_sh="$ac_aux_dir/shtool install -c"
1273 if test -z "$ac_aux_dir"; then
1274 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1275 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1276 { (exit 1); exit 1; }; }
1278 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1279 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1280 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1283 configure_args=$ac_configure_args
1287 cat >>confdefs.h <<_ACEOF
1288 #define PG_VERSION "$PACKAGE_VERSION"
1292 # Make sure we can run config.sub.
1293 $ac_config_sub sun4 >/dev/null 2>&1 ||
1294 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1296 { (exit 1); exit 1; }; }
1298 echo "$as_me:$LINENO: checking build system type" >&5
1299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1300 if test "${ac_cv_build+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_build_alias=$build_alias
1304 test -z "$ac_cv_build_alias" &&
1305 ac_cv_build_alias=`$ac_config_guess`
1306 test -z "$ac_cv_build_alias" &&
1307 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1309 { (exit 1); exit 1; }; }
1310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1311 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1313 { (exit 1); exit 1; }; }
1316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1317 echo "${ECHO_T}$ac_cv_build" >&6
1319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1324 echo "$as_me:$LINENO: checking host system type" >&5
1325 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1326 if test "${ac_cv_host+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 ac_cv_host_alias=$host_alias
1330 test -z "$ac_cv_host_alias" &&
1331 ac_cv_host_alias=$ac_cv_build_alias
1332 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1333 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1334 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1335 { (exit 1); exit 1; }; }
1338 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1339 echo "${ECHO_T}$ac_cv_host" >&6
1341 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$as_me:$LINENO: checking which template to use" >&5
1349 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1354 # Check whether --with-template or --without-template was given.
1355 if test "${with_template+set}" = set; then
1356 withval="$with_template"
1360 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1361 echo "$as_me: error: argument required for --with-template option" >&2;}
1362 { (exit 1); exit 1; }; }
1365 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1366 echo "$as_me: error: argument required for --with-template option" >&2;}
1367 { (exit 1); exit 1; }; }
1372 list) echo; ls "$srcdir/src/template"; exit;;
1373 *) if test -f "$srcdir/src/template/$with_template" ; then
1376 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1377 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1378 { (exit 1); exit 1; }; }
1387 # --with-template not given
1390 aix*) template=aix ;;
1391 beos*) template=beos ;;
1392 bsdi*) template=bsdi ;;
1393 cygwin*) template=cygwin ;;
1394 darwin*) template=darwin ;;
1395 dgux*) template=dgux ;;
1396 freebsd*) template=freebsd ;;
1397 hpux*) template=hpux ;;
1398 irix*) template=irix ;;
1399 linux*|gnu*|k*bsd*-gnu)
1401 mingw*) template=win32 ;;
1402 netbsd*) template=netbsd ;;
1403 nextstep*) template=nextstep ;;
1404 openbsd*) template=openbsd ;;
1405 osf*) template=osf ;;
1406 qnx*) template=qnx4 ;;
1407 sco*) template=sco ;;
1408 solaris*) template=solaris ;;
1409 sunos*) template=sunos4 ;;
1411 case $host_vendor in
1412 univel) template=univel ;;
1414 sysv4*) template=svr4 ;;
1415 sysv5*) template=unixware ;;
1416 ultrix*) template=ultrix4 ;;
1419 if test x"$template" = x"" ; then
1420 { { echo "$as_me:$LINENO: error:
1421 *******************************************************************
1422 PostgreSQL has apparently not been ported to your platform yet.
1423 To try a manual configuration, look into the src/template directory
1424 for a similar platform and use the '--with-template=' option.
1426 Please also contact <pgsql-ports@postgresql.org> to see about
1427 rectifying this. Include the above 'checking host system type...'
1429 *******************************************************************
1431 echo "$as_me: error:
1432 *******************************************************************
1433 PostgreSQL has apparently not been ported to your platform yet.
1434 To try a manual configuration, look into the src/template directory
1435 for a similar platform and use the '--with-template=' option.
1437 Please also contact <pgsql-ports@postgresql.org> to see about
1438 rectifying this. Include the above 'checking host system type...'
1440 *******************************************************************
1442 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $template" >&5
1450 echo "${ECHO_T}$template" >&6
1455 # Initialize default assumption that we do not need separate assembly code
1456 # for TAS (test-and-set). This can be overridden by the template file
1457 # when it's executed.
1464 ## Command line options
1468 # Installation directory for documentation
1473 # Check whether --with-docdir or --without-docdir was given.
1474 if test "${with_docdir+set}" = set; then
1475 withval="$with_docdir"
1479 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1480 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1481 { (exit 1); exit 1; }; }
1492 docdir='${prefix}/doc'
1499 # Add non-standard directories to the include path
1504 # Check whether --with-includes or --without-includes was given.
1505 if test "${with_includes+set}" = set; then
1506 withval="$with_includes"
1510 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512 { (exit 1); exit 1; }; }
1515 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1516 echo "$as_me: error: argument required for --with-includes option" >&2;}
1517 { (exit 1); exit 1; }; }
1529 # Add non-standard directories to the library search path
1534 # Check whether --with-libraries or --without-libraries was given.
1535 if test "${with_libraries+set}" = set; then
1536 withval="$with_libraries"
1540 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542 { (exit 1); exit 1; }; }
1545 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1546 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1547 { (exit 1); exit 1; }; }
1550 LIBRARY_DIRS=$withval
1560 # Check whether --with-libs or --without-libs was given.
1561 if test "${with_libs+set}" = set; then
1562 withval="$with_libs"
1566 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568 { (exit 1); exit 1; }; }
1571 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1572 echo "$as_me: error: argument required for --with-libs option" >&2;}
1573 { (exit 1); exit 1; }; }
1576 LIBRARY_DIRS=$withval
1585 # 64-bit integer date/time storage (--enable-integer-datetimes)
1587 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1588 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1591 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1592 if test "${enable_integer_datetimes+set}" = set; then
1593 enableval="$enable_integer_datetimes"
1598 cat >>confdefs.h <<\_ACEOF
1599 #define USE_INTEGER_DATETIMES 1
1607 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1608 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1609 { (exit 1); exit 1; }; }
1614 enable_integer_datetimes=no
1618 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1619 echo "${ECHO_T}$enable_integer_datetimes" >&6
1625 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1626 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1629 # Check whether --enable-nls or --disable-nls was given.
1630 if test "${enable_nls+set}" = set; then
1631 enableval="$enable_nls"
1642 WANTED_LANGUAGES=$enableval
1651 if test "$enable_nls" = yes; then
1653 cat >>confdefs.h <<\_ACEOF
1654 #define ENABLE_NLS 1
1659 echo "$as_me:$LINENO: result: $enable_nls" >&5
1660 echo "${ECHO_T}$enable_nls" >&6
1665 # Default port number (--with-pgport), default 5432
1667 echo "$as_me:$LINENO: checking for default port number" >&5
1668 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1672 # Check whether --with-pgport or --without-pgport was given.
1673 if test "${with_pgport+set}" = set; then
1674 withval="$with_pgport"
1678 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1679 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1680 { (exit 1); exit 1; }; }
1683 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1684 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1685 { (exit 1); exit 1; }; }
1688 default_port=$withval
1696 echo "$as_me:$LINENO: result: $default_port" >&5
1697 echo "${ECHO_T}$default_port" >&6
1698 # Need both of these because some places want an integer and some a string
1700 cat >>confdefs.h <<_ACEOF
1701 #define DEF_PGPORT ${default_port}
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEF_PGPORT_STR "${default_port}"
1712 # Option to disable shared libraries
1716 # Check whether --enable-shared or --disable-shared was given.
1717 if test "${enable_shared+set}" = set; then
1718 enableval="$enable_shared"
1728 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1729 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1730 { (exit 1); exit 1; }; }
1742 # '-rpath'-like feature can be disabled
1746 # Check whether --enable-rpath or --disable-rpath was given.
1747 if test "${enable_rpath+set}" = set; then
1748 enableval="$enable_rpath"
1758 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1759 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1760 { (exit 1); exit 1; }; }
1776 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1777 if test "${enable_spinlocks+set}" = set; then
1778 enableval="$enable_spinlocks"
1788 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1789 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1790 { (exit 1); exit 1; }; }
1795 enable_spinlocks=yes
1801 # --enable-debug adds -g to compiler flags
1805 # Check whether --enable-debug or --disable-debug was given.
1806 if test "${enable_debug+set}" = set; then
1807 enableval="$enable_debug"
1817 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1818 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1819 { (exit 1); exit 1; }; }
1834 # For historical reasons you can also use --with-CC to specify the C compiler
1835 # to use, although the standard way to do this is to set the CC environment
1840 # Check whether --with-CC or --without-CC was given.
1841 if test "${with_CC+set}" = set; then
1846 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1847 echo "$as_me: error: argument required for --with-CC option" >&2;}
1848 { (exit 1); exit 1; }; }
1851 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1852 echo "$as_me: error: argument required for --with-CC option" >&2;}
1853 { (exit 1); exit 1; }; }
1864 aix) pgac_cc_list="gcc xlc";;
1865 irix) pgac_cc_list="cc";; # no gcc
1866 *) pgac_cc_list="gcc cc";;
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 if test -n "$ac_tool_prefix"; then
1875 for ac_prog in $pgac_cc_list
1877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$CC" && break
1915 if test -z "$CC"; then
1917 for ac_prog in $pgac_cc_list
1919 # Extract the first word of "$ac_prog", so it can be a program name with args.
1920 set dummy $ac_prog; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="$ac_prog"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1954 test -n "$ac_ct_CC" && break
1961 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1962 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1963 { (exit 1); exit 1; }; }
1965 # Provide some information about the compiler.
1966 echo "$as_me:$LINENO:" \
1967 "checking for C compiler version" >&5
1968 ac_compiler=`set X $ac_compile; echo $2`
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1970 (eval $ac_compiler --version </dev/null >&5) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1975 (eval $ac_compiler -v </dev/null >&5) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1980 (eval $ac_compiler -V </dev/null >&5) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1985 cat >conftest.$ac_ext <<_ACEOF
1986 #line $LINENO "configure"
1987 #include "confdefs.h"
1989 #ifdef F77_DUMMY_MAIN
1993 int F77_DUMMY_MAIN() { return 1; }
2003 ac_clean_files_save=$ac_clean_files
2004 ac_clean_files="$ac_clean_files a.out a.exe"
2005 # Try to create an executable without -o first, disregard a.out.
2006 # It will help us diagnose broken compilers, and finding out an intuition
2008 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2009 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2010 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2011 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2012 (eval $ac_link_default) 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; then
2016 # Find the output, starting from the most likely. This scheme is
2017 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2020 # Be careful to initialize this variable, since it used to be cached.
2021 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2024 ls a.out conftest 2>/dev/null;
2025 ls a.* conftest.* 2>/dev/null`; do
2027 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2028 a.out ) # We found the default executable, but exeext='' is most
2031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2032 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2039 echo "$as_me: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2042 echo "$as_me: error: C compiler cannot create executables" >&2;}
2043 { (exit 77); exit 77; }; }
2046 ac_exeext=$ac_cv_exeext
2047 echo "$as_me:$LINENO: result: $ac_file" >&5
2048 echo "${ECHO_T}$ac_file" >&6
2050 # Check the compiler produces executables we can run. If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055 # If not cross compiling, check that we can run a simple program.
2056 if test "$cross_compiling" != yes; then
2057 if { ac_try='./$ac_file'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 if test "$cross_compiling" = maybe; then
2068 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'." >&5
2070 echo "$as_me: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'." >&2;}
2072 { (exit 1); exit 1; }; }
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2079 rm -f a.out a.exe conftest$ac_cv_exeext
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run. If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2099 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest$ac_cv_exeext
2115 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2116 echo "${ECHO_T}$ac_cv_exeext" >&6
2118 rm -f conftest.$ac_ext
2119 EXEEXT=$ac_cv_exeext
2121 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2122 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2123 if test "${ac_cv_objext+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 #include "confdefs.h"
2130 #ifdef F77_DUMMY_MAIN
2134 int F77_DUMMY_MAIN() { return 1; }
2144 rm -f conftest.o conftest.obj
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2153 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2161 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2162 { (exit 1); exit 1; }; }
2165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2167 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2168 echo "${ECHO_T}$ac_cv_objext" >&6
2169 OBJEXT=$ac_cv_objext
2171 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2172 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2173 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2178 #include "confdefs.h"
2180 #ifdef F77_DUMMY_MAIN
2184 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
2216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2219 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2220 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2221 GCC=`test $ac_compiler_gnu = yes && echo yes`
2222 ac_test_CFLAGS=${CFLAGS+set}
2223 ac_save_CFLAGS=$CFLAGS
2225 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2226 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2227 if test "${ac_cv_prog_cc_g+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line $LINENO "configure"
2232 #include "confdefs.h"
2234 #ifdef F77_DUMMY_MAIN
2238 int F77_DUMMY_MAIN() { return 1; }
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 echo "$as_me: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2266 rm -f conftest.$ac_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2279 if test "$GCC" = yes; then
2285 # Some people use a C++ compiler to compile C. Since we use `exit',
2286 # in C++ we need to declare it. In case someone uses the same compiler
2287 # for both compiling C and C++ we need to have the C++ compiler decide
2288 # the declaration of exit, since it's the most demanding environment.
2289 cat >conftest.$ac_ext <<_ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 for ac_declaration in \
2308 '#include <stdlib.h>' \
2309 'extern "C" void std::exit (int) throw (); using std::exit;' \
2310 'extern "C" void std::exit (int); using std::exit;' \
2311 'extern "C" void exit (int) throw ();' \
2312 'extern "C" void exit (int);' \
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2317 #include "confdefs.h"
2320 #ifdef F77_DUMMY_MAIN
2324 int F77_DUMMY_MAIN() { return 1; }
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line $LINENO "configure"
2355 #include "confdefs.h"
2357 #ifdef F77_DUMMY_MAIN
2361 int F77_DUMMY_MAIN() { return 1; }
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2391 if test -n "$ac_declaration"; then
2392 echo '#ifdef __cplusplus' >>confdefs.h
2393 echo $ac_declaration >>confdefs.h
2394 echo '#endif' >>confdefs.h
2398 echo "$as_me: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2401 rm -f conftest.$ac_objext conftest.$ac_ext
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 . "$srcdir/src/template/$template" || exit
2416 # CFLAGS are selected so:
2417 # If the user specifies something in the environment, that is used.
2418 # else: If the template file set something, that is used.
2419 # else: If the compiler is GCC, then we use -O2.
2420 # else: If the compiler is something else, then we use -0.
2422 if test "$ac_env_CFLAGS_set" = set; then
2423 CFLAGS=$ac_env_CFLAGS_value
2424 elif test "${CFLAGS+set}" = set; then
2425 : # (keep what template set)
2426 elif test "$GCC" = yes; then
2429 # if the user selected debug mode, don't use -O
2430 if test "$enable_debug" != yes; then
2435 if test "$GCC" = yes; then
2436 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
2438 # Some versions of GCC support some additional useful warning flags.
2439 # Check whether they are supported, and add them to CFLAGS if so.
2440 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2441 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2442 pgac_save_CFLAGS=$CFLAGS
2443 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2448 #ifdef F77_DUMMY_MAIN
2452 int F77_DUMMY_MAIN() { return 1; }
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 CFLAGS="$pgac_save_CFLAGS"
2480 echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2485 echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
2486 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6
2487 pgac_save_CFLAGS=$CFLAGS
2488 CFLAGS="$pgac_save_CFLAGS -Wold-style-definition"
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 #include "confdefs.h"
2493 #ifdef F77_DUMMY_MAIN
2497 int F77_DUMMY_MAIN() { return 1; }
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6
2522 echo "$as_me: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 CFLAGS="$pgac_save_CFLAGS"
2525 echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2528 rm -f conftest.$ac_objext conftest.$ac_ext
2530 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2531 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2532 pgac_save_CFLAGS=$CFLAGS
2533 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 #include "confdefs.h"
2538 #ifdef F77_DUMMY_MAIN
2542 int F77_DUMMY_MAIN() { return 1; }
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6
2567 echo "$as_me: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 CFLAGS="$pgac_save_CFLAGS"
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2573 rm -f conftest.$ac_objext conftest.$ac_ext
2576 # Disable strict-aliasing rules; needed for gcc 3.3+
2577 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2578 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2579 pgac_save_CFLAGS=$CFLAGS
2580 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2585 #ifdef F77_DUMMY_MAIN
2589 int F77_DUMMY_MAIN() { return 1; }
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2614 echo "$as_me: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2616 CFLAGS="$pgac_save_CFLAGS"
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2624 # supply -g if --enable-debug
2625 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2629 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2630 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2632 # We already have this in Makefile.win32, but configure needs it too
2633 if test "$PORTNAME" = "win32"; then
2634 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2637 # Check if the compiler still works with the template settings
2638 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2639 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2645 #ifdef F77_DUMMY_MAIN
2649 int F77_DUMMY_MAIN() { return 1; }
2659 rm -f conftest.$ac_objext conftest$ac_exeext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661 (eval $ac_link) 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -s conftest$ac_exeext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 echo "$as_me:$LINENO: result: yes" >&5
2672 echo "${ECHO_T}yes" >&6
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2678 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2679 echo "$as_me: error: cannot proceed" >&2;}
2680 { (exit 1); exit 1; }; }
2682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2684 # Defend against gcc -ffast-math
2685 if test "$GCC" = yes; then
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 #include "confdefs.h"
2690 #ifdef F77_DUMMY_MAIN
2694 int F77_DUMMY_MAIN() { return 1; }
2699 #ifdef __FAST_MATH__
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2723 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2724 { (exit 1); exit 1; }; }
2726 rm -f conftest.$ac_objext conftest.$ac_ext
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2735 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2736 # On Suns, sometimes $CPP names a directory.
2737 if test -n "$CPP" && test -d "$CPP"; then
2740 if test -z "$CPP"; then
2741 if test "${ac_cv_prog_CPP+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 # Double quotes because CPP needs to be expanded
2745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2748 for ac_c_preproc_warn_flag in '' yes
2750 # Use a header file that comes with gcc, so configuring glibc
2751 # with a fresh cross-compiler works.
2752 # On the NeXT, cc -E runs the code through the compiler's parser,
2753 # not just through cpp. "Syntax error" is here to catch this case.
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2763 egrep -v '^ *\+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } >/dev/null; then
2768 if test -s conftest.err; then
2769 ac_cpp_err=$ac_c_preproc_warn_flag
2776 if test -z "$ac_cpp_err"; then
2779 echo "$as_me: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2781 # Broken: fails on valid input.
2784 rm -f conftest.err conftest.$ac_ext
2786 # OK, works on sane cases. Now check whether non-existent headers
2787 # can be detected and how.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 #include "confdefs.h"
2791 #include <ac_nonexistent.h>
2793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2796 egrep -v '^ *\+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2809 if test -z "$ac_cpp_err"; then
2810 # Broken: success on invalid input.
2813 echo "$as_me: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 # Passes both tests.
2819 rm -f conftest.err conftest.$ac_ext
2822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2823 rm -f conftest.err conftest.$ac_ext
2824 if $ac_preproc_ok; then
2836 echo "$as_me:$LINENO: result: $CPP" >&5
2837 echo "${ECHO_T}$CPP" >&6
2839 for ac_c_preproc_warn_flag in '' yes
2841 # Use a header file that comes with gcc, so configuring glibc
2842 # with a fresh cross-compiler works.
2843 # On the NeXT, cc -E runs the code through the compiler's parser,
2844 # not just through cpp. "Syntax error" is here to catch this case.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2847 #include "confdefs.h"
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2854 egrep -v '^ *\+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_c_preproc_warn_flag
2867 if test -z "$ac_cpp_err"; then
2870 echo "$as_me: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 # Broken: fails on valid input.
2875 rm -f conftest.err conftest.$ac_ext
2877 # OK, works on sane cases. Now check whether non-existent headers
2878 # can be detected and how.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #line $LINENO "configure"
2881 #include "confdefs.h"
2882 #include <ac_nonexistent.h>
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 egrep -v '^ *\+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
2900 if test -z "$ac_cpp_err"; then
2901 # Broken: success on invalid input.
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 # Passes both tests.
2910 rm -f conftest.err conftest.$ac_ext
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2918 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2920 { (exit 1); exit 1; }; }
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 # Create compiler version string
2932 if test x"$GCC" = x"yes" ; then
2933 cc_string="GCC `${CC} --version | sed q`"
2938 cat >>confdefs.h <<_ACEOF
2939 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2945 # Set up TAS assembly code if needed; the template file has now had its
2946 # chance to request this.
2948 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2951 if test "$need_tas" = yes ; then
2960 # Automatic dependency tracking
2964 # Check whether --enable-depend or --disable-depend was given.
2965 if test "${enable_depend+set}" = set; then
2966 enableval="$enable_depend"
2976 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2977 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2978 { (exit 1); exit 1; }; }
2991 # Enable assert checks
2995 # Check whether --enable-cassert or --disable-cassert was given.
2996 if test "${enable_cassert+set}" = set; then
2997 enableval="$enable_cassert"
3002 cat >>confdefs.h <<\_ACEOF
3003 #define USE_ASSERT_CHECKING 1
3011 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3012 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3013 { (exit 1); exit 1; }; }
3025 # Include directories
3028 IFS="${IFS}${PATH_SEPARATOR}"
3029 # SRCH_INC comes from the template file
3030 for dir in $with_includes $SRCH_INC; do
3031 if test -d "$dir"; then
3032 INCLUDES="$INCLUDES -I$dir"
3034 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3035 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3043 # Library directories
3046 IFS="${IFS}${PATH_SEPARATOR}"
3047 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3048 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3049 if test -d "$dir"; then
3050 LIBDIRS="$LIBDIRS -L$dir"
3052 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3053 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3059 # Enable thread-safe client libraries
3061 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3062 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3065 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3066 if test "${enable_thread_safety+set}" = set; then
3067 enableval="$enable_thread_safety"
3077 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3078 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3079 { (exit 1); exit 1; }; }
3084 enable_thread_safety=no
3090 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3091 if test "${enable_thread_safety_force+set}" = set; then
3092 enableval="$enable_thread_safety_force"
3102 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3103 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3104 { (exit 1); exit 1; }; }
3109 enable_thread_safety_force=no
3113 if test "$enable_thread_safety" = yes -o \
3114 "$enable_thread_safety_force" = yes; then
3115 enable_thread_safety="yes" # for 'force'
3117 cat >>confdefs.h <<\_ACEOF
3118 #define ENABLE_THREAD_SAFETY 1
3122 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3123 echo "${ECHO_T}$enable_thread_safety" >&6
3127 # Optionally build Tcl modules (PL/Tcl)
3129 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3130 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3134 # Check whether --with-tcl or --without-tcl was given.
3135 if test "${with_tcl+set}" = set; then
3146 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3147 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3148 { (exit 1); exit 1; }; }
3157 echo "$as_me:$LINENO: result: $with_tcl" >&5
3158 echo "${ECHO_T}$with_tcl" >&6
3161 # We see if the path to the Tcl/Tk configuration scripts is specified.
3162 # This will override the use of tclsh to find the paths to search.
3167 # Check whether --with-tclconfig or --without-tclconfig was given.
3168 if test "${with_tclconfig+set}" = set; then
3169 withval="$with_tclconfig"
3173 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3174 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3175 { (exit 1); exit 1; }; }
3178 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3179 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3180 { (exit 1); exit 1; }; }
3191 # Optionally build Perl modules (PL/Perl)
3193 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3194 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3198 # Check whether --with-perl or --without-perl was given.
3199 if test "${with_perl+set}" = set; then
3200 withval="$with_perl"
3210 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3211 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3212 { (exit 1); exit 1; }; }
3221 echo "$as_me:$LINENO: result: $with_perl" >&5
3222 echo "${ECHO_T}$with_perl" >&6
3226 # Optionally build Python modules (PL/Python)
3228 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3229 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3233 # Check whether --with-python or --without-python was given.
3234 if test "${with_python+set}" = set; then
3235 withval="$with_python"
3245 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3246 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3247 { (exit 1); exit 1; }; }
3256 echo "$as_me:$LINENO: result: $with_python" >&5
3257 echo "${ECHO_T}$with_python" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3268 # Check whether --with-krb4 or --without-krb4 was given.
3269 if test "${with_krb4+set}" = set; then
3270 withval="$with_krb4"
3276 cat >>confdefs.h <<\_ACEOF
3280 krb_srvtab="/etc/srvtab"
3287 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3288 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3289 { (exit 1); exit 1; }; }
3298 echo "$as_me:$LINENO: result: $with_krb4" >&5
3299 echo "${ECHO_T}$with_krb4" >&6
3306 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3307 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3311 # Check whether --with-krb5 or --without-krb5 was given.
3312 if test "${with_krb5+set}" = set; then
3313 withval="$with_krb5"
3319 cat >>confdefs.h <<\_ACEOF
3323 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3330 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3331 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3332 { (exit 1); exit 1; }; }
3341 echo "$as_me:$LINENO: result: $with_krb5" >&5
3342 echo "${ECHO_T}$with_krb5" >&6
3346 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3347 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3348 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3349 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3350 { (exit 1); exit 1; }; }
3357 # Kerberos configuration parameters
3362 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3363 if test "${with_krb_srvnam+set}" = set; then
3364 withval="$with_krb_srvnam"
3368 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3369 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3370 { (exit 1); exit 1; }; }
3373 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3374 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3375 { (exit 1); exit 1; }; }
3383 with_krb_srvnam="postgres"
3387 cat >>confdefs.h <<_ACEOF
3388 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3396 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3397 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3401 # Check whether --with-pam or --without-pam was given.
3402 if test "${with_pam+set}" = set; then
3408 cat >>confdefs.h <<\_ACEOF
3417 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3418 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3419 { (exit 1); exit 1; }; }
3428 echo "$as_me:$LINENO: result: $with_pam" >&5
3429 echo "${ECHO_T}$with_pam" >&6
3436 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3437 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3441 # Check whether --with-rendezvous or --without-rendezvous was given.
3442 if test "${with_rendezvous+set}" = set; then
3443 withval="$with_rendezvous"
3448 cat >>confdefs.h <<\_ACEOF
3449 #define USE_RENDEZVOUS 1
3457 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3458 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3459 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3469 echo "${ECHO_T}$with_rendezvous" >&6
3476 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3477 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3481 # Check whether --with-openssl or --without-openssl was given.
3482 if test "${with_openssl+set}" = set; then
3483 withval="$with_openssl"
3488 cat >>confdefs.h <<\_ACEOF
3497 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3498 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3499 { (exit 1); exit 1; }; }
3508 echo "$as_me:$LINENO: result: $with_openssl" >&5
3509 echo "${ECHO_T}$with_openssl" >&6
3519 # Check whether --with-readline or --without-readline was given.
3520 if test "${with_readline+set}" = set; then
3521 withval="$with_readline"
3531 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3532 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3533 { (exit 1); exit 1; }; }
3542 # readline on MinGW has problems with backslashes in psql and other bugs.
3543 # This is particularly a problem with non-US code pages.
3544 # Therefore disable its use until we understand the cause. 2004-07-20
3545 if test "$PORTNAME" = "win32"; then
3546 if test "$with_readline" = yes; then
3547 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3548 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3560 # Check whether --with-zlib or --without-zlib was given.
3561 if test "${with_zlib+set}" = set; then
3562 withval="$with_zlib"
3572 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3573 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3574 { (exit 1); exit 1; }; }
3588 # Assume system is ELF if it predefines __ELF__ as 1,
3589 # otherwise believe host_os based default.
3591 freebsd1*|freebsd2*) elf=no;;
3592 freebsd3*|freebsd4*) elf=yes;;
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 #include "confdefs.h"
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 egrep "yes" >/dev/null 2>&1; then
3608 if test "X$elf" = "Xyes" ; then
3622 CPPFLAGS="$CPPFLAGS $INCLUDES"
3623 LDFLAGS="$LDFLAGS $LIBDIRS"
3627 for ac_prog in gawk mawk nawk awk
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630 set dummy $ac_prog; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_prog_AWK+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 if test -n "$AWK"; then
3637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_AWK="$ac_prog"
3647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 if test -n "$AWK"; then
3657 echo "$as_me:$LINENO: result: $AWK" >&5
3658 echo "${ECHO_T}$AWK" >&6
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3664 test -n "$AWK" && break
3667 echo "$as_me:$LINENO: checking for flex" >&5
3668 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3669 if test "${pgac_cv_path_flex+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 # Let the user override the test
3673 if test -n "$FLEX"; then
3674 pgac_cv_path_flex=$FLEX
3678 for pgac_dir in $PATH; do
3680 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3683 for pgac_prog in flex lex; do
3684 pgac_candidate="$pgac_dir/$pgac_prog"
3685 if test -f "$pgac_candidate" \
3686 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3688 echo '%%' > conftest.l
3689 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3690 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3691 pgac_broken_flex=$pgac_candidate
3695 pgac_cv_path_flex=$pgac_candidate
3701 rm -f conftest.l lex.yy.c
3702 : ${pgac_cv_path_flex=no}
3706 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3707 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3708 if test x"$pgac_cv_path_flex" = x"no"; then
3709 if test -n "$pgac_broken_flex"; then
3710 { echo "$as_me:$LINENO: WARNING:
3711 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3712 *** should get version 2.5.4 or later." >&5
3713 echo "$as_me: WARNING:
3714 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3715 *** should get version 2.5.4 or later." >&2;}
3718 { echo "$as_me:$LINENO: WARNING:
3719 *** Without Flex you will not be able to build PostgreSQL from CVS or
3720 *** change any of the scanner definition files. You can obtain Flex from
3721 *** a GNU mirror site. (If you are using the official distribution of
3722 *** PostgreSQL then you do not need to worry about this because the Flex
3723 *** output is pre-generated.)" >&5
3724 echo "$as_me: WARNING:
3725 *** Without Flex you will not be able to build PostgreSQL from CVS or
3726 *** change any of the scanner definition files. You can obtain Flex from
3727 *** a GNU mirror site. (If you are using the official distribution of
3728 *** PostgreSQL then you do not need to worry about this because the Flex
3729 *** output is pre-generated.)" >&2;}
3732 if test x"$pgac_cv_path_flex" = x"no"; then
3735 FLEX=$pgac_cv_path_flex
3741 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3744 if test "$LN_S" = "ln -s"; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6
3748 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3749 echo "${ECHO_T}no, using $LN_S" >&6
3753 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3754 if test "${with_gnu_ld+set}" = set; then
3755 withval="$with_gnu_ld"
3756 test "$withval" = no || with_gnu_ld=yes
3761 if test "$GCC" = yes; then
3762 # Check if gcc -print-prog-name=ld gives a path.
3763 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3764 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3767 # gcc leaves a trailing carriage return which upsets mingw
3768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3773 # Accept absolute paths.
3774 [\\/]* | [A-Za-z]:[\\/]*)
3775 re_direlt='/[^/][^/]*/\.\./'
3776 # Canonicalize the path of ld
3777 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3778 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3779 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3781 test -z "$LD" && LD="$ac_prog"
3784 # If it fails, then pretend we aren't using GCC.
3788 # If it is relative, then search for the first ld in PATH.
3792 elif test "$with_gnu_ld" = yes; then
3793 echo "$as_me:$LINENO: checking for GNU ld" >&5
3794 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3796 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3797 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3799 if test "${ac_cv_path_LD+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 if test -z "$LD"; then
3803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3804 for ac_dir in $PATH; do
3805 test -z "$ac_dir" && ac_dir=.
3806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3807 ac_cv_path_LD="$ac_dir/$ac_prog"
3808 # Check to see if the program is GNU ld. I'd rather use --version,
3809 # but apparently some GNU ld's only accept -v.
3810 # Break only if it was the GNU/non-GNU ld that we prefer.
3811 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3812 test "$with_gnu_ld" != no && break
3814 test "$with_gnu_ld" != yes && break
3820 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3825 if test -n "$LD"; then
3826 echo "$as_me:$LINENO: result: $LD" >&5
3827 echo "${ECHO_T}$LD" >&6
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3832 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3833 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3834 { (exit 1); exit 1; }; }
3835 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3836 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3837 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3841 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3842 ac_cv_prog_gnu_ld=yes
3844 ac_cv_prog_gnu_ld=no
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3848 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3849 with_gnu_ld=$ac_cv_prog_gnu_ld
3855 case $host_os in sysv5*)
3856 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3857 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3858 if test "${pgac_cv_prog_ld_R+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3863 cat >conftest.$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3865 #include "confdefs.h"
3867 #ifdef F77_DUMMY_MAIN
3871 int F77_DUMMY_MAIN() { return 1; }
3881 rm -f conftest.$ac_objext conftest$ac_exeext
3882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883 (eval $ac_link) 2>&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -s conftest$ac_exeext'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 pgac_cv_prog_ld_R=yes
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3897 pgac_cv_prog_ld_R=no
3899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3900 LDFLAGS=$pgac_save_LDFLAGS
3903 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3904 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3905 ld_R_works=$pgac_cv_prog_ld_R
3909 # To simplify the build system, we specify the maximal set of
3910 # libraries to link against when building any executable. The linker
3911 # on some platforms optionally allows unused link arguments to be
3912 # elided from the resulting executable, so enable that capability if
3914 # XXX: currently we only support GNU ld; do any other linkers support
3915 # an equivalent feature?
3916 if test "$with_gnu_ld"; then
3917 echo "$as_me:$LINENO: checking whether ld --as-needed works" >&5
3918 echo $ECHO_N "checking whether ld --as-needed works... $ECHO_C" >&6
3919 if test "${pgac_cv_prog_ld_as_needed+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,--as-needed"
3924 cat >conftest.$ac_ext <<_ACEOF
3925 #line $LINENO "configure"
3926 #include "confdefs.h"
3928 #ifdef F77_DUMMY_MAIN
3932 int F77_DUMMY_MAIN() { return 1; }
3942 rm -f conftest.$ac_objext conftest$ac_exeext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3944 (eval $ac_link) 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } &&
3948 { ac_try='test -s conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 pgac_cv_prog_ld_as_needed=yes
3956 echo "$as_me: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 pgac_cv_prog_ld_as_needed=no
3960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3961 if test x"$pgac_cv_prog_ld_as_needed" = x"no"; then
3962 LDFLAGS=$pgac_save_LDFLAGS
3966 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_as_needed" >&5
3967 echo "${ECHO_T}$pgac_cv_prog_ld_as_needed" >&6
3970 if test -n "$ac_tool_prefix"; then
3971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_RANLIB+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 if test -n "$RANLIB"; then
3979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 RANLIB=$ac_cv_prog_RANLIB
3998 if test -n "$RANLIB"; then
3999 echo "$as_me:$LINENO: result: $RANLIB" >&5
4000 echo "${ECHO_T}$RANLIB" >&6
4002 echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6
4007 if test -z "$ac_cv_prog_RANLIB"; then
4008 ac_ct_RANLIB=$RANLIB
4009 # Extract the first word of "ranlib", so it can be a program name with args.
4010 set dummy ranlib; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 if test -n "$ac_ct_RANLIB"; then
4017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_ac_ct_RANLIB="ranlib"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4037 if test -n "$ac_ct_RANLIB"; then
4038 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4039 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4041 echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4045 RANLIB=$ac_ct_RANLIB
4047 RANLIB="$ac_cv_prog_RANLIB"
4050 for ac_prog in lorder
4052 # Extract the first word of "$ac_prog", so it can be a program name with args.
4053 set dummy $ac_prog; ac_word=$2
4054 echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4056 if test "${ac_cv_prog_LORDER+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 if test -n "$LORDER"; then
4060 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_prog_LORDER="$ac_prog"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 LORDER=$ac_cv_prog_LORDER
4079 if test -n "$LORDER"; then
4080 echo "$as_me:$LINENO: result: $LORDER" >&5
4081 echo "${ECHO_T}$LORDER" >&6
4083 echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4087 test -n "$LORDER" && break
4090 # Extract the first word of "tar", so it can be a program name with args.
4091 set dummy tar; ac_word=$2
4092 echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094 if test "${ac_cv_path_TAR+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4109 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 if test -n "$TAR"; then
4122 echo "$as_me:$LINENO: result: $TAR" >&5
4123 echo "${ECHO_T}$TAR" >&6
4125 echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4130 if test -n "$ac_tool_prefix"; then
4131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}strip; ac_word=$2
4133 echo "$as_me:$LINENO: checking for $ac_word" >&5
4134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4135 if test "${ac_cv_prog_STRIP+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 if test -n "$STRIP"; then
4139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 STRIP=$ac_cv_prog_STRIP
4158 if test -n "$STRIP"; then
4159 echo "$as_me:$LINENO: result: $STRIP" >&5
4160 echo "${ECHO_T}$STRIP" >&6
4162 echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6
4167 if test -z "$ac_cv_prog_STRIP"; then
4169 # Extract the first word of "strip", so it can be a program name with args.
4170 set dummy strip; ac_word=$2
4171 echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4173 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 if test -n "$ac_ct_STRIP"; then
4177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_ac_ct_STRIP="strip"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4197 if test -n "$ac_ct_STRIP"; then
4198 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4199 echo "${ECHO_T}$ac_ct_STRIP" >&6
4201 echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6
4207 STRIP="$ac_cv_prog_STRIP"
4211 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4212 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4213 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4214 STRIP_STATIC_LIB="$STRIP -x"
4215 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4216 echo "$as_me:$LINENO: result: yes" >&5
4217 echo "${ECHO_T}yes" >&6
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4228 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4229 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4230 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4231 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4233 for ac_prog in 'bison -y'
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_YACC+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 if test -n "$YACC"; then
4243 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_YACC="$ac_prog"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 YACC=$ac_cv_prog_YACC
4262 if test -n "$YACC"; then
4263 echo "$as_me:$LINENO: result: $YACC" >&5
4264 echo "${ECHO_T}$YACC" >&6
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4270 test -n "$YACC" && break
4274 if test "$YACC"; then
4275 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4276 { echo "$as_me:$LINENO: WARNING:
4277 *** If you are going to modify the grammar files or build from CVS, the installed
4278 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4279 echo "$as_me: WARNING:
4280 *** If you are going to modify the grammar files or build from CVS, the installed
4281 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4285 if test -z "$YACC"; then
4286 { echo "$as_me:$LINENO: WARNING:
4287 *** Without Bison you will not be able to build PostgreSQL from CVS or
4288 *** change any of the parser definition files. You can obtain Bison from
4289 *** a GNU mirror site. (If you are using the official distribution of
4290 *** PostgreSQL then you do not need to worry about this because the Bison
4291 *** output is pre-generated.) To use a different yacc program (possible,
4292 *** but not recommended), set the environment variable YACC before running
4293 *** 'configure'." >&5
4294 echo "$as_me: WARNING:
4295 *** Without Bison you will not be able to build PostgreSQL from CVS or
4296 *** change any of the parser definition files. You can obtain Bison from
4297 *** a GNU mirror site. (If you are using the official distribution of
4298 *** PostgreSQL then you do not need to worry about this because the Bison
4299 *** output is pre-generated.) To use a different yacc program (possible,
4300 *** but not recommended), set the environment variable YACC before running
4301 *** 'configure'." >&2;}
4305 # Extract the first word of "perl", so it can be a program name with args.
4306 set dummy perl; ac_word=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_path_PERL+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 PERL=$ac_cv_path_PERL
4336 if test -n "$PERL"; then
4337 echo "$as_me:$LINENO: result: $PERL" >&5
4338 echo "${ECHO_T}$PERL" >&6
4340 echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4344 if test "$with_perl" = yes; then
4346 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4347 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4348 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4349 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4350 echo "${ECHO_T}$perl_archlibexp" >&6
4351 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4352 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4353 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4354 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4355 echo "${ECHO_T}$perl_privlibexp" >&6
4356 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4357 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4358 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4359 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4360 echo "${ECHO_T}$perl_useshrplib" >&6
4362 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4363 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4364 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4365 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4366 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4367 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4368 echo "${ECHO_T}$perl_embed_ldflags" >&6
4371 if test "$with_python" = yes; then
4372 # Extract the first word of "python", so it can be a program name with args.
4373 set dummy python; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_path_PYTHON+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 PYTHON=$ac_cv_path_PYTHON
4403 if test -n "$PYTHON"; then
4404 echo "$as_me:$LINENO: result: $PYTHON" >&5
4405 echo "${ECHO_T}$PYTHON" >&6
4407 echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6
4411 if test x"$PYTHON" = x""; then
4412 { { echo "$as_me:$LINENO: error: Python not found" >&5
4413 echo "$as_me: error: Python not found" >&2;}
4414 { (exit 1); exit 1; }; }
4418 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4419 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4420 if "${PYTHON}" 2>&- -c 'import distutils'
4422 echo "$as_me:$LINENO: result: yes" >&5
4423 echo "${ECHO_T}yes" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4428 echo "$as_me: error: distutils module not found" >&2;}
4429 { (exit 1); exit 1; }; }
4431 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4432 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4433 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4434 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
4435 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4437 # This should be enough of a message.
4438 echo "$as_me:$LINENO: result: $python_configdir" >&5
4439 echo "${ECHO_T}$python_configdir" >&6
4442 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4443 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4445 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4446 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4447 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4448 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4450 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4452 # New way: use the official shared library
4453 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4454 python_libspec="-L${python_libdir} -l${ldlibrary}"
4456 # Old way: use libpython from python_configdir
4457 python_libdir="${python_configdir}"
4458 python_libspec="-L${python_libdir} -lpython${python_version}"
4461 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4463 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4464 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4474 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4477 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4478 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4479 if test "${ac_cv_lib_bsd_main+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_check_lib_save_LIBS=$LIBS
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4486 #include "confdefs.h"
4489 #ifdef F77_DUMMY_MAIN
4493 int F77_DUMMY_MAIN() { return 1; }
4503 rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -s conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_lib_bsd_main=yes
4517 echo "$as_me: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 ac_cv_lib_bsd_main=no
4521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4522 LIBS=$ac_check_lib_save_LIBS
4524 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4525 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4526 if test $ac_cv_lib_bsd_main = yes; then
4527 cat >>confdefs.h <<_ACEOF
4528 #define HAVE_LIBBSD 1
4537 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4538 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4539 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_check_lib_save_LIBS=$LIBS
4544 cat >conftest.$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4546 #include "confdefs.h"
4548 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char setproctitle ();
4555 #ifdef F77_DUMMY_MAIN
4559 int F77_DUMMY_MAIN() { return 1; }
4569 rm -f conftest.$ac_objext conftest$ac_exeext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -s conftest$ac_exeext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_lib_util_setproctitle=yes
4583 echo "$as_me: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 ac_cv_lib_util_setproctitle=no
4587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4588 LIBS=$ac_check_lib_save_LIBS
4590 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4591 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4592 if test $ac_cv_lib_util_setproctitle = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define HAVE_LIBUTIL 1
4602 echo "$as_me:$LINENO: checking for main in -lm" >&5
4603 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4604 if test "${ac_cv_lib_m_main+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 ac_check_lib_save_LIBS=$LIBS
4609 cat >conftest.$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 #include "confdefs.h"
4614 #ifdef F77_DUMMY_MAIN
4618 int F77_DUMMY_MAIN() { return 1; }
4628 rm -f conftest.$ac_objext conftest$ac_exeext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_lib_m_main=yes
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4647 LIBS=$ac_check_lib_save_LIBS
4649 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4650 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4651 if test $ac_cv_lib_m_main = yes; then
4652 cat >>confdefs.h <<_ACEOF
4661 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4662 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4663 if test "${ac_cv_lib_dl_main+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_check_lib_save_LIBS=$LIBS
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line $LINENO "configure"
4670 #include "confdefs.h"
4673 #ifdef F77_DUMMY_MAIN
4677 int F77_DUMMY_MAIN() { return 1; }
4687 rm -f conftest.$ac_objext conftest$ac_exeext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689 (eval $ac_link) 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -s conftest$ac_exeext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_cv_lib_dl_main=yes
4701 echo "$as_me: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4703 ac_cv_lib_dl_main=no
4705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4706 LIBS=$ac_check_lib_save_LIBS
4708 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4709 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4710 if test $ac_cv_lib_dl_main = yes; then
4711 cat >>confdefs.h <<_ACEOF
4712 #define HAVE_LIBDL 1
4720 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4721 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4722 if test "${ac_cv_lib_nsl_main+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 ac_check_lib_save_LIBS=$LIBS
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4732 #ifdef F77_DUMMY_MAIN
4736 int F77_DUMMY_MAIN() { return 1; }
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748 (eval $ac_link) 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try='test -s conftest$ac_exeext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_lib_nsl_main=yes
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4762 ac_cv_lib_nsl_main=no
4764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4765 LIBS=$ac_check_lib_save_LIBS
4767 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4768 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4769 if test $ac_cv_lib_nsl_main = yes; then
4770 cat >>confdefs.h <<_ACEOF
4771 #define HAVE_LIBNSL 1
4779 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4780 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4781 if test "${ac_cv_lib_socket_main+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_check_lib_save_LIBS=$LIBS
4785 LIBS="-lsocket $LIBS"
4786 cat >conftest.$ac_ext <<_ACEOF
4787 #line $LINENO "configure"
4788 #include "confdefs.h"
4791 #ifdef F77_DUMMY_MAIN
4795 int F77_DUMMY_MAIN() { return 1; }
4805 rm -f conftest.$ac_objext conftest$ac_exeext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4807 (eval $ac_link) 2>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -s conftest$ac_exeext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_cv_lib_socket_main=yes
4819 echo "$as_me: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 ac_cv_lib_socket_main=no
4823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4824 LIBS=$ac_check_lib_save_LIBS
4826 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4827 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4828 if test $ac_cv_lib_socket_main = yes; then
4829 cat >>confdefs.h <<_ACEOF
4830 #define HAVE_LIBSOCKET 1
4833 LIBS="-lsocket $LIBS"
4838 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4839 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4840 if test "${ac_cv_lib_ipc_main+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 ac_check_lib_save_LIBS=$LIBS
4845 cat >conftest.$ac_ext <<_ACEOF
4846 #line $LINENO "configure"
4847 #include "confdefs.h"
4850 #ifdef F77_DUMMY_MAIN
4854 int F77_DUMMY_MAIN() { return 1; }
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -s conftest$ac_exeext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_cv_lib_ipc_main=yes
4878 echo "$as_me: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4880 ac_cv_lib_ipc_main=no
4882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4883 LIBS=$ac_check_lib_save_LIBS
4885 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4886 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4887 if test $ac_cv_lib_ipc_main = yes; then
4888 cat >>confdefs.h <<_ACEOF
4889 #define HAVE_LIBIPC 1
4897 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4898 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4899 if test "${ac_cv_lib_IPC_main+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 ac_check_lib_save_LIBS=$LIBS
4904 cat >conftest.$ac_ext <<_ACEOF
4905 #line $LINENO "configure"
4906 #include "confdefs.h"
4909 #ifdef F77_DUMMY_MAIN
4913 int F77_DUMMY_MAIN() { return 1; }
4923 rm -f conftest.$ac_objext conftest$ac_exeext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925 (eval $ac_link) 2>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -s conftest$ac_exeext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_cv_lib_IPC_main=yes
4937 echo "$as_me: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 ac_cv_lib_IPC_main=no
4941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4942 LIBS=$ac_check_lib_save_LIBS
4944 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4945 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4946 if test $ac_cv_lib_IPC_main = yes; then
4947 cat >>confdefs.h <<_ACEOF
4948 #define HAVE_LIBIPC 1
4956 echo "$as_me:$LINENO: checking for main in -llc" >&5
4957 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4958 if test "${ac_cv_lib_lc_main+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 ac_check_lib_save_LIBS=$LIBS
4963 cat >conftest.$ac_ext <<_ACEOF
4964 #line $LINENO "configure"
4965 #include "confdefs.h"
4968 #ifdef F77_DUMMY_MAIN
4972 int F77_DUMMY_MAIN() { return 1; }
4982 rm -f conftest.$ac_objext conftest$ac_exeext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4984 (eval $ac_link) 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest$ac_exeext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_lib_lc_main=yes
4996 echo "$as_me: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4998 ac_cv_lib_lc_main=no
5000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5001 LIBS=$ac_check_lib_save_LIBS
5003 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5004 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5005 if test $ac_cv_lib_lc_main = yes; then
5006 cat >>confdefs.h <<_ACEOF
5007 #define HAVE_LIBLC 1
5015 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5016 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5017 if test "${ac_cv_lib_dld_main+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 ac_check_lib_save_LIBS=$LIBS
5022 cat >conftest.$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5027 #ifdef F77_DUMMY_MAIN
5031 int F77_DUMMY_MAIN() { return 1; }
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043 (eval $ac_link) 2>&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_lib_dld_main=yes
5055 echo "$as_me: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5057 ac_cv_lib_dld_main=no
5059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5060 LIBS=$ac_check_lib_save_LIBS
5062 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5063 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5064 if test $ac_cv_lib_dld_main = yes; then
5065 cat >>confdefs.h <<_ACEOF
5066 #define HAVE_LIBDLD 1
5074 echo "$as_me:$LINENO: checking for main in -lld" >&5
5075 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5076 if test "${ac_cv_lib_ld_main+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_check_lib_save_LIBS=$LIBS
5081 cat >conftest.$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5083 #include "confdefs.h"
5086 #ifdef F77_DUMMY_MAIN
5090 int F77_DUMMY_MAIN() { return 1; }
5100 rm -f conftest.$ac_objext conftest$ac_exeext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102 (eval $ac_link) 2>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -s conftest$ac_exeext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 ac_cv_lib_ld_main=yes
5114 echo "$as_me: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5116 ac_cv_lib_ld_main=no
5118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5122 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5123 if test $ac_cv_lib_ld_main = yes; then
5124 cat >>confdefs.h <<_ACEOF
5125 #define HAVE_LIBLD 1
5133 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5134 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5135 if test "${ac_cv_lib_compat_main+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_check_lib_save_LIBS=$LIBS
5139 LIBS="-lcompat $LIBS"
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 #include "confdefs.h"
5145 #ifdef F77_DUMMY_MAIN
5149 int F77_DUMMY_MAIN() { return 1; }
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest$ac_exeext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_lib_compat_main=yes
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 ac_cv_lib_compat_main=no
5177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5178 LIBS=$ac_check_lib_save_LIBS
5180 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5181 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5182 if test $ac_cv_lib_compat_main = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define HAVE_LIBCOMPAT 1
5187 LIBS="-lcompat $LIBS"
5192 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5193 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5194 if test "${ac_cv_lib_BSD_main+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 ac_check_lib_save_LIBS=$LIBS
5199 cat >conftest.$ac_ext <<_ACEOF
5200 #line $LINENO "configure"
5201 #include "confdefs.h"
5204 #ifdef F77_DUMMY_MAIN
5208 int F77_DUMMY_MAIN() { return 1; }
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_cv_lib_BSD_main=yes
5232 echo "$as_me: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 ac_cv_lib_BSD_main=no
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237 LIBS=$ac_check_lib_save_LIBS
5239 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5240 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5241 if test $ac_cv_lib_BSD_main = yes; then
5242 cat >>confdefs.h <<_ACEOF
5243 #define HAVE_LIBBSD 1
5251 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5252 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5253 if test "${ac_cv_lib_gen_main+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 ac_check_lib_save_LIBS=$LIBS
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 #include "confdefs.h"
5263 #ifdef F77_DUMMY_MAIN
5267 int F77_DUMMY_MAIN() { return 1; }
5277 rm -f conftest.$ac_objext conftest$ac_exeext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -s conftest$ac_exeext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_lib_gen_main=yes
5291 echo "$as_me: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 ac_cv_lib_gen_main=no
5295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5298 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5299 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5300 if test $ac_cv_lib_gen_main = yes; then
5301 cat >>confdefs.h <<_ACEOF
5302 #define HAVE_LIBGEN 1
5310 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5311 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5312 if test "${ac_cv_lib_PW_main+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 ac_check_lib_save_LIBS=$LIBS
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 #include "confdefs.h"
5322 #ifdef F77_DUMMY_MAIN
5326 int F77_DUMMY_MAIN() { return 1; }
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_lib_PW_main=yes
5350 echo "$as_me: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 ac_cv_lib_PW_main=no
5354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5358 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5359 if test $ac_cv_lib_PW_main = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define HAVE_LIBPW 1
5369 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5370 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5371 if test "${ac_cv_lib_resolv_main+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 ac_check_lib_save_LIBS=$LIBS
5375 LIBS="-lresolv $LIBS"
5376 cat >conftest.$ac_ext <<_ACEOF
5377 #line $LINENO "configure"
5378 #include "confdefs.h"
5381 #ifdef F77_DUMMY_MAIN
5385 int F77_DUMMY_MAIN() { return 1; }
5395 rm -f conftest.$ac_objext conftest$ac_exeext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -s conftest$ac_exeext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_lib_resolv_main=yes
5409 echo "$as_me: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5411 ac_cv_lib_resolv_main=no
5413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5414 LIBS=$ac_check_lib_save_LIBS
5416 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5417 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5418 if test $ac_cv_lib_resolv_main = yes; then
5419 cat >>confdefs.h <<_ACEOF
5420 #define HAVE_LIBRESOLV 1
5423 LIBS="-lresolv $LIBS"
5427 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5428 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5429 if test "${ac_cv_search_getopt_long+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_func_search_save_LIBS=$LIBS
5433 ac_cv_search_getopt_long=no
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5436 #include "confdefs.h"
5438 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444 char getopt_long ();
5445 #ifdef F77_DUMMY_MAIN
5449 int F77_DUMMY_MAIN() { return 1; }
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5461 (eval $ac_link) 2>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_search_getopt_long="none required"
5473 echo "$as_me: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5477 if test "$ac_cv_search_getopt_long" = no; then
5478 for ac_lib in getopt gnugetopt; do
5479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5480 cat >conftest.$ac_ext <<_ACEOF
5481 #line $LINENO "configure"
5482 #include "confdefs.h"
5484 /* Override any gcc2 internal prototype to avoid an error. */
5488 /* We use char because int might match the return type of a gcc2
5489 builtin and then its argument prototype would still apply. */
5490 char getopt_long ();
5491 #ifdef F77_DUMMY_MAIN
5495 int F77_DUMMY_MAIN() { return 1; }
5505 rm -f conftest.$ac_objext conftest$ac_exeext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5507 (eval $ac_link) 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -s conftest$ac_exeext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 ac_cv_search_getopt_long="-l$ac_lib"
5520 echo "$as_me: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5526 LIBS=$ac_func_search_save_LIBS
5528 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5529 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5530 if test "$ac_cv_search_getopt_long" != no; then
5531 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5537 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5538 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5539 if test "${ac_cv_lib_unix_main+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 ac_check_lib_save_LIBS=$LIBS
5544 cat >conftest.$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5546 #include "confdefs.h"
5549 #ifdef F77_DUMMY_MAIN
5553 int F77_DUMMY_MAIN() { return 1; }
5563 rm -f conftest.$ac_objext conftest$ac_exeext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5565 (eval $ac_link) 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -s conftest$ac_exeext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_cv_lib_unix_main=yes
5577 echo "$as_me: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5579 ac_cv_lib_unix_main=no
5581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5582 LIBS=$ac_check_lib_save_LIBS
5584 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5585 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5586 if test $ac_cv_lib_unix_main = yes; then
5587 cat >>confdefs.h <<_ACEOF
5588 #define HAVE_LIBUNIX 1
5595 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5596 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5597 if test "${ac_cv_search_crypt+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 ac_func_search_save_LIBS=$LIBS
5601 ac_cv_search_crypt=no
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 #include "confdefs.h"
5606 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5613 #ifdef F77_DUMMY_MAIN
5617 int F77_DUMMY_MAIN() { return 1; }
5627 rm -f conftest.$ac_objext conftest$ac_exeext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -s conftest$ac_exeext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_search_crypt="none required"
5641 echo "$as_me: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5645 if test "$ac_cv_search_crypt" = no; then
5646 for ac_lib in crypt; do
5647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5648 cat >conftest.$ac_ext <<_ACEOF
5649 #line $LINENO "configure"
5650 #include "confdefs.h"
5652 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5659 #ifdef F77_DUMMY_MAIN
5663 int F77_DUMMY_MAIN() { return 1; }
5673 rm -f conftest.$ac_objext conftest$ac_exeext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675 (eval $ac_link) 2>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -s conftest$ac_exeext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_cv_search_crypt="-l$ac_lib"
5688 echo "$as_me: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5694 LIBS=$ac_func_search_save_LIBS
5696 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5697 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5698 if test "$ac_cv_search_crypt" != no; then
5699 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5704 if test "$PORTNAME" = "beos"
5707 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5708 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5709 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 ac_check_lib_save_LIBS=$LIBS
5714 cat >conftest.$ac_ext <<_ACEOF
5715 #line $LINENO "configure"
5716 #include "confdefs.h"
5718 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5724 char __inet_ntoa ();
5725 #ifdef F77_DUMMY_MAIN
5729 int F77_DUMMY_MAIN() { return 1; }
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_lib_bind___inet_ntoa=yes
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 ac_cv_lib_bind___inet_ntoa=no
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_check_lib_save_LIBS
5760 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5761 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5762 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5763 cat >>confdefs.h <<_ACEOF
5764 #define HAVE_LIBBIND 1
5773 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5774 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5775 if test "${ac_cv_search_fdatasync+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 ac_func_search_save_LIBS=$LIBS
5779 ac_cv_search_fdatasync=no
5780 cat >conftest.$ac_ext <<_ACEOF
5781 #line $LINENO "configure"
5782 #include "confdefs.h"
5784 /* Override any gcc2 internal prototype to avoid an error. */
5788 /* We use char because int might match the return type of a gcc2
5789 builtin and then its argument prototype would still apply. */
5791 #ifdef F77_DUMMY_MAIN
5795 int F77_DUMMY_MAIN() { return 1; }
5805 rm -f conftest.$ac_objext conftest$ac_exeext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -s conftest$ac_exeext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_search_fdatasync="none required"
5819 echo "$as_me: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5823 if test "$ac_cv_search_fdatasync" = no; then
5824 for ac_lib in rt posix4; do
5825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5826 cat >conftest.$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5828 #include "confdefs.h"
5830 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5837 #ifdef F77_DUMMY_MAIN
5841 int F77_DUMMY_MAIN() { return 1; }
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_search_fdatasync="-l$ac_lib"
5866 echo "$as_me: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5872 LIBS=$ac_func_search_save_LIBS
5874 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5875 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5876 if test "$ac_cv_search_fdatasync" != no; then
5877 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5883 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5884 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5885 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_check_lib_save_LIBS=$LIBS
5889 LIBS="-lcygipc $LIBS"
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 #include "confdefs.h"
5894 /* Override any gcc2 internal prototype to avoid an error. */
5898 /* We use char because int might match the return type of a gcc2
5899 builtin and then its argument prototype would still apply. */
5901 #ifdef F77_DUMMY_MAIN
5905 int F77_DUMMY_MAIN() { return 1; }
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 ac_cv_lib_cygipc_shmget=yes
5929 echo "$as_me: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5931 ac_cv_lib_cygipc_shmget=no
5933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5934 LIBS=$ac_check_lib_save_LIBS
5936 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5937 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5938 if test $ac_cv_lib_cygipc_shmget = yes; then
5939 cat >>confdefs.h <<_ACEOF
5940 #define HAVE_LIBCYGIPC 1
5943 LIBS="-lcygipc $LIBS"
5948 if test "$PORTNAME" = "win32"
5951 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5952 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5953 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 ac_check_lib_save_LIBS=$LIBS
5957 LIBS="-lwsock32 $LIBS"
5958 cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5960 #include "confdefs.h"
5963 #ifdef F77_DUMMY_MAIN
5967 int F77_DUMMY_MAIN() { return 1; }
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -s conftest$ac_exeext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_lib_wsock32_main=yes
5991 echo "$as_me: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5993 ac_cv_lib_wsock32_main=no
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5998 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5999 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
6000 if test $ac_cv_lib_wsock32_main = yes; then
6001 cat >>confdefs.h <<_ACEOF
6002 #define HAVE_LIBWSOCK32 1
6005 LIBS="-lwsock32 $LIBS"
6011 if test "$with_readline" = yes; then
6013 echo "$as_me:$LINENO: checking for readline" >&5
6014 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6016 if test "${pgac_cv_check_readline+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 pgac_cv_check_readline=no
6020 pgac_save_LIBS=$LIBS
6021 for pgac_rllib in -lreadline -ledit ; do
6022 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6023 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6028 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6035 #ifdef F77_DUMMY_MAIN
6039 int F77_DUMMY_MAIN() { return 1; }
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6062 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6063 # recognize dependent libraries; assume curses is needed if we didn't
6064 # find any dependency.
6066 netbsd* | openbsd* | irix*)
6067 if test x"$pgac_lib" = x"" ; then
6068 pgac_lib=" -lcurses"
6072 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6076 echo "$as_me: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6082 LIBS=$pgac_save_LIBS
6086 if test "$pgac_cv_check_readline" != no ; then
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_LIBREADLINE 1
6092 LIBS="$pgac_cv_check_readline $LIBS"
6093 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6094 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6099 if test x"$pgac_cv_check_readline" = x"no"; then
6100 { { echo "$as_me:$LINENO: error: readline library not found
6101 If you have readline already installed, see config.log for details on the
6102 failure. It is possible the compiler isn't looking in the proper directory.
6103 Use --without-readline to disable readline support." >&5
6104 echo "$as_me: error: readline library not found
6105 If you have readline already installed, see config.log for details on the
6106 failure. It is possible the compiler isn't looking in the proper directory.
6107 Use --without-readline to disable readline support." >&2;}
6108 { (exit 1); exit 1; }; }
6112 if test "$with_zlib" = yes; then
6114 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6115 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6116 if test "${ac_cv_lib_z_inflate+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 ac_check_lib_save_LIBS=$LIBS
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6123 #include "confdefs.h"
6125 /* Override any gcc2 internal prototype to avoid an error. */
6129 /* We use char because int might match the return type of a gcc2
6130 builtin and then its argument prototype would still apply. */
6132 #ifdef F77_DUMMY_MAIN
6136 int F77_DUMMY_MAIN() { return 1; }
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148 (eval $ac_link) 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_lib_z_inflate=yes
6160 echo "$as_me: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6162 ac_cv_lib_z_inflate=no
6164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6165 LIBS=$ac_check_lib_save_LIBS
6167 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6168 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6169 if test $ac_cv_lib_z_inflate = yes; then
6170 cat >>confdefs.h <<_ACEOF
6177 { { echo "$as_me:$LINENO: error: zlib library not found
6178 If you have zlib already installed, see config.log for details on the
6179 failure. It is possible the compiler isn't looking in the proper directory.
6180 Use --without-zlib to disable zlib support." >&5
6181 echo "$as_me: error: zlib library not found
6182 If you have zlib already installed, see config.log for details on the
6183 failure. It is possible the compiler isn't looking in the proper directory.
6184 Use --without-zlib to disable zlib support." >&2;}
6185 { (exit 1); exit 1; }; }
6190 if test "$enable_spinlocks" = yes; then
6192 cat >>confdefs.h <<\_ACEOF
6193 #define HAVE_SPINLOCKS 1
6197 { echo "$as_me:$LINENO: WARNING:
6198 *** Not using spinlocks will cause poor performance." >&5
6199 echo "$as_me: WARNING:
6200 *** Not using spinlocks will cause poor performance." >&2;}
6203 if test "$with_krb4" = yes ; then
6205 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6206 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6207 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 ac_check_lib_save_LIBS=$LIBS
6212 cat >conftest.$ac_ext <<_ACEOF
6213 #line $LINENO "configure"
6214 #include "confdefs.h"
6216 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6222 char des_encrypt ();
6223 #ifdef F77_DUMMY_MAIN
6227 int F77_DUMMY_MAIN() { return 1; }
6237 rm -f conftest.$ac_objext conftest$ac_exeext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -s conftest$ac_exeext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_lib_des_des_encrypt=yes
6251 echo "$as_me: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 ac_cv_lib_des_des_encrypt=no
6255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6256 LIBS=$ac_check_lib_save_LIBS
6258 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6259 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6260 if test $ac_cv_lib_des_des_encrypt = yes; then
6261 cat >>confdefs.h <<_ACEOF
6262 #define HAVE_LIBDES 1
6268 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6269 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6270 { (exit 1); exit 1; }; }
6274 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6275 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6276 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 ac_check_lib_save_LIBS=$LIBS
6281 cat >conftest.$ac_ext <<_ACEOF
6282 #line $LINENO "configure"
6283 #include "confdefs.h"
6285 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6291 char krb_sendauth ();
6292 #ifdef F77_DUMMY_MAIN
6296 int F77_DUMMY_MAIN() { return 1; }
6306 rm -f conftest.$ac_objext conftest$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -s conftest$ac_exeext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_lib_krb_krb_sendauth=yes
6320 echo "$as_me: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6322 ac_cv_lib_krb_krb_sendauth=no
6324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325 LIBS=$ac_check_lib_save_LIBS
6327 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6328 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6329 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6330 cat >>confdefs.h <<_ACEOF
6331 #define HAVE_LIBKRB 1
6337 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6338 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6339 { (exit 1); exit 1; }; }
6343 for ac_func in gethostname
6345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6346 echo "$as_me:$LINENO: checking for $ac_func" >&5
6347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6348 if eval "test \"\${$as_ac_var+set}\" = set"; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 cat >conftest.$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char $ac_func (); below. */
6357 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6366 #ifdef F77_DUMMY_MAIN
6370 int F77_DUMMY_MAIN() { return 1; }
6375 /* The GNU C library defines this for functions which it implements
6376 to always fail with ENOSYS. Some functions are actually named
6377 something starting with __ and the normal name is an alias. */
6378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 eval "$as_ac_var=yes"
6402 echo "$as_me: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6404 eval "$as_ac_var=no"
6406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6410 if test `eval echo '${'$as_ac_var'}'` = yes; then
6411 cat >>confdefs.h <<_ACEOF
6412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6416 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6423 if test "$with_krb5" = yes ; then
6424 if test "$PORTNAME" != "win32"; then
6425 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6426 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6427 if test "${ac_cv_search_com_err+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 ac_func_search_save_LIBS=$LIBS
6431 ac_cv_search_com_err=no
6432 cat >conftest.$ac_ext <<_ACEOF
6433 #line $LINENO "configure"
6434 #include "confdefs.h"
6436 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6443 #ifdef F77_DUMMY_MAIN
6447 int F77_DUMMY_MAIN() { return 1; }
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -s conftest$ac_exeext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 ac_cv_search_com_err="none required"
6471 echo "$as_me: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6475 if test "$ac_cv_search_com_err" = no; then
6476 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6478 cat >conftest.$ac_ext <<_ACEOF
6479 #line $LINENO "configure"
6480 #include "confdefs.h"
6482 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6489 #ifdef F77_DUMMY_MAIN
6493 int F77_DUMMY_MAIN() { return 1; }
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_search_com_err="-l$ac_lib"
6518 echo "$as_me: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_func_search_save_LIBS
6526 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6527 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6528 if test "$ac_cv_search_com_err" != no; then
6529 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6532 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6533 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6534 { (exit 1); exit 1; }; }
6537 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6538 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6539 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 ac_func_search_save_LIBS=$LIBS
6543 ac_cv_search_krb5_encrypt=no
6544 cat >conftest.$ac_ext <<_ACEOF
6545 #line $LINENO "configure"
6546 #include "confdefs.h"
6548 /* Override any gcc2 internal prototype to avoid an error. */
6552 /* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6554 char krb5_encrypt ();
6555 #ifdef F77_DUMMY_MAIN
6559 int F77_DUMMY_MAIN() { return 1; }
6569 rm -f conftest.$ac_objext conftest$ac_exeext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6571 (eval $ac_link) 2>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_cv_search_krb5_encrypt="none required"
6583 echo "$as_me: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6587 if test "$ac_cv_search_krb5_encrypt" = no; then
6588 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6590 cat >conftest.$ac_ext <<_ACEOF
6591 #line $LINENO "configure"
6592 #include "confdefs.h"
6594 /* Override any gcc2 internal prototype to avoid an error. */
6598 /* We use char because int might match the return type of a gcc2
6599 builtin and then its argument prototype would still apply. */
6600 char krb5_encrypt ();
6601 #ifdef F77_DUMMY_MAIN
6605 int F77_DUMMY_MAIN() { return 1; }
6615 rm -f conftest.$ac_objext conftest$ac_exeext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6617 (eval $ac_link) 2>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try='test -s conftest$ac_exeext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_search_krb5_encrypt="-l$ac_lib"
6630 echo "$as_me: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 LIBS=$ac_func_search_save_LIBS
6638 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6639 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6640 if test "$ac_cv_search_krb5_encrypt" != no; then
6641 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6644 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6645 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6646 { (exit 1); exit 1; }; }
6649 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6650 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6651 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_func_search_save_LIBS=$LIBS
6655 ac_cv_search_krb5_sendauth=no
6656 cat >conftest.$ac_ext <<_ACEOF
6657 #line $LINENO "configure"
6658 #include "confdefs.h"
6660 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char krb5_sendauth ();
6667 #ifdef F77_DUMMY_MAIN
6671 int F77_DUMMY_MAIN() { return 1; }
6681 rm -f conftest.$ac_objext conftest$ac_exeext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -s conftest$ac_exeext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6693 ac_cv_search_krb5_sendauth="none required"
6695 echo "$as_me: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6699 if test "$ac_cv_search_krb5_sendauth" = no; then
6700 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 #include "confdefs.h"
6706 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6712 char krb5_sendauth ();
6713 #ifdef F77_DUMMY_MAIN
6717 int F77_DUMMY_MAIN() { return 1; }
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_search_krb5_sendauth="-l$ac_lib"
6742 echo "$as_me: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6748 LIBS=$ac_func_search_save_LIBS
6750 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6751 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6752 if test "$ac_cv_search_krb5_sendauth" != no; then
6753 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6756 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6757 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6758 { (exit 1); exit 1; }; }
6762 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6763 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6764 if test "${ac_cv_search_com_err+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 ac_func_search_save_LIBS=$LIBS
6768 ac_cv_search_com_err=no
6769 cat >conftest.$ac_ext <<_ACEOF
6770 #line $LINENO "configure"
6771 #include "confdefs.h"
6773 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6780 #ifdef F77_DUMMY_MAIN
6784 int F77_DUMMY_MAIN() { return 1; }
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -s conftest$ac_exeext'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 ac_cv_search_com_err="none required"
6808 echo "$as_me: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6812 if test "$ac_cv_search_com_err" = no; then
6813 for ac_lib in 'comerr32 -lkrb5_32'; do
6814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6815 cat >conftest.$ac_ext <<_ACEOF
6816 #line $LINENO "configure"
6817 #include "confdefs.h"
6819 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6826 #ifdef F77_DUMMY_MAIN
6830 int F77_DUMMY_MAIN() { return 1; }
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6842 (eval $ac_link) 2>&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -s conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_search_com_err="-l$ac_lib"
6855 echo "$as_me: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_func_search_save_LIBS
6863 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6864 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6865 if test "$ac_cv_search_com_err" != no; then
6866 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6869 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6870 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6871 { (exit 1); exit 1; }; }
6877 if test "$with_openssl" = yes ; then
6878 if test "$PORTNAME" != "win32"; then
6880 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6881 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6882 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_check_lib_save_LIBS=$LIBS
6886 LIBS="-lcrypto $LIBS"
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6889 #include "confdefs.h"
6891 /* Override any gcc2 internal prototype to avoid an error. */
6895 /* We use char because int might match the return type of a gcc2
6896 builtin and then its argument prototype would still apply. */
6897 char CRYPTO_new_ex_data ();
6898 #ifdef F77_DUMMY_MAIN
6902 int F77_DUMMY_MAIN() { return 1; }
6907 CRYPTO_new_ex_data ();
6912 rm -f conftest.$ac_objext conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914 (eval $ac_link) 2>&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -s conftest$ac_exeext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6926 echo "$as_me: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6928 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6931 LIBS=$ac_check_lib_save_LIBS
6933 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6934 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6935 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6936 cat >>confdefs.h <<_ACEOF
6937 #define HAVE_LIBCRYPTO 1
6940 LIBS="-lcrypto $LIBS"
6943 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6944 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6945 { (exit 1); exit 1; }; }
6949 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6950 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6951 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_check_lib_save_LIBS=$LIBS
6956 cat >conftest.$ac_ext <<_ACEOF
6957 #line $LINENO "configure"
6958 #include "confdefs.h"
6960 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6966 char SSL_library_init ();
6967 #ifdef F77_DUMMY_MAIN
6971 int F77_DUMMY_MAIN() { return 1; }
6976 SSL_library_init ();
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983 (eval $ac_link) 2>&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -s conftest$ac_exeext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_lib_ssl_SSL_library_init=yes
6995 echo "$as_me: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 ac_cv_lib_ssl_SSL_library_init=no
6999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7000 LIBS=$ac_check_lib_save_LIBS
7002 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7003 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7004 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_LIBSSL 1
7012 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7013 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7014 { (exit 1); exit 1; }; }
7019 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7020 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7021 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 ac_check_lib_save_LIBS=$LIBS
7025 LIBS="-leay32 $LIBS"
7026 cat >conftest.$ac_ext <<_ACEOF
7027 #line $LINENO "configure"
7028 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char CRYPTO_new_ex_data ();
7037 #ifdef F77_DUMMY_MAIN
7041 int F77_DUMMY_MAIN() { return 1; }
7046 CRYPTO_new_ex_data ();
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -s conftest$ac_exeext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7065 echo "$as_me: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7067 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7070 LIBS=$ac_check_lib_save_LIBS
7072 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7073 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7074 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7075 cat >>confdefs.h <<_ACEOF
7076 #define HAVE_LIBEAY32 1
7079 LIBS="-leay32 $LIBS"
7082 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7083 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7084 { (exit 1); exit 1; }; }
7088 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7089 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7090 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 ac_check_lib_save_LIBS=$LIBS
7094 LIBS="-lssleay32 $LIBS"
7095 cat >conftest.$ac_ext <<_ACEOF
7096 #line $LINENO "configure"
7097 #include "confdefs.h"
7099 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105 char SSL_library_init ();
7106 #ifdef F77_DUMMY_MAIN
7110 int F77_DUMMY_MAIN() { return 1; }
7115 SSL_library_init ();
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 ac_cv_lib_ssleay32_SSL_library_init=yes
7134 echo "$as_me: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 ac_cv_lib_ssleay32_SSL_library_init=no
7138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7139 LIBS=$ac_check_lib_save_LIBS
7141 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7142 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7143 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_LIBSSLEAY32 1
7148 LIBS="-lssleay32 $LIBS"
7151 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7152 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7153 { (exit 1); exit 1; }; }
7159 if test "$with_pam" = yes ; then
7161 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7162 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7163 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_check_lib_save_LIBS=$LIBS
7168 cat >conftest.$ac_ext <<_ACEOF
7169 #line $LINENO "configure"
7170 #include "confdefs.h"
7172 /* Override any gcc2 internal prototype to avoid an error. */
7176 /* We use char because int might match the return type of a gcc2
7177 builtin and then its argument prototype would still apply. */
7179 #ifdef F77_DUMMY_MAIN
7183 int F77_DUMMY_MAIN() { return 1; }
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_lib_pam_pam_start=yes
7207 echo "$as_me: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 ac_cv_lib_pam_pam_start=no
7211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7212 LIBS=$ac_check_lib_save_LIBS
7214 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7215 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7216 if test $ac_cv_lib_pam_pam_start = yes; then
7217 cat >>confdefs.h <<_ACEOF
7218 #define HAVE_LIBPAM 1
7224 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7225 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7226 { (exit 1); exit 1; }; }
7236 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7237 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7238 if test "${ac_cv_header_stdc+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line $LINENO "configure"
7243 #include "confdefs.h"
7250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7253 egrep -v '^ *\+' conftest.er1 >conftest.err
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } >/dev/null; then
7258 if test -s conftest.err; then
7259 ac_cpp_err=$ac_c_preproc_warn_flag
7266 if test -z "$ac_cpp_err"; then
7267 ac_cv_header_stdc=yes
7269 echo "$as_me: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 ac_cv_header_stdc=no
7273 rm -f conftest.err conftest.$ac_ext
7275 if test $ac_cv_header_stdc = yes; then
7276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7279 #include "confdefs.h"
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284 egrep "memchr" >/dev/null 2>&1; then
7287 ac_cv_header_stdc=no
7293 if test $ac_cv_header_stdc = yes; then
7294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7295 cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7297 #include "confdefs.h"
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302 egrep "free" >/dev/null 2>&1; then
7305 ac_cv_header_stdc=no
7311 if test $ac_cv_header_stdc = yes; then
7312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7313 if test "$cross_compiling" = yes; then
7316 cat >conftest.$ac_ext <<_ACEOF
7317 #line $LINENO "configure"
7318 #include "confdefs.h"
7320 #if ((' ' & 0x0FF) == 0x020)
7321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7324 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7325 || ('j' <= (c) && (c) <= 'r') \
7326 || ('s' <= (c) && (c) <= 'z'))
7327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7335 for (i = 0; i < 256; i++)
7336 if (XOR (islower (i), ISLOWER (i))
7337 || toupper (i) != TOUPPER (i))
7342 rm -f conftest$ac_exeext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7344 (eval $ac_link) 2>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; }; then
7355 echo "$as_me: program exited with status $ac_status" >&5
7356 echo "$as_me: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7359 ac_cv_header_stdc=no
7361 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7367 if test $ac_cv_header_stdc = yes; then
7369 cat >>confdefs.h <<\_ACEOF
7370 #define STDC_HEADERS 1
7375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7386 inttypes.h stdint.h unistd.h
7388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7389 echo "$as_me:$LINENO: checking for $ac_header" >&5
7390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 cat >conftest.$ac_ext <<_ACEOF
7395 #line $LINENO "configure"
7396 #include "confdefs.h"
7397 $ac_includes_default
7399 #include <$ac_header>
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403 (eval $ac_compile) 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 eval "$as_ac_Header=yes"
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 eval "$as_ac_Header=no"
7419 rm -f conftest.$ac_objext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.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/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462 echo "$as_me:$LINENO: checking for $ac_header" >&5
7463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7470 # Is the header compilable?
7471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7473 cat >conftest.$ac_ext <<_ACEOF
7474 #line $LINENO "configure"
7475 #include "confdefs.h"
7476 $ac_includes_default
7477 #include <$ac_header>
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -s conftest.$ac_objext'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7491 ac_header_compiler=yes
7493 echo "$as_me: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7495 ac_header_compiler=no
7497 rm -f conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7499 echo "${ECHO_T}$ac_header_compiler" >&6
7501 # Is the header present?
7502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7506 #include "confdefs.h"
7507 #include <$ac_header>
7509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7512 egrep -v '^ *\+' conftest.er1 >conftest.err
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } >/dev/null; then
7517 if test -s conftest.err; then
7518 ac_cpp_err=$ac_c_preproc_warn_flag
7525 if test -z "$ac_cpp_err"; then
7526 ac_header_preproc=yes
7528 echo "$as_me: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7530 ac_header_preproc=no
7532 rm -f conftest.err conftest.$ac_ext
7533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534 echo "${ECHO_T}$ac_header_preproc" >&6
7536 # So? What about this header?
7537 case $ac_header_compiler:$ac_header_preproc in
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7551 echo "$as_me:$LINENO: checking for $ac_header" >&5
7552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 eval "$as_ac_Header=$ac_header_preproc"
7558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7563 cat >>confdefs.h <<_ACEOF
7564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7572 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7573 # netinet/in.h is included first.
7575 for ac_header in netinet/in.h
7577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7579 echo "$as_me:$LINENO: checking for $ac_header" >&5
7580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7587 # Is the header compilable?
7588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7590 cat >conftest.$ac_ext <<_ACEOF
7591 #line $LINENO "configure"
7592 #include "confdefs.h"
7593 $ac_includes_default
7594 #include <$ac_header>
7596 rm -f conftest.$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -s conftest.$ac_objext'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; }; then
7608 ac_header_compiler=yes
7610 echo "$as_me: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7612 ac_header_compiler=no
7614 rm -f conftest.$ac_objext conftest.$ac_ext
7615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7616 echo "${ECHO_T}$ac_header_compiler" >&6
7618 # Is the header present?
7619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7621 cat >conftest.$ac_ext <<_ACEOF
7622 #line $LINENO "configure"
7623 #include "confdefs.h"
7624 #include <$ac_header>
7626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7629 egrep -v '^ *\+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } >/dev/null; then
7634 if test -s conftest.err; then
7635 ac_cpp_err=$ac_c_preproc_warn_flag
7642 if test -z "$ac_cpp_err"; then
7643 ac_header_preproc=yes
7645 echo "$as_me: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7647 ac_header_preproc=no
7649 rm -f conftest.err conftest.$ac_ext
7650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7651 echo "${ECHO_T}$ac_header_preproc" >&6
7653 # So? What about this header?
7654 case $ac_header_compiler:$ac_header_preproc in
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7668 echo "$as_me:$LINENO: checking for $ac_header" >&5
7669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 eval "$as_ac_Header=$ac_header_preproc"
7675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680 cat >>confdefs.h <<_ACEOF
7681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7689 for ac_header in netinet/tcp.h
7691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692 echo "$as_me:$LINENO: checking for $ac_header" >&5
7693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line $LINENO "configure"
7699 #include "confdefs.h"
7700 $ac_includes_default
7701 #ifdef HAVE_NETINET_IN_H
7702 #include <netinet/in.h>
7706 #include <$ac_header>
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 eval "$as_ac_Header=yes"
7722 echo "$as_me: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7724 eval "$as_ac_Header=no"
7726 rm -f conftest.$ac_objext conftest.$ac_ext
7728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7731 cat >>confdefs.h <<_ACEOF
7732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7740 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7742 for ac_header in readline/readline.h
7744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7746 echo "$as_me:$LINENO: checking for $ac_header" >&5
7747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7754 # Is the header compilable?
7755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7757 cat >conftest.$ac_ext <<_ACEOF
7758 #line $LINENO "configure"
7759 #include "confdefs.h"
7760 $ac_includes_default
7761 #include <$ac_header>
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -s conftest.$ac_objext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_header_compiler=yes
7777 echo "$as_me: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 ac_header_compiler=no
7781 rm -f conftest.$ac_objext conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7783 echo "${ECHO_T}$ac_header_compiler" >&6
7785 # Is the header present?
7786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7788 cat >conftest.$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7790 #include "confdefs.h"
7791 #include <$ac_header>
7793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7796 egrep -v '^ *\+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } >/dev/null; then
7801 if test -s conftest.err; then
7802 ac_cpp_err=$ac_c_preproc_warn_flag
7809 if test -z "$ac_cpp_err"; then
7810 ac_header_preproc=yes
7812 echo "$as_me: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7814 ac_header_preproc=no
7816 rm -f conftest.err conftest.$ac_ext
7817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7818 echo "${ECHO_T}$ac_header_preproc" >&6
7820 # So? What about this header?
7821 case $ac_header_compiler:$ac_header_preproc in
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7835 echo "$as_me:$LINENO: checking for $ac_header" >&5
7836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 eval "$as_ac_Header=$ac_header_preproc"
7842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7847 cat >>confdefs.h <<_ACEOF
7848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7853 for ac_header in readline.h
7855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7865 # Is the header compilable?
7866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 #include "confdefs.h"
7871 $ac_includes_default
7872 #include <$ac_header>
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_header_compiler=yes
7888 echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 ac_header_compiler=no
7892 rm -f conftest.$ac_objext conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7894 echo "${ECHO_T}$ac_header_compiler" >&6
7896 # Is the header present?
7897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 #include "confdefs.h"
7902 #include <$ac_header>
7904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7907 egrep -v '^ *\+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev/null; then
7912 if test -s conftest.err; then
7913 ac_cpp_err=$ac_c_preproc_warn_flag
7920 if test -z "$ac_cpp_err"; then
7921 ac_header_preproc=yes
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 ac_header_preproc=no
7927 rm -f conftest.err conftest.$ac_ext
7928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929 echo "${ECHO_T}$ac_header_preproc" >&6
7931 # So? What about this header?
7932 case $ac_header_compiler:$ac_header_preproc in
7934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7946 echo "$as_me:$LINENO: checking for $ac_header" >&5
7947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 eval "$as_ac_Header=$ac_header_preproc"
7953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7958 cat >>confdefs.h <<_ACEOF
7959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7963 { { echo "$as_me:$LINENO: error: readline header not found
7964 If you have readline already installed, see config.log for details on the
7965 failure. It is possible the compiler isn't looking in the proper directory.
7966 Use --without-readline to disable readline support." >&5
7967 echo "$as_me: error: readline header not found
7968 If you have readline already installed, see config.log for details on the
7969 failure. It is possible the compiler isn't looking in the proper directory.
7970 Use --without-readline to disable readline support." >&2;}
7971 { (exit 1); exit 1; }; }
7981 for ac_header in readline/history.h
7983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7985 echo "$as_me:$LINENO: checking for $ac_header" >&5
7986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7993 # Is the header compilable?
7994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7996 cat >conftest.$ac_ext <<_ACEOF
7997 #line $LINENO "configure"
7998 #include "confdefs.h"
7999 $ac_includes_default
8000 #include <$ac_header>
8002 rm -f conftest.$ac_objext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004 (eval $ac_compile) 2>&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest.$ac_objext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_header_compiler=yes
8016 echo "$as_me: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8018 ac_header_compiler=no
8020 rm -f conftest.$ac_objext conftest.$ac_ext
8021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8022 echo "${ECHO_T}$ac_header_compiler" >&6
8024 # Is the header present?
8025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8028 #line $LINENO "configure"
8029 #include "confdefs.h"
8030 #include <$ac_header>
8032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8035 egrep -v '^ *\+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } >/dev/null; then
8040 if test -s conftest.err; then
8041 ac_cpp_err=$ac_c_preproc_warn_flag
8048 if test -z "$ac_cpp_err"; then
8049 ac_header_preproc=yes
8051 echo "$as_me: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 ac_header_preproc=no
8055 rm -f conftest.err conftest.$ac_ext
8056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8057 echo "${ECHO_T}$ac_header_preproc" >&6
8059 # So? What about this header?
8060 case $ac_header_compiler:$ac_header_preproc in
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8074 echo "$as_me:$LINENO: checking for $ac_header" >&5
8075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 eval "$as_ac_Header=$ac_header_preproc"
8081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8086 cat >>confdefs.h <<_ACEOF
8087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8092 for ac_header in history.h
8094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8096 echo "$as_me:$LINENO: checking for $ac_header" >&5
8097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8104 # Is the header compilable?
8105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8108 #line $LINENO "configure"
8109 #include "confdefs.h"
8110 $ac_includes_default
8111 #include <$ac_header>
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_header_compiler=yes
8127 echo "$as_me: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8129 ac_header_compiler=no
8131 rm -f conftest.$ac_objext conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8133 echo "${ECHO_T}$ac_header_compiler" >&6
8135 # Is the header present?
8136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line $LINENO "configure"
8140 #include "confdefs.h"
8141 #include <$ac_header>
8143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8146 egrep -v '^ *\+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } >/dev/null; then
8151 if test -s conftest.err; then
8152 ac_cpp_err=$ac_c_preproc_warn_flag
8159 if test -z "$ac_cpp_err"; then
8160 ac_header_preproc=yes
8162 echo "$as_me: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8164 ac_header_preproc=no
8166 rm -f conftest.err conftest.$ac_ext
8167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8168 echo "${ECHO_T}$ac_header_preproc" >&6
8170 # So? What about this header?
8171 case $ac_header_compiler:$ac_header_preproc in
8173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8185 echo "$as_me:$LINENO: checking for $ac_header" >&5
8186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 eval "$as_ac_Header=$ac_header_preproc"
8192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8197 cat >>confdefs.h <<_ACEOF
8198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8202 { { echo "$as_me:$LINENO: error: history header not found
8203 If you have readline already installed, see config.log for details on the
8204 failure. It is possible the compiler isn't looking in the proper directory.
8205 Use --without-readline to disable readline support." >&5
8206 echo "$as_me: error: history header not found
8207 If you have readline already installed, see config.log for details on the
8208 failure. It is possible the compiler isn't looking in the proper directory.
8209 Use --without-readline to disable readline support." >&2;}
8210 { (exit 1); exit 1; }; }
8221 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8222 # Some installations of libedit usurp /usr/include/readline/, which seems
8223 # bad practice, since in combined installations readline will have its headers
8224 # there. We might have to resort to AC_EGREP checks to make sure we found
8225 # the proper header...
8227 for ac_header in editline/readline.h
8229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8231 echo "$as_me:$LINENO: checking for $ac_header" >&5
8232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8239 # Is the header compilable?
8240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8246 #include <$ac_header>
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_header_compiler=yes
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_header_compiler=no
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8276 #include <$ac_header>
8278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8281 egrep -v '^ *\+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } >/dev/null; then
8286 if test -s conftest.err; then
8287 ac_cpp_err=$ac_c_preproc_warn_flag
8294 if test -z "$ac_cpp_err"; then
8295 ac_header_preproc=yes
8297 echo "$as_me: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 ac_header_preproc=no
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8305 # So? What about this header?
8306 case $ac_header_compiler:$ac_header_preproc in
8308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8320 echo "$as_me:$LINENO: checking for $ac_header" >&5
8321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 eval "$as_ac_Header=$ac_header_preproc"
8327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338 for ac_header in readline.h
8340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 # Is the header compilable?
8351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8354 #line $LINENO "configure"
8355 #include "confdefs.h"
8356 $ac_includes_default
8357 #include <$ac_header>
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_header_compiler=yes
8373 echo "$as_me: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 ac_header_compiler=no
8377 rm -f conftest.$ac_objext conftest.$ac_ext
8378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8379 echo "${ECHO_T}$ac_header_compiler" >&6
8381 # Is the header present?
8382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8385 #line $LINENO "configure"
8386 #include "confdefs.h"
8387 #include <$ac_header>
8389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8392 egrep -v '^ *\+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } >/dev/null; then
8397 if test -s conftest.err; then
8398 ac_cpp_err=$ac_c_preproc_warn_flag
8405 if test -z "$ac_cpp_err"; then
8406 ac_header_preproc=yes
8408 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 ac_header_preproc=no
8412 rm -f conftest.err conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8414 echo "${ECHO_T}$ac_header_preproc" >&6
8416 # So? What about this header?
8417 case $ac_header_compiler:$ac_header_preproc in
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8431 echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 eval "$as_ac_Header=$ac_header_preproc"
8438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8443 cat >>confdefs.h <<_ACEOF
8444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8449 for ac_header in readline/readline.h
8451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453 echo "$as_me:$LINENO: checking for $ac_header" >&5
8454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8461 # Is the header compilable?
8462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 #include "confdefs.h"
8467 $ac_includes_default
8468 #include <$ac_header>
8470 rm -f conftest.$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -s conftest.$ac_objext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_header_compiler=yes
8484 echo "$as_me: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 ac_header_compiler=no
8488 rm -f conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8490 echo "${ECHO_T}$ac_header_compiler" >&6
8492 # Is the header present?
8493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 #include "confdefs.h"
8498 #include <$ac_header>
8500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503 egrep -v '^ *\+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } >/dev/null; then
8508 if test -s conftest.err; then
8509 ac_cpp_err=$ac_c_preproc_warn_flag
8516 if test -z "$ac_cpp_err"; then
8517 ac_header_preproc=yes
8519 echo "$as_me: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8521 ac_header_preproc=no
8523 rm -f conftest.err conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8525 echo "${ECHO_T}$ac_header_preproc" >&6
8527 # So? What about this header?
8528 case $ac_header_compiler:$ac_header_preproc in
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8542 echo "$as_me:$LINENO: checking for $ac_header" >&5
8543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 eval "$as_ac_Header=$ac_header_preproc"
8549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8554 cat >>confdefs.h <<_ACEOF
8555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8559 { { echo "$as_me:$LINENO: error: readline header not found
8560 If you have libedit already installed, see config.log for details on the
8561 failure. It is possible the compiler isn't looking in the proper directory.
8562 Use --without-readline to disable libedit support." >&5
8563 echo "$as_me: error: readline header not found
8564 If you have libedit already installed, see config.log for details on the
8565 failure. It is possible the compiler isn't looking in the proper directory.
8566 Use --without-readline to disable libedit support." >&2;}
8567 { (exit 1); exit 1; }; }
8581 for ac_header in editline/history.h
8583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8585 echo "$as_me:$LINENO: checking for $ac_header" >&5
8586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8593 # Is the header compilable?
8594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8596 cat >conftest.$ac_ext <<_ACEOF
8597 #line $LINENO "configure"
8598 #include "confdefs.h"
8599 $ac_includes_default
8600 #include <$ac_header>
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -s conftest.$ac_objext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 ac_header_compiler=yes
8616 echo "$as_me: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8618 ac_header_compiler=no
8620 rm -f conftest.$ac_objext conftest.$ac_ext
8621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8622 echo "${ECHO_T}$ac_header_compiler" >&6
8624 # Is the header present?
8625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8629 #include "confdefs.h"
8630 #include <$ac_header>
8632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8635 egrep -v '^ *\+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } >/dev/null; then
8640 if test -s conftest.err; then
8641 ac_cpp_err=$ac_c_preproc_warn_flag
8648 if test -z "$ac_cpp_err"; then
8649 ac_header_preproc=yes
8651 echo "$as_me: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 ac_header_preproc=no
8655 rm -f conftest.err conftest.$ac_ext
8656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8657 echo "${ECHO_T}$ac_header_preproc" >&6
8659 # So? What about this header?
8660 case $ac_header_compiler:$ac_header_preproc in
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8674 echo "$as_me:$LINENO: checking for $ac_header" >&5
8675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 eval "$as_ac_Header=$ac_header_preproc"
8681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8686 cat >>confdefs.h <<_ACEOF
8687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8692 for ac_header in history.h
8694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8696 echo "$as_me:$LINENO: checking for $ac_header" >&5
8697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8704 # Is the header compilable?
8705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8709 #include "confdefs.h"
8710 $ac_includes_default
8711 #include <$ac_header>
8713 rm -f conftest.$ac_objext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8715 (eval $ac_compile) 2>&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -s conftest.$ac_objext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 ac_header_compiler=yes
8727 echo "$as_me: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8729 ac_header_compiler=no
8731 rm -f conftest.$ac_objext conftest.$ac_ext
8732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8733 echo "${ECHO_T}$ac_header_compiler" >&6
8735 # Is the header present?
8736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8740 #include "confdefs.h"
8741 #include <$ac_header>
8743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8746 egrep -v '^ *\+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } >/dev/null; then
8751 if test -s conftest.err; then
8752 ac_cpp_err=$ac_c_preproc_warn_flag
8759 if test -z "$ac_cpp_err"; then
8760 ac_header_preproc=yes
8762 echo "$as_me: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_header_preproc=no
8766 rm -f conftest.err conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8768 echo "${ECHO_T}$ac_header_preproc" >&6
8770 # So? What about this header?
8771 case $ac_header_compiler:$ac_header_preproc in
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8785 echo "$as_me:$LINENO: checking for $ac_header" >&5
8786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 eval "$as_ac_Header=$ac_header_preproc"
8792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8797 cat >>confdefs.h <<_ACEOF
8798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8803 for ac_header in readline/history.h
8805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8807 echo "$as_me:$LINENO: checking for $ac_header" >&5
8808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8815 # Is the header compilable?
8816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8818 cat >conftest.$ac_ext <<_ACEOF
8819 #line $LINENO "configure"
8820 #include "confdefs.h"
8821 $ac_includes_default
8822 #include <$ac_header>
8824 rm -f conftest.$ac_objext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8826 (eval $ac_compile) 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_header_compiler=yes
8838 echo "$as_me: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8840 ac_header_compiler=no
8842 rm -f conftest.$ac_objext conftest.$ac_ext
8843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8844 echo "${ECHO_T}$ac_header_compiler" >&6
8846 # Is the header present?
8847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8850 #line $LINENO "configure"
8851 #include "confdefs.h"
8852 #include <$ac_header>
8854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8857 egrep -v '^ *\+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } >/dev/null; then
8862 if test -s conftest.err; then
8863 ac_cpp_err=$ac_c_preproc_warn_flag
8870 if test -z "$ac_cpp_err"; then
8871 ac_header_preproc=yes
8873 echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 ac_header_preproc=no
8877 rm -f conftest.err conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8879 echo "${ECHO_T}$ac_header_preproc" >&6
8881 # So? What about this header?
8882 case $ac_header_compiler:$ac_header_preproc in
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8896 echo "$as_me:$LINENO: checking for $ac_header" >&5
8897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 eval "$as_ac_Header=$ac_header_preproc"
8903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8913 { { echo "$as_me:$LINENO: error: history header not found
8914 If you have libedit already installed, see config.log for details on the
8915 failure. It is possible the compiler isn't looking in the proper directory.
8916 Use --without-readline to disable libedit support." >&5
8917 echo "$as_me: error: history header not found
8918 If you have libedit already installed, see config.log for details on the
8919 failure. It is possible the compiler isn't looking in the proper directory.
8920 Use --without-readline to disable libedit support." >&2;}
8921 { (exit 1); exit 1; }; }
8936 if test "$with_zlib" = yes; then
8937 if test "${ac_cv_header_zlib_h+set}" = set; then
8938 echo "$as_me:$LINENO: checking for zlib.h" >&5
8939 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8940 if test "${ac_cv_header_zlib_h+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8944 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8946 # Is the header compilable?
8947 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8948 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8949 cat >conftest.$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8951 #include "confdefs.h"
8952 $ac_includes_default
8955 rm -f conftest.$ac_objext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8957 (eval $ac_compile) 2>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_header_compiler=yes
8969 echo "$as_me: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 ac_header_compiler=no
8973 rm -f conftest.$ac_objext conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8975 echo "${ECHO_T}$ac_header_compiler" >&6
8977 # Is the header present?
8978 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8979 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8980 cat >conftest.$ac_ext <<_ACEOF
8981 #line $LINENO "configure"
8982 #include "confdefs.h"
8985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8988 egrep -v '^ *\+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } >/dev/null; then
8993 if test -s conftest.err; then
8994 ac_cpp_err=$ac_c_preproc_warn_flag
9001 if test -z "$ac_cpp_err"; then
9002 ac_header_preproc=yes
9004 echo "$as_me: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9006 ac_header_preproc=no
9008 rm -f conftest.err conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9010 echo "${ECHO_T}$ac_header_preproc" >&6
9012 # So? What about this header?
9013 case $ac_header_compiler:$ac_header_preproc in
9015 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9016 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9017 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9018 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
9020 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9021 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9023 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9025 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
9027 echo "$as_me:$LINENO: checking for zlib.h" >&5
9028 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9029 if test "${ac_cv_header_zlib_h+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 ac_cv_header_zlib_h=$ac_header_preproc
9034 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9035 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9038 if test $ac_cv_header_zlib_h = yes; then
9041 { { echo "$as_me:$LINENO: error: zlib header not found
9042 If you have zlib already installed, see config.log for details on the
9043 failure. It is possible the compiler isn't looking in the proper directory.
9044 Use --without-zlib to disable zlib support." >&5
9045 echo "$as_me: error: zlib header not found
9046 If you have zlib already installed, see config.log for details on the
9047 failure. It is possible the compiler isn't looking in the proper directory.
9048 Use --without-zlib to disable zlib support." >&2;}
9049 { (exit 1); exit 1; }; }
9055 if test "$with_krb4" = yes ; then
9056 if test "${ac_cv_header_krb_h+set}" = set; then
9057 echo "$as_me:$LINENO: checking for krb.h" >&5
9058 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
9059 if test "${ac_cv_header_krb_h+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9063 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
9065 # Is the header compilable?
9066 echo "$as_me:$LINENO: checking krb.h usability" >&5
9067 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
9068 cat >conftest.$ac_ext <<_ACEOF
9069 #line $LINENO "configure"
9070 #include "confdefs.h"
9071 $ac_includes_default
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_header_compiler=yes
9088 echo "$as_me: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 ac_header_compiler=no
9092 rm -f conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking krb.h presence" >&5
9098 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 #line $LINENO "configure"
9101 #include "confdefs.h"
9104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9107 egrep -v '^ *\+' conftest.er1 >conftest.err
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev/null; then
9112 if test -s conftest.err; then
9113 ac_cpp_err=$ac_c_preproc_warn_flag
9120 if test -z "$ac_cpp_err"; then
9121 ac_header_preproc=yes
9123 echo "$as_me: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9125 ac_header_preproc=no
9127 rm -f conftest.err conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9129 echo "${ECHO_T}$ac_header_preproc" >&6
9131 # So? What about this header?
9132 case $ac_header_compiler:$ac_header_preproc in
9134 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
9135 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
9137 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
9139 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
9140 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
9142 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
9143 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
9144 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
9146 echo "$as_me:$LINENO: checking for krb.h" >&5
9147 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
9148 if test "${ac_cv_header_krb_h+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 ac_cv_header_krb_h=$ac_header_preproc
9153 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9154 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
9157 if test $ac_cv_header_krb_h = yes; then
9160 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
9161 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
9162 { (exit 1); exit 1; }; }
9168 if test "$with_krb5" = yes ; then
9169 if test "${ac_cv_header_krb5_h+set}" = set; then
9170 echo "$as_me:$LINENO: checking for krb5.h" >&5
9171 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9172 if test "${ac_cv_header_krb5_h+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9176 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9178 # Is the header compilable?
9179 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9180 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9182 #line $LINENO "configure"
9183 #include "confdefs.h"
9184 $ac_includes_default
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_header_compiler=yes
9201 echo "$as_me: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 ac_header_compiler=no
9205 rm -f conftest.$ac_objext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9207 echo "${ECHO_T}$ac_header_compiler" >&6
9209 # Is the header present?
9210 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9211 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9214 #include "confdefs.h"
9217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9220 egrep -v '^ *\+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } >/dev/null; then
9225 if test -s conftest.err; then
9226 ac_cpp_err=$ac_c_preproc_warn_flag
9233 if test -z "$ac_cpp_err"; then
9234 ac_header_preproc=yes
9236 echo "$as_me: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9238 ac_header_preproc=no
9240 rm -f conftest.err conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9242 echo "${ECHO_T}$ac_header_preproc" >&6
9244 # So? What about this header?
9245 case $ac_header_compiler:$ac_header_preproc in
9247 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9248 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9250 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
9252 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9253 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9255 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9257 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
9259 echo "$as_me:$LINENO: checking for krb5.h" >&5
9260 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9261 if test "${ac_cv_header_krb5_h+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 ac_cv_header_krb5_h=$ac_header_preproc
9266 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9267 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9270 if test $ac_cv_header_krb5_h = yes; then
9273 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9274 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9275 { (exit 1); exit 1; }; }
9281 if test "$with_openssl" = yes ; then
9282 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9283 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9284 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9285 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9289 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9291 # Is the header compilable?
9292 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9293 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9294 cat >conftest.$ac_ext <<_ACEOF
9295 #line $LINENO "configure"
9296 #include "confdefs.h"
9297 $ac_includes_default
9298 #include <openssl/ssl.h>
9300 rm -f conftest.$ac_objext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302 (eval $ac_compile) 2>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -s conftest.$ac_objext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_header_compiler=yes
9314 echo "$as_me: failed program was:" >&5
9315 cat conftest.$ac_ext >&5
9316 ac_header_compiler=no
9318 rm -f conftest.$ac_objext conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9320 echo "${ECHO_T}$ac_header_compiler" >&6
9322 # Is the header present?
9323 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9324 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9328 #include <openssl/ssl.h>
9330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9333 egrep -v '^ *\+' conftest.er1 >conftest.err
9335 cat conftest.err >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } >/dev/null; then
9338 if test -s conftest.err; then
9339 ac_cpp_err=$ac_c_preproc_warn_flag
9346 if test -z "$ac_cpp_err"; then
9347 ac_header_preproc=yes
9349 echo "$as_me: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 ac_header_preproc=no
9353 rm -f conftest.err conftest.$ac_ext
9354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9355 echo "${ECHO_T}$ac_header_preproc" >&6
9357 # So? What about this header?
9358 case $ac_header_compiler:$ac_header_preproc in
9360 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9361 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9362 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9363 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
9365 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9366 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9368 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9370 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
9372 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9373 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9374 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9379 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9380 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9383 if test $ac_cv_header_openssl_ssl_h = yes; then
9386 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9387 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9388 { (exit 1); exit 1; }; }
9392 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9393 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9394 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9395 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9399 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9401 # Is the header compilable?
9402 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9403 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9406 #include "confdefs.h"
9407 $ac_includes_default
9408 #include <openssl/err.h>
9410 rm -f conftest.$ac_objext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9412 (eval $ac_compile) 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -s conftest.$ac_objext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_header_compiler=yes
9424 echo "$as_me: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 ac_header_compiler=no
9428 rm -f conftest.$ac_objext conftest.$ac_ext
9429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9430 echo "${ECHO_T}$ac_header_compiler" >&6
9432 # Is the header present?
9433 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9434 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9435 cat >conftest.$ac_ext <<_ACEOF
9436 #line $LINENO "configure"
9437 #include "confdefs.h"
9438 #include <openssl/err.h>
9440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9443 egrep -v '^ *\+' conftest.er1 >conftest.err
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } >/dev/null; then
9448 if test -s conftest.err; then
9449 ac_cpp_err=$ac_c_preproc_warn_flag
9456 if test -z "$ac_cpp_err"; then
9457 ac_header_preproc=yes
9459 echo "$as_me: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9461 ac_header_preproc=no
9463 rm -f conftest.err conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465 echo "${ECHO_T}$ac_header_preproc" >&6
9467 # So? What about this header?
9468 case $ac_header_compiler:$ac_header_preproc in
9470 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9471 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9473 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9475 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9476 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9478 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9480 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9482 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9483 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9484 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 ac_cv_header_openssl_err_h=$ac_header_preproc
9489 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9490 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9493 if test $ac_cv_header_openssl_err_h = yes; then
9496 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9497 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9498 { (exit 1); exit 1; }; }
9504 if test "$with_pam" = yes ; then
9506 for ac_header in security/pam_appl.h
9508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9510 echo "$as_me:$LINENO: checking for $ac_header" >&5
9511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9518 # Is the header compilable?
9519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9522 #line $LINENO "configure"
9523 #include "confdefs.h"
9524 $ac_includes_default
9525 #include <$ac_header>
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest.$ac_objext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_header_compiler=yes
9541 echo "$as_me: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 ac_header_compiler=no
9545 rm -f conftest.$ac_objext conftest.$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9547 echo "${ECHO_T}$ac_header_compiler" >&6
9549 # Is the header present?
9550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9553 #line $LINENO "configure"
9554 #include "confdefs.h"
9555 #include <$ac_header>
9557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9560 egrep -v '^ *\+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } >/dev/null; then
9565 if test -s conftest.err; then
9566 ac_cpp_err=$ac_c_preproc_warn_flag
9573 if test -z "$ac_cpp_err"; then
9574 ac_header_preproc=yes
9576 echo "$as_me: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 ac_header_preproc=no
9580 rm -f conftest.err conftest.$ac_ext
9581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9582 echo "${ECHO_T}$ac_header_preproc" >&6
9584 # So? What about this header?
9585 case $ac_header_compiler:$ac_header_preproc in
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9599 echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 eval "$as_ac_Header=$ac_header_preproc"
9606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9611 cat >>confdefs.h <<_ACEOF
9612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9617 for ac_header in pam/pam_appl.h
9619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621 echo "$as_me:$LINENO: checking for $ac_header" >&5
9622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9629 # Is the header compilable?
9630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9632 cat >conftest.$ac_ext <<_ACEOF
9633 #line $LINENO "configure"
9634 #include "confdefs.h"
9635 $ac_includes_default
9636 #include <$ac_header>
9638 rm -f conftest.$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -s conftest.$ac_objext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_header_compiler=yes
9652 echo "$as_me: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9654 ac_header_compiler=no
9656 rm -f conftest.$ac_objext conftest.$ac_ext
9657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9658 echo "${ECHO_T}$ac_header_compiler" >&6
9660 # Is the header present?
9661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 #include "confdefs.h"
9666 #include <$ac_header>
9668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9671 egrep -v '^ *\+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } >/dev/null; then
9676 if test -s conftest.err; then
9677 ac_cpp_err=$ac_c_preproc_warn_flag
9684 if test -z "$ac_cpp_err"; then
9685 ac_header_preproc=yes
9687 echo "$as_me: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9689 ac_header_preproc=no
9691 rm -f conftest.err conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693 echo "${ECHO_T}$ac_header_preproc" >&6
9695 # So? What about this header?
9696 case $ac_header_compiler:$ac_header_preproc in
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9710 echo "$as_me:$LINENO: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 eval "$as_ac_Header=$ac_header_preproc"
9717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9722 cat >>confdefs.h <<_ACEOF
9723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9728 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9729 { (exit 1); exit 1; }; }
9740 if test "$with_rendezvous" = yes ; then
9741 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9742 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9743 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9744 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9748 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9750 # Is the header compilable?
9751 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9752 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9755 #include "confdefs.h"
9756 $ac_includes_default
9757 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9759 rm -f conftest.$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761 (eval $ac_compile) 2>&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -s conftest.$ac_objext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_header_compiler=yes
9773 echo "$as_me: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 ac_header_compiler=no
9777 rm -f conftest.$ac_objext conftest.$ac_ext
9778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9779 echo "${ECHO_T}$ac_header_compiler" >&6
9781 # Is the header present?
9782 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9783 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9784 cat >conftest.$ac_ext <<_ACEOF
9785 #line $LINENO "configure"
9786 #include "confdefs.h"
9787 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9792 egrep -v '^ *\+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev/null; then
9797 if test -s conftest.err; then
9798 ac_cpp_err=$ac_c_preproc_warn_flag
9805 if test -z "$ac_cpp_err"; then
9806 ac_header_preproc=yes
9808 echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 ac_header_preproc=no
9812 rm -f conftest.err conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc in
9819 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9822 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9824 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9825 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9827 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9829 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9831 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9832 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9833 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9838 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9839 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9842 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9845 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9846 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9847 { (exit 1); exit 1; }; }
9855 ## Types, structures, compiler characteristics
9859 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9860 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9861 if test "${ac_cv_c_const+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 #include "confdefs.h"
9868 #ifdef F77_DUMMY_MAIN
9872 int F77_DUMMY_MAIN() { return 1; }
9877 /* FIXME: Include the comments suggested by Paul. */
9879 /* Ultrix mips cc rejects this. */
9880 typedef int charset[2];
9882 /* SunOS 4.1.1 cc rejects this. */
9883 char const *const *ccp;
9885 /* NEC SVR4.0.2 mips cc rejects this. */
9886 struct point {int x, y;};
9887 static struct point const zero = {0,0};
9888 /* AIX XL C 1.02.0.0 rejects this.
9889 It does not let you subtract one const X* pointer from another in
9890 an arm of an if-expression whose if-part is not a constant
9892 const char *g = "string";
9893 ccp = &g + (g ? g-g : 0);
9894 /* HPUX 7.0 cc rejects these. */
9897 ccp = (char const *const *) p;
9898 { /* SCO 3.2v4 cc rejects this. */
9900 char const *s = 0 ? (char *) 0 : (char const *) 0;
9904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9906 const int *foo = &x[0];
9909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9910 typedef const int *iptr;
9914 { /* AIX XL C 1.02.0.0 rejects this saying
9915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9916 struct s { int j; const int *ap[3]; };
9917 struct s *b; b->j = 5;
9919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9928 rm -f conftest.$ac_objext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930 (eval $ac_compile) 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -s conftest.$ac_objext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9942 echo "$as_me: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9946 rm -f conftest.$ac_objext conftest.$ac_ext
9948 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9949 echo "${ECHO_T}$ac_cv_c_const" >&6
9950 if test $ac_cv_c_const = no; then
9952 cat >>confdefs.h <<\_ACEOF
9958 echo "$as_me:$LINENO: checking for inline" >&5
9959 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9960 if test "${ac_cv_c_inline+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 for ac_kw in inline __inline__ __inline; do
9965 cat >conftest.$ac_ext <<_ACEOF
9966 #line $LINENO "configure"
9967 #include "confdefs.h"
9970 static $ac_kw foo_t static_foo () {return 0; }
9971 $ac_kw int foo () {return 0; }
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977 (eval $ac_compile) 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -s conftest.$ac_objext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_c_inline=$ac_kw; break
9989 echo "$as_me: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9992 rm -f conftest.$ac_objext conftest.$ac_ext
9996 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9997 echo "${ECHO_T}$ac_cv_c_inline" >&6
9998 case $ac_cv_c_inline in
10001 cat >>confdefs.h <<\_ACEOF
10005 *) cat >>confdefs.h <<_ACEOF
10006 #define inline $ac_cv_c_inline
10011 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10012 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10013 if test "${ac_cv_c_stringize+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 cat >conftest.$ac_ext <<_ACEOF
10017 #line $LINENO "configure"
10018 #include "confdefs.h"
10021 char *s = x(teststring);
10023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10024 egrep "#teststring" >/dev/null 2>&1; then
10025 ac_cv_c_stringize=no
10027 ac_cv_c_stringize=yes
10032 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
10033 echo "${ECHO_T}$ac_cv_c_stringize" >&6
10034 if test $ac_cv_c_stringize = yes; then
10036 cat >>confdefs.h <<\_ACEOF
10037 #define HAVE_STRINGIZE 1
10042 echo "$as_me:$LINENO: checking for signed types" >&5
10043 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
10044 if test "${pgac_cv_c_signed+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 cat >conftest.$ac_ext <<_ACEOF
10048 #line $LINENO "configure"
10049 #include "confdefs.h"
10051 #ifdef F77_DUMMY_MAIN
10052 # ifdef __cplusplus
10055 int F77_DUMMY_MAIN() { return 1; }
10060 signed char c; signed short s; signed int i;
10065 rm -f conftest.$ac_objext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10067 (eval $ac_compile) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -s conftest.$ac_objext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 pgac_cv_c_signed=yes
10079 echo "$as_me: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 pgac_cv_c_signed=no
10083 rm -f conftest.$ac_objext conftest.$ac_ext
10085 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10086 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10087 if test x"$pgac_cv_c_signed" = xno ; then
10089 cat >>confdefs.h <<\_ACEOF
10094 echo "$as_me:$LINENO: checking for working volatile" >&5
10095 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10096 if test "${ac_cv_c_volatile+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10101 #include "confdefs.h"
10103 #ifdef F77_DUMMY_MAIN
10104 # ifdef __cplusplus
10107 int F77_DUMMY_MAIN() { return 1; }
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -s conftest.$ac_objext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_c_volatile=yes
10133 echo "$as_me: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10135 ac_cv_c_volatile=no
10137 rm -f conftest.$ac_objext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10140 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10141 if test $ac_cv_c_volatile = no; then
10143 cat >>confdefs.h <<\_ACEOF
10149 echo "$as_me:$LINENO: checking for __func__" >&5
10150 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10151 if test "${pgac_cv_funcname_func_support+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 cat >conftest.$ac_ext <<_ACEOF
10155 #line $LINENO "configure"
10156 #include "confdefs.h"
10158 #ifdef F77_DUMMY_MAIN
10159 # ifdef __cplusplus
10162 int F77_DUMMY_MAIN() { return 1; }
10167 printf("%s\n", __func__);
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 pgac_cv_funcname_func_support=yes
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 pgac_cv_funcname_func_support=no
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10193 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10194 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10196 cat >>confdefs.h <<\_ACEOF
10197 #define HAVE_FUNCNAME__FUNC 1
10201 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10202 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10203 if test "${pgac_cv_funcname_function_support+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10208 #include "confdefs.h"
10210 #ifdef F77_DUMMY_MAIN
10211 # ifdef __cplusplus
10214 int F77_DUMMY_MAIN() { return 1; }
10219 printf("%s\n", __FUNCTION__);
10224 rm -f conftest.$ac_objext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10226 (eval $ac_compile) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -s conftest.$ac_objext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 pgac_cv_funcname_function_support=yes
10238 echo "$as_me: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 pgac_cv_funcname_function_support=no
10242 rm -f conftest.$ac_objext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10245 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10246 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10248 cat >>confdefs.h <<\_ACEOF
10249 #define HAVE_FUNCNAME__FUNCTION 1
10254 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10255 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10256 if test "${ac_cv_struct_tm+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 cat >conftest.$ac_ext <<_ACEOF
10260 #line $LINENO "configure"
10261 #include "confdefs.h"
10262 #include <sys/types.h>
10265 #ifdef F77_DUMMY_MAIN
10266 # ifdef __cplusplus
10269 int F77_DUMMY_MAIN() { return 1; }
10274 struct tm *tp; tp->tm_sec;
10279 rm -f conftest.$ac_objext
10280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10281 (eval $ac_compile) 2>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_cv_struct_tm=time.h
10293 echo "$as_me: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10295 ac_cv_struct_tm=sys/time.h
10297 rm -f conftest.$ac_objext conftest.$ac_ext
10299 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10300 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10301 if test $ac_cv_struct_tm = sys/time.h; then
10303 cat >>confdefs.h <<\_ACEOF
10304 #define TM_IN_SYS_TIME 1
10309 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10310 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10311 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 cat >conftest.$ac_ext <<_ACEOF
10315 #line $LINENO "configure"
10316 #include "confdefs.h"
10317 #include <sys/types.h>
10318 #include <$ac_cv_struct_tm>
10321 #ifdef F77_DUMMY_MAIN
10322 # ifdef __cplusplus
10325 int F77_DUMMY_MAIN() { return 1; }
10330 static struct tm ac_aggr;
10331 if (ac_aggr.tm_zone)
10337 rm -f conftest.$ac_objext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_cv_member_struct_tm_tm_zone=yes
10351 echo "$as_me: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 ac_cv_member_struct_tm_tm_zone=no
10355 rm -f conftest.$ac_objext conftest.$ac_ext
10357 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10358 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10359 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE_STRUCT_TM_TM_ZONE 1
10368 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10370 cat >>confdefs.h <<\_ACEOF
10371 #define HAVE_TM_ZONE 1
10375 echo "$as_me:$LINENO: checking for tzname" >&5
10376 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10377 if test "${ac_cv_var_tzname+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 cat >conftest.$ac_ext <<_ACEOF
10381 #line $LINENO "configure"
10382 #include "confdefs.h"
10384 #ifndef tzname /* For SGI. */
10385 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10388 #ifdef F77_DUMMY_MAIN
10389 # ifdef __cplusplus
10392 int F77_DUMMY_MAIN() { return 1; }
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404 (eval $ac_link) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_var_tzname=yes
10416 echo "$as_me: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 ac_cv_var_tzname=no
10420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10423 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10424 if test $ac_cv_var_tzname = yes; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define HAVE_TZNAME 1
10432 echo "$as_me:$LINENO: checking for union semun" >&5
10433 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
10434 if test "${ac_cv_type_union_semun+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10438 #line $LINENO "configure"
10439 #include "confdefs.h"
10440 #include <sys/types.h>
10441 #include <sys/ipc.h>
10442 #include <sys/sem.h>
10444 #ifdef F77_DUMMY_MAIN
10445 # ifdef __cplusplus
10448 int F77_DUMMY_MAIN() { return 1; }
10453 if ((union semun *) 0)
10455 if (sizeof (union semun))
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_type_union_semun=yes
10475 echo "$as_me: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 ac_cv_type_union_semun=no
10479 rm -f conftest.$ac_objext conftest.$ac_ext
10481 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
10482 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
10483 if test $ac_cv_type_union_semun = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_UNION_SEMUN 1
10492 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
10493 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
10494 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10498 #line $LINENO "configure"
10499 #include "confdefs.h"
10500 #include <sys/types.h>
10501 #ifdef HAVE_SYS_UN_H
10502 #include <sys/un.h>
10506 #ifdef F77_DUMMY_MAIN
10507 # ifdef __cplusplus
10510 int F77_DUMMY_MAIN() { return 1; }
10515 if ((struct sockaddr_un *) 0)
10517 if (sizeof (struct sockaddr_un))
10523 rm -f conftest.$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_cv_type_struct_sockaddr_un=yes
10537 echo "$as_me: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 ac_cv_type_struct_sockaddr_un=no
10541 rm -f conftest.$ac_objext conftest.$ac_ext
10543 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
10544 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
10545 if test $ac_cv_type_struct_sockaddr_un = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define HAVE_STRUCT_SOCKADDR_UN 1
10552 cat >>confdefs.h <<\_ACEOF
10553 #define HAVE_UNIX_SOCKETS 1
10558 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
10559 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10560 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 cat >conftest.$ac_ext <<_ACEOF
10564 #line $LINENO "configure"
10565 #include "confdefs.h"
10566 #include <sys/types.h>
10567 #ifdef HAVE_SYS_SOCKET_H
10568 #include <sys/socket.h>
10572 #ifdef F77_DUMMY_MAIN
10573 # ifdef __cplusplus
10576 int F77_DUMMY_MAIN() { return 1; }
10581 if ((struct sockaddr_storage *) 0)
10583 if (sizeof (struct sockaddr_storage))
10589 rm -f conftest.$ac_objext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -s conftest.$ac_objext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_type_struct_sockaddr_storage=yes
10603 echo "$as_me: failed program was:" >&5
10604 cat conftest.$ac_ext >&5
10605 ac_cv_type_struct_sockaddr_storage=no
10607 rm -f conftest.$ac_objext conftest.$ac_ext
10609 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10610 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10611 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10613 cat >>confdefs.h <<_ACEOF
10614 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10620 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
10621 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
10622 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 #include "confdefs.h"
10628 #include <sys/types.h>
10629 #ifdef HAVE_SYS_SOCKET_H
10630 #include <sys/socket.h>
10634 #ifdef F77_DUMMY_MAIN
10635 # ifdef __cplusplus
10638 int F77_DUMMY_MAIN() { return 1; }
10643 static struct sockaddr_storage ac_aggr;
10644 if (ac_aggr.ss_family)
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652 (eval $ac_compile) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -s conftest.$ac_objext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_member_struct_sockaddr_storage_ss_family=yes
10664 echo "$as_me: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 ac_cv_member_struct_sockaddr_storage_ss_family=no
10668 rm -f conftest.$ac_objext conftest.$ac_ext
10670 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10671 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10672 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10674 cat >>confdefs.h <<_ACEOF
10675 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10680 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10681 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10682 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 cat >conftest.$ac_ext <<_ACEOF
10686 #line $LINENO "configure"
10687 #include "confdefs.h"
10688 #include <sys/types.h>
10689 #ifdef HAVE_SYS_SOCKET_H
10690 #include <sys/socket.h>
10694 #ifdef F77_DUMMY_MAIN
10695 # ifdef __cplusplus
10698 int F77_DUMMY_MAIN() { return 1; }
10703 static struct sockaddr_storage ac_aggr;
10704 if (ac_aggr.__ss_family)
10710 rm -f conftest.$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -s conftest.$ac_objext'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10724 echo "$as_me: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10726 ac_cv_member_struct_sockaddr_storage___ss_family=no
10728 rm -f conftest.$ac_objext conftest.$ac_ext
10730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10731 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10732 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10734 cat >>confdefs.h <<_ACEOF
10735 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10740 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10741 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10742 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10747 #include "confdefs.h"
10748 #include <sys/types.h>
10749 #ifdef HAVE_SYS_SOCKET_H
10750 #include <sys/socket.h>
10754 #ifdef F77_DUMMY_MAIN
10755 # ifdef __cplusplus
10758 int F77_DUMMY_MAIN() { return 1; }
10763 static struct sockaddr_storage ac_aggr;
10764 if (ac_aggr.ss_len)
10770 rm -f conftest.$ac_objext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772 (eval $ac_compile) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -s conftest.$ac_objext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10784 echo "$as_me: failed program was:" >&5
10785 cat conftest.$ac_ext >&5
10786 ac_cv_member_struct_sockaddr_storage_ss_len=no
10788 rm -f conftest.$ac_objext conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10791 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10792 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10800 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10801 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10802 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10807 #include "confdefs.h"
10808 #include <sys/types.h>
10809 #ifdef HAVE_SYS_SOCKET_H
10810 #include <sys/socket.h>
10814 #ifdef F77_DUMMY_MAIN
10815 # ifdef __cplusplus
10818 int F77_DUMMY_MAIN() { return 1; }
10823 static struct sockaddr_storage ac_aggr;
10824 if (ac_aggr.__ss_len)
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10844 echo "$as_me: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 ac_cv_member_struct_sockaddr_storage___ss_len=no
10848 rm -f conftest.$ac_objext conftest.$ac_ext
10850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10851 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10852 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10860 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10861 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10862 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10866 #line $LINENO "configure"
10867 #include "confdefs.h"
10868 #include <sys/types.h>
10869 #ifdef HAVE_SYS_SOCKET_H
10870 #include <sys/socket.h>
10874 #ifdef F77_DUMMY_MAIN
10875 # ifdef __cplusplus
10878 int F77_DUMMY_MAIN() { return 1; }
10883 static struct sockaddr ac_aggr;
10884 if (ac_aggr.sa_len)
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -s conftest.$ac_objext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 ac_cv_member_struct_sockaddr_sa_len=yes
10904 echo "$as_me: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 ac_cv_member_struct_sockaddr_sa_len=no
10908 rm -f conftest.$ac_objext conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10911 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10912 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10921 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10922 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10923 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 cat >conftest.$ac_ext <<_ACEOF
10927 #line $LINENO "configure"
10928 #include "confdefs.h"
10929 #include <sys/types.h>
10930 #include <sys/socket.h>
10934 #ifdef F77_DUMMY_MAIN
10935 # ifdef __cplusplus
10938 int F77_DUMMY_MAIN() { return 1; }
10943 if ((struct addrinfo *) 0)
10945 if (sizeof (struct addrinfo))
10951 rm -f conftest.$ac_objext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10953 (eval $ac_compile) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_type_struct_addrinfo=yes
10965 echo "$as_me: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10967 ac_cv_type_struct_addrinfo=no
10969 rm -f conftest.$ac_objext conftest.$ac_ext
10971 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10972 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10973 if test $ac_cv_type_struct_addrinfo = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_STRUCT_ADDRINFO 1
10983 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10984 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10985 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 cat >conftest.$ac_ext <<_ACEOF
10989 #line $LINENO "configure"
10990 #include "confdefs.h"
10991 #include <sys/param.h>
10992 #include <sys/types.h>
10993 #include <sys/socket.h>
10994 #include <sys/ucred.h>
10996 #ifdef F77_DUMMY_MAIN
10997 # ifdef __cplusplus
11000 int F77_DUMMY_MAIN() { return 1; }
11005 if ((struct cmsgcred *) 0)
11007 if (sizeof (struct cmsgcred))
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -s conftest.$ac_objext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_type_struct_cmsgcred=yes
11027 echo "$as_me: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 ac_cv_type_struct_cmsgcred=no
11031 rm -f conftest.$ac_objext conftest.$ac_ext
11033 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
11034 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
11035 if test $ac_cv_type_struct_cmsgcred = yes; then
11037 cat >>confdefs.h <<_ACEOF
11038 #define HAVE_STRUCT_CMSGCRED 1
11043 echo "$as_me:$LINENO: checking for struct fcred" >&5
11044 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
11045 if test "${ac_cv_type_struct_fcred+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11051 #include <sys/param.h>
11052 #include <sys/types.h>
11053 #include <sys/socket.h>
11054 #include <sys/ucred.h>
11056 #ifdef F77_DUMMY_MAIN
11057 # ifdef __cplusplus
11060 int F77_DUMMY_MAIN() { return 1; }
11065 if ((struct fcred *) 0)
11067 if (sizeof (struct fcred))
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -s conftest.$ac_objext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_cv_type_struct_fcred=yes
11087 echo "$as_me: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 ac_cv_type_struct_fcred=no
11091 rm -f conftest.$ac_objext conftest.$ac_ext
11093 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
11094 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
11095 if test $ac_cv_type_struct_fcred = yes; then
11097 cat >>confdefs.h <<_ACEOF
11098 #define HAVE_STRUCT_FCRED 1
11103 echo "$as_me:$LINENO: checking for struct sockcred" >&5
11104 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
11105 if test "${ac_cv_type_struct_sockcred+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 cat >conftest.$ac_ext <<_ACEOF
11109 #line $LINENO "configure"
11110 #include "confdefs.h"
11111 #include <sys/param.h>
11112 #include <sys/types.h>
11113 #include <sys/socket.h>
11114 #include <sys/ucred.h>
11116 #ifdef F77_DUMMY_MAIN
11117 # ifdef __cplusplus
11120 int F77_DUMMY_MAIN() { return 1; }
11125 if ((struct sockcred *) 0)
11127 if (sizeof (struct sockcred))
11133 rm -f conftest.$ac_objext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11135 (eval $ac_compile) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -s conftest.$ac_objext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_cv_type_struct_sockcred=yes
11147 echo "$as_me: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11149 ac_cv_type_struct_sockcred=no
11151 rm -f conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
11154 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
11155 if test $ac_cv_type_struct_sockcred = yes; then
11157 cat >>confdefs.h <<_ACEOF
11158 #define HAVE_STRUCT_SOCKCRED 1
11165 echo "$as_me:$LINENO: checking for struct option" >&5
11166 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
11167 if test "${ac_cv_type_struct_option+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11172 #include "confdefs.h"
11173 #ifdef HAVE_GETOPT_H
11174 #include <getopt.h>
11177 #ifdef F77_DUMMY_MAIN
11178 # ifdef __cplusplus
11181 int F77_DUMMY_MAIN() { return 1; }
11186 if ((struct option *) 0)
11188 if (sizeof (struct option))
11194 rm -f conftest.$ac_objext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_cv_type_struct_option=yes
11208 echo "$as_me: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 ac_cv_type_struct_option=no
11212 rm -f conftest.$ac_objext conftest.$ac_ext
11214 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
11215 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
11216 if test $ac_cv_type_struct_option = yes; then
11218 cat >>confdefs.h <<_ACEOF
11219 #define HAVE_STRUCT_OPTION 1
11226 if test "$with_zlib" = yes; then
11227 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
11228 # did not). While we could work around the lack of z_streamp, it
11229 # seems unwise to encourage people to use such old zlib versions...
11230 echo "$as_me:$LINENO: checking for z_streamp" >&5
11231 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
11232 if test "${ac_cv_type_z_streamp+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11236 #line $LINENO "configure"
11237 #include "confdefs.h"
11240 #ifdef F77_DUMMY_MAIN
11241 # ifdef __cplusplus
11244 int F77_DUMMY_MAIN() { return 1; }
11249 if ((z_streamp *) 0)
11251 if (sizeof (z_streamp))
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -s conftest.$ac_objext'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11269 ac_cv_type_z_streamp=yes
11271 echo "$as_me: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 ac_cv_type_z_streamp=no
11275 rm -f conftest.$ac_objext conftest.$ac_ext
11277 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
11278 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
11279 if test $ac_cv_type_z_streamp = yes; then
11282 { { echo "$as_me:$LINENO: error: zlib version is too old
11283 Use --without-zlib to disable zlib support." >&5
11284 echo "$as_me: error: zlib version is too old
11285 Use --without-zlib to disable zlib support." >&2;}
11286 { (exit 1); exit 1; }; }
11291 if test "$with_krb5" = yes; then
11292 # Check for differences between MIT and Heimdal (KTH) releases
11293 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
11294 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
11295 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 cat >conftest.$ac_ext <<_ACEOF
11299 #line $LINENO "configure"
11300 #include "confdefs.h"
11303 #ifdef F77_DUMMY_MAIN
11304 # ifdef __cplusplus
11307 int F77_DUMMY_MAIN() { return 1; }
11312 static krb5_ticket ac_aggr;
11313 if (ac_aggr.enc_part2)
11319 rm -f conftest.$ac_objext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321 (eval $ac_compile) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 ac_cv_member_krb5_ticket_enc_part2=yes
11333 echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 ac_cv_member_krb5_ticket_enc_part2=no
11337 rm -f conftest.$ac_objext conftest.$ac_ext
11339 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
11340 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
11341 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
11343 cat >>confdefs.h <<_ACEOF
11344 #define HAVE_KRB5_TICKET_ENC_PART2 1
11349 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
11350 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
11351 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11356 #include "confdefs.h"
11359 #ifdef F77_DUMMY_MAIN
11360 # ifdef __cplusplus
11363 int F77_DUMMY_MAIN() { return 1; }
11368 static krb5_ticket ac_aggr;
11369 if (ac_aggr.client)
11375 rm -f conftest.$ac_objext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377 (eval $ac_compile) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 ac_cv_member_krb5_ticket_client=yes
11389 echo "$as_me: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11391 ac_cv_member_krb5_ticket_client=no
11393 rm -f conftest.$ac_objext conftest.$ac_ext
11395 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
11396 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
11397 if test $ac_cv_member_krb5_ticket_client = yes; then
11399 cat >>confdefs.h <<_ACEOF
11400 #define HAVE_KRB5_TICKET_CLIENT 1
11405 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
11406 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
11407 { (exit 1); exit 1; }; }
11412 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
11413 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
11414 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11418 #line $LINENO "configure"
11419 #include "confdefs.h"
11422 #ifdef F77_DUMMY_MAIN
11423 # ifdef __cplusplus
11426 int F77_DUMMY_MAIN() { return 1; }
11431 static krb5_error ac_aggr;
11432 if (ac_aggr.text.data)
11438 rm -f conftest.$ac_objext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440 (eval $ac_compile) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
11444 { ac_try='test -s conftest.$ac_objext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_cv_member_krb5_error_text_data=yes
11452 echo "$as_me: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11454 ac_cv_member_krb5_error_text_data=no
11456 rm -f conftest.$ac_objext conftest.$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
11459 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
11460 if test $ac_cv_member_krb5_error_text_data = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define HAVE_KRB5_ERROR_TEXT_DATA 1
11468 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
11469 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
11470 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11474 #line $LINENO "configure"
11475 #include "confdefs.h"
11478 #ifdef F77_DUMMY_MAIN
11479 # ifdef __cplusplus
11482 int F77_DUMMY_MAIN() { return 1; }
11487 static krb5_error ac_aggr;
11488 if (ac_aggr.e_data)
11494 rm -f conftest.$ac_objext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496 (eval $ac_compile) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_member_krb5_error_e_data=yes
11508 echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 ac_cv_member_krb5_error_e_data=no
11512 rm -f conftest.$ac_objext conftest.$ac_ext
11514 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
11515 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
11516 if test $ac_cv_member_krb5_error_e_data = yes; then
11518 cat >>confdefs.h <<_ACEOF
11519 #define HAVE_KRB5_ERROR_E_DATA 1
11524 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
11525 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
11526 { (exit 1); exit 1; }; }
11534 ## Functions, global variables
11537 echo "$as_me:$LINENO: checking for int timezone" >&5
11538 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
11539 if test "${pgac_cv_var_int_timezone+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 cat >conftest.$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11547 #ifdef F77_DUMMY_MAIN
11548 # ifdef __cplusplus
11551 int F77_DUMMY_MAIN() { return 1; }
11557 res = timezone / 60;
11559 res = _timezone / 60;
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -s conftest$ac_exeext'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 pgac_cv_var_int_timezone=yes
11579 echo "$as_me: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11581 pgac_cv_var_int_timezone=no
11583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11585 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
11586 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
11587 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11589 cat >>confdefs.h <<\_ACEOF
11590 #define HAVE_INT_TIMEZONE
11594 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
11595 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
11596 if test "${ac_cv_func_accept_return+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 if test "${ac_cv_func_accept_arg1+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 if test "${ac_cv_func_accept_arg2+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 if test "${ac_cv_func_accept_arg3+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
11609 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
11610 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11611 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11612 cat >conftest.$ac_ext <<_ACEOF
11613 #line $LINENO "configure"
11614 #include "confdefs.h"
11615 #ifdef HAVE_SYS_TYPES_H
11616 #include <sys/types.h>
11618 #ifdef HAVE_SYS_SOCKET_H
11619 #include <sys/socket.h>
11621 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11622 #ifdef F77_DUMMY_MAIN
11623 # ifdef __cplusplus
11626 int F77_DUMMY_MAIN() { return 1; }
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638 (eval $ac_compile) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_not_found=no; break 4
11650 echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11654 rm -f conftest.$ac_objext conftest.$ac_ext
11659 if test "$ac_not_found" = yes; then
11660 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11661 echo "$as_me: error: could not determine argument types" >&2;}
11662 { (exit 1); exit 1; }; }
11664 if test "$ac_cv_func_accept_arg3" = "void"; then
11665 ac_cv_func_accept_arg3=int
11675 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
11676 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11678 cat >>confdefs.h <<_ACEOF
11679 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11683 cat >>confdefs.h <<_ACEOF
11684 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11688 cat >>confdefs.h <<_ACEOF
11689 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11693 cat >>confdefs.h <<_ACEOF
11694 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11698 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11699 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11700 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11705 #include "confdefs.h"
11706 #include <sys/time.h>
11707 #ifdef F77_DUMMY_MAIN
11708 # ifdef __cplusplus
11711 int F77_DUMMY_MAIN() { return 1; }
11716 struct timeval *tp;
11717 struct timezone *tzp;
11718 gettimeofday(tp,tzp);
11723 rm -f conftest.$ac_objext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -s conftest.$ac_objext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 pgac_cv_func_gettimeofday_1arg=no
11737 echo "$as_me: failed program was:" >&5
11738 cat conftest.$ac_ext >&5
11739 pgac_cv_func_gettimeofday_1arg=yes
11741 rm -f conftest.$ac_objext conftest.$ac_ext
11743 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11744 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11745 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11747 cat >>confdefs.h <<\_ACEOF
11748 #define GETTIMEOFDAY_1ARG
11774 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11777 echo "$as_me:$LINENO: checking for $ac_func" >&5
11778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11779 if eval "test \"\${$as_ac_var+set}\" = set"; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 cat >conftest.$ac_ext <<_ACEOF
11783 #line $LINENO "configure"
11784 #include "confdefs.h"
11785 /* System header to define __stub macros and hopefully few prototypes,
11786 which can conflict with char $ac_func (); below. */
11787 #include <assert.h>
11788 /* Override any gcc2 internal prototype to avoid an error. */
11792 /* We use char because int might match the return type of a gcc2
11793 builtin and then its argument prototype would still apply. */
11797 #ifdef F77_DUMMY_MAIN
11798 # ifdef __cplusplus
11801 int F77_DUMMY_MAIN() { return 1; }
11806 /* The GNU C library defines this for functions which it implements
11807 to always fail with ENOSYS. Some functions are actually named
11808 something starting with __ and the normal name is an alias. */
11809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11821 (eval $ac_link) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11833 echo "$as_me: failed program was:" >&5
11834 cat conftest.$ac_ext >&5
11835 eval "$as_ac_var=no"
11837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11841 if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11851 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11852 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 cat >conftest.$ac_ext <<_ACEOF
11856 #line $LINENO "configure"
11857 #include "confdefs.h"
11858 #include <unistd.h>
11860 #ifdef F77_DUMMY_MAIN
11861 # ifdef __cplusplus
11864 int F77_DUMMY_MAIN() { return 1; }
11870 char *p = (char *) fdatasync;
11877 rm -f conftest.$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_cv_have_decl_fdatasync=yes
11891 echo "$as_me: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11893 ac_cv_have_decl_fdatasync=no
11895 rm -f conftest.$ac_objext conftest.$ac_ext
11897 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11898 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11899 if test $ac_cv_have_decl_fdatasync = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define HAVE_DECL_FDATASYNC 1
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_DECL_FDATASYNC 0
11917 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11918 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11919 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11923 #line $LINENO "configure"
11924 #include "confdefs.h"
11925 $ac_includes_default
11926 #include <netinet/in.h>
11928 #ifdef F77_DUMMY_MAIN
11929 # ifdef __cplusplus
11932 int F77_DUMMY_MAIN() { return 1; }
11937 if ((struct sockaddr_in6 *) 0)
11939 if (sizeof (struct sockaddr_in6))
11945 rm -f conftest.$ac_objext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11947 (eval $ac_compile) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -s conftest.$ac_objext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_type_struct_sockaddr_in6=yes
11959 echo "$as_me: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 ac_cv_type_struct_sockaddr_in6=no
11963 rm -f conftest.$ac_objext conftest.$ac_ext
11965 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11966 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11967 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11968 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11969 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11970 if test "${ac_cv_func_inet_ntop+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 cat >conftest.$ac_ext <<_ACEOF
11974 #line $LINENO "configure"
11975 #include "confdefs.h"
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char inet_ntop (); below. */
11978 #include <assert.h>
11979 /* Override any gcc2 internal prototype to avoid an error. */
11983 /* We use char because int might match the return type of a gcc2
11984 builtin and then its argument prototype would still apply. */
11988 #ifdef F77_DUMMY_MAIN
11989 # ifdef __cplusplus
11992 int F77_DUMMY_MAIN() { return 1; }
11997 /* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_cv_func_inet_ntop=yes
12024 echo "$as_me: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 ac_cv_func_inet_ntop=no
12028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12030 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
12031 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
12032 if test $ac_cv_func_inet_ntop = yes; then
12034 cat >>confdefs.h <<\_ACEOF
12035 #define HAVE_IPV6 1
12045 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
12046 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
12047 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12051 #line $LINENO "configure"
12052 #include "confdefs.h"
12053 #include <machine/vmparam.h>
12054 #include <sys/exec.h>
12056 #ifdef F77_DUMMY_MAIN
12057 # ifdef __cplusplus
12060 int F77_DUMMY_MAIN() { return 1; }
12065 PS_STRINGS->ps_nargvstr = 1;
12066 PS_STRINGS->ps_argvstr = "foo";
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 pgac_cv_var_PS_STRINGS=yes
12085 echo "$as_me: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 pgac_cv_var_PS_STRINGS=no
12089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12091 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
12092 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
12093 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
12095 cat >>confdefs.h <<\_ACEOF
12096 #define HAVE_PS_STRINGS
12102 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
12103 # is missing. Yes, there are machines that have only one. We may
12104 # also decide to use snprintf.c if snprintf() is present but does not
12105 # have all the features we need --- see below.
12107 pgac_need_repl_snprintf=no
12109 for ac_func in snprintf
12111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112 echo "$as_me:$LINENO: checking for $ac_func" >&5
12113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12114 if eval "test \"\${$as_ac_var+set}\" = set"; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12119 #include "confdefs.h"
12120 /* System header to define __stub macros and hopefully few prototypes,
12121 which can conflict with char $ac_func (); below. */
12122 #include <assert.h>
12123 /* Override any gcc2 internal prototype to avoid an error. */
12127 /* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12132 #ifdef F77_DUMMY_MAIN
12133 # ifdef __cplusplus
12136 int F77_DUMMY_MAIN() { return 1; }
12141 /* The GNU C library defines this for functions which it implements
12142 to always fail with ENOSYS. Some functions are actually named
12143 something starting with __ and the normal name is an alias. */
12144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12168 echo "$as_me: failed program was:" >&5
12169 cat conftest.$ac_ext >&5
12170 eval "$as_ac_var=no"
12172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12176 if test `eval echo '${'$as_ac_var'}'` = yes; then
12177 cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 pgac_need_repl_snprintf=yes
12187 for ac_func in vsnprintf
12189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12190 echo "$as_me:$LINENO: checking for $ac_func" >&5
12191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12192 if eval "test \"\${$as_ac_var+set}\" = set"; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 cat >conftest.$ac_ext <<_ACEOF
12196 #line $LINENO "configure"
12197 #include "confdefs.h"
12198 /* System header to define __stub macros and hopefully few prototypes,
12199 which can conflict with char $ac_func (); below. */
12200 #include <assert.h>
12201 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12210 #ifdef F77_DUMMY_MAIN
12211 # ifdef __cplusplus
12214 int F77_DUMMY_MAIN() { return 1; }
12219 /* The GNU C library defines this for functions which it implements
12220 to always fail with ENOSYS. Some functions are actually named
12221 something starting with __ and the normal name is an alias. */
12222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12234 (eval $ac_link) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -s conftest$ac_exeext'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 eval "$as_ac_var=yes"
12246 echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 eval "$as_ac_var=no"
12250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12254 if test `eval echo '${'$as_ac_var'}'` = yes; then
12255 cat >>confdefs.h <<_ACEOF
12256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 pgac_need_repl_snprintf=yes
12266 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
12267 # include/c.h will provide declarations. Note this is a separate test
12268 # from whether the functions exist in the C library --- there are
12269 # systems that have the functions but don't bother to declare them :-(
12271 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12272 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
12273 if test "${ac_cv_have_decl_snprintf+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 cat >conftest.$ac_ext <<_ACEOF
12277 #line $LINENO "configure"
12278 #include "confdefs.h"
12279 $ac_includes_default
12280 #ifdef F77_DUMMY_MAIN
12281 # ifdef __cplusplus
12284 int F77_DUMMY_MAIN() { return 1; }
12290 char *p = (char *) snprintf;
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_have_decl_snprintf=yes
12311 echo "$as_me: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 ac_cv_have_decl_snprintf=no
12315 rm -f conftest.$ac_objext conftest.$ac_ext
12317 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12318 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
12319 if test $ac_cv_have_decl_snprintf = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322 #define HAVE_DECL_SNPRINTF 1
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_DECL_SNPRINTF 0
12333 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12334 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
12335 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 cat >conftest.$ac_ext <<_ACEOF
12339 #line $LINENO "configure"
12340 #include "confdefs.h"
12341 $ac_includes_default
12342 #ifdef F77_DUMMY_MAIN
12343 # ifdef __cplusplus
12346 int F77_DUMMY_MAIN() { return 1; }
12352 char *p = (char *) vsnprintf;
12359 rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -s conftest.$ac_objext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_have_decl_vsnprintf=yes
12373 echo "$as_me: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12375 ac_cv_have_decl_vsnprintf=no
12377 rm -f conftest.$ac_objext conftest.$ac_ext
12379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12380 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
12381 if test $ac_cv_have_decl_vsnprintf = yes; then
12383 cat >>confdefs.h <<_ACEOF
12384 #define HAVE_DECL_VSNPRINTF 1
12389 cat >>confdefs.h <<_ACEOF
12390 #define HAVE_DECL_VSNPRINTF 0
12399 # do this one the hard way in case isinf() is a macro
12400 echo "$as_me:$LINENO: checking for isinf" >&5
12401 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
12402 if test "${ac_cv_func_isinf+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 #include "confdefs.h"
12410 #ifdef F77_DUMMY_MAIN
12411 # ifdef __cplusplus
12414 int F77_DUMMY_MAIN() { return 1; }
12419 double x = 0.0; int res = isinf(x);
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_func_isinf=yes
12438 echo "$as_me: failed program was:" >&5
12439 cat conftest.$ac_ext >&5
12440 ac_cv_func_isinf=no
12442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12444 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
12445 echo "${ECHO_T}$ac_cv_func_isinf" >&6
12447 if test $ac_cv_func_isinf = yes ; then
12449 cat >>confdefs.h <<\_ACEOF
12450 #define HAVE_ISINF 1
12454 LIBOBJS="$LIBOBJS isinf.$ac_objext"
12455 # Look for a way to implement a substitute for isinf()
12460 for ac_func in fpclass fp_class fp_class_d class
12462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12463 echo "$as_me:$LINENO: checking for $ac_func" >&5
12464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12465 if eval "test \"\${$as_ac_var+set}\" = set"; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 cat >conftest.$ac_ext <<_ACEOF
12469 #line $LINENO "configure"
12470 #include "confdefs.h"
12471 /* System header to define __stub macros and hopefully few prototypes,
12472 which can conflict with char $ac_func (); below. */
12473 #include <assert.h>
12474 /* Override any gcc2 internal prototype to avoid an error. */
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12483 #ifdef F77_DUMMY_MAIN
12484 # ifdef __cplusplus
12487 int F77_DUMMY_MAIN() { return 1; }
12492 /* The GNU C library defines this for functions which it implements
12493 to always fail with ENOSYS. Some functions are actually named
12494 something starting with __ and the normal name is an alias. */
12495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12507 (eval $ac_link) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 eval "$as_ac_var=yes"
12519 echo "$as_me: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12521 eval "$as_ac_var=no"
12523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12527 if test `eval echo '${'$as_ac_var'}'` = yes; then
12528 cat >>confdefs.h <<_ACEOF
12529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12550 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
12552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12553 echo "$as_me:$LINENO: checking for $ac_func" >&5
12554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12555 if eval "test \"\${$as_ac_var+set}\" = set"; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12561 /* System header to define __stub macros and hopefully few prototypes,
12562 which can conflict with char $ac_func (); below. */
12563 #include <assert.h>
12564 /* Override any gcc2 internal prototype to avoid an error. */
12568 /* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12573 #ifdef F77_DUMMY_MAIN
12574 # ifdef __cplusplus
12577 int F77_DUMMY_MAIN() { return 1; }
12582 /* The GNU C library defines this for functions which it implements
12583 to always fail with ENOSYS. Some functions are actually named
12584 something starting with __ and the normal name is an alias. */
12585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 eval "$as_ac_var=yes"
12609 echo "$as_me: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 eval "$as_ac_var=no"
12613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12617 if test `eval echo '${'$as_ac_var'}'` = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12623 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12629 # system's version of getaddrinfo(), if any, may be used only if we found
12630 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12631 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12633 for ac_func in getaddrinfo
12635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12636 echo "$as_me:$LINENO: checking for $ac_func" >&5
12637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12638 if eval "test \"\${$as_ac_var+set}\" = set"; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 cat >conftest.$ac_ext <<_ACEOF
12642 #line $LINENO "configure"
12643 #include "confdefs.h"
12644 /* System header to define __stub macros and hopefully few prototypes,
12645 which can conflict with char $ac_func (); below. */
12646 #include <assert.h>
12647 /* Override any gcc2 internal prototype to avoid an error. */
12651 /* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12656 #ifdef F77_DUMMY_MAIN
12657 # ifdef __cplusplus
12660 int F77_DUMMY_MAIN() { return 1; }
12665 /* The GNU C library defines this for functions which it implements
12666 to always fail with ENOSYS. Some functions are actually named
12667 something starting with __ and the normal name is an alias. */
12668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680 (eval $ac_link) 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -s conftest$ac_exeext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12692 echo "$as_me: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 eval "$as_ac_var=no"
12696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12700 if test `eval echo '${'$as_ac_var'}'` = yes; then
12701 cat >>confdefs.h <<_ACEOF
12702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12706 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12712 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12715 # similarly, use system's getopt_long() only if system provides struct option.
12716 if test x"$ac_cv_type_struct_option" = xyes ; then
12718 for ac_func in getopt_long
12720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12721 echo "$as_me:$LINENO: checking for $ac_func" >&5
12722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12723 if eval "test \"\${$as_ac_var+set}\" = set"; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 cat >conftest.$ac_ext <<_ACEOF
12727 #line $LINENO "configure"
12728 #include "confdefs.h"
12729 /* System header to define __stub macros and hopefully few prototypes,
12730 which can conflict with char $ac_func (); below. */
12731 #include <assert.h>
12732 /* Override any gcc2 internal prototype to avoid an error. */
12736 /* We use char because int might match the return type of a gcc2
12737 builtin and then its argument prototype would still apply. */
12741 #ifdef F77_DUMMY_MAIN
12742 # ifdef __cplusplus
12745 int F77_DUMMY_MAIN() { return 1; }
12750 /* The GNU C library defines this for functions which it implements
12751 to always fail with ENOSYS. Some functions are actually named
12752 something starting with __ and the normal name is an alias. */
12753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12763 rm -f conftest.$ac_objext conftest$ac_exeext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765 (eval $ac_link) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 eval "$as_ac_var=yes"
12777 echo "$as_me: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12779 eval "$as_ac_var=no"
12781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12785 if test `eval echo '${'$as_ac_var'}'` = yes; then
12786 cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12791 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12797 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12800 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12801 # We override the previous test that said fseeko/ftello didn't exist
12802 # OS tests are also done in include/c.h and port/fseeko.c
12803 case $host_os in bsdi*|netbsd*)
12804 ac_cv_func_fseeko=yes
12807 # Solaris has a very slow qsort in certain cases, so we replace it.
12808 if test "$PORTNAME" = "solaris"; then
12809 LIBOBJS="$LIBOBJS qsort.$ac_objext"
12813 if test "$PORTNAME" = "win32"; then
12814 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12815 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12816 LIBOBJS="$LIBOBJS kill.$ac_objext"
12817 LIBOBJS="$LIBOBJS open.$ac_objext"
12818 LIBOBJS="$LIBOBJS rand.$ac_objext"
12820 cat >>confdefs.h <<\_ACEOF
12821 #define HAVE_SYMLINK 1
12826 if test "$with_readline" = yes; then
12827 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12828 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12829 cat >conftest.$ac_ext <<_ACEOF
12830 #line $LINENO "configure"
12831 #include "confdefs.h"
12833 #ifdef HAVE_READLINE_READLINE_H
12834 # include <readline/readline.h>
12835 #elif defined(HAVE_READLINE_H)
12836 # include <readline.h>
12839 #ifdef F77_DUMMY_MAIN
12840 # ifdef __cplusplus
12843 int F77_DUMMY_MAIN() { return 1; }
12848 rl_completion_append_character = 'x';
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
12859 { ac_try='test -s conftest$ac_exeext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 echo "$as_me:$LINENO: result: yes" >&5
12866 echo "${ECHO_T}yes" >&6
12868 cat >>confdefs.h <<\_ACEOF
12869 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12873 echo "$as_me: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12875 echo "$as_me:$LINENO: result: no" >&5
12876 echo "${ECHO_T}no" >&6
12878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12881 for ac_func in rl_completion_matches rl_filename_completion_function
12883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884 echo "$as_me:$LINENO: checking for $ac_func" >&5
12885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12886 if eval "test \"\${$as_ac_var+set}\" = set"; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12891 #include "confdefs.h"
12892 /* System header to define __stub macros and hopefully few prototypes,
12893 which can conflict with char $ac_func (); below. */
12894 #include <assert.h>
12895 /* Override any gcc2 internal prototype to avoid an error. */
12899 /* We use char because int might match the return type of a gcc2
12900 builtin and then its argument prototype would still apply. */
12904 #ifdef F77_DUMMY_MAIN
12905 # ifdef __cplusplus
12908 int F77_DUMMY_MAIN() { return 1; }
12913 /* The GNU C library defines this for functions which it implements
12914 to always fail with ENOSYS. Some functions are actually named
12915 something starting with __ and the normal name is an alias. */
12916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928 (eval $ac_link) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -s conftest$ac_exeext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 eval "$as_ac_var=yes"
12940 echo "$as_me: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12942 eval "$as_ac_var=no"
12944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12948 if test `eval echo '${'$as_ac_var'}'` = yes; then
12949 cat >>confdefs.h <<_ACEOF
12950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12957 for ac_func in replace_history_entry
12959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12960 echo "$as_me:$LINENO: checking for $ac_func" >&5
12961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12962 if eval "test \"\${$as_ac_var+set}\" = set"; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #line $LINENO "configure"
12967 #include "confdefs.h"
12968 /* System header to define __stub macros and hopefully few prototypes,
12969 which can conflict with char $ac_func (); below. */
12970 #include <assert.h>
12971 /* Override any gcc2 internal prototype to avoid an error. */
12975 /* We use char because int might match the return type of a gcc2
12976 builtin and then its argument prototype would still apply. */
12980 #ifdef F77_DUMMY_MAIN
12981 # ifdef __cplusplus
12984 int F77_DUMMY_MAIN() { return 1; }
12989 /* The GNU C library defines this for functions which it implements
12990 to always fail with ENOSYS. Some functions are actually named
12991 something starting with __ and the normal name is an alias. */
12992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -s conftest$ac_exeext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 eval "$as_ac_var=yes"
13016 echo "$as_me: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 eval "$as_ac_var=no"
13020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13024 if test `eval echo '${'$as_ac_var'}'` = yes; then
13025 cat >>confdefs.h <<_ACEOF
13026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13035 echo "$as_me:$LINENO: checking for finite" >&5
13036 echo $ECHO_N "checking for finite... $ECHO_C" >&6
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line $LINENO "configure"
13039 #include "confdefs.h"
13041 #ifdef F77_DUMMY_MAIN
13042 # ifdef __cplusplus
13045 int F77_DUMMY_MAIN() { return 1; }
13050 int dummy=finite(1.0);
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057 (eval $ac_link) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -s conftest$ac_exeext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_FINITE 1
13072 echo "$as_me:$LINENO: result: yes" >&5
13073 echo "${ECHO_T}yes" >&6
13075 echo "$as_me: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 echo "$as_me:$LINENO: result: no" >&5
13078 echo "${ECHO_T}no" >&6
13080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13082 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13083 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
13084 cat >conftest.$ac_ext <<_ACEOF
13085 #line $LINENO "configure"
13086 #include "confdefs.h"
13087 #include <setjmp.h>
13088 #ifdef F77_DUMMY_MAIN
13089 # ifdef __cplusplus
13092 int F77_DUMMY_MAIN() { return 1; }
13097 sigjmp_buf x; sigsetjmp(x, 1);
13102 rm -f conftest.$ac_objext conftest$ac_exeext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13104 (eval $ac_link) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -s conftest$ac_exeext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13115 cat >>confdefs.h <<\_ACEOF
13116 #define HAVE_SIGSETJMP 1
13119 echo "$as_me:$LINENO: result: yes" >&5
13120 echo "${ECHO_T}yes" >&6
13122 echo "$as_me: failed program was:" >&5
13123 cat conftest.$ac_ext >&5
13124 echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6
13127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13129 echo "$as_me:$LINENO: checking for syslog" >&5
13130 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
13131 if test "${ac_cv_func_syslog+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 cat >conftest.$ac_ext <<_ACEOF
13135 #line $LINENO "configure"
13136 #include "confdefs.h"
13137 /* System header to define __stub macros and hopefully few prototypes,
13138 which can conflict with char syslog (); below. */
13139 #include <assert.h>
13140 /* Override any gcc2 internal prototype to avoid an error. */
13144 /* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13149 #ifdef F77_DUMMY_MAIN
13150 # ifdef __cplusplus
13153 int F77_DUMMY_MAIN() { return 1; }
13158 /* The GNU C library defines this for functions which it implements
13159 to always fail with ENOSYS. Some functions are actually named
13160 something starting with __ and the normal name is an alias. */
13161 #if defined (__stub_syslog) || defined (__stub___syslog)
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 { ac_try='test -s conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_func_syslog=yes
13185 echo "$as_me: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 ac_cv_func_syslog=no
13189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13191 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
13192 echo "${ECHO_T}$ac_cv_func_syslog" >&6
13193 if test $ac_cv_func_syslog = yes; then
13194 if test "${ac_cv_header_syslog_h+set}" = set; then
13195 echo "$as_me:$LINENO: checking for syslog.h" >&5
13196 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
13197 if test "${ac_cv_header_syslog_h+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
13201 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
13203 # Is the header compilable?
13204 echo "$as_me:$LINENO: checking syslog.h usability" >&5
13205 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
13206 cat >conftest.$ac_ext <<_ACEOF
13207 #line $LINENO "configure"
13208 #include "confdefs.h"
13209 $ac_includes_default
13210 #include <syslog.h>
13212 rm -f conftest.$ac_objext
13213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_header_compiler=yes
13226 echo "$as_me: failed program was:" >&5
13227 cat conftest.$ac_ext >&5
13228 ac_header_compiler=no
13230 rm -f conftest.$ac_objext conftest.$ac_ext
13231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13232 echo "${ECHO_T}$ac_header_compiler" >&6
13234 # Is the header present?
13235 echo "$as_me:$LINENO: checking syslog.h presence" >&5
13236 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
13237 cat >conftest.$ac_ext <<_ACEOF
13238 #line $LINENO "configure"
13239 #include "confdefs.h"
13240 #include <syslog.h>
13242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13245 egrep -v '^ *\+' conftest.er1 >conftest.err
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } >/dev/null; then
13250 if test -s conftest.err; then
13251 ac_cpp_err=$ac_c_preproc_warn_flag
13258 if test -z "$ac_cpp_err"; then
13259 ac_header_preproc=yes
13261 echo "$as_me: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 ac_header_preproc=no
13265 rm -f conftest.err conftest.$ac_ext
13266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13267 echo "${ECHO_T}$ac_header_preproc" >&6
13269 # So? What about this header?
13270 case $ac_header_compiler:$ac_header_preproc in
13272 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
13273 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
13275 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
13277 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
13278 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
13280 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
13282 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
13284 echo "$as_me:$LINENO: checking for syslog.h" >&5
13285 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
13286 if test "${ac_cv_header_syslog_h+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 ac_cv_header_syslog_h=$ac_header_preproc
13291 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
13292 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
13295 if test $ac_cv_header_syslog_h = yes; then
13297 cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_SYSLOG 1
13307 echo "$as_me:$LINENO: checking for optreset" >&5
13308 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
13309 if test "${pgac_cv_var_int_optreset+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13313 #line $LINENO "configure"
13314 #include "confdefs.h"
13315 #include <unistd.h>
13316 #ifdef F77_DUMMY_MAIN
13317 # ifdef __cplusplus
13320 int F77_DUMMY_MAIN() { return 1; }
13325 extern int optreset; optreset = 1;
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13332 (eval $ac_link) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 pgac_cv_var_int_optreset=yes
13344 echo "$as_me: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13346 pgac_cv_var_int_optreset=no
13348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13350 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
13351 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
13352 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
13354 cat >>confdefs.h <<\_ACEOF
13355 #define HAVE_INT_OPTRESET 1
13362 for ac_func in strtoll strtoq
13364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13365 echo "$as_me:$LINENO: checking for $ac_func" >&5
13366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_var+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13372 #include "confdefs.h"
13373 /* System header to define __stub macros and hopefully few prototypes,
13374 which can conflict with char $ac_func (); below. */
13375 #include <assert.h>
13376 /* Override any gcc2 internal prototype to avoid an error. */
13380 /* We use char because int might match the return type of a gcc2
13381 builtin and then its argument prototype would still apply. */
13385 #ifdef F77_DUMMY_MAIN
13386 # ifdef __cplusplus
13389 int F77_DUMMY_MAIN() { return 1; }
13394 /* The GNU C library defines this for functions which it implements
13395 to always fail with ENOSYS. Some functions are actually named
13396 something starting with __ and the normal name is an alias. */
13397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409 (eval $ac_link) 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -s conftest$ac_exeext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 eval "$as_ac_var=yes"
13421 echo "$as_me: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13423 eval "$as_ac_var=no"
13425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13429 if test `eval echo '${'$as_ac_var'}'` = yes; then
13430 cat >>confdefs.h <<_ACEOF
13431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13439 for ac_func in strtoull strtouq
13441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13442 echo "$as_me:$LINENO: checking for $ac_func" >&5
13443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13444 if eval "test \"\${$as_ac_var+set}\" = set"; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13449 #include "confdefs.h"
13450 /* System header to define __stub macros and hopefully few prototypes,
13451 which can conflict with char $ac_func (); below. */
13452 #include <assert.h>
13453 /* Override any gcc2 internal prototype to avoid an error. */
13457 /* We use char because int might match the return type of a gcc2
13458 builtin and then its argument prototype would still apply. */
13462 #ifdef F77_DUMMY_MAIN
13463 # ifdef __cplusplus
13466 int F77_DUMMY_MAIN() { return 1; }
13471 /* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13484 rm -f conftest.$ac_objext conftest$ac_exeext
13485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13486 (eval $ac_link) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -s conftest$ac_exeext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 eval "$as_ac_var=yes"
13498 echo "$as_me: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 eval "$as_ac_var=no"
13502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13506 if test `eval echo '${'$as_ac_var'}'` = yes; then
13507 cat >>confdefs.h <<_ACEOF
13508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13515 # Check for one of atexit() or on_exit()
13517 for ac_func in atexit
13519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13520 echo "$as_me:$LINENO: checking for $ac_func" >&5
13521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13522 if eval "test \"\${$as_ac_var+set}\" = set"; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 cat >conftest.$ac_ext <<_ACEOF
13526 #line $LINENO "configure"
13527 #include "confdefs.h"
13528 /* System header to define __stub macros and hopefully few prototypes,
13529 which can conflict with char $ac_func (); below. */
13530 #include <assert.h>
13531 /* Override any gcc2 internal prototype to avoid an error. */
13535 /* We use char because int might match the return type of a gcc2
13536 builtin and then its argument prototype would still apply. */
13540 #ifdef F77_DUMMY_MAIN
13541 # ifdef __cplusplus
13544 int F77_DUMMY_MAIN() { return 1; }
13549 /* The GNU C library defines this for functions which it implements
13550 to always fail with ENOSYS. Some functions are actually named
13551 something starting with __ and the normal name is an alias. */
13552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564 (eval $ac_link) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -s conftest$ac_exeext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 eval "$as_ac_var=yes"
13576 echo "$as_me: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13578 eval "$as_ac_var=no"
13580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13584 if test `eval echo '${'$as_ac_var'}'` = yes; then
13585 cat >>confdefs.h <<_ACEOF
13586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13591 for ac_func in on_exit
13593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13594 echo "$as_me:$LINENO: checking for $ac_func" >&5
13595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13596 if eval "test \"\${$as_ac_var+set}\" = set"; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 cat >conftest.$ac_ext <<_ACEOF
13600 #line $LINENO "configure"
13601 #include "confdefs.h"
13602 /* System header to define __stub macros and hopefully few prototypes,
13603 which can conflict with char $ac_func (); below. */
13604 #include <assert.h>
13605 /* Override any gcc2 internal prototype to avoid an error. */
13609 /* We use char because int might match the return type of a gcc2
13610 builtin and then its argument prototype would still apply. */
13614 #ifdef F77_DUMMY_MAIN
13615 # ifdef __cplusplus
13618 int F77_DUMMY_MAIN() { return 1; }
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13638 (eval $ac_link) 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -s conftest$ac_exeext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 eval "$as_ac_var=yes"
13650 echo "$as_me: failed program was:" >&5
13651 cat conftest.$ac_ext >&5
13652 eval "$as_ac_var=no"
13654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13658 if test `eval echo '${'$as_ac_var'}'` = yes; then
13659 cat >>confdefs.h <<_ACEOF
13660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13664 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13665 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13666 { (exit 1); exit 1; }; }
13674 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13675 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13676 if test "${ac_cv_sys_largefile_source+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 ac_cv_sys_largefile_source=no
13681 cat >conftest.$ac_ext <<_ACEOF
13682 #line $LINENO "configure"
13683 #include "confdefs.h"
13685 #ifdef F77_DUMMY_MAIN
13686 # ifdef __cplusplus
13689 int F77_DUMMY_MAIN() { return 1; }
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13716 rm -f conftest.$ac_objext conftest.$ac_ext
13717 cat >conftest.$ac_ext <<_ACEOF
13718 #line $LINENO "configure"
13719 #include "confdefs.h"
13720 #define _LARGEFILE_SOURCE 1
13722 #ifdef F77_DUMMY_MAIN
13723 # ifdef __cplusplus
13726 int F77_DUMMY_MAIN() { return 1; }
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_cv_sys_largefile_source=1; break
13750 echo "$as_me: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 rm -f conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13758 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13759 if test "$ac_cv_sys_largefile_source" != no; then
13761 cat >>confdefs.h <<_ACEOF
13762 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13768 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13769 # in glibc 2.1.3, but that breaks too many other things.
13770 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13771 echo "$as_me:$LINENO: checking for fseeko" >&5
13772 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13773 if test "${ac_cv_func_fseeko+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13778 #include "confdefs.h"
13780 #ifdef F77_DUMMY_MAIN
13781 # ifdef __cplusplus
13784 int F77_DUMMY_MAIN() { return 1; }
13789 return fseeko && fseeko (stdin, 0, 0);
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13796 (eval $ac_link) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -s conftest$ac_exeext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_func_fseeko=yes
13808 echo "$as_me: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 ac_cv_func_fseeko=no
13812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13814 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13815 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13816 if test $ac_cv_func_fseeko = yes; then
13818 cat >>confdefs.h <<\_ACEOF
13819 #define HAVE_FSEEKO 1
13828 # For each platform, we need to know about any special compile and link
13829 # libraries, and whether the normal C function names are thread-safe.
13830 # See the comment at the top of src/port/thread.c for more information.
13832 if test "$enable_thread_safety" = yes; then
13838 ac_cpp='$CPP $CPPFLAGS'
13839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13845 # We used to check for pthread.h first, but this fails if pthread.h
13846 # requires special compiler flags (e.g. on True64 or Sequent).
13847 # It gets checked for in the link test anyway.
13849 # First of all, check if the user has set any of the PTHREAD_LIBS,
13850 # etcetera environment variables, and if threads linking works using
13852 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13853 save_CFLAGS="$CFLAGS"
13854 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13856 LIBS="$PTHREAD_LIBS $LIBS"
13857 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13858 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13859 cat >conftest.$ac_ext <<_ACEOF
13860 #line $LINENO "configure"
13861 #include "confdefs.h"
13863 /* Override any gcc2 internal prototype to avoid an error. */
13867 /* We use char because int might match the return type of a gcc2
13868 builtin and then its argument prototype would still apply. */
13869 char pthread_join ();
13870 #ifdef F77_DUMMY_MAIN
13871 # ifdef __cplusplus
13874 int F77_DUMMY_MAIN() { return 1; }
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13886 (eval $ac_link) 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -s conftest$ac_exeext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13898 echo "$as_me: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13902 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13903 echo "${ECHO_T}$acx_pthread_ok" >&6
13904 if test x"$acx_pthread_ok" = xno; then
13909 CFLAGS="$save_CFLAGS"
13912 # We must check for the threads library under a number of different
13913 # names; the ordering is very important because some systems
13914 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13915 # libraries is broken (non-POSIX).
13917 # Create a list of thread flags to try. Items starting with a "-" are
13918 # C compiler flags, and other items are library names, except for "none"
13919 # which indicates that we try without any flags at all, and "pthread-config"
13920 # which is a program returning the flags for the Pth emulation library.
13922 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13924 # The ordering *is* (sometimes) important. Some notes on the
13925 # individual items follow:
13927 # pthreads: AIX (must check this before -lpthread)
13928 # none: in case threads are in libc; should be tried before -Kthread and
13929 # other compiler flags to prevent continual compiler warnings
13930 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13931 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13932 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13933 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13934 # -pthreads: Solaris/gcc
13935 # -mthreads: Mingw32/gcc, Lynx/gcc
13936 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13937 # doesn't hurt to check since this sometimes defines pthreads too;
13938 # also defines -D_REENTRANT)
13939 # pthread: Linux, etcetera
13940 # --thread-safe: KAI C++
13941 # pthread-config: use pthread-config program (for GNU Pth library)
13943 case "${host_cpu}-${host_os}" in
13946 # On Solaris (at least, for some versions), libc contains stubbed
13947 # (non-functional) versions of the pthreads routines, so link-based
13948 # tests will erroneously succeed. (We need to link with -pthread or
13949 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13950 # a function called by this macro, so we could check for that, but
13951 # who knows whether they'll stub that too in a future libc.) So,
13952 # we'll just look for -pthreads and -lpthread first:
13954 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13958 if test x"$acx_pthread_ok" = xno; then
13959 for flag in $acx_pthread_flags; do
13961 tryPTHREAD_CFLAGS=""
13965 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13966 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13970 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13971 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13972 tryPTHREAD_CFLAGS="$flag"
13976 # skip this if we already have flags defined, for PostgreSQL
13977 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13978 # Extract the first word of "pthread-config", so it can be a program name with args.
13979 set dummy pthread-config; ac_word=$2
13980 echo "$as_me:$LINENO: checking for $ac_word" >&5
13981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13982 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 if test -n "$acx_pthread_config"; then
13986 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989 for as_dir in $PATH
13992 test -z "$as_dir" && as_dir=.
13993 for ac_exec_ext in '' $ac_executable_extensions; do
13994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13995 ac_cv_prog_acx_pthread_config="yes"
13996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14002 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14005 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14006 if test -n "$acx_pthread_config"; then
14007 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
14008 echo "${ECHO_T}$acx_pthread_config" >&6
14010 echo "$as_me:$LINENO: result: no" >&5
14011 echo "${ECHO_T}no" >&6
14014 if test x"$acx_pthread_config" = xno; then continue; fi
14015 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
14016 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14020 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
14021 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
14022 tryPTHREAD_LIBS="-l$flag"
14027 save_CFLAGS="$CFLAGS"
14028 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
14029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
14031 # Check for various functions. We must include pthread.h,
14032 # since some functions may be macros. (On the Sequent, we
14033 # need a special flag -Kthread to make this header compile.)
14034 # We check for pthread_join because it is in -lpthread on IRIX
14035 # while pthread_create is in libc. We check for pthread_attr_init
14036 # due to DEC craziness with -lpthreads. We check for
14037 # pthread_cleanup_push because it is one of the few pthread
14038 # functions on Solaris that doesn't have a non-functional libc stub.
14039 # We try pthread_create on general principles.
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 #include "confdefs.h"
14043 #include <pthread.h>
14044 #ifdef F77_DUMMY_MAIN
14045 # ifdef __cplusplus
14048 int F77_DUMMY_MAIN() { return 1; }
14053 pthread_t th; pthread_join(th, 0);
14054 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14055 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14062 (eval $ac_link) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14074 echo "$as_me: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14080 if test "x$acx_pthread_ok" = xyes; then
14081 # Don't use options that are ignored by the compiler.
14082 # We find them by checking stderror.
14083 cat >conftest.$ac_ext <<_ACEOF
14085 main (int argc, char **argv)
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
14094 # we continue with more flags because Linux needs -lpthread
14095 # for libpq builds on PostgreSQL. The test above only
14096 # tests for building binaries, not shared libraries.
14097 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
14098 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
14099 else acx_pthread_ok=no
14104 CFLAGS="$save_CFLAGS"
14106 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
14107 echo "${ECHO_T}$acx_pthread_ok" >&6
14111 # Various other checks:
14112 if test "x$acx_pthread_ok" = xyes; then
14114 LIBS="$PTHREAD_LIBS $LIBS"
14115 save_CFLAGS="$CFLAGS"
14116 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14118 # Detect AIX lossage: threads are created detached by default
14119 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
14120 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
14121 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14123 #line $LINENO "configure"
14124 #include "confdefs.h"
14125 #include <pthread.h>
14126 #ifdef F77_DUMMY_MAIN
14127 # ifdef __cplusplus
14130 int F77_DUMMY_MAIN() { return 1; }
14135 int attr=PTHREAD_CREATE_JOINABLE;
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14142 (eval $ac_link) 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -s conftest$ac_exeext'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ok=PTHREAD_CREATE_JOINABLE
14154 echo "$as_me: failed program was:" >&5
14155 cat conftest.$ac_ext >&5
14158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14159 if test x"$ok" = xunknown; then
14160 cat >conftest.$ac_ext <<_ACEOF
14161 #line $LINENO "configure"
14162 #include "confdefs.h"
14163 #include <pthread.h>
14164 #ifdef F77_DUMMY_MAIN
14165 # ifdef __cplusplus
14168 int F77_DUMMY_MAIN() { return 1; }
14173 int attr=PTHREAD_CREATE_UNDETACHED;
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180 (eval $ac_link) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -s conftest$ac_exeext'
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 ok=PTHREAD_CREATE_UNDETACHED
14192 echo "$as_me: failed program was:" >&5
14193 cat conftest.$ac_ext >&5
14196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14198 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
14200 cat >>confdefs.h <<\_ACEOF
14201 #define PTHREAD_CREATE_JOINABLE $ok
14205 echo "$as_me:$LINENO: result: ${ok}" >&5
14206 echo "${ECHO_T}${ok}" >&6
14207 if test x"$ok" = xunknown; then
14208 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
14209 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
14212 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
14213 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
14215 # We always add these in PostgreSQL
14216 # case "${host_cpu}-${host_os}" in
14217 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14218 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14220 echo "$as_me:$LINENO: result: ${flag}" >&5
14221 echo "${ECHO_T}${flag}" >&6
14222 if test "x$flag" != xno; then
14223 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14227 CFLAGS="$save_CFLAGS"
14229 # Supporting cc_r would require a special CC in all places that
14230 # use libpq, and that is ugly, so we don't do it. Users can still
14231 # define their compiler as cc_r to do thread builds of everything.
14232 # More AIX lossage: must compile with cc_r
14233 # Extract the first word of "cc_r", so it can be a program name with args.
14234 set dummy cc_r; ac_word=$2
14235 echo "$as_me:$LINENO: checking for $ac_word" >&5
14236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14237 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 if test -n "$PTHREAD_CC"; then
14241 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14247 test -z "$as_dir" && as_dir=.
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14250 ac_cv_prog_PTHREAD_CC="cc_r"
14251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14257 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
14260 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14261 if test -n "$PTHREAD_CC"; then
14262 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
14263 echo "${ECHO_T}$PTHREAD_CC" >&6
14265 echo "$as_me:$LINENO: result: no" >&5
14266 echo "${ECHO_T}no" >&6
14277 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14278 if test x"$acx_pthread_ok" = xyes; then
14280 cat >>confdefs.h <<\_ACEOF
14281 #define HAVE_PTHREAD 1
14290 ac_cpp='$CPP $CPPFLAGS'
14291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297 # Some platforms use these, so just defineed them. They can't hurt if they
14298 # are not supported.
14299 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
14302 # At this point, we don't want to muck with the compiler name for threading.
14303 # Let's see who fails, perhaps AIX. 2004-04-23
14304 if test "$PTHREAD_CC" != "$CC"; then
14305 { { echo "$as_me:$LINENO: error:
14306 PostgreSQL does not support platforms that require a special
14307 compiler binary for thread-safety.
14309 echo "$as_me: error:
14310 PostgreSQL does not support platforms that require a special
14311 compiler binary for thread-safety.
14313 { (exit 1); exit 1; }; }
14316 if test "$THREAD_SUPPORT" = no; then
14317 { { echo "$as_me:$LINENO: error:
14318 Cannot enable threads on your platform.
14319 Your platform is known to not support thread-safe programs.
14320 For details, compile and run src/bin/pg_thread_test.
14322 echo "$as_me: error:
14323 Cannot enable threads on your platform.
14324 Your platform is known to not support thread-safe programs.
14325 For details, compile and run src/bin/pg_thread_test.
14327 { (exit 1); exit 1; }; }
14330 # Check for *_r functions
14333 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14334 LIBS="$LIBS $PTHREAD_LIBS"
14336 if test "${ac_cv_header_pthread_h+set}" = set; then
14337 echo "$as_me:$LINENO: checking for pthread.h" >&5
14338 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14339 if test "${ac_cv_header_pthread_h+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
14343 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14345 # Is the header compilable?
14346 echo "$as_me:$LINENO: checking pthread.h usability" >&5
14347 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14349 #line $LINENO "configure"
14350 #include "confdefs.h"
14351 $ac_includes_default
14352 #include <pthread.h>
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_header_compiler=yes
14368 echo "$as_me: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 ac_header_compiler=no
14372 rm -f conftest.$ac_objext conftest.$ac_ext
14373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14374 echo "${ECHO_T}$ac_header_compiler" >&6
14376 # Is the header present?
14377 echo "$as_me:$LINENO: checking pthread.h presence" >&5
14378 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
14379 cat >conftest.$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14381 #include "confdefs.h"
14382 #include <pthread.h>
14384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14387 egrep -v '^ *\+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } >/dev/null; then
14392 if test -s conftest.err; then
14393 ac_cpp_err=$ac_c_preproc_warn_flag
14400 if test -z "$ac_cpp_err"; then
14401 ac_header_preproc=yes
14403 echo "$as_me: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 ac_header_preproc=no
14407 rm -f conftest.err conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14409 echo "${ECHO_T}$ac_header_preproc" >&6
14411 # So? What about this header?
14412 case $ac_header_compiler:$ac_header_preproc in
14414 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
14415 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
14417 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
14419 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
14420 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
14422 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
14424 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
14426 echo "$as_me:$LINENO: checking for pthread.h" >&5
14427 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14428 if test "${ac_cv_header_pthread_h+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 ac_cv_header_pthread_h=$ac_header_preproc
14433 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
14434 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14437 if test $ac_cv_header_pthread_h = yes; then
14440 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
14441 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
14442 { (exit 1); exit 1; }; }
14450 for ac_func in strerror_r getpwuid_r gethostbyname_r
14452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14453 echo "$as_me:$LINENO: checking for $ac_func" >&5
14454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14455 if eval "test \"\${$as_ac_var+set}\" = set"; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 cat >conftest.$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14460 #include "confdefs.h"
14461 /* System header to define __stub macros and hopefully few prototypes,
14462 which can conflict with char $ac_func (); below. */
14463 #include <assert.h>
14464 /* Override any gcc2 internal prototype to avoid an error. */
14468 /* We use char because int might match the return type of a gcc2
14469 builtin and then its argument prototype would still apply. */
14473 #ifdef F77_DUMMY_MAIN
14474 # ifdef __cplusplus
14477 int F77_DUMMY_MAIN() { return 1; }
14482 /* The GNU C library defines this for functions which it implements
14483 to always fail with ENOSYS. Some functions are actually named
14484 something starting with __ and the normal name is an alias. */
14485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14497 (eval $ac_link) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } &&
14501 { ac_try='test -s conftest$ac_exeext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 eval "$as_ac_var=yes"
14509 echo "$as_me: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14511 eval "$as_ac_var=no"
14513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14517 if test `eval echo '${'$as_ac_var'}'` = yes; then
14518 cat >>confdefs.h <<_ACEOF
14519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14526 # Do test here with the proper thread flags
14527 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
14528 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
14529 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.$ac_ext <<_ACEOF
14533 #line $LINENO "configure"
14534 #include "confdefs.h"
14535 #include <sys/types.h>
14537 #ifdef F77_DUMMY_MAIN
14538 # ifdef __cplusplus
14541 int F77_DUMMY_MAIN() { return 1; }
14547 struct passwd *space;
14550 struct passwd **result;
14551 getpwuid_r(uid, space, buf, bufsize, result);
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558 (eval $ac_compile) 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -s conftest.$ac_objext'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 pgac_func_getpwuid_r_5arg=yes
14570 echo "$as_me: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14572 pgac_func_getpwuid_r_5arg=no
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
14577 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
14578 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
14580 cat >>confdefs.h <<\_ACEOF
14581 #define GETPWUID_R_5ARG
14586 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
14587 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
14588 if test "${pgac_func_strerror_r_int+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14592 #line $LINENO "configure"
14593 #include "confdefs.h"
14594 #include <string.h>
14595 #ifdef F77_DUMMY_MAIN
14596 # ifdef __cplusplus
14599 int F77_DUMMY_MAIN() { return 1; }
14605 int strerror_r(int, char *, size_t);
14607 /* Older AIX has 'int' for the third argument so we don't test the args. */
14614 rm -f conftest.$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -s conftest.$ac_objext'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626 pgac_func_strerror_r_int=yes
14628 echo "$as_me: failed program was:" >&5
14629 cat conftest.$ac_ext >&5
14630 pgac_func_strerror_r_int=no
14632 rm -f conftest.$ac_objext conftest.$ac_ext
14634 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
14635 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
14636 if test x"$pgac_func_strerror_r_int" = xyes ; then
14638 cat >>confdefs.h <<\_ACEOF
14639 #define STRERROR_R_INT
14649 # do not use values from template file
14658 # This test makes sure that run tests work at all. Sometimes a shared
14659 # library is found by the linker, but the runtime linker can't find it.
14660 # This check should come after all modifications of compiler or linker
14661 # variables, and before any other run tests.
14662 echo "$as_me:$LINENO: checking test program" >&5
14663 echo $ECHO_N "checking test program... $ECHO_C" >&6
14664 if test "$cross_compiling" = yes; then
14665 echo "$as_me:$LINENO: result: cross-compiling" >&5
14666 echo "${ECHO_T}cross-compiling" >&6
14668 cat >conftest.$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14670 #include "confdefs.h"
14671 int main() { return 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 echo "$as_me:$LINENO: result: ok" >&5
14685 echo "${ECHO_T}ok" >&6
14687 echo "$as_me: program exited with status $ac_status" >&5
14688 echo "$as_me: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 ( exit $ac_status )
14691 echo "$as_me:$LINENO: result: failed" >&5
14692 echo "${ECHO_T}failed" >&6
14693 { { echo "$as_me:$LINENO: error:
14694 *** Could not execute a simple test program. This may be a problem
14695 *** related to locating shared libraries. Check the file 'config.log'
14696 *** for the exact reason." >&5
14697 echo "$as_me: error:
14698 *** Could not execute a simple test program. This may be a problem
14699 *** related to locating shared libraries. Check the file 'config.log'
14700 *** for the exact reason." >&2;}
14701 { (exit 1); exit 1; }; }
14703 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14707 # Force use of our snprintf if system's doesn't do arg control
14708 # This feature is used by NLS
14709 if test "$enable_nls" = yes &&
14710 test $pgac_need_repl_snprintf = no &&
14711 # On Win32, libintl replaces snprintf() with its own version that
14712 # understands arg control, so we don't need our own. In fact, it
14713 # also uses macros that conflict with ours, so we _can't_ use
14715 test "$PORTNAME" != "win32"; then
14716 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
14717 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
14718 if test "${pgac_cv_printf_arg_control+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 if test "$cross_compiling" = yes; then
14722 pgac_cv_printf_arg_control=cross
14724 cat >conftest.$ac_ext <<_ACEOF
14725 #line $LINENO "configure"
14726 #include "confdefs.h"
14728 #include <string.h>
14734 /* can it swap arguments? */
14735 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
14736 if (strcmp(buf, "4 3") != 0)
14741 rm -f conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743 (eval $ac_link) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 pgac_cv_printf_arg_control=yes
14754 echo "$as_me: program exited with status $ac_status" >&5
14755 echo "$as_me: failed program was:" >&5
14756 cat conftest.$ac_ext >&5
14757 ( exit $ac_status )
14758 pgac_cv_printf_arg_control=no
14760 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14764 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
14765 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
14767 if test $pgac_cv_printf_arg_control != yes ; then
14768 pgac_need_repl_snprintf=yes
14774 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
14775 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
14776 if test "${pgac_cv_type_long_int_64+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 if test "$cross_compiling" = yes; then
14780 # If cross-compiling, check the size reported by the compiler and
14781 # trust that the arithmetic works.
14782 cat >conftest.$ac_ext <<_ACEOF
14783 #line $LINENO "configure"
14784 #include "confdefs.h"
14786 #ifdef F77_DUMMY_MAIN
14787 # ifdef __cplusplus
14790 int F77_DUMMY_MAIN() { return 1; }
14795 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804 (eval $ac_compile) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -s conftest.$ac_objext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 pgac_cv_type_long_int_64=yes
14816 echo "$as_me: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14818 pgac_cv_type_long_int_64=no
14820 rm -f conftest.$ac_objext conftest.$ac_ext
14822 cat >conftest.$ac_ext <<_ACEOF
14823 #line $LINENO "configure"
14824 #include "confdefs.h"
14825 typedef long int ac_int64;
14828 * These are globals to discourage the compiler from folding all the
14829 * arithmetic tests down to compile-time constants.
14831 ac_int64 a = 20000001;
14832 ac_int64 b = 40000005;
14834 int does_int64_work()
14838 if (sizeof(ac_int64) != 8)
14839 return 0; /* definitely not the right size */
14841 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14849 exit(! does_int64_work());
14852 rm -f conftest$ac_exeext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14854 (eval $ac_link) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 pgac_cv_type_long_int_64=yes
14865 echo "$as_me: program exited with status $ac_status" >&5
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 ( exit $ac_status )
14869 pgac_cv_type_long_int_64=no
14871 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14874 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14875 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14877 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14878 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_LONG_INT_64
14887 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14888 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14889 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14890 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 if test "$cross_compiling" = yes; then
14894 # If cross-compiling, check the size reported by the compiler and
14895 # trust that the arithmetic works.
14896 cat >conftest.$ac_ext <<_ACEOF
14897 #line $LINENO "configure"
14898 #include "confdefs.h"
14900 #ifdef F77_DUMMY_MAIN
14901 # ifdef __cplusplus
14904 int F77_DUMMY_MAIN() { return 1; }
14909 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918 (eval $ac_compile) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -s conftest.$ac_objext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 pgac_cv_type_long_long_int_64=yes
14930 echo "$as_me: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14932 pgac_cv_type_long_long_int_64=no
14934 rm -f conftest.$ac_objext conftest.$ac_ext
14936 cat >conftest.$ac_ext <<_ACEOF
14937 #line $LINENO "configure"
14938 #include "confdefs.h"
14939 typedef long long int ac_int64;
14942 * These are globals to discourage the compiler from folding all the
14943 * arithmetic tests down to compile-time constants.
14945 ac_int64 a = 20000001;
14946 ac_int64 b = 40000005;
14948 int does_int64_work()
14952 if (sizeof(ac_int64) != 8)
14953 return 0; /* definitely not the right size */
14955 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14963 exit(! does_int64_work());
14966 rm -f conftest$ac_exeext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14968 (eval $ac_link) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 pgac_cv_type_long_long_int_64=yes
14979 echo "$as_me: program exited with status $ac_status" >&5
14980 echo "$as_me: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14982 ( exit $ac_status )
14983 pgac_cv_type_long_long_int_64=no
14985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14988 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14989 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14991 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14992 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14994 cat >>confdefs.h <<\_ACEOF
14995 #define HAVE_LONG_LONG_INT_64
15004 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15009 #define INT64CONST(x) x##LL
15010 long long int foo = INT64CONST(0x1234567890123456);
15012 #ifdef F77_DUMMY_MAIN
15013 # ifdef __cplusplus
15016 int F77_DUMMY_MAIN() { return 1; }
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_LL_CONSTANTS 1
15044 echo "$as_me: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15047 rm -f conftest.$ac_objext conftest.$ac_ext
15051 # If we found "long int" is 64 bits, assume snprintf handles it. If
15052 # we found we need to use "long long int", better check. We cope with
15053 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
15054 # work, fall back to our own snprintf emulation (which we know uses %lld).
15056 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
15057 if test $pgac_need_repl_snprintf = no; then
15058 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
15059 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
15060 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 for pgac_format in '%lld' '%qd' '%I64d'; do
15064 if test "$cross_compiling" = yes; then
15065 pgac_cv_snprintf_long_long_int_format=cross; break
15067 cat >conftest.$ac_ext <<_ACEOF
15068 #line $LINENO "configure"
15069 #include "confdefs.h"
15071 typedef long long int ac_int64;
15072 #define INT64_FORMAT "$pgac_format"
15074 ac_int64 a = 20000001;
15075 ac_int64 b = 40000005;
15077 int does_int64_snprintf_work()
15082 if (sizeof(ac_int64) != 8)
15083 return 0; /* doesn't look like the right size */
15086 snprintf(buf, 100, INT64_FORMAT, c);
15087 if (strcmp(buf, "800000140000005") != 0)
15088 return 0; /* either multiply or snprintf is busted */
15092 exit(! does_int64_snprintf_work());
15095 rm -f conftest$ac_exeext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15097 (eval $ac_link) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
15108 echo "$as_me: program exited with status $ac_status" >&5
15109 echo "$as_me: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15112 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15117 LONG_LONG_INT_FORMAT=''
15119 case $pgac_cv_snprintf_long_long_int_format in
15120 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
15121 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
15122 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
15123 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
15124 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
15125 *) echo "$as_me:$LINENO: result: none" >&5
15126 echo "${ECHO_T}none" >&6;;
15128 if test "$LONG_LONG_INT_FORMAT" = ""; then
15129 # Force usage of our own snprintf, since system snprintf is broken
15130 pgac_need_repl_snprintf=yes
15131 LONG_LONG_INT_FORMAT='%lld'
15134 # Here if we previously decided we needed to use our own snprintf
15135 LONG_LONG_INT_FORMAT='%lld'
15137 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
15138 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
15139 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
15141 # Here if we are not using 'long long int' at all
15142 INT64_FORMAT='"%ld"'
15143 UINT64_FORMAT='"%lu"'
15147 cat >>confdefs.h <<_ACEOF
15148 #define INT64_FORMAT $INT64_FORMAT
15153 cat >>confdefs.h <<_ACEOF
15154 #define UINT64_FORMAT $UINT64_FORMAT
15158 # Now we have checked all the reasons to replace snprintf
15159 if test $pgac_need_repl_snprintf = yes; then
15161 cat >>confdefs.h <<\_ACEOF
15162 #define USE_SNPRINTF 1
15165 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15168 # Need a #define for the size of Datum (unsigned long)
15169 echo "$as_me:$LINENO: checking for unsigned long" >&5
15170 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
15171 if test "${ac_cv_type_unsigned_long+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 cat >conftest.$ac_ext <<_ACEOF
15175 #line $LINENO "configure"
15176 #include "confdefs.h"
15177 $ac_includes_default
15178 #ifdef F77_DUMMY_MAIN
15179 # ifdef __cplusplus
15182 int F77_DUMMY_MAIN() { return 1; }
15187 if ((unsigned long *) 0)
15189 if (sizeof (unsigned long))
15195 rm -f conftest.$ac_objext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15197 (eval $ac_compile) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -s conftest.$ac_objext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_cv_type_unsigned_long=yes
15209 echo "$as_me: failed program was:" >&5
15210 cat conftest.$ac_ext >&5
15211 ac_cv_type_unsigned_long=no
15213 rm -f conftest.$ac_objext conftest.$ac_ext
15215 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
15216 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
15218 echo "$as_me:$LINENO: checking size of unsigned long" >&5
15219 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
15220 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 if test "$ac_cv_type_unsigned_long" = yes; then
15224 # The cast to unsigned long works around a bug in the HP C Compiler
15225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15227 # This bug is HP SR number 8606223364.
15228 if test "$cross_compiling" = yes; then
15229 # Depending upon the size, compute the lo and hi bounds.
15230 cat >conftest.$ac_ext <<_ACEOF
15231 #line $LINENO "configure"
15232 #include "confdefs.h"
15233 $ac_includes_default
15234 #ifdef F77_DUMMY_MAIN
15235 # ifdef __cplusplus
15238 int F77_DUMMY_MAIN() { return 1; }
15243 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
15250 rm -f conftest.$ac_objext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15252 (eval $ac_compile) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -s conftest.$ac_objext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15264 cat >conftest.$ac_ext <<_ACEOF
15265 #line $LINENO "configure"
15266 #include "confdefs.h"
15267 $ac_includes_default
15268 #ifdef F77_DUMMY_MAIN
15269 # ifdef __cplusplus
15272 int F77_DUMMY_MAIN() { return 1; }
15277 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
15284 rm -f conftest.$ac_objext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286 (eval $ac_compile) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -s conftest.$ac_objext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_hi=$ac_mid; break
15298 echo "$as_me: failed program was:" >&5
15299 cat conftest.$ac_ext >&5
15300 ac_lo=`expr $ac_mid + 1`
15301 if test $ac_lo -le $ac_mid; then
15305 ac_mid=`expr 2 '*' $ac_mid + 1`
15307 rm -f conftest.$ac_objext conftest.$ac_ext
15310 echo "$as_me: failed program was:" >&5
15311 cat conftest.$ac_ext >&5
15312 cat >conftest.$ac_ext <<_ACEOF
15313 #line $LINENO "configure"
15314 #include "confdefs.h"
15315 $ac_includes_default
15316 #ifdef F77_DUMMY_MAIN
15317 # ifdef __cplusplus
15320 int F77_DUMMY_MAIN() { return 1; }
15325 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
15332 rm -f conftest.$ac_objext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15334 (eval $ac_compile) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15346 cat >conftest.$ac_ext <<_ACEOF
15347 #line $LINENO "configure"
15348 #include "confdefs.h"
15349 $ac_includes_default
15350 #ifdef F77_DUMMY_MAIN
15351 # ifdef __cplusplus
15354 int F77_DUMMY_MAIN() { return 1; }
15359 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
15366 rm -f conftest.$ac_objext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_lo=$ac_mid; break
15380 echo "$as_me: failed program was:" >&5
15381 cat conftest.$ac_ext >&5
15382 ac_hi=`expr '(' $ac_mid ')' - 1`
15383 if test $ac_mid -le $ac_hi; then
15387 ac_mid=`expr 2 '*' $ac_mid`
15389 rm -f conftest.$ac_objext conftest.$ac_ext
15392 echo "$as_me: failed program was:" >&5
15393 cat conftest.$ac_ext >&5
15396 rm -f conftest.$ac_objext conftest.$ac_ext
15398 rm -f conftest.$ac_objext conftest.$ac_ext
15399 # Binary search between lo and hi bounds.
15400 while test "x$ac_lo" != "x$ac_hi"; do
15401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15402 cat >conftest.$ac_ext <<_ACEOF
15403 #line $LINENO "configure"
15404 #include "confdefs.h"
15405 $ac_includes_default
15406 #ifdef F77_DUMMY_MAIN
15407 # ifdef __cplusplus
15410 int F77_DUMMY_MAIN() { return 1; }
15415 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
15422 rm -f conftest.$ac_objext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15424 (eval $ac_compile) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -s conftest.$ac_objext'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15436 echo "$as_me: failed program was:" >&5
15437 cat conftest.$ac_ext >&5
15438 ac_lo=`expr '(' $ac_mid ')' + 1`
15440 rm -f conftest.$ac_objext conftest.$ac_ext
15443 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
15444 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
15445 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
15446 { (exit 1); exit 1; }; } ;;
15449 if test "$cross_compiling" = yes; then
15450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15451 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15452 { (exit 1); exit 1; }; }
15454 cat >conftest.$ac_ext <<_ACEOF
15455 #line $LINENO "configure"
15456 #include "confdefs.h"
15457 $ac_includes_default
15458 long longval () { return (long) (sizeof (unsigned long)); }
15459 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
15461 #include <stdlib.h>
15462 #ifdef F77_DUMMY_MAIN
15463 # ifdef __cplusplus
15466 int F77_DUMMY_MAIN() { return 1; }
15472 FILE *f = fopen ("conftest.val", "w");
15475 if (((long) (sizeof (unsigned long))) < 0)
15477 long i = longval ();
15478 if (i != ((long) (sizeof (unsigned long))))
15480 fprintf (f, "%ld\n", i);
15484 unsigned long i = ulongval ();
15485 if (i != ((long) (sizeof (unsigned long))))
15487 fprintf (f, "%lu\n", i);
15489 exit (ferror (f) || fclose (f) != 0);
15495 rm -f conftest$ac_exeext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15497 (eval $ac_link) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_cv_sizeof_unsigned_long=`cat conftest.val`
15508 echo "$as_me: program exited with status $ac_status" >&5
15509 echo "$as_me: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 ( exit $ac_status )
15512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
15513 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
15514 { (exit 1); exit 1; }; }
15516 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15521 ac_cv_sizeof_unsigned_long=0
15524 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
15525 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
15526 cat >>confdefs.h <<_ACEOF
15527 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
15532 # Determine memory alignment requirements for the basic C data types.
15534 echo "$as_me:$LINENO: checking for short" >&5
15535 echo $ECHO_N "checking for short... $ECHO_C" >&6
15536 if test "${ac_cv_type_short+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 cat >conftest.$ac_ext <<_ACEOF
15540 #line $LINENO "configure"
15541 #include "confdefs.h"
15542 $ac_includes_default
15543 #ifdef F77_DUMMY_MAIN
15544 # ifdef __cplusplus
15547 int F77_DUMMY_MAIN() { return 1; }
15554 if (sizeof (short))
15560 rm -f conftest.$ac_objext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562 (eval $ac_compile) 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_cv_type_short=yes
15574 echo "$as_me: failed program was:" >&5
15575 cat conftest.$ac_ext >&5
15576 ac_cv_type_short=no
15578 rm -f conftest.$ac_objext conftest.$ac_ext
15580 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15581 echo "${ECHO_T}$ac_cv_type_short" >&6
15583 echo "$as_me:$LINENO: checking alignment of short" >&5
15584 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
15585 if test "${pgac_cv_alignof_short+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 if test "$ac_cv_type_short" = yes; then
15589 if test "$cross_compiling" = yes; then
15590 # Depending upon the size, compute the lo and hi bounds.
15591 cat >conftest.$ac_ext <<_ACEOF
15592 #line $LINENO "configure"
15593 #include "confdefs.h"
15594 $ac_includes_default
15595 struct { char filler; short field; } pgac_struct;
15596 #ifdef F77_DUMMY_MAIN
15597 # ifdef __cplusplus
15600 int F77_DUMMY_MAIN() { return 1; }
15605 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15612 rm -f conftest.$ac_objext
15613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15614 (eval $ac_compile) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15626 cat >conftest.$ac_ext <<_ACEOF
15627 #line $LINENO "configure"
15628 #include "confdefs.h"
15629 $ac_includes_default
15630 struct { char filler; short field; } pgac_struct;
15631 #ifdef F77_DUMMY_MAIN
15632 # ifdef __cplusplus
15635 int F77_DUMMY_MAIN() { return 1; }
15640 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649 (eval $ac_compile) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_hi=$ac_mid; break
15661 echo "$as_me: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15663 ac_lo=`expr $ac_mid + 1`
15664 if test $ac_lo -le $ac_mid; then
15668 ac_mid=`expr 2 '*' $ac_mid + 1`
15670 rm -f conftest.$ac_objext conftest.$ac_ext
15673 echo "$as_me: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15675 cat >conftest.$ac_ext <<_ACEOF
15676 #line $LINENO "configure"
15677 #include "confdefs.h"
15678 $ac_includes_default
15679 struct { char filler; short field; } pgac_struct;
15680 #ifdef F77_DUMMY_MAIN
15681 # ifdef __cplusplus
15684 int F77_DUMMY_MAIN() { return 1; }
15689 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -s conftest.$ac_objext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15712 #include "confdefs.h"
15713 $ac_includes_default
15714 struct { char filler; short field; } pgac_struct;
15715 #ifdef F77_DUMMY_MAIN
15716 # ifdef __cplusplus
15719 int F77_DUMMY_MAIN() { return 1; }
15724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15731 rm -f conftest.$ac_objext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733 (eval $ac_compile) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -s conftest.$ac_objext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_lo=$ac_mid; break
15745 echo "$as_me: failed program was:" >&5
15746 cat conftest.$ac_ext >&5
15747 ac_hi=`expr '(' $ac_mid ')' - 1`
15748 if test $ac_mid -le $ac_hi; then
15752 ac_mid=`expr 2 '*' $ac_mid`
15754 rm -f conftest.$ac_objext conftest.$ac_ext
15757 echo "$as_me: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15761 rm -f conftest.$ac_objext conftest.$ac_ext
15763 rm -f conftest.$ac_objext conftest.$ac_ext
15764 # Binary search between lo and hi bounds.
15765 while test "x$ac_lo" != "x$ac_hi"; do
15766 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15767 cat >conftest.$ac_ext <<_ACEOF
15768 #line $LINENO "configure"
15769 #include "confdefs.h"
15770 $ac_includes_default
15771 struct { char filler; short field; } pgac_struct;
15772 #ifdef F77_DUMMY_MAIN
15773 # ifdef __cplusplus
15776 int F77_DUMMY_MAIN() { return 1; }
15781 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15788 rm -f conftest.$ac_objext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15790 (eval $ac_compile) 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -s conftest.$ac_objext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15802 echo "$as_me: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 ac_lo=`expr '(' $ac_mid ')' + 1`
15806 rm -f conftest.$ac_objext conftest.$ac_ext
15809 ?*) pgac_cv_alignof_short=$ac_lo;;
15810 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15811 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15812 { (exit 1); exit 1; }; } ;;
15815 if test "$cross_compiling" = yes; then
15816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15817 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15818 { (exit 1); exit 1; }; }
15820 cat >conftest.$ac_ext <<_ACEOF
15821 #line $LINENO "configure"
15822 #include "confdefs.h"
15823 $ac_includes_default
15824 struct { char filler; short field; } pgac_struct;
15825 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15826 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15828 #include <stdlib.h>
15829 #ifdef F77_DUMMY_MAIN
15830 # ifdef __cplusplus
15833 int F77_DUMMY_MAIN() { return 1; }
15839 FILE *f = fopen ("conftest.val", "w");
15842 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15844 long i = longval ();
15845 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15847 fprintf (f, "%ld\n", i);
15851 unsigned long i = ulongval ();
15852 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15854 fprintf (f, "%lu\n", i);
15856 exit (ferror (f) || fclose (f) != 0);
15862 rm -f conftest$ac_exeext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 pgac_cv_alignof_short=`cat conftest.val`
15875 echo "$as_me: program exited with status $ac_status" >&5
15876 echo "$as_me: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 ( exit $ac_status )
15879 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15880 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15881 { (exit 1); exit 1; }; }
15883 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15888 pgac_cv_alignof_short=0
15891 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15892 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15893 cat >>confdefs.h <<_ACEOF
15894 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15898 echo "$as_me:$LINENO: checking for int" >&5
15899 echo $ECHO_N "checking for int... $ECHO_C" >&6
15900 if test "${ac_cv_type_int+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 cat >conftest.$ac_ext <<_ACEOF
15904 #line $LINENO "configure"
15905 #include "confdefs.h"
15906 $ac_includes_default
15907 #ifdef F77_DUMMY_MAIN
15908 # ifdef __cplusplus
15911 int F77_DUMMY_MAIN() { return 1; }
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15938 echo "$as_me: failed program was:" >&5
15939 cat conftest.$ac_ext >&5
15942 rm -f conftest.$ac_objext conftest.$ac_ext
15944 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15945 echo "${ECHO_T}$ac_cv_type_int" >&6
15947 echo "$as_me:$LINENO: checking alignment of int" >&5
15948 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15949 if test "${pgac_cv_alignof_int+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 if test "$ac_cv_type_int" = yes; then
15953 if test "$cross_compiling" = yes; then
15954 # Depending upon the size, compute the lo and hi bounds.
15955 cat >conftest.$ac_ext <<_ACEOF
15956 #line $LINENO "configure"
15957 #include "confdefs.h"
15958 $ac_includes_default
15959 struct { char filler; int field; } pgac_struct;
15960 #ifdef F77_DUMMY_MAIN
15961 # ifdef __cplusplus
15964 int F77_DUMMY_MAIN() { return 1; }
15969 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15976 rm -f conftest.$ac_objext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15978 (eval $ac_compile) 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15990 cat >conftest.$ac_ext <<_ACEOF
15991 #line $LINENO "configure"
15992 #include "confdefs.h"
15993 $ac_includes_default
15994 struct { char filler; int field; } pgac_struct;
15995 #ifdef F77_DUMMY_MAIN
15996 # ifdef __cplusplus
15999 int F77_DUMMY_MAIN() { return 1; }
16004 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16011 rm -f conftest.$ac_objext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_hi=$ac_mid; break
16025 echo "$as_me: failed program was:" >&5
16026 cat conftest.$ac_ext >&5
16027 ac_lo=`expr $ac_mid + 1`
16028 if test $ac_lo -le $ac_mid; then
16032 ac_mid=`expr 2 '*' $ac_mid + 1`
16034 rm -f conftest.$ac_objext conftest.$ac_ext
16037 echo "$as_me: failed program was:" >&5
16038 cat conftest.$ac_ext >&5
16039 cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16041 #include "confdefs.h"
16042 $ac_includes_default
16043 struct { char filler; int field; } pgac_struct;
16044 #ifdef F77_DUMMY_MAIN
16045 # ifdef __cplusplus
16048 int F77_DUMMY_MAIN() { return 1; }
16053 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16060 rm -f conftest.$ac_objext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16062 (eval $ac_compile) 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16074 cat >conftest.$ac_ext <<_ACEOF
16075 #line $LINENO "configure"
16076 #include "confdefs.h"
16077 $ac_includes_default
16078 struct { char filler; int field; } pgac_struct;
16079 #ifdef F77_DUMMY_MAIN
16080 # ifdef __cplusplus
16083 int F77_DUMMY_MAIN() { return 1; }
16088 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
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_lo=$ac_mid; break
16109 echo "$as_me: failed program was:" >&5
16110 cat conftest.$ac_ext >&5
16111 ac_hi=`expr '(' $ac_mid ')' - 1`
16112 if test $ac_mid -le $ac_hi; then
16116 ac_mid=`expr 2 '*' $ac_mid`
16118 rm -f conftest.$ac_objext conftest.$ac_ext
16121 echo "$as_me: failed program was:" >&5
16122 cat conftest.$ac_ext >&5
16125 rm -f conftest.$ac_objext conftest.$ac_ext
16127 rm -f conftest.$ac_objext conftest.$ac_ext
16128 # Binary search between lo and hi bounds.
16129 while test "x$ac_lo" != "x$ac_hi"; do
16130 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16131 cat >conftest.$ac_ext <<_ACEOF
16132 #line $LINENO "configure"
16133 #include "confdefs.h"
16134 $ac_includes_default
16135 struct { char filler; int field; } pgac_struct;
16136 #ifdef F77_DUMMY_MAIN
16137 # ifdef __cplusplus
16140 int F77_DUMMY_MAIN() { return 1; }
16145 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16152 rm -f conftest.$ac_objext
16153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16154 (eval $ac_compile) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try='test -s conftest.$ac_objext'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16166 echo "$as_me: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 ac_lo=`expr '(' $ac_mid ')' + 1`
16170 rm -f conftest.$ac_objext conftest.$ac_ext
16173 ?*) pgac_cv_alignof_int=$ac_lo;;
16174 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
16175 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
16176 { (exit 1); exit 1; }; } ;;
16179 if test "$cross_compiling" = yes; then
16180 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16181 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16182 { (exit 1); exit 1; }; }
16184 cat >conftest.$ac_ext <<_ACEOF
16185 #line $LINENO "configure"
16186 #include "confdefs.h"
16187 $ac_includes_default
16188 struct { char filler; int field; } pgac_struct;
16189 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16190 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16192 #include <stdlib.h>
16193 #ifdef F77_DUMMY_MAIN
16194 # ifdef __cplusplus
16197 int F77_DUMMY_MAIN() { return 1; }
16203 FILE *f = fopen ("conftest.val", "w");
16206 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16208 long i = longval ();
16209 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16211 fprintf (f, "%ld\n", i);
16215 unsigned long i = ulongval ();
16216 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16218 fprintf (f, "%lu\n", i);
16220 exit (ferror (f) || fclose (f) != 0);
16226 rm -f conftest$ac_exeext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228 (eval $ac_link) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 pgac_cv_alignof_int=`cat conftest.val`
16239 echo "$as_me: program exited with status $ac_status" >&5
16240 echo "$as_me: failed program was:" >&5
16241 cat conftest.$ac_ext >&5
16242 ( exit $ac_status )
16243 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
16244 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
16245 { (exit 1); exit 1; }; }
16247 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16252 pgac_cv_alignof_int=0
16255 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
16256 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
16257 cat >>confdefs.h <<_ACEOF
16258 #define ALIGNOF_INT $pgac_cv_alignof_int
16262 echo "$as_me:$LINENO: checking for long" >&5
16263 echo $ECHO_N "checking for long... $ECHO_C" >&6
16264 if test "${ac_cv_type_long+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 cat >conftest.$ac_ext <<_ACEOF
16268 #line $LINENO "configure"
16269 #include "confdefs.h"
16270 $ac_includes_default
16271 #ifdef F77_DUMMY_MAIN
16272 # ifdef __cplusplus
16275 int F77_DUMMY_MAIN() { return 1; }
16288 rm -f conftest.$ac_objext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -s conftest.$ac_objext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_cv_type_long=yes
16302 echo "$as_me: failed program was:" >&5
16303 cat conftest.$ac_ext >&5
16306 rm -f conftest.$ac_objext conftest.$ac_ext
16308 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16309 echo "${ECHO_T}$ac_cv_type_long" >&6
16311 echo "$as_me:$LINENO: checking alignment of long" >&5
16312 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
16313 if test "${pgac_cv_alignof_long+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 if test "$ac_cv_type_long" = yes; then
16317 if test "$cross_compiling" = yes; then
16318 # Depending upon the size, compute the lo and hi bounds.
16319 cat >conftest.$ac_ext <<_ACEOF
16320 #line $LINENO "configure"
16321 #include "confdefs.h"
16322 $ac_includes_default
16323 struct { char filler; long field; } pgac_struct;
16324 #ifdef F77_DUMMY_MAIN
16325 # ifdef __cplusplus
16328 int F77_DUMMY_MAIN() { return 1; }
16333 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16354 cat >conftest.$ac_ext <<_ACEOF
16355 #line $LINENO "configure"
16356 #include "confdefs.h"
16357 $ac_includes_default
16358 struct { char filler; long field; } pgac_struct;
16359 #ifdef F77_DUMMY_MAIN
16360 # ifdef __cplusplus
16363 int F77_DUMMY_MAIN() { return 1; }
16368 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16375 rm -f conftest.$ac_objext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16377 (eval $ac_compile) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_hi=$ac_mid; break
16389 echo "$as_me: failed program was:" >&5
16390 cat conftest.$ac_ext >&5
16391 ac_lo=`expr $ac_mid + 1`
16392 if test $ac_lo -le $ac_mid; then
16396 ac_mid=`expr 2 '*' $ac_mid + 1`
16398 rm -f conftest.$ac_objext conftest.$ac_ext
16401 echo "$as_me: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16403 cat >conftest.$ac_ext <<_ACEOF
16404 #line $LINENO "configure"
16405 #include "confdefs.h"
16406 $ac_includes_default
16407 struct { char filler; long field; } pgac_struct;
16408 #ifdef F77_DUMMY_MAIN
16409 # ifdef __cplusplus
16412 int F77_DUMMY_MAIN() { return 1; }
16417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16424 rm -f conftest.$ac_objext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426 (eval $ac_compile) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16438 cat >conftest.$ac_ext <<_ACEOF
16439 #line $LINENO "configure"
16440 #include "confdefs.h"
16441 $ac_includes_default
16442 struct { char filler; long field; } pgac_struct;
16443 #ifdef F77_DUMMY_MAIN
16444 # ifdef __cplusplus
16447 int F77_DUMMY_MAIN() { return 1; }
16452 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16459 rm -f conftest.$ac_objext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16461 (eval $ac_compile) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
16465 { ac_try='test -s conftest.$ac_objext'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16471 ac_lo=$ac_mid; break
16473 echo "$as_me: failed program was:" >&5
16474 cat conftest.$ac_ext >&5
16475 ac_hi=`expr '(' $ac_mid ')' - 1`
16476 if test $ac_mid -le $ac_hi; then
16480 ac_mid=`expr 2 '*' $ac_mid`
16482 rm -f conftest.$ac_objext conftest.$ac_ext
16485 echo "$as_me: failed program was:" >&5
16486 cat conftest.$ac_ext >&5
16489 rm -f conftest.$ac_objext conftest.$ac_ext
16491 rm -f conftest.$ac_objext conftest.$ac_ext
16492 # Binary search between lo and hi bounds.
16493 while test "x$ac_lo" != "x$ac_hi"; do
16494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16495 cat >conftest.$ac_ext <<_ACEOF
16496 #line $LINENO "configure"
16497 #include "confdefs.h"
16498 $ac_includes_default
16499 struct { char filler; long field; } pgac_struct;
16500 #ifdef F77_DUMMY_MAIN
16501 # ifdef __cplusplus
16504 int F77_DUMMY_MAIN() { return 1; }
16509 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16516 rm -f conftest.$ac_objext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518 (eval $ac_compile) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16530 echo "$as_me: failed program was:" >&5
16531 cat conftest.$ac_ext >&5
16532 ac_lo=`expr '(' $ac_mid ')' + 1`
16534 rm -f conftest.$ac_objext conftest.$ac_ext
16537 ?*) pgac_cv_alignof_long=$ac_lo;;
16538 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16539 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16540 { (exit 1); exit 1; }; } ;;
16543 if test "$cross_compiling" = yes; then
16544 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16545 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16546 { (exit 1); exit 1; }; }
16548 cat >conftest.$ac_ext <<_ACEOF
16549 #line $LINENO "configure"
16550 #include "confdefs.h"
16551 $ac_includes_default
16552 struct { char filler; long field; } pgac_struct;
16553 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16554 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16556 #include <stdlib.h>
16557 #ifdef F77_DUMMY_MAIN
16558 # ifdef __cplusplus
16561 int F77_DUMMY_MAIN() { return 1; }
16567 FILE *f = fopen ("conftest.val", "w");
16570 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16572 long i = longval ();
16573 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16575 fprintf (f, "%ld\n", i);
16579 unsigned long i = ulongval ();
16580 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16582 fprintf (f, "%lu\n", i);
16584 exit (ferror (f) || fclose (f) != 0);
16590 rm -f conftest$ac_exeext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592 (eval $ac_link) 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 pgac_cv_alignof_long=`cat conftest.val`
16603 echo "$as_me: program exited with status $ac_status" >&5
16604 echo "$as_me: failed program was:" >&5
16605 cat conftest.$ac_ext >&5
16606 ( exit $ac_status )
16607 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16608 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16609 { (exit 1); exit 1; }; }
16611 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16616 pgac_cv_alignof_long=0
16619 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
16620 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
16621 cat >>confdefs.h <<_ACEOF
16622 #define ALIGNOF_LONG $pgac_cv_alignof_long
16626 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16627 echo "$as_me:$LINENO: checking for long long int" >&5
16628 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16629 if test "${ac_cv_type_long_long_int+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 cat >conftest.$ac_ext <<_ACEOF
16633 #line $LINENO "configure"
16634 #include "confdefs.h"
16635 $ac_includes_default
16636 #ifdef F77_DUMMY_MAIN
16637 # ifdef __cplusplus
16640 int F77_DUMMY_MAIN() { return 1; }
16645 if ((long long int *) 0)
16647 if (sizeof (long long int))
16653 rm -f conftest.$ac_objext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16655 (eval $ac_compile) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_cv_type_long_long_int=yes
16667 echo "$as_me: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16669 ac_cv_type_long_long_int=no
16671 rm -f conftest.$ac_objext conftest.$ac_ext
16673 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16674 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16676 echo "$as_me:$LINENO: checking alignment of long long int" >&5
16677 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
16678 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 if test "$ac_cv_type_long_long_int" = yes; then
16682 if test "$cross_compiling" = yes; then
16683 # Depending upon the size, compute the lo and hi bounds.
16684 cat >conftest.$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16686 #include "confdefs.h"
16687 $ac_includes_default
16688 struct { char filler; long long int field; } pgac_struct;
16689 #ifdef F77_DUMMY_MAIN
16690 # ifdef __cplusplus
16693 int F77_DUMMY_MAIN() { return 1; }
16698 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16705 rm -f conftest.$ac_objext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -s conftest.$ac_objext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16719 cat >conftest.$ac_ext <<_ACEOF
16720 #line $LINENO "configure"
16721 #include "confdefs.h"
16722 $ac_includes_default
16723 struct { char filler; long long int field; } pgac_struct;
16724 #ifdef F77_DUMMY_MAIN
16725 # ifdef __cplusplus
16728 int F77_DUMMY_MAIN() { return 1; }
16733 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_hi=$ac_mid; break
16754 echo "$as_me: failed program was:" >&5
16755 cat conftest.$ac_ext >&5
16756 ac_lo=`expr $ac_mid + 1`
16757 if test $ac_lo -le $ac_mid; then
16761 ac_mid=`expr 2 '*' $ac_mid + 1`
16763 rm -f conftest.$ac_objext conftest.$ac_ext
16766 echo "$as_me: failed program was:" >&5
16767 cat conftest.$ac_ext >&5
16768 cat >conftest.$ac_ext <<_ACEOF
16769 #line $LINENO "configure"
16770 #include "confdefs.h"
16771 $ac_includes_default
16772 struct { char filler; long long int field; } pgac_struct;
16773 #ifdef F77_DUMMY_MAIN
16774 # ifdef __cplusplus
16777 int F77_DUMMY_MAIN() { return 1; }
16782 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16789 rm -f conftest.$ac_objext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16791 (eval $ac_compile) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -s conftest.$ac_objext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16803 cat >conftest.$ac_ext <<_ACEOF
16804 #line $LINENO "configure"
16805 #include "confdefs.h"
16806 $ac_includes_default
16807 struct { char filler; long long int field; } pgac_struct;
16808 #ifdef F77_DUMMY_MAIN
16809 # ifdef __cplusplus
16812 int F77_DUMMY_MAIN() { return 1; }
16817 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16824 rm -f conftest.$ac_objext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16826 (eval $ac_compile) 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 ac_lo=$ac_mid; break
16838 echo "$as_me: failed program was:" >&5
16839 cat conftest.$ac_ext >&5
16840 ac_hi=`expr '(' $ac_mid ')' - 1`
16841 if test $ac_mid -le $ac_hi; then
16845 ac_mid=`expr 2 '*' $ac_mid`
16847 rm -f conftest.$ac_objext conftest.$ac_ext
16850 echo "$as_me: failed program was:" >&5
16851 cat conftest.$ac_ext >&5
16854 rm -f conftest.$ac_objext conftest.$ac_ext
16856 rm -f conftest.$ac_objext conftest.$ac_ext
16857 # Binary search between lo and hi bounds.
16858 while test "x$ac_lo" != "x$ac_hi"; do
16859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 #include "confdefs.h"
16863 $ac_includes_default
16864 struct { char filler; long long int field; } pgac_struct;
16865 #ifdef F77_DUMMY_MAIN
16866 # ifdef __cplusplus
16869 int F77_DUMMY_MAIN() { return 1; }
16874 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16881 rm -f conftest.$ac_objext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16895 echo "$as_me: failed program was:" >&5
16896 cat conftest.$ac_ext >&5
16897 ac_lo=`expr '(' $ac_mid ')' + 1`
16899 rm -f conftest.$ac_objext conftest.$ac_ext
16902 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16903 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16904 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16905 { (exit 1); exit 1; }; } ;;
16908 if test "$cross_compiling" = yes; then
16909 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16910 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16911 { (exit 1); exit 1; }; }
16913 cat >conftest.$ac_ext <<_ACEOF
16914 #line $LINENO "configure"
16915 #include "confdefs.h"
16916 $ac_includes_default
16917 struct { char filler; long long int field; } pgac_struct;
16918 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16919 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16921 #include <stdlib.h>
16922 #ifdef F77_DUMMY_MAIN
16923 # ifdef __cplusplus
16926 int F77_DUMMY_MAIN() { return 1; }
16932 FILE *f = fopen ("conftest.val", "w");
16935 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16937 long i = longval ();
16938 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16940 fprintf (f, "%ld\n", i);
16944 unsigned long i = ulongval ();
16945 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16947 fprintf (f, "%lu\n", i);
16949 exit (ferror (f) || fclose (f) != 0);
16955 rm -f conftest$ac_exeext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957 (eval $ac_link) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 pgac_cv_alignof_long_long_int=`cat conftest.val`
16968 echo "$as_me: program exited with status $ac_status" >&5
16969 echo "$as_me: failed program was:" >&5
16970 cat conftest.$ac_ext >&5
16971 ( exit $ac_status )
16972 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16973 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16974 { (exit 1); exit 1; }; }
16976 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16981 pgac_cv_alignof_long_long_int=0
16984 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16985 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16986 cat >>confdefs.h <<_ACEOF
16987 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16992 echo "$as_me:$LINENO: checking for double" >&5
16993 echo $ECHO_N "checking for double... $ECHO_C" >&6
16994 if test "${ac_cv_type_double+set}" = set; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 cat >conftest.$ac_ext <<_ACEOF
16998 #line $LINENO "configure"
16999 #include "confdefs.h"
17000 $ac_includes_default
17001 #ifdef F77_DUMMY_MAIN
17002 # ifdef __cplusplus
17005 int F77_DUMMY_MAIN() { return 1; }
17012 if (sizeof (double))
17018 rm -f conftest.$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_cv_type_double=yes
17032 echo "$as_me: failed program was:" >&5
17033 cat conftest.$ac_ext >&5
17034 ac_cv_type_double=no
17036 rm -f conftest.$ac_objext conftest.$ac_ext
17038 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
17039 echo "${ECHO_T}$ac_cv_type_double" >&6
17041 echo "$as_me:$LINENO: checking alignment of double" >&5
17042 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
17043 if test "${pgac_cv_alignof_double+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 if test "$ac_cv_type_double" = yes; then
17047 if test "$cross_compiling" = yes; then
17048 # Depending upon the size, compute the lo and hi bounds.
17049 cat >conftest.$ac_ext <<_ACEOF
17050 #line $LINENO "configure"
17051 #include "confdefs.h"
17052 $ac_includes_default
17053 struct { char filler; double field; } pgac_struct;
17054 #ifdef F77_DUMMY_MAIN
17055 # ifdef __cplusplus
17058 int F77_DUMMY_MAIN() { return 1; }
17063 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
17070 rm -f conftest.$ac_objext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17072 (eval $ac_compile) 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -s conftest.$ac_objext'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; }; then
17084 cat >conftest.$ac_ext <<_ACEOF
17085 #line $LINENO "configure"
17086 #include "confdefs.h"
17087 $ac_includes_default
17088 struct { char filler; double field; } pgac_struct;
17089 #ifdef F77_DUMMY_MAIN
17090 # ifdef __cplusplus
17093 int F77_DUMMY_MAIN() { return 1; }
17098 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -s conftest.$ac_objext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_hi=$ac_mid; break
17119 echo "$as_me: failed program was:" >&5
17120 cat conftest.$ac_ext >&5
17121 ac_lo=`expr $ac_mid + 1`
17122 if test $ac_lo -le $ac_mid; then
17126 ac_mid=`expr 2 '*' $ac_mid + 1`
17128 rm -f conftest.$ac_objext conftest.$ac_ext
17131 echo "$as_me: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17133 cat >conftest.$ac_ext <<_ACEOF
17134 #line $LINENO "configure"
17135 #include "confdefs.h"
17136 $ac_includes_default
17137 struct { char filler; double field; } pgac_struct;
17138 #ifdef F77_DUMMY_MAIN
17139 # ifdef __cplusplus
17142 int F77_DUMMY_MAIN() { return 1; }
17147 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
17154 rm -f conftest.$ac_objext
17155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156 (eval $ac_compile) 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -s conftest.$ac_objext'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; }; then
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17170 #include "confdefs.h"
17171 $ac_includes_default
17172 struct { char filler; double field; } pgac_struct;
17173 #ifdef F77_DUMMY_MAIN
17174 # ifdef __cplusplus
17177 int F77_DUMMY_MAIN() { return 1; }
17182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
17189 rm -f conftest.$ac_objext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17191 (eval $ac_compile) 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -s conftest.$ac_objext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 ac_lo=$ac_mid; break
17203 echo "$as_me: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17205 ac_hi=`expr '(' $ac_mid ')' - 1`
17206 if test $ac_mid -le $ac_hi; then
17210 ac_mid=`expr 2 '*' $ac_mid`
17212 rm -f conftest.$ac_objext conftest.$ac_ext
17215 echo "$as_me: failed program was:" >&5
17216 cat conftest.$ac_ext >&5
17219 rm -f conftest.$ac_objext conftest.$ac_ext
17221 rm -f conftest.$ac_objext conftest.$ac_ext
17222 # Binary search between lo and hi bounds.
17223 while test "x$ac_lo" != "x$ac_hi"; do
17224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17225 cat >conftest.$ac_ext <<_ACEOF
17226 #line $LINENO "configure"
17227 #include "confdefs.h"
17228 $ac_includes_default
17229 struct { char filler; double field; } pgac_struct;
17230 #ifdef F77_DUMMY_MAIN
17231 # ifdef __cplusplus
17234 int F77_DUMMY_MAIN() { return 1; }
17239 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
17246 rm -f conftest.$ac_objext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -s conftest.$ac_objext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17260 echo "$as_me: failed program was:" >&5
17261 cat conftest.$ac_ext >&5
17262 ac_lo=`expr '(' $ac_mid ')' + 1`
17264 rm -f conftest.$ac_objext conftest.$ac_ext
17267 ?*) pgac_cv_alignof_double=$ac_lo;;
17268 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
17269 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
17270 { (exit 1); exit 1; }; } ;;
17273 if test "$cross_compiling" = yes; then
17274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17275 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17276 { (exit 1); exit 1; }; }
17278 cat >conftest.$ac_ext <<_ACEOF
17279 #line $LINENO "configure"
17280 #include "confdefs.h"
17281 $ac_includes_default
17282 struct { char filler; double field; } pgac_struct;
17283 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
17284 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
17286 #include <stdlib.h>
17287 #ifdef F77_DUMMY_MAIN
17288 # ifdef __cplusplus
17291 int F77_DUMMY_MAIN() { return 1; }
17297 FILE *f = fopen ("conftest.val", "w");
17300 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
17302 long i = longval ();
17303 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
17305 fprintf (f, "%ld\n", i);
17309 unsigned long i = ulongval ();
17310 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
17312 fprintf (f, "%lu\n", i);
17314 exit (ferror (f) || fclose (f) != 0);
17320 rm -f conftest$ac_exeext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17322 (eval $ac_link) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 pgac_cv_alignof_double=`cat conftest.val`
17333 echo "$as_me: program exited with status $ac_status" >&5
17334 echo "$as_me: failed program was:" >&5
17335 cat conftest.$ac_ext >&5
17336 ( exit $ac_status )
17337 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
17338 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
17339 { (exit 1); exit 1; }; }
17341 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17346 pgac_cv_alignof_double=0
17349 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
17350 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
17351 cat >>confdefs.h <<_ACEOF
17352 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
17357 # Compute maximum alignment of any basic type.
17358 # We assume long's alignment is at least as strong as char, short, or int;
17359 # but we must check long long (if it exists) and double.
17361 MAX_ALIGNOF=$pgac_cv_alignof_long
17362 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
17363 MAX_ALIGNOF=$pgac_cv_alignof_double
17365 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
17366 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
17369 cat >>confdefs.h <<_ACEOF
17370 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17375 # Some platforms predefine the types int8, int16, etc. Only check
17376 # a (hopefully) representative subset.
17377 echo "$as_me:$LINENO: checking for int8" >&5
17378 echo $ECHO_N "checking for int8... $ECHO_C" >&6
17379 if test "${ac_cv_type_int8+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 cat >conftest.$ac_ext <<_ACEOF
17383 #line $LINENO "configure"
17384 #include "confdefs.h"
17386 #ifdef HAVE_SUPPORTDEFS_H
17387 #include <SupportDefs.h>
17390 #ifdef F77_DUMMY_MAIN
17391 # ifdef __cplusplus
17394 int F77_DUMMY_MAIN() { return 1; }
17407 rm -f conftest.$ac_objext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17409 (eval $ac_compile) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try='test -s conftest.$ac_objext'
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 ac_cv_type_int8=yes
17421 echo "$as_me: failed program was:" >&5
17422 cat conftest.$ac_ext >&5
17425 rm -f conftest.$ac_objext conftest.$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
17428 echo "${ECHO_T}$ac_cv_type_int8" >&6
17429 if test $ac_cv_type_int8 = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define HAVE_INT8 1
17437 echo "$as_me:$LINENO: checking for uint8" >&5
17438 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
17439 if test "${ac_cv_type_uint8+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17443 #line $LINENO "configure"
17444 #include "confdefs.h"
17446 #ifdef HAVE_SUPPORTDEFS_H
17447 #include <SupportDefs.h>
17450 #ifdef F77_DUMMY_MAIN
17451 # ifdef __cplusplus
17454 int F77_DUMMY_MAIN() { return 1; }
17461 if (sizeof (uint8))
17467 rm -f conftest.$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try='test -s conftest.$ac_objext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_type_uint8=yes
17481 echo "$as_me: failed program was:" >&5
17482 cat conftest.$ac_ext >&5
17483 ac_cv_type_uint8=no
17485 rm -f conftest.$ac_objext conftest.$ac_ext
17487 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
17488 echo "${ECHO_T}$ac_cv_type_uint8" >&6
17489 if test $ac_cv_type_uint8 = yes; then
17491 cat >>confdefs.h <<_ACEOF
17492 #define HAVE_UINT8 1
17497 echo "$as_me:$LINENO: checking for int64" >&5
17498 echo $ECHO_N "checking for int64... $ECHO_C" >&6
17499 if test "${ac_cv_type_int64+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17503 #line $LINENO "configure"
17504 #include "confdefs.h"
17506 #ifdef HAVE_SUPPORTDEFS_H
17507 #include <SupportDefs.h>
17510 #ifdef F77_DUMMY_MAIN
17511 # ifdef __cplusplus
17514 int F77_DUMMY_MAIN() { return 1; }
17521 if (sizeof (int64))
17527 rm -f conftest.$ac_objext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529 (eval $ac_compile) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -s conftest.$ac_objext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_type_int64=yes
17541 echo "$as_me: failed program was:" >&5
17542 cat conftest.$ac_ext >&5
17543 ac_cv_type_int64=no
17545 rm -f conftest.$ac_objext conftest.$ac_ext
17547 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
17548 echo "${ECHO_T}$ac_cv_type_int64" >&6
17549 if test $ac_cv_type_int64 = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_INT64 1
17557 echo "$as_me:$LINENO: checking for uint64" >&5
17558 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
17559 if test "${ac_cv_type_uint64+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 cat >conftest.$ac_ext <<_ACEOF
17563 #line $LINENO "configure"
17564 #include "confdefs.h"
17566 #ifdef HAVE_SUPPORTDEFS_H
17567 #include <SupportDefs.h>
17570 #ifdef F77_DUMMY_MAIN
17571 # ifdef __cplusplus
17574 int F77_DUMMY_MAIN() { return 1; }
17581 if (sizeof (uint64))
17587 rm -f conftest.$ac_objext
17588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17589 (eval $ac_compile) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -s conftest.$ac_objext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_type_uint64=yes
17601 echo "$as_me: failed program was:" >&5
17602 cat conftest.$ac_ext >&5
17603 ac_cv_type_uint64=no
17605 rm -f conftest.$ac_objext conftest.$ac_ext
17607 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
17608 echo "${ECHO_T}$ac_cv_type_uint64" >&6
17609 if test $ac_cv_type_uint64 = yes; then
17611 cat >>confdefs.h <<_ACEOF
17612 #define HAVE_UINT64 1
17619 # We also check for sig_atomic_t, which *should* be defined per ANSI
17620 # C, but is missing on some old platforms.
17621 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
17622 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
17623 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17627 #line $LINENO "configure"
17628 #include "confdefs.h"
17629 #include <signal.h>
17631 #ifdef F77_DUMMY_MAIN
17632 # ifdef __cplusplus
17635 int F77_DUMMY_MAIN() { return 1; }
17640 if ((sig_atomic_t *) 0)
17642 if (sizeof (sig_atomic_t))
17648 rm -f conftest.$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_type_sig_atomic_t=yes
17662 echo "$as_me: failed program was:" >&5
17663 cat conftest.$ac_ext >&5
17664 ac_cv_type_sig_atomic_t=no
17666 rm -f conftest.$ac_objext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
17669 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
17670 if test $ac_cv_type_sig_atomic_t = yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define HAVE_SIG_ATOMIC_T 1
17681 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
17682 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
17683 if test "${pgac_cv_func_posix_signals+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17687 #line $LINENO "configure"
17688 #include "confdefs.h"
17689 #include <signal.h>
17691 #ifdef F77_DUMMY_MAIN
17692 # ifdef __cplusplus
17695 int F77_DUMMY_MAIN() { return 1; }
17700 struct sigaction act, oact;
17701 sigemptyset(&act.sa_mask);
17702 act.sa_flags = SA_RESTART;
17703 sigaction(0, &act, &oact);
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -s conftest$ac_exeext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 pgac_cv_func_posix_signals=yes
17722 echo "$as_me: failed program was:" >&5
17723 cat conftest.$ac_ext >&5
17724 pgac_cv_func_posix_signals=no
17726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17728 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
17729 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
17730 if test x"$pgac_cv_func_posix_signals" = xyes ; then
17732 cat >>confdefs.h <<\_ACEOF
17733 #define HAVE_POSIX_SIGNALS
17737 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
17739 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
17740 { { echo "$as_me:$LINENO: error:
17741 *** Thread-safety requires POSIX signals, which are not supported by your
17742 *** operating system.
17744 echo "$as_me: error:
17745 *** Thread-safety requires POSIX signals, which are not supported by your
17746 *** operating system.
17748 { (exit 1); exit 1; }; }
17751 if test $ac_cv_func_fseeko = yes; then
17752 # Check whether --enable-largefile or --disable-largefile was given.
17753 if test "${enable_largefile+set}" = set; then
17754 enableval="$enable_largefile"
17757 if test "$enable_largefile" != no; then
17759 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17760 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
17761 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 ac_cv_sys_largefile_CC=no
17765 if test "$GCC" != yes; then
17768 # IRIX 6.2 and later do not support large files by default,
17769 # so use the C compiler's -n32 option if that helps.
17770 cat >conftest.$ac_ext <<_ACEOF
17771 #line $LINENO "configure"
17772 #include "confdefs.h"
17773 #include <sys/types.h>
17774 /* Check that off_t can represent 2**63 - 1 correctly.
17775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17776 since some C++ compilers masquerading as C compilers
17777 incorrectly reject 9223372036854775807. */
17778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17780 && LARGE_OFF_T % 2147483647 == 1)
17782 #ifdef F77_DUMMY_MAIN
17783 # ifdef __cplusplus
17786 int F77_DUMMY_MAIN() { return 1; }
17796 rm -f conftest.$ac_objext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17798 (eval $ac_compile) 2>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -s conftest.$ac_objext'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17810 echo "$as_me: failed program was:" >&5
17811 cat conftest.$ac_ext >&5
17813 rm -f conftest.$ac_objext
17815 rm -f conftest.$ac_objext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17817 (eval $ac_compile) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_cv_sys_largefile_CC=' -n32'; break
17829 echo "$as_me: failed program was:" >&5
17830 cat conftest.$ac_ext >&5
17832 rm -f conftest.$ac_objext
17836 rm -f conftest.$ac_ext
17839 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17840 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
17841 if test "$ac_cv_sys_largefile_CC" != no; then
17842 CC=$CC$ac_cv_sys_largefile_CC
17845 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17846 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17847 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 ac_cv_sys_file_offset_bits=no
17852 cat >conftest.$ac_ext <<_ACEOF
17853 #line $LINENO "configure"
17854 #include "confdefs.h"
17855 #include <sys/types.h>
17856 /* Check that off_t can represent 2**63 - 1 correctly.
17857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17858 since some C++ compilers masquerading as C compilers
17859 incorrectly reject 9223372036854775807. */
17860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17862 && LARGE_OFF_T % 2147483647 == 1)
17864 #ifdef F77_DUMMY_MAIN
17865 # ifdef __cplusplus
17868 int F77_DUMMY_MAIN() { return 1; }
17878 rm -f conftest.$ac_objext
17879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17880 (eval $ac_compile) 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } &&
17884 { ac_try='test -s conftest.$ac_objext'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17892 echo "$as_me: failed program was:" >&5
17893 cat conftest.$ac_ext >&5
17895 rm -f conftest.$ac_objext conftest.$ac_ext
17896 cat >conftest.$ac_ext <<_ACEOF
17897 #line $LINENO "configure"
17898 #include "confdefs.h"
17899 #define _FILE_OFFSET_BITS 64
17900 #include <sys/types.h>
17901 /* Check that off_t can represent 2**63 - 1 correctly.
17902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17903 since some C++ compilers masquerading as C compilers
17904 incorrectly reject 9223372036854775807. */
17905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17907 && LARGE_OFF_T % 2147483647 == 1)
17909 #ifdef F77_DUMMY_MAIN
17910 # ifdef __cplusplus
17913 int F77_DUMMY_MAIN() { return 1; }
17923 rm -f conftest.$ac_objext
17924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17925 (eval $ac_compile) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try='test -s conftest.$ac_objext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_sys_file_offset_bits=64; break
17937 echo "$as_me: failed program was:" >&5
17938 cat conftest.$ac_ext >&5
17940 rm -f conftest.$ac_objext conftest.$ac_ext
17944 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17945 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17946 if test "$ac_cv_sys_file_offset_bits" != no; then
17948 cat >>confdefs.h <<_ACEOF
17949 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17954 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17955 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17956 if test "${ac_cv_sys_large_files+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 ac_cv_sys_large_files=no
17961 cat >conftest.$ac_ext <<_ACEOF
17962 #line $LINENO "configure"
17963 #include "confdefs.h"
17964 #include <sys/types.h>
17965 /* Check that off_t can represent 2**63 - 1 correctly.
17966 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17967 since some C++ compilers masquerading as C compilers
17968 incorrectly reject 9223372036854775807. */
17969 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17971 && LARGE_OFF_T % 2147483647 == 1)
17973 #ifdef F77_DUMMY_MAIN
17974 # ifdef __cplusplus
17977 int F77_DUMMY_MAIN() { return 1; }
17987 rm -f conftest.$ac_objext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17989 (eval $ac_compile) 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -s conftest.$ac_objext'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
18001 echo "$as_me: failed program was:" >&5
18002 cat conftest.$ac_ext >&5
18004 rm -f conftest.$ac_objext conftest.$ac_ext
18005 cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 #include "confdefs.h"
18008 #define _LARGE_FILES 1
18009 #include <sys/types.h>
18010 /* Check that off_t can represent 2**63 - 1 correctly.
18011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18012 since some C++ compilers masquerading as C compilers
18013 incorrectly reject 9223372036854775807. */
18014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18016 && LARGE_OFF_T % 2147483647 == 1)
18018 #ifdef F77_DUMMY_MAIN
18019 # ifdef __cplusplus
18022 int F77_DUMMY_MAIN() { return 1; }
18032 rm -f conftest.$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } &&
18038 { ac_try='test -s conftest.$ac_objext'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_cv_sys_large_files=1; break
18046 echo "$as_me: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18049 rm -f conftest.$ac_objext conftest.$ac_ext
18053 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18054 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18055 if test "$ac_cv_sys_large_files" != no; then
18057 cat >>confdefs.h <<_ACEOF
18058 #define _LARGE_FILES $ac_cv_sys_large_files
18067 # SunOS doesn't handle negative byte comparisons properly with +/- return
18068 echo "$as_me:$LINENO: checking for working memcmp" >&5
18069 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
18070 if test "${ac_cv_func_memcmp_working+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 if test "$cross_compiling" = yes; then
18074 ac_cv_func_memcmp_working=no
18076 cat >conftest.$ac_ext <<_ACEOF
18077 #line $LINENO "configure"
18078 #include "confdefs.h"
18080 #ifdef F77_DUMMY_MAIN
18081 # ifdef __cplusplus
18084 int F77_DUMMY_MAIN() { return 1; }
18090 /* Some versions of memcmp are not 8-bit clean. */
18091 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
18092 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18095 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18096 or more and with at least one buffer not starting on a 4-byte boundary.
18097 William Lewis provided this test program. */
18102 for (i = 0; i < 4; i++)
18106 strcpy (a, "--------01111111");
18107 strcpy (b, "--------10000000");
18108 if (memcmp (a, b, 16) >= 0)
18118 rm -f conftest$ac_exeext
18119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18120 (eval $ac_link) 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_cv_func_memcmp_working=yes
18131 echo "$as_me: program exited with status $ac_status" >&5
18132 echo "$as_me: failed program was:" >&5
18133 cat conftest.$ac_ext >&5
18134 ( exit $ac_status )
18135 ac_cv_func_memcmp_working=no
18137 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18140 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
18141 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
18142 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18146 # Select semaphore implementation type.
18147 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
18149 cat >>confdefs.h <<\_ACEOF
18150 #define USE_NAMED_POSIX_SEMAPHORES 1
18153 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
18155 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
18157 cat >>confdefs.h <<\_ACEOF
18158 #define USE_UNNAMED_POSIX_SEMAPHORES 1
18161 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
18164 cat >>confdefs.h <<\_ACEOF
18165 #define USE_SYSV_SEMAPHORES 1
18168 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
18173 # Select shared-memory implementation type.
18175 cat >>confdefs.h <<\_ACEOF
18176 #define USE_SYSV_SHARED_MEMORY 1
18179 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
18182 if test "$enable_nls" = yes ; then
18184 echo "$as_me:$LINENO: checking for library containing gettext" >&5
18185 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
18186 if test "${ac_cv_search_gettext+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 ac_func_search_save_LIBS=$LIBS
18190 ac_cv_search_gettext=no
18191 cat >conftest.$ac_ext <<_ACEOF
18192 #line $LINENO "configure"
18193 #include "confdefs.h"
18195 /* Override any gcc2 internal prototype to avoid an error. */
18199 /* We use char because int might match the return type of a gcc2
18200 builtin and then its argument prototype would still apply. */
18202 #ifdef F77_DUMMY_MAIN
18203 # ifdef __cplusplus
18206 int F77_DUMMY_MAIN() { return 1; }
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18218 (eval $ac_link) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_cv_search_gettext="none required"
18230 echo "$as_me: failed program was:" >&5
18231 cat conftest.$ac_ext >&5
18233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18234 if test "$ac_cv_search_gettext" = no; then
18235 for ac_lib in intl; do
18236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18237 cat >conftest.$ac_ext <<_ACEOF
18238 #line $LINENO "configure"
18239 #include "confdefs.h"
18241 /* Override any gcc2 internal prototype to avoid an error. */
18245 /* We use char because int might match the return type of a gcc2
18246 builtin and then its argument prototype would still apply. */
18248 #ifdef F77_DUMMY_MAIN
18249 # ifdef __cplusplus
18252 int F77_DUMMY_MAIN() { return 1; }
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_cv_search_gettext="-l$ac_lib"
18277 echo "$as_me: failed program was:" >&5
18278 cat conftest.$ac_ext >&5
18280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18283 LIBS=$ac_func_search_save_LIBS
18285 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
18286 echo "${ECHO_T}$ac_cv_search_gettext" >&6
18287 if test "$ac_cv_search_gettext" != no; then
18288 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
18291 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
18292 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
18293 { (exit 1); exit 1; }; }
18296 if test "${ac_cv_header_libintl_h+set}" = set; then
18297 echo "$as_me:$LINENO: checking for libintl.h" >&5
18298 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
18299 if test "${ac_cv_header_libintl_h+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
18303 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
18305 # Is the header compilable?
18306 echo "$as_me:$LINENO: checking libintl.h usability" >&5
18307 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
18308 cat >conftest.$ac_ext <<_ACEOF
18309 #line $LINENO "configure"
18310 #include "confdefs.h"
18311 $ac_includes_default
18312 #include <libintl.h>
18314 rm -f conftest.$ac_objext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316 (eval $ac_compile) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -s conftest.$ac_objext'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_header_compiler=yes
18328 echo "$as_me: failed program was:" >&5
18329 cat conftest.$ac_ext >&5
18330 ac_header_compiler=no
18332 rm -f conftest.$ac_objext conftest.$ac_ext
18333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18334 echo "${ECHO_T}$ac_header_compiler" >&6
18336 # Is the header present?
18337 echo "$as_me:$LINENO: checking libintl.h presence" >&5
18338 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
18339 cat >conftest.$ac_ext <<_ACEOF
18340 #line $LINENO "configure"
18341 #include "confdefs.h"
18342 #include <libintl.h>
18344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18347 egrep -v '^ *\+' conftest.er1 >conftest.err
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } >/dev/null; then
18352 if test -s conftest.err; then
18353 ac_cpp_err=$ac_c_preproc_warn_flag
18360 if test -z "$ac_cpp_err"; then
18361 ac_header_preproc=yes
18363 echo "$as_me: failed program was:" >&5
18364 cat conftest.$ac_ext >&5
18365 ac_header_preproc=no
18367 rm -f conftest.err conftest.$ac_ext
18368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18369 echo "${ECHO_T}$ac_header_preproc" >&6
18371 # So? What about this header?
18372 case $ac_header_compiler:$ac_header_preproc in
18374 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18375 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18376 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
18377 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
18379 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
18380 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
18382 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
18383 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
18384 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
18386 echo "$as_me:$LINENO: checking for libintl.h" >&5
18387 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
18388 if test "${ac_cv_header_libintl_h+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 ac_cv_header_libintl_h=$ac_header_preproc
18393 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
18394 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
18397 if test $ac_cv_header_libintl_h = yes; then
18400 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
18401 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
18402 { (exit 1); exit 1; }; }
18406 for ac_prog in msgfmt
18408 # Extract the first word of "$ac_prog", so it can be a program name with args.
18409 set dummy $ac_prog; ac_word=$2
18410 echo "$as_me:$LINENO: checking for $ac_word" >&5
18411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18412 if test "${ac_cv_prog_MSGFMT+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 if test -n "$MSGFMT"; then
18416 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
18418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18419 for as_dir in $PATH
18422 test -z "$as_dir" && as_dir=.
18423 for ac_exec_ext in '' $ac_executable_extensions; do
18424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18425 ac_cv_prog_MSGFMT="$ac_prog"
18426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18434 MSGFMT=$ac_cv_prog_MSGFMT
18435 if test -n "$MSGFMT"; then
18436 echo "$as_me:$LINENO: result: $MSGFMT" >&5
18437 echo "${ECHO_T}$MSGFMT" >&6
18439 echo "$as_me:$LINENO: result: no" >&5
18440 echo "${ECHO_T}no" >&6
18443 test -n "$MSGFMT" && break
18446 if test -z "$MSGFMT"; then
18447 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
18448 echo "$as_me: error: msgfmt is required for NLS" >&2;}
18449 { (exit 1); exit 1; }; }
18451 for ac_prog in msgmerge
18453 # Extract the first word of "$ac_prog", so it can be a program name with args.
18454 set dummy $ac_prog; ac_word=$2
18455 echo "$as_me:$LINENO: checking for $ac_word" >&5
18456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18457 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 if test -n "$MSGMERGE"; then
18461 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
18463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18464 for as_dir in $PATH
18467 test -z "$as_dir" && as_dir=.
18468 for ac_exec_ext in '' $ac_executable_extensions; do
18469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18470 ac_cv_prog_MSGMERGE="$ac_prog"
18471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18479 MSGMERGE=$ac_cv_prog_MSGMERGE
18480 if test -n "$MSGMERGE"; then
18481 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
18482 echo "${ECHO_T}$MSGMERGE" >&6
18484 echo "$as_me:$LINENO: result: no" >&5
18485 echo "${ECHO_T}no" >&6
18488 test -n "$MSGMERGE" && break
18491 for ac_prog in xgettext
18493 # Extract the first word of "$ac_prog", so it can be a program name with args.
18494 set dummy $ac_prog; ac_word=$2
18495 echo "$as_me:$LINENO: checking for $ac_word" >&5
18496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18497 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 if test -n "$XGETTEXT"; then
18501 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
18503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18504 for as_dir in $PATH
18507 test -z "$as_dir" && as_dir=.
18508 for ac_exec_ext in '' $ac_executable_extensions; do
18509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18510 ac_cv_prog_XGETTEXT="$ac_prog"
18511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18519 XGETTEXT=$ac_cv_prog_XGETTEXT
18520 if test -n "$XGETTEXT"; then
18521 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
18522 echo "${ECHO_T}$XGETTEXT" >&6
18524 echo "$as_me:$LINENO: result: no" >&5
18525 echo "${ECHO_T}no" >&6
18528 test -n "$XGETTEXT" && break
18532 # Note: share/locale is always the default, independent of $datadir
18533 localedir='${prefix}/share/locale'
18534 if test x"$prefix" = x"NONE"; then
18535 exp_localedir="$ac_default_prefix/share/locale"
18537 exp_localedir="$prefix/share/locale"
18542 cat >>confdefs.h <<_ACEOF
18543 #define LOCALEDIR "$exp_localedir"
18549 # Check for Tcl configuration script tclConfig.sh
18550 if test "$with_tcl" = yes; then
18551 for ac_prog in tclsh tcl
18553 # Extract the first word of "$ac_prog", so it can be a program name with args.
18554 set dummy $ac_prog; ac_word=$2
18555 echo "$as_me:$LINENO: checking for $ac_word" >&5
18556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18557 if test "${ac_cv_path_TCLSH+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
18565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18566 for as_dir in $PATH
18569 test -z "$as_dir" && as_dir=.
18570 for ac_exec_ext in '' $ac_executable_extensions; do
18571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18572 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
18573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18582 TCLSH=$ac_cv_path_TCLSH
18584 if test -n "$TCLSH"; then
18585 echo "$as_me:$LINENO: result: $TCLSH" >&5
18586 echo "${ECHO_T}$TCLSH" >&6
18588 echo "$as_me:$LINENO: result: no" >&5
18589 echo "${ECHO_T}no" >&6
18592 test -n "$TCLSH" && break
18595 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
18596 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
18597 # Let user override test
18598 if test -z "$TCL_CONFIG_SH"; then
18599 pgac_test_dirs="$with_tclconfig"
18601 set X $pgac_test_dirs; shift
18602 if test $# -eq 0; then
18603 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
18604 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
18605 { (exit 1); exit 1; }; }
18606 set X `echo 'puts $auto_path' | $TCLSH`; shift
18610 if test -r "$pgac_dir/tclConfig.sh"; then
18611 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
18617 if test -z "$TCL_CONFIG_SH"; then
18618 echo "$as_me:$LINENO: result: no" >&5
18619 echo "${ECHO_T}no" >&6
18620 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
18621 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
18622 { (exit 1); exit 1; }; }
18624 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
18625 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
18631 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
18632 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
18633 eval TCL_LIBS=\"$TCL_LIBS\"
18634 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
18635 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
18637 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18638 ac_save_CPPFLAGS=$CPPFLAGS
18639 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
18640 if test "${ac_cv_header_tcl_h+set}" = set; then
18641 echo "$as_me:$LINENO: checking for tcl.h" >&5
18642 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18643 if test "${ac_cv_header_tcl_h+set}" = set; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18647 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18649 # Is the header compilable?
18650 echo "$as_me:$LINENO: checking tcl.h usability" >&5
18651 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
18652 cat >conftest.$ac_ext <<_ACEOF
18653 #line $LINENO "configure"
18654 #include "confdefs.h"
18655 $ac_includes_default
18658 rm -f conftest.$ac_objext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18660 (eval $ac_compile) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try='test -s conftest.$ac_objext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_header_compiler=yes
18672 echo "$as_me: failed program was:" >&5
18673 cat conftest.$ac_ext >&5
18674 ac_header_compiler=no
18676 rm -f conftest.$ac_objext conftest.$ac_ext
18677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18678 echo "${ECHO_T}$ac_header_compiler" >&6
18680 # Is the header present?
18681 echo "$as_me:$LINENO: checking tcl.h presence" >&5
18682 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
18683 cat >conftest.$ac_ext <<_ACEOF
18684 #line $LINENO "configure"
18685 #include "confdefs.h"
18688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18691 egrep -v '^ *\+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } >/dev/null; then
18696 if test -s conftest.err; then
18697 ac_cpp_err=$ac_c_preproc_warn_flag
18704 if test -z "$ac_cpp_err"; then
18705 ac_header_preproc=yes
18707 echo "$as_me: failed program was:" >&5
18708 cat conftest.$ac_ext >&5
18709 ac_header_preproc=no
18711 rm -f conftest.err conftest.$ac_ext
18712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18713 echo "${ECHO_T}$ac_header_preproc" >&6
18715 # So? What about this header?
18716 case $ac_header_compiler:$ac_header_preproc in
18718 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18719 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18720 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18721 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18723 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
18724 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
18725 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
18726 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18728 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18730 echo "$as_me:$LINENO: checking for tcl.h" >&5
18731 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18732 if test "${ac_cv_header_tcl_h+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 ac_cv_header_tcl_h=$ac_header_preproc
18737 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18738 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18741 if test $ac_cv_header_tcl_h = yes; then
18744 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
18745 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
18746 { (exit 1); exit 1; }; }
18750 CPPFLAGS=$ac_save_CPPFLAGS
18754 # Check for DocBook and tools
18756 for ac_prog in onsgmls nsgmls
18758 # Extract the first word of "$ac_prog", so it can be a program name with args.
18759 set dummy $ac_prog; ac_word=$2
18760 echo "$as_me:$LINENO: checking for $ac_word" >&5
18761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18762 if test "${ac_cv_prog_NSGMLS+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 if test -n "$NSGMLS"; then
18766 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
18768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18769 for as_dir in $PATH
18772 test -z "$as_dir" && as_dir=.
18773 for ac_exec_ext in '' $ac_executable_extensions; do
18774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18775 ac_cv_prog_NSGMLS="$ac_prog"
18776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18784 NSGMLS=$ac_cv_prog_NSGMLS
18785 if test -n "$NSGMLS"; then
18786 echo "$as_me:$LINENO: result: $NSGMLS" >&5
18787 echo "${ECHO_T}$NSGMLS" >&6
18789 echo "$as_me:$LINENO: result: no" >&5
18790 echo "${ECHO_T}no" >&6
18793 test -n "$NSGMLS" && break
18796 for ac_prog in openjade jade
18798 # Extract the first word of "$ac_prog", so it can be a program name with args.
18799 set dummy $ac_prog; ac_word=$2
18800 echo "$as_me:$LINENO: checking for $ac_word" >&5
18801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18802 if test "${ac_cv_prog_JADE+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 if test -n "$JADE"; then
18806 ac_cv_prog_JADE="$JADE" # Let the user override the test.
18808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18809 for as_dir in $PATH
18812 test -z "$as_dir" && as_dir=.
18813 for ac_exec_ext in '' $ac_executable_extensions; do
18814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18815 ac_cv_prog_JADE="$ac_prog"
18816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18824 JADE=$ac_cv_prog_JADE
18825 if test -n "$JADE"; then
18826 echo "$as_me:$LINENO: result: $JADE" >&5
18827 echo "${ECHO_T}$JADE" >&6
18829 echo "$as_me:$LINENO: result: no" >&5
18830 echo "${ECHO_T}no" >&6
18833 test -n "$JADE" && break
18837 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
18838 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
18839 if test "${pgac_cv_check_docbook+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 cat >conftest.sgml <<EOF
18843 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
18845 <title>test</title>
18847 <title>random</title>
18849 <title>testsect</title>
18856 pgac_cv_check_docbook=no
18858 if test -n "$NSGMLS"; then
18859 $NSGMLS -s conftest.sgml 1>&5 2>&1
18860 if test $? -eq 0; then
18861 pgac_cv_check_docbook=yes
18864 rm -f conftest.sgml
18866 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
18867 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
18869 have_docbook=$pgac_cv_check_docbook
18872 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
18873 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
18874 if test "${pgac_cv_path_stylesheets+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 if test -n "$DOCBOOKSTYLE"; then
18878 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
18880 for pgac_prefix in /usr /usr/local /opt; do
18881 for pgac_infix in share lib; do
18882 for pgac_postfix in \
18883 sgml/stylesheets/nwalsh-modular \
18884 sgml/stylesheets/docbook \
18885 sgml/docbook-dsssl \
18886 sgml/docbook/dsssl/modular \
18887 sgml/docbook/stylesheet/dsssl/modular \
18888 sgml/docbook/dsssl-stylesheets
18890 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
18891 if test -r "$pgac_candidate/html/docbook.dsl" \
18892 && test -r "$pgac_candidate/print/docbook.dsl"
18894 pgac_cv_path_stylesheets=$pgac_candidate
18903 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
18905 if test -n "$DOCBOOKSTYLE"; then
18906 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
18907 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
18909 echo "$as_me:$LINENO: result: no" >&5
18910 echo "${ECHO_T}no" >&6
18912 if test -n "$DOCBOOKSTYLE"; then
18913 for ac_prog in collateindex.pl
18915 # Extract the first word of "$ac_prog", so it can be a program name with args.
18916 set dummy $ac_prog; ac_word=$2
18917 echo "$as_me:$LINENO: checking for $ac_word" >&5
18918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18919 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 case $COLLATEINDEX in
18924 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18928 for as_dir in $DOCBOOKSTYLE/bin $PATH
18931 test -z "$as_dir" && as_dir=.
18932 for ac_exec_ext in '' $ac_executable_extensions; do
18933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18934 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18944 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18946 if test -n "$COLLATEINDEX"; then
18947 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18948 echo "${ECHO_T}$COLLATEINDEX" >&6
18950 echo "$as_me:$LINENO: result: no" >&5
18951 echo "${ECHO_T}no" >&6
18954 test -n "$COLLATEINDEX" && break
18958 for ac_prog in collateindex.pl
18960 # Extract the first word of "$ac_prog", so it can be a program name with args.
18961 set dummy $ac_prog; ac_word=$2
18962 echo "$as_me:$LINENO: checking for $ac_word" >&5
18963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18964 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 case $COLLATEINDEX in
18969 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973 for as_dir in $PATH
18976 test -z "$as_dir" && as_dir=.
18977 for ac_exec_ext in '' $ac_executable_extensions; do
18978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18989 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18991 if test -n "$COLLATEINDEX"; then
18992 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18993 echo "${ECHO_T}$COLLATEINDEX" >&6
18995 echo "$as_me:$LINENO: result: no" >&5
18996 echo "${ECHO_T}no" >&6
18999 test -n "$COLLATEINDEX" && break
19003 for ac_prog in sgmlspl
19005 # Extract the first word of "$ac_prog", so it can be a program name with args.
19006 set dummy $ac_prog; ac_word=$2
19007 echo "$as_me:$LINENO: checking for $ac_word" >&5
19008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19009 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 if test -n "$SGMLSPL"; then
19013 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
19015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19016 for as_dir in $PATH
19019 test -z "$as_dir" && as_dir=.
19020 for ac_exec_ext in '' $ac_executable_extensions; do
19021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19022 ac_cv_prog_SGMLSPL="$ac_prog"
19023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19031 SGMLSPL=$ac_cv_prog_SGMLSPL
19032 if test -n "$SGMLSPL"; then
19033 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
19034 echo "${ECHO_T}$SGMLSPL" >&6
19036 echo "$as_me:$LINENO: result: no" >&5
19037 echo "${ECHO_T}no" >&6
19040 test -n "$SGMLSPL" && break
19046 # We have to run the thread test near the end so we have all our symbols
19047 # defined. Cross compiling throws a warning.
19049 if test "$enable_thread_safety_force" = yes; then
19050 { echo "$as_me:$LINENO: WARNING:
19051 *** Skipping thread test program. --enable-thread-safety-force was used.
19052 *** Run the program in src/tools/thread on the your machine and add
19053 proper locking function calls to your applications to guarantee thread
19056 echo "$as_me: WARNING:
19057 *** Skipping thread test program. --enable-thread-safety-force was used.
19058 *** Run the program in src/tools/thread on the your machine and add
19059 proper locking function calls to your applications to guarantee thread
19062 elif test "$enable_thread_safety" = yes; then
19063 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
19064 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
19068 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
19069 LIBS="$LIBS $PTHREAD_LIBS"
19070 if test "$cross_compiling" = yes; then
19071 echo "$as_me:$LINENO: result: maybe" >&5
19072 echo "${ECHO_T}maybe" >&6
19073 { echo "$as_me:$LINENO: WARNING:
19074 *** Skipping thread test program because of cross-compile build.
19075 *** Run the program in src/tools/thread on the target machine.
19077 echo "$as_me: WARNING:
19078 *** Skipping thread test program because of cross-compile build.
19079 *** Run the program in src/tools/thread on the target machine.
19082 cat >conftest.$ac_ext <<_ACEOF
19083 #line $LINENO "configure"
19084 #include "confdefs.h"
19085 #include "$srcdir/src/tools/thread/thread_test.c"
19087 rm -f conftest$ac_exeext
19088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19089 (eval $ac_link) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 echo "$as_me:$LINENO: result: yes" >&5
19099 echo "${ECHO_T}yes" >&6
19101 echo "$as_me: program exited with status $ac_status" >&5
19102 echo "$as_me: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
19104 ( exit $ac_status )
19105 echo "$as_me:$LINENO: result: no" >&5
19106 echo "${ECHO_T}no" >&6
19107 { { echo "$as_me:$LINENO: error:
19108 *** Thread test program failed. Your platform is not thread-safe.
19109 *** Check the file 'config.log'for the exact reason.
19111 *** You can use the configure option --enable-thread-safety-force
19112 *** to force threads to be enabled. However, you must then run
19113 *** the program in src/tools/thread and add locking function calls
19114 *** to your applications to guarantee thread safety.
19116 echo "$as_me: error:
19117 *** Thread test program failed. Your platform is not thread-safe.
19118 *** Check the file 'config.log'for the exact reason.
19120 *** You can use the configure option --enable-thread-safety-force
19121 *** to force threads to be enabled. However, you must then run
19122 *** the program in src/tools/thread and add locking function calls
19123 *** to your applications to guarantee thread safety.
19125 { (exit 1); exit 1; }; }
19127 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19133 # prepare build tree if outside source tree
19134 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19135 # Note 2: /bin/pwd might be better than shell's built-in at getting
19136 # a symlink-free name.
19137 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19141 if test "$no_create" != yes; then
19142 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
19143 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
19144 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19145 || { { echo "$as_me:$LINENO: error: failed" >&5
19146 echo "$as_me: error: failed" >&2;}
19147 { (exit 1); exit 1; }; }
19148 echo "$as_me:$LINENO: result: done" >&5
19149 echo "${ECHO_T}done" >&6
19155 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
19158 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}"
19161 if test "$PORTNAME" = "win32"; then
19162 ac_config_commands="$ac_config_commands check_win32_symlinks"
19166 ac_config_headers="$ac_config_headers src/include/pg_config.h"
19169 cat >confcache <<\_ACEOF
19170 # This file is a shell script that caches the results of configure
19171 # tests run on this system so they can be shared between configure
19172 # scripts and configure runs, see configure's option --config-cache.
19173 # It is not useful on other systems. If it contains results you don't
19174 # want to keep, you may remove or edit it.
19176 # config.status only pays attention to the cache file if you give it
19177 # the --recheck option to rerun configure.
19179 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19181 # following values.
19185 # The following way of writing the cache mishandles newlines in values,
19186 # but we know of no workaround that is simple, portable, and efficient.
19187 # So, don't put newlines in cache variables' values.
19188 # Ultrix sh set writes to stderr and can't be redirected directly,
19189 # and sets the high bit in the cache file unless we assign to the vars.
19192 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19194 # `set' does not quote correctly, so add quotes (double-quote
19195 # substitution turns \\\\ into \\, and sed turns \\ into \).
19198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19201 # `set' quotes correctly as required by POSIX, so do not add quotes.
19203 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19212 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19214 if cmp -s $cache_file confcache; then :; else
19215 if test -w $cache_file; then
19216 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19217 cat confcache >$cache_file
19219 echo "not updating unwritable cache $cache_file"
19224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19225 # Let make expand exec_prefix.
19226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19228 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19229 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19230 # trailing colons and then remove the whole line if VPATH becomes empty
19231 # (actually we leave an empty line to preserve line numbers).
19232 if test "x$srcdir" = x.; then
19233 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19234 s/:*\$(srcdir):*/:/;
19235 s/:*\${srcdir}:*/:/;
19237 s/^\([^=]*=[ ]*\):*/\1/;
19243 DEFS=-DHAVE_CONFIG_H
19246 : ${CONFIG_STATUS=./config.status}
19247 ac_clean_files_save=$ac_clean_files
19248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19249 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19250 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19251 cat >$CONFIG_STATUS <<_ACEOF
19253 # Generated by $as_me.
19254 # Run this file to recreate the current configuration.
19255 # Compiler output produced by configure, useful for debugging
19256 # configure, is in config.log if it exists.
19259 SHELL=\${CONFIG_SHELL-$SHELL}
19262 cat >>$CONFIG_STATUS <<\_ACEOF
19264 ## --------------------- ##
19265 ## M4sh Initialization. ##
19266 ## --------------------- ##
19268 # Be Bourne compatible
19269 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19272 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19277 # Support unset when possible.
19278 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19284 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
19285 { $as_unset LANG || test "${LANG+set}" != set; } ||
19286 { LANG=C; export LANG; }
19287 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
19288 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
19289 { LC_ALL=C; export LC_ALL; }
19290 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
19291 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
19292 { LC_TIME=C; export LC_TIME; }
19293 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
19294 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
19295 { LC_CTYPE=C; export LC_CTYPE; }
19296 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
19297 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
19298 { LANGUAGE=C; export LANGUAGE; }
19299 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
19300 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
19301 { LC_COLLATE=C; export LC_COLLATE; }
19302 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
19303 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
19304 { LC_NUMERIC=C; export LC_NUMERIC; }
19305 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
19306 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
19307 { LC_MESSAGES=C; export LC_MESSAGES; }
19310 # Name of the executable.
19311 as_me=`(basename "$0") 2>/dev/null ||
19312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19313 X"$0" : 'X\(//\)$' \| \
19314 X"$0" : 'X\(/\)$' \| \
19315 . : '\(.\)' 2>/dev/null ||
19317 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19318 /^X\/\(\/\/\)$/{ s//\1/; q; }
19319 /^X\/\(\/\).*/{ s//\1/; q; }
19322 # PATH needs CR, and LINENO needs CR and PATH.
19323 # Avoid depending upon Character Ranges.
19324 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19325 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19326 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19327 as_cr_digits='0123456789'
19328 as_cr_alnum=$as_cr_Letters$as_cr_digits
19330 # The user is always right.
19331 if test "${PATH_SEPARATOR+set}" != set; then
19332 echo "#! /bin/sh" >conftest.sh
19333 echo "exit 0" >>conftest.sh
19334 chmod +x conftest.sh
19335 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
19344 as_lineno_1=$LINENO
19345 as_lineno_2=$LINENO
19346 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19347 test "x$as_lineno_1" != "x$as_lineno_2" &&
19348 test "x$as_lineno_3" = "x$as_lineno_2" || {
19349 # Find who we are. Look in the path if we contain no path at all
19352 *[\\/]* ) as_myself=$0 ;;
19353 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19354 for as_dir in $PATH
19357 test -z "$as_dir" && as_dir=.
19358 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19363 # We did not find ourselves, most probably we were run as `sh COMMAND'
19364 # in which case we are not to be found in the path.
19365 if test "x$as_myself" = x; then
19368 if test ! -f "$as_myself"; then
19369 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19370 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19371 { (exit 1); exit 1; }; }
19373 case $CONFIG_SHELL in
19375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19376 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19379 test -z "$as_dir" && as_dir=.
19380 for as_base in sh bash ksh sh5; do
19383 if ("$as_dir/$as_base" -c '
19384 as_lineno_1=$LINENO
19385 as_lineno_2=$LINENO
19386 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19387 test "x$as_lineno_1" != "x$as_lineno_2" &&
19388 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19389 CONFIG_SHELL=$as_dir/$as_base
19390 export CONFIG_SHELL
19391 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19400 # uniformly replaced by the line number. The first 'sed' inserts a
19401 # line-number line before each line; the second 'sed' does the real
19402 # work. The second script uses 'N' to pair each line-number line
19403 # with the numbered line, and appends trailing '-' during
19404 # substitution so that $LINENO is not a special case at line end.
19405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19406 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19407 sed '=' <$as_myself |
19412 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19415 s,^['$as_cr_digits']*\n,,
19416 ' >$as_me.lineno &&
19417 chmod +x $as_me.lineno ||
19418 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19419 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19420 { (exit 1); exit 1; }; }
19422 # Don't try to exec as it changes $[0], causing all sort of problems
19423 # (the dirname of $[0] is not the place where we might find the
19424 # original and so on. Autoconf is especially sensible to this).
19426 # Exit status is that of the last command.
19431 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19432 *c*,-n*) ECHO_N= ECHO_C='
19434 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19435 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19438 if expr a : '\(a\)' >/dev/null 2>&1; then
19444 rm -f conf$$ conf$$.exe conf$$.file
19446 if ln -s conf$$.file conf$$ 2>/dev/null; then
19447 # We could just check for DJGPP; but this test a) works b) is more generic
19448 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19449 if test -f conf$$.exe; then
19450 # Don't use ln at all; we don't have any links
19455 elif ln conf$$.file conf$$ 2>/dev/null; then
19460 rm -f conf$$ conf$$.exe conf$$.file
19462 as_executable_p="test -f"
19464 # Sed expression to map a string onto a valid CPP name.
19465 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19467 # Sed expression to map a string onto a valid variable name.
19468 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19472 # We need space, tab and new line, in precisely that order.
19478 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
19482 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19483 # report actual input values of CONFIG_FILES etc. instead of their
19484 # values after options handling. Logging --version etc. is OK.
19488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19489 ## Running $as_me. ##
19494 This file was extended by PostgreSQL $as_me 8.1devel, which was
19495 generated by GNU Autoconf 2.53. Invocation command line was
19497 CONFIG_FILES = $CONFIG_FILES
19498 CONFIG_HEADERS = $CONFIG_HEADERS
19499 CONFIG_LINKS = $CONFIG_LINKS
19500 CONFIG_COMMANDS = $CONFIG_COMMANDS
19504 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19508 # Files that config.status was made for.
19509 if test -n "$ac_config_files"; then
19510 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19513 if test -n "$ac_config_headers"; then
19514 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19517 if test -n "$ac_config_links"; then
19518 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19521 if test -n "$ac_config_commands"; then
19522 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19525 cat >>$CONFIG_STATUS <<\_ACEOF
19528 \`$as_me' instantiates files from templates according to the
19529 current configuration.
19531 Usage: $0 [OPTIONS] [FILE]...
19533 -h, --help print this help, then exit
19534 -V, --version print version number, then exit
19535 -d, --debug don't remove temporary files
19536 --recheck update $as_me by reconfiguring in the same conditions
19537 --file=FILE[:TEMPLATE]
19538 instantiate the configuration file FILE
19539 --header=FILE[:TEMPLATE]
19540 instantiate the configuration header FILE
19542 Configuration files:
19545 Configuration headers:
19548 Configuration links:
19551 Configuration commands:
19554 Report bugs to <bug-autoconf@gnu.org>."
19557 cat >>$CONFIG_STATUS <<_ACEOF
19559 PostgreSQL config.status 8.1devel
19560 configured by $0, generated by GNU Autoconf 2.53,
19561 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19563 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19564 Free Software Foundation, Inc.
19565 This config.status script is free software; the Free Software Foundation
19566 gives unlimited permission to copy, distribute and modify it."
19570 cat >>$CONFIG_STATUS <<\_ACEOF
19571 # If no file are specified by the user, then we need to provide default
19572 # value. By we need to know if files were specified by the user.
19578 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19579 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19581 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19585 *) # This is not an option, so the user has probably given explicit
19587 ac_need_defaults=false;;
19591 # Handling of the options.
19593 cat >>$CONFIG_STATUS <<_ACEOF
19594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19595 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19596 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19598 cat >>$CONFIG_STATUS <<\_ACEOF
19599 --version | --vers* | -V )
19600 echo "$ac_cs_version"; exit 0 ;;
19602 # Conflict between --help and --header
19603 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19604 Try \`$0 --help' for more information." >&5
19605 echo "$as_me: error: ambiguous option: $1
19606 Try \`$0 --help' for more information." >&2;}
19607 { (exit 1); exit 1; }; };;
19608 --help | --hel | -h )
19609 echo "$ac_cs_usage"; exit 0 ;;
19610 --debug | --d* | -d )
19612 --file | --fil | --fi | --f )
19614 CONFIG_FILES="$CONFIG_FILES $1"
19615 ac_need_defaults=false;;
19616 --header | --heade | --head | --hea )
19618 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19619 ac_need_defaults=false;;
19621 # This is an error.
19622 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19623 Try \`$0 --help' for more information." >&5
19624 echo "$as_me: error: unrecognized option: $1
19625 Try \`$0 --help' for more information." >&2;}
19626 { (exit 1); exit 1; }; } ;;
19628 *) ac_config_targets="$ac_config_targets $1" ;;
19640 cat >>$CONFIG_STATUS <<\_ACEOF
19641 for ac_config_target in $ac_config_targets
19643 case "$ac_config_target" in
19644 # Handling of arguments.
19645 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19646 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
19647 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19648 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
19649 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19650 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19651 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
19652 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19653 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19654 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
19655 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
19656 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19657 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19658 { (exit 1); exit 1; }; };;
19662 # If the user did not use the arguments to specify the items to instantiate,
19663 # then the envvar interface is used. Set only those that are not.
19664 # We use the long form for the default assignment because of an extremely
19665 # bizarre bug on SunOS 4.1.3.
19666 if $ac_need_defaults; then
19667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19668 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19669 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19673 # Create a temporary directory, and hook for its removal unless debugging.
19676 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19677 trap '{ (exit 1); exit 1; }' 1 2 13 15
19680 # Create a (secure) tmp directory for tmp files.
19683 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19684 test -n "$tmp" && test -d "$tmp"
19687 tmp=$TMPDIR/cs$$-$RANDOM
19688 (umask 077 && mkdir $tmp)
19691 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19692 { (exit 1); exit 1; }
19697 cat >>$CONFIG_STATUS <<_ACEOF
19700 # CONFIG_FILES section.
19703 # No need to generate the scripts if there are no CONFIG_FILES.
19704 # This happens for instance when ./config.status config.h
19705 if test -n "\$CONFIG_FILES"; then
19706 # Protect against being on the right side of a sed subst in config.status.
19707 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19708 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19709 s,@SHELL@,$SHELL,;t t
19710 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19711 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19712 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19713 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19714 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19715 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19716 s,@exec_prefix@,$exec_prefix,;t t
19717 s,@prefix@,$prefix,;t t
19718 s,@program_transform_name@,$program_transform_name,;t t
19719 s,@bindir@,$bindir,;t t
19720 s,@sbindir@,$sbindir,;t t
19721 s,@libexecdir@,$libexecdir,;t t
19722 s,@datadir@,$datadir,;t t
19723 s,@sysconfdir@,$sysconfdir,;t t
19724 s,@sharedstatedir@,$sharedstatedir,;t t
19725 s,@localstatedir@,$localstatedir,;t t
19726 s,@libdir@,$libdir,;t t
19727 s,@includedir@,$includedir,;t t
19728 s,@oldincludedir@,$oldincludedir,;t t
19729 s,@infodir@,$infodir,;t t
19730 s,@mandir@,$mandir,;t t
19731 s,@build_alias@,$build_alias,;t t
19732 s,@host_alias@,$host_alias,;t t
19733 s,@target_alias@,$target_alias,;t t
19734 s,@DEFS@,$DEFS,;t t
19735 s,@ECHO_C@,$ECHO_C,;t t
19736 s,@ECHO_N@,$ECHO_N,;t t
19737 s,@ECHO_T@,$ECHO_T,;t t
19738 s,@LIBS@,$LIBS,;t t
19739 s,@configure_args@,$configure_args,;t t
19740 s,@build@,$build,;t t
19741 s,@build_cpu@,$build_cpu,;t t
19742 s,@build_vendor@,$build_vendor,;t t
19743 s,@build_os@,$build_os,;t t
19744 s,@host@,$host,;t t
19745 s,@host_cpu@,$host_cpu,;t t
19746 s,@host_vendor@,$host_vendor,;t t
19747 s,@host_os@,$host_os,;t t
19748 s,@PORTNAME@,$PORTNAME,;t t
19749 s,@docdir@,$docdir,;t t
19750 s,@enable_nls@,$enable_nls,;t t
19751 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
19752 s,@default_port@,$default_port,;t t
19753 s,@enable_shared@,$enable_shared,;t t
19754 s,@enable_rpath@,$enable_rpath,;t t
19755 s,@enable_debug@,$enable_debug,;t t
19757 s,@CFLAGS@,$CFLAGS,;t t
19758 s,@LDFLAGS@,$LDFLAGS,;t t
19759 s,@CPPFLAGS@,$CPPFLAGS,;t t
19760 s,@ac_ct_CC@,$ac_ct_CC,;t t
19761 s,@EXEEXT@,$EXEEXT,;t t
19762 s,@OBJEXT@,$OBJEXT,;t t
19766 s,@autodepend@,$autodepend,;t t
19767 s,@INCLUDES@,$INCLUDES,;t t
19768 s,@enable_thread_safety@,$enable_thread_safety,;t t
19769 s,@with_tcl@,$with_tcl,;t t
19770 s,@with_perl@,$with_perl,;t t
19771 s,@with_python@,$with_python,;t t
19772 s,@with_krb4@,$with_krb4,;t t
19773 s,@with_krb5@,$with_krb5,;t t
19774 s,@krb_srvtab@,$krb_srvtab,;t t
19775 s,@with_pam@,$with_pam,;t t
19776 s,@with_rendezvous@,$with_rendezvous,;t t
19777 s,@with_openssl@,$with_openssl,;t t
19778 s,@ELF_SYS@,$ELF_SYS,;t t
19779 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
19781 s,@FLEX@,$FLEX,;t t
19782 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
19783 s,@LN_S@,$LN_S,;t t
19785 s,@with_gnu_ld@,$with_gnu_ld,;t t
19786 s,@ld_R_works@,$ld_R_works,;t t
19787 s,@RANLIB@,$RANLIB,;t t
19788 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19789 s,@LORDER@,$LORDER,;t t
19791 s,@STRIP@,$STRIP,;t t
19792 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19793 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
19794 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
19795 s,@YACC@,$YACC,;t t
19796 s,@YFLAGS@,$YFLAGS,;t t
19797 s,@PERL@,$PERL,;t t
19798 s,@perl_archlibexp@,$perl_archlibexp,;t t
19799 s,@perl_privlibexp@,$perl_privlibexp,;t t
19800 s,@perl_useshrplib@,$perl_useshrplib,;t t
19801 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
19802 s,@PYTHON@,$PYTHON,;t t
19803 s,@python_version@,$python_version,;t t
19804 s,@python_configdir@,$python_configdir,;t t
19805 s,@python_includespec@,$python_includespec,;t t
19806 s,@python_libdir@,$python_libdir,;t t
19807 s,@python_libspec@,$python_libspec,;t t
19808 s,@python_additional_libs@,$python_additional_libs,;t t
19809 s,@LIBOBJS@,$LIBOBJS,;t t
19810 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
19811 s,@acx_pthread_config@,$acx_pthread_config,;t t
19812 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
19813 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
19814 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
19815 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
19816 s,@MSGFMT@,$MSGFMT,;t t
19817 s,@MSGMERGE@,$MSGMERGE,;t t
19818 s,@XGETTEXT@,$XGETTEXT,;t t
19819 s,@localedir@,$localedir,;t t
19820 s,@TCLSH@,$TCLSH,;t t
19821 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
19822 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
19823 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
19824 s,@TCL_LIBS@,$TCL_LIBS,;t t
19825 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
19826 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
19827 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
19828 s,@NSGMLS@,$NSGMLS,;t t
19829 s,@JADE@,$JADE,;t t
19830 s,@have_docbook@,$have_docbook,;t t
19831 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
19832 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
19833 s,@SGMLSPL@,$SGMLSPL,;t t
19834 s,@vpath_build@,$vpath_build,;t t
19839 cat >>$CONFIG_STATUS <<\_ACEOF
19840 # Split the substitutions into bite-sized pieces for seds with
19841 # small command number limits, like on Digital OSF/1 and HP-UX.
19842 ac_max_sed_lines=48
19843 ac_sed_frag=1 # Number of current file.
19844 ac_beg=1 # First line for current file.
19845 ac_end=$ac_max_sed_lines # Line after last line for current file.
19848 while $ac_more_lines; do
19849 if test $ac_beg -gt 1; then
19850 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19852 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19854 if test ! -s $tmp/subs.frag; then
19855 ac_more_lines=false
19857 # The purpose of the label and of the branching condition is to
19858 # speed up the sed processing (if there are no `@' at all, there
19859 # is no need to browse any of the substitutions).
19860 # These are the two extra sed commands mentioned above.
19862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19863 if test -z "$ac_sed_cmds"; then
19864 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19866 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19868 ac_sed_frag=`expr $ac_sed_frag + 1`
19870 ac_end=`expr $ac_end + $ac_max_sed_lines`
19873 if test -z "$ac_sed_cmds"; then
19876 fi # test -n "$CONFIG_FILES"
19879 cat >>$CONFIG_STATUS <<\_ACEOF
19880 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19881 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19883 - | *:- | *:-:* ) # input from stdin
19885 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19886 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19887 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19888 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19889 * ) ac_file_in=$ac_file.in ;;
19892 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19893 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19895 X"$ac_file" : 'X\(//\)[^/]' \| \
19896 X"$ac_file" : 'X\(//\)$' \| \
19897 X"$ac_file" : 'X\(/\)' \| \
19898 . : '\(.\)' 2>/dev/null ||
19900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19902 /^X\(\/\/\)$/{ s//\1/; q; }
19903 /^X\(\/\).*/{ s//\1/; q; }
19905 { case "$ac_dir" in
19906 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19910 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19911 case $as_mkdir_dir in
19912 # Skip DOS drivespec
19913 ?:) as_incr_dir=$as_mkdir_dir ;;
19915 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19916 test -d "$as_incr_dir" ||
19917 mkdir "$as_incr_dir" ||
19918 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19919 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19920 { (exit 1); exit 1; }; }
19927 if test "$ac_dir" != .; then
19928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19929 # A "../" for each directory in $ac_dir_suffix.
19930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19932 ac_dir_suffix= ac_top_builddir=
19936 .) # No --srcdir option. We are building in place.
19938 if test -z "$ac_top_builddir"; then
19941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19943 [\\/]* | ?:[\\/]* ) # Absolute path.
19944 ac_srcdir=$srcdir$ac_dir_suffix;
19945 ac_top_srcdir=$srcdir ;;
19946 *) # Relative path.
19947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19950 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19952 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19953 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19954 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19955 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19959 if test x"$ac_file" != x-; then
19960 { echo "$as_me:$LINENO: creating $ac_file" >&5
19961 echo "$as_me: creating $ac_file" >&6;}
19964 # Let's still pretend it is `configure' which instantiates (i.e., don't
19965 # use $as_me), people would be surprised to read:
19966 # /* config.h. Generated by config.status. */
19967 if test x"$ac_file" = x-; then
19970 configure_input="$ac_file. "
19972 configure_input=$configure_input"Generated from `echo $ac_file_in |
19973 sed 's,.*/,,'` by configure."
19975 # First look for the input files in the build tree, otherwise in the
19977 ac_file_inputs=`IFS=:
19978 for f in $ac_file_in; do
19980 -) echo $tmp/stdin ;;
19982 # Absolute (can't be DOS-style, as IFS=:)
19983 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19984 echo "$as_me: error: cannot find input file: $f" >&2;}
19985 { (exit 1); exit 1; }; }
19988 if test -f "$f"; then
19991 elif test -f "$srcdir/$f"; then
19996 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19997 echo "$as_me: error: cannot find input file: $f" >&2;}
19998 { (exit 1); exit 1; }; }
20001 done` || { (exit 1); exit 1; }
20003 cat >>$CONFIG_STATUS <<_ACEOF
20007 cat >>$CONFIG_STATUS <<\_ACEOF
20009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20010 s,@configure_input@,$configure_input,;t t
20011 s,@srcdir@,$ac_srcdir,;t t
20012 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20013 s,@top_srcdir@,$ac_top_srcdir,;t t
20014 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20015 s,@builddir@,$ac_builddir,;t t
20016 s,@abs_builddir@,$ac_abs_builddir,;t t
20017 s,@top_builddir@,$ac_top_builddir,;t t
20018 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20019 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20021 if test x"$ac_file" != x-; then
20022 mv $tmp/out $ac_file
20030 cat >>$CONFIG_STATUS <<\_ACEOF
20033 # CONFIG_HEADER section.
20036 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20037 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20039 # ac_d sets the value in "#define NAME VALUE" lines.
20040 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20041 ac_dB='[ ].*$,\1#\2'
20044 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20045 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20046 ac_uB='$,\1#\2define\3'
20050 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20053 - | *:- | *:-:* ) # input from stdin
20055 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20057 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20058 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20059 * ) ac_file_in=$ac_file.in ;;
20062 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20063 echo "$as_me: creating $ac_file" >&6;}
20065 # First look for the input files in the build tree, otherwise in the
20067 ac_file_inputs=`IFS=:
20068 for f in $ac_file_in; do
20070 -) echo $tmp/stdin ;;
20072 # Absolute (can't be DOS-style, as IFS=:)
20073 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20074 echo "$as_me: error: cannot find input file: $f" >&2;}
20075 { (exit 1); exit 1; }; }
20078 if test -f "$f"; then
20081 elif test -f "$srcdir/$f"; then
20086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20087 echo "$as_me: error: cannot find input file: $f" >&2;}
20088 { (exit 1); exit 1; }; }
20091 done` || { (exit 1); exit 1; }
20092 # Remove the trailing spaces.
20093 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20098 # `conftest.undefs', that substitutes the proper values into
20099 # config.h.in to produce config.h. The first handles `#define'
20100 # templates, and the second `#undef' templates.
20101 # And first: Protect against being on the right side of a sed subst in
20102 # config.status. Protect against being in an unquoted here document
20103 # in config.status.
20104 rm -f conftest.defines conftest.undefs
20105 # Using a here document instead of a string reduces the quoting nightmare.
20106 # Putting comments in sed scripts is not portable.
20108 # `end' is used to avoid that the second main sed command (meant for
20109 # 0-ary CPP macros) applies to n-ary macro definitions.
20110 # See the Autoconf documentation for `clear'.
20111 cat >confdef2sed.sed <<\_ACEOF
20116 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20118 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20121 # If some macros were called several times there might be several times
20122 # the same #defines, which is useless. Nevertheless, we may not want to
20123 # sort them, since we want the *last* AC-DEFINE to be honored.
20124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20126 rm -f confdef2sed.sed
20128 # This sed command replaces #undef with comments. This is necessary, for
20129 # example, in the case of _POSIX_SOURCE, which is predefined and required
20130 # on some systems where configure will not decide to define it.
20131 cat >>conftest.undefs <<\_ACEOF
20132 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20135 # Break up conftest.defines because some shells have a limit on the size
20136 # of here documents, and old seds have small limits too (100 cmds).
20137 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20138 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20139 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20140 echo ' :' >>$CONFIG_STATUS
20141 rm -f conftest.tail
20142 while grep . conftest.defines >/dev/null
20144 # Write a limited-size here document to $tmp/defines.sed.
20145 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20146 # Speed up: don't consider the non `#define' lines.
20147 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20148 # Work around the forget-to-reset-the-flag bug.
20149 echo 't clr' >>$CONFIG_STATUS
20150 echo ': clr' >>$CONFIG_STATUS
20151 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20153 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20155 mv $tmp/out $tmp/in
20157 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20158 rm -f conftest.defines
20159 mv conftest.tail conftest.defines
20161 rm -f conftest.defines
20162 echo ' fi # egrep' >>$CONFIG_STATUS
20163 echo >>$CONFIG_STATUS
20165 # Break up conftest.undefs because some shells have a limit on the size
20166 # of here documents, and old seds have small limits too (100 cmds).
20167 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20168 rm -f conftest.tail
20169 while grep . conftest.undefs >/dev/null
20171 # Write a limited-size here document to $tmp/undefs.sed.
20172 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20173 # Speed up: don't consider the non `#undef'
20174 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20175 # Work around the forget-to-reset-the-flag bug.
20176 echo 't clr' >>$CONFIG_STATUS
20177 echo ': clr' >>$CONFIG_STATUS
20178 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20180 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20182 mv $tmp/out $tmp/in
20184 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20185 rm -f conftest.undefs
20186 mv conftest.tail conftest.undefs
20188 rm -f conftest.undefs
20190 cat >>$CONFIG_STATUS <<\_ACEOF
20191 # Let's still pretend it is `configure' which instantiates (i.e., don't
20192 # use $as_me), people would be surprised to read:
20193 # /* config.h. Generated by config.status. */
20194 if test x"$ac_file" = x-; then
20195 echo "/* Generated by configure. */" >$tmp/config.h
20197 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20199 cat $tmp/in >>$tmp/config.h
20201 if test x"$ac_file" != x-; then
20202 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20203 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20204 echo "$as_me: $ac_file is unchanged" >&6;}
20206 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20208 X"$ac_file" : 'X\(//\)[^/]' \| \
20209 X"$ac_file" : 'X\(//\)$' \| \
20210 X"$ac_file" : 'X\(/\)' \| \
20211 . : '\(.\)' 2>/dev/null ||
20213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20215 /^X\(\/\/\)$/{ s//\1/; q; }
20216 /^X\(\/\).*/{ s//\1/; q; }
20218 { case "$ac_dir" in
20219 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20223 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20224 case $as_mkdir_dir in
20225 # Skip DOS drivespec
20226 ?:) as_incr_dir=$as_mkdir_dir ;;
20228 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20229 test -d "$as_incr_dir" ||
20230 mkdir "$as_incr_dir" ||
20231 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
20232 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
20233 { (exit 1); exit 1; }; }
20239 mv $tmp/config.h $ac_file
20243 rm -f $tmp/config.h
20245 # Run the commands associated with the file.
20247 src/include/pg_config.h )
20248 # Update timestamp for pg_config.h (see Makefile.global)
20249 echo >src/include/stamp-h
20254 cat >>$CONFIG_STATUS <<\_ACEOF
20257 # CONFIG_LINKS section.
20260 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
20261 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20262 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20264 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
20265 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
20267 if test ! -r $srcdir/$ac_source; then
20268 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
20269 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
20270 { (exit 1); exit 1; }; }
20274 # Make relative symlinks.
20275 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
20276 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20277 X"$ac_dest" : 'X\(//\)[^/]' \| \
20278 X"$ac_dest" : 'X\(//\)$' \| \
20279 X"$ac_dest" : 'X\(/\)' \| \
20280 . : '\(.\)' 2>/dev/null ||
20282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20284 /^X\(\/\/\)$/{ s//\1/; q; }
20285 /^X\(\/\).*/{ s//\1/; q; }
20287 { case "$ac_dest_dir" in
20288 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20291 as_dummy="$ac_dest_dir"
20292 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20293 case $as_mkdir_dir in
20294 # Skip DOS drivespec
20295 ?:) as_incr_dir=$as_mkdir_dir ;;
20297 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20298 test -d "$as_incr_dir" ||
20299 mkdir "$as_incr_dir" ||
20300 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
20301 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
20302 { (exit 1); exit 1; }; }
20309 if test "$ac_dest_dir" != .; then
20310 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
20311 # A "../" for each directory in $ac_dir_suffix.
20312 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20314 ac_dir_suffix= ac_top_builddir=
20318 .) # No --srcdir option. We are building in place.
20320 if test -z "$ac_top_builddir"; then
20323 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20325 [\\/]* | ?:[\\/]* ) # Absolute path.
20326 ac_srcdir=$srcdir$ac_dir_suffix;
20327 ac_top_srcdir=$srcdir ;;
20328 *) # Relative path.
20329 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20330 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20332 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
20334 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
20335 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
20336 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
20337 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
20341 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
20342 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
20345 # Make a symlink if possible; otherwise try a hard link.
20346 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20347 ln $srcdir/$ac_source $ac_dest ||
20348 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
20349 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
20350 { (exit 1); exit 1; }; }
20353 cat >>$CONFIG_STATUS <<\_ACEOF
20356 # CONFIG_COMMANDS section.
20358 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20359 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20360 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20361 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20362 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20363 X"$ac_dest" : 'X\(//\)[^/]' \| \
20364 X"$ac_dest" : 'X\(//\)$' \| \
20365 X"$ac_dest" : 'X\(/\)' \| \
20366 . : '\(.\)' 2>/dev/null ||
20368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20370 /^X\(\/\/\)$/{ s//\1/; q; }
20371 /^X\(\/\).*/{ s//\1/; q; }
20375 if test "$ac_dir" != .; then
20376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20377 # A "../" for each directory in $ac_dir_suffix.
20378 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20380 ac_dir_suffix= ac_top_builddir=
20384 .) # No --srcdir option. We are building in place.
20386 if test -z "$ac_top_builddir"; then
20389 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20391 [\\/]* | ?:[\\/]* ) # Absolute path.
20392 ac_srcdir=$srcdir$ac_dir_suffix;
20393 ac_top_srcdir=$srcdir ;;
20394 *) # Relative path.
20395 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20396 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20398 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20400 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20401 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
20402 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20403 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20406 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20407 echo "$as_me: executing $ac_dest commands" >&6;}
20409 check_win32_symlinks )
20410 # Links sometimes fail undetected on Mingw -
20411 # so here we detect it and warn the user
20412 for FILE in $CONFIG_LINKS
20414 # test -e works for symlinks in the MinGW console
20415 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
20416 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
20423 cat >>$CONFIG_STATUS <<\_ACEOF
20425 { (exit 0); exit 0; }
20427 chmod +x $CONFIG_STATUS
20428 ac_clean_files=$ac_clean_files_save
20431 # configure is writing to config.log, and then calls config.status.
20432 # config.status does its own redirection, appending to config.log.
20433 # Unfortunately, on DOS this fails, as config.log is still kept open
20434 # by configure, so config.status won't be able to write to it; its
20435 # output is simply discarded. So we exec the FD to /dev/null,
20436 # effectively closing config.log, so it can be properly (re)opened and
20437 # appended to by config.status. When coming back to configure, we
20438 # need to make the FD available again.
20439 if test "$no_create" != yes; then
20442 $SHELL $CONFIG_STATUS || ac_cs_success=false
20444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20445 # would make configure fail if this is the last instruction.
20446 $ac_cs_success || { (exit 1); exit 1; }