2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3b1.
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.3b1'
262 PACKAGE_STRING='PostgreSQL 7.3b1'
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.3b1 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.3b1:";;
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 character set 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 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.3b1
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.3b1, 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;}
2445 # Check if the compiler still works with the template settings
2446 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2447 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line $LINENO "configure"
2451 #include "confdefs.h"
2453 #ifdef F77_DUMMY_MAIN
2457 int F77_DUMMY_MAIN() { return 1; }
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2469 (eval $ac_link) 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest$ac_exeext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2487 echo "$as_me: error: cannot proceed" >&2;}
2488 { (exit 1); exit 1; }; }
2490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498 # On Suns, sometimes $CPP names a directory.
2499 if test -n "$CPP" && test -d "$CPP"; then
2502 if test -z "$CPP"; then
2503 if test "${ac_cv_prog_CPP+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 # Double quotes because CPP needs to be expanded
2507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2510 for ac_c_preproc_warn_flag in '' yes
2512 # Use a header file that comes with gcc, so configuring glibc
2513 # with a fresh cross-compiler works.
2514 # On the NeXT, cc -E runs the code through the compiler's parser,
2515 # not just through cpp. "Syntax error" is here to catch this case.
2516 cat >conftest.$ac_ext <<_ACEOF
2517 #line $LINENO "configure"
2518 #include "confdefs.h"
2522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525 egrep -v '^ *\+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } >/dev/null; then
2530 if test -s conftest.err; then
2531 ac_cpp_err=$ac_c_preproc_warn_flag
2538 if test -z "$ac_cpp_err"; then
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 # Broken: fails on valid input.
2546 rm -f conftest.err conftest.$ac_ext
2548 # OK, works on sane cases. Now check whether non-existent headers
2549 # can be detected and how.
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <ac_nonexistent.h>
2555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2558 egrep -v '^ *\+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } >/dev/null; then
2563 if test -s conftest.err; then
2564 ac_cpp_err=$ac_c_preproc_warn_flag
2571 if test -z "$ac_cpp_err"; then
2572 # Broken: success on invalid input.
2575 echo "$as_me: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 # Passes both tests.
2581 rm -f conftest.err conftest.$ac_ext
2584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2585 rm -f conftest.err conftest.$ac_ext
2586 if $ac_preproc_ok; then
2598 echo "$as_me:$LINENO: result: $CPP" >&5
2599 echo "${ECHO_T}$CPP" >&6
2601 for ac_c_preproc_warn_flag in '' yes
2603 # Use a header file that comes with gcc, so configuring glibc
2604 # with a fresh cross-compiler works.
2605 # On the NeXT, cc -E runs the code through the compiler's parser,
2606 # not just through cpp. "Syntax error" is here to catch this case.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 #include "confdefs.h"
2613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2616 egrep -v '^ *\+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } >/dev/null; then
2621 if test -s conftest.err; then
2622 ac_cpp_err=$ac_c_preproc_warn_flag
2629 if test -z "$ac_cpp_err"; then
2632 echo "$as_me: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 # Broken: fails on valid input.
2637 rm -f conftest.err conftest.$ac_ext
2639 # OK, works on sane cases. Now check whether non-existent headers
2640 # can be detected and how.
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <ac_nonexistent.h>
2646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649 egrep -v '^ *\+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } >/dev/null; then
2654 if test -s conftest.err; then
2655 ac_cpp_err=$ac_c_preproc_warn_flag
2662 if test -z "$ac_cpp_err"; then
2663 # Broken: success on invalid input.
2666 echo "$as_me: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 # Passes both tests.
2672 rm -f conftest.err conftest.$ac_ext
2675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2676 rm -f conftest.err conftest.$ac_ext
2677 if $ac_preproc_ok; then
2680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2681 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2682 { (exit 1); exit 1; }; }
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 # Create compiler version string
2694 if test x"$GCC" = x"yes" ; then
2695 cc_string="GCC `${CC} --version | sed q`"
2700 cat >>confdefs.h <<_ACEOF
2701 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2707 # Automatic dependency tracking
2711 # Check whether --enable-depend or --disable-depend was given.
2712 if test "${enable_depend+set}" = set; then
2713 enableval="$enable_depend"
2723 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2724 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2725 { (exit 1); exit 1; }; }
2738 # Enable assert checks
2742 # Check whether --enable-cassert or --disable-cassert was given.
2743 if test "${enable_cassert+set}" = set; then
2744 enableval="$enable_cassert"
2749 cat >>confdefs.h <<\_ACEOF
2750 #define USE_ASSERT_CHECKING 1
2758 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2759 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2760 { (exit 1); exit 1; }; }
2772 # Include directories
2776 # SRCH_INC comes from the template file
2777 for dir in $with_includes $SRCH_INC; do
2778 if test -d "$dir"; then
2779 INCLUDES="$INCLUDES -I$dir"
2781 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2782 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2790 # Library directories
2794 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2795 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2796 if test -d "$dir"; then
2797 LIBDIRS="$LIBDIRS -L$dir"
2799 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2800 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2809 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2810 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2814 # Check whether --with-tcl or --without-tcl was given.
2815 if test "${with_tcl+set}" = set; then
2826 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2827 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2828 { (exit 1); exit 1; }; }
2837 echo "$as_me:$LINENO: result: $with_tcl" >&5
2838 echo "${ECHO_T}$with_tcl" >&6
2841 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2842 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2843 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2844 if test "$with_tcl" = yes; then
2848 # Check whether --with-tk or --without-tk was given.
2849 if test "${with_tk+set}" = set; then
2860 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2861 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2862 { (exit 1); exit 1; }; }
2874 echo "$as_me:$LINENO: result: $with_tk" >&5
2875 echo "${ECHO_T}$with_tk" >&6
2879 # We see if the path to the Tcl/Tk configuration scripts is specified.
2880 # This will override the use of tclsh to find the paths to search.
2885 # Check whether --with-tclconfig or --without-tclconfig was given.
2886 if test "${with_tclconfig+set}" = set; then
2887 withval="$with_tclconfig"
2891 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2893 { (exit 1); exit 1; }; }
2896 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2897 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2898 { (exit 1); exit 1; }; }
2908 # We see if the path to the Tk configuration scripts is specified.
2909 # This will override the use of tclsh to find the paths to search.
2914 # Check whether --with-tkconfig or --without-tkconfig was given.
2915 if test "${with_tkconfig+set}" = set; then
2916 withval="$with_tkconfig"
2920 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2921 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2922 { (exit 1); exit 1; }; }
2925 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2927 { (exit 1); exit 1; }; }
2938 # Optionally build Perl modules (Pg.pm and PL/Perl)
2940 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2941 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2945 # Check whether --with-perl or --without-perl was given.
2946 if test "${with_perl+set}" = set; then
2947 withval="$with_perl"
2957 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2958 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2959 { (exit 1); exit 1; }; }
2968 echo "$as_me:$LINENO: result: $with_perl" >&5
2969 echo "${ECHO_T}$with_perl" >&6
2973 # Optionally build Python interface module
2975 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2976 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2980 # Check whether --with-python or --without-python was given.
2981 if test "${with_python+set}" = set; then
2982 withval="$with_python"
2992 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
2993 echo "$as_me: error: no argument expected for --with-python option" >&2;}
2994 { (exit 1); exit 1; }; }
3003 echo "$as_me:$LINENO: result: $with_python" >&5
3004 echo "${ECHO_T}$with_python" >&6
3008 # Optionally build the Java/JDBC tools
3010 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3011 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3015 # Check whether --with-java or --without-java was given.
3016 if test "${with_java+set}" = set; then
3017 withval="$with_java"
3021 echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3024 for ac_prog in jakarta-ant ant ant.sh ant.bat
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_path_ANT+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 if test -n "$ANT"; then
3058 echo "$as_me:$LINENO: result: $ANT" >&5
3059 echo "${ECHO_T}$ANT" >&6
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3065 test -n "$ANT" && break
3069 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3070 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3071 if test "${pgac_cv_prog_ant_works+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 cat > conftest.java << EOF
3076 public class conftest {
3077 int testmethod(int a, int b) {
3083 cat > conftest.xml << EOF
3084 <project name="conftest" default="conftest">
3085 <target name="conftest">
3086 <javac srcdir="." includes="conftest.java">
3092 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3093 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3094 (eval $pgac_cmd) 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3099 if test $? = 0 && test -f ./conftest.class ; then
3100 pgac_cv_prog_ant_works=yes
3102 echo "configure: failed java program was:" >&5
3103 cat conftest.java >&5
3104 echo "configure: failed build file was:" >&5
3105 cat conftest.xml >&5
3106 pgac_cv_prog_ant_works=no
3109 rm -f conftest* core core.* *.core
3112 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3113 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3115 if test "$pgac_cv_prog_ant_works" != yes; then
3116 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3117 echo "$as_me: error: ant does not work" >&2;}
3118 { (exit 1); exit 1; }; }
3122 if test -z "$ANT"; then
3123 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3124 echo "$as_me: error: Ant is required to build Java components" >&2;}
3125 { (exit 1); exit 1; }; }
3127 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3128 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3129 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3130 { (exit 1); exit 1; }; }
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3138 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3139 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3140 { (exit 1); exit 1; }; }
3146 echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3156 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3157 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3161 # Check whether --with-krb4 or --without-krb4 was given.
3162 if test "${with_krb4+set}" = set; then
3163 withval="$with_krb4"
3167 krb4_prefix=/usr/athena
3174 krb4_prefix=$withval
3183 if test "$with_krb4" = yes; then
3185 echo "$as_me:$LINENO: result: yes" >&5
3186 echo "${ECHO_T}yes" >&6
3188 cat >>confdefs.h <<\_ACEOF
3193 if test -d "$krb4_prefix/include"; then
3194 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3196 if test -d "$krb4_prefix/lib"; then
3197 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3200 krb_srvtab="/etc/srvtab"
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3214 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3215 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3219 # Check whether --with-krb5 or --without-krb5 was given.
3220 if test "${with_krb5+set}" = set; then
3221 withval="$with_krb5"
3225 krb5_prefix=/usr/athena
3232 krb5_prefix=$withval
3241 if test "$with_krb5" = yes; then
3243 echo "$as_me:$LINENO: result: yes" >&5
3244 echo "${ECHO_T}yes" >&6
3246 cat >>confdefs.h <<\_ACEOF
3251 if test -d "$krb5_prefix/include"; then
3252 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3254 if test -d "$krb5_prefix/lib"; then
3255 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3258 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3269 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3270 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3271 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3272 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3273 { (exit 1); exit 1; }; }
3280 # Kerberos configuration parameters
3285 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3286 if test "${with_krb_srvnam+set}" = set; then
3287 withval="$with_krb_srvnam"
3291 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3292 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3293 { (exit 1); exit 1; }; }
3296 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3297 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3298 { (exit 1); exit 1; }; }
3306 with_krb_srvnam="postgres"
3310 cat >>confdefs.h <<_ACEOF
3311 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3319 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3320 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3324 # Check whether --with-pam or --without-pam was given.
3325 if test "${with_pam+set}" = set; then
3331 cat >>confdefs.h <<\_ACEOF
3340 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3341 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3342 { (exit 1); exit 1; }; }
3351 echo "$as_me:$LINENO: result: $with_pam" >&5
3352 echo "${ECHO_T}$with_pam" >&6
3362 # Check whether --with-openssl or --without-openssl was given.
3363 if test "${with_openssl+set}" = set; then
3364 withval="$with_openssl"
3368 openssl_prefix=/usr/local/ssl
3375 openssl_prefix=$withval
3384 if test "$with_openssl" = yes; then
3386 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3387 echo "${ECHO_T}building with OpenSSL support" >&6
3389 cat >>confdefs.h <<\_ACEOF
3394 if test -d "${openssl_prefix}/include" ; then
3395 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3397 if test -d "${openssl_prefix}/lib" ; then
3398 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3413 # Check whether --with-readline or --without-readline was given.
3414 if test "${with_readline+set}" = set; then
3415 withval="$with_readline"
3425 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3426 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3427 { (exit 1); exit 1; }; }
3443 # Check whether --with-zlib or --without-zlib was given.
3444 if test "${with_zlib+set}" = set; then
3445 withval="$with_zlib"
3455 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3456 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3457 { (exit 1); exit 1; }; }
3469 # Assume system is ELF if it predefines __ELF__ as 1,
3470 # otherwise believe host_os based default.
3472 freebsd1*|freebsd2*) elf=no;;
3473 freebsd3*|freebsd4*) elf=yes;;
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486 egrep "yes" >/dev/null 2>&1; then
3489 if test "X$elf" = "Xyes" ; then
3501 CPPFLAGS="$CPPFLAGS $INCLUDES"
3502 LDFLAGS="$LDFLAGS $LIBDIRS"
3504 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3505 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3506 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3507 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3510 for ac_prog in gawk mawk nawk awk
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_AWK+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 if test -n "$AWK"; then
3520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_AWK="$ac_prog"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test -n "$AWK"; then
3540 echo "$as_me:$LINENO: result: $AWK" >&5
3541 echo "${ECHO_T}$AWK" >&6
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3547 test -n "$AWK" && break
3550 echo "$as_me:$LINENO: checking for flex" >&5
3551 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3552 if test "${pgac_cv_path_flex+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 # Let the user override the test
3556 if test -n "$FLEX"; then
3557 pgac_cv_path_flex=$FLEX
3561 for pgac_dir in $PATH; do
3562 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3565 for pgac_prog in flex lex; do
3566 pgac_candidate="$pgac_dir/$pgac_prog"
3567 if test -f "$pgac_candidate" \
3568 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3570 echo '%%' > conftest.l
3571 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3572 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3573 pgac_broken_flex=$pgac_candidate
3577 pgac_cv_path_flex=$pgac_candidate
3585 : ${pgac_cv_path_flex=no}
3589 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3590 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3591 if test x"$pgac_cv_path_flex" = x"no"; then
3592 if test -n "$pgac_broken_flex"; then
3593 { echo "$as_me:$LINENO: WARNING:
3594 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3595 *** should get version 2.5.4 or later." >&5
3596 echo "$as_me: WARNING:
3597 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3598 *** should get version 2.5.4 or later." >&2;}
3601 { echo "$as_me:$LINENO: WARNING:
3602 *** Without Flex you will not be able to build PostgreSQL from CVS or
3603 *** change any of the scanner definition files. You can obtain Flex from
3604 *** a GNU mirror site. (If you are using the official distribution of
3605 *** PostgreSQL then you do not need to worry about this because the Flex
3606 *** output is pre-generated.)" >&5
3607 echo "$as_me: WARNING:
3608 *** Without Flex you will not be able to build PostgreSQL from CVS or
3609 *** change any of the scanner definition files. You can obtain Flex from
3610 *** a GNU mirror site. (If you are using the official distribution of
3611 *** PostgreSQL then you do not need to worry about this because the Flex
3612 *** output is pre-generated.)" >&2;}
3615 if test x"$pgac_cv_path_flex" = x"no"; then
3618 FLEX=$pgac_cv_path_flex
3624 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3625 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3627 if test "$LN_S" = "ln -s"; then
3628 echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6
3631 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3632 echo "${ECHO_T}no, using $LN_S" >&6
3636 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3637 if test "${with_gnu_ld+set}" = set; then
3638 withval="$with_gnu_ld"
3639 test "$withval" = no || with_gnu_ld=yes
3644 if test "$GCC" = yes; then
3645 # Check if gcc -print-prog-name=ld gives a path.
3646 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3647 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3650 # gcc leaves a trailing carriage return which upsets mingw
3651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3656 # Accept absolute paths.
3657 [\\/]* | [A-Za-z]:[\\/]*)
3658 re_direlt='/[^/][^/]*/\.\./'
3659 # Canonicalize the path of ld
3660 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3661 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3662 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3664 test -z "$LD" && LD="$ac_prog"
3667 # If it fails, then pretend we aren't using GCC.
3671 # If it is relative, then search for the first ld in PATH.
3675 elif test "$with_gnu_ld" = yes; then
3676 echo "$as_me:$LINENO: checking for GNU ld" >&5
3677 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3679 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3680 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3682 if test "${ac_cv_path_LD+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 if test -z "$LD"; then
3686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3687 for ac_dir in $PATH; do
3688 test -z "$ac_dir" && ac_dir=.
3689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3690 ac_cv_path_LD="$ac_dir/$ac_prog"
3691 # Check to see if the program is GNU ld. I'd rather use --version,
3692 # but apparently some GNU ld's only accept -v.
3693 # Break only if it was the GNU/non-GNU ld that we prefer.
3694 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3695 test "$with_gnu_ld" != no && break
3697 test "$with_gnu_ld" != yes && break
3703 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3708 if test -n "$LD"; then
3709 echo "$as_me:$LINENO: result: $LD" >&5
3710 echo "${ECHO_T}$LD" >&6
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3717 { (exit 1); exit 1; }; }
3718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3720 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3724 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3725 ac_cv_prog_gnu_ld=yes
3727 ac_cv_prog_gnu_ld=no
3730 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3731 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3732 with_gnu_ld=$ac_cv_prog_gnu_ld
3737 case $host_os in sysv5*)
3738 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3739 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3740 if test "${pgac_cv_prog_ld_R+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 #include "confdefs.h"
3749 #ifdef F77_DUMMY_MAIN
3753 int F77_DUMMY_MAIN() { return 1; }
3763 rm -f conftest.$ac_objext conftest$ac_exeext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765 (eval $ac_link) 2>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -s conftest$ac_exeext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 pgac_cv_prog_ld_R=yes
3777 echo "$as_me: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 pgac_cv_prog_ld_R=no
3781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3782 LDFLAGS=$pgac_save_LDFLAGS
3785 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3786 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3787 ld_R_works=$pgac_cv_prog_ld_R
3790 if test -n "$ac_tool_prefix"; then
3791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3793 echo "$as_me:$LINENO: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_RANLIB+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 if test -n "$RANLIB"; then
3799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 RANLIB=$ac_cv_prog_RANLIB
3818 if test -n "$RANLIB"; then
3819 echo "$as_me:$LINENO: result: $RANLIB" >&5
3820 echo "${ECHO_T}$RANLIB" >&6
3822 echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3827 if test -z "$ac_cv_prog_RANLIB"; then
3828 ac_ct_RANLIB=$RANLIB
3829 # Extract the first word of "ranlib", so it can be a program name with args.
3830 set dummy ranlib; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -n "$ac_ct_RANLIB"; then
3837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_ac_ct_RANLIB="ranlib"
3847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3857 if test -n "$ac_ct_RANLIB"; then
3858 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3859 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3861 echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6
3865 RANLIB=$ac_ct_RANLIB
3867 RANLIB="$ac_cv_prog_RANLIB"
3870 for ac_prog in lorder
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_LORDER+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 if test -n "$LORDER"; then
3880 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_LORDER="$ac_prog"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 LORDER=$ac_cv_prog_LORDER
3899 if test -n "$LORDER"; then
3900 echo "$as_me:$LINENO: result: $LORDER" >&5
3901 echo "${ECHO_T}$LORDER" >&6
3903 echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3907 test -n "$LORDER" && break
3910 # Extract the first word of "tar", so it can be a program name with args.
3911 set dummy tar; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_TAR+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 if test -n "$TAR"; then
3942 echo "$as_me:$LINENO: result: $TAR" >&5
3943 echo "${ECHO_T}$TAR" >&6
3945 echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3950 if test -n "$ac_tool_prefix"; then
3951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3952 set dummy ${ac_tool_prefix}strip; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_STRIP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$STRIP"; then
3959 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 STRIP=$ac_cv_prog_STRIP
3978 if test -n "$STRIP"; then
3979 echo "$as_me:$LINENO: result: $STRIP" >&5
3980 echo "${ECHO_T}$STRIP" >&6
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3987 if test -z "$ac_cv_prog_STRIP"; then
3989 # Extract the first word of "strip", so it can be a program name with args.
3990 set dummy strip; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$ac_ct_STRIP"; then
3997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_STRIP="strip"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4017 if test -n "$ac_ct_STRIP"; then
4018 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4019 echo "${ECHO_T}$ac_ct_STRIP" >&6
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4027 STRIP="$ac_cv_prog_STRIP"
4031 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4032 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4033 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4034 STRIP_STATIC_LIB="$STRIP -x"
4035 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4036 echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6
4041 echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4048 for ac_prog in 'bison -y'
4050 # Extract the first word of "$ac_prog", so it can be a program name with args.
4051 set dummy $ac_prog; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_prog_YACC+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 if test -n "$YACC"; then
4058 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_YACC="$ac_prog"
4068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 YACC=$ac_cv_prog_YACC
4077 if test -n "$YACC"; then
4078 echo "$as_me:$LINENO: result: $YACC" >&5
4079 echo "${ECHO_T}$YACC" >&6
4081 echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6
4085 test -n "$YACC" && break
4088 if test -z "$YACC"; then
4089 { echo "$as_me:$LINENO: WARNING:
4090 *** Without Bison you will not be able to build PostgreSQL from CVS or
4091 *** change any of the parser definition files. You can obtain Bison from
4092 *** a GNU mirror site. (If you are using the official distribution of
4093 *** PostgreSQL then you do not need to worry about this because the Bison
4094 *** output is pre-generated.) To use a different yacc program (possible,
4095 *** but not recommended), set the environment variable YACC before running
4096 *** 'configure'." >&5
4097 echo "$as_me: WARNING:
4098 *** Without Bison you will not be able to build PostgreSQL from CVS or
4099 *** change any of the parser definition files. You can obtain Bison from
4100 *** a GNU mirror site. (If you are using the official distribution of
4101 *** PostgreSQL then you do not need to worry about this because the Bison
4102 *** output is pre-generated.) To use a different yacc program (possible,
4103 *** but not recommended), set the environment variable YACC before running
4104 *** 'configure'." >&2;}
4108 if test "$with_tk" = yes; then
4109 # Extract the first word of "wish", so it can be a program name with args.
4110 set dummy wish; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_WISH+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 WISH=$ac_cv_path_WISH
4140 if test -n "$WISH"; then
4141 echo "$as_me:$LINENO: result: $WISH" >&5
4142 echo "${ECHO_T}$WISH" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4148 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4149 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4150 { (exit 1); exit 1; }; }
4153 # Extract the first word of "perl", so it can be a program name with args.
4154 set dummy perl; ac_word=$2
4155 echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157 if test "${ac_cv_path_PERL+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 PERL=$ac_cv_path_PERL
4184 if test -n "$PERL"; then
4185 echo "$as_me:$LINENO: result: $PERL" >&5
4186 echo "${ECHO_T}$PERL" >&6
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4192 if test "$with_perl" = yes; then
4194 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4195 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4196 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4197 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4198 echo "${ECHO_T}$perl_installsitearch" >&6
4199 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4200 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4201 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4202 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4203 echo "${ECHO_T}$perl_installman3dir" >&6
4204 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4205 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4206 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4207 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4208 echo "${ECHO_T}$perl_archlibexp" >&6
4209 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4210 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4211 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4212 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4213 echo "${ECHO_T}$perl_privlibexp" >&6
4214 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4215 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4216 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4217 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4218 echo "${ECHO_T}$perl_useshrplib" >&6
4219 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4220 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4221 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4222 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4223 echo "${ECHO_T}$perl_man3ext" >&6
4225 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4226 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4227 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4228 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4229 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4230 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4231 echo "${ECHO_T}$perl_embed_ldflags" >&6
4234 if test "$with_python" = yes; then
4235 # Extract the first word of "python", so it can be a program name with args.
4236 set dummy python; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_path_PYTHON+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 PYTHON=$ac_cv_path_PYTHON
4266 if test -n "$PYTHON"; then
4267 echo "$as_me:$LINENO: result: $PYTHON" >&5
4268 echo "${ECHO_T}$PYTHON" >&6
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4274 if test x"$PYTHON" = x""; then
4275 { { echo "$as_me:$LINENO: error: Python not found" >&5
4276 echo "$as_me: error: Python not found" >&2;}
4277 { (exit 1); exit 1; }; }
4281 echo "$as_me:$LINENO: checking Python installation directories" >&5
4282 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4283 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4284 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4285 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4286 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4287 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4288 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4289 python_includespec="-I${python_prefix}/include/python${python_version}"
4290 if test "$python_prefix" != "$python_execprefix"; then
4291 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4294 # This should be enough of a message.
4295 if test "$python_prefix" != "$python_execprefix"; then
4296 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4297 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4299 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4300 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4307 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4308 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4310 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4311 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4312 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4313 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4314 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4316 pgac_tab=" " # tab character
4317 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"`
4319 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4320 echo "${ECHO_T}${python_libspec}" >&6
4330 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4333 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4334 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4335 if test "${ac_cv_lib_bsd_main+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 ac_check_lib_save_LIBS=$LIBS
4340 cat >conftest.$ac_ext <<_ACEOF
4341 #line $LINENO "configure"
4342 #include "confdefs.h"
4345 #ifdef F77_DUMMY_MAIN
4349 int F77_DUMMY_MAIN() { return 1; }
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361 (eval $ac_link) 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -s conftest$ac_exeext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_cv_lib_bsd_main=yes
4373 echo "$as_me: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 ac_cv_lib_bsd_main=no
4377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4378 LIBS=$ac_check_lib_save_LIBS
4380 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4381 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4382 if test $ac_cv_lib_bsd_main = yes; then
4383 cat >>confdefs.h <<_ACEOF
4384 #define HAVE_LIBBSD 1
4393 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4394 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4395 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_check_lib_save_LIBS=$LIBS
4400 cat >conftest.$ac_ext <<_ACEOF
4401 #line $LINENO "configure"
4402 #include "confdefs.h"
4404 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4410 char setproctitle ();
4411 #ifdef F77_DUMMY_MAIN
4415 int F77_DUMMY_MAIN() { return 1; }
4425 rm -f conftest.$ac_objext conftest$ac_exeext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -s conftest$ac_exeext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_lib_util_setproctitle=yes
4439 echo "$as_me: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4441 ac_cv_lib_util_setproctitle=no
4443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4444 LIBS=$ac_check_lib_save_LIBS
4446 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4447 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4448 if test $ac_cv_lib_util_setproctitle = yes; then
4449 cat >>confdefs.h <<_ACEOF
4450 #define HAVE_LIBUTIL 1
4458 echo "$as_me:$LINENO: checking for main in -lm" >&5
4459 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4460 if test "${ac_cv_lib_m_main+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 ac_check_lib_save_LIBS=$LIBS
4465 cat >conftest.$ac_ext <<_ACEOF
4466 #line $LINENO "configure"
4467 #include "confdefs.h"
4470 #ifdef F77_DUMMY_MAIN
4474 int F77_DUMMY_MAIN() { return 1; }
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4486 (eval $ac_link) 2>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -s conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 ac_cv_lib_m_main=yes
4498 echo "$as_me: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4503 LIBS=$ac_check_lib_save_LIBS
4505 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4506 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4507 if test $ac_cv_lib_m_main = yes; then
4508 cat >>confdefs.h <<_ACEOF
4517 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4518 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4519 if test "${ac_cv_lib_dl_main+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 ac_check_lib_save_LIBS=$LIBS
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 #include "confdefs.h"
4529 #ifdef F77_DUMMY_MAIN
4533 int F77_DUMMY_MAIN() { return 1; }
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -s conftest$ac_exeext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_lib_dl_main=yes
4557 echo "$as_me: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4559 ac_cv_lib_dl_main=no
4561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4562 LIBS=$ac_check_lib_save_LIBS
4564 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4565 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4566 if test $ac_cv_lib_dl_main = yes; then
4567 cat >>confdefs.h <<_ACEOF
4568 #define HAVE_LIBDL 1
4576 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4577 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4578 if test "${ac_cv_lib_nsl_main+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 ac_check_lib_save_LIBS=$LIBS
4583 cat >conftest.$ac_ext <<_ACEOF
4584 #line $LINENO "configure"
4585 #include "confdefs.h"
4588 #ifdef F77_DUMMY_MAIN
4592 int F77_DUMMY_MAIN() { return 1; }
4602 rm -f conftest.$ac_objext conftest$ac_exeext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4604 (eval $ac_link) 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -s conftest$ac_exeext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_lib_nsl_main=yes
4616 echo "$as_me: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4618 ac_cv_lib_nsl_main=no
4620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4621 LIBS=$ac_check_lib_save_LIBS
4623 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4624 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4625 if test $ac_cv_lib_nsl_main = yes; then
4626 cat >>confdefs.h <<_ACEOF
4627 #define HAVE_LIBNSL 1
4635 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4636 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4637 if test "${ac_cv_lib_socket_main+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 ac_check_lib_save_LIBS=$LIBS
4641 LIBS="-lsocket $LIBS"
4642 cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4644 #include "confdefs.h"
4647 #ifdef F77_DUMMY_MAIN
4651 int F77_DUMMY_MAIN() { return 1; }
4661 rm -f conftest.$ac_objext conftest$ac_exeext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -s conftest$ac_exeext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_cv_lib_socket_main=yes
4675 echo "$as_me: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 ac_cv_lib_socket_main=no
4679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4680 LIBS=$ac_check_lib_save_LIBS
4682 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4683 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4684 if test $ac_cv_lib_socket_main = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686 #define HAVE_LIBSOCKET 1
4689 LIBS="-lsocket $LIBS"
4694 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4695 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4696 if test "${ac_cv_lib_ipc_main+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 ac_check_lib_save_LIBS=$LIBS
4701 cat >conftest.$ac_ext <<_ACEOF
4702 #line $LINENO "configure"
4703 #include "confdefs.h"
4706 #ifdef F77_DUMMY_MAIN
4710 int F77_DUMMY_MAIN() { return 1; }
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -s conftest$ac_exeext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_lib_ipc_main=yes
4734 echo "$as_me: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4736 ac_cv_lib_ipc_main=no
4738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4739 LIBS=$ac_check_lib_save_LIBS
4741 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4742 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4743 if test $ac_cv_lib_ipc_main = yes; then
4744 cat >>confdefs.h <<_ACEOF
4745 #define HAVE_LIBIPC 1
4753 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4754 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4755 if test "${ac_cv_lib_IPC_main+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 ac_check_lib_save_LIBS=$LIBS
4760 cat >conftest.$ac_ext <<_ACEOF
4761 #line $LINENO "configure"
4762 #include "confdefs.h"
4765 #ifdef F77_DUMMY_MAIN
4769 int F77_DUMMY_MAIN() { return 1; }
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781 (eval $ac_link) 2>&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -s conftest$ac_exeext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_cv_lib_IPC_main=yes
4793 echo "$as_me: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 ac_cv_lib_IPC_main=no
4797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_check_lib_save_LIBS
4800 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4801 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4802 if test $ac_cv_lib_IPC_main = yes; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define HAVE_LIBIPC 1
4812 echo "$as_me:$LINENO: checking for main in -llc" >&5
4813 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4814 if test "${ac_cv_lib_lc_main+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 ac_check_lib_save_LIBS=$LIBS
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4821 #include "confdefs.h"
4824 #ifdef F77_DUMMY_MAIN
4828 int F77_DUMMY_MAIN() { return 1; }
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840 (eval $ac_link) 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -s conftest$ac_exeext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_lib_lc_main=yes
4852 echo "$as_me: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 ac_cv_lib_lc_main=no
4856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4857 LIBS=$ac_check_lib_save_LIBS
4859 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4860 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4861 if test $ac_cv_lib_lc_main = yes; then
4862 cat >>confdefs.h <<_ACEOF
4863 #define HAVE_LIBLC 1
4871 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4872 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4873 if test "${ac_cv_lib_dld_main+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 ac_check_lib_save_LIBS=$LIBS
4878 cat >conftest.$ac_ext <<_ACEOF
4879 #line $LINENO "configure"
4880 #include "confdefs.h"
4883 #ifdef F77_DUMMY_MAIN
4887 int F77_DUMMY_MAIN() { return 1; }
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899 (eval $ac_link) 2>&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -s conftest$ac_exeext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 ac_cv_lib_dld_main=yes
4911 echo "$as_me: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4913 ac_cv_lib_dld_main=no
4915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4916 LIBS=$ac_check_lib_save_LIBS
4918 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4919 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4920 if test $ac_cv_lib_dld_main = yes; then
4921 cat >>confdefs.h <<_ACEOF
4922 #define HAVE_LIBDLD 1
4930 echo "$as_me:$LINENO: checking for main in -lld" >&5
4931 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4932 if test "${ac_cv_lib_ld_main+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 ac_check_lib_save_LIBS=$LIBS
4937 cat >conftest.$ac_ext <<_ACEOF
4938 #line $LINENO "configure"
4939 #include "confdefs.h"
4942 #ifdef F77_DUMMY_MAIN
4946 int F77_DUMMY_MAIN() { return 1; }
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_lib_ld_main=yes
4970 echo "$as_me: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4972 ac_cv_lib_ld_main=no
4974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4975 LIBS=$ac_check_lib_save_LIBS
4977 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4978 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4979 if test $ac_cv_lib_ld_main = yes; then
4980 cat >>confdefs.h <<_ACEOF
4981 #define HAVE_LIBLD 1
4989 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4990 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4991 if test "${ac_cv_lib_compat_main+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-lcompat $LIBS"
4996 cat >conftest.$ac_ext <<_ACEOF
4997 #line $LINENO "configure"
4998 #include "confdefs.h"
5001 #ifdef F77_DUMMY_MAIN
5005 int F77_DUMMY_MAIN() { return 1; }
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -s conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 ac_cv_lib_compat_main=yes
5029 echo "$as_me: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5031 ac_cv_lib_compat_main=no
5033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5034 LIBS=$ac_check_lib_save_LIBS
5036 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5037 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5038 if test $ac_cv_lib_compat_main = yes; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define HAVE_LIBCOMPAT 1
5043 LIBS="-lcompat $LIBS"
5048 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5049 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5050 if test "${ac_cv_lib_BSD_main+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 ac_check_lib_save_LIBS=$LIBS
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line $LINENO "configure"
5057 #include "confdefs.h"
5060 #ifdef F77_DUMMY_MAIN
5064 int F77_DUMMY_MAIN() { return 1; }
5074 rm -f conftest.$ac_objext conftest$ac_exeext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076 (eval $ac_link) 2>&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -s conftest$ac_exeext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_lib_BSD_main=yes
5088 echo "$as_me: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5090 ac_cv_lib_BSD_main=no
5092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5093 LIBS=$ac_check_lib_save_LIBS
5095 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5096 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5097 if test $ac_cv_lib_BSD_main = yes; then
5098 cat >>confdefs.h <<_ACEOF
5099 #define HAVE_LIBBSD 1
5107 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5108 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5109 if test "${ac_cv_lib_gen_main+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 ac_check_lib_save_LIBS=$LIBS
5114 cat >conftest.$ac_ext <<_ACEOF
5115 #line $LINENO "configure"
5116 #include "confdefs.h"
5119 #ifdef F77_DUMMY_MAIN
5123 int F77_DUMMY_MAIN() { return 1; }
5133 rm -f conftest.$ac_objext conftest$ac_exeext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135 (eval $ac_link) 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } &&
5139 { ac_try='test -s conftest$ac_exeext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_lib_gen_main=yes
5147 echo "$as_me: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5149 ac_cv_lib_gen_main=no
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5152 LIBS=$ac_check_lib_save_LIBS
5154 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5155 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5156 if test $ac_cv_lib_gen_main = yes; then
5157 cat >>confdefs.h <<_ACEOF
5158 #define HAVE_LIBGEN 1
5166 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5167 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5168 if test "${ac_cv_lib_PW_main+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 ac_check_lib_save_LIBS=$LIBS
5173 cat >conftest.$ac_ext <<_ACEOF
5174 #line $LINENO "configure"
5175 #include "confdefs.h"
5178 #ifdef F77_DUMMY_MAIN
5182 int F77_DUMMY_MAIN() { return 1; }
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194 (eval $ac_link) 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -s conftest$ac_exeext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_lib_PW_main=yes
5206 echo "$as_me: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 ac_cv_lib_PW_main=no
5210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5211 LIBS=$ac_check_lib_save_LIBS
5213 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5214 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5215 if test $ac_cv_lib_PW_main = yes; then
5216 cat >>confdefs.h <<_ACEOF
5217 #define HAVE_LIBPW 1
5225 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5226 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5227 if test "${ac_cv_lib_resolv_main+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 ac_check_lib_save_LIBS=$LIBS
5231 LIBS="-lresolv $LIBS"
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 #include "confdefs.h"
5237 #ifdef F77_DUMMY_MAIN
5241 int F77_DUMMY_MAIN() { return 1; }
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253 (eval $ac_link) 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -s conftest$ac_exeext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_cv_lib_resolv_main=yes
5265 echo "$as_me: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 ac_cv_lib_resolv_main=no
5269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5270 LIBS=$ac_check_lib_save_LIBS
5272 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5273 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5274 if test $ac_cv_lib_resolv_main = yes; then
5275 cat >>confdefs.h <<_ACEOF
5276 #define HAVE_LIBRESOLV 1
5279 LIBS="-lresolv $LIBS"
5283 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5284 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5285 if test "${ac_cv_search_getopt_long+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_func_search_save_LIBS=$LIBS
5289 ac_cv_search_getopt_long=no
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5294 /* Override any gcc2 internal prototype to avoid an error. */
5298 /* We use char because int might match the return type of a gcc2
5299 builtin and then its argument prototype would still apply. */
5300 char getopt_long ();
5301 #ifdef F77_DUMMY_MAIN
5305 int F77_DUMMY_MAIN() { return 1; }
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -s conftest$ac_exeext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_cv_search_getopt_long="none required"
5329 echo "$as_me: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5333 if test "$ac_cv_search_getopt_long" = no; then
5334 for ac_lib in getopt; do
5335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5336 cat >conftest.$ac_ext <<_ACEOF
5337 #line $LINENO "configure"
5338 #include "confdefs.h"
5340 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346 char getopt_long ();
5347 #ifdef F77_DUMMY_MAIN
5351 int F77_DUMMY_MAIN() { return 1; }
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -s conftest$ac_exeext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_cv_search_getopt_long="-l$ac_lib"
5376 echo "$as_me: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5382 LIBS=$ac_func_search_save_LIBS
5384 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5385 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5386 if test "$ac_cv_search_getopt_long" != no; then
5387 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5393 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5394 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5395 if test "${ac_cv_lib_unix_main+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 ac_check_lib_save_LIBS=$LIBS
5400 cat >conftest.$ac_ext <<_ACEOF
5401 #line $LINENO "configure"
5402 #include "confdefs.h"
5405 #ifdef F77_DUMMY_MAIN
5409 int F77_DUMMY_MAIN() { return 1; }
5419 rm -f conftest.$ac_objext conftest$ac_exeext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5421 (eval $ac_link) 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -s conftest$ac_exeext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_lib_unix_main=yes
5433 echo "$as_me: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 ac_cv_lib_unix_main=no
5437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5438 LIBS=$ac_check_lib_save_LIBS
5440 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5441 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5442 if test $ac_cv_lib_unix_main = yes; then
5443 cat >>confdefs.h <<_ACEOF
5444 #define HAVE_LIBUNIX 1
5451 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5452 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5453 if test "${ac_cv_search_crypt+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_func_search_save_LIBS=$LIBS
5457 ac_cv_search_crypt=no
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5469 #ifdef F77_DUMMY_MAIN
5473 int F77_DUMMY_MAIN() { return 1; }
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_search_crypt="none required"
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5501 if test "$ac_cv_search_crypt" = no; then
5502 for ac_lib in crypt; do
5503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 #include "confdefs.h"
5508 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5515 #ifdef F77_DUMMY_MAIN
5519 int F77_DUMMY_MAIN() { return 1; }
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -s conftest$ac_exeext'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; }; then
5541 ac_cv_search_crypt="-l$ac_lib"
5544 echo "$as_me: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5550 LIBS=$ac_func_search_save_LIBS
5552 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5553 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5554 if test "$ac_cv_search_crypt" != no; then
5555 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5561 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5562 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5563 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 ac_check_lib_save_LIBS=$LIBS
5568 cat >conftest.$ac_ext <<_ACEOF
5569 #line $LINENO "configure"
5570 #include "confdefs.h"
5572 /* Override any gcc2 internal prototype to avoid an error. */
5576 /* We use char because int might match the return type of a gcc2
5577 builtin and then its argument prototype would still apply. */
5578 char __inet_ntoa ();
5579 #ifdef F77_DUMMY_MAIN
5583 int F77_DUMMY_MAIN() { return 1; }
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_lib_bind___inet_ntoa=yes
5607 echo "$as_me: failed program was:" >&5
5608 cat conftest.$ac_ext >&5
5609 ac_cv_lib_bind___inet_ntoa=no
5611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612 LIBS=$ac_check_lib_save_LIBS
5614 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5615 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5616 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5617 cat >>confdefs.h <<_ACEOF
5618 #define HAVE_LIBBIND 1
5626 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5627 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5628 if test "${ac_cv_search_fdatasync+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 ac_func_search_save_LIBS=$LIBS
5632 ac_cv_search_fdatasync=no
5633 cat >conftest.$ac_ext <<_ACEOF
5634 #line $LINENO "configure"
5635 #include "confdefs.h"
5637 /* Override any gcc2 internal prototype to avoid an error. */
5641 /* We use char because int might match the return type of a gcc2
5642 builtin and then its argument prototype would still apply. */
5644 #ifdef F77_DUMMY_MAIN
5648 int F77_DUMMY_MAIN() { return 1; }
5658 rm -f conftest.$ac_objext conftest$ac_exeext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -s conftest$ac_exeext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 ac_cv_search_fdatasync="none required"
5672 echo "$as_me: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5676 if test "$ac_cv_search_fdatasync" = no; then
5677 for ac_lib in rt posix4; do
5678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 #include "confdefs.h"
5683 /* Override any gcc2 internal prototype to avoid an error. */
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5690 #ifdef F77_DUMMY_MAIN
5694 int F77_DUMMY_MAIN() { return 1; }
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706 (eval $ac_link) 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -s conftest$ac_exeext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_search_fdatasync="-l$ac_lib"
5719 echo "$as_me: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5725 LIBS=$ac_func_search_save_LIBS
5727 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5728 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5729 if test "$ac_cv_search_fdatasync" != no; then
5730 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5735 if test "$with_readline" = yes; then
5737 echo "$as_me:$LINENO: checking for readline" >&5
5738 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5740 if test "${pgac_cv_check_readline+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 pgac_cv_check_readline=no
5744 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5745 for pgac_rllib in -lreadline -ledit ; do
5746 pgac_save_LIBS=$LIBS
5747 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5748 cat >conftest.$ac_ext <<_ACEOF
5749 #line $LINENO "configure"
5750 #include "confdefs.h"
5752 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5759 #ifdef F77_DUMMY_MAIN
5763 int F77_DUMMY_MAIN() { return 1; }
5773 rm -f conftest.$ac_objext conftest$ac_exeext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5775 (eval $ac_link) 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -s conftest$ac_exeext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5786 # NetBSD and OpenBSD have a broken linker that does not
5787 # recognize dependent libraries
5788 case $host_os in netbsd* | openbsd* )
5791 *) pgac_lib=" -lcurses" ;;
5795 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5799 echo "$as_me: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$pgac_save_LIBS
5806 LIBS=$pgac_save_LIBS
5810 if test "$pgac_cv_check_readline" != no ; then
5812 cat >>confdefs.h <<\_ACEOF
5813 #define HAVE_LIBREADLINE 1
5816 LIBS="$pgac_cv_check_readline $LIBS"
5817 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5818 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5820 echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5823 if test x"$pgac_cv_check_readline" = x"no"; then
5824 { { echo "$as_me:$LINENO: error: readline library not found
5825 Use --without-readline to disable readline support." >&5
5826 echo "$as_me: error: readline library not found
5827 Use --without-readline to disable readline support." >&2;}
5828 { (exit 1); exit 1; }; }
5832 if test "$with_zlib" = yes; then
5834 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5835 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5836 if test "${ac_cv_lib_z_inflate+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_check_lib_save_LIBS=$LIBS
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 #include "confdefs.h"
5845 /* Override any gcc2 internal prototype to avoid an error. */
5849 /* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */
5852 #ifdef F77_DUMMY_MAIN
5856 int F77_DUMMY_MAIN() { return 1; }
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868 (eval $ac_link) 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -s conftest$ac_exeext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_lib_z_inflate=yes
5880 echo "$as_me: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5882 ac_cv_lib_z_inflate=no
5884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5888 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5889 if test $ac_cv_lib_z_inflate = yes; then
5890 cat >>confdefs.h <<_ACEOF
5897 { { echo "$as_me:$LINENO: error: zlib library not found
5898 Use --without-zlib to disable zlib support." >&5
5899 echo "$as_me: error: zlib library not found
5900 Use --without-zlib to disable zlib support." >&2;}
5901 { (exit 1); exit 1; }; }
5906 if test "$with_krb4" = yes ; then
5908 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5909 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5910 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 ac_check_lib_save_LIBS=$LIBS
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5919 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */
5925 char des_encrypt ();
5926 #ifdef F77_DUMMY_MAIN
5930 int F77_DUMMY_MAIN() { return 1; }
5940 rm -f conftest.$ac_objext conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -s conftest$ac_exeext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_cv_lib_des_des_encrypt=yes
5954 echo "$as_me: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 ac_cv_lib_des_des_encrypt=no
5958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5959 LIBS=$ac_check_lib_save_LIBS
5961 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5962 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5963 if test $ac_cv_lib_des_des_encrypt = yes; then
5964 cat >>confdefs.h <<_ACEOF
5965 #define HAVE_LIBDES 1
5971 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
5972 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
5973 { (exit 1); exit 1; }; }
5977 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
5978 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
5979 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_check_lib_save_LIBS=$LIBS
5984 cat >conftest.$ac_ext <<_ACEOF
5985 #line $LINENO "configure"
5986 #include "confdefs.h"
5988 /* Override any gcc2 internal prototype to avoid an error. */
5992 /* We use char because int might match the return type of a gcc2
5993 builtin and then its argument prototype would still apply. */
5994 char krb_sendauth ();
5995 #ifdef F77_DUMMY_MAIN
5999 int F77_DUMMY_MAIN() { return 1; }
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011 (eval $ac_link) 2>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_lib_krb_krb_sendauth=yes
6023 echo "$as_me: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6025 ac_cv_lib_krb_krb_sendauth=no
6027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6028 LIBS=$ac_check_lib_save_LIBS
6030 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6031 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6032 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6033 cat >>confdefs.h <<_ACEOF
6034 #define HAVE_LIBKRB 1
6040 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6041 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6042 { (exit 1); exit 1; }; }
6047 if test "$with_krb5" = yes ; then
6048 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6049 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6050 if test "${ac_cv_search_com_err+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_com_err=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6066 #ifdef F77_DUMMY_MAIN
6070 int F77_DUMMY_MAIN() { return 1; }
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082 (eval $ac_link) 2>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_search_com_err="none required"
6094 echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6098 if test "$ac_cv_search_com_err" = no; then
6099 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 #include "confdefs.h"
6105 /* Override any gcc2 internal prototype to avoid an error. */
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6112 #ifdef F77_DUMMY_MAIN
6116 int F77_DUMMY_MAIN() { return 1; }
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_search_com_err="-l$ac_lib"
6141 echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6147 LIBS=$ac_func_search_save_LIBS
6149 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6150 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6151 if test "$ac_cv_search_com_err" != no; then
6152 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6155 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6156 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6157 { (exit 1); exit 1; }; }
6160 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6161 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6162 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 ac_func_search_save_LIBS=$LIBS
6166 ac_cv_search_krb5_encrypt=no
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 #include "confdefs.h"
6171 /* Override any gcc2 internal prototype to avoid an error. */
6175 /* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6177 char krb5_encrypt ();
6178 #ifdef F77_DUMMY_MAIN
6182 int F77_DUMMY_MAIN() { return 1; }
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_search_krb5_encrypt="none required"
6206 echo "$as_me: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210 if test "$ac_cv_search_krb5_encrypt" = no; then
6211 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6213 cat >conftest.$ac_ext <<_ACEOF
6214 #line $LINENO "configure"
6215 #include "confdefs.h"
6217 /* Override any gcc2 internal prototype to avoid an error. */
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6223 char krb5_encrypt ();
6224 #ifdef F77_DUMMY_MAIN
6228 int F77_DUMMY_MAIN() { return 1; }
6238 rm -f conftest.$ac_objext conftest$ac_exeext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6240 (eval $ac_link) 2>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -s conftest$ac_exeext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_cv_search_krb5_encrypt="-l$ac_lib"
6253 echo "$as_me: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6259 LIBS=$ac_func_search_save_LIBS
6261 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6262 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6263 if test "$ac_cv_search_krb5_encrypt" != no; then
6264 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6267 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6268 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6269 { (exit 1); exit 1; }; }
6272 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6273 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6274 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_func_search_save_LIBS=$LIBS
6278 ac_cv_search_krb5_sendauth=no
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6283 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6289 char krb5_sendauth ();
6290 #ifdef F77_DUMMY_MAIN
6294 int F77_DUMMY_MAIN() { return 1; }
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -s conftest$ac_exeext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_search_krb5_sendauth="none required"
6318 echo "$as_me: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322 if test "$ac_cv_search_krb5_sendauth" = no; then
6323 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6325 cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6329 /* Override any gcc2 internal prototype to avoid an error. */
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6335 char krb5_sendauth ();
6336 #ifdef F77_DUMMY_MAIN
6340 int F77_DUMMY_MAIN() { return 1; }
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352 (eval $ac_link) 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -s conftest$ac_exeext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_search_krb5_sendauth="-l$ac_lib"
6365 echo "$as_me: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6371 LIBS=$ac_func_search_save_LIBS
6373 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6374 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6375 if test "$ac_cv_search_krb5_sendauth" != no; then
6376 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6379 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6380 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6381 { (exit 1); exit 1; }; }
6386 if test "$with_openssl" = yes ; then
6388 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6389 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6390 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 ac_check_lib_save_LIBS=$LIBS
6394 LIBS="-lcrypto $LIBS"
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 #include "confdefs.h"
6399 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6405 char CRYPTO_new_ex_data ();
6406 #ifdef F77_DUMMY_MAIN
6410 int F77_DUMMY_MAIN() { return 1; }
6415 CRYPTO_new_ex_data ();
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422 (eval $ac_link) 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -s conftest$ac_exeext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6434 echo "$as_me: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439 LIBS=$ac_check_lib_save_LIBS
6441 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6442 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6443 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6444 cat >>confdefs.h <<_ACEOF
6445 #define HAVE_LIBCRYPTO 1
6448 LIBS="-lcrypto $LIBS"
6451 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6452 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6453 { (exit 1); exit 1; }; }
6457 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6458 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6459 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_check_lib_save_LIBS=$LIBS
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 #include "confdefs.h"
6468 /* Override any gcc2 internal prototype to avoid an error. */
6472 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6474 char SSL_library_init ();
6475 #ifdef F77_DUMMY_MAIN
6479 int F77_DUMMY_MAIN() { return 1; }
6484 SSL_library_init ();
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_lib_ssl_SSL_library_init=yes
6503 echo "$as_me: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6505 ac_cv_lib_ssl_SSL_library_init=no
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6508 LIBS=$ac_check_lib_save_LIBS
6510 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6511 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6512 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514 #define HAVE_LIBSSL 1
6520 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6521 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6522 { (exit 1); exit 1; }; }
6527 if test "$with_pam" = yes ; then
6529 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6530 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6531 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 ac_check_lib_save_LIBS=$LIBS
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 #include "confdefs.h"
6540 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6547 #ifdef F77_DUMMY_MAIN
6551 int F77_DUMMY_MAIN() { return 1; }
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563 (eval $ac_link) 2>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 ac_cv_lib_pam_pam_start=yes
6575 echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6577 ac_cv_lib_pam_pam_start=no
6579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6580 LIBS=$ac_check_lib_save_LIBS
6582 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6583 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6584 if test $ac_cv_lib_pam_pam_start = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 #define HAVE_LIBPAM 1
6592 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6593 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6594 { (exit 1); exit 1; }; }
6604 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6606 if test "${ac_cv_header_stdc+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 #include "confdefs.h"
6618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6621 egrep -v '^ *\+' conftest.er1 >conftest.err
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } >/dev/null; then
6626 if test -s conftest.err; then
6627 ac_cpp_err=$ac_c_preproc_warn_flag
6634 if test -z "$ac_cpp_err"; then
6635 ac_cv_header_stdc=yes
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 ac_cv_header_stdc=no
6641 rm -f conftest.err conftest.$ac_ext
6643 if test $ac_cv_header_stdc = yes; then
6644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6645 cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6647 #include "confdefs.h"
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 egrep "memchr" >/dev/null 2>&1; then
6655 ac_cv_header_stdc=no
6661 if test $ac_cv_header_stdc = yes; then
6662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6663 cat >conftest.$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6665 #include "confdefs.h"
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670 egrep "free" >/dev/null 2>&1; then
6673 ac_cv_header_stdc=no
6679 if test $ac_cv_header_stdc = yes; then
6680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6681 if test "$cross_compiling" = yes; then
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 #include "confdefs.h"
6688 #if ((' ' & 0x0FF) == 0x020)
6689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6692 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6693 || ('j' <= (c) && (c) <= 'r') \
6694 || ('s' <= (c) && (c) <= 'z'))
6695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6703 for (i = 0; i < 256; i++)
6704 if (XOR (islower (i), ISLOWER (i))
6705 || toupper (i) != TOUPPER (i))
6710 rm -f conftest$ac_exeext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712 (eval $ac_link) 2>&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6723 echo "$as_me: program exited with status $ac_status" >&5
6724 echo "$as_me: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 ac_cv_header_stdc=no
6729 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6734 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6735 if test $ac_cv_header_stdc = yes; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define STDC_HEADERS 1
6743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6754 inttypes.h stdint.h unistd.h
6756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6757 echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6763 #line $LINENO "configure"
6764 #include "confdefs.h"
6765 $ac_includes_default
6767 #include <$ac_header>
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 eval "$as_ac_Header=yes"
6783 echo "$as_me: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 eval "$as_ac_Header=no"
6787 rm -f conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6819 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
6821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6823 echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6831 # Is the header compilable?
6832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6837 $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 ac_header_compiler=yes
6854 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 ac_header_compiler=no
6858 rm -f conftest.$ac_objext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 #line $LINENO "configure"
6867 #include "confdefs.h"
6868 #include <$ac_header>
6870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6873 egrep -v '^ *\+' conftest.er1 >conftest.err
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } >/dev/null; then
6878 if test -s conftest.err; then
6879 ac_cpp_err=$ac_c_preproc_warn_flag
6886 if test -z "$ac_cpp_err"; then
6887 ac_header_preproc=yes
6889 echo "$as_me: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 ac_header_preproc=no
6893 rm -f conftest.err conftest.$ac_ext
6894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6895 echo "${ECHO_T}$ac_header_preproc" >&6
6897 # So? What about this header?
6898 case $ac_header_compiler:$ac_header_preproc in
6900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6912 echo "$as_me:$LINENO: checking for $ac_header" >&5
6913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 eval "$as_ac_Header=$ac_header_preproc"
6919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6924 cat >>confdefs.h <<_ACEOF
6925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6933 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6934 # netinet/in.h is included first.
6936 for ac_header in netinet/in.h
6938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6940 echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6948 # Is the header compilable?
6949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6951 cat >conftest.$ac_ext <<_ACEOF
6952 #line $LINENO "configure"
6953 #include "confdefs.h"
6954 $ac_includes_default
6955 #include <$ac_header>
6957 rm -f conftest.$ac_objext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_header_compiler=yes
6971 echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 ac_header_compiler=no
6975 rm -f conftest.$ac_objext conftest.$ac_ext
6976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6977 echo "${ECHO_T}$ac_header_compiler" >&6
6979 # Is the header present?
6980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6982 cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 #include "confdefs.h"
6985 #include <$ac_header>
6987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6990 egrep -v '^ *\+' conftest.er1 >conftest.err
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } >/dev/null; then
6995 if test -s conftest.err; then
6996 ac_cpp_err=$ac_c_preproc_warn_flag
7003 if test -z "$ac_cpp_err"; then
7004 ac_header_preproc=yes
7006 echo "$as_me: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7008 ac_header_preproc=no
7010 rm -f conftest.err conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7012 echo "${ECHO_T}$ac_header_preproc" >&6
7014 # So? What about this header?
7015 case $ac_header_compiler:$ac_header_preproc in
7017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7029 echo "$as_me:$LINENO: checking for $ac_header" >&5
7030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 eval "$as_ac_Header=$ac_header_preproc"
7036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041 cat >>confdefs.h <<_ACEOF
7042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7050 for ac_header in netinet/tcp.h
7052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7053 echo "$as_me:$LINENO: checking for $ac_header" >&5
7054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7061 $ac_includes_default
7062 #ifdef HAVE_NETINET_IN_H
7063 #include <netinet/in.h>
7067 #include <$ac_header>
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -s conftest.$ac_objext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 eval "$as_ac_Header=yes"
7083 echo "$as_me: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7085 eval "$as_ac_Header=no"
7087 rm -f conftest.$ac_objext conftest.$ac_ext
7089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7092 cat >>confdefs.h <<_ACEOF
7093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7101 if test "$with_readline" = yes; then
7103 for ac_header in readline/readline.h
7105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107 echo "$as_me:$LINENO: checking for $ac_header" >&5
7108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7115 # Is the header compilable?
7116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7120 #include "confdefs.h"
7121 $ac_includes_default
7122 #include <$ac_header>
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_header_compiler=yes
7138 echo "$as_me: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 ac_header_compiler=no
7142 rm -f conftest.$ac_objext conftest.$ac_ext
7143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144 echo "${ECHO_T}$ac_header_compiler" >&6
7146 # Is the header present?
7147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7151 #include "confdefs.h"
7152 #include <$ac_header>
7154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7157 egrep -v '^ *\+' conftest.er1 >conftest.err
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } >/dev/null; then
7162 if test -s conftest.err; then
7163 ac_cpp_err=$ac_c_preproc_warn_flag
7170 if test -z "$ac_cpp_err"; then
7171 ac_header_preproc=yes
7173 echo "$as_me: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7175 ac_header_preproc=no
7177 rm -f conftest.err conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7179 echo "${ECHO_T}$ac_header_preproc" >&6
7181 # So? What about this header?
7182 case $ac_header_compiler:$ac_header_preproc in
7184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7196 echo "$as_me:$LINENO: checking for $ac_header" >&5
7197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 eval "$as_ac_Header=$ac_header_preproc"
7203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7208 cat >>confdefs.h <<_ACEOF
7209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7214 for ac_header in readline.h
7216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7218 echo "$as_me:$LINENO: checking for $ac_header" >&5
7219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7226 # Is the header compilable?
7227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 #include "confdefs.h"
7232 $ac_includes_default
7233 #include <$ac_header>
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_header_compiler=yes
7249 echo "$as_me: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 ac_header_compiler=no
7253 rm -f conftest.$ac_objext conftest.$ac_ext
7254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7255 echo "${ECHO_T}$ac_header_compiler" >&6
7257 # Is the header present?
7258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7260 cat >conftest.$ac_ext <<_ACEOF
7261 #line $LINENO "configure"
7262 #include "confdefs.h"
7263 #include <$ac_header>
7265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7268 egrep -v '^ *\+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } >/dev/null; then
7273 if test -s conftest.err; then
7274 ac_cpp_err=$ac_c_preproc_warn_flag
7281 if test -z "$ac_cpp_err"; then
7282 ac_header_preproc=yes
7284 echo "$as_me: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 ac_header_preproc=no
7288 rm -f conftest.err conftest.$ac_ext
7289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7290 echo "${ECHO_T}$ac_header_preproc" >&6
7292 # So? What about this header?
7293 case $ac_header_compiler:$ac_header_preproc in
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7307 echo "$as_me:$LINENO: checking for $ac_header" >&5
7308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 eval "$as_ac_Header=$ac_header_preproc"
7314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7319 cat >>confdefs.h <<_ACEOF
7320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7324 { { echo "$as_me:$LINENO: error: readline header not found
7325 Use --without-readline to disable readline support." >&5
7326 echo "$as_me: error: readline header not found
7327 Use --without-readline to disable readline support." >&2;}
7328 { (exit 1); exit 1; }; }
7338 for ac_header in readline/history.h
7340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342 echo "$as_me:$LINENO: checking for $ac_header" >&5
7343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7350 # Is the header compilable?
7351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7355 #include "confdefs.h"
7356 $ac_includes_default
7357 #include <$ac_header>
7359 rm -f conftest.$ac_objext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361 (eval $ac_compile) 2>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_header_compiler=yes
7373 echo "$as_me: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7375 ac_header_compiler=no
7377 rm -f conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6
7381 # Is the header present?
7382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7384 cat >conftest.$ac_ext <<_ACEOF
7385 #line $LINENO "configure"
7386 #include "confdefs.h"
7387 #include <$ac_header>
7389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7392 egrep -v '^ *\+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } >/dev/null; then
7397 if test -s conftest.err; then
7398 ac_cpp_err=$ac_c_preproc_warn_flag
7405 if test -z "$ac_cpp_err"; then
7406 ac_header_preproc=yes
7408 echo "$as_me: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 ac_header_preproc=no
7412 rm -f conftest.err conftest.$ac_ext
7413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7414 echo "${ECHO_T}$ac_header_preproc" >&6
7416 # So? What about this header?
7417 case $ac_header_compiler:$ac_header_preproc in
7419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7431 echo "$as_me:$LINENO: checking for $ac_header" >&5
7432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 eval "$as_ac_Header=$ac_header_preproc"
7438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7443 cat >>confdefs.h <<_ACEOF
7444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449 for ac_header in history.h
7451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo "$as_me:$LINENO: checking for $ac_header" >&5
7454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7461 # Is the header compilable?
7462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7466 #include "confdefs.h"
7467 $ac_includes_default
7468 #include <$ac_header>
7470 rm -f conftest.$ac_objext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472 (eval $ac_compile) 2>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_header_compiler=yes
7484 echo "$as_me: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 ac_header_compiler=no
7488 rm -f conftest.$ac_objext conftest.$ac_ext
7489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7490 echo "${ECHO_T}$ac_header_compiler" >&6
7492 # Is the header present?
7493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7497 #include "confdefs.h"
7498 #include <$ac_header>
7500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7503 egrep -v '^ *\+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } >/dev/null; then
7508 if test -s conftest.err; then
7509 ac_cpp_err=$ac_c_preproc_warn_flag
7516 if test -z "$ac_cpp_err"; then
7517 ac_header_preproc=yes
7519 echo "$as_me: failed program was:" >&5
7520 cat conftest.$ac_ext >&5
7521 ac_header_preproc=no
7523 rm -f conftest.err conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "${ECHO_T}$ac_header_preproc" >&6
7527 # So? What about this header?
7528 case $ac_header_compiler:$ac_header_preproc in
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7542 echo "$as_me:$LINENO: checking for $ac_header" >&5
7543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 eval "$as_ac_Header=$ac_header_preproc"
7549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7559 { { echo "$as_me:$LINENO: error: history header not found
7560 Use --without-readline to disable readline support." >&5
7561 echo "$as_me: error: history header not found
7562 Use --without-readline to disable readline support." >&2;}
7563 { (exit 1); exit 1; }; }
7574 if test "$with_zlib" = yes; then
7575 if test "${ac_cv_header_zlib_h+set}" = set; then
7576 echo "$as_me:$LINENO: checking for zlib.h" >&5
7577 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7578 if test "${ac_cv_header_zlib_h+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7582 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7584 # Is the header compilable?
7585 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7586 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7587 cat >conftest.$ac_ext <<_ACEOF
7588 #line $LINENO "configure"
7589 #include "confdefs.h"
7590 $ac_includes_default
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_header_compiler=yes
7607 echo "$as_me: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7609 ac_header_compiler=no
7611 rm -f conftest.$ac_objext conftest.$ac_ext
7612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7613 echo "${ECHO_T}$ac_header_compiler" >&6
7615 # Is the header present?
7616 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7617 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7618 cat >conftest.$ac_ext <<_ACEOF
7619 #line $LINENO "configure"
7620 #include "confdefs.h"
7623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7626 egrep -v '^ *\+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } >/dev/null; then
7631 if test -s conftest.err; then
7632 ac_cpp_err=$ac_c_preproc_warn_flag
7639 if test -z "$ac_cpp_err"; then
7640 ac_header_preproc=yes
7642 echo "$as_me: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7644 ac_header_preproc=no
7646 rm -f conftest.err conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7648 echo "${ECHO_T}$ac_header_preproc" >&6
7650 # So? What about this header?
7651 case $ac_header_compiler:$ac_header_preproc in
7653 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7654 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7656 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7658 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7659 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7661 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7662 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7663 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7665 echo "$as_me:$LINENO: checking for zlib.h" >&5
7666 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7667 if test "${ac_cv_header_zlib_h+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 ac_cv_header_zlib_h=$ac_header_preproc
7672 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7673 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7676 if test $ac_cv_header_zlib_h = yes; then
7679 { { echo "$as_me:$LINENO: error: zlib header not found
7680 Use --without-zlib to disable zlib support." >&5
7681 echo "$as_me: error: zlib header not found
7682 Use --without-zlib to disable zlib support." >&2;}
7683 { (exit 1); exit 1; }; }
7689 if test "$with_krb4" = yes ; then
7690 if test "${ac_cv_header_krb_h+set}" = set; then
7691 echo "$as_me:$LINENO: checking for krb.h" >&5
7692 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7693 if test "${ac_cv_header_krb_h+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7697 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7699 # Is the header compilable?
7700 echo "$as_me:$LINENO: checking krb.h usability" >&5
7701 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7702 cat >conftest.$ac_ext <<_ACEOF
7703 #line $LINENO "configure"
7704 #include "confdefs.h"
7705 $ac_includes_default
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_header_compiler=yes
7722 echo "$as_me: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7724 ac_header_compiler=no
7726 rm -f conftest.$ac_objext conftest.$ac_ext
7727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7728 echo "${ECHO_T}$ac_header_compiler" >&6
7730 # Is the header present?
7731 echo "$as_me:$LINENO: checking krb.h presence" >&5
7732 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7735 #include "confdefs.h"
7738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7741 egrep -v '^ *\+' conftest.er1 >conftest.err
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } >/dev/null; then
7746 if test -s conftest.err; then
7747 ac_cpp_err=$ac_c_preproc_warn_flag
7754 if test -z "$ac_cpp_err"; then
7755 ac_header_preproc=yes
7757 echo "$as_me: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7759 ac_header_preproc=no
7761 rm -f conftest.err conftest.$ac_ext
7762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7763 echo "${ECHO_T}$ac_header_preproc" >&6
7765 # So? What about this header?
7766 case $ac_header_compiler:$ac_header_preproc in
7768 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7769 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7770 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7771 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7773 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7774 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7775 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7776 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7777 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7778 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7780 echo "$as_me:$LINENO: checking for krb.h" >&5
7781 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7782 if test "${ac_cv_header_krb_h+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 ac_cv_header_krb_h=$ac_header_preproc
7787 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7788 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7791 if test $ac_cv_header_krb_h = yes; then
7794 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7795 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7796 { (exit 1); exit 1; }; }
7802 if test "$with_krb5" = yes ; then
7803 if test "${ac_cv_header_krb5_h+set}" = set; then
7804 echo "$as_me:$LINENO: checking for krb5.h" >&5
7805 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7806 if test "${ac_cv_header_krb5_h+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7810 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7814 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7835 echo "$as_me: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 ac_header_compiler=no
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6
7843 # Is the header present?
7844 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7845 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7846 cat >conftest.$ac_ext <<_ACEOF
7847 #line $LINENO "configure"
7848 #include "confdefs.h"
7851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7854 egrep -v '^ *\+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } >/dev/null; then
7859 if test -s conftest.err; then
7860 ac_cpp_err=$ac_c_preproc_warn_flag
7867 if test -z "$ac_cpp_err"; then
7868 ac_header_preproc=yes
7870 echo "$as_me: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7872 ac_header_preproc=no
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7878 # So? What about this header?
7879 case $ac_header_compiler:$ac_header_preproc in
7881 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7886 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7893 echo "$as_me:$LINENO: checking for krb5.h" >&5
7894 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7895 if test "${ac_cv_header_krb5_h+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 ac_cv_header_krb5_h=$ac_header_preproc
7900 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7901 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7904 if test $ac_cv_header_krb5_h = yes; then
7907 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7908 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7909 { (exit 1); exit 1; }; }
7913 if test "${ac_cv_header_com_err_h+set}" = set; then
7914 echo "$as_me:$LINENO: checking for com_err.h" >&5
7915 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7916 if test "${ac_cv_header_com_err_h+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
7920 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
7922 # Is the header compilable?
7923 echo "$as_me:$LINENO: checking com_err.h usability" >&5
7924 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line $LINENO "configure"
7927 #include "confdefs.h"
7928 $ac_includes_default
7929 #include <com_err.h>
7931 rm -f conftest.$ac_objext
7932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933 (eval $ac_compile) 2>&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -s conftest.$ac_objext'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7943 ac_header_compiler=yes
7945 echo "$as_me: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7947 ac_header_compiler=no
7949 rm -f conftest.$ac_objext conftest.$ac_ext
7950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7951 echo "${ECHO_T}$ac_header_compiler" >&6
7953 # Is the header present?
7954 echo "$as_me:$LINENO: checking com_err.h presence" >&5
7955 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 #include <com_err.h>
7961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7964 egrep -v '^ *\+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } >/dev/null; then
7969 if test -s conftest.err; then
7970 ac_cpp_err=$ac_c_preproc_warn_flag
7977 if test -z "$ac_cpp_err"; then
7978 ac_header_preproc=yes
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 ac_header_preproc=no
7984 rm -f conftest.err conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7986 echo "${ECHO_T}$ac_header_preproc" >&6
7988 # So? What about this header?
7989 case $ac_header_compiler:$ac_header_preproc in
7991 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
7992 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
7994 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
7996 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
7997 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
7999 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8001 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8003 echo "$as_me:$LINENO: checking for com_err.h" >&5
8004 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8005 if test "${ac_cv_header_com_err_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_header_com_err_h=$ac_header_preproc
8010 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8011 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8014 if test $ac_cv_header_com_err_h = yes; then
8017 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8018 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8019 { (exit 1); exit 1; }; }
8025 if test "$with_openssl" = yes ; then
8026 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8027 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8028 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8029 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8033 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8035 # Is the header compilable?
8036 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8037 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8039 #line $LINENO "configure"
8040 #include "confdefs.h"
8041 $ac_includes_default
8042 #include <openssl/ssl.h>
8044 rm -f conftest.$ac_objext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -s conftest.$ac_objext'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 ac_header_compiler=yes
8058 echo "$as_me: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8060 ac_header_compiler=no
8062 rm -f conftest.$ac_objext conftest.$ac_ext
8063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8064 echo "${ECHO_T}$ac_header_compiler" >&6
8066 # Is the header present?
8067 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8068 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8069 cat >conftest.$ac_ext <<_ACEOF
8070 #line $LINENO "configure"
8071 #include "confdefs.h"
8072 #include <openssl/ssl.h>
8074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8077 egrep -v '^ *\+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } >/dev/null; then
8082 if test -s conftest.err; then
8083 ac_cpp_err=$ac_c_preproc_warn_flag
8090 if test -z "$ac_cpp_err"; then
8091 ac_header_preproc=yes
8093 echo "$as_me: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8095 ac_header_preproc=no
8097 rm -f conftest.err conftest.$ac_ext
8098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8099 echo "${ECHO_T}$ac_header_preproc" >&6
8101 # So? What about this header?
8102 case $ac_header_compiler:$ac_header_preproc in
8104 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8105 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8107 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8109 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8110 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8111 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8112 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8113 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8114 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8116 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8117 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8118 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8123 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8127 if test $ac_cv_header_openssl_ssl_h = yes; then
8130 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8131 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8132 { (exit 1); exit 1; }; }
8136 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8137 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8138 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8139 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8143 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8145 # Is the header compilable?
8146 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8147 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 #include "confdefs.h"
8151 $ac_includes_default
8152 #include <openssl/err.h>
8154 rm -f conftest.$ac_objext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8156 (eval $ac_compile) 2>&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_header_compiler=yes
8168 echo "$as_me: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8170 ac_header_compiler=no
8172 rm -f conftest.$ac_objext conftest.$ac_ext
8173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8174 echo "${ECHO_T}$ac_header_compiler" >&6
8176 # Is the header present?
8177 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8178 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8182 #include <openssl/err.h>
8184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8187 egrep -v '^ *\+' conftest.er1 >conftest.err
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } >/dev/null; then
8192 if test -s conftest.err; then
8193 ac_cpp_err=$ac_c_preproc_warn_flag
8200 if test -z "$ac_cpp_err"; then
8201 ac_header_preproc=yes
8203 echo "$as_me: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8205 ac_header_preproc=no
8207 rm -f conftest.err conftest.$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8209 echo "${ECHO_T}$ac_header_preproc" >&6
8211 # So? What about this header?
8212 case $ac_header_compiler:$ac_header_preproc in
8214 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8215 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8217 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8219 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8220 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8222 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8224 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8226 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8227 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8228 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 ac_cv_header_openssl_err_h=$ac_header_preproc
8233 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8234 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8237 if test $ac_cv_header_openssl_err_h = yes; then
8240 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8241 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8242 { (exit 1); exit 1; }; }
8248 if test "$with_pam" = yes ; then
8249 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8250 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8251 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8252 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8256 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8258 # Is the header compilable?
8259 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8260 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8263 #include "confdefs.h"
8264 $ac_includes_default
8265 #include <security/pam_appl.h>
8267 rm -f conftest.$ac_objext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8269 (eval $ac_compile) 2>&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_header_compiler=yes
8281 echo "$as_me: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8283 ac_header_compiler=no
8285 rm -f conftest.$ac_objext conftest.$ac_ext
8286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8287 echo "${ECHO_T}$ac_header_compiler" >&6
8289 # Is the header present?
8290 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8291 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line $LINENO "configure"
8294 #include "confdefs.h"
8295 #include <security/pam_appl.h>
8297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8300 egrep -v '^ *\+' conftest.er1 >conftest.err
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } >/dev/null; then
8305 if test -s conftest.err; then
8306 ac_cpp_err=$ac_c_preproc_warn_flag
8313 if test -z "$ac_cpp_err"; then
8314 ac_header_preproc=yes
8316 echo "$as_me: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8318 ac_header_preproc=no
8320 rm -f conftest.err conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8322 echo "${ECHO_T}$ac_header_preproc" >&6
8324 # So? What about this header?
8325 case $ac_header_compiler:$ac_header_preproc in
8327 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8328 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8330 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8332 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8333 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8334 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8335 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8336 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8337 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8339 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8340 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8341 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8346 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8350 if test $ac_cv_header_security_pam_appl_h = yes; then
8353 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8354 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8355 { (exit 1); exit 1; }; }
8363 ## Types, structures, compiler characteristics
8367 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8368 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8369 if test "${ac_cv_c_const+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 #include "confdefs.h"
8376 #ifdef F77_DUMMY_MAIN
8380 int F77_DUMMY_MAIN() { return 1; }
8385 /* FIXME: Include the comments suggested by Paul. */
8387 /* Ultrix mips cc rejects this. */
8388 typedef int charset[2];
8390 /* SunOS 4.1.1 cc rejects this. */
8391 char const *const *ccp;
8393 /* NEC SVR4.0.2 mips cc rejects this. */
8394 struct point {int x, y;};
8395 static struct point const zero = {0,0};
8396 /* AIX XL C 1.02.0.0 rejects this.
8397 It does not let you subtract one const X* pointer from another in
8398 an arm of an if-expression whose if-part is not a constant
8400 const char *g = "string";
8401 ccp = &g + (g ? g-g : 0);
8402 /* HPUX 7.0 cc rejects these. */
8405 ccp = (char const *const *) p;
8406 { /* SCO 3.2v4 cc rejects this. */
8408 char const *s = 0 ? (char *) 0 : (char const *) 0;
8412 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8414 const int *foo = &x[0];
8417 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8418 typedef const int *iptr;
8422 { /* AIX XL C 1.02.0.0 rejects this saying
8423 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8424 struct s { int j; const int *ap[3]; };
8425 struct s *b; b->j = 5;
8427 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438 (eval $ac_compile) 2>&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8450 echo "$as_me: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8454 rm -f conftest.$ac_objext conftest.$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8457 echo "${ECHO_T}$ac_cv_c_const" >&6
8458 if test $ac_cv_c_const = no; then
8460 cat >>confdefs.h <<\_ACEOF
8466 echo "$as_me:$LINENO: checking for inline" >&5
8467 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8468 if test "${ac_cv_c_inline+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 for ac_kw in inline __inline__ __inline; do
8473 cat >conftest.$ac_ext <<_ACEOF
8474 #line $LINENO "configure"
8475 #include "confdefs.h"
8477 static $ac_kw int static_foo () {return 0; }
8478 $ac_kw int foo () {return 0; }
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -s conftest.$ac_objext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_c_inline=$ac_kw; break
8496 echo "$as_me: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 rm -f conftest.$ac_objext conftest.$ac_ext
8503 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8504 echo "${ECHO_T}$ac_cv_c_inline" >&6
8505 case $ac_cv_c_inline in
8508 cat >>confdefs.h <<\_ACEOF
8512 *) cat >>confdefs.h <<_ACEOF
8513 #define inline $ac_cv_c_inline
8518 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8519 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8520 if test "${ac_cv_c_stringize+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8525 #include "confdefs.h"
8528 char *s = x(teststring);
8530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8531 egrep "#teststring" >/dev/null 2>&1; then
8532 ac_cv_c_stringize=no
8534 ac_cv_c_stringize=yes
8539 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8540 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8541 if test $ac_cv_c_stringize = yes; then
8543 cat >>confdefs.h <<\_ACEOF
8544 #define HAVE_STRINGIZE 1
8549 echo "$as_me:$LINENO: checking for signed types" >&5
8550 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8551 if test "${pgac_cv_c_signed+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8556 #include "confdefs.h"
8558 #ifdef F77_DUMMY_MAIN
8562 int F77_DUMMY_MAIN() { return 1; }
8567 signed char c; signed short s; signed int i;
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 pgac_cv_c_signed=yes
8586 echo "$as_me: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8590 rm -f conftest.$ac_objext conftest.$ac_ext
8592 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8593 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8594 if test x"$pgac_cv_c_signed" = xno ; then
8596 cat >>confdefs.h <<\_ACEOF
8601 echo "$as_me:$LINENO: checking for working volatile" >&5
8602 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8603 if test "${ac_cv_c_volatile+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"
8610 #ifdef F77_DUMMY_MAIN
8614 int F77_DUMMY_MAIN() { return 1; }
8626 rm -f conftest.$ac_objext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8628 (eval $ac_compile) 2>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_cv_c_volatile=yes
8640 echo "$as_me: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8644 rm -f conftest.$ac_objext conftest.$ac_ext
8646 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8647 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8648 if test $ac_cv_c_volatile = no; then
8650 cat >>confdefs.h <<\_ACEOF
8656 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8657 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8658 if test "${ac_cv_struct_tm+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8662 #line $LINENO "configure"
8663 #include "confdefs.h"
8664 #include <sys/types.h>
8667 #ifdef F77_DUMMY_MAIN
8671 int F77_DUMMY_MAIN() { return 1; }
8676 struct tm *tp; tp->tm_sec;
8681 rm -f conftest.$ac_objext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8683 (eval $ac_compile) 2>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_struct_tm=time.h
8695 echo "$as_me: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8697 ac_cv_struct_tm=sys/time.h
8699 rm -f conftest.$ac_objext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8702 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8703 if test $ac_cv_struct_tm = sys/time.h; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define TM_IN_SYS_TIME 1
8711 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8712 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8713 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8718 #include "confdefs.h"
8719 #include <sys/types.h>
8720 #include <$ac_cv_struct_tm>
8723 #ifdef F77_DUMMY_MAIN
8727 int F77_DUMMY_MAIN() { return 1; }
8732 static struct tm ac_aggr;
8733 if (ac_aggr.tm_zone)
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_member_struct_tm_tm_zone=yes
8753 echo "$as_me: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_cv_member_struct_tm_tm_zone=no
8757 rm -f conftest.$ac_objext conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8760 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8761 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_STRUCT_TM_TM_ZONE 1
8770 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8772 cat >>confdefs.h <<\_ACEOF
8773 #define HAVE_TM_ZONE 1
8777 echo "$as_me:$LINENO: checking for tzname" >&5
8778 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8779 if test "${ac_cv_var_tzname+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 cat >conftest.$ac_ext <<_ACEOF
8783 #line $LINENO "configure"
8784 #include "confdefs.h"
8786 #ifndef tzname /* For SGI. */
8787 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8790 #ifdef F77_DUMMY_MAIN
8794 int F77_DUMMY_MAIN() { return 1; }
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806 (eval $ac_link) 2>&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -s conftest$ac_exeext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_cv_var_tzname=yes
8818 echo "$as_me: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8825 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8826 if test $ac_cv_var_tzname = yes; then
8828 cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_TZNAME 1
8835 echo "$as_me:$LINENO: checking for union semun" >&5
8836 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8837 if test "${ac_cv_type_union_semun+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 cat >conftest.$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8842 #include "confdefs.h"
8843 #include <sys/types.h>
8844 #include <sys/ipc.h>
8845 #include <sys/sem.h>
8847 #ifdef F77_DUMMY_MAIN
8851 int F77_DUMMY_MAIN() { return 1; }
8856 if ((union semun *) 0)
8858 if (sizeof (union semun))
8864 rm -f conftest.$ac_objext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866 (eval $ac_compile) 2>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -s conftest.$ac_objext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_type_union_semun=yes
8878 echo "$as_me: failed program was:" >&5
8879 cat conftest.$ac_ext >&5
8880 ac_cv_type_union_semun=no
8882 rm -f conftest.$ac_objext conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8885 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8886 if test $ac_cv_type_union_semun = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_UNION_SEMUN 1
8895 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8896 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8897 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line $LINENO "configure"
8902 #include "confdefs.h"
8903 #include <sys/types.h>
8904 #ifdef HAVE_SYS_UN_H
8909 #ifdef F77_DUMMY_MAIN
8913 int F77_DUMMY_MAIN() { return 1; }
8918 if ((struct sockaddr_un *) 0)
8920 if (sizeof (struct sockaddr_un))
8926 rm -f conftest.$ac_objext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8928 (eval $ac_compile) 2>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_type_struct_sockaddr_un=yes
8940 echo "$as_me: failed program was:" >&5
8941 cat conftest.$ac_ext >&5
8942 ac_cv_type_struct_sockaddr_un=no
8944 rm -f conftest.$ac_objext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
8947 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
8948 if test $ac_cv_type_struct_sockaddr_un = yes; then
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_STRUCT_SOCKADDR_UN 1
8958 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
8959 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
8960 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 #include "confdefs.h"
8966 #include <sys/param.h>
8967 #include <sys/socket.h>
8968 #include <sys/ucred.h>
8970 #ifdef F77_DUMMY_MAIN
8974 int F77_DUMMY_MAIN() { return 1; }
8979 if ((struct cmsgcred *) 0)
8981 if (sizeof (struct cmsgcred))
8987 rm -f conftest.$ac_objext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8989 (eval $ac_compile) 2>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_type_struct_cmsgcred=yes
9001 echo "$as_me: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9003 ac_cv_type_struct_cmsgcred=no
9005 rm -f conftest.$ac_objext conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9008 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9009 if test $ac_cv_type_struct_cmsgcred = yes; then
9011 cat >>confdefs.h <<_ACEOF
9012 #define HAVE_STRUCT_CMSGCRED 1
9017 echo "$as_me:$LINENO: checking for struct fcred" >&5
9018 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9019 if test "${ac_cv_type_struct_fcred+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9024 #include "confdefs.h"
9025 #include <sys/param.h>
9026 #include <sys/socket.h>
9027 #include <sys/ucred.h>
9029 #ifdef F77_DUMMY_MAIN
9033 int F77_DUMMY_MAIN() { return 1; }
9038 if ((struct fcred *) 0)
9040 if (sizeof (struct fcred))
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_type_struct_fcred=yes
9060 echo "$as_me: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9062 ac_cv_type_struct_fcred=no
9064 rm -f conftest.$ac_objext conftest.$ac_ext
9066 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9067 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9068 if test $ac_cv_type_struct_fcred = yes; then
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_STRUCT_FCRED 1
9076 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9077 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9078 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9082 #line $LINENO "configure"
9083 #include "confdefs.h"
9084 #include <sys/param.h>
9085 #include <sys/socket.h>
9086 #include <sys/ucred.h>
9088 #ifdef F77_DUMMY_MAIN
9092 int F77_DUMMY_MAIN() { return 1; }
9097 if ((struct sockcred *) 0)
9099 if (sizeof (struct sockcred))
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest.$ac_objext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_type_struct_sockcred=yes
9119 echo "$as_me: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9121 ac_cv_type_struct_sockcred=no
9123 rm -f conftest.$ac_objext conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9126 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9127 if test $ac_cv_type_struct_sockcred = yes; then
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_STRUCT_SOCKCRED 1
9137 if test "$with_zlib" = yes; then
9138 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9139 # did not). While we could work around the lack of z_streamp, it
9140 # seems unwise to encourage people to use such old zlib versions...
9141 echo "$as_me:$LINENO: checking for z_streamp" >&5
9142 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9143 if test "${ac_cv_type_z_streamp+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 #line $LINENO "configure"
9148 #include "confdefs.h"
9151 #ifdef F77_DUMMY_MAIN
9155 int F77_DUMMY_MAIN() { return 1; }
9160 if ((z_streamp *) 0)
9162 if (sizeof (z_streamp))
9168 rm -f conftest.$ac_objext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9170 (eval $ac_compile) 2>&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try='test -s conftest.$ac_objext'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_type_z_streamp=yes
9182 echo "$as_me: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 ac_cv_type_z_streamp=no
9186 rm -f conftest.$ac_objext conftest.$ac_ext
9188 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9189 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9190 if test $ac_cv_type_z_streamp = yes; then
9193 { { echo "$as_me:$LINENO: error: zlib version is too old
9194 Use --without-zlib to disable zlib support." >&5
9195 echo "$as_me: error: zlib version is too old
9196 Use --without-zlib to disable zlib support." >&2;}
9197 { (exit 1); exit 1; }; }
9202 if test "$with_krb5" = yes; then
9203 # Check for differences between MIT and Heimdal (KTH) releases
9204 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9205 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9206 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9211 #include "confdefs.h"
9214 #ifdef F77_DUMMY_MAIN
9218 int F77_DUMMY_MAIN() { return 1; }
9223 static krb5_ticket ac_aggr;
9224 if (ac_aggr.enc_part2)
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_cv_member_krb5_ticket_enc_part2=yes
9244 echo "$as_me: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 ac_cv_member_krb5_ticket_enc_part2=no
9248 rm -f conftest.$ac_objext conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9251 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9252 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9254 cat >>confdefs.h <<_ACEOF
9255 #define HAVE_KRB5_TICKET_ENC_PART2 1
9260 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9261 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9262 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 cat >conftest.$ac_ext <<_ACEOF
9266 #line $LINENO "configure"
9267 #include "confdefs.h"
9270 #ifdef F77_DUMMY_MAIN
9274 int F77_DUMMY_MAIN() { return 1; }
9279 static krb5_ticket ac_aggr;
9286 rm -f conftest.$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288 (eval $ac_compile) 2>&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -s conftest.$ac_objext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_member_krb5_ticket_client=yes
9300 echo "$as_me: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302 ac_cv_member_krb5_ticket_client=no
9304 rm -f conftest.$ac_objext conftest.$ac_ext
9306 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9307 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9308 if test $ac_cv_member_krb5_ticket_client = yes; then
9310 cat >>confdefs.h <<_ACEOF
9311 #define HAVE_KRB5_TICKET_CLIENT 1
9316 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9317 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9318 { (exit 1); exit 1; }; }
9323 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9324 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9325 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9329 #line $LINENO "configure"
9330 #include "confdefs.h"
9333 #ifdef F77_DUMMY_MAIN
9337 int F77_DUMMY_MAIN() { return 1; }
9342 static krb5_error ac_aggr;
9343 if (ac_aggr.text.data)
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_member_krb5_error_text_data=yes
9363 echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 ac_cv_member_krb5_error_text_data=no
9367 rm -f conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9370 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9371 if test $ac_cv_member_krb5_error_text_data = yes; then
9373 cat >>confdefs.h <<_ACEOF
9374 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9379 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9380 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9381 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 #include "confdefs.h"
9389 #ifdef F77_DUMMY_MAIN
9393 int F77_DUMMY_MAIN() { return 1; }
9398 static krb5_error ac_aggr;
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -s conftest.$ac_objext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_member_krb5_error_e_data=yes
9419 echo "$as_me: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 ac_cv_member_krb5_error_e_data=no
9423 rm -f conftest.$ac_objext conftest.$ac_ext
9425 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9426 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9427 if test $ac_cv_member_krb5_error_e_data = yes; then
9430 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9431 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9432 { (exit 1); exit 1; }; }
9441 ## Functions, global variables
9444 echo "$as_me:$LINENO: checking for int timezone" >&5
9445 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9446 if test "${pgac_cv_var_int_timezone+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 cat >conftest.$ac_ext <<_ACEOF
9450 #line $LINENO "configure"
9451 #include "confdefs.h"
9454 #ifdef F77_DUMMY_MAIN
9458 int F77_DUMMY_MAIN() { return 1; }
9463 res = timezone / 60;
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 pgac_cv_var_int_timezone=yes
9482 echo "$as_me: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9484 pgac_cv_var_int_timezone=no
9486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9488 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9489 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9490 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_INT_TIMEZONE
9497 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9498 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9499 if test "${ac_cv_func_accept_arg1+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 if test "${ac_cv_func_accept_arg2+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 if test "${ac_cv_func_accept_arg3+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9509 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9510 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #ifdef HAVE_SYS_TYPES_H
9515 #include <sys/types.h>
9517 #ifdef HAVE_SYS_SOCKET_H
9518 #include <sys/socket.h>
9520 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9521 #ifdef F77_DUMMY_MAIN
9525 int F77_DUMMY_MAIN() { return 1; }
9535 rm -f conftest.$ac_objext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537 (eval $ac_compile) 2>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -s conftest.$ac_objext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_not_found=no; break 3
9549 echo "$as_me: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9553 rm -f conftest.$ac_objext conftest.$ac_ext
9557 if test "$ac_not_found" = yes; then
9558 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9559 echo "$as_me: error: could not determine argument types" >&2;}
9560 { (exit 1); exit 1; }; }
9562 if test "$ac_cv_func_accept_arg3" = "void"; then
9563 ac_cv_func_accept_arg3=int
9571 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9572 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9574 cat >>confdefs.h <<_ACEOF
9575 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9579 cat >>confdefs.h <<_ACEOF
9580 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9584 cat >>confdefs.h <<_ACEOF
9585 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9589 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9590 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9591 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9595 #line $LINENO "configure"
9596 #include "confdefs.h"
9597 #include <sys/time.h>
9598 #ifdef F77_DUMMY_MAIN
9602 int F77_DUMMY_MAIN() { return 1; }
9608 struct timezone *tzp;
9609 gettimeofday(tp,tzp);
9614 rm -f conftest.$ac_objext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616 (eval $ac_compile) 2>&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 pgac_cv_func_gettimeofday_1arg=no
9628 echo "$as_me: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 pgac_cv_func_gettimeofday_1arg=yes
9632 rm -f conftest.$ac_objext conftest.$ac_ext
9634 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9635 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9636 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9638 cat >>confdefs.h <<\_ACEOF
9639 #define GETTIMEOFDAY_1ARG
9644 # SunOS doesn't handle negative byte comparisons properly with +/- return
9645 echo "$as_me:$LINENO: checking for working memcmp" >&5
9646 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9647 if test "${ac_cv_func_memcmp_working+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 if test "$cross_compiling" = yes; then
9651 ac_cv_func_memcmp_working=no
9653 cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 #include "confdefs.h"
9657 #ifdef F77_DUMMY_MAIN
9661 int F77_DUMMY_MAIN() { return 1; }
9667 /* Some versions of memcmp are not 8-bit clean. */
9668 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9669 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9672 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9673 or more and with at least one buffer not starting on a 4-byte boundary.
9674 William Lewis provided this test program. */
9679 for (i = 0; i < 4; i++)
9683 strcpy (a, "--------01111111");
9684 strcpy (b, "--------10000000");
9685 if (memcmp (a, b, 16) >= 0)
9695 rm -f conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_func_memcmp_working=yes
9708 echo "$as_me: program exited with status $ac_status" >&5
9709 echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9712 ac_cv_func_memcmp_working=no
9714 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9717 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9718 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9719 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9734 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737 echo "$as_me:$LINENO: checking for $ac_func" >&5
9738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9739 if eval "test \"\${$as_ac_var+set}\" = set"; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9743 #line $LINENO "configure"
9744 #include "confdefs.h"
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char $ac_func (); below. */
9748 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9757 #ifdef F77_DUMMY_MAIN
9761 int F77_DUMMY_MAIN() { return 1; }
9766 /* The GNU C library defines this for functions which it implements
9767 to always fail with ENOSYS. Some functions are actually named
9768 something starting with __ and the normal name is an alias. */
9769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 eval "$as_ac_var=yes"
9793 echo "$as_me: failed program was:" >&5
9794 cat conftest.$ac_ext >&5
9795 eval "$as_ac_var=no"
9797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9801 if test `eval echo '${'$as_ac_var'}'` = yes; then
9802 cat >>confdefs.h <<_ACEOF
9803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9810 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9811 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9812 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 #include "confdefs.h"
9820 #ifdef F77_DUMMY_MAIN
9824 int F77_DUMMY_MAIN() { return 1; }
9830 char *p = (char *) fdatasync;
9837 rm -f conftest.$ac_objext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839 (eval $ac_compile) 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -s conftest.$ac_objext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_have_decl_fdatasync=yes
9851 echo "$as_me: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 ac_cv_have_decl_fdatasync=no
9855 rm -f conftest.$ac_objext conftest.$ac_ext
9857 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9858 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9859 if test $ac_cv_have_decl_fdatasync = yes; then
9861 cat >>confdefs.h <<_ACEOF
9862 #define HAVE_DECL_FDATASYNC 1
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_DECL_FDATASYNC 0
9876 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
9877 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
9878 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9883 #include "confdefs.h"
9884 #include <machine/vmparam.h>
9885 #include <sys/exec.h>
9887 #ifdef F77_DUMMY_MAIN
9891 int F77_DUMMY_MAIN() { return 1; }
9896 PS_STRINGS->ps_nargvstr = 1;
9897 PS_STRINGS->ps_argvstr = "foo";
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 pgac_cv_var_PS_STRINGS=yes
9916 echo "$as_me: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 pgac_cv_var_PS_STRINGS=no
9920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
9923 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
9924 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_PS_STRINGS
9933 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
9934 # is missing. Yes, there are machines that have only one. We may
9935 # also decide to use snprintf.c if snprintf() is present but does not
9936 # have working "long long int" support -- see below.
9938 pgac_need_repl_snprintf=no
9940 for ac_func in snprintf
9942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9943 echo "$as_me:$LINENO: checking for $ac_func" >&5
9944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9945 if eval "test \"\${$as_ac_var+set}\" = set"; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 #line $LINENO "configure"
9950 #include "confdefs.h"
9951 /* System header to define __stub macros and hopefully few prototypes,
9952 which can conflict with char $ac_func (); below. */
9954 /* Override any gcc2 internal prototype to avoid an error. */
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9963 #ifdef F77_DUMMY_MAIN
9967 int F77_DUMMY_MAIN() { return 1; }
9972 /* The GNU C library defines this for functions which it implements
9973 to always fail with ENOSYS. Some functions are actually named
9974 something starting with __ and the normal name is an alias. */
9975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -s conftest$ac_exeext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 eval "$as_ac_var=yes"
9999 echo "$as_me: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 eval "$as_ac_var=no"
10003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10013 pgac_need_repl_snprintf=yes
10018 for ac_func in vsnprintf
10020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10021 echo "$as_me:$LINENO: checking for $ac_func" >&5
10022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10023 if eval "test \"\${$as_ac_var+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 cat >conftest.$ac_ext <<_ACEOF
10027 #line $LINENO "configure"
10028 #include "confdefs.h"
10029 /* System header to define __stub macros and hopefully few prototypes,
10030 which can conflict with char $ac_func (); below. */
10031 #include <assert.h>
10032 /* Override any gcc2 internal prototype to avoid an error. */
10036 /* We use char because int might match the return type of a gcc2
10037 builtin and then its argument prototype would still apply. */
10041 #ifdef F77_DUMMY_MAIN
10042 # ifdef __cplusplus
10045 int F77_DUMMY_MAIN() { return 1; }
10050 /* The GNU C library defines this for functions which it implements
10051 to always fail with ENOSYS. Some functions are actually named
10052 something starting with __ and the normal name is an alias. */
10053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -s conftest$ac_exeext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 eval "$as_ac_var=yes"
10077 echo "$as_me: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 eval "$as_ac_var=no"
10081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10085 if test `eval echo '${'$as_ac_var'}'` = yes; then
10086 cat >>confdefs.h <<_ACEOF
10087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10091 pgac_need_repl_snprintf=yes
10097 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10098 # include/c.h will provide declarations. Note this is a separate test
10099 # from whether the functions exist in the C library --- there are
10100 # systems that have the functions but don't bother to declare them :-(
10102 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10103 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10104 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10108 #line $LINENO "configure"
10109 #include "confdefs.h"
10110 $ac_includes_default
10111 #ifdef F77_DUMMY_MAIN
10112 # ifdef __cplusplus
10115 int F77_DUMMY_MAIN() { return 1; }
10121 char *p = (char *) snprintf;
10128 rm -f conftest.$ac_objext
10129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130 (eval $ac_compile) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -s conftest.$ac_objext'
10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_have_decl_snprintf=yes
10142 echo "$as_me: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 ac_cv_have_decl_snprintf=no
10146 rm -f conftest.$ac_objext conftest.$ac_ext
10148 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10149 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10150 if test $ac_cv_have_decl_snprintf = yes; then
10152 cat >>confdefs.h <<_ACEOF
10153 #define HAVE_DECL_SNPRINTF 1
10158 cat >>confdefs.h <<_ACEOF
10159 #define HAVE_DECL_SNPRINTF 0
10164 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10165 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10166 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 cat >conftest.$ac_ext <<_ACEOF
10170 #line $LINENO "configure"
10171 #include "confdefs.h"
10172 $ac_includes_default
10173 #ifdef F77_DUMMY_MAIN
10174 # ifdef __cplusplus
10177 int F77_DUMMY_MAIN() { return 1; }
10183 char *p = (char *) vsnprintf;
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -s conftest.$ac_objext'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_have_decl_vsnprintf=yes
10204 echo "$as_me: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 ac_cv_have_decl_vsnprintf=no
10208 rm -f conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10211 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10212 if test $ac_cv_have_decl_vsnprintf = yes; then
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_DECL_VSNPRINTF 1
10220 cat >>confdefs.h <<_ACEOF
10221 #define HAVE_DECL_VSNPRINTF 0
10230 # do this one the hard way in case isinf() is a macro
10231 echo "$as_me:$LINENO: checking for isinf" >&5
10232 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10233 if test "${ac_cv_func_isinf+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 cat >conftest.$ac_ext <<_ACEOF
10237 #line $LINENO "configure"
10238 #include "confdefs.h"
10241 #ifdef F77_DUMMY_MAIN
10242 # ifdef __cplusplus
10245 int F77_DUMMY_MAIN() { return 1; }
10250 double x = 0.0; int res = isinf(x);
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257 (eval $ac_link) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_cv_func_isinf=yes
10269 echo "$as_me: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10271 ac_cv_func_isinf=no
10273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10275 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10276 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10278 if test $ac_cv_func_isinf = yes ; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_ISINF 1
10285 LIBOBJS="$LIBOBJS isinf.$ac_objext"
10286 # Look for a way to implement a substitute for isinf()
10291 for ac_func in fpclass fp_class fp_class_d class
10293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294 echo "$as_me:$LINENO: checking for $ac_func" >&5
10295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10296 if eval "test \"\${$as_ac_var+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 cat >conftest.$ac_ext <<_ACEOF
10300 #line $LINENO "configure"
10301 #include "confdefs.h"
10302 /* System header to define __stub macros and hopefully few prototypes,
10303 which can conflict with char $ac_func (); below. */
10304 #include <assert.h>
10305 /* Override any gcc2 internal prototype to avoid an error. */
10309 /* We use char because int might match the return type of a gcc2
10310 builtin and then its argument prototype would still apply. */
10314 #ifdef F77_DUMMY_MAIN
10315 # ifdef __cplusplus
10318 int F77_DUMMY_MAIN() { return 1; }
10323 /* The GNU C library defines this for functions which it implements
10324 to always fail with ENOSYS. Some functions are actually named
10325 something starting with __ and the normal name is an alias. */
10326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -s conftest$ac_exeext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 eval "$as_ac_var=yes"
10350 echo "$as_me: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10352 eval "$as_ac_var=no"
10354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10358 if test `eval echo '${'$as_ac_var'}'` = yes; then
10359 cat >>confdefs.h <<_ACEOF
10360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10378 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10381 echo "$as_me:$LINENO: checking for $ac_func" >&5
10382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10383 if eval "test \"\${$as_ac_var+set}\" = set"; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 #include "confdefs.h"
10389 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char $ac_func (); below. */
10391 #include <assert.h>
10392 /* Override any gcc2 internal prototype to avoid an error. */
10396 /* We use char because int might match the return type of a gcc2
10397 builtin and then its argument prototype would still apply. */
10401 #ifdef F77_DUMMY_MAIN
10402 # ifdef __cplusplus
10405 int F77_DUMMY_MAIN() { return 1; }
10410 /* The GNU C library defines this for functions which it implements
10411 to always fail with ENOSYS. Some functions are actually named
10412 something starting with __ and the normal name is an alias. */
10413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 eval "$as_ac_var=yes"
10437 echo "$as_me: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10445 if test `eval echo '${'$as_ac_var'}'` = yes; then
10446 cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10457 # Solaris has a very slow qsort in certain cases.
10459 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10462 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10463 # this hackery with HPUXMATHLIB allows us to cope.
10467 if test -r /lib/pa1.1/libm.a ; then
10468 HPUXMATHLIB="-L /lib/pa1.1 -lm"
10474 for ac_func in rint
10476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10477 echo "$as_me:$LINENO: checking for $ac_func" >&5
10478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10479 if eval "test \"\${$as_ac_var+set}\" = set"; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 cat >conftest.$ac_ext <<_ACEOF
10483 #line $LINENO "configure"
10484 #include "confdefs.h"
10485 /* System header to define __stub macros and hopefully few prototypes,
10486 which can conflict with char $ac_func (); below. */
10487 #include <assert.h>
10488 /* Override any gcc2 internal prototype to avoid an error. */
10492 /* We use char because int might match the return type of a gcc2
10493 builtin and then its argument prototype would still apply. */
10497 #ifdef F77_DUMMY_MAIN
10498 # ifdef __cplusplus
10501 int F77_DUMMY_MAIN() { return 1; }
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521 (eval $ac_link) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -s conftest$ac_exeext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 eval "$as_ac_var=yes"
10533 echo "$as_me: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10535 eval "$as_ac_var=no"
10537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10541 if test `eval echo '${'$as_ac_var'}'` = yes; then
10542 cat >>confdefs.h <<_ACEOF
10543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10547 echo "$as_me:$LINENO: checking for rint in -lm" >&5
10548 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10549 if test "${ac_cv_lib_m_rint+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 ac_check_lib_save_LIBS=$LIBS
10553 LIBS="-lm $HPUXMATHLIB $LIBS"
10554 cat >conftest.$ac_ext <<_ACEOF
10555 #line $LINENO "configure"
10556 #include "confdefs.h"
10558 /* Override any gcc2 internal prototype to avoid an error. */
10562 /* We use char because int might match the return type of a gcc2
10563 builtin and then its argument prototype would still apply. */
10565 #ifdef F77_DUMMY_MAIN
10566 # ifdef __cplusplus
10569 int F77_DUMMY_MAIN() { return 1; }
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_cv_lib_m_rint=yes
10593 echo "$as_me: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 ac_cv_lib_m_rint=no
10597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10600 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10601 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10602 if test $ac_cv_lib_m_rint = yes; then
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_RINT 1
10614 if test "$with_readline" = yes; then
10615 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10616 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10621 #ifdef HAVE_READLINE_READLINE_H
10622 # include <readline/readline.h>
10623 #elif defined(HAVE_READLINE_H)
10624 # include <readline.h>
10627 #ifdef F77_DUMMY_MAIN
10628 # ifdef __cplusplus
10631 int F77_DUMMY_MAIN() { return 1; }
10636 rl_completion_append_character = 'x';
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643 (eval $ac_link) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -s conftest$ac_exeext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 echo "$as_me:$LINENO: result: yes" >&5
10654 echo "${ECHO_T}yes" >&6
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10661 echo "$as_me: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 echo "$as_me:$LINENO: result: no" >&5
10664 echo "${ECHO_T}no" >&6
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10669 for ac_func in rl_completion_matches rl_filename_completion_function
10671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 echo "$as_me:$LINENO: checking for $ac_func" >&5
10673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10674 if eval "test \"\${$as_ac_var+set}\" = set"; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 cat >conftest.$ac_ext <<_ACEOF
10678 #line $LINENO "configure"
10679 #include "confdefs.h"
10680 /* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char $ac_func (); below. */
10682 #include <assert.h>
10683 /* Override any gcc2 internal prototype to avoid an error. */
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10692 #ifdef F77_DUMMY_MAIN
10693 # ifdef __cplusplus
10696 int F77_DUMMY_MAIN() { return 1; }
10701 /* The GNU C library defines this for functions which it implements
10702 to always fail with ENOSYS. Some functions are actually named
10703 something starting with __ and the normal name is an alias. */
10704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716 (eval $ac_link) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 eval "$as_ac_var=yes"
10728 echo "$as_me: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10730 eval "$as_ac_var=no"
10732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10736 if test `eval echo '${'$as_ac_var'}'` = yes; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10747 echo "$as_me:$LINENO: checking for finite" >&5
10748 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10749 cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 #include "confdefs.h"
10753 #ifdef F77_DUMMY_MAIN
10754 # ifdef __cplusplus
10757 int F77_DUMMY_MAIN() { return 1; }
10762 int dummy=finite(1.0);
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -s conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_FINITE 1
10784 echo "$as_me:$LINENO: result: yes" >&5
10785 echo "${ECHO_T}yes" >&6
10787 echo "$as_me: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10789 echo "$as_me:$LINENO: result: no" >&5
10790 echo "${ECHO_T}no" >&6
10792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10794 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10795 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 #include "confdefs.h"
10799 #include <setjmp.h>
10800 #ifdef F77_DUMMY_MAIN
10801 # ifdef __cplusplus
10804 int F77_DUMMY_MAIN() { return 1; }
10809 sigjmp_buf x; sigsetjmp(x, 1);
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_SIGSETJMP 1
10831 echo "$as_me:$LINENO: result: yes" >&5
10832 echo "${ECHO_T}yes" >&6
10834 echo "$as_me: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10836 echo "$as_me:$LINENO: result: no" >&5
10837 echo "${ECHO_T}no" >&6
10839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10841 echo "$as_me:$LINENO: checking for syslog" >&5
10842 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
10843 if test "${ac_cv_func_syslog+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10848 #include "confdefs.h"
10849 /* System header to define __stub macros and hopefully few prototypes,
10850 which can conflict with char syslog (); below. */
10851 #include <assert.h>
10852 /* Override any gcc2 internal prototype to avoid an error. */
10856 /* We use char because int might match the return type of a gcc2
10857 builtin and then its argument prototype would still apply. */
10861 #ifdef F77_DUMMY_MAIN
10862 # ifdef __cplusplus
10865 int F77_DUMMY_MAIN() { return 1; }
10870 /* The GNU C library defines this for functions which it implements
10871 to always fail with ENOSYS. Some functions are actually named
10872 something starting with __ and the normal name is an alias. */
10873 #if defined (__stub_syslog) || defined (__stub___syslog)
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885 (eval $ac_link) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -s conftest$ac_exeext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_func_syslog=yes
10897 echo "$as_me: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 ac_cv_func_syslog=no
10901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10903 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
10904 echo "${ECHO_T}$ac_cv_func_syslog" >&6
10905 if test $ac_cv_func_syslog = yes; then
10906 if test "${ac_cv_header_syslog_h+set}" = set; then
10907 echo "$as_me:$LINENO: checking for syslog.h" >&5
10908 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10909 if test "${ac_cv_header_syslog_h+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
10913 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
10915 # Is the header compilable?
10916 echo "$as_me:$LINENO: checking syslog.h usability" >&5
10917 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
10918 cat >conftest.$ac_ext <<_ACEOF
10919 #line $LINENO "configure"
10920 #include "confdefs.h"
10921 $ac_includes_default
10922 #include <syslog.h>
10924 rm -f conftest.$ac_objext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926 (eval $ac_compile) 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -s conftest.$ac_objext'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; }; then
10936 ac_header_compiler=yes
10938 echo "$as_me: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 ac_header_compiler=no
10942 rm -f conftest.$ac_objext conftest.$ac_ext
10943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10944 echo "${ECHO_T}$ac_header_compiler" >&6
10946 # Is the header present?
10947 echo "$as_me:$LINENO: checking syslog.h presence" >&5
10948 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 #include "confdefs.h"
10952 #include <syslog.h>
10954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10957 egrep -v '^ *\+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } >/dev/null; then
10962 if test -s conftest.err; then
10963 ac_cpp_err=$ac_c_preproc_warn_flag
10970 if test -z "$ac_cpp_err"; then
10971 ac_header_preproc=yes
10973 echo "$as_me: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 ac_header_preproc=no
10977 rm -f conftest.err conftest.$ac_ext
10978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10979 echo "${ECHO_T}$ac_header_preproc" >&6
10981 # So? What about this header?
10982 case $ac_header_compiler:$ac_header_preproc in
10984 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
10985 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
10987 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
10989 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
10990 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
10992 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
10994 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
10996 echo "$as_me:$LINENO: checking for syslog.h" >&5
10997 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10998 if test "${ac_cv_header_syslog_h+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 ac_cv_header_syslog_h=$ac_header_preproc
11003 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11004 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11007 if test $ac_cv_header_syslog_h = yes; then
11008 cat >>confdefs.h <<\_ACEOF
11009 #define HAVE_SYSLOG 1
11018 echo "$as_me:$LINENO: checking for optreset" >&5
11019 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11020 if test "${pgac_cv_var_int_optreset+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11026 #include <unistd.h>
11027 #ifdef F77_DUMMY_MAIN
11028 # ifdef __cplusplus
11031 int F77_DUMMY_MAIN() { return 1; }
11036 extern int optreset; optreset = 1;
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 pgac_cv_var_int_optreset=yes
11055 echo "$as_me: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 pgac_cv_var_int_optreset=no
11059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11062 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11063 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11065 cat >>confdefs.h <<\_ACEOF
11066 #define HAVE_INT_OPTRESET 1
11073 for ac_func in strtoll strtoq
11075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11076 echo "$as_me:$LINENO: checking for $ac_func" >&5
11077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_var+set}\" = set"; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below. */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error. */
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11096 #ifdef F77_DUMMY_MAIN
11097 # ifdef __cplusplus
11100 int F77_DUMMY_MAIN() { return 1; }
11105 /* The GNU C library defines this for functions which it implements
11106 to always fail with ENOSYS. Some functions are actually named
11107 something starting with __ and the normal name is an alias. */
11108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120 (eval $ac_link) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -s conftest$ac_exeext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 eval "$as_ac_var=yes"
11132 echo "$as_me: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 eval "$as_ac_var=no"
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11140 if test `eval echo '${'$as_ac_var'}'` = yes; then
11141 cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 for ac_func in strtoull strtouq
11152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11153 echo "$as_me:$LINENO: checking for $ac_func" >&5
11154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_var+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11161 /* System header to define __stub macros and hopefully few prototypes,
11162 which can conflict with char $ac_func (); below. */
11163 #include <assert.h>
11164 /* Override any gcc2 internal prototype to avoid an error. */
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11173 #ifdef F77_DUMMY_MAIN
11174 # ifdef __cplusplus
11177 int F77_DUMMY_MAIN() { return 1; }
11182 /* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197 (eval $ac_link) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "$as_ac_var=yes"
11209 echo "$as_me: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11211 eval "$as_ac_var=no"
11213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11217 if test `eval echo '${'$as_ac_var'}'` = yes; then
11218 cat >>confdefs.h <<_ACEOF
11219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 # Check for one of atexit() or on_exit()
11228 for ac_func in atexit
11230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11231 echo "$as_me:$LINENO: checking for $ac_func" >&5
11232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_var+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 cat >conftest.$ac_ext <<_ACEOF
11237 #line $LINENO "configure"
11238 #include "confdefs.h"
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func (); below. */
11241 #include <assert.h>
11242 /* Override any gcc2 internal prototype to avoid an error. */
11246 /* We use char because int might match the return type of a gcc2
11247 builtin and then its argument prototype would still apply. */
11251 #ifdef F77_DUMMY_MAIN
11252 # ifdef __cplusplus
11255 int F77_DUMMY_MAIN() { return 1; }
11260 /* The GNU C library defines this for functions which it implements
11261 to always fail with ENOSYS. Some functions are actually named
11262 something starting with __ and the normal name is an alias. */
11263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11273 rm -f conftest.$ac_objext conftest$ac_exeext
11274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11275 (eval $ac_link) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -s conftest$ac_exeext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 eval "$as_ac_var=yes"
11287 echo "$as_me: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11289 eval "$as_ac_var=no"
11291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11295 if test `eval echo '${'$as_ac_var'}'` = yes; then
11296 cat >>confdefs.h <<_ACEOF
11297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11302 for ac_func in on_exit
11304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11305 echo "$as_me:$LINENO: checking for $ac_func" >&5
11306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_var+set}\" = set"; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 cat >conftest.$ac_ext <<_ACEOF
11311 #line $LINENO "configure"
11312 #include "confdefs.h"
11313 /* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char $ac_func (); below. */
11315 #include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11325 #ifdef F77_DUMMY_MAIN
11326 # ifdef __cplusplus
11329 int F77_DUMMY_MAIN() { return 1; }
11334 /* The GNU C library defines this for functions which it implements
11335 to always fail with ENOSYS. Some functions are actually named
11336 something starting with __ and the normal name is an alias. */
11337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349 (eval $ac_link) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -s conftest$ac_exeext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 eval "$as_ac_var=yes"
11361 echo "$as_me: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11363 eval "$as_ac_var=no"
11365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11369 if test `eval echo '${'$as_ac_var'}'` = yes; then
11370 cat >>confdefs.h <<_ACEOF
11371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11375 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11376 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11377 { (exit 1); exit 1; }; }
11385 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11386 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11387 if test "${ac_cv_sys_largefile_source+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 ac_cv_sys_largefile_source=no
11392 cat >conftest.$ac_ext <<_ACEOF
11393 #line $LINENO "configure"
11394 #include "confdefs.h"
11396 #ifdef F77_DUMMY_MAIN
11397 # ifdef __cplusplus
11400 int F77_DUMMY_MAIN() { return 1; }
11410 rm -f conftest.$ac_objext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11412 (eval $ac_compile) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -s conftest.$ac_objext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11424 echo "$as_me: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11427 rm -f conftest.$ac_objext conftest.$ac_ext
11428 cat >conftest.$ac_ext <<_ACEOF
11429 #line $LINENO "configure"
11430 #include "confdefs.h"
11431 #define _LARGEFILE_SOURCE 1
11433 #ifdef F77_DUMMY_MAIN
11434 # ifdef __cplusplus
11437 int F77_DUMMY_MAIN() { return 1; }
11447 rm -f conftest.$ac_objext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -s conftest.$ac_objext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_sys_largefile_source=1; break
11461 echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11464 rm -f conftest.$ac_objext conftest.$ac_ext
11468 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11469 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11470 if test "$ac_cv_sys_largefile_source" != no; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11479 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11480 # in glibc 2.1.3, but that breaks too many other things.
11481 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11482 echo "$as_me:$LINENO: checking for fseeko" >&5
11483 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11484 if test "${ac_cv_func_fseeko+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 cat >conftest.$ac_ext <<_ACEOF
11488 #line $LINENO "configure"
11489 #include "confdefs.h"
11491 #ifdef F77_DUMMY_MAIN
11492 # ifdef __cplusplus
11495 int F77_DUMMY_MAIN() { return 1; }
11500 return fseeko && fseeko (stdin, 0, 0);
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_func_fseeko=yes
11519 echo "$as_me: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 ac_cv_func_fseeko=no
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11526 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11527 if test $ac_cv_func_fseeko = yes; then
11529 cat >>confdefs.h <<\_ACEOF
11530 #define HAVE_FSEEKO 1
11537 # This test makes sure that run tests work at all. Sometimes a shared
11538 # library is found by the linker, but the runtime linker can't find it.
11539 # This check should come after all modifications of compiler or linker
11540 # variables, and before any other run tests.
11541 echo "$as_me:$LINENO: checking test program" >&5
11542 echo $ECHO_N "checking test program... $ECHO_C" >&6
11543 if test "$cross_compiling" = yes; then
11544 echo "$as_me:$LINENO: result: cross-compiling" >&5
11545 echo "${ECHO_T}cross-compiling" >&6
11547 cat >conftest.$ac_ext <<_ACEOF
11548 #line $LINENO "configure"
11549 #include "confdefs.h"
11550 int main() { return 0; }
11552 rm -f conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 echo "$as_me:$LINENO: result: ok" >&5
11564 echo "${ECHO_T}ok" >&6
11566 echo "$as_me: program exited with status $ac_status" >&5
11567 echo "$as_me: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 ( exit $ac_status )
11570 echo "$as_me:$LINENO: result: failed" >&5
11571 echo "${ECHO_T}failed" >&6
11572 { { echo "$as_me:$LINENO: error:
11573 *** Could not execute a simple test program. This may be a problem
11574 *** related to locating shared libraries. Check the file 'config.log'
11575 *** for the exact reason." >&5
11576 echo "$as_me: error:
11577 *** Could not execute a simple test program. This may be a problem
11578 *** related to locating shared libraries. Check the file 'config.log'
11579 *** for the exact reason." >&2;}
11580 { (exit 1); exit 1; }; }
11582 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11587 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11588 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11589 if test "${pgac_cv_type_long_int_64+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 if test "$cross_compiling" = yes; then
11593 pgac_cv_type_long_int_64=no
11594 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11595 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11597 cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11599 #include "confdefs.h"
11600 typedef long int int64;
11603 * These are globals to discourage the compiler from folding all the
11604 * arithmetic tests down to compile-time constants.
11606 int64 a = 20000001;
11607 int64 b = 40000005;
11609 int does_int64_work()
11613 if (sizeof(int64) != 8)
11614 return 0; /* definitely not the right size */
11616 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11624 exit(! does_int64_work());
11627 rm -f conftest$ac_exeext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629 (eval $ac_link) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 pgac_cv_type_long_int_64=yes
11640 echo "$as_me: program exited with status $ac_status" >&5
11641 echo "$as_me: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11643 ( exit $ac_status )
11644 pgac_cv_type_long_int_64=no
11646 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11649 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11650 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11652 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11653 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11655 cat >>confdefs.h <<\_ACEOF
11656 #define HAVE_LONG_INT_64
11662 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11663 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11664 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11665 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 if test "$cross_compiling" = yes; then
11669 pgac_cv_type_long_long_int_64=no
11670 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11671 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11673 cat >conftest.$ac_ext <<_ACEOF
11674 #line $LINENO "configure"
11675 #include "confdefs.h"
11676 typedef long long int int64;
11679 * These are globals to discourage the compiler from folding all the
11680 * arithmetic tests down to compile-time constants.
11682 int64 a = 20000001;
11683 int64 b = 40000005;
11685 int does_int64_work()
11689 if (sizeof(int64) != 8)
11690 return 0; /* definitely not the right size */
11692 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11700 exit(! does_int64_work());
11703 rm -f conftest$ac_exeext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705 (eval $ac_link) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 pgac_cv_type_long_long_int_64=yes
11716 echo "$as_me: program exited with status $ac_status" >&5
11717 echo "$as_me: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11719 ( exit $ac_status )
11720 pgac_cv_type_long_long_int_64=no
11722 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11725 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11726 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11728 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11729 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11731 cat >>confdefs.h <<\_ACEOF
11732 #define HAVE_LONG_LONG_INT_64
11741 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11742 cat >conftest.$ac_ext <<_ACEOF
11743 #line $LINENO "configure"
11744 #include "confdefs.h"
11746 #define INT64CONST(x) x##LL
11747 long long int foo = INT64CONST(0x1234567890123456);
11749 #ifdef F77_DUMMY_MAIN
11750 # ifdef __cplusplus
11753 int F77_DUMMY_MAIN() { return 1; }
11763 rm -f conftest.$ac_objext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765 (eval $ac_compile) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -s conftest.$ac_objext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11776 cat >>confdefs.h <<\_ACEOF
11777 #define HAVE_LL_CONSTANTS 1
11781 echo "$as_me: failed program was:" >&5
11782 cat conftest.$ac_ext >&5
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11789 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11790 if test $pgac_need_repl_snprintf = no; then
11791 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11792 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11793 if test "$cross_compiling" = yes; then
11794 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11795 echo "${ECHO_T}cannot test (not on host machine)" >&6
11796 # Force usage of our own snprintf, since we cannot test foreign snprintf
11797 pgac_need_repl_snprintf=yes
11798 INT64_FORMAT='"%lld"'
11801 cat >conftest.$ac_ext <<_ACEOF
11802 #line $LINENO "configure"
11803 #include "confdefs.h"
11805 typedef long long int int64;
11806 #define INT64_FORMAT "%lld"
11808 int64 a = 20000001;
11809 int64 b = 40000005;
11811 int does_int64_snprintf_work()
11816 if (sizeof(int64) != 8)
11817 return 0; /* doesn't look like the right size */
11820 snprintf(buf, 100, INT64_FORMAT, c);
11821 if (strcmp(buf, "800000140000005") != 0)
11822 return 0; /* either multiply or snprintf is busted */
11826 exit(! does_int64_snprintf_work());
11829 rm -f conftest$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831 (eval $ac_link) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6
11842 INT64_FORMAT='"%lld"'
11845 echo "$as_me: program exited with status $ac_status" >&5
11846 echo "$as_me: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11848 ( exit $ac_status )
11849 echo "$as_me:$LINENO: result: no" >&5
11850 echo "${ECHO_T}no" >&6
11851 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
11852 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
11853 if test "$cross_compiling" = yes; then
11854 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11855 echo "${ECHO_T}cannot test (not on host machine)" >&6
11856 # Force usage of our own snprintf, since we cannot test foreign snprintf
11857 pgac_need_repl_snprintf=yes
11858 INT64_FORMAT='"%lld"'
11861 cat >conftest.$ac_ext <<_ACEOF
11862 #line $LINENO "configure"
11863 #include "confdefs.h"
11865 typedef long long int int64;
11866 #define INT64_FORMAT "%qd"
11868 int64 a = 20000001;
11869 int64 b = 40000005;
11871 int does_int64_snprintf_work()
11876 if (sizeof(int64) != 8)
11877 return 0; /* doesn't look like the right size */
11880 snprintf(buf, 100, INT64_FORMAT, c);
11881 if (strcmp(buf, "800000140000005") != 0)
11882 return 0; /* either multiply or snprintf is busted */
11886 exit(! does_int64_snprintf_work());
11889 rm -f conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891 (eval $ac_link) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 echo "$as_me:$LINENO: result: yes" >&5
11901 echo "${ECHO_T}yes" >&6
11902 INT64_FORMAT='"%qd"'
11905 echo "$as_me: program exited with status $ac_status" >&5
11906 echo "$as_me: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 ( exit $ac_status )
11909 echo "$as_me:$LINENO: result: no" >&5
11910 echo "${ECHO_T}no" >&6
11911 # Force usage of our own snprintf, since system snprintf is broken
11912 pgac_need_repl_snprintf=yes
11913 INT64_FORMAT='"%lld"'
11916 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11922 # here if we previously decided we needed to use our own snprintf
11923 INT64_FORMAT='"%lld"'
11926 # Here if we are not using 'long long int' at all
11927 INT64_FORMAT='"%ld"'
11931 cat >>confdefs.h <<_ACEOF
11932 #define INT64_FORMAT $INT64_FORMAT
11936 if test $pgac_need_repl_snprintf = yes; then
11937 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
11941 echo "$as_me:$LINENO: checking for unsigned long" >&5
11942 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
11943 if test "${ac_cv_type_unsigned_long+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11948 #include "confdefs.h"
11949 $ac_includes_default
11950 #ifdef F77_DUMMY_MAIN
11951 # ifdef __cplusplus
11954 int F77_DUMMY_MAIN() { return 1; }
11959 if ((unsigned long *) 0)
11961 if (sizeof (unsigned long))
11967 rm -f conftest.$ac_objext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969 (eval $ac_compile) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_cv_type_unsigned_long=yes
11981 echo "$as_me: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11983 ac_cv_type_unsigned_long=no
11985 rm -f conftest.$ac_objext conftest.$ac_ext
11987 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
11988 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
11990 echo "$as_me:$LINENO: checking size of unsigned long" >&5
11991 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
11992 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 if test "$ac_cv_type_unsigned_long" = yes; then
11996 # The cast to unsigned long works around a bug in the HP C Compiler
11997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11999 # This bug is HP SR number 8606223364.
12000 if test "$cross_compiling" = yes; then
12001 # Depending upon the size, compute the lo and hi bounds.
12002 cat >conftest.$ac_ext <<_ACEOF
12003 #line $LINENO "configure"
12004 #include "confdefs.h"
12005 $ac_includes_default
12006 #ifdef F77_DUMMY_MAIN
12007 # ifdef __cplusplus
12010 int F77_DUMMY_MAIN() { return 1; }
12015 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12038 #include "confdefs.h"
12039 $ac_includes_default
12040 #ifdef F77_DUMMY_MAIN
12041 # ifdef __cplusplus
12044 int F77_DUMMY_MAIN() { return 1; }
12049 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12056 rm -f conftest.$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058 (eval $ac_compile) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -s conftest.$ac_objext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 ac_hi=$ac_mid; break
12070 echo "$as_me: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 ac_lo=`expr $ac_mid + 1`
12073 if test $ac_lo -le $ac_mid; then
12077 ac_mid=`expr 2 '*' $ac_mid + 1`
12079 rm -f conftest.$ac_objext conftest.$ac_ext
12082 echo "$as_me: failed program was:" >&5
12083 cat conftest.$ac_ext >&5
12084 cat >conftest.$ac_ext <<_ACEOF
12085 #line $LINENO "configure"
12086 #include "confdefs.h"
12087 $ac_includes_default
12088 #ifdef F77_DUMMY_MAIN
12089 # ifdef __cplusplus
12092 int F77_DUMMY_MAIN() { return 1; }
12097 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12104 rm -f conftest.$ac_objext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106 (eval $ac_compile) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 #include "confdefs.h"
12121 $ac_includes_default
12122 #ifdef F77_DUMMY_MAIN
12123 # ifdef __cplusplus
12126 int F77_DUMMY_MAIN() { return 1; }
12131 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_lo=$ac_mid; break
12152 echo "$as_me: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12154 ac_hi=`expr '(' $ac_mid ')' - 1`
12155 if test $ac_mid -le $ac_hi; then
12159 ac_mid=`expr 2 '*' $ac_mid`
12161 rm -f conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12168 rm -f conftest.$ac_objext conftest.$ac_ext
12170 rm -f conftest.$ac_objext conftest.$ac_ext
12171 # Binary search between lo and hi bounds.
12172 while test "x$ac_lo" != "x$ac_hi"; do
12173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12174 cat >conftest.$ac_ext <<_ACEOF
12175 #line $LINENO "configure"
12176 #include "confdefs.h"
12177 $ac_includes_default
12178 #ifdef F77_DUMMY_MAIN
12179 # ifdef __cplusplus
12182 int F77_DUMMY_MAIN() { return 1; }
12187 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12208 echo "$as_me: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12210 ac_lo=`expr '(' $ac_mid ')' + 1`
12212 rm -f conftest.$ac_objext conftest.$ac_ext
12215 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12216 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12217 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12218 { (exit 1); exit 1; }; } ;;
12221 if test "$cross_compiling" = yes; then
12222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12223 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12224 { (exit 1); exit 1; }; }
12226 cat >conftest.$ac_ext <<_ACEOF
12227 #line $LINENO "configure"
12228 #include "confdefs.h"
12229 $ac_includes_default
12230 long longval () { return (long) (sizeof (unsigned long)); }
12231 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12233 #include <stdlib.h>
12234 #ifdef F77_DUMMY_MAIN
12235 # ifdef __cplusplus
12238 int F77_DUMMY_MAIN() { return 1; }
12244 FILE *f = fopen ("conftest.val", "w");
12247 if (((long) (sizeof (unsigned long))) < 0)
12249 long i = longval ();
12250 if (i != ((long) (sizeof (unsigned long))))
12252 fprintf (f, "%ld\n", i);
12256 unsigned long i = ulongval ();
12257 if (i != ((long) (sizeof (unsigned long))))
12259 fprintf (f, "%lu\n", i);
12261 exit (ferror (f) || fclose (f) != 0);
12267 rm -f conftest$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12280 echo "$as_me: program exited with status $ac_status" >&5
12281 echo "$as_me: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12283 ( exit $ac_status )
12284 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12285 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12286 { (exit 1); exit 1; }; }
12288 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12293 ac_cv_sizeof_unsigned_long=0
12296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12297 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12298 cat >>confdefs.h <<_ACEOF
12299 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12304 cat >>confdefs.h <<_ACEOF
12305 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12309 # Determine memory alignment requirements for the basic C data types.
12311 echo "$as_me:$LINENO: checking for short" >&5
12312 echo $ECHO_N "checking for short... $ECHO_C" >&6
12313 if test "${ac_cv_type_short+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 cat >conftest.$ac_ext <<_ACEOF
12317 #line $LINENO "configure"
12318 #include "confdefs.h"
12319 $ac_includes_default
12320 #ifdef F77_DUMMY_MAIN
12321 # ifdef __cplusplus
12324 int F77_DUMMY_MAIN() { return 1; }
12331 if (sizeof (short))
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_type_short=yes
12351 echo "$as_me: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12353 ac_cv_type_short=no
12355 rm -f conftest.$ac_objext conftest.$ac_ext
12357 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12358 echo "${ECHO_T}$ac_cv_type_short" >&6
12360 echo "$as_me:$LINENO: checking alignment of short" >&5
12361 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12362 if test "${pgac_cv_alignof_short+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 if test "$ac_cv_type_short" = yes; then
12366 if test "$cross_compiling" = yes; then
12367 # Depending upon the size, compute the lo and hi bounds.
12368 cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 #include "confdefs.h"
12371 $ac_includes_default
12372 struct { char filler; short field; } pgac_struct;
12373 #ifdef F77_DUMMY_MAIN
12374 # ifdef __cplusplus
12377 int F77_DUMMY_MAIN() { return 1; }
12382 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 #include "confdefs.h"
12406 $ac_includes_default
12407 struct { char filler; short field; } pgac_struct;
12408 #ifdef F77_DUMMY_MAIN
12409 # ifdef __cplusplus
12412 int F77_DUMMY_MAIN() { return 1; }
12417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12424 rm -f conftest.$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_hi=$ac_mid; break
12438 echo "$as_me: failed program was:" >&5
12439 cat conftest.$ac_ext >&5
12440 ac_lo=`expr $ac_mid + 1`
12441 if test $ac_lo -le $ac_mid; then
12445 ac_mid=`expr 2 '*' $ac_mid + 1`
12447 rm -f conftest.$ac_objext conftest.$ac_ext
12450 echo "$as_me: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12454 #include "confdefs.h"
12455 $ac_includes_default
12456 struct { char filler; short field; } pgac_struct;
12457 #ifdef F77_DUMMY_MAIN
12458 # ifdef __cplusplus
12461 int F77_DUMMY_MAIN() { return 1; }
12466 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12473 rm -f conftest.$ac_objext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
12479 { ac_try='test -s conftest.$ac_objext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12487 cat >conftest.$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12489 #include "confdefs.h"
12490 $ac_includes_default
12491 struct { char filler; short field; } pgac_struct;
12492 #ifdef F77_DUMMY_MAIN
12493 # ifdef __cplusplus
12496 int F77_DUMMY_MAIN() { return 1; }
12501 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -s conftest.$ac_objext'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_lo=$ac_mid; break
12522 echo "$as_me: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 ac_hi=`expr '(' $ac_mid ')' - 1`
12525 if test $ac_mid -le $ac_hi; then
12529 ac_mid=`expr 2 '*' $ac_mid`
12531 rm -f conftest.$ac_objext conftest.$ac_ext
12534 echo "$as_me: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 # Binary search between lo and hi bounds.
12542 while test "x$ac_lo" != "x$ac_hi"; do
12543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12544 cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12546 #include "confdefs.h"
12547 $ac_includes_default
12548 struct { char filler; short field; } pgac_struct;
12549 #ifdef F77_DUMMY_MAIN
12550 # ifdef __cplusplus
12553 int F77_DUMMY_MAIN() { return 1; }
12558 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12565 rm -f conftest.$ac_objext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12579 echo "$as_me: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 ac_lo=`expr '(' $ac_mid ')' + 1`
12583 rm -f conftest.$ac_objext conftest.$ac_ext
12586 ?*) pgac_cv_alignof_short=$ac_lo;;
12587 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12588 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12589 { (exit 1); exit 1; }; } ;;
12592 if test "$cross_compiling" = yes; then
12593 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12594 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12595 { (exit 1); exit 1; }; }
12597 cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 #include "confdefs.h"
12600 $ac_includes_default
12601 struct { char filler; short field; } pgac_struct;
12602 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12603 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12605 #include <stdlib.h>
12606 #ifdef F77_DUMMY_MAIN
12607 # ifdef __cplusplus
12610 int F77_DUMMY_MAIN() { return 1; }
12616 FILE *f = fopen ("conftest.val", "w");
12619 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12621 long i = longval ();
12622 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12624 fprintf (f, "%ld\n", i);
12628 unsigned long i = ulongval ();
12629 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12631 fprintf (f, "%lu\n", i);
12633 exit (ferror (f) || fclose (f) != 0);
12639 rm -f conftest$ac_exeext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12641 (eval $ac_link) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 pgac_cv_alignof_short=`cat conftest.val`
12652 echo "$as_me: program exited with status $ac_status" >&5
12653 echo "$as_me: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12655 ( exit $ac_status )
12656 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12657 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12658 { (exit 1); exit 1; }; }
12660 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12665 pgac_cv_alignof_short=0
12668 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12669 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12670 cat >>confdefs.h <<_ACEOF
12671 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12675 echo "$as_me:$LINENO: checking for int" >&5
12676 echo $ECHO_N "checking for int... $ECHO_C" >&6
12677 if test "${ac_cv_type_int+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 cat >conftest.$ac_ext <<_ACEOF
12681 #line $LINENO "configure"
12682 #include "confdefs.h"
12683 $ac_includes_default
12684 #ifdef F77_DUMMY_MAIN
12685 # ifdef __cplusplus
12688 int F77_DUMMY_MAIN() { return 1; }
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12715 echo "$as_me: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12719 rm -f conftest.$ac_objext conftest.$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12722 echo "${ECHO_T}$ac_cv_type_int" >&6
12724 echo "$as_me:$LINENO: checking alignment of int" >&5
12725 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12726 if test "${pgac_cv_alignof_int+set}" = set; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 if test "$ac_cv_type_int" = yes; then
12730 if test "$cross_compiling" = yes; then
12731 # Depending upon the size, compute the lo and hi bounds.
12732 cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735 $ac_includes_default
12736 struct { char filler; int field; } pgac_struct;
12737 #ifdef F77_DUMMY_MAIN
12738 # ifdef __cplusplus
12741 int F77_DUMMY_MAIN() { return 1; }
12746 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12767 cat >conftest.$ac_ext <<_ACEOF
12768 #line $LINENO "configure"
12769 #include "confdefs.h"
12770 $ac_includes_default
12771 struct { char filler; int field; } pgac_struct;
12772 #ifdef F77_DUMMY_MAIN
12773 # ifdef __cplusplus
12776 int F77_DUMMY_MAIN() { return 1; }
12781 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12788 rm -f conftest.$ac_objext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790 (eval $ac_compile) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -s conftest.$ac_objext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_hi=$ac_mid; break
12802 echo "$as_me: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12804 ac_lo=`expr $ac_mid + 1`
12805 if test $ac_lo -le $ac_mid; then
12809 ac_mid=`expr 2 '*' $ac_mid + 1`
12811 rm -f conftest.$ac_objext conftest.$ac_ext
12814 echo "$as_me: failed program was:" >&5
12815 cat conftest.$ac_ext >&5
12816 cat >conftest.$ac_ext <<_ACEOF
12817 #line $LINENO "configure"
12818 #include "confdefs.h"
12819 $ac_includes_default
12820 struct { char filler; int field; } pgac_struct;
12821 #ifdef F77_DUMMY_MAIN
12822 # ifdef __cplusplus
12825 int F77_DUMMY_MAIN() { return 1; }
12830 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12837 rm -f conftest.$ac_objext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839 (eval $ac_compile) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try='test -s conftest.$ac_objext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12851 cat >conftest.$ac_ext <<_ACEOF
12852 #line $LINENO "configure"
12853 #include "confdefs.h"
12854 $ac_includes_default
12855 struct { char filler; int field; } pgac_struct;
12856 #ifdef F77_DUMMY_MAIN
12857 # ifdef __cplusplus
12860 int F77_DUMMY_MAIN() { return 1; }
12865 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12872 rm -f conftest.$ac_objext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12874 (eval $ac_compile) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -s conftest.$ac_objext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_lo=$ac_mid; break
12886 echo "$as_me: failed program was:" >&5
12887 cat conftest.$ac_ext >&5
12888 ac_hi=`expr '(' $ac_mid ')' - 1`
12889 if test $ac_mid -le $ac_hi; then
12893 ac_mid=`expr 2 '*' $ac_mid`
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12898 echo "$as_me: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12902 rm -f conftest.$ac_objext conftest.$ac_ext
12904 rm -f conftest.$ac_objext conftest.$ac_ext
12905 # Binary search between lo and hi bounds.
12906 while test "x$ac_lo" != "x$ac_hi"; do
12907 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12908 cat >conftest.$ac_ext <<_ACEOF
12909 #line $LINENO "configure"
12910 #include "confdefs.h"
12911 $ac_includes_default
12912 struct { char filler; int field; } pgac_struct;
12913 #ifdef F77_DUMMY_MAIN
12914 # ifdef __cplusplus
12917 int F77_DUMMY_MAIN() { return 1; }
12922 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12929 rm -f conftest.$ac_objext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931 (eval $ac_compile) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -s conftest.$ac_objext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12943 echo "$as_me: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12945 ac_lo=`expr '(' $ac_mid ')' + 1`
12947 rm -f conftest.$ac_objext conftest.$ac_ext
12950 ?*) pgac_cv_alignof_int=$ac_lo;;
12951 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
12952 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
12953 { (exit 1); exit 1; }; } ;;
12956 if test "$cross_compiling" = yes; then
12957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12958 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12959 { (exit 1); exit 1; }; }
12961 cat >conftest.$ac_ext <<_ACEOF
12962 #line $LINENO "configure"
12963 #include "confdefs.h"
12964 $ac_includes_default
12965 struct { char filler; int field; } pgac_struct;
12966 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12967 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12969 #include <stdlib.h>
12970 #ifdef F77_DUMMY_MAIN
12971 # ifdef __cplusplus
12974 int F77_DUMMY_MAIN() { return 1; }
12980 FILE *f = fopen ("conftest.val", "w");
12983 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12985 long i = longval ();
12986 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12988 fprintf (f, "%ld\n", i);
12992 unsigned long i = ulongval ();
12993 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12995 fprintf (f, "%lu\n", i);
12997 exit (ferror (f) || fclose (f) != 0);
13003 rm -f conftest$ac_exeext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13005 (eval $ac_link) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 pgac_cv_alignof_int=`cat conftest.val`
13016 echo "$as_me: program exited with status $ac_status" >&5
13017 echo "$as_me: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 ( exit $ac_status )
13020 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13021 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13022 { (exit 1); exit 1; }; }
13024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13029 pgac_cv_alignof_int=0
13032 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13033 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13034 cat >>confdefs.h <<_ACEOF
13035 #define ALIGNOF_INT $pgac_cv_alignof_int
13039 echo "$as_me:$LINENO: checking for long" >&5
13040 echo $ECHO_N "checking for long... $ECHO_C" >&6
13041 if test "${ac_cv_type_long+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 cat >conftest.$ac_ext <<_ACEOF
13045 #line $LINENO "configure"
13046 #include "confdefs.h"
13047 $ac_includes_default
13048 #ifdef F77_DUMMY_MAIN
13049 # ifdef __cplusplus
13052 int F77_DUMMY_MAIN() { return 1; }
13065 rm -f conftest.$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_type_long=yes
13079 echo "$as_me: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13083 rm -f conftest.$ac_objext conftest.$ac_ext
13085 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13086 echo "${ECHO_T}$ac_cv_type_long" >&6
13088 echo "$as_me:$LINENO: checking alignment of long" >&5
13089 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13090 if test "${pgac_cv_alignof_long+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 if test "$ac_cv_type_long" = yes; then
13094 if test "$cross_compiling" = yes; then
13095 # Depending upon the size, compute the lo and hi bounds.
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13098 #include "confdefs.h"
13099 $ac_includes_default
13100 struct { char filler; long field; } pgac_struct;
13101 #ifdef F77_DUMMY_MAIN
13102 # ifdef __cplusplus
13105 int F77_DUMMY_MAIN() { return 1; }
13110 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13117 rm -f conftest.$ac_objext
13118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -s conftest.$ac_objext'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13131 cat >conftest.$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13133 #include "confdefs.h"
13134 $ac_includes_default
13135 struct { char filler; long field; } pgac_struct;
13136 #ifdef F77_DUMMY_MAIN
13137 # ifdef __cplusplus
13140 int F77_DUMMY_MAIN() { return 1; }
13145 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13152 rm -f conftest.$ac_objext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154 (eval $ac_compile) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_hi=$ac_mid; break
13166 echo "$as_me: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13168 ac_lo=`expr $ac_mid + 1`
13169 if test $ac_lo -le $ac_mid; then
13173 ac_mid=`expr 2 '*' $ac_mid + 1`
13175 rm -f conftest.$ac_objext conftest.$ac_ext
13178 echo "$as_me: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13180 cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 #include "confdefs.h"
13183 $ac_includes_default
13184 struct { char filler; long field; } pgac_struct;
13185 #ifdef F77_DUMMY_MAIN
13186 # ifdef __cplusplus
13189 int F77_DUMMY_MAIN() { return 1; }
13194 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13201 rm -f conftest.$ac_objext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13203 (eval $ac_compile) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -s conftest.$ac_objext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13215 cat >conftest.$ac_ext <<_ACEOF
13216 #line $LINENO "configure"
13217 #include "confdefs.h"
13218 $ac_includes_default
13219 struct { char filler; long field; } pgac_struct;
13220 #ifdef F77_DUMMY_MAIN
13221 # ifdef __cplusplus
13224 int F77_DUMMY_MAIN() { return 1; }
13229 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_lo=$ac_mid; break
13250 echo "$as_me: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 ac_hi=`expr '(' $ac_mid ')' - 1`
13253 if test $ac_mid -le $ac_hi; then
13257 ac_mid=`expr 2 '*' $ac_mid`
13259 rm -f conftest.$ac_objext conftest.$ac_ext
13262 echo "$as_me: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13266 rm -f conftest.$ac_objext conftest.$ac_ext
13268 rm -f conftest.$ac_objext conftest.$ac_ext
13269 # Binary search between lo and hi bounds.
13270 while test "x$ac_lo" != "x$ac_hi"; do
13271 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13272 cat >conftest.$ac_ext <<_ACEOF
13273 #line $LINENO "configure"
13274 #include "confdefs.h"
13275 $ac_includes_default
13276 struct { char filler; long field; } pgac_struct;
13277 #ifdef F77_DUMMY_MAIN
13278 # ifdef __cplusplus
13281 int F77_DUMMY_MAIN() { return 1; }
13286 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13293 rm -f conftest.$ac_objext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295 (eval $ac_compile) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13307 echo "$as_me: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 ac_lo=`expr '(' $ac_mid ')' + 1`
13311 rm -f conftest.$ac_objext conftest.$ac_ext
13314 ?*) pgac_cv_alignof_long=$ac_lo;;
13315 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13316 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13317 { (exit 1); exit 1; }; } ;;
13320 if test "$cross_compiling" = yes; then
13321 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13322 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13323 { (exit 1); exit 1; }; }
13325 cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13327 #include "confdefs.h"
13328 $ac_includes_default
13329 struct { char filler; long field; } pgac_struct;
13330 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13331 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13333 #include <stdlib.h>
13334 #ifdef F77_DUMMY_MAIN
13335 # ifdef __cplusplus
13338 int F77_DUMMY_MAIN() { return 1; }
13344 FILE *f = fopen ("conftest.val", "w");
13347 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13349 long i = longval ();
13350 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13352 fprintf (f, "%ld\n", i);
13356 unsigned long i = ulongval ();
13357 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13359 fprintf (f, "%lu\n", i);
13361 exit (ferror (f) || fclose (f) != 0);
13367 rm -f conftest$ac_exeext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13369 (eval $ac_link) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 pgac_cv_alignof_long=`cat conftest.val`
13380 echo "$as_me: program exited with status $ac_status" >&5
13381 echo "$as_me: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 ( exit $ac_status )
13384 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13385 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13386 { (exit 1); exit 1; }; }
13388 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13393 pgac_cv_alignof_long=0
13396 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13397 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13398 cat >>confdefs.h <<_ACEOF
13399 #define ALIGNOF_LONG $pgac_cv_alignof_long
13403 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13404 echo "$as_me:$LINENO: checking for long long int" >&5
13405 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13406 if test "${ac_cv_type_long_long_int+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 cat >conftest.$ac_ext <<_ACEOF
13410 #line $LINENO "configure"
13411 #include "confdefs.h"
13412 $ac_includes_default
13413 #ifdef F77_DUMMY_MAIN
13414 # ifdef __cplusplus
13417 int F77_DUMMY_MAIN() { return 1; }
13422 if ((long long int *) 0)
13424 if (sizeof (long long int))
13430 rm -f conftest.$ac_objext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13432 (eval $ac_compile) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_type_long_long_int=yes
13444 echo "$as_me: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13446 ac_cv_type_long_long_int=no
13448 rm -f conftest.$ac_objext conftest.$ac_ext
13450 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13451 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13453 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13454 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13455 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 if test "$ac_cv_type_long_long_int" = yes; then
13459 if test "$cross_compiling" = yes; then
13460 # Depending upon the size, compute the lo and hi bounds.
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line $LINENO "configure"
13463 #include "confdefs.h"
13464 $ac_includes_default
13465 struct { char filler; long long int field; } pgac_struct;
13466 #ifdef F77_DUMMY_MAIN
13467 # ifdef __cplusplus
13470 int F77_DUMMY_MAIN() { return 1; }
13475 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13482 rm -f conftest.$ac_objext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13484 (eval $ac_compile) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13496 cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 #include "confdefs.h"
13499 $ac_includes_default
13500 struct { char filler; long long int 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
13529 ac_hi=$ac_mid; break
13531 echo "$as_me: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 ac_lo=`expr $ac_mid + 1`
13534 if test $ac_lo -le $ac_mid; then
13538 ac_mid=`expr 2 '*' $ac_mid + 1`
13540 rm -f conftest.$ac_objext conftest.$ac_ext
13543 echo "$as_me: failed program was:" >&5
13544 cat conftest.$ac_ext >&5
13545 cat >conftest.$ac_ext <<_ACEOF
13546 #line $LINENO "configure"
13547 #include "confdefs.h"
13548 $ac_includes_default
13549 struct { char filler; long long int field; } pgac_struct;
13550 #ifdef F77_DUMMY_MAIN
13551 # ifdef __cplusplus
13554 int F77_DUMMY_MAIN() { return 1; }
13559 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13580 cat >conftest.$ac_ext <<_ACEOF
13581 #line $LINENO "configure"
13582 #include "confdefs.h"
13583 $ac_includes_default
13584 struct { char filler; long long int field; } pgac_struct;
13585 #ifdef F77_DUMMY_MAIN
13586 # ifdef __cplusplus
13589 int F77_DUMMY_MAIN() { return 1; }
13594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603 (eval $ac_compile) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try='test -s conftest.$ac_objext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_lo=$ac_mid; break
13615 echo "$as_me: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13617 ac_hi=`expr '(' $ac_mid ')' - 1`
13618 if test $ac_mid -le $ac_hi; then
13622 ac_mid=`expr 2 '*' $ac_mid`
13624 rm -f conftest.$ac_objext conftest.$ac_ext
13627 echo "$as_me: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13633 rm -f conftest.$ac_objext conftest.$ac_ext
13634 # Binary search between lo and hi bounds.
13635 while test "x$ac_lo" != "x$ac_hi"; do
13636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13639 #include "confdefs.h"
13640 $ac_includes_default
13641 struct { char filler; long long int field; } pgac_struct;
13642 #ifdef F77_DUMMY_MAIN
13643 # ifdef __cplusplus
13646 int F77_DUMMY_MAIN() { return 1; }
13651 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13672 echo "$as_me: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13674 ac_lo=`expr '(' $ac_mid ')' + 1`
13676 rm -f conftest.$ac_objext conftest.$ac_ext
13679 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13680 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13681 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13682 { (exit 1); exit 1; }; } ;;
13685 if test "$cross_compiling" = yes; then
13686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13687 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13688 { (exit 1); exit 1; }; }
13690 cat >conftest.$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13692 #include "confdefs.h"
13693 $ac_includes_default
13694 struct { char filler; long long int field; } pgac_struct;
13695 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13696 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13698 #include <stdlib.h>
13699 #ifdef F77_DUMMY_MAIN
13700 # ifdef __cplusplus
13703 int F77_DUMMY_MAIN() { return 1; }
13709 FILE *f = fopen ("conftest.val", "w");
13712 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13714 long i = longval ();
13715 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13717 fprintf (f, "%ld\n", i);
13721 unsigned long i = ulongval ();
13722 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13724 fprintf (f, "%lu\n", i);
13726 exit (ferror (f) || fclose (f) != 0);
13732 rm -f conftest$ac_exeext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734 (eval $ac_link) 2>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 pgac_cv_alignof_long_long_int=`cat conftest.val`
13745 echo "$as_me: program exited with status $ac_status" >&5
13746 echo "$as_me: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13748 ( exit $ac_status )
13749 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13750 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13751 { (exit 1); exit 1; }; }
13753 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13758 pgac_cv_alignof_long_long_int=0
13761 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13762 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13763 cat >>confdefs.h <<_ACEOF
13764 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13769 echo "$as_me:$LINENO: checking for double" >&5
13770 echo $ECHO_N "checking for double... $ECHO_C" >&6
13771 if test "${ac_cv_type_double+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13776 #include "confdefs.h"
13777 $ac_includes_default
13778 #ifdef F77_DUMMY_MAIN
13779 # ifdef __cplusplus
13782 int F77_DUMMY_MAIN() { return 1; }
13789 if (sizeof (double))
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797 (eval $ac_compile) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -s conftest.$ac_objext'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13807 ac_cv_type_double=yes
13809 echo "$as_me: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13811 ac_cv_type_double=no
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13815 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13816 echo "${ECHO_T}$ac_cv_type_double" >&6
13818 echo "$as_me:$LINENO: checking alignment of double" >&5
13819 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13820 if test "${pgac_cv_alignof_double+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 if test "$ac_cv_type_double" = yes; then
13824 if test "$cross_compiling" = yes; then
13825 # Depending upon the size, compute the lo and hi bounds.
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13828 #include "confdefs.h"
13829 $ac_includes_default
13830 struct { char filler; double field; } pgac_struct;
13831 #ifdef F77_DUMMY_MAIN
13832 # ifdef __cplusplus
13835 int F77_DUMMY_MAIN() { return 1; }
13840 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849 (eval $ac_compile) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13861 cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13864 $ac_includes_default
13865 struct { char filler; double 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
13894 ac_hi=$ac_mid; break
13896 echo "$as_me: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 ac_lo=`expr $ac_mid + 1`
13899 if test $ac_lo -le $ac_mid; then
13903 ac_mid=`expr 2 '*' $ac_mid + 1`
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 cat >conftest.$ac_ext <<_ACEOF
13911 #line $LINENO "configure"
13912 #include "confdefs.h"
13913 $ac_includes_default
13914 struct { char filler; double field; } pgac_struct;
13915 #ifdef F77_DUMMY_MAIN
13916 # ifdef __cplusplus
13919 int F77_DUMMY_MAIN() { return 1; }
13924 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13945 cat >conftest.$ac_ext <<_ACEOF
13946 #line $LINENO "configure"
13947 #include "confdefs.h"
13948 $ac_includes_default
13949 struct { char filler; double field; } pgac_struct;
13950 #ifdef F77_DUMMY_MAIN
13951 # ifdef __cplusplus
13954 int F77_DUMMY_MAIN() { return 1; }
13959 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_lo=$ac_mid; break
13980 echo "$as_me: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 ac_hi=`expr '(' $ac_mid ')' - 1`
13983 if test $ac_mid -le $ac_hi; then
13987 ac_mid=`expr 2 '*' $ac_mid`
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13992 echo "$as_me: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13998 rm -f conftest.$ac_objext conftest.$ac_ext
13999 # Binary search between lo and hi bounds.
14000 while test "x$ac_lo" != "x$ac_hi"; do
14001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 struct { char filler; double field; } pgac_struct;
14007 #ifdef F77_DUMMY_MAIN
14008 # ifdef __cplusplus
14011 int F77_DUMMY_MAIN() { return 1; }
14016 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -s conftest.$ac_objext'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14037 echo "$as_me: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 ac_lo=`expr '(' $ac_mid ')' + 1`
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14044 ?*) pgac_cv_alignof_double=$ac_lo;;
14045 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14046 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14047 { (exit 1); exit 1; }; } ;;
14050 if test "$cross_compiling" = yes; then
14051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14052 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14053 { (exit 1); exit 1; }; }
14055 cat >conftest.$ac_ext <<_ACEOF
14056 #line $LINENO "configure"
14057 #include "confdefs.h"
14058 $ac_includes_default
14059 struct { char filler; double field; } pgac_struct;
14060 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14061 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14063 #include <stdlib.h>
14064 #ifdef F77_DUMMY_MAIN
14065 # ifdef __cplusplus
14068 int F77_DUMMY_MAIN() { return 1; }
14074 FILE *f = fopen ("conftest.val", "w");
14077 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14079 long i = longval ();
14080 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14082 fprintf (f, "%ld\n", i);
14086 unsigned long i = ulongval ();
14087 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14089 fprintf (f, "%lu\n", i);
14091 exit (ferror (f) || fclose (f) != 0);
14097 rm -f conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 pgac_cv_alignof_double=`cat conftest.val`
14110 echo "$as_me: program exited with status $ac_status" >&5
14111 echo "$as_me: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 ( exit $ac_status )
14114 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14115 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14116 { (exit 1); exit 1; }; }
14118 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14123 pgac_cv_alignof_double=0
14126 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14127 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14128 cat >>confdefs.h <<_ACEOF
14129 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14134 # Compute maximum alignment of any basic type.
14135 # We assume long's alignment is at least as strong as char, short, or int;
14136 # but we must check long long (if it exists) and double.
14138 MAX_ALIGNOF=$pgac_cv_alignof_long
14139 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14140 MAX_ALIGNOF=$pgac_cv_alignof_double
14142 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14143 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14146 cat >>confdefs.h <<_ACEOF
14147 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14152 # Some platforms predefine the types int8, int16, etc. Only check
14153 # a (hopefully) representative subset.
14154 echo "$as_me:$LINENO: checking for int8" >&5
14155 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14156 if test "${ac_cv_type_int8+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14160 #line $LINENO "configure"
14161 #include "confdefs.h"
14163 #ifdef HAVE_SUPPORTDEFS_H
14164 #include <SupportDefs.h>
14167 #ifdef F77_DUMMY_MAIN
14168 # ifdef __cplusplus
14171 int F77_DUMMY_MAIN() { return 1; }
14184 rm -f conftest.$ac_objext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186 (eval $ac_compile) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_type_int8=yes
14198 echo "$as_me: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14205 echo "${ECHO_T}$ac_cv_type_int8" >&6
14206 if test $ac_cv_type_int8 = yes; then
14208 cat >>confdefs.h <<_ACEOF
14209 #define HAVE_INT8 1
14214 echo "$as_me:$LINENO: checking for uint8" >&5
14215 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14216 if test "${ac_cv_type_uint8+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14223 #ifdef HAVE_SUPPORTDEFS_H
14224 #include <SupportDefs.h>
14227 #ifdef F77_DUMMY_MAIN
14228 # ifdef __cplusplus
14231 int F77_DUMMY_MAIN() { return 1; }
14238 if (sizeof (uint8))
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -s conftest.$ac_objext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_type_uint8=yes
14258 echo "$as_me: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14260 ac_cv_type_uint8=no
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14264 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14265 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14266 if test $ac_cv_type_uint8 = yes; then
14268 cat >>confdefs.h <<_ACEOF
14269 #define HAVE_UINT8 1
14274 echo "$as_me:$LINENO: checking for int64" >&5
14275 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14276 if test "${ac_cv_type_int64+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14281 #include "confdefs.h"
14283 #ifdef HAVE_SUPPORTDEFS_H
14284 #include <SupportDefs.h>
14287 #ifdef F77_DUMMY_MAIN
14288 # ifdef __cplusplus
14291 int F77_DUMMY_MAIN() { return 1; }
14298 if (sizeof (int64))
14304 rm -f conftest.$ac_objext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -s conftest.$ac_objext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_cv_type_int64=yes
14318 echo "$as_me: failed program was:" >&5
14319 cat conftest.$ac_ext >&5
14320 ac_cv_type_int64=no
14322 rm -f conftest.$ac_objext conftest.$ac_ext
14324 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14325 echo "${ECHO_T}$ac_cv_type_int64" >&6
14326 if test $ac_cv_type_int64 = yes; then
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_INT64 1
14334 echo "$as_me:$LINENO: checking for uint64" >&5
14335 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14336 if test "${ac_cv_type_uint64+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14340 #line $LINENO "configure"
14341 #include "confdefs.h"
14343 #ifdef HAVE_SUPPORTDEFS_H
14344 #include <SupportDefs.h>
14347 #ifdef F77_DUMMY_MAIN
14348 # ifdef __cplusplus
14351 int F77_DUMMY_MAIN() { return 1; }
14358 if (sizeof (uint64))
14364 rm -f conftest.$ac_objext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_cv_type_uint64=yes
14378 echo "$as_me: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14380 ac_cv_type_uint64=no
14382 rm -f conftest.$ac_objext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14385 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14386 if test $ac_cv_type_uint64 = yes; then
14388 cat >>confdefs.h <<_ACEOF
14389 #define HAVE_UINT64 1
14396 # We also check for sig_atomic_t, which *should* be defined per ANSI
14397 # C, but is missing on some old platforms.
14398 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14399 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14400 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 cat >conftest.$ac_ext <<_ACEOF
14404 #line $LINENO "configure"
14405 #include "confdefs.h"
14406 #include <signal.h>
14408 #ifdef F77_DUMMY_MAIN
14409 # ifdef __cplusplus
14412 int F77_DUMMY_MAIN() { return 1; }
14417 if ((sig_atomic_t *) 0)
14419 if (sizeof (sig_atomic_t))
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 ac_cv_type_sig_atomic_t=yes
14439 echo "$as_me: failed program was:" >&5
14440 cat conftest.$ac_ext >&5
14441 ac_cv_type_sig_atomic_t=no
14443 rm -f conftest.$ac_objext conftest.$ac_ext
14445 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14446 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14447 if test $ac_cv_type_sig_atomic_t = yes; then
14449 cat >>confdefs.h <<_ACEOF
14450 #define HAVE_SIG_ATOMIC_T 1
14458 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14459 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14460 if test "${pgac_cv_func_posix_signals+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 cat >conftest.$ac_ext <<_ACEOF
14464 #line $LINENO "configure"
14465 #include "confdefs.h"
14466 #include <signal.h>
14468 #ifdef F77_DUMMY_MAIN
14469 # ifdef __cplusplus
14472 int F77_DUMMY_MAIN() { return 1; }
14477 struct sigaction act, oact;
14478 sigemptyset(&act.sa_mask);
14479 act.sa_flags = SA_RESTART;
14480 sigaction(0, &act, &oact);
14485 rm -f conftest.$ac_objext conftest$ac_exeext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14487 (eval $ac_link) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -s conftest$ac_exeext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 pgac_cv_func_posix_signals=yes
14499 echo "$as_me: failed program was:" >&5
14500 cat conftest.$ac_ext >&5
14501 pgac_cv_func_posix_signals=no
14503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14505 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14506 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14507 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14509 cat >>confdefs.h <<\_ACEOF
14510 #define HAVE_POSIX_SIGNALS
14514 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14516 if test $ac_cv_func_fseeko = yes; then
14517 # Check whether --enable-largefile or --disable-largefile was given.
14518 if test "${enable_largefile+set}" = set; then
14519 enableval="$enable_largefile"
14522 if test "$enable_largefile" != no; then
14524 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14525 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14526 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 ac_cv_sys_largefile_CC=no
14530 if test "$GCC" != yes; then
14533 # IRIX 6.2 and later do not support large files by default,
14534 # so use the C compiler's -n32 option if that helps.
14535 cat >conftest.$ac_ext <<_ACEOF
14536 #line $LINENO "configure"
14537 #include "confdefs.h"
14538 #include <sys/types.h>
14539 /* Check that off_t can represent 2**63 - 1 correctly.
14540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14541 since some C++ compilers masquerading as C compilers
14542 incorrectly reject 9223372036854775807. */
14543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14545 && LARGE_OFF_T % 2147483647 == 1)
14547 #ifdef F77_DUMMY_MAIN
14548 # ifdef __cplusplus
14551 int F77_DUMMY_MAIN() { return 1; }
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14575 echo "$as_me: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14578 rm -f conftest.$ac_objext
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_cv_sys_largefile_CC=' -n32'; break
14594 echo "$as_me: failed program was:" >&5
14595 cat conftest.$ac_ext >&5
14597 rm -f conftest.$ac_objext
14601 rm -f conftest.$ac_ext
14604 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14605 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14606 if test "$ac_cv_sys_largefile_CC" != no; then
14607 CC=$CC$ac_cv_sys_largefile_CC
14610 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14611 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14612 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 ac_cv_sys_file_offset_bits=no
14617 cat >conftest.$ac_ext <<_ACEOF
14618 #line $LINENO "configure"
14619 #include "confdefs.h"
14620 #include <sys/types.h>
14621 /* Check that off_t can represent 2**63 - 1 correctly.
14622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14623 since some C++ compilers masquerading as C compilers
14624 incorrectly reject 9223372036854775807. */
14625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14627 && LARGE_OFF_T % 2147483647 == 1)
14629 #ifdef F77_DUMMY_MAIN
14630 # ifdef __cplusplus
14633 int F77_DUMMY_MAIN() { return 1; }
14643 rm -f conftest.$ac_objext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14645 (eval $ac_compile) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -s conftest.$ac_objext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14657 echo "$as_me: failed program was:" >&5
14658 cat conftest.$ac_ext >&5
14660 rm -f conftest.$ac_objext conftest.$ac_ext
14661 cat >conftest.$ac_ext <<_ACEOF
14662 #line $LINENO "configure"
14663 #include "confdefs.h"
14664 #define _FILE_OFFSET_BITS 64
14665 #include <sys/types.h>
14666 /* Check that off_t can represent 2**63 - 1 correctly.
14667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14668 since some C++ compilers masquerading as C compilers
14669 incorrectly reject 9223372036854775807. */
14670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14672 && LARGE_OFF_T % 2147483647 == 1)
14674 #ifdef F77_DUMMY_MAIN
14675 # ifdef __cplusplus
14678 int F77_DUMMY_MAIN() { return 1; }
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_sys_file_offset_bits=64; break
14702 echo "$as_me: failed program was:" >&5
14703 cat conftest.$ac_ext >&5
14705 rm -f conftest.$ac_objext conftest.$ac_ext
14709 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14710 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14711 if test "$ac_cv_sys_file_offset_bits" != no; then
14713 cat >>confdefs.h <<_ACEOF
14714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14719 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14720 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14721 if test "${ac_cv_sys_large_files+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 ac_cv_sys_large_files=no
14726 cat >conftest.$ac_ext <<_ACEOF
14727 #line $LINENO "configure"
14728 #include "confdefs.h"
14729 #include <sys/types.h>
14730 /* Check that off_t can represent 2**63 - 1 correctly.
14731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14732 since some C++ compilers masquerading as C compilers
14733 incorrectly reject 9223372036854775807. */
14734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14736 && LARGE_OFF_T % 2147483647 == 1)
14738 #ifdef F77_DUMMY_MAIN
14739 # ifdef __cplusplus
14742 int F77_DUMMY_MAIN() { return 1; }
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14766 echo "$as_me: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14769 rm -f conftest.$ac_objext conftest.$ac_ext
14770 cat >conftest.$ac_ext <<_ACEOF
14771 #line $LINENO "configure"
14772 #include "confdefs.h"
14773 #define _LARGE_FILES 1
14774 #include <sys/types.h>
14775 /* Check that off_t can represent 2**63 - 1 correctly.
14776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14777 since some C++ compilers masquerading as C compilers
14778 incorrectly reject 9223372036854775807. */
14779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14781 && LARGE_OFF_T % 2147483647 == 1)
14783 #ifdef F77_DUMMY_MAIN
14784 # ifdef __cplusplus
14787 int F77_DUMMY_MAIN() { return 1; }
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799 (eval $ac_compile) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -s conftest.$ac_objext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_cv_sys_large_files=1; break
14811 echo "$as_me: failed program was:" >&5
14812 cat conftest.$ac_ext >&5
14814 rm -f conftest.$ac_objext conftest.$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14819 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14820 if test "$ac_cv_sys_large_files" != no; then
14822 cat >>confdefs.h <<_ACEOF
14823 #define _LARGE_FILES $ac_cv_sys_large_files
14833 # Select semaphore implementation type.
14834 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14836 cat >>confdefs.h <<\_ACEOF
14837 #define USE_NAMED_POSIX_SEMAPHORES 1
14840 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14842 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14844 cat >>confdefs.h <<\_ACEOF
14845 #define USE_UNNAMED_POSIX_SEMAPHORES 1
14848 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14851 cat >>confdefs.h <<\_ACEOF
14852 #define USE_SYSV_SEMAPHORES 1
14855 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14860 # Select shared-memory implementation type.
14862 cat >>confdefs.h <<\_ACEOF
14863 #define USE_SYSV_SHARED_MEMORY 1
14866 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14869 if test "$enable_nls" = yes ; then
14871 echo "$as_me:$LINENO: checking for library containing gettext" >&5
14872 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
14873 if test "${ac_cv_search_gettext+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 ac_func_search_save_LIBS=$LIBS
14877 ac_cv_search_gettext=no
14878 cat >conftest.$ac_ext <<_ACEOF
14879 #line $LINENO "configure"
14880 #include "confdefs.h"
14882 /* Override any gcc2 internal prototype to avoid an error. */
14886 /* We use char because int might match the return type of a gcc2
14887 builtin and then its argument prototype would still apply. */
14889 #ifdef F77_DUMMY_MAIN
14890 # ifdef __cplusplus
14893 int F77_DUMMY_MAIN() { return 1; }
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14905 (eval $ac_link) 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -s conftest$ac_exeext'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_search_gettext="none required"
14917 echo "$as_me: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14921 if test "$ac_cv_search_gettext" = no; then
14922 for ac_lib in intl; do
14923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14924 cat >conftest.$ac_ext <<_ACEOF
14925 #line $LINENO "configure"
14926 #include "confdefs.h"
14928 /* Override any gcc2 internal prototype to avoid an error. */
14932 /* We use char because int might match the return type of a gcc2
14933 builtin and then its argument prototype would still apply. */
14935 #ifdef F77_DUMMY_MAIN
14936 # ifdef __cplusplus
14939 int F77_DUMMY_MAIN() { return 1; }
14949 rm -f conftest.$ac_objext conftest$ac_exeext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14951 (eval $ac_link) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
14955 { ac_try='test -s conftest$ac_exeext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_cv_search_gettext="-l$ac_lib"
14964 echo "$as_me: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14970 LIBS=$ac_func_search_save_LIBS
14972 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
14973 echo "${ECHO_T}$ac_cv_search_gettext" >&6
14974 if test "$ac_cv_search_gettext" != no; then
14975 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
14978 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
14979 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
14980 { (exit 1); exit 1; }; }
14983 if test "${ac_cv_header_libintl_h+set}" = set; then
14984 echo "$as_me:$LINENO: checking for libintl.h" >&5
14985 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14986 if test "${ac_cv_header_libintl_h+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14990 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14992 # Is the header compilable?
14993 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14994 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14995 cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14997 #include "confdefs.h"
14998 $ac_includes_default
14999 #include <libintl.h>
15001 rm -f conftest.$ac_objext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15003 (eval $ac_compile) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 ac_header_compiler=yes
15015 echo "$as_me: failed program was:" >&5
15016 cat conftest.$ac_ext >&5
15017 ac_header_compiler=no
15019 rm -f conftest.$ac_objext conftest.$ac_ext
15020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15021 echo "${ECHO_T}$ac_header_compiler" >&6
15023 # Is the header present?
15024 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15025 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15029 #include <libintl.h>
15031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15034 egrep -v '^ *\+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } >/dev/null; then
15039 if test -s conftest.err; then
15040 ac_cpp_err=$ac_c_preproc_warn_flag
15047 if test -z "$ac_cpp_err"; then
15048 ac_header_preproc=yes
15050 echo "$as_me: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15052 ac_header_preproc=no
15054 rm -f conftest.err conftest.$ac_ext
15055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15056 echo "${ECHO_T}$ac_header_preproc" >&6
15058 # So? What about this header?
15059 case $ac_header_compiler:$ac_header_preproc in
15061 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15062 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15064 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15066 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15067 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15069 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15071 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15073 echo "$as_me:$LINENO: checking for libintl.h" >&5
15074 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15075 if test "${ac_cv_header_libintl_h+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 ac_cv_header_libintl_h=$ac_header_preproc
15080 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15081 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15084 if test $ac_cv_header_libintl_h = yes; then
15087 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15088 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15089 { (exit 1); exit 1; }; }
15093 for ac_prog in msgfmt
15095 # Extract the first word of "$ac_prog", so it can be a program name with args.
15096 set dummy $ac_prog; ac_word=$2
15097 echo "$as_me:$LINENO: checking for $ac_word" >&5
15098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15099 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 if test -n "$MSGFMT"; then
15103 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15109 test -z "$as_dir" && as_dir=.
15110 for ac_exec_ext in '' $ac_executable_extensions; do
15111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15112 ac_cv_prog_MSGFMT="$ac_prog"
15113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15121 MSGFMT=$ac_cv_prog_MSGFMT
15122 if test -n "$MSGFMT"; then
15123 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15124 echo "${ECHO_T}$MSGFMT" >&6
15126 echo "$as_me:$LINENO: result: no" >&5
15127 echo "${ECHO_T}no" >&6
15130 test -n "$MSGFMT" && break
15133 if test -z "$MSGFMT"; then
15134 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15135 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15136 { (exit 1); exit 1; }; }
15138 for ac_prog in msgmerge
15140 # Extract the first word of "$ac_prog", so it can be a program name with args.
15141 set dummy $ac_prog; ac_word=$2
15142 echo "$as_me:$LINENO: checking for $ac_word" >&5
15143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15144 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 if test -n "$MSGMERGE"; then
15148 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_MSGMERGE="$ac_prog"
15158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 MSGMERGE=$ac_cv_prog_MSGMERGE
15167 if test -n "$MSGMERGE"; then
15168 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15169 echo "${ECHO_T}$MSGMERGE" >&6
15171 echo "$as_me:$LINENO: result: no" >&5
15172 echo "${ECHO_T}no" >&6
15175 test -n "$MSGMERGE" && break
15178 for ac_prog in xgettext
15180 # Extract the first word of "$ac_prog", so it can be a program name with args.
15181 set dummy $ac_prog; ac_word=$2
15182 echo "$as_me:$LINENO: checking for $ac_word" >&5
15183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15184 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 if test -n "$XGETTEXT"; then
15188 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15191 for as_dir in $PATH
15194 test -z "$as_dir" && as_dir=.
15195 for ac_exec_ext in '' $ac_executable_extensions; do
15196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15197 ac_cv_prog_XGETTEXT="$ac_prog"
15198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15206 XGETTEXT=$ac_cv_prog_XGETTEXT
15207 if test -n "$XGETTEXT"; then
15208 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15209 echo "${ECHO_T}$XGETTEXT" >&6
15211 echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15215 test -n "$XGETTEXT" && break
15219 # Note: share/locale is always the default, independent of $datadir
15220 localedir='${prefix}/share/locale'
15221 if test x"$prefix" = x"NONE"; then
15222 exp_localedir="$ac_default_prefix/share/locale"
15224 exp_localedir="$prefix/share/locale"
15229 cat >>confdefs.h <<_ACEOF
15230 #define LOCALEDIR "$exp_localedir"
15236 # Check for Tcl configuration script tclConfig.sh
15237 if test "$with_tcl" = yes; then
15238 for ac_prog in tclsh tcl
15240 # Extract the first word of "$ac_prog", so it can be a program name with args.
15241 set dummy $ac_prog; ac_word=$2
15242 echo "$as_me:$LINENO: checking for $ac_word" >&5
15243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15244 if test "${ac_cv_path_TCLSH+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15269 TCLSH=$ac_cv_path_TCLSH
15271 if test -n "$TCLSH"; then
15272 echo "$as_me:$LINENO: result: $TCLSH" >&5
15273 echo "${ECHO_T}$TCLSH" >&6
15275 echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15279 test -n "$TCLSH" && break
15282 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15283 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15284 # Let user override test
15285 if test -z "$TCL_CONFIG_SH"; then
15286 pgac_test_dirs="$with_tclconfig"
15288 set X $pgac_test_dirs; shift
15289 if test $# -eq 0; then
15290 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15291 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15292 { (exit 1); exit 1; }; }
15293 set X `echo 'puts $auto_path' | $TCLSH`; shift
15297 if test -r "$pgac_dir/tclConfig.sh"; then
15298 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15304 if test -z "$TCL_CONFIG_SH"; then
15305 echo "$as_me:$LINENO: result: no" >&5
15306 echo "${ECHO_T}no" >&6
15307 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15308 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15309 { (exit 1); exit 1; }; }
15311 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15312 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15318 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15319 eval TCL_LIBS=\"$TCL_LIBS\"
15320 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15321 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15325 # Check for Tk configuration script tkConfig.sh
15326 if test "$with_tk" = yes; then
15327 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15328 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15329 # Let user override test
15330 if test -z "$TK_CONFIG_SH"; then
15331 pgac_test_dirs="$with_tkconfig $with_tclconfig"
15333 set X $pgac_test_dirs; shift
15334 if test $# -eq 0; then
15335 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15336 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15337 { (exit 1); exit 1; }; }
15338 set X `echo 'puts $auto_path' | $TCLSH`; shift
15342 if test -r "$pgac_dir/tkConfig.sh"; then
15343 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15349 if test -z "$TK_CONFIG_SH"; then
15350 echo "$as_me:$LINENO: result: no" >&5
15351 echo "${ECHO_T}no" >&6
15352 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15353 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15354 { (exit 1); exit 1; }; }
15356 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15357 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15363 eval TK_LIBS=\"$TK_LIBS\"
15364 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15365 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15371 # Check for DocBook and tools
15373 for ac_prog in onsgmls nsgmls
15375 # Extract the first word of "$ac_prog", so it can be a program name with args.
15376 set dummy $ac_prog; ac_word=$2
15377 echo "$as_me:$LINENO: checking for $ac_word" >&5
15378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15379 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 if test -n "$NSGMLS"; then
15383 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15389 test -z "$as_dir" && as_dir=.
15390 for ac_exec_ext in '' $ac_executable_extensions; do
15391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392 ac_cv_prog_NSGMLS="$ac_prog"
15393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15401 NSGMLS=$ac_cv_prog_NSGMLS
15402 if test -n "$NSGMLS"; then
15403 echo "$as_me:$LINENO: result: $NSGMLS" >&5
15404 echo "${ECHO_T}$NSGMLS" >&6
15406 echo "$as_me:$LINENO: result: no" >&5
15407 echo "${ECHO_T}no" >&6
15410 test -n "$NSGMLS" && break
15413 for ac_prog in openjade jade
15415 # Extract the first word of "$ac_prog", so it can be a program name with args.
15416 set dummy $ac_prog; ac_word=$2
15417 echo "$as_me:$LINENO: checking for $ac_word" >&5
15418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15419 if test "${ac_cv_prog_JADE+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 if test -n "$JADE"; then
15423 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $PATH
15429 test -z "$as_dir" && as_dir=.
15430 for ac_exec_ext in '' $ac_executable_extensions; do
15431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15432 ac_cv_prog_JADE="$ac_prog"
15433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15441 JADE=$ac_cv_prog_JADE
15442 if test -n "$JADE"; then
15443 echo "$as_me:$LINENO: result: $JADE" >&5
15444 echo "${ECHO_T}$JADE" >&6
15446 echo "$as_me:$LINENO: result: no" >&5
15447 echo "${ECHO_T}no" >&6
15450 test -n "$JADE" && break
15454 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15455 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15456 if test "${pgac_cv_check_docbook+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 cat >conftest.sgml <<EOF
15460 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15462 <title>test</title>
15464 <title>random</title>
15466 <title>testsect</title>
15473 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15474 if test $? -eq 0; then
15475 pgac_cv_check_docbook=yes
15477 pgac_cv_check_docbook=no
15479 rm -f conftest.sgml
15481 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15482 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15484 have_docbook=$pgac_cv_check_docbook
15487 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15488 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15489 if test "${pgac_cv_path_stylesheets+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 if test -n "$DOCBOOKSTYLE"; then
15493 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15495 for pgac_prefix in /usr /usr/local /opt; do
15496 for pgac_infix in share lib; do
15497 for pgac_postfix in \
15498 sgml/stylesheets/nwalsh-modular \
15499 sgml/stylesheets/docbook \
15500 sgml/docbook/dsssl/modular \
15501 sgml/docbook/stylesheet/dsssl/modular \
15502 sgml/docbook/dsssl-stylesheets
15504 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15505 if test -r "$pgac_candidate/html/docbook.dsl" \
15506 && test -r "$pgac_candidate/print/docbook.dsl"
15508 pgac_cv_path_stylesheets=$pgac_candidate
15517 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15519 if test -n "$DOCBOOKSTYLE"; then
15520 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15521 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15523 echo "$as_me:$LINENO: result: no" >&5
15524 echo "${ECHO_T}no" >&6
15526 if test -n "$DOCBOOKSTYLE"; then
15527 for ac_prog in collateindex.pl
15529 # Extract the first word of "$ac_prog", so it can be a program name with args.
15530 set dummy $ac_prog; ac_word=$2
15531 echo "$as_me:$LINENO: checking for $ac_word" >&5
15532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15533 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 case $COLLATEINDEX in
15538 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15542 for as_dir in $DOCBOOKSTYLE/bin $PATH
15545 test -z "$as_dir" && as_dir=.
15546 for ac_exec_ext in '' $ac_executable_extensions; do
15547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15548 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15558 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15560 if test -n "$COLLATEINDEX"; then
15561 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15562 echo "${ECHO_T}$COLLATEINDEX" >&6
15564 echo "$as_me:$LINENO: result: no" >&5
15565 echo "${ECHO_T}no" >&6
15568 test -n "$COLLATEINDEX" && break
15572 for ac_prog in collateindex.pl
15574 # Extract the first word of "$ac_prog", so it can be a program name with args.
15575 set dummy $ac_prog; ac_word=$2
15576 echo "$as_me:$LINENO: checking for $ac_word" >&5
15577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15578 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 case $COLLATEINDEX in
15583 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH
15590 test -z "$as_dir" && as_dir=.
15591 for ac_exec_ext in '' $ac_executable_extensions; do
15592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15593 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15603 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15605 if test -n "$COLLATEINDEX"; then
15606 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15607 echo "${ECHO_T}$COLLATEINDEX" >&6
15609 echo "$as_me:$LINENO: result: no" >&5
15610 echo "${ECHO_T}no" >&6
15613 test -n "$COLLATEINDEX" && break
15617 for ac_prog in sgmlspl
15619 # Extract the first word of "$ac_prog", so it can be a program name with args.
15620 set dummy $ac_prog; ac_word=$2
15621 echo "$as_me:$LINENO: checking for $ac_word" >&5
15622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15623 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 if test -n "$SGMLSPL"; then
15627 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15633 test -z "$as_dir" && as_dir=.
15634 for ac_exec_ext in '' $ac_executable_extensions; do
15635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636 ac_cv_prog_SGMLSPL="$ac_prog"
15637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15645 SGMLSPL=$ac_cv_prog_SGMLSPL
15646 if test -n "$SGMLSPL"; then
15647 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15648 echo "${ECHO_T}$SGMLSPL" >&6
15650 echo "$as_me:$LINENO: result: no" >&5
15651 echo "${ECHO_T}no" >&6
15654 test -n "$SGMLSPL" && break
15659 # prepare build tree if outside source tree
15660 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15661 # Note 2: /bin/pwd might be better than shell's built-in at getting
15662 # a symlink-free name.
15663 if test "$no_create" != yes; then
15664 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15669 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15670 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15671 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15672 || { { echo "$as_me:$LINENO: error: failed" >&5
15673 echo "$as_me: error: failed" >&2;}
15674 { (exit 1); exit 1; }; }
15675 echo "$as_me:$LINENO: result: done" >&5
15676 echo "${ECHO_T}done" >&6
15681 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15684 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}"
15687 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15690 cat >confcache <<\_ACEOF
15691 # This file is a shell script that caches the results of configure
15692 # tests run on this system so they can be shared between configure
15693 # scripts and configure runs, see configure's option --config-cache.
15694 # It is not useful on other systems. If it contains results you don't
15695 # want to keep, you may remove or edit it.
15697 # config.status only pays attention to the cache file if you give it
15698 # the --recheck option to rerun configure.
15700 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15702 # following values.
15706 # The following way of writing the cache mishandles newlines in values,
15707 # but we know of no workaround that is simple, portable, and efficient.
15708 # So, don't put newlines in cache variables' values.
15709 # Ultrix sh set writes to stderr and can't be redirected directly,
15710 # and sets the high bit in the cache file unless we assign to the vars.
15713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15715 # `set' does not quote correctly, so add quotes (double-quote
15716 # substitution turns \\\\ into \\, and sed turns \\ into \).
15719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15722 # `set' quotes correctly as required by POSIX, so do not add quotes.
15724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15735 if cmp -s $cache_file confcache; then :; else
15736 if test -w $cache_file; then
15737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15738 cat confcache >$cache_file
15740 echo "not updating unwritable cache $cache_file"
15745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15746 # Let make expand exec_prefix.
15747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15751 # trailing colons and then remove the whole line if VPATH becomes empty
15752 # (actually we leave an empty line to preserve line numbers).
15753 if test "x$srcdir" = x.; then
15754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15755 s/:*\$(srcdir):*/:/;
15756 s/:*\${srcdir}:*/:/;
15758 s/^\([^=]*=[ ]*\):*/\1/;
15764 DEFS=-DHAVE_CONFIG_H
15767 : ${CONFIG_STATUS=./config.status}
15768 ac_clean_files_save=$ac_clean_files
15769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15772 cat >$CONFIG_STATUS <<_ACEOF
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15780 SHELL=\${CONFIG_SHELL-$SHELL}
15783 cat >>$CONFIG_STATUS <<\_ACEOF
15785 ## --------------------- ##
15786 ## M4sh Initialization. ##
15787 ## --------------------- ##
15789 # Be Bourne compatible
15790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15793 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15798 # Support unset when possible.
15799 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15805 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15806 { $as_unset LANG || test "${LANG+set}" != set; } ||
15807 { LANG=C; export LANG; }
15808 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15809 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15810 { LC_ALL=C; export LC_ALL; }
15811 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15812 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15813 { LC_TIME=C; export LC_TIME; }
15814 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15815 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15816 { LC_CTYPE=C; export LC_CTYPE; }
15817 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15818 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15819 { LANGUAGE=C; export LANGUAGE; }
15820 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15821 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15822 { LC_COLLATE=C; export LC_COLLATE; }
15823 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15824 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15825 { LC_NUMERIC=C; export LC_NUMERIC; }
15826 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15827 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15828 { LC_MESSAGES=C; export LC_MESSAGES; }
15831 # Name of the executable.
15832 as_me=`(basename "$0") 2>/dev/null ||
15833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15834 X"$0" : 'X\(//\)$' \| \
15835 X"$0" : 'X\(/\)$' \| \
15836 . : '\(.\)' 2>/dev/null ||
15838 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15839 /^X\/\(\/\/\)$/{ s//\1/; q; }
15840 /^X\/\(\/\).*/{ s//\1/; q; }
15843 # PATH needs CR, and LINENO needs CR and PATH.
15844 # Avoid depending upon Character Ranges.
15845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15848 as_cr_digits='0123456789'
15849 as_cr_alnum=$as_cr_Letters$as_cr_digits
15851 # The user is always right.
15852 if test "${PATH_SEPARATOR+set}" != set; then
15853 echo "#! /bin/sh" >conftest.sh
15854 echo "exit 0" >>conftest.sh
15855 chmod +x conftest.sh
15856 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15865 as_lineno_1=$LINENO
15866 as_lineno_2=$LINENO
15867 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15868 test "x$as_lineno_1" != "x$as_lineno_2" &&
15869 test "x$as_lineno_3" = "x$as_lineno_2" || {
15870 # Find who we are. Look in the path if we contain no path at all
15873 *[\\/]* ) as_myself=$0 ;;
15874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15878 test -z "$as_dir" && as_dir=.
15879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15884 # We did not find ourselves, most probably we were run as `sh COMMAND'
15885 # in which case we are not to be found in the path.
15886 if test "x$as_myself" = x; then
15889 if test ! -f "$as_myself"; then
15890 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15891 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15892 { (exit 1); exit 1; }; }
15894 case $CONFIG_SHELL in
15896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15900 test -z "$as_dir" && as_dir=.
15901 for as_base in sh bash ksh sh5; do
15904 if ("$as_dir/$as_base" -c '
15905 as_lineno_1=$LINENO
15906 as_lineno_2=$LINENO
15907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15908 test "x$as_lineno_1" != "x$as_lineno_2" &&
15909 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15910 CONFIG_SHELL=$as_dir/$as_base
15911 export CONFIG_SHELL
15912 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15920 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15921 # uniformly replaced by the line number. The first 'sed' inserts a
15922 # line-number line before each line; the second 'sed' does the real
15923 # work. The second script uses 'N' to pair each line-number line
15924 # with the numbered line, and appends trailing '-' during
15925 # substitution so that $LINENO is not a special case at line end.
15926 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15927 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15928 sed '=' <$as_myself |
15933 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15936 s,^['$as_cr_digits']*\n,,
15937 ' >$as_me.lineno &&
15938 chmod +x $as_me.lineno ||
15939 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15940 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15941 { (exit 1); exit 1; }; }
15943 # Don't try to exec as it changes $[0], causing all sort of problems
15944 # (the dirname of $[0] is not the place where we might find the
15945 # original and so on. Autoconf is especially sensible to this).
15947 # Exit status is that of the last command.
15952 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15953 *c*,-n*) ECHO_N= ECHO_C='
15955 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15956 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15959 if expr a : '\(a\)' >/dev/null 2>&1; then
15965 rm -f conf$$ conf$$.exe conf$$.file
15967 if ln -s conf$$.file conf$$ 2>/dev/null; then
15968 # We could just check for DJGPP; but this test a) works b) is more generic
15969 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15970 if test -f conf$$.exe; then
15971 # Don't use ln at all; we don't have any links
15976 elif ln conf$$.file conf$$ 2>/dev/null; then
15981 rm -f conf$$ conf$$.exe conf$$.file
15983 as_executable_p="test -f"
15985 # Sed expression to map a string onto a valid CPP name.
15986 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15988 # Sed expression to map a string onto a valid variable name.
15989 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15993 # We need space, tab and new line, in precisely that order.
15999 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16003 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16004 # report actual input values of CONFIG_FILES etc. instead of their
16005 # values after options handling. Logging --version etc. is OK.
16009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16010 ## Running $as_me. ##
16015 This file was extended by PostgreSQL $as_me 7.3b1, which was
16016 generated by GNU Autoconf 2.53. Invocation command line was
16018 CONFIG_FILES = $CONFIG_FILES
16019 CONFIG_HEADERS = $CONFIG_HEADERS
16020 CONFIG_LINKS = $CONFIG_LINKS
16021 CONFIG_COMMANDS = $CONFIG_COMMANDS
16025 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16029 # Files that config.status was made for.
16030 if test -n "$ac_config_files"; then
16031 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16034 if test -n "$ac_config_headers"; then
16035 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16038 if test -n "$ac_config_links"; then
16039 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16042 if test -n "$ac_config_commands"; then
16043 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16046 cat >>$CONFIG_STATUS <<\_ACEOF
16049 \`$as_me' instantiates files from templates according to the
16050 current configuration.
16052 Usage: $0 [OPTIONS] [FILE]...
16054 -h, --help print this help, then exit
16055 -V, --version print version number, then exit
16056 -d, --debug don't remove temporary files
16057 --recheck update $as_me by reconfiguring in the same conditions
16058 --file=FILE[:TEMPLATE]
16059 instantiate the configuration file FILE
16060 --header=FILE[:TEMPLATE]
16061 instantiate the configuration header FILE
16063 Configuration files:
16066 Configuration headers:
16069 Configuration links:
16072 Report bugs to <bug-autoconf@gnu.org>."
16075 cat >>$CONFIG_STATUS <<_ACEOF
16077 PostgreSQL config.status 7.3b1
16078 configured by $0, generated by GNU Autoconf 2.53,
16079 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16081 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16082 Free Software Foundation, Inc.
16083 This config.status script is free software; the Free Software Foundation
16084 gives unlimited permission to copy, distribute and modify it."
16088 cat >>$CONFIG_STATUS <<\_ACEOF
16089 # If no file are specified by the user, then we need to provide default
16090 # value. By we need to know if files were specified by the user.
16096 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16097 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16099 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16103 *) # This is not an option, so the user has probably given explicit
16105 ac_need_defaults=false;;
16109 # Handling of the options.
16111 cat >>$CONFIG_STATUS <<_ACEOF
16112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16113 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16114 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16116 cat >>$CONFIG_STATUS <<\_ACEOF
16117 --version | --vers* | -V )
16118 echo "$ac_cs_version"; exit 0 ;;
16120 # Conflict between --help and --header
16121 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16122 Try \`$0 --help' for more information." >&5
16123 echo "$as_me: error: ambiguous option: $1
16124 Try \`$0 --help' for more information." >&2;}
16125 { (exit 1); exit 1; }; };;
16126 --help | --hel | -h )
16127 echo "$ac_cs_usage"; exit 0 ;;
16128 --debug | --d* | -d )
16130 --file | --fil | --fi | --f )
16132 CONFIG_FILES="$CONFIG_FILES $1"
16133 ac_need_defaults=false;;
16134 --header | --heade | --head | --hea )
16136 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16137 ac_need_defaults=false;;
16139 # This is an error.
16140 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16141 Try \`$0 --help' for more information." >&5
16142 echo "$as_me: error: unrecognized option: $1
16143 Try \`$0 --help' for more information." >&2;}
16144 { (exit 1); exit 1; }; } ;;
16146 *) ac_config_targets="$ac_config_targets $1" ;;
16158 cat >>$CONFIG_STATUS <<\_ACEOF
16159 for ac_config_target in $ac_config_targets
16161 case "$ac_config_target" in
16162 # Handling of arguments.
16163 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16164 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16165 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16166 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16167 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16168 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16169 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16170 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16171 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16172 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16173 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16174 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16175 { (exit 1); exit 1; }; };;
16179 # If the user did not use the arguments to specify the items to instantiate,
16180 # then the envvar interface is used. Set only those that are not.
16181 # We use the long form for the default assignment because of an extremely
16182 # bizarre bug on SunOS 4.1.3.
16183 if $ac_need_defaults; then
16184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16186 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16189 # Create a temporary directory, and hook for its removal unless debugging.
16192 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16193 trap '{ (exit 1); exit 1; }' 1 2 13 15
16196 # Create a (secure) tmp directory for tmp files.
16199 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16200 test -n "$tmp" && test -d "$tmp"
16203 tmp=$TMPDIR/cs$$-$RANDOM
16204 (umask 077 && mkdir $tmp)
16207 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16208 { (exit 1); exit 1; }
16213 cat >>$CONFIG_STATUS <<_ACEOF
16216 # CONFIG_FILES section.
16219 # No need to generate the scripts if there are no CONFIG_FILES.
16220 # This happens for instance when ./config.status config.h
16221 if test -n "\$CONFIG_FILES"; then
16222 # Protect against being on the right side of a sed subst in config.status.
16223 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16224 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16225 s,@SHELL@,$SHELL,;t t
16226 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16227 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16228 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16229 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16230 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16231 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16232 s,@exec_prefix@,$exec_prefix,;t t
16233 s,@prefix@,$prefix,;t t
16234 s,@program_transform_name@,$program_transform_name,;t t
16235 s,@bindir@,$bindir,;t t
16236 s,@sbindir@,$sbindir,;t t
16237 s,@libexecdir@,$libexecdir,;t t
16238 s,@datadir@,$datadir,;t t
16239 s,@sysconfdir@,$sysconfdir,;t t
16240 s,@sharedstatedir@,$sharedstatedir,;t t
16241 s,@localstatedir@,$localstatedir,;t t
16242 s,@libdir@,$libdir,;t t
16243 s,@includedir@,$includedir,;t t
16244 s,@oldincludedir@,$oldincludedir,;t t
16245 s,@infodir@,$infodir,;t t
16246 s,@mandir@,$mandir,;t t
16247 s,@build_alias@,$build_alias,;t t
16248 s,@host_alias@,$host_alias,;t t
16249 s,@target_alias@,$target_alias,;t t
16250 s,@DEFS@,$DEFS,;t t
16251 s,@ECHO_C@,$ECHO_C,;t t
16252 s,@ECHO_N@,$ECHO_N,;t t
16253 s,@ECHO_T@,$ECHO_T,;t t
16254 s,@LIBS@,$LIBS,;t t
16255 s,@docdir@,$docdir,;t t
16256 s,@configure_args@,$configure_args,;t t
16257 s,@build@,$build,;t t
16258 s,@build_cpu@,$build_cpu,;t t
16259 s,@build_vendor@,$build_vendor,;t t
16260 s,@build_os@,$build_os,;t t
16261 s,@host@,$host,;t t
16262 s,@host_cpu@,$host_cpu,;t t
16263 s,@host_vendor@,$host_vendor,;t t
16264 s,@host_os@,$host_os,;t t
16265 s,@PORTNAME@,$PORTNAME,;t t
16267 s,@enable_nls@,$enable_nls,;t t
16268 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16269 s,@default_port@,$default_port,;t t
16270 s,@enable_shared@,$enable_shared,;t t
16271 s,@enable_rpath@,$enable_rpath,;t t
16272 s,@enable_debug@,$enable_debug,;t t
16274 s,@CFLAGS@,$CFLAGS,;t t
16275 s,@LDFLAGS@,$LDFLAGS,;t t
16276 s,@CPPFLAGS@,$CPPFLAGS,;t t
16277 s,@ac_ct_CC@,$ac_ct_CC,;t t
16278 s,@EXEEXT@,$EXEEXT,;t t
16279 s,@OBJEXT@,$OBJEXT,;t t
16282 s,@autodepend@,$autodepend,;t t
16283 s,@INCLUDES@,$INCLUDES,;t t
16284 s,@with_tcl@,$with_tcl,;t t
16285 s,@with_tk@,$with_tk,;t t
16286 s,@with_perl@,$with_perl,;t t
16287 s,@with_python@,$with_python,;t t
16289 s,@with_java@,$with_java,;t t
16290 s,@with_krb4@,$with_krb4,;t t
16291 s,@with_krb5@,$with_krb5,;t t
16292 s,@krb_srvtab@,$krb_srvtab,;t t
16293 s,@with_pam@,$with_pam,;t t
16294 s,@with_openssl@,$with_openssl,;t t
16295 s,@ELF_SYS@,$ELF_SYS,;t t
16297 s,@FLEX@,$FLEX,;t t
16298 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16299 s,@LN_S@,$LN_S,;t t
16301 s,@with_gnu_ld@,$with_gnu_ld,;t t
16302 s,@ld_R_works@,$ld_R_works,;t t
16303 s,@RANLIB@,$RANLIB,;t t
16304 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16305 s,@LORDER@,$LORDER,;t t
16307 s,@STRIP@,$STRIP,;t t
16308 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16309 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16310 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16311 s,@YACC@,$YACC,;t t
16312 s,@YFLAGS@,$YFLAGS,;t t
16313 s,@WISH@,$WISH,;t t
16314 s,@PERL@,$PERL,;t t
16315 s,@perl_installsitearch@,$perl_installsitearch,;t t
16316 s,@perl_installman3dir@,$perl_installman3dir,;t t
16317 s,@perl_archlibexp@,$perl_archlibexp,;t t
16318 s,@perl_privlibexp@,$perl_privlibexp,;t t
16319 s,@perl_useshrplib@,$perl_useshrplib,;t t
16320 s,@perl_man3ext@,$perl_man3ext,;t t
16321 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16322 s,@PYTHON@,$PYTHON,;t t
16323 s,@python_version@,$python_version,;t t
16324 s,@python_prefix@,$python_prefix,;t t
16325 s,@python_execprefix@,$python_execprefix,;t t
16326 s,@python_configdir@,$python_configdir,;t t
16327 s,@python_moduledir@,$python_moduledir,;t t
16328 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16329 s,@python_includespec@,$python_includespec,;t t
16330 s,@python_libspec@,$python_libspec,;t t
16331 s,@LIBOBJS@,$LIBOBJS,;t t
16332 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16333 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16334 s,@MSGFMT@,$MSGFMT,;t t
16335 s,@MSGMERGE@,$MSGMERGE,;t t
16336 s,@XGETTEXT@,$XGETTEXT,;t t
16337 s,@localedir@,$localedir,;t t
16338 s,@TCLSH@,$TCLSH,;t t
16339 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16340 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16341 s,@TCL_LIBS@,$TCL_LIBS,;t t
16342 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16343 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16344 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16345 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16346 s,@TK_LIBS@,$TK_LIBS,;t t
16347 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16348 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16349 s,@NSGMLS@,$NSGMLS,;t t
16350 s,@JADE@,$JADE,;t t
16351 s,@have_docbook@,$have_docbook,;t t
16352 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16353 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16354 s,@SGMLSPL@,$SGMLSPL,;t t
16355 s,@vpath_build@,$vpath_build,;t t
16360 cat >>$CONFIG_STATUS <<\_ACEOF
16361 # Split the substitutions into bite-sized pieces for seds with
16362 # small command number limits, like on Digital OSF/1 and HP-UX.
16363 ac_max_sed_lines=48
16364 ac_sed_frag=1 # Number of current file.
16365 ac_beg=1 # First line for current file.
16366 ac_end=$ac_max_sed_lines # Line after last line for current file.
16369 while $ac_more_lines; do
16370 if test $ac_beg -gt 1; then
16371 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16373 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16375 if test ! -s $tmp/subs.frag; then
16376 ac_more_lines=false
16378 # The purpose of the label and of the branching condition is to
16379 # speed up the sed processing (if there are no `@' at all, there
16380 # is no need to browse any of the substitutions).
16381 # These are the two extra sed commands mentioned above.
16383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16384 if test -z "$ac_sed_cmds"; then
16385 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16387 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16389 ac_sed_frag=`expr $ac_sed_frag + 1`
16391 ac_end=`expr $ac_end + $ac_max_sed_lines`
16394 if test -z "$ac_sed_cmds"; then
16397 fi # test -n "$CONFIG_FILES"
16400 cat >>$CONFIG_STATUS <<\_ACEOF
16401 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16404 - | *:- | *:-:* ) # input from stdin
16406 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16408 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16409 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16410 * ) ac_file_in=$ac_file.in ;;
16413 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16414 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16416 X"$ac_file" : 'X\(//\)[^/]' \| \
16417 X"$ac_file" : 'X\(//\)$' \| \
16418 X"$ac_file" : 'X\(/\)' \| \
16419 . : '\(.\)' 2>/dev/null ||
16421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16423 /^X\(\/\/\)$/{ s//\1/; q; }
16424 /^X\(\/\).*/{ s//\1/; q; }
16426 { case "$ac_dir" in
16427 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16431 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16432 case $as_mkdir_dir in
16433 # Skip DOS drivespec
16434 ?:) as_incr_dir=$as_mkdir_dir ;;
16436 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16437 test -d "$as_incr_dir" ||
16438 mkdir "$as_incr_dir" ||
16439 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16440 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16441 { (exit 1); exit 1; }; }
16448 if test "$ac_dir" != .; then
16449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16450 # A "../" for each directory in $ac_dir_suffix.
16451 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16453 ac_dir_suffix= ac_top_builddir=
16457 .) # No --srcdir option. We are building in place.
16459 if test -z "$ac_top_builddir"; then
16462 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16464 [\\/]* | ?:[\\/]* ) # Absolute path.
16465 ac_srcdir=$srcdir$ac_dir_suffix;
16466 ac_top_srcdir=$srcdir ;;
16467 *) # Relative path.
16468 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16469 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16471 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16473 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16474 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16475 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16476 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16480 if test x"$ac_file" != x-; then
16481 { echo "$as_me:$LINENO: creating $ac_file" >&5
16482 echo "$as_me: creating $ac_file" >&6;}
16485 # Let's still pretend it is `configure' which instantiates (i.e., don't
16486 # use $as_me), people would be surprised to read:
16487 # /* config.h. Generated by config.status. */
16488 if test x"$ac_file" = x-; then
16491 configure_input="$ac_file. "
16493 configure_input=$configure_input"Generated from `echo $ac_file_in |
16494 sed 's,.*/,,'` by configure."
16496 # First look for the input files in the build tree, otherwise in the
16498 ac_file_inputs=`IFS=:
16499 for f in $ac_file_in; do
16501 -) echo $tmp/stdin ;;
16503 # Absolute (can't be DOS-style, as IFS=:)
16504 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16505 echo "$as_me: error: cannot find input file: $f" >&2;}
16506 { (exit 1); exit 1; }; }
16509 if test -f "$f"; then
16512 elif test -f "$srcdir/$f"; then
16517 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16518 echo "$as_me: error: cannot find input file: $f" >&2;}
16519 { (exit 1); exit 1; }; }
16522 done` || { (exit 1); exit 1; }
16524 cat >>$CONFIG_STATUS <<_ACEOF
16528 cat >>$CONFIG_STATUS <<\_ACEOF
16530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16531 s,@configure_input@,$configure_input,;t t
16532 s,@srcdir@,$ac_srcdir,;t t
16533 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16534 s,@top_srcdir@,$ac_top_srcdir,;t t
16535 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16536 s,@builddir@,$ac_builddir,;t t
16537 s,@abs_builddir@,$ac_abs_builddir,;t t
16538 s,@top_builddir@,$ac_top_builddir,;t t
16539 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16540 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16542 if test x"$ac_file" != x-; then
16543 mv $tmp/out $ac_file
16551 cat >>$CONFIG_STATUS <<\_ACEOF
16554 # CONFIG_HEADER section.
16557 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16558 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16560 # ac_d sets the value in "#define NAME VALUE" lines.
16561 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16562 ac_dB='[ ].*$,\1#\2'
16565 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16566 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16567 ac_uB='$,\1#\2define\3'
16571 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16574 - | *:- | *:-:* ) # input from stdin
16576 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16577 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16578 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16579 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16580 * ) ac_file_in=$ac_file.in ;;
16583 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16584 echo "$as_me: creating $ac_file" >&6;}
16586 # First look for the input files in the build tree, otherwise in the
16588 ac_file_inputs=`IFS=:
16589 for f in $ac_file_in; do
16591 -) echo $tmp/stdin ;;
16593 # Absolute (can't be DOS-style, as IFS=:)
16594 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16595 echo "$as_me: error: cannot find input file: $f" >&2;}
16596 { (exit 1); exit 1; }; }
16599 if test -f "$f"; then
16602 elif test -f "$srcdir/$f"; then
16607 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16608 echo "$as_me: error: cannot find input file: $f" >&2;}
16609 { (exit 1); exit 1; }; }
16612 done` || { (exit 1); exit 1; }
16613 # Remove the trailing spaces.
16614 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16618 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16619 # `conftest.undefs', that substitutes the proper values into
16620 # config.h.in to produce config.h. The first handles `#define'
16621 # templates, and the second `#undef' templates.
16622 # And first: Protect against being on the right side of a sed subst in
16623 # config.status. Protect against being in an unquoted here document
16624 # in config.status.
16625 rm -f conftest.defines conftest.undefs
16626 # Using a here document instead of a string reduces the quoting nightmare.
16627 # Putting comments in sed scripts is not portable.
16629 # `end' is used to avoid that the second main sed command (meant for
16630 # 0-ary CPP macros) applies to n-ary macro definitions.
16631 # See the Autoconf documentation for `clear'.
16632 cat >confdef2sed.sed <<\_ACEOF
16637 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16639 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16642 # If some macros were called several times there might be several times
16643 # the same #defines, which is useless. Nevertheless, we may not want to
16644 # sort them, since we want the *last* AC-DEFINE to be honored.
16645 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16646 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16647 rm -f confdef2sed.sed
16649 # This sed command replaces #undef with comments. This is necessary, for
16650 # example, in the case of _POSIX_SOURCE, which is predefined and required
16651 # on some systems where configure will not decide to define it.
16652 cat >>conftest.undefs <<\_ACEOF
16653 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16656 # Break up conftest.defines because some shells have a limit on the size
16657 # of here documents, and old seds have small limits too (100 cmds).
16658 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16659 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16660 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16661 echo ' :' >>$CONFIG_STATUS
16662 rm -f conftest.tail
16663 while grep . conftest.defines >/dev/null
16665 # Write a limited-size here document to $tmp/defines.sed.
16666 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16667 # Speed up: don't consider the non `#define' lines.
16668 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16669 # Work around the forget-to-reset-the-flag bug.
16670 echo 't clr' >>$CONFIG_STATUS
16671 echo ': clr' >>$CONFIG_STATUS
16672 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16674 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16676 mv $tmp/out $tmp/in
16678 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16679 rm -f conftest.defines
16680 mv conftest.tail conftest.defines
16682 rm -f conftest.defines
16683 echo ' fi # egrep' >>$CONFIG_STATUS
16684 echo >>$CONFIG_STATUS
16686 # Break up conftest.undefs because some shells have a limit on the size
16687 # of here documents, and old seds have small limits too (100 cmds).
16688 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16689 rm -f conftest.tail
16690 while grep . conftest.undefs >/dev/null
16692 # Write a limited-size here document to $tmp/undefs.sed.
16693 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16694 # Speed up: don't consider the non `#undef'
16695 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16696 # Work around the forget-to-reset-the-flag bug.
16697 echo 't clr' >>$CONFIG_STATUS
16698 echo ': clr' >>$CONFIG_STATUS
16699 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16701 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16703 mv $tmp/out $tmp/in
16705 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16706 rm -f conftest.undefs
16707 mv conftest.tail conftest.undefs
16709 rm -f conftest.undefs
16711 cat >>$CONFIG_STATUS <<\_ACEOF
16712 # Let's still pretend it is `configure' which instantiates (i.e., don't
16713 # use $as_me), people would be surprised to read:
16714 # /* config.h. Generated by config.status. */
16715 if test x"$ac_file" = x-; then
16716 echo "/* Generated by configure. */" >$tmp/config.h
16718 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16720 cat $tmp/in >>$tmp/config.h
16722 if test x"$ac_file" != x-; then
16723 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16724 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16725 echo "$as_me: $ac_file is unchanged" >&6;}
16727 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16729 X"$ac_file" : 'X\(//\)[^/]' \| \
16730 X"$ac_file" : 'X\(//\)$' \| \
16731 X"$ac_file" : 'X\(/\)' \| \
16732 . : '\(.\)' 2>/dev/null ||
16734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16736 /^X\(\/\/\)$/{ s//\1/; q; }
16737 /^X\(\/\).*/{ s//\1/; q; }
16739 { case "$ac_dir" in
16740 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16744 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16745 case $as_mkdir_dir in
16746 # Skip DOS drivespec
16747 ?:) as_incr_dir=$as_mkdir_dir ;;
16749 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16750 test -d "$as_incr_dir" ||
16751 mkdir "$as_incr_dir" ||
16752 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16753 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16754 { (exit 1); exit 1; }; }
16760 mv $tmp/config.h $ac_file
16764 rm -f $tmp/config.h
16766 # Run the commands associated with the file.
16768 src/include/pg_config.h )
16769 # Update timestamp for pg_config.h (see Makefile.global)
16770 echo >src/include/stamp-h
16775 cat >>$CONFIG_STATUS <<\_ACEOF
16778 # CONFIG_LINKS section.
16781 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16782 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16783 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16785 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16786 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16788 if test ! -r $srcdir/$ac_source; then
16789 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16790 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16791 { (exit 1); exit 1; }; }
16795 # Make relative symlinks.
16796 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16797 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16798 X"$ac_dest" : 'X\(//\)[^/]' \| \
16799 X"$ac_dest" : 'X\(//\)$' \| \
16800 X"$ac_dest" : 'X\(/\)' \| \
16801 . : '\(.\)' 2>/dev/null ||
16803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16805 /^X\(\/\/\)$/{ s//\1/; q; }
16806 /^X\(\/\).*/{ s//\1/; q; }
16808 { case "$ac_dest_dir" in
16809 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16812 as_dummy="$ac_dest_dir"
16813 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16814 case $as_mkdir_dir in
16815 # Skip DOS drivespec
16816 ?:) as_incr_dir=$as_mkdir_dir ;;
16818 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16819 test -d "$as_incr_dir" ||
16820 mkdir "$as_incr_dir" ||
16821 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16822 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16823 { (exit 1); exit 1; }; }
16830 if test "$ac_dest_dir" != .; then
16831 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16832 # A "../" for each directory in $ac_dir_suffix.
16833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16835 ac_dir_suffix= ac_top_builddir=
16839 .) # No --srcdir option. We are building in place.
16841 if test -z "$ac_top_builddir"; then
16844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16846 [\\/]* | ?:[\\/]* ) # Absolute path.
16847 ac_srcdir=$srcdir$ac_dir_suffix;
16848 ac_top_srcdir=$srcdir ;;
16849 *) # Relative path.
16850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16851 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16853 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
16855 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
16856 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
16857 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
16858 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
16862 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16863 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16866 # Make a symlink if possible; otherwise try a hard link.
16867 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16868 ln $srcdir/$ac_source $ac_dest ||
16869 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
16870 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
16871 { (exit 1); exit 1; }; }
16875 cat >>$CONFIG_STATUS <<\_ACEOF
16877 { (exit 0); exit 0; }
16879 chmod +x $CONFIG_STATUS
16880 ac_clean_files=$ac_clean_files_save
16883 # configure is writing to config.log, and then calls config.status.
16884 # config.status does its own redirection, appending to config.log.
16885 # Unfortunately, on DOS this fails, as config.log is still kept open
16886 # by configure, so config.status won't be able to write to it; its
16887 # output is simply discarded. So we exec the FD to /dev/null,
16888 # effectively closing config.log, so it can be properly (re)opened and
16889 # appended to by config.status. When coming back to configure, we
16890 # need to make the FD available again.
16891 if test "$no_create" != yes; then
16894 $SHELL $CONFIG_STATUS || ac_cs_success=false
16896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16897 # would make configure fail if this is the last instruction.
16898 $ac_cs_success || { (exit 1); exit 1; }