2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable single-byte recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-maxbackends=N set default maximum number of connections 32
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python interface module
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.4devel
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2002 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.4devel, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=win ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399 openbsd*) template=openbsd ;;
1400 osf*) template=osf ;;
1401 qnx*) template=qnx4 ;;
1402 sco*) template=sco ;;
1403 solaris*) template=solaris ;;
1404 sunos*) template=sunos4 ;;
1406 case $host_vendor in
1407 univel) template=univel ;;
1409 sysv4*) template=svr4 ;;
1410 sysv5*) template=unixware ;;
1411 ultrix*) template=ultrix4 ;;
1414 if test x"$template" = x"" ; then
1415 { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this. Include the above 'checking host system type...'
1424 *******************************************************************
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this. Include the above 'checking host system type...'
1435 *******************************************************************
1437 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1450 # Pick right test-and-set (TAS) code. Most platforms have inline
1451 # assembler code in src/include/storage/s_lock.h, so we just use
1452 # a dummy file here.
1454 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1455 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1456 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1457 *) need_tas=no; tas_file=dummy.s ;;
1459 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1462 if test "$need_tas" = yes ; then
1470 ## Command line options
1475 # Add non-standard directories to the include path
1480 # Check whether --with-includes or --without-includes was given.
1481 if test "${with_includes+set}" = set; then
1482 withval="$with_includes"
1486 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1487 echo "$as_me: error: argument required for --with-includes option" >&2;}
1488 { (exit 1); exit 1; }; }
1491 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1492 echo "$as_me: error: argument required for --with-includes option" >&2;}
1493 { (exit 1); exit 1; }; }
1505 # Add non-standard directories to the library search path
1510 # Check whether --with-libraries or --without-libraries was given.
1511 if test "${with_libraries+set}" = set; then
1512 withval="$with_libraries"
1516 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1517 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1518 { (exit 1); exit 1; }; }
1521 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1522 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1523 { (exit 1); exit 1; }; }
1526 LIBRARY_DIRS=$withval
1536 # Check whether --with-libs or --without-libs was given.
1537 if test "${with_libs+set}" = set; then
1538 withval="$with_libs"
1542 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1543 echo "$as_me: error: argument required for --with-libs option" >&2;}
1544 { (exit 1); exit 1; }; }
1547 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1548 echo "$as_me: error: argument required for --with-libs option" >&2;}
1549 { (exit 1); exit 1; }; }
1552 LIBRARY_DIRS=$withval
1561 # 64-bit integer date/time storage (--enable-integer-datetimes)
1563 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1564 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1567 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1568 if test "${enable_integer_datetimes+set}" = set; then
1569 enableval="$enable_integer_datetimes"
1574 cat >>confdefs.h <<\_ACEOF
1575 #define USE_INTEGER_DATETIMES 1
1583 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1584 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1585 { (exit 1); exit 1; }; }
1590 enable_integer_datetimes=no
1594 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1595 echo "${ECHO_T}$enable_integer_datetimes" >&6
1598 # Character set recode (--enable-recode)
1600 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1601 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1604 # Check whether --enable-recode or --disable-recode was given.
1605 if test "${enable_recode+set}" = set; then
1606 enableval="$enable_recode"
1611 cat >>confdefs.h <<\_ACEOF
1612 #define CYR_RECODE 1
1620 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1621 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1622 { (exit 1); exit 1; }; }
1631 echo "$as_me:$LINENO: result: $enable_recode" >&5
1632 echo "${ECHO_T}$enable_recode" >&6
1638 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1639 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1642 # Check whether --enable-nls or --disable-nls was given.
1643 if test "${enable_nls+set}" = set; then
1644 enableval="$enable_nls"
1655 WANTED_LANGUAGES=$enableval
1664 if test "$enable_nls" = yes; then
1666 cat >>confdefs.h <<\_ACEOF
1667 #define ENABLE_NLS 1
1672 echo "$as_me:$LINENO: result: $enable_nls" >&5
1673 echo "${ECHO_T}$enable_nls" >&6
1678 # Default port number (--with-pgport), default 5432
1680 echo "$as_me:$LINENO: checking for default port number" >&5
1681 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1685 # Check whether --with-pgport or --without-pgport was given.
1686 if test "${with_pgport+set}" = set; then
1687 withval="$with_pgport"
1691 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1692 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1693 { (exit 1); exit 1; }; }
1696 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1697 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1698 { (exit 1); exit 1; }; }
1701 default_port=$withval
1709 echo "$as_me:$LINENO: result: $default_port" >&5
1710 echo "${ECHO_T}$default_port" >&6
1711 # Need both of these because some places want an integer and some a string
1713 cat >>confdefs.h <<_ACEOF
1714 #define DEF_PGPORT ${default_port}
1718 cat >>confdefs.h <<_ACEOF
1719 #define DEF_PGPORT_STR "${default_port}"
1725 # Maximum number of allowed connections (--with-maxbackends), default 32
1727 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1728 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1732 # Check whether --with-maxbackends or --without-maxbackends was given.
1733 if test "${with_maxbackends+set}" = set; then
1734 withval="$with_maxbackends"
1738 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1739 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1740 { (exit 1); exit 1; }; }
1743 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1744 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1745 { (exit 1); exit 1; }; }
1756 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1757 echo "${ECHO_T}$with_maxbackends" >&6
1759 cat >>confdefs.h <<_ACEOF
1760 #define DEF_MAXBACKENDS $with_maxbackends
1766 # Option to disable shared libraries
1770 # Check whether --enable-shared or --disable-shared was given.
1771 if test "${enable_shared+set}" = set; then
1772 enableval="$enable_shared"
1782 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1783 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1784 { (exit 1); exit 1; }; }
1796 # '-rpath'-like feature can be disabled
1800 # Check whether --enable-rpath or --disable-rpath was given.
1801 if test "${enable_rpath+set}" = set; then
1802 enableval="$enable_rpath"
1812 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1813 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1814 { (exit 1); exit 1; }; }
1827 # --enable-debug adds -g to compiler flags
1831 # Check whether --enable-debug or --disable-debug was given.
1832 if test "${enable_debug+set}" = set; then
1833 enableval="$enable_debug"
1843 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1844 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1845 { (exit 1); exit 1; }; }
1860 # For historical reasons you can also use --with-CC to specify the C compiler
1861 # to use, although the standard way to do this is to set the CC environment
1866 # Check whether --with-CC or --without-CC was given.
1867 if test "${with_CC+set}" = set; then
1872 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1873 echo "$as_me: error: argument required for --with-CC option" >&2;}
1874 { (exit 1); exit 1; }; }
1877 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1878 echo "$as_me: error: argument required for --with-CC option" >&2;}
1879 { (exit 1); exit 1; }; }
1890 aix) pgac_cc_list="gcc xlc";;
1891 irix) pgac_cc_list="cc";; # no gcc
1892 *) pgac_cc_list="gcc cc";;
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901 for ac_prog in $pgac_cc_list
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 if test -n "$CC"; then
1931 echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1938 test -n "$CC" && break
1941 if test -z "$CC"; then
1943 for ac_prog in $pgac_cc_list
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$ac_ct_CC"; then
1953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CC="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1980 test -n "$ac_ct_CC" && break
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1988 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1989 { (exit 1); exit 1; }; }
1991 # Provide some information about the compiler.
1992 echo "$as_me:$LINENO:" \
1993 "checking for C compiler version" >&5
1994 ac_compiler=`set X $ac_compile; echo $2`
1995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1996 (eval $ac_compiler --version </dev/null >&5) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2001 (eval $ac_compiler -v </dev/null >&5) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2006 (eval $ac_compiler -V </dev/null >&5) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2015 #ifdef F77_DUMMY_MAIN
2019 int F77_DUMMY_MAIN() { return 1; }
2029 ac_clean_files_save=$ac_clean_files
2030 ac_clean_files="$ac_clean_files a.out a.exe"
2031 # Try to create an executable without -o first, disregard a.out.
2032 # It will help us diagnose broken compilers, and finding out an intuition
2034 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2035 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2036 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2037 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2038 (eval $ac_link_default) 2>&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 # Find the output, starting from the most likely. This scheme is
2043 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2046 # Be careful to initialize this variable, since it used to be cached.
2047 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2049 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2050 ls a.out conftest 2>/dev/null;
2051 ls a.* conftest.* 2>/dev/null`; do
2053 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2054 a.out ) # We found the default executable, but exeext='' is most
2057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2065 echo "$as_me: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2068 echo "$as_me: error: C compiler cannot create executables" >&2;}
2069 { (exit 77); exit 77; }; }
2072 ac_exeext=$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_file" >&5
2074 echo "${ECHO_T}$ac_file" >&6
2076 # Check the compiler produces executables we can run. If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2079 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081 # If not cross compiling, check that we can run a simple program.
2082 if test "$cross_compiling" != yes; then
2083 if { ac_try='./$ac_file'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2091 if test "$cross_compiling" = maybe; then
2094 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'." >&5
2096 echo "$as_me: error: cannot run C compiled programs.
2097 If you meant to cross compile, use \`--host'." >&2;}
2098 { (exit 1); exit 1; }; }
2102 echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6
2105 rm -f a.out a.exe conftest$ac_cv_exeext
2106 ac_clean_files=$ac_clean_files_save
2107 # Check the compiler produces executables we can run. If not, either
2108 # the compiler is broken, or we cross compile.
2109 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2110 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2112 echo "${ECHO_T}$cross_compiling" >&6
2114 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2117 (eval $ac_link) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2123 # work properly (i.e., refer to `conftest.exe'), while it won't with
2125 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2127 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2137 { (exit 1); exit 1; }; }
2140 rm -f conftest$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142 echo "${ECHO_T}$ac_cv_exeext" >&6
2144 rm -f conftest.$ac_ext
2145 EXEEXT=$ac_cv_exeext
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line $LINENO "configure"
2154 #include "confdefs.h"
2156 #ifdef F77_DUMMY_MAIN
2160 int F77_DUMMY_MAIN() { return 1; }
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 cat >conftest.$ac_ext <<_ACEOF
2203 #line $LINENO "configure"
2204 #include "confdefs.h"
2206 #ifdef F77_DUMMY_MAIN
2210 int F77_DUMMY_MAIN() { return 1; }
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 echo "$as_me: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2245 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247 GCC=`test $ac_compiler_gnu = yes && echo yes`
2248 ac_test_CFLAGS=${CFLAGS+set}
2249 ac_save_CFLAGS=$CFLAGS
2251 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253 if test "${ac_cv_prog_cc_g+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 #include "confdefs.h"
2260 #ifdef F77_DUMMY_MAIN
2264 int F77_DUMMY_MAIN() { return 1; }
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2288 echo "$as_me: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2296 if test "$ac_test_CFLAGS" = set; then
2297 CFLAGS=$ac_save_CFLAGS
2298 elif test $ac_cv_prog_cc_g = yes; then
2299 if test "$GCC" = yes; then
2305 if test "$GCC" = yes; then
2311 # Some people use a C++ compiler to compile C. Since we use `exit',
2312 # in C++ we need to declare it. In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 for ac_declaration in \
2334 '#include <stdlib.h>' \
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2346 #ifdef F77_DUMMY_MAIN
2350 int F77_DUMMY_MAIN() { return 1; }
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2374 echo "$as_me: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 cat >conftest.$ac_ext <<_ACEOF
2380 #line $LINENO "configure"
2381 #include "confdefs.h"
2383 #ifdef F77_DUMMY_MAIN
2387 int F77_DUMMY_MAIN() { return 1; }
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 rm -f conftest.$ac_objext conftest.$ac_ext
2417 if test -n "$ac_declaration"; then
2418 echo '#ifdef __cplusplus' >>confdefs.h
2419 echo $ac_declaration >>confdefs.h
2420 echo '#endif' >>confdefs.h
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 . "$srcdir/src/template/$template" || exit
2437 if test "$ac_env_CFLAGS_set" = set; then
2438 CFLAGS=$ac_env_CFLAGS_value
2440 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2443 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2444 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2446 # Check if the compiler still works with the template settings
2447 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2448 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line $LINENO "configure"
2452 #include "confdefs.h"
2454 #ifdef F77_DUMMY_MAIN
2458 int F77_DUMMY_MAIN() { return 1; }
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2470 (eval $ac_link) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest$ac_exeext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 echo "$as_me:$LINENO: result: yes" >&5
2481 echo "${ECHO_T}yes" >&6
2483 echo "$as_me: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6
2487 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2488 echo "$as_me: error: cannot proceed" >&2;}
2489 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2493 # Defend against gcc -ffastmath
2494 if test "$GCC" = yes; then
2495 cat >conftest.$ac_ext <<_ACEOF
2496 #line $LINENO "configure"
2497 #include "confdefs.h"
2499 #ifdef F77_DUMMY_MAIN
2503 int F77_DUMMY_MAIN() { return 1; }
2508 #ifdef __FAST_MATH__
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2529 echo "$as_me: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2531 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2532 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2533 { (exit 1); exit 1; }; }
2535 rm -f conftest.$ac_objext conftest.$ac_ext
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2544 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2545 # On Suns, sometimes $CPP names a directory.
2546 if test -n "$CPP" && test -d "$CPP"; then
2549 if test -z "$CPP"; then
2550 if test "${ac_cv_prog_CPP+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 # Double quotes because CPP needs to be expanded
2554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2557 for ac_c_preproc_warn_flag in '' yes
2559 # Use a header file that comes with gcc, so configuring glibc
2560 # with a fresh cross-compiler works.
2561 # On the NeXT, cc -E runs the code through the compiler's parser,
2562 # not just through cpp. "Syntax error" is here to catch this case.
2563 cat >conftest.$ac_ext <<_ACEOF
2564 #line $LINENO "configure"
2565 #include "confdefs.h"
2569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2572 egrep -v '^ *\+' conftest.er1 >conftest.err
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } >/dev/null; then
2577 if test -s conftest.err; then
2578 ac_cpp_err=$ac_c_preproc_warn_flag
2585 if test -z "$ac_cpp_err"; then
2588 echo "$as_me: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2590 # Broken: fails on valid input.
2593 rm -f conftest.err conftest.$ac_ext
2595 # OK, works on sane cases. Now check whether non-existent headers
2596 # can be detected and how.
2597 cat >conftest.$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2599 #include "confdefs.h"
2600 #include <ac_nonexistent.h>
2602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605 egrep -v '^ *\+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } >/dev/null; then
2610 if test -s conftest.err; then
2611 ac_cpp_err=$ac_c_preproc_warn_flag
2618 if test -z "$ac_cpp_err"; then
2619 # Broken: success on invalid input.
2622 echo "$as_me: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 # Passes both tests.
2628 rm -f conftest.err conftest.$ac_ext
2631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2632 rm -f conftest.err conftest.$ac_ext
2633 if $ac_preproc_ok; then
2645 echo "$as_me:$LINENO: result: $CPP" >&5
2646 echo "${ECHO_T}$CPP" >&6
2648 for ac_c_preproc_warn_flag in '' yes
2650 # Use a header file that comes with gcc, so configuring glibc
2651 # with a fresh cross-compiler works.
2652 # On the NeXT, cc -E runs the code through the compiler's parser,
2653 # not just through cpp. "Syntax error" is here to catch this case.
2654 cat >conftest.$ac_ext <<_ACEOF
2655 #line $LINENO "configure"
2656 #include "confdefs.h"
2660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2663 egrep -v '^ *\+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } >/dev/null; then
2668 if test -s conftest.err; then
2669 ac_cpp_err=$ac_c_preproc_warn_flag
2676 if test -z "$ac_cpp_err"; then
2679 echo "$as_me: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 # Broken: fails on valid input.
2684 rm -f conftest.err conftest.$ac_ext
2686 # OK, works on sane cases. Now check whether non-existent headers
2687 # can be detected and how.
2688 cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2690 #include "confdefs.h"
2691 #include <ac_nonexistent.h>
2693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2696 egrep -v '^ *\+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } >/dev/null; then
2701 if test -s conftest.err; then
2702 ac_cpp_err=$ac_c_preproc_warn_flag
2709 if test -z "$ac_cpp_err"; then
2710 # Broken: success on invalid input.
2713 echo "$as_me: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2715 # Passes both tests.
2719 rm -f conftest.err conftest.$ac_ext
2722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2723 rm -f conftest.err conftest.$ac_ext
2724 if $ac_preproc_ok; then
2727 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2728 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2729 { (exit 1); exit 1; }; }
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 # Create compiler version string
2741 if test x"$GCC" = x"yes" ; then
2742 cc_string="GCC `${CC} --version | sed q`"
2747 cat >>confdefs.h <<_ACEOF
2748 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2754 # Automatic dependency tracking
2758 # Check whether --enable-depend or --disable-depend was given.
2759 if test "${enable_depend+set}" = set; then
2760 enableval="$enable_depend"
2770 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2771 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2772 { (exit 1); exit 1; }; }
2785 # Enable assert checks
2789 # Check whether --enable-cassert or --disable-cassert was given.
2790 if test "${enable_cassert+set}" = set; then
2791 enableval="$enable_cassert"
2796 cat >>confdefs.h <<\_ACEOF
2797 #define USE_ASSERT_CHECKING 1
2805 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2806 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2807 { (exit 1); exit 1; }; }
2819 # Include directories
2823 # SRCH_INC comes from the template file
2824 for dir in $with_includes $SRCH_INC; do
2825 if test -d "$dir"; then
2826 INCLUDES="$INCLUDES -I$dir"
2828 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2829 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2837 # Library directories
2841 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2842 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2843 if test -d "$dir"; then
2844 LIBDIRS="$LIBDIRS -L$dir"
2846 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2847 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2873 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875 { (exit 1); exit 1; }; }
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2907 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909 { (exit 1); exit 1; }; }
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934 withval="$with_tclconfig"
2938 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940 { (exit 1); exit 1; }; }
2943 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945 { (exit 1); exit 1; }; }
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963 withval="$with_tkconfig"
2967 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969 { (exit 1); exit 1; }; }
2972 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974 { (exit 1); exit 1; }; }
2985 # Optionally build Perl modules (PL/Perl)
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994 withval="$with_perl"
3004 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006 { (exit 1); exit 1; }; }
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3020 # Optionally build Python interface module
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029 withval="$with_python"
3039 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041 { (exit 1); exit 1; }; }
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3055 # Optionally build the Java/JDBC tools
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064 withval="$with_java"
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3071 for ac_prog in jakarta-ant ant ant.sh ant.bat
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$ANT"; then
3105 echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3108 echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3112 test -n "$ANT" && break
3116 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 cat > conftest.java << EOF
3123 public class conftest {
3124 int testmethod(int a, int b) {
3130 cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132 <target name="conftest">
3133 <javac srcdir="." includes="conftest.java">
3139 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141 (eval $pgac_cmd) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }
3146 if test $? = 0 && test -f ./conftest.class ; then
3147 pgac_cv_prog_ant_works=yes
3149 echo "configure: failed java program was:" >&5
3150 cat conftest.java >&5
3151 echo "configure: failed build file was:" >&5
3152 cat conftest.xml >&5
3153 pgac_cv_prog_ant_works=no
3156 rm -f conftest* core core.* *.core
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3162 if test "$pgac_cv_prog_ant_works" != yes; then
3163 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165 { (exit 1); exit 1; }; }
3169 if test -z "$ANT"; then
3170 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174 { (exit 1); exit 1; }; }
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179 { (exit 1); exit 1; }; }
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3187 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189 { (exit 1); exit 1; }; }
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212 withval="$with_krb4"
3216 krb4_prefix=/usr/athena
3223 krb4_prefix=$withval
3232 if test "$with_krb4" = yes; then
3234 echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3237 cat >>confdefs.h <<\_ACEOF
3242 if test -d "$krb4_prefix/include"; then
3243 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3245 if test -d "$krb4_prefix/lib"; then
3246 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3249 krb_srvtab="/etc/srvtab"
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270 withval="$with_krb5"
3274 krb5_prefix=/usr/athena
3281 krb5_prefix=$withval
3290 if test "$with_krb5" = yes; then
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3295 cat >>confdefs.h <<\_ACEOF
3300 if test -d "$krb5_prefix/include"; then
3301 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3303 if test -d "$krb5_prefix/lib"; then
3304 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3307 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322 { (exit 1); exit 1; }; }
3329 # Kerberos configuration parameters
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336 withval="$with_krb_srvnam"
3340 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342 { (exit 1); exit 1; }; }
3345 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347 { (exit 1); exit 1; }; }
3355 with_krb_srvnam="postgres"
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3380 cat >>confdefs.h <<\_ACEOF
3389 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3411 # Check whether --with-openssl or --without-openssl was given.
3412 if test "${with_openssl+set}" = set; then
3413 withval="$with_openssl"
3417 openssl_prefix=/usr/local/ssl
3424 openssl_prefix=$withval
3433 if test "$with_openssl" = yes; then
3435 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3436 echo "${ECHO_T}building with OpenSSL support" >&6
3438 cat >>confdefs.h <<\_ACEOF
3443 if test -d "${openssl_prefix}/include" ; then
3444 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3446 if test -d "${openssl_prefix}/lib" ; then
3447 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3462 # Check whether --with-readline or --without-readline was given.
3463 if test "${with_readline+set}" = set; then
3464 withval="$with_readline"
3474 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3475 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3476 { (exit 1); exit 1; }; }
3492 # Check whether --with-zlib or --without-zlib was given.
3493 if test "${with_zlib+set}" = set; then
3494 withval="$with_zlib"
3504 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3505 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3506 { (exit 1); exit 1; }; }
3518 # Assume system is ELF if it predefines __ELF__ as 1,
3519 # otherwise believe host_os based default.
3521 freebsd1*|freebsd2*) elf=no;;
3522 freebsd3*|freebsd4*) elf=yes;;
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3528 #include "confdefs.h"
3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535 egrep "yes" >/dev/null 2>&1; then
3538 if test "X$elf" = "Xyes" ; then
3550 CPPFLAGS="$CPPFLAGS $INCLUDES"
3551 LDFLAGS="$LDFLAGS $LIBDIRS"
3553 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3554 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3555 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3556 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3559 for ac_prog in gawk mawk nawk awk
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_prog_AWK+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 if test -n "$AWK"; then
3569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_AWK="$ac_prog"
3579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 if test -n "$AWK"; then
3589 echo "$as_me:$LINENO: result: $AWK" >&5
3590 echo "${ECHO_T}$AWK" >&6
3592 echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3596 test -n "$AWK" && break
3599 echo "$as_me:$LINENO: checking for flex" >&5
3600 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3601 if test "${pgac_cv_path_flex+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 # Let the user override the test
3605 if test -n "$FLEX"; then
3606 pgac_cv_path_flex=$FLEX
3610 for pgac_dir in $PATH; do
3611 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3614 for pgac_prog in flex lex; do
3615 pgac_candidate="$pgac_dir/$pgac_prog"
3616 if test -f "$pgac_candidate" \
3617 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3619 echo '%%' > conftest.l
3620 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3621 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3622 pgac_broken_flex=$pgac_candidate
3626 pgac_cv_path_flex=$pgac_candidate
3634 : ${pgac_cv_path_flex=no}
3638 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3639 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3640 if test x"$pgac_cv_path_flex" = x"no"; then
3641 if test -n "$pgac_broken_flex"; then
3642 { echo "$as_me:$LINENO: WARNING:
3643 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3644 *** should get version 2.5.4 or later." >&5
3645 echo "$as_me: WARNING:
3646 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3647 *** should get version 2.5.4 or later." >&2;}
3650 { echo "$as_me:$LINENO: WARNING:
3651 *** Without Flex you will not be able to build PostgreSQL from CVS or
3652 *** change any of the scanner definition files. You can obtain Flex from
3653 *** a GNU mirror site. (If you are using the official distribution of
3654 *** PostgreSQL then you do not need to worry about this because the Flex
3655 *** output is pre-generated.)" >&5
3656 echo "$as_me: WARNING:
3657 *** Without Flex you will not be able to build PostgreSQL from CVS or
3658 *** change any of the scanner definition files. You can obtain Flex from
3659 *** a GNU mirror site. (If you are using the official distribution of
3660 *** PostgreSQL then you do not need to worry about this because the Flex
3661 *** output is pre-generated.)" >&2;}
3664 if test x"$pgac_cv_path_flex" = x"no"; then
3667 FLEX=$pgac_cv_path_flex
3673 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3674 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3676 if test "$LN_S" = "ln -s"; then
3677 echo "$as_me:$LINENO: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6
3680 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3681 echo "${ECHO_T}no, using $LN_S" >&6
3685 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3686 if test "${with_gnu_ld+set}" = set; then
3687 withval="$with_gnu_ld"
3688 test "$withval" = no || with_gnu_ld=yes
3693 if test "$GCC" = yes; then
3694 # Check if gcc -print-prog-name=ld gives a path.
3695 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3696 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3699 # gcc leaves a trailing carriage return which upsets mingw
3700 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3702 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3705 # Accept absolute paths.
3706 [\\/]* | [A-Za-z]:[\\/]*)
3707 re_direlt='/[^/][^/]*/\.\./'
3708 # Canonicalize the path of ld
3709 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3710 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3711 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3713 test -z "$LD" && LD="$ac_prog"
3716 # If it fails, then pretend we aren't using GCC.
3720 # If it is relative, then search for the first ld in PATH.
3724 elif test "$with_gnu_ld" = yes; then
3725 echo "$as_me:$LINENO: checking for GNU ld" >&5
3726 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3728 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3729 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3731 if test "${ac_cv_path_LD+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 if test -z "$LD"; then
3735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3736 for ac_dir in $PATH; do
3737 test -z "$ac_dir" && ac_dir=.
3738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3739 ac_cv_path_LD="$ac_dir/$ac_prog"
3740 # Check to see if the program is GNU ld. I'd rather use --version,
3741 # but apparently some GNU ld's only accept -v.
3742 # Break only if it was the GNU/non-GNU ld that we prefer.
3743 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3744 test "$with_gnu_ld" != no && break
3746 test "$with_gnu_ld" != yes && break
3752 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3757 if test -n "$LD"; then
3758 echo "$as_me:$LINENO: result: $LD" >&5
3759 echo "${ECHO_T}$LD" >&6
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3764 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3765 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3766 { (exit 1); exit 1; }; }
3767 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3768 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3769 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3773 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3774 ac_cv_prog_gnu_ld=yes
3776 ac_cv_prog_gnu_ld=no
3779 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3780 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3781 with_gnu_ld=$ac_cv_prog_gnu_ld
3786 case $host_os in sysv5*)
3787 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3788 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3789 if test "${pgac_cv_prog_ld_R+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3794 cat >conftest.$ac_ext <<_ACEOF
3795 #line $LINENO "configure"
3796 #include "confdefs.h"
3798 #ifdef F77_DUMMY_MAIN
3802 int F77_DUMMY_MAIN() { return 1; }
3812 rm -f conftest.$ac_objext conftest$ac_exeext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814 (eval $ac_link) 2>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -s conftest$ac_exeext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 pgac_cv_prog_ld_R=yes
3826 echo "$as_me: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 pgac_cv_prog_ld_R=no
3830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3831 LDFLAGS=$pgac_save_LDFLAGS
3834 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3835 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3836 ld_R_works=$pgac_cv_prog_ld_R
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3842 echo "$as_me:$LINENO: checking for $ac_word" >&5
3843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3844 if test "${ac_cv_prog_RANLIB+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test -n "$RANLIB"; then
3848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 RANLIB=$ac_cv_prog_RANLIB
3867 if test -n "$RANLIB"; then
3868 echo "$as_me:$LINENO: result: $RANLIB" >&5
3869 echo "${ECHO_T}$RANLIB" >&6
3871 echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3876 if test -z "$ac_cv_prog_RANLIB"; then
3877 ac_ct_RANLIB=$RANLIB
3878 # Extract the first word of "ranlib", so it can be a program name with args.
3879 set dummy ranlib; ac_word=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 if test -n "$ac_ct_RANLIB"; then
3886 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_ac_ct_RANLIB="ranlib"
3896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3906 if test -n "$ac_ct_RANLIB"; then
3907 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3908 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3910 echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3914 RANLIB=$ac_ct_RANLIB
3916 RANLIB="$ac_cv_prog_RANLIB"
3919 for ac_prog in lorder
3921 # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_prog_LORDER+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test -n "$LORDER"; then
3929 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_LORDER="$ac_prog"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 LORDER=$ac_cv_prog_LORDER
3948 if test -n "$LORDER"; then
3949 echo "$as_me:$LINENO: result: $LORDER" >&5
3950 echo "${ECHO_T}$LORDER" >&6
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3956 test -n "$LORDER" && break
3959 # Extract the first word of "tar", so it can be a program name with args.
3960 set dummy tar; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_path_TAR+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 if test -n "$TAR"; then
3991 echo "$as_me:$LINENO: result: $TAR" >&5
3992 echo "${ECHO_T}$TAR" >&6
3994 echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3999 if test -n "$ac_tool_prefix"; then
4000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4001 set dummy ${ac_tool_prefix}strip; ac_word=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_prog_STRIP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 if test -n "$STRIP"; then
4008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 STRIP=$ac_cv_prog_STRIP
4027 if test -n "$STRIP"; then
4028 echo "$as_me:$LINENO: result: $STRIP" >&5
4029 echo "${ECHO_T}$STRIP" >&6
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4036 if test -z "$ac_cv_prog_STRIP"; then
4038 # Extract the first word of "strip", so it can be a program name with args.
4039 set dummy strip; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test -n "$ac_ct_STRIP"; then
4046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_ac_ct_STRIP="strip"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4066 if test -n "$ac_ct_STRIP"; then
4067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4068 echo "${ECHO_T}$ac_ct_STRIP" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4076 STRIP="$ac_cv_prog_STRIP"
4080 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4081 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4082 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4083 STRIP_STATIC_LIB="$STRIP -x"
4084 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4085 echo "$as_me:$LINENO: result: yes" >&5
4086 echo "${ECHO_T}yes" >&6
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4097 for ac_prog in 'bison -y'
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_YACC+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 if test -n "$YACC"; then
4107 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_YACC="$ac_prog"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 YACC=$ac_cv_prog_YACC
4126 if test -n "$YACC"; then
4127 echo "$as_me:$LINENO: result: $YACC" >&5
4128 echo "${ECHO_T}$YACC" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 test -n "$YACC" && break
4137 if test -z "$YACC"; then
4138 { echo "$as_me:$LINENO: WARNING:
4139 *** Without Bison you will not be able to build PostgreSQL from CVS or
4140 *** change any of the parser definition files. You can obtain Bison from
4141 *** a GNU mirror site. (If you are using the official distribution of
4142 *** PostgreSQL then you do not need to worry about this because the Bison
4143 *** output is pre-generated.) To use a different yacc program (possible,
4144 *** but not recommended), set the environment variable YACC before running
4145 *** 'configure'." >&5
4146 echo "$as_me: WARNING:
4147 *** Without Bison you will not be able to build PostgreSQL from CVS or
4148 *** change any of the parser definition files. You can obtain Bison from
4149 *** a GNU mirror site. (If you are using the official distribution of
4150 *** PostgreSQL then you do not need to worry about this because the Bison
4151 *** output is pre-generated.) To use a different yacc program (possible,
4152 *** but not recommended), set the environment variable YACC before running
4153 *** 'configure'." >&2;}
4157 # Extract the first word of "perl", so it can be a program name with args.
4158 set dummy perl; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_path_PERL+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 PERL=$ac_cv_path_PERL
4188 if test -n "$PERL"; then
4189 echo "$as_me:$LINENO: result: $PERL" >&5
4190 echo "${ECHO_T}$PERL" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4196 if test "$with_perl" = yes; then
4198 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4199 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4200 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4201 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4202 echo "${ECHO_T}$perl_archlibexp" >&6
4203 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4204 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4205 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4206 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4207 echo "${ECHO_T}$perl_privlibexp" >&6
4208 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4209 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4210 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4211 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4212 echo "${ECHO_T}$perl_useshrplib" >&6
4214 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4215 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4216 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4217 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4218 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4219 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4220 echo "${ECHO_T}$perl_embed_ldflags" >&6
4223 if test "$with_python" = yes; then
4224 # Extract the first word of "python", so it can be a program name with args.
4225 set dummy python; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_path_PYTHON+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 PYTHON=$ac_cv_path_PYTHON
4255 if test -n "$PYTHON"; then
4256 echo "$as_me:$LINENO: result: $PYTHON" >&5
4257 echo "${ECHO_T}$PYTHON" >&6
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4263 if test x"$PYTHON" = x""; then
4264 { { echo "$as_me:$LINENO: error: Python not found" >&5
4265 echo "$as_me: error: Python not found" >&2;}
4266 { (exit 1); exit 1; }; }
4270 echo "$as_me:$LINENO: checking Python installation directories" >&5
4271 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4272 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4273 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4274 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4275 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4276 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4277 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4278 python_includespec="-I${python_prefix}/include/python${python_version}"
4279 if test "$python_prefix" != "$python_execprefix"; then
4280 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4283 # This should be enough of a message.
4284 if test "$python_prefix" != "$python_execprefix"; then
4285 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4286 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4288 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4289 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4296 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4297 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4299 if test ! -f "$python_configdir/Makefile"; then
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4303 echo "$as_me: error: Python Makefile not found" >&2;}
4304 { (exit 1); exit 1; }; }
4307 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4308 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4309 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4310 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4311 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4313 pgac_tab=" " # tab character
4314 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
4316 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4317 echo "${ECHO_T}${python_libspec}" >&6
4327 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4330 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4331 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4332 if test "${ac_cv_lib_bsd_main+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 ac_check_lib_save_LIBS=$LIBS
4337 cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 #include "confdefs.h"
4342 #ifdef F77_DUMMY_MAIN
4346 int F77_DUMMY_MAIN() { return 1; }
4356 rm -f conftest.$ac_objext conftest$ac_exeext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358 (eval $ac_link) 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -s conftest$ac_exeext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_lib_bsd_main=yes
4370 echo "$as_me: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 ac_cv_lib_bsd_main=no
4374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4375 LIBS=$ac_check_lib_save_LIBS
4377 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4378 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4379 if test $ac_cv_lib_bsd_main = yes; then
4380 cat >>confdefs.h <<_ACEOF
4381 #define HAVE_LIBBSD 1
4390 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4391 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4392 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 ac_check_lib_save_LIBS=$LIBS
4397 cat >conftest.$ac_ext <<_ACEOF
4398 #line $LINENO "configure"
4399 #include "confdefs.h"
4401 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4407 char setproctitle ();
4408 #ifdef F77_DUMMY_MAIN
4412 int F77_DUMMY_MAIN() { return 1; }
4422 rm -f conftest.$ac_objext conftest$ac_exeext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4424 (eval $ac_link) 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -s conftest$ac_exeext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_cv_lib_util_setproctitle=yes
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 ac_cv_lib_util_setproctitle=no
4440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4441 LIBS=$ac_check_lib_save_LIBS
4443 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4444 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4445 if test $ac_cv_lib_util_setproctitle = yes; then
4446 cat >>confdefs.h <<_ACEOF
4447 #define HAVE_LIBUTIL 1
4455 echo "$as_me:$LINENO: checking for main in -lm" >&5
4456 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4457 if test "${ac_cv_lib_m_main+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 ac_check_lib_save_LIBS=$LIBS
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 #include "confdefs.h"
4467 #ifdef F77_DUMMY_MAIN
4471 int F77_DUMMY_MAIN() { return 1; }
4481 rm -f conftest.$ac_objext conftest$ac_exeext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483 (eval $ac_link) 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -s conftest$ac_exeext'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 ac_cv_lib_m_main=yes
4495 echo "$as_me: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4500 LIBS=$ac_check_lib_save_LIBS
4502 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4503 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4504 if test $ac_cv_lib_m_main = yes; then
4505 cat >>confdefs.h <<_ACEOF
4514 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4515 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4516 if test "${ac_cv_lib_dl_main+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_check_lib_save_LIBS=$LIBS
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 #include "confdefs.h"
4526 #ifdef F77_DUMMY_MAIN
4530 int F77_DUMMY_MAIN() { return 1; }
4540 rm -f conftest.$ac_objext conftest$ac_exeext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest$ac_exeext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_cv_lib_dl_main=yes
4554 echo "$as_me: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 ac_cv_lib_dl_main=no
4558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4559 LIBS=$ac_check_lib_save_LIBS
4561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4562 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4563 if test $ac_cv_lib_dl_main = yes; then
4564 cat >>confdefs.h <<_ACEOF
4565 #define HAVE_LIBDL 1
4573 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4574 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4575 if test "${ac_cv_lib_nsl_main+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 ac_check_lib_save_LIBS=$LIBS
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 #include "confdefs.h"
4585 #ifdef F77_DUMMY_MAIN
4589 int F77_DUMMY_MAIN() { return 1; }
4599 rm -f conftest.$ac_objext conftest$ac_exeext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601 (eval $ac_link) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest$ac_exeext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_lib_nsl_main=yes
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 ac_cv_lib_nsl_main=no
4617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618 LIBS=$ac_check_lib_save_LIBS
4620 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4621 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4622 if test $ac_cv_lib_nsl_main = yes; then
4623 cat >>confdefs.h <<_ACEOF
4624 #define HAVE_LIBNSL 1
4632 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4633 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4634 if test "${ac_cv_lib_socket_main+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 ac_check_lib_save_LIBS=$LIBS
4638 LIBS="-lsocket $LIBS"
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 #include "confdefs.h"
4644 #ifdef F77_DUMMY_MAIN
4648 int F77_DUMMY_MAIN() { return 1; }
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660 (eval $ac_link) 2>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_lib_socket_main=yes
4672 echo "$as_me: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4674 ac_cv_lib_socket_main=no
4676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677 LIBS=$ac_check_lib_save_LIBS
4679 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4680 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4681 if test $ac_cv_lib_socket_main = yes; then
4682 cat >>confdefs.h <<_ACEOF
4683 #define HAVE_LIBSOCKET 1
4686 LIBS="-lsocket $LIBS"
4691 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4692 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4693 if test "${ac_cv_lib_ipc_main+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 ac_check_lib_save_LIBS=$LIBS
4698 cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4700 #include "confdefs.h"
4703 #ifdef F77_DUMMY_MAIN
4707 int F77_DUMMY_MAIN() { return 1; }
4717 rm -f conftest.$ac_objext conftest$ac_exeext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719 (eval $ac_link) 2>&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -s conftest$ac_exeext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 ac_cv_lib_ipc_main=yes
4731 echo "$as_me: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4733 ac_cv_lib_ipc_main=no
4735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4736 LIBS=$ac_check_lib_save_LIBS
4738 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4739 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4740 if test $ac_cv_lib_ipc_main = yes; then
4741 cat >>confdefs.h <<_ACEOF
4742 #define HAVE_LIBIPC 1
4750 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4751 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4752 if test "${ac_cv_lib_IPC_main+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 ac_check_lib_save_LIBS=$LIBS
4757 cat >conftest.$ac_ext <<_ACEOF
4758 #line $LINENO "configure"
4759 #include "confdefs.h"
4762 #ifdef F77_DUMMY_MAIN
4766 int F77_DUMMY_MAIN() { return 1; }
4776 rm -f conftest.$ac_objext conftest$ac_exeext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778 (eval $ac_link) 2>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -s conftest$ac_exeext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 ac_cv_lib_IPC_main=yes
4790 echo "$as_me: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4792 ac_cv_lib_IPC_main=no
4794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4795 LIBS=$ac_check_lib_save_LIBS
4797 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4798 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4799 if test $ac_cv_lib_IPC_main = yes; then
4800 cat >>confdefs.h <<_ACEOF
4801 #define HAVE_LIBIPC 1
4809 echo "$as_me:$LINENO: checking for main in -llc" >&5
4810 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4811 if test "${ac_cv_lib_lc_main+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 ac_check_lib_save_LIBS=$LIBS
4816 cat >conftest.$ac_ext <<_ACEOF
4817 #line $LINENO "configure"
4818 #include "confdefs.h"
4821 #ifdef F77_DUMMY_MAIN
4825 int F77_DUMMY_MAIN() { return 1; }
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837 (eval $ac_link) 2>&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -s conftest$ac_exeext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 ac_cv_lib_lc_main=yes
4849 echo "$as_me: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4851 ac_cv_lib_lc_main=no
4853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4854 LIBS=$ac_check_lib_save_LIBS
4856 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4857 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4858 if test $ac_cv_lib_lc_main = yes; then
4859 cat >>confdefs.h <<_ACEOF
4860 #define HAVE_LIBLC 1
4868 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4869 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4870 if test "${ac_cv_lib_dld_main+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 ac_check_lib_save_LIBS=$LIBS
4875 cat >conftest.$ac_ext <<_ACEOF
4876 #line $LINENO "configure"
4877 #include "confdefs.h"
4880 #ifdef F77_DUMMY_MAIN
4884 int F77_DUMMY_MAIN() { return 1; }
4894 rm -f conftest.$ac_objext conftest$ac_exeext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4896 (eval $ac_link) 2>&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_cv_lib_dld_main=yes
4908 echo "$as_me: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4910 ac_cv_lib_dld_main=no
4912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4913 LIBS=$ac_check_lib_save_LIBS
4915 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4916 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4917 if test $ac_cv_lib_dld_main = yes; then
4918 cat >>confdefs.h <<_ACEOF
4919 #define HAVE_LIBDLD 1
4927 echo "$as_me:$LINENO: checking for main in -lld" >&5
4928 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4929 if test "${ac_cv_lib_ld_main+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 ac_check_lib_save_LIBS=$LIBS
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 #include "confdefs.h"
4939 #ifdef F77_DUMMY_MAIN
4943 int F77_DUMMY_MAIN() { return 1; }
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_lib_ld_main=yes
4967 echo "$as_me: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 ac_cv_lib_ld_main=no
4971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4972 LIBS=$ac_check_lib_save_LIBS
4974 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4975 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4976 if test $ac_cv_lib_ld_main = yes; then
4977 cat >>confdefs.h <<_ACEOF
4978 #define HAVE_LIBLD 1
4986 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4987 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4988 if test "${ac_cv_lib_compat_main+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 ac_check_lib_save_LIBS=$LIBS
4992 LIBS="-lcompat $LIBS"
4993 cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4995 #include "confdefs.h"
4998 #ifdef F77_DUMMY_MAIN
5002 int F77_DUMMY_MAIN() { return 1; }
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_lib_compat_main=yes
5026 echo "$as_me: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5028 ac_cv_lib_compat_main=no
5030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5031 LIBS=$ac_check_lib_save_LIBS
5033 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5034 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5035 if test $ac_cv_lib_compat_main = yes; then
5036 cat >>confdefs.h <<_ACEOF
5037 #define HAVE_LIBCOMPAT 1
5040 LIBS="-lcompat $LIBS"
5045 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5046 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5047 if test "${ac_cv_lib_BSD_main+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 ac_check_lib_save_LIBS=$LIBS
5052 cat >conftest.$ac_ext <<_ACEOF
5053 #line $LINENO "configure"
5054 #include "confdefs.h"
5057 #ifdef F77_DUMMY_MAIN
5061 int F77_DUMMY_MAIN() { return 1; }
5071 rm -f conftest.$ac_objext conftest$ac_exeext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073 (eval $ac_link) 2>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -s conftest$ac_exeext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 ac_cv_lib_BSD_main=yes
5085 echo "$as_me: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5087 ac_cv_lib_BSD_main=no
5089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5090 LIBS=$ac_check_lib_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5093 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5094 if test $ac_cv_lib_BSD_main = yes; then
5095 cat >>confdefs.h <<_ACEOF
5096 #define HAVE_LIBBSD 1
5104 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5105 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5106 if test "${ac_cv_lib_gen_main+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 ac_check_lib_save_LIBS=$LIBS
5111 cat >conftest.$ac_ext <<_ACEOF
5112 #line $LINENO "configure"
5113 #include "confdefs.h"
5116 #ifdef F77_DUMMY_MAIN
5120 int F77_DUMMY_MAIN() { return 1; }
5130 rm -f conftest.$ac_objext conftest$ac_exeext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132 (eval $ac_link) 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -s conftest$ac_exeext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_lib_gen_main=yes
5144 echo "$as_me: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 ac_cv_lib_gen_main=no
5148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_check_lib_save_LIBS
5151 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5152 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5153 if test $ac_cv_lib_gen_main = yes; then
5154 cat >>confdefs.h <<_ACEOF
5155 #define HAVE_LIBGEN 1
5163 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5164 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5165 if test "${ac_cv_lib_PW_main+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 ac_check_lib_save_LIBS=$LIBS
5170 cat >conftest.$ac_ext <<_ACEOF
5171 #line $LINENO "configure"
5172 #include "confdefs.h"
5175 #ifdef F77_DUMMY_MAIN
5179 int F77_DUMMY_MAIN() { return 1; }
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -s conftest$ac_exeext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_lib_PW_main=yes
5203 echo "$as_me: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5205 ac_cv_lib_PW_main=no
5207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5211 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5212 if test $ac_cv_lib_PW_main = yes; then
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_LIBPW 1
5222 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5223 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5224 if test "${ac_cv_lib_resolv_main+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lresolv $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5231 #include "confdefs.h"
5234 #ifdef F77_DUMMY_MAIN
5238 int F77_DUMMY_MAIN() { return 1; }
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -s conftest$ac_exeext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_cv_lib_resolv_main=yes
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 ac_cv_lib_resolv_main=no
5266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5267 LIBS=$ac_check_lib_save_LIBS
5269 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5270 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5271 if test $ac_cv_lib_resolv_main = yes; then
5272 cat >>confdefs.h <<_ACEOF
5273 #define HAVE_LIBRESOLV 1
5276 LIBS="-lresolv $LIBS"
5280 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5281 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5282 if test "${ac_cv_search_getopt_long+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 ac_func_search_save_LIBS=$LIBS
5286 ac_cv_search_getopt_long=no
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 #include "confdefs.h"
5291 /* Override any gcc2 internal prototype to avoid an error. */
5295 /* We use char because int might match the return type of a gcc2
5296 builtin and then its argument prototype would still apply. */
5297 char getopt_long ();
5298 #ifdef F77_DUMMY_MAIN
5302 int F77_DUMMY_MAIN() { return 1; }
5312 rm -f conftest.$ac_objext conftest$ac_exeext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314 (eval $ac_link) 2>&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -s conftest$ac_exeext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_cv_search_getopt_long="none required"
5326 echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5330 if test "$ac_cv_search_getopt_long" = no; then
5331 for ac_lib in getopt gnugetopt; do
5332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5333 cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5335 #include "confdefs.h"
5337 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5343 char getopt_long ();
5344 #ifdef F77_DUMMY_MAIN
5348 int F77_DUMMY_MAIN() { return 1; }
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_cv_search_getopt_long="-l$ac_lib"
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5379 LIBS=$ac_func_search_save_LIBS
5381 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5382 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5383 if test "$ac_cv_search_getopt_long" != no; then
5384 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5390 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5391 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5392 if test "${ac_cv_lib_unix_main+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_check_lib_save_LIBS=$LIBS
5397 cat >conftest.$ac_ext <<_ACEOF
5398 #line $LINENO "configure"
5399 #include "confdefs.h"
5402 #ifdef F77_DUMMY_MAIN
5406 int F77_DUMMY_MAIN() { return 1; }
5416 rm -f conftest.$ac_objext conftest$ac_exeext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5418 (eval $ac_link) 2>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try='test -s conftest$ac_exeext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_lib_unix_main=yes
5430 echo "$as_me: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5432 ac_cv_lib_unix_main=no
5434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5435 LIBS=$ac_check_lib_save_LIBS
5437 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5438 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5439 if test $ac_cv_lib_unix_main = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE_LIBUNIX 1
5448 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5449 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5450 if test "${ac_cv_search_crypt+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 ac_func_search_save_LIBS=$LIBS
5454 ac_cv_search_crypt=no
5455 cat >conftest.$ac_ext <<_ACEOF
5456 #line $LINENO "configure"
5457 #include "confdefs.h"
5459 /* Override any gcc2 internal prototype to avoid an error. */
5463 /* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5466 #ifdef F77_DUMMY_MAIN
5470 int F77_DUMMY_MAIN() { return 1; }
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482 (eval $ac_link) 2>&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -s conftest$ac_exeext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_search_crypt="none required"
5494 echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5498 if test "$ac_cv_search_crypt" = no; then
5499 for ac_lib in crypt; do
5500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5501 cat >conftest.$ac_ext <<_ACEOF
5502 #line $LINENO "configure"
5503 #include "confdefs.h"
5505 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5512 #ifdef F77_DUMMY_MAIN
5516 int F77_DUMMY_MAIN() { return 1; }
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_search_crypt="-l$ac_lib"
5541 echo "$as_me: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5547 LIBS=$ac_func_search_save_LIBS
5549 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5550 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5551 if test "$ac_cv_search_crypt" != no; then
5552 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5558 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5559 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5560 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 ac_check_lib_save_LIBS=$LIBS
5565 cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 #include "confdefs.h"
5569 /* Override any gcc2 internal prototype to avoid an error. */
5573 /* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5575 char __inet_ntoa ();
5576 #ifdef F77_DUMMY_MAIN
5580 int F77_DUMMY_MAIN() { return 1; }
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_lib_bind___inet_ntoa=yes
5604 echo "$as_me: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 ac_cv_lib_bind___inet_ntoa=no
5608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5609 LIBS=$ac_check_lib_save_LIBS
5611 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5612 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5613 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5614 cat >>confdefs.h <<_ACEOF
5615 #define HAVE_LIBBIND 1
5623 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5624 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5625 if test "${ac_cv_search_fdatasync+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 ac_func_search_save_LIBS=$LIBS
5629 ac_cv_search_fdatasync=no
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 #include "confdefs.h"
5634 /* Override any gcc2 internal prototype to avoid an error. */
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5641 #ifdef F77_DUMMY_MAIN
5645 int F77_DUMMY_MAIN() { return 1; }
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_search_fdatasync="none required"
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5673 if test "$ac_cv_search_fdatasync" = no; then
5674 for ac_lib in rt posix4; do
5675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5676 cat >conftest.$ac_ext <<_ACEOF
5677 #line $LINENO "configure"
5678 #include "confdefs.h"
5680 /* Override any gcc2 internal prototype to avoid an error. */
5684 /* We use char because int might match the return type of a gcc2
5685 builtin and then its argument prototype would still apply. */
5687 #ifdef F77_DUMMY_MAIN
5691 int F77_DUMMY_MAIN() { return 1; }
5701 rm -f conftest.$ac_objext conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 (eval $ac_link) 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -s conftest$ac_exeext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_search_fdatasync="-l$ac_lib"
5716 echo "$as_me: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5722 LIBS=$ac_func_search_save_LIBS
5724 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5725 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5726 if test "$ac_cv_search_fdatasync" != no; then
5727 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5733 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5734 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5735 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 ac_check_lib_save_LIBS=$LIBS
5739 LIBS="-lcygipc $LIBS"
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5742 #include "confdefs.h"
5744 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5751 #ifdef F77_DUMMY_MAIN
5755 int F77_DUMMY_MAIN() { return 1; }
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -s conftest$ac_exeext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_cv_lib_cygipc_shmget=yes
5779 echo "$as_me: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 ac_cv_lib_cygipc_shmget=no
5783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5784 LIBS=$ac_check_lib_save_LIBS
5786 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5787 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5788 if test $ac_cv_lib_cygipc_shmget = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 #define HAVE_LIBCYGIPC 1
5793 LIBS="-lcygipc $LIBS"
5798 if test "$with_readline" = yes; then
5800 echo "$as_me:$LINENO: checking for readline" >&5
5801 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5803 if test "${pgac_cv_check_readline+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 pgac_cv_check_readline=no
5807 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5808 for pgac_rllib in -lreadline -ledit ; do
5809 pgac_save_LIBS=$LIBS
5810 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5811 cat >conftest.$ac_ext <<_ACEOF
5812 #line $LINENO "configure"
5813 #include "confdefs.h"
5815 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5822 #ifdef F77_DUMMY_MAIN
5826 int F77_DUMMY_MAIN() { return 1; }
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -s conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5849 # NetBSD and OpenBSD have a broken linker that does not
5850 # recognize dependent libraries
5851 case $host_os in netbsd* | openbsd* )
5854 *) pgac_lib=" -lcurses" ;;
5858 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5862 echo "$as_me: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5866 LIBS=$pgac_save_LIBS
5869 LIBS=$pgac_save_LIBS
5873 if test "$pgac_cv_check_readline" != no ; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_LIBREADLINE 1
5879 LIBS="$pgac_cv_check_readline $LIBS"
5880 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5881 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5883 echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5886 if test x"$pgac_cv_check_readline" = x"no"; then
5887 { { echo "$as_me:$LINENO: error: readline library not found
5888 If you have readline already installed, see config.log for details on the
5889 failure. It is possible the compiler isn't looking in the proper directory.
5890 Use --without-readline to disable readline support." >&5
5891 echo "$as_me: error: readline library not found
5892 If you have readline already installed, see config.log for details on the
5893 failure. It is possible the compiler isn't looking in the proper directory.
5894 Use --without-readline to disable readline support." >&2;}
5895 { (exit 1); exit 1; }; }
5899 if test "$with_zlib" = yes; then
5901 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5902 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5903 if test "${ac_cv_lib_z_inflate+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 ac_check_lib_save_LIBS=$LIBS
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 #include "confdefs.h"
5912 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5919 #ifdef F77_DUMMY_MAIN
5923 int F77_DUMMY_MAIN() { return 1; }
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_lib_z_inflate=yes
5947 echo "$as_me: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5949 ac_cv_lib_z_inflate=no
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_check_lib_save_LIBS
5954 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5955 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5956 if test $ac_cv_lib_z_inflate = yes; then
5957 cat >>confdefs.h <<_ACEOF
5964 { { echo "$as_me:$LINENO: error: zlib library not found
5965 If you have zlib already installed, see config.log for details on the
5966 failure. It is possible the compiler isn't looking in the proper directory.
5967 Use --without-zlib to disable zlib support." >&5
5968 echo "$as_me: error: zlib library not found
5969 If you have zlib already installed, see config.log for details on the
5970 failure. It is possible the compiler isn't looking in the proper directory.
5971 Use --without-zlib to disable zlib support." >&2;}
5972 { (exit 1); exit 1; }; }
5977 if test "$with_krb4" = yes ; then
5979 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5980 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5981 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 ac_check_lib_save_LIBS=$LIBS
5986 cat >conftest.$ac_ext <<_ACEOF
5987 #line $LINENO "configure"
5988 #include "confdefs.h"
5990 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5996 char des_encrypt ();
5997 #ifdef F77_DUMMY_MAIN
6001 int F77_DUMMY_MAIN() { return 1; }
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -s conftest$ac_exeext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_lib_des_des_encrypt=yes
6025 echo "$as_me: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6027 ac_cv_lib_des_des_encrypt=no
6029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6032 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6033 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6034 if test $ac_cv_lib_des_des_encrypt = yes; then
6035 cat >>confdefs.h <<_ACEOF
6036 #define HAVE_LIBDES 1
6042 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6043 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6044 { (exit 1); exit 1; }; }
6048 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6049 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6050 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_check_lib_save_LIBS=$LIBS
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char krb_sendauth ();
6066 #ifdef F77_DUMMY_MAIN
6070 int F77_DUMMY_MAIN() { return 1; }
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082 (eval $ac_link) 2>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_lib_krb_krb_sendauth=yes
6094 echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 ac_cv_lib_krb_krb_sendauth=no
6098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099 LIBS=$ac_check_lib_save_LIBS
6101 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6102 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6103 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6104 cat >>confdefs.h <<_ACEOF
6105 #define HAVE_LIBKRB 1
6111 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6112 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6113 { (exit 1); exit 1; }; }
6118 if test "$with_krb5" = yes ; then
6119 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6120 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6121 if test "${ac_cv_search_com_err+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 ac_func_search_save_LIBS=$LIBS
6125 ac_cv_search_com_err=no
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 #include "confdefs.h"
6130 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6137 #ifdef F77_DUMMY_MAIN
6141 int F77_DUMMY_MAIN() { return 1; }
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153 (eval $ac_link) 2>&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -s conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_search_com_err="none required"
6165 echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 if test "$ac_cv_search_com_err" = no; then
6170 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 #include "confdefs.h"
6176 /* Override any gcc2 internal prototype to avoid an error. */
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6183 #ifdef F77_DUMMY_MAIN
6187 int F77_DUMMY_MAIN() { return 1; }
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_search_com_err="-l$ac_lib"
6212 echo "$as_me: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6218 LIBS=$ac_func_search_save_LIBS
6220 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6221 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6222 if test "$ac_cv_search_com_err" != no; then
6223 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6226 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6227 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6228 { (exit 1); exit 1; }; }
6231 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6232 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6233 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_func_search_save_LIBS=$LIBS
6237 ac_cv_search_krb5_encrypt=no
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6240 #include "confdefs.h"
6242 /* Override any gcc2 internal prototype to avoid an error. */
6246 /* We use char because int might match the return type of a gcc2
6247 builtin and then its argument prototype would still apply. */
6248 char krb5_encrypt ();
6249 #ifdef F77_DUMMY_MAIN
6253 int F77_DUMMY_MAIN() { return 1; }
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_search_krb5_encrypt="none required"
6277 echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 if test "$ac_cv_search_krb5_encrypt" = no; then
6282 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6288 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6294 char krb5_encrypt ();
6295 #ifdef F77_DUMMY_MAIN
6299 int F77_DUMMY_MAIN() { return 1; }
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_search_krb5_encrypt="-l$ac_lib"
6324 echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6330 LIBS=$ac_func_search_save_LIBS
6332 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6333 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6334 if test "$ac_cv_search_krb5_encrypt" != no; then
6335 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6338 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6339 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6340 { (exit 1); exit 1; }; }
6343 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6344 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6345 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 ac_func_search_save_LIBS=$LIBS
6349 ac_cv_search_krb5_sendauth=no
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line $LINENO "configure"
6352 #include "confdefs.h"
6354 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6360 char krb5_sendauth ();
6361 #ifdef F77_DUMMY_MAIN
6365 int F77_DUMMY_MAIN() { return 1; }
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6377 (eval $ac_link) 2>&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } &&
6381 { ac_try='test -s conftest$ac_exeext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_cv_search_krb5_sendauth="none required"
6389 echo "$as_me: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393 if test "$ac_cv_search_krb5_sendauth" = no; then
6394 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6400 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6406 char krb5_sendauth ();
6407 #ifdef F77_DUMMY_MAIN
6411 int F77_DUMMY_MAIN() { return 1; }
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_search_krb5_sendauth="-l$ac_lib"
6436 echo "$as_me: failed program was:" >&5
6437 cat conftest.$ac_ext >&5
6439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 LIBS=$ac_func_search_save_LIBS
6444 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6445 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6446 if test "$ac_cv_search_krb5_sendauth" != no; then
6447 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6450 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6451 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6452 { (exit 1); exit 1; }; }
6457 if test "$with_openssl" = yes ; then
6459 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6460 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6461 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-lcrypto $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 #include "confdefs.h"
6470 /* Override any gcc2 internal prototype to avoid an error. */
6474 /* We use char because int might match the return type of a gcc2
6475 builtin and then its argument prototype would still apply. */
6476 char CRYPTO_new_ex_data ();
6477 #ifdef F77_DUMMY_MAIN
6481 int F77_DUMMY_MAIN() { return 1; }
6486 CRYPTO_new_ex_data ();
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -s conftest$ac_exeext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6510 LIBS=$ac_check_lib_save_LIBS
6512 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6513 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6514 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define HAVE_LIBCRYPTO 1
6519 LIBS="-lcrypto $LIBS"
6522 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6523 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6524 { (exit 1); exit 1; }; }
6528 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6529 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6530 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_check_lib_save_LIBS=$LIBS
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6537 #include "confdefs.h"
6539 /* Override any gcc2 internal prototype to avoid an error. */
6543 /* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */
6545 char SSL_library_init ();
6546 #ifdef F77_DUMMY_MAIN
6550 int F77_DUMMY_MAIN() { return 1; }
6555 SSL_library_init ();
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -s conftest$ac_exeext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_lib_ssl_SSL_library_init=yes
6574 echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6576 ac_cv_lib_ssl_SSL_library_init=no
6578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579 LIBS=$ac_check_lib_save_LIBS
6581 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6582 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6583 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define HAVE_LIBSSL 1
6591 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6592 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6593 { (exit 1); exit 1; }; }
6598 if test "$with_pam" = yes ; then
6600 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6601 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6602 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 ac_check_lib_save_LIBS=$LIBS
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 #include "confdefs.h"
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6618 #ifdef F77_DUMMY_MAIN
6622 int F77_DUMMY_MAIN() { return 1; }
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634 (eval $ac_link) 2>&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -s conftest$ac_exeext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_cv_lib_pam_pam_start=yes
6646 echo "$as_me: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 ac_cv_lib_pam_pam_start=no
6650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 LIBS=$ac_check_lib_save_LIBS
6653 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6654 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6655 if test $ac_cv_lib_pam_pam_start = yes; then
6656 cat >>confdefs.h <<_ACEOF
6657 #define HAVE_LIBPAM 1
6663 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6664 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6665 { (exit 1); exit 1; }; }
6675 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6676 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6677 if test "${ac_cv_header_stdc+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6692 egrep -v '^ *\+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } >/dev/null; then
6697 if test -s conftest.err; then
6698 ac_cpp_err=$ac_c_preproc_warn_flag
6705 if test -z "$ac_cpp_err"; then
6706 ac_cv_header_stdc=yes
6708 echo "$as_me: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6710 ac_cv_header_stdc=no
6712 rm -f conftest.err conftest.$ac_ext
6714 if test $ac_cv_header_stdc = yes; then
6715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6716 cat >conftest.$ac_ext <<_ACEOF
6717 #line $LINENO "configure"
6718 #include "confdefs.h"
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 egrep "memchr" >/dev/null 2>&1; then
6726 ac_cv_header_stdc=no
6732 if test $ac_cv_header_stdc = yes; then
6733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734 cat >conftest.$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 #include "confdefs.h"
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 egrep "free" >/dev/null 2>&1; then
6744 ac_cv_header_stdc=no
6750 if test $ac_cv_header_stdc = yes; then
6751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6752 if test "$cross_compiling" = yes; then
6755 cat >conftest.$ac_ext <<_ACEOF
6756 #line $LINENO "configure"
6757 #include "confdefs.h"
6759 #if ((' ' & 0x0FF) == 0x020)
6760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6763 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6764 || ('j' <= (c) && (c) <= 'r') \
6765 || ('s' <= (c) && (c) <= 'z'))
6766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6774 for (i = 0; i < 256; i++)
6775 if (XOR (islower (i), ISLOWER (i))
6776 || toupper (i) != TOUPPER (i))
6781 rm -f conftest$ac_exeext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6783 (eval $ac_link) 2>&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6794 echo "$as_me: program exited with status $ac_status" >&5
6795 echo "$as_me: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 ac_cv_header_stdc=no
6800 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6804 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6805 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6806 if test $ac_cv_header_stdc = yes; then
6808 cat >>confdefs.h <<\_ACEOF
6809 #define STDC_HEADERS 1
6814 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6825 inttypes.h stdint.h unistd.h
6827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 cat >conftest.$ac_ext <<_ACEOF
6834 #line $LINENO "configure"
6835 #include "confdefs.h"
6836 $ac_includes_default
6838 #include <$ac_header>
6840 rm -f conftest.$ac_objext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842 (eval $ac_compile) 2>&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 eval "$as_ac_Header=yes"
6854 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 eval "$as_ac_Header=no"
6858 rm -f conftest.$ac_objext conftest.$ac_ext
6860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6863 cat >>confdefs.h <<_ACEOF
6864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6890 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
6892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6894 echo "$as_me:$LINENO: checking for $ac_header" >&5
6895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6902 # Is the header compilable?
6903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6905 cat >conftest.$ac_ext <<_ACEOF
6906 #line $LINENO "configure"
6907 #include "confdefs.h"
6908 $ac_includes_default
6909 #include <$ac_header>
6911 rm -f conftest.$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -s conftest.$ac_objext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_header_compiler=yes
6925 echo "$as_me: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6927 ac_header_compiler=no
6929 rm -f conftest.$ac_objext conftest.$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6931 echo "${ECHO_T}$ac_header_compiler" >&6
6933 # Is the header present?
6934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line $LINENO "configure"
6938 #include "confdefs.h"
6939 #include <$ac_header>
6941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6944 egrep -v '^ *\+' conftest.er1 >conftest.err
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } >/dev/null; then
6949 if test -s conftest.err; then
6950 ac_cpp_err=$ac_c_preproc_warn_flag
6957 if test -z "$ac_cpp_err"; then
6958 ac_header_preproc=yes
6960 echo "$as_me: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6962 ac_header_preproc=no
6964 rm -f conftest.err conftest.$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6
6968 # So? What about this header?
6969 case $ac_header_compiler:$ac_header_preproc in
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 eval "$as_ac_Header=$ac_header_preproc"
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995 cat >>confdefs.h <<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7005 # netinet/in.h is included first.
7007 for ac_header in netinet/in.h
7009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011 echo "$as_me:$LINENO: checking for $ac_header" >&5
7012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7019 # Is the header compilable?
7020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 #include "confdefs.h"
7025 $ac_includes_default
7026 #include <$ac_header>
7028 rm -f conftest.$ac_objext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_header_compiler=yes
7042 echo "$as_me: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7044 ac_header_compiler=no
7046 rm -f conftest.$ac_objext conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7048 echo "${ECHO_T}$ac_header_compiler" >&6
7050 # Is the header present?
7051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7053 cat >conftest.$ac_ext <<_ACEOF
7054 #line $LINENO "configure"
7055 #include "confdefs.h"
7056 #include <$ac_header>
7058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7061 egrep -v '^ *\+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } >/dev/null; then
7066 if test -s conftest.err; then
7067 ac_cpp_err=$ac_c_preproc_warn_flag
7074 if test -z "$ac_cpp_err"; then
7075 ac_header_preproc=yes
7077 echo "$as_me: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7079 ac_header_preproc=no
7081 rm -f conftest.err conftest.$ac_ext
7082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7083 echo "${ECHO_T}$ac_header_preproc" >&6
7085 # So? What about this header?
7086 case $ac_header_compiler:$ac_header_preproc in
7088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7100 echo "$as_me:$LINENO: checking for $ac_header" >&5
7101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 eval "$as_ac_Header=$ac_header_preproc"
7107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7112 cat >>confdefs.h <<_ACEOF
7113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7121 for ac_header in netinet/tcp.h
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 cat >conftest.$ac_ext <<_ACEOF
7130 #line $LINENO "configure"
7131 #include "confdefs.h"
7132 $ac_includes_default
7133 #ifdef HAVE_NETINET_IN_H
7134 #include <netinet/in.h>
7138 #include <$ac_header>
7140 rm -f conftest.$ac_objext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 eval "$as_ac_Header=yes"
7154 echo "$as_me: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7156 eval "$as_ac_Header=no"
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163 cat >>confdefs.h <<_ACEOF
7164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7172 if test "$with_readline" = yes; then
7174 for ac_header in readline/readline.h
7176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178 echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7186 # Is the header compilable?
7187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7189 cat >conftest.$ac_ext <<_ACEOF
7190 #line $LINENO "configure"
7191 #include "confdefs.h"
7192 $ac_includes_default
7193 #include <$ac_header>
7195 rm -f conftest.$ac_objext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197 (eval $ac_compile) 2>&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_header_compiler=yes
7209 echo "$as_me: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7211 ac_header_compiler=no
7213 rm -f conftest.$ac_objext conftest.$ac_ext
7214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7215 echo "${ECHO_T}$ac_header_compiler" >&6
7217 # Is the header present?
7218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7221 #line $LINENO "configure"
7222 #include "confdefs.h"
7223 #include <$ac_header>
7225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7228 egrep -v '^ *\+' conftest.er1 >conftest.err
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } >/dev/null; then
7233 if test -s conftest.err; then
7234 ac_cpp_err=$ac_c_preproc_warn_flag
7241 if test -z "$ac_cpp_err"; then
7242 ac_header_preproc=yes
7244 echo "$as_me: failed program was:" >&5
7245 cat conftest.$ac_ext >&5
7246 ac_header_preproc=no
7248 rm -f conftest.err conftest.$ac_ext
7249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7250 echo "${ECHO_T}$ac_header_preproc" >&6
7252 # So? What about this header?
7253 case $ac_header_compiler:$ac_header_preproc in
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7267 echo "$as_me:$LINENO: checking for $ac_header" >&5
7268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 eval "$as_ac_Header=$ac_header_preproc"
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7279 cat >>confdefs.h <<_ACEOF
7280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 for ac_header in readline.h
7287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289 echo "$as_me:$LINENO: checking for $ac_header" >&5
7290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297 # Is the header compilable?
7298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7300 cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7303 $ac_includes_default
7304 #include <$ac_header>
7306 rm -f conftest.$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308 (eval $ac_compile) 2>&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -s conftest.$ac_objext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_header_compiler=yes
7320 echo "$as_me: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 ac_header_compiler=no
7324 rm -f conftest.$ac_objext conftest.$ac_ext
7325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7326 echo "${ECHO_T}$ac_header_compiler" >&6
7328 # Is the header present?
7329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7331 cat >conftest.$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7333 #include "confdefs.h"
7334 #include <$ac_header>
7336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7339 egrep -v '^ *\+' conftest.er1 >conftest.err
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } >/dev/null; then
7344 if test -s conftest.err; then
7345 ac_cpp_err=$ac_c_preproc_warn_flag
7352 if test -z "$ac_cpp_err"; then
7353 ac_header_preproc=yes
7355 echo "$as_me: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7357 ac_header_preproc=no
7359 rm -f conftest.err conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361 echo "${ECHO_T}$ac_header_preproc" >&6
7363 # So? What about this header?
7364 case $ac_header_compiler:$ac_header_preproc in
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7378 echo "$as_me:$LINENO: checking for $ac_header" >&5
7379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 eval "$as_ac_Header=$ac_header_preproc"
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390 cat >>confdefs.h <<_ACEOF
7391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395 { { echo "$as_me:$LINENO: error: readline header not found
7396 If you have readline already installed, see config.log for details on the
7397 failure. It is possible the compiler isn't looking in the proper directory.
7398 Use --without-readline to disable readline support." >&5
7399 echo "$as_me: error: readline header not found
7400 If you have readline already installed, see config.log for details on the
7401 failure. It is possible the compiler isn't looking in the proper directory.
7402 Use --without-readline to disable readline support." >&2;}
7403 { (exit 1); exit 1; }; }
7413 for ac_header in readline/history.h
7415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7417 echo "$as_me:$LINENO: checking for $ac_header" >&5
7418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7425 # Is the header compilable?
7426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7428 cat >conftest.$ac_ext <<_ACEOF
7429 #line $LINENO "configure"
7430 #include "confdefs.h"
7431 $ac_includes_default
7432 #include <$ac_header>
7434 rm -f conftest.$ac_objext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } &&
7440 { ac_try='test -s conftest.$ac_objext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_header_compiler=yes
7448 echo "$as_me: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7450 ac_header_compiler=no
7452 rm -f conftest.$ac_objext conftest.$ac_ext
7453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7454 echo "${ECHO_T}$ac_header_compiler" >&6
7456 # Is the header present?
7457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7459 cat >conftest.$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7461 #include "confdefs.h"
7462 #include <$ac_header>
7464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7467 egrep -v '^ *\+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } >/dev/null; then
7472 if test -s conftest.err; then
7473 ac_cpp_err=$ac_c_preproc_warn_flag
7480 if test -z "$ac_cpp_err"; then
7481 ac_header_preproc=yes
7483 echo "$as_me: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 ac_header_preproc=no
7487 rm -f conftest.err conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489 echo "${ECHO_T}$ac_header_preproc" >&6
7491 # So? What about this header?
7492 case $ac_header_compiler:$ac_header_preproc in
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 eval "$as_ac_Header=$ac_header_preproc"
7513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7524 for ac_header in history.h
7526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528 echo "$as_me:$LINENO: checking for $ac_header" >&5
7529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7536 # Is the header compilable?
7537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7541 #include "confdefs.h"
7542 $ac_includes_default
7543 #include <$ac_header>
7545 rm -f conftest.$ac_objext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -s conftest.$ac_objext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 ac_header_compiler=yes
7559 echo "$as_me: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 ac_header_compiler=no
7563 rm -f conftest.$ac_objext conftest.$ac_ext
7564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7565 echo "${ECHO_T}$ac_header_compiler" >&6
7567 # Is the header present?
7568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7571 #line $LINENO "configure"
7572 #include "confdefs.h"
7573 #include <$ac_header>
7575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7578 egrep -v '^ *\+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } >/dev/null; then
7583 if test -s conftest.err; then
7584 ac_cpp_err=$ac_c_preproc_warn_flag
7591 if test -z "$ac_cpp_err"; then
7592 ac_header_preproc=yes
7594 echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 ac_header_preproc=no
7598 rm -f conftest.err conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7600 echo "${ECHO_T}$ac_header_preproc" >&6
7602 # So? What about this header?
7603 case $ac_header_compiler:$ac_header_preproc in
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7617 echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 eval "$as_ac_Header=$ac_header_preproc"
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629 cat >>confdefs.h <<_ACEOF
7630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 { { echo "$as_me:$LINENO: error: history header not found
7635 If you have readline already installed, see config.log for details on the
7636 failure. It is possible the compiler isn't looking in the proper directory.
7637 Use --without-readline to disable readline support." >&5
7638 echo "$as_me: error: history header not found
7639 If you have readline already installed, see config.log for details on the
7640 failure. It is possible the compiler isn't looking in the proper directory.
7641 Use --without-readline to disable readline support." >&2;}
7642 { (exit 1); exit 1; }; }
7653 if test "$with_zlib" = yes; then
7654 if test "${ac_cv_header_zlib_h+set}" = set; then
7655 echo "$as_me:$LINENO: checking for zlib.h" >&5
7656 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7657 if test "${ac_cv_header_zlib_h+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7661 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7663 # Is the header compilable?
7664 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7665 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7667 #line $LINENO "configure"
7668 #include "confdefs.h"
7669 $ac_includes_default
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -s conftest.$ac_objext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_header_compiler=yes
7686 echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_header_compiler=no
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7692 echo "${ECHO_T}$ac_header_compiler" >&6
7694 # Is the header present?
7695 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7696 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line $LINENO "configure"
7699 #include "confdefs.h"
7702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7705 egrep -v '^ *\+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev/null; then
7710 if test -s conftest.err; then
7711 ac_cpp_err=$ac_c_preproc_warn_flag
7718 if test -z "$ac_cpp_err"; then
7719 ac_header_preproc=yes
7721 echo "$as_me: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7723 ac_header_preproc=no
7725 rm -f conftest.err conftest.$ac_ext
7726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7727 echo "${ECHO_T}$ac_header_preproc" >&6
7729 # So? What about this header?
7730 case $ac_header_compiler:$ac_header_preproc in
7732 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7733 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7735 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7737 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7738 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7740 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7742 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7744 echo "$as_me:$LINENO: checking for zlib.h" >&5
7745 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7746 if test "${ac_cv_header_zlib_h+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_cv_header_zlib_h=$ac_header_preproc
7751 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7752 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7755 if test $ac_cv_header_zlib_h = yes; then
7758 { { echo "$as_me:$LINENO: error: zlib header not found
7759 If you have zlib already installed, see config.log for details on the
7760 failure. It is possible the compiler isn't looking in the proper directory.
7761 Use --without-zlib to disable zlib support." >&5
7762 echo "$as_me: error: zlib header not found
7763 If you have zlib already installed, see config.log for details on the
7764 failure. It is possible the compiler isn't looking in the proper directory.
7765 Use --without-zlib to disable zlib support." >&2;}
7766 { (exit 1); exit 1; }; }
7772 if test "$with_krb4" = yes ; then
7773 if test "${ac_cv_header_krb_h+set}" = set; then
7774 echo "$as_me:$LINENO: checking for krb.h" >&5
7775 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7776 if test "${ac_cv_header_krb_h+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7780 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7782 # Is the header compilable?
7783 echo "$as_me:$LINENO: checking krb.h usability" >&5
7784 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7785 cat >conftest.$ac_ext <<_ACEOF
7786 #line $LINENO "configure"
7787 #include "confdefs.h"
7788 $ac_includes_default
7791 rm -f conftest.$ac_objext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7793 (eval $ac_compile) 2>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_header_compiler=yes
7805 echo "$as_me: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 ac_header_compiler=no
7809 rm -f conftest.$ac_objext conftest.$ac_ext
7810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7811 echo "${ECHO_T}$ac_header_compiler" >&6
7813 # Is the header present?
7814 echo "$as_me:$LINENO: checking krb.h presence" >&5
7815 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7816 cat >conftest.$ac_ext <<_ACEOF
7817 #line $LINENO "configure"
7818 #include "confdefs.h"
7821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7824 egrep -v '^ *\+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } >/dev/null; then
7829 if test -s conftest.err; then
7830 ac_cpp_err=$ac_c_preproc_warn_flag
7837 if test -z "$ac_cpp_err"; then
7838 ac_header_preproc=yes
7840 echo "$as_me: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7842 ac_header_preproc=no
7844 rm -f conftest.err conftest.$ac_ext
7845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7846 echo "${ECHO_T}$ac_header_preproc" >&6
7848 # So? What about this header?
7849 case $ac_header_compiler:$ac_header_preproc in
7851 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7852 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7854 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7856 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7857 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7858 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7859 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7860 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7861 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7863 echo "$as_me:$LINENO: checking for krb.h" >&5
7864 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7865 if test "${ac_cv_header_krb_h+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 ac_cv_header_krb_h=$ac_header_preproc
7870 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7871 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7874 if test $ac_cv_header_krb_h = yes; then
7877 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7878 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7879 { (exit 1); exit 1; }; }
7885 if test "$with_krb5" = yes ; then
7886 if test "${ac_cv_header_krb5_h+set}" = set; then
7887 echo "$as_me:$LINENO: checking for krb5.h" >&5
7888 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7889 if test "${ac_cv_header_krb5_h+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7893 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7895 # Is the header compilable?
7896 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7897 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7899 #line $LINENO "configure"
7900 #include "confdefs.h"
7901 $ac_includes_default
7904 rm -f conftest.$ac_objext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906 (eval $ac_compile) 2>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_header_compiler=yes
7918 echo "$as_me: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 ac_header_compiler=no
7922 rm -f conftest.$ac_objext conftest.$ac_ext
7923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7924 echo "${ECHO_T}$ac_header_compiler" >&6
7926 # Is the header present?
7927 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7928 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7937 egrep -v '^ *\+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } >/dev/null; then
7942 if test -s conftest.err; then
7943 ac_cpp_err=$ac_c_preproc_warn_flag
7950 if test -z "$ac_cpp_err"; then
7951 ac_header_preproc=yes
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_header_preproc=no
7957 rm -f conftest.err conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7959 echo "${ECHO_T}$ac_header_preproc" >&6
7961 # So? What about this header?
7962 case $ac_header_compiler:$ac_header_preproc in
7964 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7965 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7966 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7967 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7969 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7970 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7971 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7972 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7974 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7976 echo "$as_me:$LINENO: checking for krb5.h" >&5
7977 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7978 if test "${ac_cv_header_krb5_h+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 ac_cv_header_krb5_h=$ac_header_preproc
7983 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7984 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7987 if test $ac_cv_header_krb5_h = yes; then
7990 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7991 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7992 { (exit 1); exit 1; }; }
7996 if test "${ac_cv_header_com_err_h+set}" = set; then
7997 echo "$as_me:$LINENO: checking for com_err.h" >&5
7998 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7999 if test "${ac_cv_header_com_err_h+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8003 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8005 # Is the header compilable?
8006 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8007 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 #include <com_err.h>
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -s conftest.$ac_objext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_header_compiler=yes
8028 echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_header_compiler=no
8032 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8034 echo "${ECHO_T}$ac_header_compiler" >&6
8036 # Is the header present?
8037 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8038 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 #include <com_err.h>
8044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047 egrep -v '^ *\+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } >/dev/null; then
8052 if test -s conftest.err; then
8053 ac_cpp_err=$ac_c_preproc_warn_flag
8060 if test -z "$ac_cpp_err"; then
8061 ac_header_preproc=yes
8063 echo "$as_me: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8065 ac_header_preproc=no
8067 rm -f conftest.err conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069 echo "${ECHO_T}$ac_header_preproc" >&6
8071 # So? What about this header?
8072 case $ac_header_compiler:$ac_header_preproc in
8074 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8075 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8079 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8084 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8086 echo "$as_me:$LINENO: checking for com_err.h" >&5
8087 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8088 if test "${ac_cv_header_com_err_h+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 ac_cv_header_com_err_h=$ac_header_preproc
8093 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8094 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8097 if test $ac_cv_header_com_err_h = yes; then
8100 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8101 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8102 { (exit 1); exit 1; }; }
8108 if test "$with_openssl" = yes ; then
8109 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8110 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8111 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8112 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8116 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8118 # Is the header compilable?
8119 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8120 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 #include "confdefs.h"
8124 $ac_includes_default
8125 #include <openssl/ssl.h>
8127 rm -f conftest.$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -s conftest.$ac_objext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_header_compiler=yes
8141 echo "$as_me: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 ac_header_compiler=no
8145 rm -f conftest.$ac_objext conftest.$ac_ext
8146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8147 echo "${ECHO_T}$ac_header_compiler" >&6
8149 # Is the header present?
8150 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8151 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line $LINENO "configure"
8154 #include "confdefs.h"
8155 #include <openssl/ssl.h>
8157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160 egrep -v '^ *\+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } >/dev/null; then
8165 if test -s conftest.err; then
8166 ac_cpp_err=$ac_c_preproc_warn_flag
8173 if test -z "$ac_cpp_err"; then
8174 ac_header_preproc=yes
8176 echo "$as_me: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8178 ac_header_preproc=no
8180 rm -f conftest.err conftest.$ac_ext
8181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8182 echo "${ECHO_T}$ac_header_preproc" >&6
8184 # So? What about this header?
8185 case $ac_header_compiler:$ac_header_preproc in
8187 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8188 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8189 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8190 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8192 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8193 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8195 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8197 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8199 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8200 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8201 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8206 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8207 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8210 if test $ac_cv_header_openssl_ssl_h = yes; then
8213 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8214 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8215 { (exit 1); exit 1; }; }
8219 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8220 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8221 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8222 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8226 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8228 # Is the header compilable?
8229 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8230 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line $LINENO "configure"
8233 #include "confdefs.h"
8234 $ac_includes_default
8235 #include <openssl/err.h>
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -s conftest.$ac_objext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_header_compiler=yes
8251 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 ac_header_compiler=no
8255 rm -f conftest.$ac_objext conftest.$ac_ext
8256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8257 echo "${ECHO_T}$ac_header_compiler" >&6
8259 # Is the header present?
8260 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8261 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8263 #line $LINENO "configure"
8264 #include "confdefs.h"
8265 #include <openssl/err.h>
8267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8270 egrep -v '^ *\+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } >/dev/null; then
8275 if test -s conftest.err; then
8276 ac_cpp_err=$ac_c_preproc_warn_flag
8283 if test -z "$ac_cpp_err"; then
8284 ac_header_preproc=yes
8286 echo "$as_me: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 ac_header_preproc=no
8290 rm -f conftest.err conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8292 echo "${ECHO_T}$ac_header_preproc" >&6
8294 # So? What about this header?
8295 case $ac_header_compiler:$ac_header_preproc in
8297 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8298 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8300 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8302 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8303 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8305 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8307 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8309 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8310 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8311 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_cv_header_openssl_err_h=$ac_header_preproc
8316 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8317 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8320 if test $ac_cv_header_openssl_err_h = yes; then
8323 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8324 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8325 { (exit 1); exit 1; }; }
8331 if test "$with_pam" = yes ; then
8332 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8333 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8334 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8335 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8339 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8341 # Is the header compilable?
8342 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8343 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 $ac_includes_default
8348 #include <security/pam_appl.h>
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_header_compiler=yes
8364 echo "$as_me: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 ac_header_compiler=no
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8374 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 #include <security/pam_appl.h>
8380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8383 egrep -v '^ *\+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } >/dev/null; then
8388 if test -s conftest.err; then
8389 ac_cpp_err=$ac_c_preproc_warn_flag
8396 if test -z "$ac_cpp_err"; then
8397 ac_header_preproc=yes
8399 echo "$as_me: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8401 ac_header_preproc=no
8403 rm -f conftest.err conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8405 echo "${ECHO_T}$ac_header_preproc" >&6
8407 # So? What about this header?
8408 case $ac_header_compiler:$ac_header_preproc in
8410 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8411 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8413 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8415 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8416 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8418 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8422 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8423 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8424 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8429 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8430 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8433 if test $ac_cv_header_security_pam_appl_h = yes; then
8436 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8437 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8438 { (exit 1); exit 1; }; }
8446 ## Types, structures, compiler characteristics
8450 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8451 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8452 if test "${ac_cv_c_const+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8457 #include "confdefs.h"
8459 #ifdef F77_DUMMY_MAIN
8463 int F77_DUMMY_MAIN() { return 1; }
8468 /* FIXME: Include the comments suggested by Paul. */
8470 /* Ultrix mips cc rejects this. */
8471 typedef int charset[2];
8473 /* SunOS 4.1.1 cc rejects this. */
8474 char const *const *ccp;
8476 /* NEC SVR4.0.2 mips cc rejects this. */
8477 struct point {int x, y;};
8478 static struct point const zero = {0,0};
8479 /* AIX XL C 1.02.0.0 rejects this.
8480 It does not let you subtract one const X* pointer from another in
8481 an arm of an if-expression whose if-part is not a constant
8483 const char *g = "string";
8484 ccp = &g + (g ? g-g : 0);
8485 /* HPUX 7.0 cc rejects these. */
8488 ccp = (char const *const *) p;
8489 { /* SCO 3.2v4 cc rejects this. */
8491 char const *s = 0 ? (char *) 0 : (char const *) 0;
8495 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8497 const int *foo = &x[0];
8500 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8501 typedef const int *iptr;
8505 { /* AIX XL C 1.02.0.0 rejects this saying
8506 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8507 struct s { int j; const int *ap[3]; };
8508 struct s *b; b->j = 5;
8510 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8519 rm -f conftest.$ac_objext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8521 (eval $ac_compile) 2>&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8533 echo "$as_me: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8537 rm -f conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8540 echo "${ECHO_T}$ac_cv_c_const" >&6
8541 if test $ac_cv_c_const = no; then
8543 cat >>confdefs.h <<\_ACEOF
8549 echo "$as_me:$LINENO: checking for inline" >&5
8550 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8551 if test "${ac_cv_c_inline+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 for ac_kw in inline __inline__ __inline; do
8556 cat >conftest.$ac_ext <<_ACEOF
8557 #line $LINENO "configure"
8558 #include "confdefs.h"
8560 static $ac_kw int static_foo () {return 0; }
8561 $ac_kw int foo () {return 0; }
8565 rm -f conftest.$ac_objext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567 (eval $ac_compile) 2>&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -s conftest.$ac_objext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 ac_cv_c_inline=$ac_kw; break
8579 echo "$as_me: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8582 rm -f conftest.$ac_objext conftest.$ac_ext
8586 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8587 echo "${ECHO_T}$ac_cv_c_inline" >&6
8588 case $ac_cv_c_inline in
8591 cat >>confdefs.h <<\_ACEOF
8595 *) cat >>confdefs.h <<_ACEOF
8596 #define inline $ac_cv_c_inline
8601 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8602 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8603 if test "${ac_cv_c_stringize+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8611 char *s = x(teststring);
8613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8614 egrep "#teststring" >/dev/null 2>&1; then
8615 ac_cv_c_stringize=no
8617 ac_cv_c_stringize=yes
8622 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8623 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8624 if test $ac_cv_c_stringize = yes; then
8626 cat >>confdefs.h <<\_ACEOF
8627 #define HAVE_STRINGIZE 1
8632 echo "$as_me:$LINENO: checking for signed types" >&5
8633 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8634 if test "${pgac_cv_c_signed+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 cat >conftest.$ac_ext <<_ACEOF
8638 #line $LINENO "configure"
8639 #include "confdefs.h"
8641 #ifdef F77_DUMMY_MAIN
8645 int F77_DUMMY_MAIN() { return 1; }
8650 signed char c; signed short s; signed int i;
8655 rm -f conftest.$ac_objext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657 (eval $ac_compile) 2>&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -s conftest.$ac_objext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 pgac_cv_c_signed=yes
8669 echo "$as_me: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8673 rm -f conftest.$ac_objext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8676 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8677 if test x"$pgac_cv_c_signed" = xno ; then
8679 cat >>confdefs.h <<\_ACEOF
8684 echo "$as_me:$LINENO: checking for working volatile" >&5
8685 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8686 if test "${ac_cv_c_volatile+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8693 #ifdef F77_DUMMY_MAIN
8697 int F77_DUMMY_MAIN() { return 1; }
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_c_volatile=yes
8723 echo "$as_me: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8727 rm -f conftest.$ac_objext conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8730 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8731 if test $ac_cv_c_volatile = no; then
8733 cat >>confdefs.h <<\_ACEOF
8739 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8741 if test "${ac_cv_struct_tm+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 #include "confdefs.h"
8747 #include <sys/types.h>
8750 #ifdef F77_DUMMY_MAIN
8754 int F77_DUMMY_MAIN() { return 1; }
8759 struct tm *tp; tp->tm_sec;
8764 rm -f conftest.$ac_objext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8766 (eval $ac_compile) 2>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -s conftest.$ac_objext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_struct_tm=time.h
8778 echo "$as_me: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8780 ac_cv_struct_tm=sys/time.h
8782 rm -f conftest.$ac_objext conftest.$ac_ext
8784 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8785 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8786 if test $ac_cv_struct_tm = sys/time.h; then
8788 cat >>confdefs.h <<\_ACEOF
8789 #define TM_IN_SYS_TIME 1
8794 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8795 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8796 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.$ac_ext <<_ACEOF
8800 #line $LINENO "configure"
8801 #include "confdefs.h"
8802 #include <sys/types.h>
8803 #include <$ac_cv_struct_tm>
8806 #ifdef F77_DUMMY_MAIN
8810 int F77_DUMMY_MAIN() { return 1; }
8815 static struct tm ac_aggr;
8816 if (ac_aggr.tm_zone)
8822 rm -f conftest.$ac_objext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -s conftest.$ac_objext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_member_struct_tm_tm_zone=yes
8836 echo "$as_me: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 ac_cv_member_struct_tm_tm_zone=no
8840 rm -f conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8843 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8844 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8846 cat >>confdefs.h <<_ACEOF
8847 #define HAVE_STRUCT_TM_TM_ZONE 1
8853 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8855 cat >>confdefs.h <<\_ACEOF
8856 #define HAVE_TM_ZONE 1
8860 echo "$as_me:$LINENO: checking for tzname" >&5
8861 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8862 if test "${ac_cv_var_tzname+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 cat >conftest.$ac_ext <<_ACEOF
8866 #line $LINENO "configure"
8867 #include "confdefs.h"
8869 #ifndef tzname /* For SGI. */
8870 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8873 #ifdef F77_DUMMY_MAIN
8877 int F77_DUMMY_MAIN() { return 1; }
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -s conftest$ac_exeext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 ac_cv_var_tzname=yes
8901 echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8907 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8908 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8909 if test $ac_cv_var_tzname = yes; then
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_TZNAME 1
8918 echo "$as_me:$LINENO: checking for union semun" >&5
8919 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8920 if test "${ac_cv_type_union_semun+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <sys/types.h>
8927 #include <sys/ipc.h>
8928 #include <sys/sem.h>
8930 #ifdef F77_DUMMY_MAIN
8934 int F77_DUMMY_MAIN() { return 1; }
8939 if ((union semun *) 0)
8941 if (sizeof (union semun))
8947 rm -f conftest.$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_cv_type_union_semun=yes
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 ac_cv_type_union_semun=no
8965 rm -f conftest.$ac_objext conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8968 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8969 if test $ac_cv_type_union_semun = yes; then
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_UNION_SEMUN 1
8978 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8979 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8980 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.$ac_ext <<_ACEOF
8984 #line $LINENO "configure"
8985 #include "confdefs.h"
8986 #include <sys/types.h>
8987 #ifdef HAVE_SYS_UN_H
8992 #ifdef F77_DUMMY_MAIN
8996 int F77_DUMMY_MAIN() { return 1; }
9001 if ((struct sockaddr_un *) 0)
9003 if (sizeof (struct sockaddr_un))
9009 rm -f conftest.$ac_objext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011 (eval $ac_compile) 2>&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_cv_type_struct_sockaddr_un=yes
9023 echo "$as_me: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9025 ac_cv_type_struct_sockaddr_un=no
9027 rm -f conftest.$ac_objext conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9030 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9031 if test $ac_cv_type_struct_sockaddr_un = yes; then
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_STRUCT_SOCKADDR_UN 1
9041 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9042 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9043 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9047 #line $LINENO "configure"
9048 #include "confdefs.h"
9049 #include <sys/param.h>
9050 #include <sys/socket.h>
9051 #include <sys/ucred.h>
9053 #ifdef F77_DUMMY_MAIN
9057 int F77_DUMMY_MAIN() { return 1; }
9062 if ((struct cmsgcred *) 0)
9064 if (sizeof (struct cmsgcred))
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -s conftest.$ac_objext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_cv_type_struct_cmsgcred=yes
9084 echo "$as_me: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 ac_cv_type_struct_cmsgcred=no
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9091 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9092 if test $ac_cv_type_struct_cmsgcred = yes; then
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_STRUCT_CMSGCRED 1
9100 echo "$as_me:$LINENO: checking for struct fcred" >&5
9101 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9102 if test "${ac_cv_type_struct_fcred+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 #include "confdefs.h"
9108 #include <sys/param.h>
9109 #include <sys/socket.h>
9110 #include <sys/ucred.h>
9112 #ifdef F77_DUMMY_MAIN
9116 int F77_DUMMY_MAIN() { return 1; }
9121 if ((struct fcred *) 0)
9123 if (sizeof (struct fcred))
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_cv_type_struct_fcred=yes
9143 echo "$as_me: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9145 ac_cv_type_struct_fcred=no
9147 rm -f conftest.$ac_objext conftest.$ac_ext
9149 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9150 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9151 if test $ac_cv_type_struct_fcred = yes; then
9153 cat >>confdefs.h <<_ACEOF
9154 #define HAVE_STRUCT_FCRED 1
9159 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9160 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9161 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 #include <sys/param.h>
9168 #include <sys/socket.h>
9169 #include <sys/ucred.h>
9171 #ifdef F77_DUMMY_MAIN
9175 int F77_DUMMY_MAIN() { return 1; }
9180 if ((struct sockcred *) 0)
9182 if (sizeof (struct sockcred))
9188 rm -f conftest.$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -s conftest.$ac_objext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_cv_type_struct_sockcred=yes
9202 echo "$as_me: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 ac_cv_type_struct_sockcred=no
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9209 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9210 if test $ac_cv_type_struct_sockcred = yes; then
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_STRUCT_SOCKCRED 1
9220 if test "$with_zlib" = yes; then
9221 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9222 # did not). While we could work around the lack of z_streamp, it
9223 # seems unwise to encourage people to use such old zlib versions...
9224 echo "$as_me:$LINENO: checking for z_streamp" >&5
9225 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9226 if test "${ac_cv_type_z_streamp+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 #include "confdefs.h"
9234 #ifdef F77_DUMMY_MAIN
9238 int F77_DUMMY_MAIN() { return 1; }
9243 if ((z_streamp *) 0)
9245 if (sizeof (z_streamp))
9251 rm -f conftest.$ac_objext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253 (eval $ac_compile) 2>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -s conftest.$ac_objext'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 ac_cv_type_z_streamp=yes
9265 echo "$as_me: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 ac_cv_type_z_streamp=no
9269 rm -f conftest.$ac_objext conftest.$ac_ext
9271 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9272 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9273 if test $ac_cv_type_z_streamp = yes; then
9276 { { echo "$as_me:$LINENO: error: zlib version is too old
9277 Use --without-zlib to disable zlib support." >&5
9278 echo "$as_me: error: zlib version is too old
9279 Use --without-zlib to disable zlib support." >&2;}
9280 { (exit 1); exit 1; }; }
9285 if test "$with_krb5" = yes; then
9286 # Check for differences between MIT and Heimdal (KTH) releases
9287 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9288 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9289 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 cat >conftest.$ac_ext <<_ACEOF
9293 #line $LINENO "configure"
9294 #include "confdefs.h"
9297 #ifdef F77_DUMMY_MAIN
9301 int F77_DUMMY_MAIN() { return 1; }
9306 static krb5_ticket ac_aggr;
9307 if (ac_aggr.enc_part2)
9313 rm -f conftest.$ac_objext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315 (eval $ac_compile) 2>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -s conftest.$ac_objext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_member_krb5_ticket_enc_part2=yes
9327 echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9329 ac_cv_member_krb5_ticket_enc_part2=no
9331 rm -f conftest.$ac_objext conftest.$ac_ext
9333 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9334 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9335 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_KRB5_TICKET_ENC_PART2 1
9343 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9344 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9345 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 #include "confdefs.h"
9353 #ifdef F77_DUMMY_MAIN
9357 int F77_DUMMY_MAIN() { return 1; }
9362 static krb5_ticket ac_aggr;
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371 (eval $ac_compile) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_member_krb5_ticket_client=yes
9383 echo "$as_me: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 ac_cv_member_krb5_ticket_client=no
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9389 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9390 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9391 if test $ac_cv_member_krb5_ticket_client = yes; then
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_KRB5_TICKET_CLIENT 1
9399 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9400 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9401 { (exit 1); exit 1; }; }
9406 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9407 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9408 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 #include "confdefs.h"
9416 #ifdef F77_DUMMY_MAIN
9420 int F77_DUMMY_MAIN() { return 1; }
9425 static krb5_error ac_aggr;
9426 if (ac_aggr.text.data)
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_cv_member_krb5_error_text_data=yes
9446 echo "$as_me: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 ac_cv_member_krb5_error_text_data=no
9450 rm -f conftest.$ac_objext conftest.$ac_ext
9452 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9453 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9454 if test $ac_cv_member_krb5_error_text_data = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9462 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9463 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9464 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 cat >conftest.$ac_ext <<_ACEOF
9468 #line $LINENO "configure"
9469 #include "confdefs.h"
9472 #ifdef F77_DUMMY_MAIN
9476 int F77_DUMMY_MAIN() { return 1; }
9481 static krb5_error ac_aggr;
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_cv_member_krb5_error_e_data=yes
9502 echo "$as_me: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9504 ac_cv_member_krb5_error_e_data=no
9506 rm -f conftest.$ac_objext conftest.$ac_ext
9508 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9509 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9510 if test $ac_cv_member_krb5_error_e_data = yes; then
9512 cat >>confdefs.h <<_ACEOF
9513 #define HAVE_KRB5_ERROR_E_DATA 1
9518 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9519 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9520 { (exit 1); exit 1; }; }
9529 ## Functions, global variables
9532 echo "$as_me:$LINENO: checking for int timezone" >&5
9533 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9534 if test "${pgac_cv_var_int_timezone+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 cat >conftest.$ac_ext <<_ACEOF
9538 #line $LINENO "configure"
9539 #include "confdefs.h"
9542 #ifdef F77_DUMMY_MAIN
9546 int F77_DUMMY_MAIN() { return 1; }
9551 res = timezone / 60;
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 pgac_cv_var_int_timezone=yes
9570 echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 pgac_cv_var_int_timezone=no
9574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9576 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9577 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9578 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_INT_TIMEZONE
9585 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9586 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9587 if test "${ac_cv_func_accept_arg1+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 if test "${ac_cv_func_accept_arg2+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 if test "${ac_cv_func_accept_arg3+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9597 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9598 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9599 cat >conftest.$ac_ext <<_ACEOF
9600 #line $LINENO "configure"
9601 #include "confdefs.h"
9602 #ifdef HAVE_SYS_TYPES_H
9603 #include <sys/types.h>
9605 #ifdef HAVE_SYS_SOCKET_H
9606 #include <sys/socket.h>
9608 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9609 #ifdef F77_DUMMY_MAIN
9613 int F77_DUMMY_MAIN() { return 1; }
9623 rm -f conftest.$ac_objext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -s conftest.$ac_objext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_not_found=no; break 3
9637 echo "$as_me: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9641 rm -f conftest.$ac_objext conftest.$ac_ext
9645 if test "$ac_not_found" = yes; then
9646 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9647 echo "$as_me: error: could not determine argument types" >&2;}
9648 { (exit 1); exit 1; }; }
9650 if test "$ac_cv_func_accept_arg3" = "void"; then
9651 ac_cv_func_accept_arg3=int
9659 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9660 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9662 cat >>confdefs.h <<_ACEOF
9663 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9667 cat >>confdefs.h <<_ACEOF
9668 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9672 cat >>confdefs.h <<_ACEOF
9673 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9677 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9678 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9679 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 cat >conftest.$ac_ext <<_ACEOF
9683 #line $LINENO "configure"
9684 #include "confdefs.h"
9685 #include <sys/time.h>
9686 #ifdef F77_DUMMY_MAIN
9690 int F77_DUMMY_MAIN() { return 1; }
9696 struct timezone *tzp;
9697 gettimeofday(tp,tzp);
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704 (eval $ac_compile) 2>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 pgac_cv_func_gettimeofday_1arg=no
9716 echo "$as_me: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 pgac_cv_func_gettimeofday_1arg=yes
9720 rm -f conftest.$ac_objext conftest.$ac_ext
9722 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9723 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9724 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9726 cat >>confdefs.h <<\_ACEOF
9727 #define GETTIMEOFDAY_1ARG
9732 # SunOS doesn't handle negative byte comparisons properly with +/- return
9733 echo "$as_me:$LINENO: checking for working memcmp" >&5
9734 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9735 if test "${ac_cv_func_memcmp_working+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 if test "$cross_compiling" = yes; then
9739 ac_cv_func_memcmp_working=no
9741 cat >conftest.$ac_ext <<_ACEOF
9742 #line $LINENO "configure"
9743 #include "confdefs.h"
9745 #ifdef F77_DUMMY_MAIN
9749 int F77_DUMMY_MAIN() { return 1; }
9755 /* Some versions of memcmp are not 8-bit clean. */
9756 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9757 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9760 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9761 or more and with at least one buffer not starting on a 4-byte boundary.
9762 William Lewis provided this test program. */
9767 for (i = 0; i < 4; i++)
9771 strcpy (a, "--------01111111");
9772 strcpy (b, "--------10000000");
9773 if (memcmp (a, b, 16) >= 0)
9783 rm -f conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785 (eval $ac_link) 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_func_memcmp_working=yes
9796 echo "$as_me: program exited with status $ac_status" >&5
9797 echo "$as_me: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9800 ac_cv_func_memcmp_working=no
9802 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9805 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9806 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9807 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9822 for ac_func in cbrt fcvt getpeereid memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9825 echo "$as_me:$LINENO: checking for $ac_func" >&5
9826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9827 if eval "test \"\${$as_ac_var+set}\" = set"; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 cat >conftest.$ac_ext <<_ACEOF
9831 #line $LINENO "configure"
9832 #include "confdefs.h"
9833 /* System header to define __stub macros and hopefully few prototypes,
9834 which can conflict with char $ac_func (); below. */
9836 /* Override any gcc2 internal prototype to avoid an error. */
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9845 #ifdef F77_DUMMY_MAIN
9849 int F77_DUMMY_MAIN() { return 1; }
9854 /* The GNU C library defines this for functions which it implements
9855 to always fail with ENOSYS. Some functions are actually named
9856 something starting with __ and the normal name is an alias. */
9857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 eval "$as_ac_var=yes"
9881 echo "$as_me: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9883 eval "$as_ac_var=no"
9885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9889 if test `eval echo '${'$as_ac_var'}'` = yes; then
9890 cat >>confdefs.h <<_ACEOF
9891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9898 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9899 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9900 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9904 #line $LINENO "configure"
9905 #include "confdefs.h"
9908 #ifdef F77_DUMMY_MAIN
9912 int F77_DUMMY_MAIN() { return 1; }
9918 char *p = (char *) fdatasync;
9925 rm -f conftest.$ac_objext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9927 (eval $ac_compile) 2>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_have_decl_fdatasync=yes
9939 echo "$as_me: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 ac_cv_have_decl_fdatasync=no
9943 rm -f conftest.$ac_objext conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9946 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9947 if test $ac_cv_have_decl_fdatasync = yes; then
9949 cat >>confdefs.h <<_ACEOF
9950 #define HAVE_DECL_FDATASYNC 1
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_DECL_FDATASYNC 0
9964 # This exports HAVE_IPV6 to both C files and Makefiles
9965 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
9966 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
9967 if test "${ac_cv_func_getaddrinfo+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9971 #line $LINENO "configure"
9972 #include "confdefs.h"
9973 /* System header to define __stub macros and hopefully few prototypes,
9974 which can conflict with char getaddrinfo (); below. */
9976 /* Override any gcc2 internal prototype to avoid an error. */
9980 /* We use char because int might match the return type of a gcc2
9981 builtin and then its argument prototype would still apply. */
9982 char getaddrinfo ();
9985 #ifdef F77_DUMMY_MAIN
9989 int F77_DUMMY_MAIN() { return 1; }
9994 /* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; }; then
10019 ac_cv_func_getaddrinfo=yes
10021 echo "$as_me: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10023 ac_cv_func_getaddrinfo=no
10025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10027 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
10028 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
10029 if test $ac_cv_func_getaddrinfo = yes; then
10030 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10031 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10032 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10037 #include "confdefs.h"
10038 $ac_includes_default
10039 #include <netinet/in.h>
10041 #ifdef F77_DUMMY_MAIN
10042 # ifdef __cplusplus
10045 int F77_DUMMY_MAIN() { return 1; }
10050 if ((struct sockaddr_in6 *) 0)
10052 if (sizeof (struct sockaddr_in6))
10058 rm -f conftest.$ac_objext
10059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10060 (eval $ac_compile) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -s conftest.$ac_objext'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_type_struct_sockaddr_in6=yes
10072 echo "$as_me: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10074 ac_cv_type_struct_sockaddr_in6=no
10076 rm -f conftest.$ac_objext conftest.$ac_ext
10078 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
10079 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
10080 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10081 HAVE_IPV6="yes"; cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_IPV6 1
10091 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10092 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10093 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 cat >conftest.$ac_ext <<_ACEOF
10097 #line $LINENO "configure"
10098 #include "confdefs.h"
10099 #include <machine/vmparam.h>
10100 #include <sys/exec.h>
10102 #ifdef F77_DUMMY_MAIN
10103 # ifdef __cplusplus
10106 int F77_DUMMY_MAIN() { return 1; }
10111 PS_STRINGS->ps_nargvstr = 1;
10112 PS_STRINGS->ps_argvstr = "foo";
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 pgac_cv_var_PS_STRINGS=yes
10131 echo "$as_me: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10133 pgac_cv_var_PS_STRINGS=no
10135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10137 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10138 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10139 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10141 cat >>confdefs.h <<\_ACEOF
10142 #define HAVE_PS_STRINGS
10148 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10149 # is missing. Yes, there are machines that have only one. We may
10150 # also decide to use snprintf.c if snprintf() is present but does not
10151 # have working "long long int" support -- see below.
10153 pgac_need_repl_snprintf=no
10155 for ac_func in snprintf
10157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10158 echo "$as_me:$LINENO: checking for $ac_func" >&5
10159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10160 if eval "test \"\${$as_ac_var+set}\" = set"; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10166 /* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char $ac_func (); below. */
10168 #include <assert.h>
10169 /* Override any gcc2 internal prototype to avoid an error. */
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10178 #ifdef F77_DUMMY_MAIN
10179 # ifdef __cplusplus
10182 int F77_DUMMY_MAIN() { return 1; }
10187 /* The GNU C library defines this for functions which it implements
10188 to always fail with ENOSYS. Some functions are actually named
10189 something starting with __ and the normal name is an alias. */
10190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 eval "$as_ac_var=yes"
10214 echo "$as_me: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10216 eval "$as_ac_var=no"
10218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10222 if test `eval echo '${'$as_ac_var'}'` = yes; then
10223 cat >>confdefs.h <<_ACEOF
10224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10228 pgac_need_repl_snprintf=yes
10233 for ac_func in vsnprintf
10235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10236 echo "$as_me:$LINENO: checking for $ac_func" >&5
10237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10238 if eval "test \"\${$as_ac_var+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 cat >conftest.$ac_ext <<_ACEOF
10242 #line $LINENO "configure"
10243 #include "confdefs.h"
10244 /* System header to define __stub macros and hopefully few prototypes,
10245 which can conflict with char $ac_func (); below. */
10246 #include <assert.h>
10247 /* Override any gcc2 internal prototype to avoid an error. */
10251 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */
10256 #ifdef F77_DUMMY_MAIN
10257 # ifdef __cplusplus
10260 int F77_DUMMY_MAIN() { return 1; }
10265 /* The GNU C library defines this for functions which it implements
10266 to always fail with ENOSYS. Some functions are actually named
10267 something starting with __ and the normal name is an alias. */
10268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10278 rm -f conftest.$ac_objext conftest$ac_exeext
10279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10280 (eval $ac_link) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -s conftest$ac_exeext'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 eval "$as_ac_var=yes"
10292 echo "$as_me: failed program was:" >&5
10293 cat conftest.$ac_ext >&5
10294 eval "$as_ac_var=no"
10296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10300 if test `eval echo '${'$as_ac_var'}'` = yes; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10306 pgac_need_repl_snprintf=yes
10312 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10313 # include/c.h will provide declarations. Note this is a separate test
10314 # from whether the functions exist in the C library --- there are
10315 # systems that have the functions but don't bother to declare them :-(
10317 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10318 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10319 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 #include "confdefs.h"
10325 $ac_includes_default
10326 #ifdef F77_DUMMY_MAIN
10327 # ifdef __cplusplus
10330 int F77_DUMMY_MAIN() { return 1; }
10336 char *p = (char *) snprintf;
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345 (eval $ac_compile) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -s conftest.$ac_objext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 ac_cv_have_decl_snprintf=yes
10357 echo "$as_me: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10359 ac_cv_have_decl_snprintf=no
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10364 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10365 if test $ac_cv_have_decl_snprintf = yes; then
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_DECL_SNPRINTF 1
10373 cat >>confdefs.h <<_ACEOF
10374 #define HAVE_DECL_SNPRINTF 0
10379 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10380 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10381 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10386 #include "confdefs.h"
10387 $ac_includes_default
10388 #ifdef F77_DUMMY_MAIN
10389 # ifdef __cplusplus
10392 int F77_DUMMY_MAIN() { return 1; }
10398 char *p = (char *) vsnprintf;
10405 rm -f conftest.$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407 (eval $ac_compile) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_cv_have_decl_vsnprintf=yes
10419 echo "$as_me: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 ac_cv_have_decl_vsnprintf=no
10423 rm -f conftest.$ac_objext conftest.$ac_ext
10425 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10426 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10427 if test $ac_cv_have_decl_vsnprintf = yes; then
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_DECL_VSNPRINTF 1
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_DECL_VSNPRINTF 0
10445 # do this one the hard way in case isinf() is a macro
10446 echo "$as_me:$LINENO: checking for isinf" >&5
10447 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10448 if test "${ac_cv_func_isinf+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line $LINENO "configure"
10453 #include "confdefs.h"
10456 #ifdef F77_DUMMY_MAIN
10457 # ifdef __cplusplus
10460 int F77_DUMMY_MAIN() { return 1; }
10465 double x = 0.0; int res = isinf(x);
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 ac_cv_func_isinf=yes
10484 echo "$as_me: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10486 ac_cv_func_isinf=no
10488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10490 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10491 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10493 if test $ac_cv_func_isinf = yes ; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_ISINF 1
10500 LIBOBJS="$LIBOBJS isinf.$ac_objext"
10501 # Look for a way to implement a substitute for isinf()
10506 for ac_func in fpclass fp_class fp_class_d class
10508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10509 echo "$as_me:$LINENO: checking for $ac_func" >&5
10510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10511 if eval "test \"\${$as_ac_var+set}\" = set"; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 cat >conftest.$ac_ext <<_ACEOF
10515 #line $LINENO "configure"
10516 #include "confdefs.h"
10517 /* System header to define __stub macros and hopefully few prototypes,
10518 which can conflict with char $ac_func (); below. */
10519 #include <assert.h>
10520 /* Override any gcc2 internal prototype to avoid an error. */
10524 /* We use char because int might match the return type of a gcc2
10525 builtin and then its argument prototype would still apply. */
10529 #ifdef F77_DUMMY_MAIN
10530 # ifdef __cplusplus
10533 int F77_DUMMY_MAIN() { return 1; }
10538 /* The GNU C library defines this for functions which it implements
10539 to always fail with ENOSYS. Some functions are actually named
10540 something starting with __ and the normal name is an alias. */
10541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10551 rm -f conftest.$ac_objext conftest$ac_exeext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553 (eval $ac_link) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 eval "$as_ac_var=yes"
10565 echo "$as_me: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10567 eval "$as_ac_var=no"
10569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10573 if test `eval echo '${'$as_ac_var'}'` = yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10595 for ac_func in fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_func" >&5
10599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_var+set}\" = set"; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10604 #line $LINENO "configure"
10605 #include "confdefs.h"
10606 /* System header to define __stub macros and hopefully few prototypes,
10607 which can conflict with char $ac_func (); below. */
10608 #include <assert.h>
10609 /* Override any gcc2 internal prototype to avoid an error. */
10613 /* We use char because int might match the return type of a gcc2
10614 builtin and then its argument prototype would still apply. */
10618 #ifdef F77_DUMMY_MAIN
10619 # ifdef __cplusplus
10622 int F77_DUMMY_MAIN() { return 1; }
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 eval "$as_ac_var=yes"
10654 echo "$as_me: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 eval "$as_ac_var=no"
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10662 if test `eval echo '${'$as_ac_var'}'` = yes; then
10663 cat >>confdefs.h <<_ACEOF
10664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10668 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10674 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
10675 # We override the previous test that said fseeko/ftello didn't exist
10676 # OS tests are also done in include/c.h and port/fseeko.c
10677 case $host_os in bsdi*|netbsd*)
10678 ac_cv_func_fseeko=yes
10681 # Solaris has a very slow qsort in certain cases, so we replace it.
10683 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10686 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10687 # this hackery with HPUXMATHLIB allows us to cope.
10691 if test -r /lib/pa1.1/libm.a ; then
10692 HPUXMATHLIB="-L /lib/pa1.1 -lm"
10698 for ac_func in rint
10700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10701 echo "$as_me:$LINENO: checking for $ac_func" >&5
10702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10703 if eval "test \"\${$as_ac_var+set}\" = set"; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 cat >conftest.$ac_ext <<_ACEOF
10707 #line $LINENO "configure"
10708 #include "confdefs.h"
10709 /* System header to define __stub macros and hopefully few prototypes,
10710 which can conflict with char $ac_func (); below. */
10711 #include <assert.h>
10712 /* Override any gcc2 internal prototype to avoid an error. */
10716 /* We use char because int might match the return type of a gcc2
10717 builtin and then its argument prototype would still apply. */
10721 #ifdef F77_DUMMY_MAIN
10722 # ifdef __cplusplus
10725 int F77_DUMMY_MAIN() { return 1; }
10730 /* The GNU C library defines this for functions which it implements
10731 to always fail with ENOSYS. Some functions are actually named
10732 something starting with __ and the normal name is an alias. */
10733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745 (eval $ac_link) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -s conftest$ac_exeext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 eval "$as_ac_var=yes"
10757 echo "$as_me: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10759 eval "$as_ac_var=no"
10761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10765 if test `eval echo '${'$as_ac_var'}'` = yes; then
10766 cat >>confdefs.h <<_ACEOF
10767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10771 echo "$as_me:$LINENO: checking for rint in -lm" >&5
10772 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10773 if test "${ac_cv_lib_m_rint+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lm $HPUXMATHLIB $LIBS"
10778 cat >conftest.$ac_ext <<_ACEOF
10779 #line $LINENO "configure"
10780 #include "confdefs.h"
10782 /* Override any gcc2 internal prototype to avoid an error. */
10786 /* We use char because int might match the return type of a gcc2
10787 builtin and then its argument prototype would still apply. */
10789 #ifdef F77_DUMMY_MAIN
10790 # ifdef __cplusplus
10793 int F77_DUMMY_MAIN() { return 1; }
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_lib_m_rint=yes
10817 echo "$as_me: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 ac_cv_lib_m_rint=no
10821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10822 LIBS=$ac_check_lib_save_LIBS
10824 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10825 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10826 if test $ac_cv_lib_m_rint = yes; then
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_RINT 1
10838 if test "$with_readline" = yes; then
10839 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10840 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10841 cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10843 #include "confdefs.h"
10845 #ifdef HAVE_READLINE_READLINE_H
10846 # include <readline/readline.h>
10847 #elif defined(HAVE_READLINE_H)
10848 # include <readline.h>
10851 #ifdef F77_DUMMY_MAIN
10852 # ifdef __cplusplus
10855 int F77_DUMMY_MAIN() { return 1; }
10860 rl_completion_append_character = 'x';
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10867 (eval $ac_link) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 echo "$as_me:$LINENO: result: yes" >&5
10878 echo "${ECHO_T}yes" >&6
10880 cat >>confdefs.h <<\_ACEOF
10881 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10885 echo "$as_me: failed program was:" >&5
10886 cat conftest.$ac_ext >&5
10887 echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6
10890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10893 for ac_func in rl_completion_matches rl_filename_completion_function
10895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10896 echo "$as_me:$LINENO: checking for $ac_func" >&5
10897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10898 if eval "test \"\${$as_ac_var+set}\" = set"; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 cat >conftest.$ac_ext <<_ACEOF
10902 #line $LINENO "configure"
10903 #include "confdefs.h"
10904 /* System header to define __stub macros and hopefully few prototypes,
10905 which can conflict with char $ac_func (); below. */
10906 #include <assert.h>
10907 /* Override any gcc2 internal prototype to avoid an error. */
10911 /* We use char because int might match the return type of a gcc2
10912 builtin and then its argument prototype would still apply. */
10916 #ifdef F77_DUMMY_MAIN
10917 # ifdef __cplusplus
10920 int F77_DUMMY_MAIN() { return 1; }
10925 /* The GNU C library defines this for functions which it implements
10926 to always fail with ENOSYS. Some functions are actually named
10927 something starting with __ and the normal name is an alias. */
10928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10940 (eval $ac_link) 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 eval "$as_ac_var=yes"
10952 echo "$as_me: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 eval "$as_ac_var=no"
10956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10960 if test `eval echo '${'$as_ac_var'}'` = yes; then
10961 cat >>confdefs.h <<_ACEOF
10962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10971 echo "$as_me:$LINENO: checking for finite" >&5
10972 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10973 cat >conftest.$ac_ext <<_ACEOF
10974 #line $LINENO "configure"
10975 #include "confdefs.h"
10977 #ifdef F77_DUMMY_MAIN
10978 # ifdef __cplusplus
10981 int F77_DUMMY_MAIN() { return 1; }
10986 int dummy=finite(1.0);
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993 (eval $ac_link) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -s conftest$ac_exeext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_FINITE 1
11008 echo "$as_me:$LINENO: result: yes" >&5
11009 echo "${ECHO_T}yes" >&6
11011 echo "$as_me: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 echo "$as_me:$LINENO: result: no" >&5
11014 echo "${ECHO_T}no" >&6
11016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11018 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11019 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11022 #include "confdefs.h"
11023 #include <setjmp.h>
11024 #ifdef F77_DUMMY_MAIN
11025 # ifdef __cplusplus
11028 int F77_DUMMY_MAIN() { return 1; }
11033 sigjmp_buf x; sigsetjmp(x, 1);
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11051 cat >>confdefs.h <<\_ACEOF
11052 #define HAVE_SIGSETJMP 1
11055 echo "$as_me:$LINENO: result: yes" >&5
11056 echo "${ECHO_T}yes" >&6
11058 echo "$as_me: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11060 echo "$as_me:$LINENO: result: no" >&5
11061 echo "${ECHO_T}no" >&6
11063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11065 echo "$as_me:$LINENO: checking for syslog" >&5
11066 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11067 if test "${ac_cv_func_syslog+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11072 #include "confdefs.h"
11073 /* System header to define __stub macros and hopefully few prototypes,
11074 which can conflict with char syslog (); below. */
11075 #include <assert.h>
11076 /* Override any gcc2 internal prototype to avoid an error. */
11080 /* We use char because int might match the return type of a gcc2
11081 builtin and then its argument prototype would still apply. */
11085 #ifdef F77_DUMMY_MAIN
11086 # ifdef __cplusplus
11089 int F77_DUMMY_MAIN() { return 1; }
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined (__stub_syslog) || defined (__stub___syslog)
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_func_syslog=yes
11121 echo "$as_me: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11123 ac_cv_func_syslog=no
11125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11127 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11128 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11129 if test $ac_cv_func_syslog = yes; then
11130 if test "${ac_cv_header_syslog_h+set}" = set; then
11131 echo "$as_me:$LINENO: checking for syslog.h" >&5
11132 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11133 if test "${ac_cv_header_syslog_h+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11137 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11139 # Is the header compilable?
11140 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11141 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11143 #line $LINENO "configure"
11144 #include "confdefs.h"
11145 $ac_includes_default
11146 #include <syslog.h>
11148 rm -f conftest.$ac_objext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150 (eval $ac_compile) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 ac_header_compiler=yes
11162 echo "$as_me: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11164 ac_header_compiler=no
11166 rm -f conftest.$ac_objext conftest.$ac_ext
11167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168 echo "${ECHO_T}$ac_header_compiler" >&6
11170 # Is the header present?
11171 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11172 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11174 #line $LINENO "configure"
11175 #include "confdefs.h"
11176 #include <syslog.h>
11178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11181 egrep -v '^ *\+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } >/dev/null; then
11186 if test -s conftest.err; then
11187 ac_cpp_err=$ac_c_preproc_warn_flag
11194 if test -z "$ac_cpp_err"; then
11195 ac_header_preproc=yes
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 ac_header_preproc=no
11201 rm -f conftest.err conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11203 echo "${ECHO_T}$ac_header_preproc" >&6
11205 # So? What about this header?
11206 case $ac_header_compiler:$ac_header_preproc in
11208 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11209 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11211 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11213 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11214 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11216 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11218 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11220 echo "$as_me:$LINENO: checking for syslog.h" >&5
11221 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11222 if test "${ac_cv_header_syslog_h+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_cv_header_syslog_h=$ac_header_preproc
11227 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11228 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11231 if test $ac_cv_header_syslog_h = yes; then
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_SYSLOG 1
11242 echo "$as_me:$LINENO: checking for optreset" >&5
11243 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11244 if test "${pgac_cv_var_int_optreset+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 #include <unistd.h>
11251 #ifdef F77_DUMMY_MAIN
11252 # ifdef __cplusplus
11255 int F77_DUMMY_MAIN() { return 1; }
11260 extern int optreset; optreset = 1;
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 pgac_cv_var_int_optreset=yes
11279 echo "$as_me: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 pgac_cv_var_int_optreset=no
11283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11286 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11287 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_INT_OPTRESET 1
11297 for ac_func in strtoll strtoq
11299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11300 echo "$as_me:$LINENO: checking for $ac_func" >&5
11301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11302 if eval "test \"\${$as_ac_var+set}\" = set"; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 cat >conftest.$ac_ext <<_ACEOF
11306 #line $LINENO "configure"
11307 #include "confdefs.h"
11308 /* System header to define __stub macros and hopefully few prototypes,
11309 which can conflict with char $ac_func (); below. */
11310 #include <assert.h>
11311 /* Override any gcc2 internal prototype to avoid an error. */
11315 /* We use char because int might match the return type of a gcc2
11316 builtin and then its argument prototype would still apply. */
11320 #ifdef F77_DUMMY_MAIN
11321 # ifdef __cplusplus
11324 int F77_DUMMY_MAIN() { return 1; }
11329 /* The GNU C library defines this for functions which it implements
11330 to always fail with ENOSYS. Some functions are actually named
11331 something starting with __ and the normal name is an alias. */
11332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11344 (eval $ac_link) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -s conftest$ac_exeext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 eval "$as_ac_var=yes"
11356 echo "$as_me: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 eval "$as_ac_var=no"
11360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11364 if test `eval echo '${'$as_ac_var'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11374 for ac_func in strtoull strtouq
11376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377 echo "$as_me:$LINENO: checking for $ac_func" >&5
11378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11379 if eval "test \"\${$as_ac_var+set}\" = set"; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11383 #line $LINENO "configure"
11384 #include "confdefs.h"
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char $ac_func (); below. */
11387 #include <assert.h>
11388 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11397 #ifdef F77_DUMMY_MAIN
11398 # ifdef __cplusplus
11401 int F77_DUMMY_MAIN() { return 1; }
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11421 (eval $ac_link) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -s conftest$ac_exeext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 eval "$as_ac_var=yes"
11433 echo "$as_me: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 eval "$as_ac_var=no"
11437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11441 if test `eval echo '${'$as_ac_var'}'` = yes; then
11442 cat >>confdefs.h <<_ACEOF
11443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11450 # Check for one of atexit() or on_exit()
11452 for ac_func in atexit
11454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11455 echo "$as_me:$LINENO: checking for $ac_func" >&5
11456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11457 if eval "test \"\${$as_ac_var+set}\" = set"; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 #include "confdefs.h"
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char $ac_func (); below. */
11465 #include <assert.h>
11466 /* Override any gcc2 internal prototype to avoid an error. */
11470 /* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11475 #ifdef F77_DUMMY_MAIN
11476 # ifdef __cplusplus
11479 int F77_DUMMY_MAIN() { return 1; }
11484 /* The GNU C library defines this for functions which it implements
11485 to always fail with ENOSYS. Some functions are actually named
11486 something starting with __ and the normal name is an alias. */
11487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 eval "$as_ac_var=yes"
11511 echo "$as_me: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11513 eval "$as_ac_var=no"
11515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11519 if test `eval echo '${'$as_ac_var'}'` = yes; then
11520 cat >>confdefs.h <<_ACEOF
11521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11526 for ac_func in on_exit
11528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529 echo "$as_me:$LINENO: checking for $ac_func" >&5
11530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_var+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 cat >conftest.$ac_ext <<_ACEOF
11535 #line $LINENO "configure"
11536 #include "confdefs.h"
11537 /* System header to define __stub macros and hopefully few prototypes,
11538 which can conflict with char $ac_func (); below. */
11539 #include <assert.h>
11540 /* Override any gcc2 internal prototype to avoid an error. */
11544 /* We use char because int might match the return type of a gcc2
11545 builtin and then its argument prototype would still apply. */
11549 #ifdef F77_DUMMY_MAIN
11550 # ifdef __cplusplus
11553 int F77_DUMMY_MAIN() { return 1; }
11558 /* The GNU C library defines this for functions which it implements
11559 to always fail with ENOSYS. Some functions are actually named
11560 something starting with __ and the normal name is an alias. */
11561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573 (eval $ac_link) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 eval "$as_ac_var=yes"
11585 echo "$as_me: failed program was:" >&5
11586 cat conftest.$ac_ext >&5
11587 eval "$as_ac_var=no"
11589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11593 if test `eval echo '${'$as_ac_var'}'` = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11600 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11601 { (exit 1); exit 1; }; }
11609 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11610 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11611 if test "${ac_cv_sys_largefile_source+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 ac_cv_sys_largefile_source=no
11616 cat >conftest.$ac_ext <<_ACEOF
11617 #line $LINENO "configure"
11618 #include "confdefs.h"
11620 #ifdef F77_DUMMY_MAIN
11621 # ifdef __cplusplus
11624 int F77_DUMMY_MAIN() { return 1; }
11634 rm -f conftest.$ac_objext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636 (eval $ac_compile) 2>&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } &&
11640 { ac_try='test -s conftest.$ac_objext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11648 echo "$as_me: failed program was:" >&5
11649 cat conftest.$ac_ext >&5
11651 rm -f conftest.$ac_objext conftest.$ac_ext
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11654 #include "confdefs.h"
11655 #define _LARGEFILE_SOURCE 1
11657 #ifdef F77_DUMMY_MAIN
11658 # ifdef __cplusplus
11661 int F77_DUMMY_MAIN() { return 1; }
11671 rm -f conftest.$ac_objext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11673 (eval $ac_compile) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_sys_largefile_source=1; break
11685 echo "$as_me: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 rm -f conftest.$ac_objext conftest.$ac_ext
11692 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11693 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11694 if test "$ac_cv_sys_largefile_source" != no; then
11696 cat >>confdefs.h <<_ACEOF
11697 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11703 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11704 # in glibc 2.1.3, but that breaks too many other things.
11705 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11706 echo "$as_me:$LINENO: checking for fseeko" >&5
11707 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11708 if test "${ac_cv_func_fseeko+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11712 #line $LINENO "configure"
11713 #include "confdefs.h"
11715 #ifdef F77_DUMMY_MAIN
11716 # ifdef __cplusplus
11719 int F77_DUMMY_MAIN() { return 1; }
11724 return fseeko && fseeko (stdin, 0, 0);
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_func_fseeko=yes
11743 echo "$as_me: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 ac_cv_func_fseeko=no
11747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11749 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11750 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11751 if test $ac_cv_func_fseeko = yes; then
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_FSEEKO 1
11761 # This test makes sure that run tests work at all. Sometimes a shared
11762 # library is found by the linker, but the runtime linker can't find it.
11763 # This check should come after all modifications of compiler or linker
11764 # variables, and before any other run tests.
11765 echo "$as_me:$LINENO: checking test program" >&5
11766 echo $ECHO_N "checking test program... $ECHO_C" >&6
11767 if test "$cross_compiling" = yes; then
11768 echo "$as_me:$LINENO: result: cross-compiling" >&5
11769 echo "${ECHO_T}cross-compiling" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11772 #line $LINENO "configure"
11773 #include "confdefs.h"
11774 int main() { return 0; }
11776 rm -f conftest$ac_exeext
11777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11778 (eval $ac_link) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 echo "$as_me:$LINENO: result: ok" >&5
11788 echo "${ECHO_T}ok" >&6
11790 echo "$as_me: program exited with status $ac_status" >&5
11791 echo "$as_me: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11793 ( exit $ac_status )
11794 echo "$as_me:$LINENO: result: failed" >&5
11795 echo "${ECHO_T}failed" >&6
11796 { { echo "$as_me:$LINENO: error:
11797 *** Could not execute a simple test program. This may be a problem
11798 *** related to locating shared libraries. Check the file 'config.log'
11799 *** for the exact reason." >&5
11800 echo "$as_me: error:
11801 *** Could not execute a simple test program. This may be a problem
11802 *** related to locating shared libraries. Check the file 'config.log'
11803 *** for the exact reason." >&2;}
11804 { (exit 1); exit 1; }; }
11806 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11811 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11812 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11813 if test "${pgac_cv_type_long_int_64+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 if test "$cross_compiling" = yes; then
11817 pgac_cv_type_long_int_64=no
11818 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11819 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11821 cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11823 #include "confdefs.h"
11824 typedef long int int64;
11827 * These are globals to discourage the compiler from folding all the
11828 * arithmetic tests down to compile-time constants.
11830 int64 a = 20000001;
11831 int64 b = 40000005;
11833 int does_int64_work()
11837 if (sizeof(int64) != 8)
11838 return 0; /* definitely not the right size */
11840 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11848 exit(! does_int64_work());
11851 rm -f conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 pgac_cv_type_long_int_64=yes
11864 echo "$as_me: program exited with status $ac_status" >&5
11865 echo "$as_me: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 ( exit $ac_status )
11868 pgac_cv_type_long_int_64=no
11870 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11873 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11874 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11876 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11877 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11879 cat >>confdefs.h <<\_ACEOF
11880 #define HAVE_LONG_INT_64
11886 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11887 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11888 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11889 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 if test "$cross_compiling" = yes; then
11893 pgac_cv_type_long_long_int_64=no
11894 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11895 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11897 cat >conftest.$ac_ext <<_ACEOF
11898 #line $LINENO "configure"
11899 #include "confdefs.h"
11900 typedef long long int int64;
11903 * These are globals to discourage the compiler from folding all the
11904 * arithmetic tests down to compile-time constants.
11906 int64 a = 20000001;
11907 int64 b = 40000005;
11909 int does_int64_work()
11913 if (sizeof(int64) != 8)
11914 return 0; /* definitely not the right size */
11916 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11924 exit(! does_int64_work());
11927 rm -f conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 pgac_cv_type_long_long_int_64=yes
11940 echo "$as_me: program exited with status $ac_status" >&5
11941 echo "$as_me: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 ( exit $ac_status )
11944 pgac_cv_type_long_long_int_64=no
11946 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11949 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11950 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11952 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11953 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11955 cat >>confdefs.h <<\_ACEOF
11956 #define HAVE_LONG_LONG_INT_64
11965 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11966 cat >conftest.$ac_ext <<_ACEOF
11967 #line $LINENO "configure"
11968 #include "confdefs.h"
11970 #define INT64CONST(x) x##LL
11971 long long int foo = INT64CONST(0x1234567890123456);
11973 #ifdef F77_DUMMY_MAIN
11974 # ifdef __cplusplus
11977 int F77_DUMMY_MAIN() { return 1; }
11987 rm -f conftest.$ac_objext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11989 (eval $ac_compile) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -s conftest.$ac_objext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_LL_CONSTANTS 1
12005 echo "$as_me: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12008 rm -f conftest.$ac_objext conftest.$ac_ext
12013 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12014 if test $pgac_need_repl_snprintf = no; then
12015 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12016 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12017 if test "$cross_compiling" = yes; then
12018 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12019 echo "${ECHO_T}cannot test (not on host machine)" >&6
12020 # Force usage of our own snprintf, since we cannot test foreign snprintf
12021 pgac_need_repl_snprintf=yes
12022 INT64_FORMAT='"%lld"'
12025 cat >conftest.$ac_ext <<_ACEOF
12026 #line $LINENO "configure"
12027 #include "confdefs.h"
12029 typedef long long int int64;
12030 #define INT64_FORMAT "%lld"
12032 int64 a = 20000001;
12033 int64 b = 40000005;
12035 int does_int64_snprintf_work()
12040 if (sizeof(int64) != 8)
12041 return 0; /* doesn't look like the right size */
12044 snprintf(buf, 100, INT64_FORMAT, c);
12045 if (strcmp(buf, "800000140000005") != 0)
12046 return 0; /* either multiply or snprintf is busted */
12050 exit(! does_int64_snprintf_work());
12053 rm -f conftest$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055 (eval $ac_link) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 echo "$as_me:$LINENO: result: yes" >&5
12065 echo "${ECHO_T}yes" >&6
12066 INT64_FORMAT='"%lld"'
12069 echo "$as_me: program exited with status $ac_status" >&5
12070 echo "$as_me: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 ( exit $ac_status )
12073 echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6
12075 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12076 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12077 if test "$cross_compiling" = yes; then
12078 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12079 echo "${ECHO_T}cannot test (not on host machine)" >&6
12080 # Force usage of our own snprintf, since we cannot test foreign snprintf
12081 pgac_need_repl_snprintf=yes
12082 INT64_FORMAT='"%lld"'
12085 cat >conftest.$ac_ext <<_ACEOF
12086 #line $LINENO "configure"
12087 #include "confdefs.h"
12089 typedef long long int int64;
12090 #define INT64_FORMAT "%qd"
12092 int64 a = 20000001;
12093 int64 b = 40000005;
12095 int does_int64_snprintf_work()
12100 if (sizeof(int64) != 8)
12101 return 0; /* doesn't look like the right size */
12104 snprintf(buf, 100, INT64_FORMAT, c);
12105 if (strcmp(buf, "800000140000005") != 0)
12106 return 0; /* either multiply or snprintf is busted */
12110 exit(! does_int64_snprintf_work());
12113 rm -f conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 echo "$as_me:$LINENO: result: yes" >&5
12125 echo "${ECHO_T}yes" >&6
12126 INT64_FORMAT='"%qd"'
12129 echo "$as_me: program exited with status $ac_status" >&5
12130 echo "$as_me: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 ( exit $ac_status )
12133 echo "$as_me:$LINENO: result: no" >&5
12134 echo "${ECHO_T}no" >&6
12135 # Force usage of our own snprintf, since system snprintf is broken
12136 pgac_need_repl_snprintf=yes
12137 INT64_FORMAT='"%lld"'
12140 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12143 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12146 # here if we previously decided we needed to use our own snprintf
12147 INT64_FORMAT='"%lld"'
12150 # Here if we are not using 'long long int' at all
12151 INT64_FORMAT='"%ld"'
12155 cat >>confdefs.h <<_ACEOF
12156 #define INT64_FORMAT $INT64_FORMAT
12160 if test $pgac_need_repl_snprintf = yes; then
12161 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12165 echo "$as_me:$LINENO: checking for unsigned long" >&5
12166 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12167 if test "${ac_cv_type_unsigned_long+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 #line $LINENO "configure"
12172 #include "confdefs.h"
12173 $ac_includes_default
12174 #ifdef F77_DUMMY_MAIN
12175 # ifdef __cplusplus
12178 int F77_DUMMY_MAIN() { return 1; }
12183 if ((unsigned long *) 0)
12185 if (sizeof (unsigned long))
12191 rm -f conftest.$ac_objext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } &&
12197 { ac_try='test -s conftest.$ac_objext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_cv_type_unsigned_long=yes
12205 echo "$as_me: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12207 ac_cv_type_unsigned_long=no
12209 rm -f conftest.$ac_objext conftest.$ac_ext
12211 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12212 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12214 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12215 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12216 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 if test "$ac_cv_type_unsigned_long" = yes; then
12220 # The cast to unsigned long works around a bug in the HP C Compiler
12221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12223 # This bug is HP SR number 8606223364.
12224 if test "$cross_compiling" = yes; then
12225 # Depending upon the size, compute the lo and hi bounds.
12226 cat >conftest.$ac_ext <<_ACEOF
12227 #line $LINENO "configure"
12228 #include "confdefs.h"
12229 $ac_includes_default
12230 #ifdef F77_DUMMY_MAIN
12231 # ifdef __cplusplus
12234 int F77_DUMMY_MAIN() { return 1; }
12239 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12246 rm -f conftest.$ac_objext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248 (eval $ac_compile) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
12252 { ac_try='test -s conftest.$ac_objext'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; }; then
12260 cat >conftest.$ac_ext <<_ACEOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12263 $ac_includes_default
12264 #ifdef F77_DUMMY_MAIN
12265 # ifdef __cplusplus
12268 int F77_DUMMY_MAIN() { return 1; }
12273 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12280 rm -f conftest.$ac_objext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12282 (eval $ac_compile) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_hi=$ac_mid; break
12294 echo "$as_me: failed program was:" >&5
12295 cat conftest.$ac_ext >&5
12296 ac_lo=`expr $ac_mid + 1`
12297 if test $ac_lo -le $ac_mid; then
12301 ac_mid=`expr 2 '*' $ac_mid + 1`
12303 rm -f conftest.$ac_objext conftest.$ac_ext
12306 echo "$as_me: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12308 cat >conftest.$ac_ext <<_ACEOF
12309 #line $LINENO "configure"
12310 #include "confdefs.h"
12311 $ac_includes_default
12312 #ifdef F77_DUMMY_MAIN
12313 # ifdef __cplusplus
12316 int F77_DUMMY_MAIN() { return 1; }
12321 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12328 rm -f conftest.$ac_objext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12344 #include "confdefs.h"
12345 $ac_includes_default
12346 #ifdef F77_DUMMY_MAIN
12347 # ifdef __cplusplus
12350 int F77_DUMMY_MAIN() { return 1; }
12355 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_lo=$ac_mid; break
12376 echo "$as_me: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12378 ac_hi=`expr '(' $ac_mid ')' - 1`
12379 if test $ac_mid -le $ac_hi; then
12383 ac_mid=`expr 2 '*' $ac_mid`
12385 rm -f conftest.$ac_objext conftest.$ac_ext
12388 echo "$as_me: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12392 rm -f conftest.$ac_objext conftest.$ac_ext
12394 rm -f conftest.$ac_objext conftest.$ac_ext
12395 # Binary search between lo and hi bounds.
12396 while test "x$ac_lo" != "x$ac_hi"; do
12397 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12398 cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12400 #include "confdefs.h"
12401 $ac_includes_default
12402 #ifdef F77_DUMMY_MAIN
12403 # ifdef __cplusplus
12406 int F77_DUMMY_MAIN() { return 1; }
12411 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -s conftest.$ac_objext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12432 echo "$as_me: failed program was:" >&5
12433 cat conftest.$ac_ext >&5
12434 ac_lo=`expr '(' $ac_mid ')' + 1`
12436 rm -f conftest.$ac_objext conftest.$ac_ext
12439 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12440 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12441 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12442 { (exit 1); exit 1; }; } ;;
12445 if test "$cross_compiling" = yes; then
12446 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12447 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12448 { (exit 1); exit 1; }; }
12450 cat >conftest.$ac_ext <<_ACEOF
12451 #line $LINENO "configure"
12452 #include "confdefs.h"
12453 $ac_includes_default
12454 long longval () { return (long) (sizeof (unsigned long)); }
12455 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12457 #include <stdlib.h>
12458 #ifdef F77_DUMMY_MAIN
12459 # ifdef __cplusplus
12462 int F77_DUMMY_MAIN() { return 1; }
12468 FILE *f = fopen ("conftest.val", "w");
12471 if (((long) (sizeof (unsigned long))) < 0)
12473 long i = longval ();
12474 if (i != ((long) (sizeof (unsigned long))))
12476 fprintf (f, "%ld\n", i);
12480 unsigned long i = ulongval ();
12481 if (i != ((long) (sizeof (unsigned long))))
12483 fprintf (f, "%lu\n", i);
12485 exit (ferror (f) || fclose (f) != 0);
12491 rm -f conftest$ac_exeext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493 (eval $ac_link) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12504 echo "$as_me: program exited with status $ac_status" >&5
12505 echo "$as_me: failed program was:" >&5
12506 cat conftest.$ac_ext >&5
12507 ( exit $ac_status )
12508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12509 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12510 { (exit 1); exit 1; }; }
12512 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12517 ac_cv_sizeof_unsigned_long=0
12520 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12521 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12522 cat >>confdefs.h <<_ACEOF
12523 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12528 cat >>confdefs.h <<_ACEOF
12529 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12533 # Determine memory alignment requirements for the basic C data types.
12535 echo "$as_me:$LINENO: checking for short" >&5
12536 echo $ECHO_N "checking for short... $ECHO_C" >&6
12537 if test "${ac_cv_type_short+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 cat >conftest.$ac_ext <<_ACEOF
12541 #line $LINENO "configure"
12542 #include "confdefs.h"
12543 $ac_includes_default
12544 #ifdef F77_DUMMY_MAIN
12545 # ifdef __cplusplus
12548 int F77_DUMMY_MAIN() { return 1; }
12555 if (sizeof (short))
12561 rm -f conftest.$ac_objext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 ac_cv_type_short=yes
12575 echo "$as_me: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 ac_cv_type_short=no
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12581 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12582 echo "${ECHO_T}$ac_cv_type_short" >&6
12584 echo "$as_me:$LINENO: checking alignment of short" >&5
12585 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12586 if test "${pgac_cv_alignof_short+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 if test "$ac_cv_type_short" = yes; then
12590 if test "$cross_compiling" = yes; then
12591 # Depending upon the size, compute the lo and hi bounds.
12592 cat >conftest.$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12594 #include "confdefs.h"
12595 $ac_includes_default
12596 struct { char filler; short field; } pgac_struct;
12597 #ifdef F77_DUMMY_MAIN
12598 # ifdef __cplusplus
12601 int F77_DUMMY_MAIN() { return 1; }
12606 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12613 rm -f conftest.$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12627 cat >conftest.$ac_ext <<_ACEOF
12628 #line $LINENO "configure"
12629 #include "confdefs.h"
12630 $ac_includes_default
12631 struct { char filler; short field; } pgac_struct;
12632 #ifdef F77_DUMMY_MAIN
12633 # ifdef __cplusplus
12636 int F77_DUMMY_MAIN() { return 1; }
12641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12648 rm -f conftest.$ac_objext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12650 (eval $ac_compile) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_hi=$ac_mid; break
12662 echo "$as_me: failed program was:" >&5
12663 cat conftest.$ac_ext >&5
12664 ac_lo=`expr $ac_mid + 1`
12665 if test $ac_lo -le $ac_mid; then
12669 ac_mid=`expr 2 '*' $ac_mid + 1`
12671 rm -f conftest.$ac_objext conftest.$ac_ext
12674 echo "$as_me: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12676 cat >conftest.$ac_ext <<_ACEOF
12677 #line $LINENO "configure"
12678 #include "confdefs.h"
12679 $ac_includes_default
12680 struct { char filler; short field; } pgac_struct;
12681 #ifdef F77_DUMMY_MAIN
12682 # ifdef __cplusplus
12685 int F77_DUMMY_MAIN() { return 1; }
12690 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12697 rm -f conftest.$ac_objext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12713 #include "confdefs.h"
12714 $ac_includes_default
12715 struct { char filler; short field; } pgac_struct;
12716 #ifdef F77_DUMMY_MAIN
12717 # ifdef __cplusplus
12720 int F77_DUMMY_MAIN() { return 1; }
12725 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_lo=$ac_mid; break
12746 echo "$as_me: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 ac_hi=`expr '(' $ac_mid ')' - 1`
12749 if test $ac_mid -le $ac_hi; then
12753 ac_mid=`expr 2 '*' $ac_mid`
12755 rm -f conftest.$ac_objext conftest.$ac_ext
12758 echo "$as_me: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12762 rm -f conftest.$ac_objext conftest.$ac_ext
12764 rm -f conftest.$ac_objext conftest.$ac_ext
12765 # Binary search between lo and hi bounds.
12766 while test "x$ac_lo" != "x$ac_hi"; do
12767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12768 cat >conftest.$ac_ext <<_ACEOF
12769 #line $LINENO "configure"
12770 #include "confdefs.h"
12771 $ac_includes_default
12772 struct { char filler; short field; } pgac_struct;
12773 #ifdef F77_DUMMY_MAIN
12774 # ifdef __cplusplus
12777 int F77_DUMMY_MAIN() { return 1; }
12782 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12789 rm -f conftest.$ac_objext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -s conftest.$ac_objext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12803 echo "$as_me: failed program was:" >&5
12804 cat conftest.$ac_ext >&5
12805 ac_lo=`expr '(' $ac_mid ')' + 1`
12807 rm -f conftest.$ac_objext conftest.$ac_ext
12810 ?*) pgac_cv_alignof_short=$ac_lo;;
12811 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12812 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12813 { (exit 1); exit 1; }; } ;;
12816 if test "$cross_compiling" = yes; then
12817 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12818 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12819 { (exit 1); exit 1; }; }
12821 cat >conftest.$ac_ext <<_ACEOF
12822 #line $LINENO "configure"
12823 #include "confdefs.h"
12824 $ac_includes_default
12825 struct { char filler; short field; } pgac_struct;
12826 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12827 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12829 #include <stdlib.h>
12830 #ifdef F77_DUMMY_MAIN
12831 # ifdef __cplusplus
12834 int F77_DUMMY_MAIN() { return 1; }
12840 FILE *f = fopen ("conftest.val", "w");
12843 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12845 long i = longval ();
12846 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12848 fprintf (f, "%ld\n", i);
12852 unsigned long i = ulongval ();
12853 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12855 fprintf (f, "%lu\n", i);
12857 exit (ferror (f) || fclose (f) != 0);
12863 rm -f conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865 (eval $ac_link) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12874 pgac_cv_alignof_short=`cat conftest.val`
12876 echo "$as_me: program exited with status $ac_status" >&5
12877 echo "$as_me: failed program was:" >&5
12878 cat conftest.$ac_ext >&5
12879 ( exit $ac_status )
12880 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12881 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12882 { (exit 1); exit 1; }; }
12884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12889 pgac_cv_alignof_short=0
12892 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12893 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12894 cat >>confdefs.h <<_ACEOF
12895 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12899 echo "$as_me:$LINENO: checking for int" >&5
12900 echo $ECHO_N "checking for int... $ECHO_C" >&6
12901 if test "${ac_cv_type_int+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 cat >conftest.$ac_ext <<_ACEOF
12905 #line $LINENO "configure"
12906 #include "confdefs.h"
12907 $ac_includes_default
12908 #ifdef F77_DUMMY_MAIN
12909 # ifdef __cplusplus
12912 int F77_DUMMY_MAIN() { return 1; }
12925 rm -f conftest.$ac_objext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -s conftest.$ac_objext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12939 echo "$as_me: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12943 rm -f conftest.$ac_objext conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12946 echo "${ECHO_T}$ac_cv_type_int" >&6
12948 echo "$as_me:$LINENO: checking alignment of int" >&5
12949 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12950 if test "${pgac_cv_alignof_int+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 if test "$ac_cv_type_int" = yes; then
12954 if test "$cross_compiling" = yes; then
12955 # Depending upon the size, compute the lo and hi bounds.
12956 cat >conftest.$ac_ext <<_ACEOF
12957 #line $LINENO "configure"
12958 #include "confdefs.h"
12959 $ac_includes_default
12960 struct { char filler; int field; } pgac_struct;
12961 #ifdef F77_DUMMY_MAIN
12962 # ifdef __cplusplus
12965 int F77_DUMMY_MAIN() { return 1; }
12970 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12977 rm -f conftest.$ac_objext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12979 (eval $ac_compile) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12991 cat >conftest.$ac_ext <<_ACEOF
12992 #line $LINENO "configure"
12993 #include "confdefs.h"
12994 $ac_includes_default
12995 struct { char filler; int field; } pgac_struct;
12996 #ifdef F77_DUMMY_MAIN
12997 # ifdef __cplusplus
13000 int F77_DUMMY_MAIN() { return 1; }
13005 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13012 rm -f conftest.$ac_objext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13014 (eval $ac_compile) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try='test -s conftest.$ac_objext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_hi=$ac_mid; break
13026 echo "$as_me: failed program was:" >&5
13027 cat conftest.$ac_ext >&5
13028 ac_lo=`expr $ac_mid + 1`
13029 if test $ac_lo -le $ac_mid; then
13033 ac_mid=`expr 2 '*' $ac_mid + 1`
13035 rm -f conftest.$ac_objext conftest.$ac_ext
13038 echo "$as_me: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13040 cat >conftest.$ac_ext <<_ACEOF
13041 #line $LINENO "configure"
13042 #include "confdefs.h"
13043 $ac_includes_default
13044 struct { char filler; int field; } pgac_struct;
13045 #ifdef F77_DUMMY_MAIN
13046 # ifdef __cplusplus
13049 int F77_DUMMY_MAIN() { return 1; }
13054 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13061 rm -f conftest.$ac_objext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063 (eval $ac_compile) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -s conftest.$ac_objext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13075 cat >conftest.$ac_ext <<_ACEOF
13076 #line $LINENO "configure"
13077 #include "confdefs.h"
13078 $ac_includes_default
13079 struct { char filler; int field; } pgac_struct;
13080 #ifdef F77_DUMMY_MAIN
13081 # ifdef __cplusplus
13084 int F77_DUMMY_MAIN() { return 1; }
13089 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13096 rm -f conftest.$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -s conftest.$ac_objext'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 ac_lo=$ac_mid; break
13110 echo "$as_me: failed program was:" >&5
13111 cat conftest.$ac_ext >&5
13112 ac_hi=`expr '(' $ac_mid ')' - 1`
13113 if test $ac_mid -le $ac_hi; then
13117 ac_mid=`expr 2 '*' $ac_mid`
13119 rm -f conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me: failed program was:" >&5
13123 cat conftest.$ac_ext >&5
13126 rm -f conftest.$ac_objext conftest.$ac_ext
13128 rm -f conftest.$ac_objext conftest.$ac_ext
13129 # Binary search between lo and hi bounds.
13130 while test "x$ac_lo" != "x$ac_hi"; do
13131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13132 cat >conftest.$ac_ext <<_ACEOF
13133 #line $LINENO "configure"
13134 #include "confdefs.h"
13135 $ac_includes_default
13136 struct { char filler; int field; } pgac_struct;
13137 #ifdef F77_DUMMY_MAIN
13138 # ifdef __cplusplus
13141 int F77_DUMMY_MAIN() { return 1; }
13146 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13153 rm -f conftest.$ac_objext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155 (eval $ac_compile) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13167 echo "$as_me: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13169 ac_lo=`expr '(' $ac_mid ')' + 1`
13171 rm -f conftest.$ac_objext conftest.$ac_ext
13174 ?*) pgac_cv_alignof_int=$ac_lo;;
13175 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13176 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13177 { (exit 1); exit 1; }; } ;;
13180 if test "$cross_compiling" = yes; then
13181 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13182 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13183 { (exit 1); exit 1; }; }
13185 cat >conftest.$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13188 $ac_includes_default
13189 struct { char filler; int field; } pgac_struct;
13190 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13191 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13193 #include <stdlib.h>
13194 #ifdef F77_DUMMY_MAIN
13195 # ifdef __cplusplus
13198 int F77_DUMMY_MAIN() { return 1; }
13204 FILE *f = fopen ("conftest.val", "w");
13207 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13209 long i = longval ();
13210 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13212 fprintf (f, "%ld\n", i);
13216 unsigned long i = ulongval ();
13217 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13219 fprintf (f, "%lu\n", i);
13221 exit (ferror (f) || fclose (f) != 0);
13227 rm -f conftest$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 pgac_cv_alignof_int=`cat conftest.val`
13240 echo "$as_me: program exited with status $ac_status" >&5
13241 echo "$as_me: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13243 ( exit $ac_status )
13244 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13245 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13246 { (exit 1); exit 1; }; }
13248 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13253 pgac_cv_alignof_int=0
13256 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13257 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13258 cat >>confdefs.h <<_ACEOF
13259 #define ALIGNOF_INT $pgac_cv_alignof_int
13263 echo "$as_me:$LINENO: checking for long" >&5
13264 echo $ECHO_N "checking for long... $ECHO_C" >&6
13265 if test "${ac_cv_type_long+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13270 #include "confdefs.h"
13271 $ac_includes_default
13272 #ifdef F77_DUMMY_MAIN
13273 # ifdef __cplusplus
13276 int F77_DUMMY_MAIN() { return 1; }
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -s conftest.$ac_objext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_type_long=yes
13303 echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13309 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13310 echo "${ECHO_T}$ac_cv_type_long" >&6
13312 echo "$as_me:$LINENO: checking alignment of long" >&5
13313 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13314 if test "${pgac_cv_alignof_long+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 if test "$ac_cv_type_long" = yes; then
13318 if test "$cross_compiling" = yes; then
13319 # Depending upon the size, compute the lo and hi bounds.
13320 cat >conftest.$ac_ext <<_ACEOF
13321 #line $LINENO "configure"
13322 #include "confdefs.h"
13323 $ac_includes_default
13324 struct { char filler; long field; } pgac_struct;
13325 #ifdef F77_DUMMY_MAIN
13326 # ifdef __cplusplus
13329 int F77_DUMMY_MAIN() { return 1; }
13334 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13341 rm -f conftest.$ac_objext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343 (eval $ac_compile) 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -s conftest.$ac_objext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13355 cat >conftest.$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 #include "confdefs.h"
13358 $ac_includes_default
13359 struct { char filler; long field; } pgac_struct;
13360 #ifdef F77_DUMMY_MAIN
13361 # ifdef __cplusplus
13364 int F77_DUMMY_MAIN() { return 1; }
13369 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13376 rm -f conftest.$ac_objext
13377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13378 (eval $ac_compile) 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
13382 { ac_try='test -s conftest.$ac_objext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_hi=$ac_mid; break
13390 echo "$as_me: failed program was:" >&5
13391 cat conftest.$ac_ext >&5
13392 ac_lo=`expr $ac_mid + 1`
13393 if test $ac_lo -le $ac_mid; then
13397 ac_mid=`expr 2 '*' $ac_mid + 1`
13399 rm -f conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 #include "confdefs.h"
13407 $ac_includes_default
13408 struct { char filler; long field; } pgac_struct;
13409 #ifdef F77_DUMMY_MAIN
13410 # ifdef __cplusplus
13413 int F77_DUMMY_MAIN() { return 1; }
13418 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13425 rm -f conftest.$ac_objext
13426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -s conftest.$ac_objext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13439 cat >conftest.$ac_ext <<_ACEOF
13440 #line $LINENO "configure"
13441 #include "confdefs.h"
13442 $ac_includes_default
13443 struct { char filler; long field; } pgac_struct;
13444 #ifdef F77_DUMMY_MAIN
13445 # ifdef __cplusplus
13448 int F77_DUMMY_MAIN() { return 1; }
13453 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13460 rm -f conftest.$ac_objext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13462 (eval $ac_compile) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest.$ac_objext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 ac_lo=$ac_mid; break
13474 echo "$as_me: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13476 ac_hi=`expr '(' $ac_mid ')' - 1`
13477 if test $ac_mid -le $ac_hi; then
13481 ac_mid=`expr 2 '*' $ac_mid`
13483 rm -f conftest.$ac_objext conftest.$ac_ext
13486 echo "$as_me: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13492 rm -f conftest.$ac_objext conftest.$ac_ext
13493 # Binary search between lo and hi bounds.
13494 while test "x$ac_lo" != "x$ac_hi"; do
13495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13496 cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 #include "confdefs.h"
13499 $ac_includes_default
13500 struct { char filler; long field; } pgac_struct;
13501 #ifdef F77_DUMMY_MAIN
13502 # ifdef __cplusplus
13505 int F77_DUMMY_MAIN() { return 1; }
13510 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13517 rm -f conftest.$ac_objext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519 (eval $ac_compile) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -s conftest.$ac_objext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13531 echo "$as_me: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 ac_lo=`expr '(' $ac_mid ')' + 1`
13535 rm -f conftest.$ac_objext conftest.$ac_ext
13538 ?*) pgac_cv_alignof_long=$ac_lo;;
13539 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13540 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13541 { (exit 1); exit 1; }; } ;;
13544 if test "$cross_compiling" = yes; then
13545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13546 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13547 { (exit 1); exit 1; }; }
13549 cat >conftest.$ac_ext <<_ACEOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13552 $ac_includes_default
13553 struct { char filler; long field; } pgac_struct;
13554 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13555 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13557 #include <stdlib.h>
13558 #ifdef F77_DUMMY_MAIN
13559 # ifdef __cplusplus
13562 int F77_DUMMY_MAIN() { return 1; }
13568 FILE *f = fopen ("conftest.val", "w");
13571 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13573 long i = longval ();
13574 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13576 fprintf (f, "%ld\n", i);
13580 unsigned long i = ulongval ();
13581 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13583 fprintf (f, "%lu\n", i);
13585 exit (ferror (f) || fclose (f) != 0);
13591 rm -f conftest$ac_exeext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13593 (eval $ac_link) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
13602 pgac_cv_alignof_long=`cat conftest.val`
13604 echo "$as_me: program exited with status $ac_status" >&5
13605 echo "$as_me: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13607 ( exit $ac_status )
13608 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13609 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13610 { (exit 1); exit 1; }; }
13612 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13617 pgac_cv_alignof_long=0
13620 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13621 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13622 cat >>confdefs.h <<_ACEOF
13623 #define ALIGNOF_LONG $pgac_cv_alignof_long
13627 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13628 echo "$as_me:$LINENO: checking for long long int" >&5
13629 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13630 if test "${ac_cv_type_long_long_int+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 cat >conftest.$ac_ext <<_ACEOF
13634 #line $LINENO "configure"
13635 #include "confdefs.h"
13636 $ac_includes_default
13637 #ifdef F77_DUMMY_MAIN
13638 # ifdef __cplusplus
13641 int F77_DUMMY_MAIN() { return 1; }
13646 if ((long long int *) 0)
13648 if (sizeof (long long int))
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_cv_type_long_long_int=yes
13668 echo "$as_me: failed program was:" >&5
13669 cat conftest.$ac_ext >&5
13670 ac_cv_type_long_long_int=no
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13674 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13675 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13677 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13678 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13679 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 if test "$ac_cv_type_long_long_int" = yes; then
13683 if test "$cross_compiling" = yes; then
13684 # Depending upon the size, compute the lo and hi bounds.
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 $ac_includes_default
13689 struct { char filler; long long int field; } pgac_struct;
13690 #ifdef F77_DUMMY_MAIN
13691 # ifdef __cplusplus
13694 int F77_DUMMY_MAIN() { return 1; }
13699 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -s conftest.$ac_objext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13720 cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 #include "confdefs.h"
13723 $ac_includes_default
13724 struct { char filler; long long int field; } pgac_struct;
13725 #ifdef F77_DUMMY_MAIN
13726 # ifdef __cplusplus
13729 int F77_DUMMY_MAIN() { return 1; }
13734 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_hi=$ac_mid; break
13755 echo "$as_me: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 ac_lo=`expr $ac_mid + 1`
13758 if test $ac_lo -le $ac_mid; then
13762 ac_mid=`expr 2 '*' $ac_mid + 1`
13764 rm -f conftest.$ac_objext conftest.$ac_ext
13767 echo "$as_me: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13769 cat >conftest.$ac_ext <<_ACEOF
13770 #line $LINENO "configure"
13771 #include "confdefs.h"
13772 $ac_includes_default
13773 struct { char filler; long long int field; } pgac_struct;
13774 #ifdef F77_DUMMY_MAIN
13775 # ifdef __cplusplus
13778 int F77_DUMMY_MAIN() { return 1; }
13783 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13790 rm -f conftest.$ac_objext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13792 (eval $ac_compile) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13804 cat >conftest.$ac_ext <<_ACEOF
13805 #line $LINENO "configure"
13806 #include "confdefs.h"
13807 $ac_includes_default
13808 struct { char filler; long long int field; } pgac_struct;
13809 #ifdef F77_DUMMY_MAIN
13810 # ifdef __cplusplus
13813 int F77_DUMMY_MAIN() { return 1; }
13818 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13825 rm -f conftest.$ac_objext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13827 (eval $ac_compile) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
13831 { ac_try='test -s conftest.$ac_objext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_lo=$ac_mid; break
13839 echo "$as_me: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13841 ac_hi=`expr '(' $ac_mid ')' - 1`
13842 if test $ac_mid -le $ac_hi; then
13846 ac_mid=`expr 2 '*' $ac_mid`
13848 rm -f conftest.$ac_objext conftest.$ac_ext
13851 echo "$as_me: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13855 rm -f conftest.$ac_objext conftest.$ac_ext
13857 rm -f conftest.$ac_objext conftest.$ac_ext
13858 # Binary search between lo and hi bounds.
13859 while test "x$ac_lo" != "x$ac_hi"; do
13860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13861 cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13864 $ac_includes_default
13865 struct { char filler; long long int field; } pgac_struct;
13866 #ifdef F77_DUMMY_MAIN
13867 # ifdef __cplusplus
13870 int F77_DUMMY_MAIN() { return 1; }
13875 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13896 echo "$as_me: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 ac_lo=`expr '(' $ac_mid ')' + 1`
13900 rm -f conftest.$ac_objext conftest.$ac_ext
13903 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13904 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13905 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13906 { (exit 1); exit 1; }; } ;;
13909 if test "$cross_compiling" = yes; then
13910 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13911 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13912 { (exit 1); exit 1; }; }
13914 cat >conftest.$ac_ext <<_ACEOF
13915 #line $LINENO "configure"
13916 #include "confdefs.h"
13917 $ac_includes_default
13918 struct { char filler; long long int field; } pgac_struct;
13919 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13920 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13922 #include <stdlib.h>
13923 #ifdef F77_DUMMY_MAIN
13924 # ifdef __cplusplus
13927 int F77_DUMMY_MAIN() { return 1; }
13933 FILE *f = fopen ("conftest.val", "w");
13936 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13938 long i = longval ();
13939 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13941 fprintf (f, "%ld\n", i);
13945 unsigned long i = ulongval ();
13946 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13948 fprintf (f, "%lu\n", i);
13950 exit (ferror (f) || fclose (f) != 0);
13956 rm -f conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 pgac_cv_alignof_long_long_int=`cat conftest.val`
13969 echo "$as_me: program exited with status $ac_status" >&5
13970 echo "$as_me: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13972 ( exit $ac_status )
13973 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13974 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13975 { (exit 1); exit 1; }; }
13977 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13982 pgac_cv_alignof_long_long_int=0
13985 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13986 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13987 cat >>confdefs.h <<_ACEOF
13988 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13993 echo "$as_me:$LINENO: checking for double" >&5
13994 echo $ECHO_N "checking for double... $ECHO_C" >&6
13995 if test "${ac_cv_type_double+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 cat >conftest.$ac_ext <<_ACEOF
13999 #line $LINENO "configure"
14000 #include "confdefs.h"
14001 $ac_includes_default
14002 #ifdef F77_DUMMY_MAIN
14003 # ifdef __cplusplus
14006 int F77_DUMMY_MAIN() { return 1; }
14013 if (sizeof (double))
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_cv_type_double=yes
14033 echo "$as_me: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14035 ac_cv_type_double=no
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14039 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14040 echo "${ECHO_T}$ac_cv_type_double" >&6
14042 echo "$as_me:$LINENO: checking alignment of double" >&5
14043 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14044 if test "${pgac_cv_alignof_double+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 if test "$ac_cv_type_double" = yes; then
14048 if test "$cross_compiling" = yes; then
14049 # Depending upon the size, compute the lo and hi bounds.
14050 cat >conftest.$ac_ext <<_ACEOF
14051 #line $LINENO "configure"
14052 #include "confdefs.h"
14053 $ac_includes_default
14054 struct { char filler; double field; } pgac_struct;
14055 #ifdef F77_DUMMY_MAIN
14056 # ifdef __cplusplus
14059 int F77_DUMMY_MAIN() { return 1; }
14064 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14071 rm -f conftest.$ac_objext
14072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14085 cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 #include "confdefs.h"
14088 $ac_includes_default
14089 struct { char filler; double field; } pgac_struct;
14090 #ifdef F77_DUMMY_MAIN
14091 # ifdef __cplusplus
14094 int F77_DUMMY_MAIN() { return 1; }
14099 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14106 rm -f conftest.$ac_objext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -s conftest.$ac_objext'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }; then
14118 ac_hi=$ac_mid; break
14120 echo "$as_me: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14122 ac_lo=`expr $ac_mid + 1`
14123 if test $ac_lo -le $ac_mid; then
14127 ac_mid=`expr 2 '*' $ac_mid + 1`
14129 rm -f conftest.$ac_objext conftest.$ac_ext
14132 echo "$as_me: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 cat >conftest.$ac_ext <<_ACEOF
14135 #line $LINENO "configure"
14136 #include "confdefs.h"
14137 $ac_includes_default
14138 struct { char filler; double field; } pgac_struct;
14139 #ifdef F77_DUMMY_MAIN
14140 # ifdef __cplusplus
14143 int F77_DUMMY_MAIN() { return 1; }
14148 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157 (eval $ac_compile) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -s conftest.$ac_objext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14169 cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14171 #include "confdefs.h"
14172 $ac_includes_default
14173 struct { char filler; double field; } pgac_struct;
14174 #ifdef F77_DUMMY_MAIN
14175 # ifdef __cplusplus
14178 int F77_DUMMY_MAIN() { return 1; }
14183 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -s conftest.$ac_objext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 ac_lo=$ac_mid; break
14204 echo "$as_me: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14206 ac_hi=`expr '(' $ac_mid ')' - 1`
14207 if test $ac_mid -le $ac_hi; then
14211 ac_mid=`expr 2 '*' $ac_mid`
14213 rm -f conftest.$ac_objext conftest.$ac_ext
14216 echo "$as_me: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14220 rm -f conftest.$ac_objext conftest.$ac_ext
14222 rm -f conftest.$ac_objext conftest.$ac_ext
14223 # Binary search between lo and hi bounds.
14224 while test "x$ac_lo" != "x$ac_hi"; do
14225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14226 cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14228 #include "confdefs.h"
14229 $ac_includes_default
14230 struct { char filler; double field; } pgac_struct;
14231 #ifdef F77_DUMMY_MAIN
14232 # ifdef __cplusplus
14235 int F77_DUMMY_MAIN() { return 1; }
14240 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14247 rm -f conftest.$ac_objext
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14261 echo "$as_me: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 ac_lo=`expr '(' $ac_mid ')' + 1`
14265 rm -f conftest.$ac_objext conftest.$ac_ext
14268 ?*) pgac_cv_alignof_double=$ac_lo;;
14269 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14270 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14271 { (exit 1); exit 1; }; } ;;
14274 if test "$cross_compiling" = yes; then
14275 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14276 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14277 { (exit 1); exit 1; }; }
14279 cat >conftest.$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14281 #include "confdefs.h"
14282 $ac_includes_default
14283 struct { char filler; double field; } pgac_struct;
14284 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14285 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14287 #include <stdlib.h>
14288 #ifdef F77_DUMMY_MAIN
14289 # ifdef __cplusplus
14292 int F77_DUMMY_MAIN() { return 1; }
14298 FILE *f = fopen ("conftest.val", "w");
14301 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14303 long i = longval ();
14304 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14306 fprintf (f, "%ld\n", i);
14310 unsigned long i = ulongval ();
14311 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14313 fprintf (f, "%lu\n", i);
14315 exit (ferror (f) || fclose (f) != 0);
14321 rm -f conftest$ac_exeext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14323 (eval $ac_link) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 pgac_cv_alignof_double=`cat conftest.val`
14334 echo "$as_me: program exited with status $ac_status" >&5
14335 echo "$as_me: failed program was:" >&5
14336 cat conftest.$ac_ext >&5
14337 ( exit $ac_status )
14338 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14339 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14340 { (exit 1); exit 1; }; }
14342 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14347 pgac_cv_alignof_double=0
14350 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14351 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14352 cat >>confdefs.h <<_ACEOF
14353 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14358 # Compute maximum alignment of any basic type.
14359 # We assume long's alignment is at least as strong as char, short, or int;
14360 # but we must check long long (if it exists) and double.
14362 MAX_ALIGNOF=$pgac_cv_alignof_long
14363 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14364 MAX_ALIGNOF=$pgac_cv_alignof_double
14366 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14367 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14370 cat >>confdefs.h <<_ACEOF
14371 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14376 # Some platforms predefine the types int8, int16, etc. Only check
14377 # a (hopefully) representative subset.
14378 echo "$as_me:$LINENO: checking for int8" >&5
14379 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14380 if test "${ac_cv_type_int8+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14385 #include "confdefs.h"
14387 #ifdef HAVE_SUPPORTDEFS_H
14388 #include <SupportDefs.h>
14391 #ifdef F77_DUMMY_MAIN
14392 # ifdef __cplusplus
14395 int F77_DUMMY_MAIN() { return 1; }
14408 rm -f conftest.$ac_objext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14410 (eval $ac_compile) 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -s conftest.$ac_objext'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_type_int8=yes
14422 echo "$as_me: failed program was:" >&5
14423 cat conftest.$ac_ext >&5
14426 rm -f conftest.$ac_objext conftest.$ac_ext
14428 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14429 echo "${ECHO_T}$ac_cv_type_int8" >&6
14430 if test $ac_cv_type_int8 = yes; then
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_INT8 1
14438 echo "$as_me:$LINENO: checking for uint8" >&5
14439 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14440 if test "${ac_cv_type_uint8+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 cat >conftest.$ac_ext <<_ACEOF
14444 #line $LINENO "configure"
14445 #include "confdefs.h"
14447 #ifdef HAVE_SUPPORTDEFS_H
14448 #include <SupportDefs.h>
14451 #ifdef F77_DUMMY_MAIN
14452 # ifdef __cplusplus
14455 int F77_DUMMY_MAIN() { return 1; }
14462 if (sizeof (uint8))
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470 (eval $ac_compile) 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try='test -s conftest.$ac_objext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 ac_cv_type_uint8=yes
14482 echo "$as_me: failed program was:" >&5
14483 cat conftest.$ac_ext >&5
14484 ac_cv_type_uint8=no
14486 rm -f conftest.$ac_objext conftest.$ac_ext
14488 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14489 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14490 if test $ac_cv_type_uint8 = yes; then
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_UINT8 1
14498 echo "$as_me:$LINENO: checking for int64" >&5
14499 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14500 if test "${ac_cv_type_int64+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 cat >conftest.$ac_ext <<_ACEOF
14504 #line $LINENO "configure"
14505 #include "confdefs.h"
14507 #ifdef HAVE_SUPPORTDEFS_H
14508 #include <SupportDefs.h>
14511 #ifdef F77_DUMMY_MAIN
14512 # ifdef __cplusplus
14515 int F77_DUMMY_MAIN() { return 1; }
14522 if (sizeof (int64))
14528 rm -f conftest.$ac_objext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14530 (eval $ac_compile) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_type_int64=yes
14542 echo "$as_me: failed program was:" >&5
14543 cat conftest.$ac_ext >&5
14544 ac_cv_type_int64=no
14546 rm -f conftest.$ac_objext conftest.$ac_ext
14548 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14549 echo "${ECHO_T}$ac_cv_type_int64" >&6
14550 if test $ac_cv_type_int64 = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553 #define HAVE_INT64 1
14558 echo "$as_me:$LINENO: checking for uint64" >&5
14559 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14560 if test "${ac_cv_type_uint64+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 cat >conftest.$ac_ext <<_ACEOF
14564 #line $LINENO "configure"
14565 #include "confdefs.h"
14567 #ifdef HAVE_SUPPORTDEFS_H
14568 #include <SupportDefs.h>
14571 #ifdef F77_DUMMY_MAIN
14572 # ifdef __cplusplus
14575 int F77_DUMMY_MAIN() { return 1; }
14582 if (sizeof (uint64))
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_cv_type_uint64=yes
14602 echo "$as_me: failed program was:" >&5
14603 cat conftest.$ac_ext >&5
14604 ac_cv_type_uint64=no
14606 rm -f conftest.$ac_objext conftest.$ac_ext
14608 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14609 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14610 if test $ac_cv_type_uint64 = yes; then
14612 cat >>confdefs.h <<_ACEOF
14613 #define HAVE_UINT64 1
14620 # We also check for sig_atomic_t, which *should* be defined per ANSI
14621 # C, but is missing on some old platforms.
14622 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14623 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14624 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 cat >conftest.$ac_ext <<_ACEOF
14628 #line $LINENO "configure"
14629 #include "confdefs.h"
14630 #include <signal.h>
14632 #ifdef F77_DUMMY_MAIN
14633 # ifdef __cplusplus
14636 int F77_DUMMY_MAIN() { return 1; }
14641 if ((sig_atomic_t *) 0)
14643 if (sizeof (sig_atomic_t))
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_cv_type_sig_atomic_t=yes
14663 echo "$as_me: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14665 ac_cv_type_sig_atomic_t=no
14667 rm -f conftest.$ac_objext conftest.$ac_ext
14669 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14670 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14671 if test $ac_cv_type_sig_atomic_t = yes; then
14673 cat >>confdefs.h <<_ACEOF
14674 #define HAVE_SIG_ATOMIC_T 1
14682 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14683 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14684 if test "${pgac_cv_func_posix_signals+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14688 #line $LINENO "configure"
14689 #include "confdefs.h"
14690 #include <signal.h>
14692 #ifdef F77_DUMMY_MAIN
14693 # ifdef __cplusplus
14696 int F77_DUMMY_MAIN() { return 1; }
14701 struct sigaction act, oact;
14702 sigemptyset(&act.sa_mask);
14703 act.sa_flags = SA_RESTART;
14704 sigaction(0, &act, &oact);
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711 (eval $ac_link) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -s conftest$ac_exeext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 pgac_cv_func_posix_signals=yes
14723 echo "$as_me: failed program was:" >&5
14724 cat conftest.$ac_ext >&5
14725 pgac_cv_func_posix_signals=no
14727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14729 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14730 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14731 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14733 cat >>confdefs.h <<\_ACEOF
14734 #define HAVE_POSIX_SIGNALS
14738 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14740 if test $ac_cv_func_fseeko = yes; then
14741 # Check whether --enable-largefile or --disable-largefile was given.
14742 if test "${enable_largefile+set}" = set; then
14743 enableval="$enable_largefile"
14746 if test "$enable_largefile" != no; then
14748 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14749 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14750 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 ac_cv_sys_largefile_CC=no
14754 if test "$GCC" != yes; then
14757 # IRIX 6.2 and later do not support large files by default,
14758 # so use the C compiler's -n32 option if that helps.
14759 cat >conftest.$ac_ext <<_ACEOF
14760 #line $LINENO "configure"
14761 #include "confdefs.h"
14762 #include <sys/types.h>
14763 /* Check that off_t can represent 2**63 - 1 correctly.
14764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14765 since some C++ compilers masquerading as C compilers
14766 incorrectly reject 9223372036854775807. */
14767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14769 && LARGE_OFF_T % 2147483647 == 1)
14771 #ifdef F77_DUMMY_MAIN
14772 # ifdef __cplusplus
14775 int F77_DUMMY_MAIN() { return 1; }
14785 rm -f conftest.$ac_objext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14787 (eval $ac_compile) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14799 echo "$as_me: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14802 rm -f conftest.$ac_objext
14804 rm -f conftest.$ac_objext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -s conftest.$ac_objext'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_cv_sys_largefile_CC=' -n32'; break
14818 echo "$as_me: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14821 rm -f conftest.$ac_objext
14825 rm -f conftest.$ac_ext
14828 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14829 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14830 if test "$ac_cv_sys_largefile_CC" != no; then
14831 CC=$CC$ac_cv_sys_largefile_CC
14834 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14835 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14836 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 ac_cv_sys_file_offset_bits=no
14841 cat >conftest.$ac_ext <<_ACEOF
14842 #line $LINENO "configure"
14843 #include "confdefs.h"
14844 #include <sys/types.h>
14845 /* Check that off_t can represent 2**63 - 1 correctly.
14846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14847 since some C++ compilers masquerading as C compilers
14848 incorrectly reject 9223372036854775807. */
14849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14851 && LARGE_OFF_T % 2147483647 == 1)
14853 #ifdef F77_DUMMY_MAIN
14854 # ifdef __cplusplus
14857 int F77_DUMMY_MAIN() { return 1; }
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869 (eval $ac_compile) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -s conftest.$ac_objext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14881 echo "$as_me: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14885 cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14887 #include "confdefs.h"
14888 #define _FILE_OFFSET_BITS 64
14889 #include <sys/types.h>
14890 /* Check that off_t can represent 2**63 - 1 correctly.
14891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14892 since some C++ compilers masquerading as C compilers
14893 incorrectly reject 9223372036854775807. */
14894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14896 && LARGE_OFF_T % 2147483647 == 1)
14898 #ifdef F77_DUMMY_MAIN
14899 # ifdef __cplusplus
14902 int F77_DUMMY_MAIN() { return 1; }
14912 rm -f conftest.$ac_objext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914 (eval $ac_compile) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_cv_sys_file_offset_bits=64; break
14926 echo "$as_me: failed program was:" >&5
14927 cat conftest.$ac_ext >&5
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14934 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14935 if test "$ac_cv_sys_file_offset_bits" != no; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14943 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14944 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14945 if test "${ac_cv_sys_large_files+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 ac_cv_sys_large_files=no
14950 cat >conftest.$ac_ext <<_ACEOF
14951 #line $LINENO "configure"
14952 #include "confdefs.h"
14953 #include <sys/types.h>
14954 /* Check that off_t can represent 2**63 - 1 correctly.
14955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14956 since some C++ compilers masquerading as C compilers
14957 incorrectly reject 9223372036854775807. */
14958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14960 && LARGE_OFF_T % 2147483647 == 1)
14962 #ifdef F77_DUMMY_MAIN
14963 # ifdef __cplusplus
14966 int F77_DUMMY_MAIN() { return 1; }
14976 rm -f conftest.$ac_objext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978 (eval $ac_compile) 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14990 echo "$as_me: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14993 rm -f conftest.$ac_objext conftest.$ac_ext
14994 cat >conftest.$ac_ext <<_ACEOF
14995 #line $LINENO "configure"
14996 #include "confdefs.h"
14997 #define _LARGE_FILES 1
14998 #include <sys/types.h>
14999 /* Check that off_t can represent 2**63 - 1 correctly.
15000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15001 since some C++ compilers masquerading as C compilers
15002 incorrectly reject 9223372036854775807. */
15003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15005 && LARGE_OFF_T % 2147483647 == 1)
15007 #ifdef F77_DUMMY_MAIN
15008 # ifdef __cplusplus
15011 int F77_DUMMY_MAIN() { return 1; }
15021 rm -f conftest.$ac_objext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15023 (eval $ac_compile) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 ac_cv_sys_large_files=1; break
15035 echo "$as_me: failed program was:" >&5
15036 cat conftest.$ac_ext >&5
15038 rm -f conftest.$ac_objext conftest.$ac_ext
15042 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15043 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15044 if test "$ac_cv_sys_large_files" != no; then
15046 cat >>confdefs.h <<_ACEOF
15047 #define _LARGE_FILES $ac_cv_sys_large_files
15057 # Select semaphore implementation type.
15058 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15060 cat >>confdefs.h <<\_ACEOF
15061 #define USE_NAMED_POSIX_SEMAPHORES 1
15064 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15066 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15068 cat >>confdefs.h <<\_ACEOF
15069 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15072 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15075 cat >>confdefs.h <<\_ACEOF
15076 #define USE_SYSV_SEMAPHORES 1
15079 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15084 # Select shared-memory implementation type.
15086 cat >>confdefs.h <<\_ACEOF
15087 #define USE_SYSV_SHARED_MEMORY 1
15090 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15093 if test "$enable_nls" = yes ; then
15095 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15096 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15097 if test "${ac_cv_search_gettext+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 ac_func_search_save_LIBS=$LIBS
15101 ac_cv_search_gettext=no
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line $LINENO "configure"
15104 #include "confdefs.h"
15106 /* Override any gcc2 internal prototype to avoid an error. */
15110 /* We use char because int might match the return type of a gcc2
15111 builtin and then its argument prototype would still apply. */
15113 #ifdef F77_DUMMY_MAIN
15114 # ifdef __cplusplus
15117 int F77_DUMMY_MAIN() { return 1; }
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15129 (eval $ac_link) 2>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try='test -s conftest$ac_exeext'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_search_gettext="none required"
15141 echo "$as_me: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15145 if test "$ac_cv_search_gettext" = no; then
15146 for ac_lib in intl; do
15147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15148 cat >conftest.$ac_ext <<_ACEOF
15149 #line $LINENO "configure"
15150 #include "confdefs.h"
15152 /* Override any gcc2 internal prototype to avoid an error. */
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15159 #ifdef F77_DUMMY_MAIN
15160 # ifdef __cplusplus
15163 int F77_DUMMY_MAIN() { return 1; }
15173 rm -f conftest.$ac_objext conftest$ac_exeext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175 (eval $ac_link) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -s conftest$ac_exeext'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; }; then
15185 ac_cv_search_gettext="-l$ac_lib"
15188 echo "$as_me: failed program was:" >&5
15189 cat conftest.$ac_ext >&5
15191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15194 LIBS=$ac_func_search_save_LIBS
15196 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15197 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15198 if test "$ac_cv_search_gettext" != no; then
15199 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15202 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15203 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15204 { (exit 1); exit 1; }; }
15207 if test "${ac_cv_header_libintl_h+set}" = set; then
15208 echo "$as_me:$LINENO: checking for libintl.h" >&5
15209 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15210 if test "${ac_cv_header_libintl_h+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15214 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15216 # Is the header compilable?
15217 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15218 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15219 cat >conftest.$ac_ext <<_ACEOF
15220 #line $LINENO "configure"
15221 #include "confdefs.h"
15222 $ac_includes_default
15223 #include <libintl.h>
15225 rm -f conftest.$ac_objext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15227 (eval $ac_compile) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_header_compiler=yes
15239 echo "$as_me: failed program was:" >&5
15240 cat conftest.$ac_ext >&5
15241 ac_header_compiler=no
15243 rm -f conftest.$ac_objext conftest.$ac_ext
15244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15245 echo "${ECHO_T}$ac_header_compiler" >&6
15247 # Is the header present?
15248 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15249 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15250 cat >conftest.$ac_ext <<_ACEOF
15251 #line $LINENO "configure"
15252 #include "confdefs.h"
15253 #include <libintl.h>
15255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15258 egrep -v '^ *\+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } >/dev/null; then
15263 if test -s conftest.err; then
15264 ac_cpp_err=$ac_c_preproc_warn_flag
15271 if test -z "$ac_cpp_err"; then
15272 ac_header_preproc=yes
15274 echo "$as_me: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15276 ac_header_preproc=no
15278 rm -f conftest.err conftest.$ac_ext
15279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15280 echo "${ECHO_T}$ac_header_preproc" >&6
15282 # So? What about this header?
15283 case $ac_header_compiler:$ac_header_preproc in
15285 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15286 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15287 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15288 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15290 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15291 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15293 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15294 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15295 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15297 echo "$as_me:$LINENO: checking for libintl.h" >&5
15298 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15299 if test "${ac_cv_header_libintl_h+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 ac_cv_header_libintl_h=$ac_header_preproc
15304 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15305 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15308 if test $ac_cv_header_libintl_h = yes; then
15311 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15312 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15313 { (exit 1); exit 1; }; }
15317 for ac_prog in msgfmt
15319 # Extract the first word of "$ac_prog", so it can be a program name with args.
15320 set dummy $ac_prog; ac_word=$2
15321 echo "$as_me:$LINENO: checking for $ac_word" >&5
15322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15323 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 if test -n "$MSGFMT"; then
15327 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15330 for as_dir in $PATH
15333 test -z "$as_dir" && as_dir=.
15334 for ac_exec_ext in '' $ac_executable_extensions; do
15335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15336 ac_cv_prog_MSGFMT="$ac_prog"
15337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15345 MSGFMT=$ac_cv_prog_MSGFMT
15346 if test -n "$MSGFMT"; then
15347 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15348 echo "${ECHO_T}$MSGFMT" >&6
15350 echo "$as_me:$LINENO: result: no" >&5
15351 echo "${ECHO_T}no" >&6
15354 test -n "$MSGFMT" && break
15357 if test -z "$MSGFMT"; then
15358 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15359 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15360 { (exit 1); exit 1; }; }
15362 for ac_prog in msgmerge
15364 # Extract the first word of "$ac_prog", so it can be a program name with args.
15365 set dummy $ac_prog; ac_word=$2
15366 echo "$as_me:$LINENO: checking for $ac_word" >&5
15367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15368 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 if test -n "$MSGMERGE"; then
15372 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15375 for as_dir in $PATH
15378 test -z "$as_dir" && as_dir=.
15379 for ac_exec_ext in '' $ac_executable_extensions; do
15380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15381 ac_cv_prog_MSGMERGE="$ac_prog"
15382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15390 MSGMERGE=$ac_cv_prog_MSGMERGE
15391 if test -n "$MSGMERGE"; then
15392 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15393 echo "${ECHO_T}$MSGMERGE" >&6
15395 echo "$as_me:$LINENO: result: no" >&5
15396 echo "${ECHO_T}no" >&6
15399 test -n "$MSGMERGE" && break
15402 for ac_prog in xgettext
15404 # Extract the first word of "$ac_prog", so it can be a program name with args.
15405 set dummy $ac_prog; ac_word=$2
15406 echo "$as_me:$LINENO: checking for $ac_word" >&5
15407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15408 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 if test -n "$XGETTEXT"; then
15412 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415 for as_dir in $PATH
15418 test -z "$as_dir" && as_dir=.
15419 for ac_exec_ext in '' $ac_executable_extensions; do
15420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15421 ac_cv_prog_XGETTEXT="$ac_prog"
15422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15430 XGETTEXT=$ac_cv_prog_XGETTEXT
15431 if test -n "$XGETTEXT"; then
15432 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15433 echo "${ECHO_T}$XGETTEXT" >&6
15435 echo "$as_me:$LINENO: result: no" >&5
15436 echo "${ECHO_T}no" >&6
15439 test -n "$XGETTEXT" && break
15443 # Note: share/locale is always the default, independent of $datadir
15444 localedir='${prefix}/share/locale'
15445 if test x"$prefix" = x"NONE"; then
15446 exp_localedir="$ac_default_prefix/share/locale"
15448 exp_localedir="$prefix/share/locale"
15453 cat >>confdefs.h <<_ACEOF
15454 #define LOCALEDIR "$exp_localedir"
15460 # Check for Tcl configuration script tclConfig.sh
15461 if test "$with_tcl" = yes; then
15462 for ac_prog in tclsh tcl
15464 # Extract the first word of "$ac_prog", so it can be a program name with args.
15465 set dummy $ac_prog; ac_word=$2
15466 echo "$as_me:$LINENO: checking for $ac_word" >&5
15467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15468 if test "${ac_cv_path_TCLSH+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15477 for as_dir in $PATH
15480 test -z "$as_dir" && as_dir=.
15481 for ac_exec_ext in '' $ac_executable_extensions; do
15482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15483 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15493 TCLSH=$ac_cv_path_TCLSH
15495 if test -n "$TCLSH"; then
15496 echo "$as_me:$LINENO: result: $TCLSH" >&5
15497 echo "${ECHO_T}$TCLSH" >&6
15499 echo "$as_me:$LINENO: result: no" >&5
15500 echo "${ECHO_T}no" >&6
15503 test -n "$TCLSH" && break
15506 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15507 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15508 # Let user override test
15509 if test -z "$TCL_CONFIG_SH"; then
15510 pgac_test_dirs="$with_tclconfig"
15512 set X $pgac_test_dirs; shift
15513 if test $# -eq 0; then
15514 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15515 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15516 { (exit 1); exit 1; }; }
15517 set X `echo 'puts $auto_path' | $TCLSH`; shift
15521 if test -r "$pgac_dir/tclConfig.sh"; then
15522 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15528 if test -z "$TCL_CONFIG_SH"; then
15529 echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6
15531 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15532 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15533 { (exit 1); exit 1; }; }
15535 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15536 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15542 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15543 eval TCL_LIBS=\"$TCL_LIBS\"
15544 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15545 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15547 # TCL_INCLUDE_SPEC is only provided in Tcl 8.4 and later
15548 if test "${TCL_INCLUDE_SPEC+set}" = set; then
15549 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
15551 TCL_INCLUDE_SPEC=''
15555 # Check for Tk configuration script tkConfig.sh
15556 if test "$with_tk" = yes; then
15557 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15558 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15559 # Let user override test
15560 if test -z "$TK_CONFIG_SH"; then
15561 pgac_test_dirs="$with_tkconfig $with_tclconfig"
15563 set X $pgac_test_dirs; shift
15564 if test $# -eq 0; then
15565 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15566 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15567 { (exit 1); exit 1; }; }
15568 set X `echo 'puts $auto_path' | $TCLSH`; shift
15572 if test -r "$pgac_dir/tkConfig.sh"; then
15573 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15579 if test -z "$TK_CONFIG_SH"; then
15580 echo "$as_me:$LINENO: result: no" >&5
15581 echo "${ECHO_T}no" >&6
15582 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15583 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15584 { (exit 1); exit 1; }; }
15586 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15587 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15593 eval TK_LIBS=\"$TK_LIBS\"
15594 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15595 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15601 # Check for DocBook and tools
15603 for ac_prog in onsgmls nsgmls
15605 # Extract the first word of "$ac_prog", so it can be a program name with args.
15606 set dummy $ac_prog; ac_word=$2
15607 echo "$as_me:$LINENO: checking for $ac_word" >&5
15608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15609 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 if test -n "$NSGMLS"; then
15613 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 for as_dir in $PATH
15619 test -z "$as_dir" && as_dir=.
15620 for ac_exec_ext in '' $ac_executable_extensions; do
15621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622 ac_cv_prog_NSGMLS="$ac_prog"
15623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15631 NSGMLS=$ac_cv_prog_NSGMLS
15632 if test -n "$NSGMLS"; then
15633 echo "$as_me:$LINENO: result: $NSGMLS" >&5
15634 echo "${ECHO_T}$NSGMLS" >&6
15636 echo "$as_me:$LINENO: result: no" >&5
15637 echo "${ECHO_T}no" >&6
15640 test -n "$NSGMLS" && break
15643 for ac_prog in openjade jade
15645 # Extract the first word of "$ac_prog", so it can be a program name with args.
15646 set dummy $ac_prog; ac_word=$2
15647 echo "$as_me:$LINENO: checking for $ac_word" >&5
15648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15649 if test "${ac_cv_prog_JADE+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 if test -n "$JADE"; then
15653 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15656 for as_dir in $PATH
15659 test -z "$as_dir" && as_dir=.
15660 for ac_exec_ext in '' $ac_executable_extensions; do
15661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15662 ac_cv_prog_JADE="$ac_prog"
15663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15671 JADE=$ac_cv_prog_JADE
15672 if test -n "$JADE"; then
15673 echo "$as_me:$LINENO: result: $JADE" >&5
15674 echo "${ECHO_T}$JADE" >&6
15676 echo "$as_me:$LINENO: result: no" >&5
15677 echo "${ECHO_T}no" >&6
15680 test -n "$JADE" && break
15684 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15685 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15686 if test "${pgac_cv_check_docbook+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 cat >conftest.sgml <<EOF
15690 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15692 <title>test</title>
15694 <title>random</title>
15696 <title>testsect</title>
15703 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15704 if test $? -eq 0; then
15705 pgac_cv_check_docbook=yes
15707 pgac_cv_check_docbook=no
15709 rm -f conftest.sgml
15711 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15712 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15714 have_docbook=$pgac_cv_check_docbook
15717 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15718 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15719 if test "${pgac_cv_path_stylesheets+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 if test -n "$DOCBOOKSTYLE"; then
15723 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15725 for pgac_prefix in /usr /usr/local /opt; do
15726 for pgac_infix in share lib; do
15727 for pgac_postfix in \
15728 sgml/stylesheets/nwalsh-modular \
15729 sgml/stylesheets/docbook \
15730 sgml/docbook/dsssl/modular \
15731 sgml/docbook/stylesheet/dsssl/modular \
15732 sgml/docbook/dsssl-stylesheets
15734 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15735 if test -r "$pgac_candidate/html/docbook.dsl" \
15736 && test -r "$pgac_candidate/print/docbook.dsl"
15738 pgac_cv_path_stylesheets=$pgac_candidate
15747 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15749 if test -n "$DOCBOOKSTYLE"; then
15750 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15751 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15753 echo "$as_me:$LINENO: result: no" >&5
15754 echo "${ECHO_T}no" >&6
15756 if test -n "$DOCBOOKSTYLE"; then
15757 for ac_prog in collateindex.pl
15759 # Extract the first word of "$ac_prog", so it can be a program name with args.
15760 set dummy $ac_prog; ac_word=$2
15761 echo "$as_me:$LINENO: checking for $ac_word" >&5
15762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15763 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 case $COLLATEINDEX in
15768 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15772 for as_dir in $DOCBOOKSTYLE/bin $PATH
15775 test -z "$as_dir" && as_dir=.
15776 for ac_exec_ext in '' $ac_executable_extensions; do
15777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15778 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15788 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15790 if test -n "$COLLATEINDEX"; then
15791 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15792 echo "${ECHO_T}$COLLATEINDEX" >&6
15794 echo "$as_me:$LINENO: result: no" >&5
15795 echo "${ECHO_T}no" >&6
15798 test -n "$COLLATEINDEX" && break
15802 for ac_prog in collateindex.pl
15804 # Extract the first word of "$ac_prog", so it can be a program name with args.
15805 set dummy $ac_prog; ac_word=$2
15806 echo "$as_me:$LINENO: checking for $ac_word" >&5
15807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15808 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 case $COLLATEINDEX in
15813 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 for as_dir in $PATH
15820 test -z "$as_dir" && as_dir=.
15821 for ac_exec_ext in '' $ac_executable_extensions; do
15822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15823 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15833 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15835 if test -n "$COLLATEINDEX"; then
15836 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15837 echo "${ECHO_T}$COLLATEINDEX" >&6
15839 echo "$as_me:$LINENO: result: no" >&5
15840 echo "${ECHO_T}no" >&6
15843 test -n "$COLLATEINDEX" && break
15847 for ac_prog in sgmlspl
15849 # Extract the first word of "$ac_prog", so it can be a program name with args.
15850 set dummy $ac_prog; ac_word=$2
15851 echo "$as_me:$LINENO: checking for $ac_word" >&5
15852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15853 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 if test -n "$SGMLSPL"; then
15857 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866 ac_cv_prog_SGMLSPL="$ac_prog"
15867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15875 SGMLSPL=$ac_cv_prog_SGMLSPL
15876 if test -n "$SGMLSPL"; then
15877 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15878 echo "${ECHO_T}$SGMLSPL" >&6
15880 echo "$as_me:$LINENO: result: no" >&5
15881 echo "${ECHO_T}no" >&6
15884 test -n "$SGMLSPL" && break
15889 # prepare build tree if outside source tree
15890 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15891 # Note 2: /bin/pwd might be better than shell's built-in at getting
15892 # a symlink-free name.
15893 if test "$no_create" != yes; then
15894 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15899 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15900 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15901 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15902 || { { echo "$as_me:$LINENO: error: failed" >&5
15903 echo "$as_me: error: failed" >&2;}
15904 { (exit 1); exit 1; }; }
15905 echo "$as_me:$LINENO: result: done" >&5
15906 echo "${ECHO_T}done" >&6
15911 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15914 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}"
15917 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15920 cat >confcache <<\_ACEOF
15921 # This file is a shell script that caches the results of configure
15922 # tests run on this system so they can be shared between configure
15923 # scripts and configure runs, see configure's option --config-cache.
15924 # It is not useful on other systems. If it contains results you don't
15925 # want to keep, you may remove or edit it.
15927 # config.status only pays attention to the cache file if you give it
15928 # the --recheck option to rerun configure.
15930 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15931 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15932 # following values.
15936 # The following way of writing the cache mishandles newlines in values,
15937 # but we know of no workaround that is simple, portable, and efficient.
15938 # So, don't put newlines in cache variables' values.
15939 # Ultrix sh set writes to stderr and can't be redirected directly,
15940 # and sets the high bit in the cache file unless we assign to the vars.
15943 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15945 # `set' does not quote correctly, so add quotes (double-quote
15946 # substitution turns \\\\ into \\, and sed turns \\ into \).
15949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15952 # `set' quotes correctly as required by POSIX, so do not add quotes.
15954 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15963 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15965 if cmp -s $cache_file confcache; then :; else
15966 if test -w $cache_file; then
15967 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15968 cat confcache >$cache_file
15970 echo "not updating unwritable cache $cache_file"
15975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15976 # Let make expand exec_prefix.
15977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15979 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15980 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15981 # trailing colons and then remove the whole line if VPATH becomes empty
15982 # (actually we leave an empty line to preserve line numbers).
15983 if test "x$srcdir" = x.; then
15984 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15985 s/:*\$(srcdir):*/:/;
15986 s/:*\${srcdir}:*/:/;
15988 s/^\([^=]*=[ ]*\):*/\1/;
15994 DEFS=-DHAVE_CONFIG_H
15997 : ${CONFIG_STATUS=./config.status}
15998 ac_clean_files_save=$ac_clean_files
15999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16000 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16001 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16002 cat >$CONFIG_STATUS <<_ACEOF
16004 # Generated by $as_me.
16005 # Run this file to recreate the current configuration.
16006 # Compiler output produced by configure, useful for debugging
16007 # configure, is in config.log if it exists.
16010 SHELL=\${CONFIG_SHELL-$SHELL}
16013 cat >>$CONFIG_STATUS <<\_ACEOF
16015 ## --------------------- ##
16016 ## M4sh Initialization. ##
16017 ## --------------------- ##
16019 # Be Bourne compatible
16020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16023 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16028 # Support unset when possible.
16029 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16035 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16036 { $as_unset LANG || test "${LANG+set}" != set; } ||
16037 { LANG=C; export LANG; }
16038 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16039 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16040 { LC_ALL=C; export LC_ALL; }
16041 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16042 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16043 { LC_TIME=C; export LC_TIME; }
16044 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16045 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16046 { LC_CTYPE=C; export LC_CTYPE; }
16047 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16048 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16049 { LANGUAGE=C; export LANGUAGE; }
16050 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16051 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16052 { LC_COLLATE=C; export LC_COLLATE; }
16053 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16054 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16055 { LC_NUMERIC=C; export LC_NUMERIC; }
16056 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16057 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16058 { LC_MESSAGES=C; export LC_MESSAGES; }
16061 # Name of the executable.
16062 as_me=`(basename "$0") 2>/dev/null ||
16063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16064 X"$0" : 'X\(//\)$' \| \
16065 X"$0" : 'X\(/\)$' \| \
16066 . : '\(.\)' 2>/dev/null ||
16068 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16069 /^X\/\(\/\/\)$/{ s//\1/; q; }
16070 /^X\/\(\/\).*/{ s//\1/; q; }
16073 # PATH needs CR, and LINENO needs CR and PATH.
16074 # Avoid depending upon Character Ranges.
16075 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16076 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16077 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16078 as_cr_digits='0123456789'
16079 as_cr_alnum=$as_cr_Letters$as_cr_digits
16081 # The user is always right.
16082 if test "${PATH_SEPARATOR+set}" != set; then
16083 echo "#! /bin/sh" >conftest.sh
16084 echo "exit 0" >>conftest.sh
16085 chmod +x conftest.sh
16086 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16095 as_lineno_1=$LINENO
16096 as_lineno_2=$LINENO
16097 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16098 test "x$as_lineno_1" != "x$as_lineno_2" &&
16099 test "x$as_lineno_3" = "x$as_lineno_2" || {
16100 # Find who we are. Look in the path if we contain no path at all
16103 *[\\/]* ) as_myself=$0 ;;
16104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105 for as_dir in $PATH
16108 test -z "$as_dir" && as_dir=.
16109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16114 # We did not find ourselves, most probably we were run as `sh COMMAND'
16115 # in which case we are not to be found in the path.
16116 if test "x$as_myself" = x; then
16119 if test ! -f "$as_myself"; then
16120 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16121 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16122 { (exit 1); exit 1; }; }
16124 case $CONFIG_SHELL in
16126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16127 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16130 test -z "$as_dir" && as_dir=.
16131 for as_base in sh bash ksh sh5; do
16134 if ("$as_dir/$as_base" -c '
16135 as_lineno_1=$LINENO
16136 as_lineno_2=$LINENO
16137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16138 test "x$as_lineno_1" != "x$as_lineno_2" &&
16139 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16140 CONFIG_SHELL=$as_dir/$as_base
16141 export CONFIG_SHELL
16142 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16151 # uniformly replaced by the line number. The first 'sed' inserts a
16152 # line-number line before each line; the second 'sed' does the real
16153 # work. The second script uses 'N' to pair each line-number line
16154 # with the numbered line, and appends trailing '-' during
16155 # substitution so that $LINENO is not a special case at line end.
16156 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16157 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16158 sed '=' <$as_myself |
16163 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16166 s,^['$as_cr_digits']*\n,,
16167 ' >$as_me.lineno &&
16168 chmod +x $as_me.lineno ||
16169 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16170 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16171 { (exit 1); exit 1; }; }
16173 # Don't try to exec as it changes $[0], causing all sort of problems
16174 # (the dirname of $[0] is not the place where we might find the
16175 # original and so on. Autoconf is especially sensible to this).
16177 # Exit status is that of the last command.
16182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16183 *c*,-n*) ECHO_N= ECHO_C='
16185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16189 if expr a : '\(a\)' >/dev/null 2>&1; then
16195 rm -f conf$$ conf$$.exe conf$$.file
16197 if ln -s conf$$.file conf$$ 2>/dev/null; then
16198 # We could just check for DJGPP; but this test a) works b) is more generic
16199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16200 if test -f conf$$.exe; then
16201 # Don't use ln at all; we don't have any links
16206 elif ln conf$$.file conf$$ 2>/dev/null; then
16211 rm -f conf$$ conf$$.exe conf$$.file
16213 as_executable_p="test -f"
16215 # Sed expression to map a string onto a valid CPP name.
16216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16218 # Sed expression to map a string onto a valid variable name.
16219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16223 # We need space, tab and new line, in precisely that order.
16229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16233 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16234 # report actual input values of CONFIG_FILES etc. instead of their
16235 # values after options handling. Logging --version etc. is OK.
16239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16240 ## Running $as_me. ##
16245 This file was extended by PostgreSQL $as_me 7.4devel, which was
16246 generated by GNU Autoconf 2.53. Invocation command line was
16248 CONFIG_FILES = $CONFIG_FILES
16249 CONFIG_HEADERS = $CONFIG_HEADERS
16250 CONFIG_LINKS = $CONFIG_LINKS
16251 CONFIG_COMMANDS = $CONFIG_COMMANDS
16255 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16259 # Files that config.status was made for.
16260 if test -n "$ac_config_files"; then
16261 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16264 if test -n "$ac_config_headers"; then
16265 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16268 if test -n "$ac_config_links"; then
16269 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16272 if test -n "$ac_config_commands"; then
16273 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16276 cat >>$CONFIG_STATUS <<\_ACEOF
16279 \`$as_me' instantiates files from templates according to the
16280 current configuration.
16282 Usage: $0 [OPTIONS] [FILE]...
16284 -h, --help print this help, then exit
16285 -V, --version print version number, then exit
16286 -d, --debug don't remove temporary files
16287 --recheck update $as_me by reconfiguring in the same conditions
16288 --file=FILE[:TEMPLATE]
16289 instantiate the configuration file FILE
16290 --header=FILE[:TEMPLATE]
16291 instantiate the configuration header FILE
16293 Configuration files:
16296 Configuration headers:
16299 Configuration links:
16302 Report bugs to <bug-autoconf@gnu.org>."
16305 cat >>$CONFIG_STATUS <<_ACEOF
16307 PostgreSQL config.status 7.4devel
16308 configured by $0, generated by GNU Autoconf 2.53,
16309 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16311 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16312 Free Software Foundation, Inc.
16313 This config.status script is free software; the Free Software Foundation
16314 gives unlimited permission to copy, distribute and modify it."
16318 cat >>$CONFIG_STATUS <<\_ACEOF
16319 # If no file are specified by the user, then we need to provide default
16320 # value. By we need to know if files were specified by the user.
16326 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16327 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16329 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16333 *) # This is not an option, so the user has probably given explicit
16335 ac_need_defaults=false;;
16339 # Handling of the options.
16341 cat >>$CONFIG_STATUS <<_ACEOF
16342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16343 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16344 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16346 cat >>$CONFIG_STATUS <<\_ACEOF
16347 --version | --vers* | -V )
16348 echo "$ac_cs_version"; exit 0 ;;
16350 # Conflict between --help and --header
16351 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16352 Try \`$0 --help' for more information." >&5
16353 echo "$as_me: error: ambiguous option: $1
16354 Try \`$0 --help' for more information." >&2;}
16355 { (exit 1); exit 1; }; };;
16356 --help | --hel | -h )
16357 echo "$ac_cs_usage"; exit 0 ;;
16358 --debug | --d* | -d )
16360 --file | --fil | --fi | --f )
16362 CONFIG_FILES="$CONFIG_FILES $1"
16363 ac_need_defaults=false;;
16364 --header | --heade | --head | --hea )
16366 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16367 ac_need_defaults=false;;
16369 # This is an error.
16370 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16371 Try \`$0 --help' for more information." >&5
16372 echo "$as_me: error: unrecognized option: $1
16373 Try \`$0 --help' for more information." >&2;}
16374 { (exit 1); exit 1; }; } ;;
16376 *) ac_config_targets="$ac_config_targets $1" ;;
16388 cat >>$CONFIG_STATUS <<\_ACEOF
16389 for ac_config_target in $ac_config_targets
16391 case "$ac_config_target" in
16392 # Handling of arguments.
16393 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16394 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16395 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16396 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16397 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16398 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16399 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16400 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16401 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16402 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16403 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16405 { (exit 1); exit 1; }; };;
16409 # If the user did not use the arguments to specify the items to instantiate,
16410 # then the envvar interface is used. Set only those that are not.
16411 # We use the long form for the default assignment because of an extremely
16412 # bizarre bug on SunOS 4.1.3.
16413 if $ac_need_defaults; then
16414 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16415 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16416 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16419 # Create a temporary directory, and hook for its removal unless debugging.
16422 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16423 trap '{ (exit 1); exit 1; }' 1 2 13 15
16426 # Create a (secure) tmp directory for tmp files.
16429 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16430 test -n "$tmp" && test -d "$tmp"
16433 tmp=$TMPDIR/cs$$-$RANDOM
16434 (umask 077 && mkdir $tmp)
16437 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16438 { (exit 1); exit 1; }
16443 cat >>$CONFIG_STATUS <<_ACEOF
16446 # CONFIG_FILES section.
16449 # No need to generate the scripts if there are no CONFIG_FILES.
16450 # This happens for instance when ./config.status config.h
16451 if test -n "\$CONFIG_FILES"; then
16452 # Protect against being on the right side of a sed subst in config.status.
16453 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16454 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16455 s,@SHELL@,$SHELL,;t t
16456 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16457 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16458 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16459 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16460 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16461 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16462 s,@exec_prefix@,$exec_prefix,;t t
16463 s,@prefix@,$prefix,;t t
16464 s,@program_transform_name@,$program_transform_name,;t t
16465 s,@bindir@,$bindir,;t t
16466 s,@sbindir@,$sbindir,;t t
16467 s,@libexecdir@,$libexecdir,;t t
16468 s,@datadir@,$datadir,;t t
16469 s,@sysconfdir@,$sysconfdir,;t t
16470 s,@sharedstatedir@,$sharedstatedir,;t t
16471 s,@localstatedir@,$localstatedir,;t t
16472 s,@libdir@,$libdir,;t t
16473 s,@includedir@,$includedir,;t t
16474 s,@oldincludedir@,$oldincludedir,;t t
16475 s,@infodir@,$infodir,;t t
16476 s,@mandir@,$mandir,;t t
16477 s,@build_alias@,$build_alias,;t t
16478 s,@host_alias@,$host_alias,;t t
16479 s,@target_alias@,$target_alias,;t t
16480 s,@DEFS@,$DEFS,;t t
16481 s,@ECHO_C@,$ECHO_C,;t t
16482 s,@ECHO_N@,$ECHO_N,;t t
16483 s,@ECHO_T@,$ECHO_T,;t t
16484 s,@LIBS@,$LIBS,;t t
16485 s,@docdir@,$docdir,;t t
16486 s,@configure_args@,$configure_args,;t t
16487 s,@build@,$build,;t t
16488 s,@build_cpu@,$build_cpu,;t t
16489 s,@build_vendor@,$build_vendor,;t t
16490 s,@build_os@,$build_os,;t t
16491 s,@host@,$host,;t t
16492 s,@host_cpu@,$host_cpu,;t t
16493 s,@host_vendor@,$host_vendor,;t t
16494 s,@host_os@,$host_os,;t t
16495 s,@PORTNAME@,$PORTNAME,;t t
16497 s,@enable_nls@,$enable_nls,;t t
16498 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16499 s,@default_port@,$default_port,;t t
16500 s,@enable_shared@,$enable_shared,;t t
16501 s,@enable_rpath@,$enable_rpath,;t t
16502 s,@enable_debug@,$enable_debug,;t t
16504 s,@CFLAGS@,$CFLAGS,;t t
16505 s,@LDFLAGS@,$LDFLAGS,;t t
16506 s,@CPPFLAGS@,$CPPFLAGS,;t t
16507 s,@ac_ct_CC@,$ac_ct_CC,;t t
16508 s,@EXEEXT@,$EXEEXT,;t t
16509 s,@OBJEXT@,$OBJEXT,;t t
16512 s,@autodepend@,$autodepend,;t t
16513 s,@INCLUDES@,$INCLUDES,;t t
16514 s,@with_tcl@,$with_tcl,;t t
16515 s,@with_tk@,$with_tk,;t t
16516 s,@with_perl@,$with_perl,;t t
16517 s,@with_python@,$with_python,;t t
16519 s,@with_java@,$with_java,;t t
16520 s,@with_krb4@,$with_krb4,;t t
16521 s,@with_krb5@,$with_krb5,;t t
16522 s,@krb_srvtab@,$krb_srvtab,;t t
16523 s,@with_pam@,$with_pam,;t t
16524 s,@with_openssl@,$with_openssl,;t t
16525 s,@ELF_SYS@,$ELF_SYS,;t t
16527 s,@FLEX@,$FLEX,;t t
16528 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16529 s,@LN_S@,$LN_S,;t t
16531 s,@with_gnu_ld@,$with_gnu_ld,;t t
16532 s,@ld_R_works@,$ld_R_works,;t t
16533 s,@RANLIB@,$RANLIB,;t t
16534 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16535 s,@LORDER@,$LORDER,;t t
16537 s,@STRIP@,$STRIP,;t t
16538 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16539 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16540 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16541 s,@YACC@,$YACC,;t t
16542 s,@YFLAGS@,$YFLAGS,;t t
16543 s,@PERL@,$PERL,;t t
16544 s,@perl_archlibexp@,$perl_archlibexp,;t t
16545 s,@perl_privlibexp@,$perl_privlibexp,;t t
16546 s,@perl_useshrplib@,$perl_useshrplib,;t t
16547 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16548 s,@PYTHON@,$PYTHON,;t t
16549 s,@python_version@,$python_version,;t t
16550 s,@python_prefix@,$python_prefix,;t t
16551 s,@python_execprefix@,$python_execprefix,;t t
16552 s,@python_configdir@,$python_configdir,;t t
16553 s,@python_moduledir@,$python_moduledir,;t t
16554 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16555 s,@python_includespec@,$python_includespec,;t t
16556 s,@python_libspec@,$python_libspec,;t t
16557 s,@LIBOBJS@,$LIBOBJS,;t t
16558 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
16559 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16560 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16561 s,@MSGFMT@,$MSGFMT,;t t
16562 s,@MSGMERGE@,$MSGMERGE,;t t
16563 s,@XGETTEXT@,$XGETTEXT,;t t
16564 s,@localedir@,$localedir,;t t
16565 s,@TCLSH@,$TCLSH,;t t
16566 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16567 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16568 s,@TCL_LIBS@,$TCL_LIBS,;t t
16569 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16570 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16571 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16572 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
16573 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16574 s,@TK_LIBS@,$TK_LIBS,;t t
16575 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16576 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16577 s,@NSGMLS@,$NSGMLS,;t t
16578 s,@JADE@,$JADE,;t t
16579 s,@have_docbook@,$have_docbook,;t t
16580 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16581 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16582 s,@SGMLSPL@,$SGMLSPL,;t t
16583 s,@vpath_build@,$vpath_build,;t t
16588 cat >>$CONFIG_STATUS <<\_ACEOF
16589 # Split the substitutions into bite-sized pieces for seds with
16590 # small command number limits, like on Digital OSF/1 and HP-UX.
16591 ac_max_sed_lines=48
16592 ac_sed_frag=1 # Number of current file.
16593 ac_beg=1 # First line for current file.
16594 ac_end=$ac_max_sed_lines # Line after last line for current file.
16597 while $ac_more_lines; do
16598 if test $ac_beg -gt 1; then
16599 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16601 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16603 if test ! -s $tmp/subs.frag; then
16604 ac_more_lines=false
16606 # The purpose of the label and of the branching condition is to
16607 # speed up the sed processing (if there are no `@' at all, there
16608 # is no need to browse any of the substitutions).
16609 # These are the two extra sed commands mentioned above.
16611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16612 if test -z "$ac_sed_cmds"; then
16613 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16615 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16617 ac_sed_frag=`expr $ac_sed_frag + 1`
16619 ac_end=`expr $ac_end + $ac_max_sed_lines`
16622 if test -z "$ac_sed_cmds"; then
16625 fi # test -n "$CONFIG_FILES"
16628 cat >>$CONFIG_STATUS <<\_ACEOF
16629 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16632 - | *:- | *:-:* ) # input from stdin
16634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16638 * ) ac_file_in=$ac_file.in ;;
16641 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16642 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16644 X"$ac_file" : 'X\(//\)[^/]' \| \
16645 X"$ac_file" : 'X\(//\)$' \| \
16646 X"$ac_file" : 'X\(/\)' \| \
16647 . : '\(.\)' 2>/dev/null ||
16649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16651 /^X\(\/\/\)$/{ s//\1/; q; }
16652 /^X\(\/\).*/{ s//\1/; q; }
16654 { case "$ac_dir" in
16655 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16659 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16660 case $as_mkdir_dir in
16661 # Skip DOS drivespec
16662 ?:) as_incr_dir=$as_mkdir_dir ;;
16664 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16665 test -d "$as_incr_dir" ||
16666 mkdir "$as_incr_dir" ||
16667 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16668 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16669 { (exit 1); exit 1; }; }
16676 if test "$ac_dir" != .; then
16677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16678 # A "../" for each directory in $ac_dir_suffix.
16679 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16681 ac_dir_suffix= ac_top_builddir=
16685 .) # No --srcdir option. We are building in place.
16687 if test -z "$ac_top_builddir"; then
16690 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16692 [\\/]* | ?:[\\/]* ) # Absolute path.
16693 ac_srcdir=$srcdir$ac_dir_suffix;
16694 ac_top_srcdir=$srcdir ;;
16695 *) # Relative path.
16696 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16697 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16699 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16701 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16702 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16703 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16704 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16708 if test x"$ac_file" != x-; then
16709 { echo "$as_me:$LINENO: creating $ac_file" >&5
16710 echo "$as_me: creating $ac_file" >&6;}
16713 # Let's still pretend it is `configure' which instantiates (i.e., don't
16714 # use $as_me), people would be surprised to read:
16715 # /* config.h. Generated by config.status. */
16716 if test x"$ac_file" = x-; then
16719 configure_input="$ac_file. "
16721 configure_input=$configure_input"Generated from `echo $ac_file_in |
16722 sed 's,.*/,,'` by configure."
16724 # First look for the input files in the build tree, otherwise in the
16726 ac_file_inputs=`IFS=:
16727 for f in $ac_file_in; do
16729 -) echo $tmp/stdin ;;
16731 # Absolute (can't be DOS-style, as IFS=:)
16732 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16733 echo "$as_me: error: cannot find input file: $f" >&2;}
16734 { (exit 1); exit 1; }; }
16737 if test -f "$f"; then
16740 elif test -f "$srcdir/$f"; then
16745 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16746 echo "$as_me: error: cannot find input file: $f" >&2;}
16747 { (exit 1); exit 1; }; }
16750 done` || { (exit 1); exit 1; }
16752 cat >>$CONFIG_STATUS <<_ACEOF
16756 cat >>$CONFIG_STATUS <<\_ACEOF
16758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16759 s,@configure_input@,$configure_input,;t t
16760 s,@srcdir@,$ac_srcdir,;t t
16761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16762 s,@top_srcdir@,$ac_top_srcdir,;t t
16763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16764 s,@builddir@,$ac_builddir,;t t
16765 s,@abs_builddir@,$ac_abs_builddir,;t t
16766 s,@top_builddir@,$ac_top_builddir,;t t
16767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16768 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16770 if test x"$ac_file" != x-; then
16771 mv $tmp/out $ac_file
16779 cat >>$CONFIG_STATUS <<\_ACEOF
16782 # CONFIG_HEADER section.
16785 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16786 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16788 # ac_d sets the value in "#define NAME VALUE" lines.
16789 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16790 ac_dB='[ ].*$,\1#\2'
16793 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16794 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16795 ac_uB='$,\1#\2define\3'
16799 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16802 - | *:- | *:-:* ) # input from stdin
16804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16808 * ) ac_file_in=$ac_file.in ;;
16811 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16812 echo "$as_me: creating $ac_file" >&6;}
16814 # First look for the input files in the build tree, otherwise in the
16816 ac_file_inputs=`IFS=:
16817 for f in $ac_file_in; do
16819 -) echo $tmp/stdin ;;
16821 # Absolute (can't be DOS-style, as IFS=:)
16822 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16823 echo "$as_me: error: cannot find input file: $f" >&2;}
16824 { (exit 1); exit 1; }; }
16827 if test -f "$f"; then
16830 elif test -f "$srcdir/$f"; then
16835 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16836 echo "$as_me: error: cannot find input file: $f" >&2;}
16837 { (exit 1); exit 1; }; }
16840 done` || { (exit 1); exit 1; }
16841 # Remove the trailing spaces.
16842 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16846 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16847 # `conftest.undefs', that substitutes the proper values into
16848 # config.h.in to produce config.h. The first handles `#define'
16849 # templates, and the second `#undef' templates.
16850 # And first: Protect against being on the right side of a sed subst in
16851 # config.status. Protect against being in an unquoted here document
16852 # in config.status.
16853 rm -f conftest.defines conftest.undefs
16854 # Using a here document instead of a string reduces the quoting nightmare.
16855 # Putting comments in sed scripts is not portable.
16857 # `end' is used to avoid that the second main sed command (meant for
16858 # 0-ary CPP macros) applies to n-ary macro definitions.
16859 # See the Autoconf documentation for `clear'.
16860 cat >confdef2sed.sed <<\_ACEOF
16865 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16867 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16870 # If some macros were called several times there might be several times
16871 # the same #defines, which is useless. Nevertheless, we may not want to
16872 # sort them, since we want the *last* AC-DEFINE to be honored.
16873 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16874 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16875 rm -f confdef2sed.sed
16877 # This sed command replaces #undef with comments. This is necessary, for
16878 # example, in the case of _POSIX_SOURCE, which is predefined and required
16879 # on some systems where configure will not decide to define it.
16880 cat >>conftest.undefs <<\_ACEOF
16881 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16884 # Break up conftest.defines because some shells have a limit on the size
16885 # of here documents, and old seds have small limits too (100 cmds).
16886 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16887 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16888 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16889 echo ' :' >>$CONFIG_STATUS
16890 rm -f conftest.tail
16891 while grep . conftest.defines >/dev/null
16893 # Write a limited-size here document to $tmp/defines.sed.
16894 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16895 # Speed up: don't consider the non `#define' lines.
16896 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16897 # Work around the forget-to-reset-the-flag bug.
16898 echo 't clr' >>$CONFIG_STATUS
16899 echo ': clr' >>$CONFIG_STATUS
16900 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16902 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16904 mv $tmp/out $tmp/in
16906 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16907 rm -f conftest.defines
16908 mv conftest.tail conftest.defines
16910 rm -f conftest.defines
16911 echo ' fi # egrep' >>$CONFIG_STATUS
16912 echo >>$CONFIG_STATUS
16914 # Break up conftest.undefs because some shells have a limit on the size
16915 # of here documents, and old seds have small limits too (100 cmds).
16916 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16917 rm -f conftest.tail
16918 while grep . conftest.undefs >/dev/null
16920 # Write a limited-size here document to $tmp/undefs.sed.
16921 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16922 # Speed up: don't consider the non `#undef'
16923 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16924 # Work around the forget-to-reset-the-flag bug.
16925 echo 't clr' >>$CONFIG_STATUS
16926 echo ': clr' >>$CONFIG_STATUS
16927 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16929 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16931 mv $tmp/out $tmp/in
16933 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16934 rm -f conftest.undefs
16935 mv conftest.tail conftest.undefs
16937 rm -f conftest.undefs
16939 cat >>$CONFIG_STATUS <<\_ACEOF
16940 # Let's still pretend it is `configure' which instantiates (i.e., don't
16941 # use $as_me), people would be surprised to read:
16942 # /* config.h. Generated by config.status. */
16943 if test x"$ac_file" = x-; then
16944 echo "/* Generated by configure. */" >$tmp/config.h
16946 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16948 cat $tmp/in >>$tmp/config.h
16950 if test x"$ac_file" != x-; then
16951 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16952 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16953 echo "$as_me: $ac_file is unchanged" >&6;}
16955 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16957 X"$ac_file" : 'X\(//\)[^/]' \| \
16958 X"$ac_file" : 'X\(//\)$' \| \
16959 X"$ac_file" : 'X\(/\)' \| \
16960 . : '\(.\)' 2>/dev/null ||
16962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16964 /^X\(\/\/\)$/{ s//\1/; q; }
16965 /^X\(\/\).*/{ s//\1/; q; }
16967 { case "$ac_dir" in
16968 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16972 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16973 case $as_mkdir_dir in
16974 # Skip DOS drivespec
16975 ?:) as_incr_dir=$as_mkdir_dir ;;
16977 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16978 test -d "$as_incr_dir" ||
16979 mkdir "$as_incr_dir" ||
16980 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16981 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16982 { (exit 1); exit 1; }; }
16988 mv $tmp/config.h $ac_file
16992 rm -f $tmp/config.h
16994 # Run the commands associated with the file.
16996 src/include/pg_config.h )
16997 # Update timestamp for pg_config.h (see Makefile.global)
16998 echo >src/include/stamp-h
17003 cat >>$CONFIG_STATUS <<\_ACEOF
17006 # CONFIG_LINKS section.
17009 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17010 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17011 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17013 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17014 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17016 if test ! -r $srcdir/$ac_source; then
17017 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17018 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17019 { (exit 1); exit 1; }; }
17023 # Make relative symlinks.
17024 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17025 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17026 X"$ac_dest" : 'X\(//\)[^/]' \| \
17027 X"$ac_dest" : 'X\(//\)$' \| \
17028 X"$ac_dest" : 'X\(/\)' \| \
17029 . : '\(.\)' 2>/dev/null ||
17031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17033 /^X\(\/\/\)$/{ s//\1/; q; }
17034 /^X\(\/\).*/{ s//\1/; q; }
17036 { case "$ac_dest_dir" in
17037 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17040 as_dummy="$ac_dest_dir"
17041 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17042 case $as_mkdir_dir in
17043 # Skip DOS drivespec
17044 ?:) as_incr_dir=$as_mkdir_dir ;;
17046 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17047 test -d "$as_incr_dir" ||
17048 mkdir "$as_incr_dir" ||
17049 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17050 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17051 { (exit 1); exit 1; }; }
17058 if test "$ac_dest_dir" != .; then
17059 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17060 # A "../" for each directory in $ac_dir_suffix.
17061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17063 ac_dir_suffix= ac_top_builddir=
17067 .) # No --srcdir option. We are building in place.
17069 if test -z "$ac_top_builddir"; then
17072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17074 [\\/]* | ?:[\\/]* ) # Absolute path.
17075 ac_srcdir=$srcdir$ac_dir_suffix;
17076 ac_top_srcdir=$srcdir ;;
17077 *) # Relative path.
17078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17081 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17083 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17084 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17085 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17086 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17090 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17091 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17094 # Make a symlink if possible; otherwise try a hard link.
17095 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17096 ln $srcdir/$ac_source $ac_dest ||
17097 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17098 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17099 { (exit 1); exit 1; }; }
17103 cat >>$CONFIG_STATUS <<\_ACEOF
17105 { (exit 0); exit 0; }
17107 chmod +x $CONFIG_STATUS
17108 ac_clean_files=$ac_clean_files_save
17111 # configure is writing to config.log, and then calls config.status.
17112 # config.status does its own redirection, appending to config.log.
17113 # Unfortunately, on DOS this fails, as config.log is still kept open
17114 # by configure, so config.status won't be able to write to it; its
17115 # output is simply discarded. So we exec the FD to /dev/null,
17116 # effectively closing config.log, so it can be properly (re)opened and
17117 # appended to by config.status. When coming back to configure, we
17118 # need to make the FD available again.
17119 if test "$no_create" != yes; then
17122 $SHELL $CONFIG_STATUS || ac_cs_success=false
17124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17125 # would make configure fail if this is the last instruction.
17126 $ac_cs_success || { (exit 1); exit 1; }