2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable single-byte recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-threads allow libpq to be thread-safe
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python interface module
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-rendezvous build with Rendezvous support
871 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-gnu-ld assume the C compiler uses GNU ld default=no
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 location of DocBook stylesheets
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <pgsql-bugs@postgresql.org>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 PostgreSQL configure 7.4devel
954 generated by GNU Autoconf 2.53
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
961 Copyright 2002 PostgreSQL Global Development Group
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by PostgreSQL $as_me 7.4devel, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 for ac_dir in config $srcdir/config; do
1257 if test -f $ac_dir/install-sh; then
1259 ac_install_sh="$ac_aux_dir/install-sh -c"
1261 elif test -f $ac_dir/install.sh; then
1263 ac_install_sh="$ac_aux_dir/install.sh -c"
1265 elif test -f $ac_dir/shtool; then
1267 ac_install_sh="$ac_aux_dir/shtool install -c"
1271 if test -z "$ac_aux_dir"; then
1272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274 { (exit 1); exit 1; }; }
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1281 configure_args=$ac_configure_args
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294 { (exit 1); exit 1; }; }
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303 ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307 { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329 ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354 withval="$with_template"
1358 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360 { (exit 1); exit 1; }; }
1363 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365 { (exit 1); exit 1; }; }
1370 list) echo; ls "$srcdir/src/template"; exit;;
1371 *) if test -f "$srcdir/src/template/$with_template" ; then
1374 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376 { (exit 1); exit 1; }; }
1385 # --with-template not given
1388 aix*) template=aix ;;
1389 beos*) template=beos ;;
1390 bsdi*) template=bsdi ;;
1391 cygwin*) template=cygwin ;;
1392 darwin*) template=darwin ;;
1393 dgux*) template=dgux ;;
1394 freebsd*) template=freebsd ;;
1395 hpux*) template=hpux ;;
1396 irix*) template=irix5 ;;
1397 linux*) template=linux ;;
1398 mingw*) template=win32 ;;
1399 netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401 openbsd*) template=openbsd ;;
1402 osf*) template=osf ;;
1403 qnx*) template=qnx4 ;;
1404 sco*) template=sco ;;
1405 solaris*) template=solaris ;;
1406 sunos*) template=sunos4 ;;
1408 case $host_vendor in
1409 univel) template=univel ;;
1411 sysv4*) template=svr4 ;;
1412 sysv5*) template=unixware ;;
1413 ultrix*) template=ultrix4 ;;
1416 if test x"$template" = x"" ; then
1417 { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this. Include the above 'checking host system type...'
1426 *******************************************************************
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this. Include the above 'checking host system type...'
1437 *******************************************************************
1439 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1452 # Pick right test-and-set (TAS) code. Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1456 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1457 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1459 *) need_tas=no; tas_file=dummy.s ;;
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1464 if test "$need_tas" = yes ; then
1472 ## Command line options
1477 # Add non-standard directories to the include path
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484 withval="$with_includes"
1488 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490 { (exit 1); exit 1; }; }
1493 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495 { (exit 1); exit 1; }; }
1507 # Add non-standard directories to the library search path
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514 withval="$with_libraries"
1518 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520 { (exit 1); exit 1; }; }
1523 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525 { (exit 1); exit 1; }; }
1528 LIBRARY_DIRS=$withval
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540 withval="$with_libs"
1544 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546 { (exit 1); exit 1; }; }
1549 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551 { (exit 1); exit 1; }; }
1554 LIBRARY_DIRS=$withval
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571 enableval="$enable_integer_datetimes"
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1585 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587 { (exit 1); exit 1; }; }
1592 enable_integer_datetimes=no
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1600 # Character set recode (--enable-recode)
1602 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1603 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1606 # Check whether --enable-recode or --disable-recode was given.
1607 if test "${enable_recode+set}" = set; then
1608 enableval="$enable_recode"
1613 cat >>confdefs.h <<\_ACEOF
1614 #define CYR_RECODE 1
1622 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1623 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1624 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $enable_recode" >&5
1634 echo "${ECHO_T}$enable_recode" >&6
1640 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1641 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1644 # Check whether --enable-nls or --disable-nls was given.
1645 if test "${enable_nls+set}" = set; then
1646 enableval="$enable_nls"
1657 WANTED_LANGUAGES=$enableval
1666 if test "$enable_nls" = yes; then
1668 cat >>confdefs.h <<\_ACEOF
1669 #define ENABLE_NLS 1
1674 echo "$as_me:$LINENO: result: $enable_nls" >&5
1675 echo "${ECHO_T}$enable_nls" >&6
1680 # Default port number (--with-pgport), default 5432
1682 echo "$as_me:$LINENO: checking for default port number" >&5
1683 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1687 # Check whether --with-pgport or --without-pgport was given.
1688 if test "${with_pgport+set}" = set; then
1689 withval="$with_pgport"
1693 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1694 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1695 { (exit 1); exit 1; }; }
1698 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1699 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1700 { (exit 1); exit 1; }; }
1703 default_port=$withval
1711 echo "$as_me:$LINENO: result: $default_port" >&5
1712 echo "${ECHO_T}$default_port" >&6
1713 # Need both of these because some places want an integer and some a string
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEF_PGPORT ${default_port}
1720 cat >>confdefs.h <<_ACEOF
1721 #define DEF_PGPORT_STR "${default_port}"
1727 # Option to disable shared libraries
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733 enableval="$enable_shared"
1743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1744 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1745 { (exit 1); exit 1; }; }
1757 # '-rpath'-like feature can be disabled
1761 # Check whether --enable-rpath or --disable-rpath was given.
1762 if test "${enable_rpath+set}" = set; then
1763 enableval="$enable_rpath"
1773 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1774 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1775 { (exit 1); exit 1; }; }
1788 # --enable-debug adds -g to compiler flags
1792 # Check whether --enable-debug or --disable-debug was given.
1793 if test "${enable_debug+set}" = set; then
1794 enableval="$enable_debug"
1804 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1805 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1806 { (exit 1); exit 1; }; }
1821 # For historical reasons you can also use --with-CC to specify the C compiler
1822 # to use, although the standard way to do this is to set the CC environment
1827 # Check whether --with-CC or --without-CC was given.
1828 if test "${with_CC+set}" = set; then
1833 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1834 echo "$as_me: error: argument required for --with-CC option" >&2;}
1835 { (exit 1); exit 1; }; }
1838 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1839 echo "$as_me: error: argument required for --with-CC option" >&2;}
1840 { (exit 1); exit 1; }; }
1851 aix) pgac_cc_list="gcc xlc";;
1852 irix) pgac_cc_list="cc";; # no gcc
1853 *) pgac_cc_list="gcc cc";;
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 for ac_prog in $pgac_cc_list
1864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 if test -n "$CC"; then
1892 echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1899 test -n "$CC" && break
1902 if test -z "$CC"; then
1904 for ac_prog in $pgac_cc_list
1906 # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$ac_ct_CC"; then
1914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_ac_ct_CC="$ac_prog"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1941 test -n "$ac_ct_CC" && break
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950 { (exit 1); exit 1; }; }
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954 "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957 (eval $ac_compiler --version </dev/null >&5) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962 (eval $ac_compiler -v </dev/null >&5) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967 (eval $ac_compiler -V </dev/null >&5) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1976 #ifdef F77_DUMMY_MAIN
1980 int F77_DUMMY_MAIN() { return 1; }
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999 (eval $ac_link_default) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 # Find the output, starting from the most likely. This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011 ls a.out conftest 2>/dev/null;
2012 ls a.* conftest.* 2>/dev/null`; do
2014 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2015 a.out ) # We found the default executable, but exeext='' is most
2018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030 { (exit 77); exit 77; }; }
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2037 # Check the compiler produces executables we can run. If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044 if { ac_try='./$ac_file'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2052 if test "$cross_compiling" = maybe; then
2055 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059 { (exit 1); exit 1; }; }
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run. If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078 (eval $ac_link) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2088 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098 { (exit 1); exit 1; }; }
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2117 #ifdef F77_DUMMY_MAIN
2121 int F77_DUMMY_MAIN() { return 1; }
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; then
2137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149 { (exit 1); exit 1; }; }
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2167 #ifdef F77_DUMMY_MAIN
2171 int F77_DUMMY_MAIN() { return 1; }
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2221 #ifdef F77_DUMMY_MAIN
2225 int F77_DUMMY_MAIN() { return 1; }
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2266 if test "$GCC" = yes; then
2272 # Some people use a C++ compiler to compile C. Since we use `exit',
2273 # in C++ we need to declare it. In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 for ac_declaration in \
2295 '#include <stdlib.h>' \
2296 'extern "C" void std::exit (int) throw (); using std::exit;' \
2297 'extern "C" void std::exit (int); using std::exit;' \
2298 'extern "C" void exit (int) throw ();' \
2299 'extern "C" void exit (int);' \
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2307 #ifdef F77_DUMMY_MAIN
2311 int F77_DUMMY_MAIN() { return 1; }
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 #include "confdefs.h"
2344 #ifdef F77_DUMMY_MAIN
2348 int F77_DUMMY_MAIN() { return 1; }
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2378 if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 . "$srcdir/src/template/$template" || exit
2398 if test "$ac_env_CFLAGS_set" = set; then
2399 CFLAGS=$ac_env_CFLAGS_value
2401 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2404 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2405 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2407 # Check if the compiler still works with the template settings
2408 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2409 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 #include "confdefs.h"
2415 #ifdef F77_DUMMY_MAIN
2419 int F77_DUMMY_MAIN() { return 1; }
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest$ac_exeext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2449 echo "$as_me: error: cannot proceed" >&2;}
2450 { (exit 1); exit 1; }; }
2452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2454 # Defend against gcc -ffastmath
2455 if test "$GCC" = yes; then
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 #include "confdefs.h"
2460 #ifdef F77_DUMMY_MAIN
2464 int F77_DUMMY_MAIN() { return 1; }
2469 #ifdef __FAST_MATH__
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2493 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2494 { (exit 1); exit 1; }; }
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2510 if test -z "$CPP"; then
2511 if test "${ac_cv_prog_CPP+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 # Double quotes because CPP needs to be expanded
2515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2518 for ac_c_preproc_warn_flag in '' yes
2520 # Use a header file that comes with gcc, so configuring glibc
2521 # with a fresh cross-compiler works.
2522 # On the NeXT, cc -E runs the code through the compiler's parser,
2523 # not just through cpp. "Syntax error" is here to catch this case.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533 egrep -v '^ *\+' conftest.er1 >conftest.err
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } >/dev/null; then
2538 if test -s conftest.err; then
2539 ac_cpp_err=$ac_c_preproc_warn_flag
2546 if test -z "$ac_cpp_err"; then
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 # Broken: fails on valid input.
2554 rm -f conftest.err conftest.$ac_ext
2556 # OK, works on sane cases. Now check whether non-existent headers
2557 # can be detected and how.
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <ac_nonexistent.h>
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 egrep -v '^ *\+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev/null; then
2571 if test -s conftest.err; then
2572 ac_cpp_err=$ac_c_preproc_warn_flag
2579 if test -z "$ac_cpp_err"; then
2580 # Broken: success on invalid input.
2583 echo "$as_me: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 # Passes both tests.
2589 rm -f conftest.err conftest.$ac_ext
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2606 echo "$as_me:$LINENO: result: $CPP" >&5
2607 echo "${ECHO_T}$CPP" >&6
2609 for ac_c_preproc_warn_flag in '' yes
2611 # Use a header file that comes with gcc, so configuring glibc
2612 # with a fresh cross-compiler works.
2613 # On the NeXT, cc -E runs the code through the compiler's parser,
2614 # not just through cpp. "Syntax error" is here to catch this case.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624 egrep -v '^ *\+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } >/dev/null; then
2629 if test -s conftest.err; then
2630 ac_cpp_err=$ac_c_preproc_warn_flag
2637 if test -z "$ac_cpp_err"; then
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 # Broken: fails on valid input.
2645 rm -f conftest.err conftest.$ac_ext
2647 # OK, works on sane cases. Now check whether non-existent headers
2648 # can be detected and how.
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 #include "confdefs.h"
2652 #include <ac_nonexistent.h>
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2657 egrep -v '^ *\+' conftest.er1 >conftest.err
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } >/dev/null; then
2662 if test -s conftest.err; then
2663 ac_cpp_err=$ac_c_preproc_warn_flag
2670 if test -z "$ac_cpp_err"; then
2671 # Broken: success on invalid input.
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 # Passes both tests.
2680 rm -f conftest.err conftest.$ac_ext
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2690 { (exit 1); exit 1; }; }
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 # Create compiler version string
2702 if test x"$GCC" = x"yes" ; then
2703 cc_string="GCC `${CC} --version | sed q`"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2715 # Automatic dependency tracking
2719 # Check whether --enable-depend or --disable-depend was given.
2720 if test "${enable_depend+set}" = set; then
2721 enableval="$enable_depend"
2731 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2732 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2733 { (exit 1); exit 1; }; }
2746 # Enable assert checks
2750 # Check whether --enable-cassert or --disable-cassert was given.
2751 if test "${enable_cassert+set}" = set; then
2752 enableval="$enable_cassert"
2757 cat >>confdefs.h <<\_ACEOF
2758 #define USE_ASSERT_CHECKING 1
2766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2767 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2768 { (exit 1); exit 1; }; }
2780 # Include directories
2784 # SRCH_INC comes from the template file
2785 for dir in $with_includes $SRCH_INC; do
2786 if test -d "$dir"; then
2787 INCLUDES="$INCLUDES -I$dir"
2789 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2790 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2798 # Library directories
2802 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2803 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2804 if test -d "$dir"; then
2805 LIBDIRS="$LIBDIRS -L$dir"
2807 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2808 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2814 # Enable libpq to be thread-safe
2816 echo "$as_me:$LINENO: checking allow threaded libpq" >&5
2817 echo $ECHO_N "checking allow threaded libpq... $ECHO_C" >&6
2821 # Check whether --with-threads or --without-threads was given.
2822 if test "${with_threads+set}" = set; then
2823 withval="$with_threads"
2828 cat >>confdefs.h <<\_ACEOF
2829 #define USE_THREADS 1
2837 { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2838 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2839 { (exit 1); exit 1; }; }
2849 echo "$as_me:$LINENO: result: $with_threads" >&5
2850 echo "${ECHO_T}$with_threads" >&6
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2873 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875 { (exit 1); exit 1; }; }
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2907 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909 { (exit 1); exit 1; }; }
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934 withval="$with_tclconfig"
2938 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940 { (exit 1); exit 1; }; }
2943 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945 { (exit 1); exit 1; }; }
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963 withval="$with_tkconfig"
2967 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969 { (exit 1); exit 1; }; }
2972 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974 { (exit 1); exit 1; }; }
2985 # Optionally build Perl modules (PL/Perl)
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994 withval="$with_perl"
3004 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006 { (exit 1); exit 1; }; }
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3020 # Optionally build Python interface module
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029 withval="$with_python"
3039 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041 { (exit 1); exit 1; }; }
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3055 # Optionally build the Java/JDBC tools
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064 withval="$with_java"
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3071 for ac_prog in jakarta-ant ant ant.sh ant.bat
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$ANT"; then
3105 echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3108 echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3112 test -n "$ANT" && break
3116 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 cat > conftest.java << EOF
3123 public class conftest {
3124 int testmethod(int a, int b) {
3130 cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132 <target name="conftest">
3133 <javac srcdir="." includes="conftest.java">
3139 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141 (eval $pgac_cmd) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }
3146 if test $? = 0 && test -f ./conftest.class ; then
3147 pgac_cv_prog_ant_works=yes
3149 echo "configure: failed java program was:" >&5
3150 cat conftest.java >&5
3151 echo "configure: failed build file was:" >&5
3152 cat conftest.xml >&5
3153 pgac_cv_prog_ant_works=no
3156 rm -f conftest* core core.* *.core
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3162 if test "$pgac_cv_prog_ant_works" != yes; then
3163 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165 { (exit 1); exit 1; }; }
3169 if test -z "$ANT"; then
3170 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174 { (exit 1); exit 1; }; }
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179 { (exit 1); exit 1; }; }
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3187 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189 { (exit 1); exit 1; }; }
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212 withval="$with_krb4"
3216 krb4_prefix=/usr/athena
3223 krb4_prefix=$withval
3232 if test "$with_krb4" = yes; then
3234 echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3237 cat >>confdefs.h <<\_ACEOF
3242 if test -d "$krb4_prefix/include"; then
3243 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3245 if test -d "$krb4_prefix/lib"; then
3246 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3249 krb_srvtab="/etc/srvtab"
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270 withval="$with_krb5"
3274 krb5_prefix=/usr/athena
3281 krb5_prefix=$withval
3290 if test "$with_krb5" = yes; then
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3295 cat >>confdefs.h <<\_ACEOF
3300 if test -d "$krb5_prefix/include"; then
3301 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3303 if test -d "$krb5_prefix/lib"; then
3304 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3307 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322 { (exit 1); exit 1; }; }
3329 # Kerberos configuration parameters
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336 withval="$with_krb_srvnam"
3340 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342 { (exit 1); exit 1; }; }
3345 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347 { (exit 1); exit 1; }; }
3355 with_krb_srvnam="postgres"
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3380 cat >>confdefs.h <<\_ACEOF
3389 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3408 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3409 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3413 # Check whether --with-rendezvous or --without-rendezvous was given.
3414 if test "${with_rendezvous+set}" = set; then
3415 withval="$with_rendezvous"
3420 cat >>confdefs.h <<\_ACEOF
3421 #define USE_RENDEZVOUS 1
3429 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3430 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3431 { (exit 1); exit 1; }; }
3440 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3441 echo "${ECHO_T}$with_rendezvous" >&6
3451 # Check whether --with-openssl or --without-openssl was given.
3452 if test "${with_openssl+set}" = set; then
3453 withval="$with_openssl"
3457 openssl_prefix=/usr/local/ssl
3464 openssl_prefix=$withval
3473 if test "$with_openssl" = yes; then
3475 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3476 echo "${ECHO_T}building with OpenSSL support" >&6
3478 cat >>confdefs.h <<\_ACEOF
3483 if test -d "${openssl_prefix}/include" ; then
3484 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3486 if test -d "${openssl_prefix}/lib" ; then
3487 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3502 # Check whether --with-readline or --without-readline was given.
3503 if test "${with_readline+set}" = set; then
3504 withval="$with_readline"
3514 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3515 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3516 { (exit 1); exit 1; }; }
3532 # Check whether --with-zlib or --without-zlib was given.
3533 if test "${with_zlib+set}" = set; then
3534 withval="$with_zlib"
3544 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3545 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3546 { (exit 1); exit 1; }; }
3561 # Assume system is ELF if it predefines __ELF__ as 1,
3562 # otherwise believe host_os based default.
3564 freebsd1*|freebsd2*) elf=no;;
3565 freebsd3*|freebsd4*) elf=yes;;
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "yes" >/dev/null 2>&1; then
3581 if test "X$elf" = "Xyes" ; then
3594 if test "$with_threads" = yes; then
3595 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3597 if test "${ac_cv_header_stdc+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3612 egrep -v '^ *\+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev/null; then
3617 if test -s conftest.err; then
3618 ac_cpp_err=$ac_c_preproc_warn_flag
3625 if test -z "$ac_cpp_err"; then
3626 ac_cv_header_stdc=yes
3628 echo "$as_me: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 ac_cv_header_stdc=no
3632 rm -f conftest.err conftest.$ac_ext
3634 if test $ac_cv_header_stdc = yes; then
3635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3636 cat >conftest.$ac_ext <<_ACEOF
3637 #line $LINENO "configure"
3638 #include "confdefs.h"
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 egrep "memchr" >/dev/null 2>&1; then
3646 ac_cv_header_stdc=no
3652 if test $ac_cv_header_stdc = yes; then
3653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3654 cat >conftest.$ac_ext <<_ACEOF
3655 #line $LINENO "configure"
3656 #include "confdefs.h"
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661 egrep "free" >/dev/null 2>&1; then
3664 ac_cv_header_stdc=no
3670 if test $ac_cv_header_stdc = yes; then
3671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672 if test "$cross_compiling" = yes; then
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3679 #if ((' ' & 0x0FF) == 0x020)
3680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3683 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3684 || ('j' <= (c) && (c) <= 'r') \
3685 || ('s' <= (c) && (c) <= 'z'))
3686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694 for (i = 0; i < 256; i++)
3695 if (XOR (islower (i), ISLOWER (i))
3696 || toupper (i) != TOUPPER (i))
3701 rm -f conftest$ac_exeext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3703 (eval $ac_link) 2>&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3714 echo "$as_me: program exited with status $ac_status" >&5
3715 echo "$as_me: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3718 ac_cv_header_stdc=no
3720 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3724 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3725 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3726 if test $ac_cv_header_stdc = yes; then
3728 cat >>confdefs.h <<\_ACEOF
3729 #define STDC_HEADERS 1
3734 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3745 inttypes.h stdint.h unistd.h
3747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3748 echo "$as_me:$LINENO: checking for $ac_header" >&5
3749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 cat >conftest.$ac_ext <<_ACEOF
3754 #line $LINENO "configure"
3755 #include "confdefs.h"
3756 $ac_includes_default
3758 #include <$ac_header>
3760 rm -f conftest.$ac_objext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 eval "$as_ac_Header=yes"
3774 echo "$as_me: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 eval "$as_ac_Header=no"
3778 rm -f conftest.$ac_objext conftest.$ac_ext
3780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3783 cat >>confdefs.h <<_ACEOF
3784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3792 if test "${ac_cv_header_pthread_h+set}" = set; then
3793 echo "$as_me:$LINENO: checking for pthread.h" >&5
3794 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3795 if test "${ac_cv_header_pthread_h+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3799 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3801 # Is the header compilable?
3802 echo "$as_me:$LINENO: checking pthread.h usability" >&5
3803 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
3804 cat >conftest.$ac_ext <<_ACEOF
3805 #line $LINENO "configure"
3806 #include "confdefs.h"
3807 $ac_includes_default
3808 #include <pthread.h>
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_header_compiler=yes
3824 echo "$as_me: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 ac_header_compiler=no
3828 rm -f conftest.$ac_objext conftest.$ac_ext
3829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3830 echo "${ECHO_T}$ac_header_compiler" >&6
3832 # Is the header present?
3833 echo "$as_me:$LINENO: checking pthread.h presence" >&5
3834 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
3835 cat >conftest.$ac_ext <<_ACEOF
3836 #line $LINENO "configure"
3837 #include "confdefs.h"
3838 #include <pthread.h>
3840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3843 egrep -v '^ *\+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } >/dev/null; then
3848 if test -s conftest.err; then
3849 ac_cpp_err=$ac_c_preproc_warn_flag
3856 if test -z "$ac_cpp_err"; then
3857 ac_header_preproc=yes
3859 echo "$as_me: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3861 ac_header_preproc=no
3863 rm -f conftest.err conftest.$ac_ext
3864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3865 echo "${ECHO_T}$ac_header_preproc" >&6
3867 # So? What about this header?
3868 case $ac_header_compiler:$ac_header_preproc in
3870 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
3871 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3875 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
3876 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
3878 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3880 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3882 echo "$as_me:$LINENO: checking for pthread.h" >&5
3883 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3884 if test "${ac_cv_header_pthread_h+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 ac_cv_header_pthread_h=$ac_header_preproc
3889 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3890 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3893 if test $ac_cv_header_pthread_h = yes; then
3896 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
3897 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
3898 { (exit 1); exit 1; }; }
3904 # these require no special flags or libraries
3906 freebsd2*|freebsd3*|freebsd4*) THREAD_CFLAGS="-pthread" ;;
3910 linux*) THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
3911 THREAD_LIBS="-lpthread"
3914 # other operating systems might fail because they have pthread.h but need
3915 # special libs we don't know about yet.
3916 { { echo "$as_me:$LINENO: error:
3917 Cannot enable threads on your platform.
3918 Please report your platform threading info to the PostgreSQL mailing lists
3919 so it can be added to the next release. Report any compile or link flags,
3920 or libraries required for threading support.
3922 echo "$as_me: error:
3923 Cannot enable threads on your platform.
3924 Please report your platform threading info to the PostgreSQL mailing lists
3925 so it can be added to the next release. Report any compile or link flags,
3926 or libraries required for threading support.
3928 { (exit 1); exit 1; }; }
3938 CPPFLAGS="$CPPFLAGS $INCLUDES"
3939 LDFLAGS="$LDFLAGS $LIBDIRS"
3941 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3942 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3943 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3944 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3947 for ac_prog in gawk mawk nawk awk
3949 # Extract the first word of "$ac_prog", so it can be a program name with args.
3950 set dummy $ac_prog; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_AWK+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$AWK"; then
3957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_AWK="$ac_prog"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 if test -n "$AWK"; then
3977 echo "$as_me:$LINENO: result: $AWK" >&5
3978 echo "${ECHO_T}$AWK" >&6
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3984 test -n "$AWK" && break
3987 echo "$as_me:$LINENO: checking for flex" >&5
3988 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3989 if test "${pgac_cv_path_flex+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 # Let the user override the test
3993 if test -n "$FLEX"; then
3994 pgac_cv_path_flex=$FLEX
3998 for pgac_dir in $PATH; do
3999 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4002 for pgac_prog in flex lex; do
4003 pgac_candidate="$pgac_dir/$pgac_prog"
4004 if test -f "$pgac_candidate" \
4005 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4007 echo '%%' > conftest.l
4008 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4009 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4010 pgac_broken_flex=$pgac_candidate
4014 pgac_cv_path_flex=$pgac_candidate
4022 : ${pgac_cv_path_flex=no}
4026 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4027 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4028 if test x"$pgac_cv_path_flex" = x"no"; then
4029 if test -n "$pgac_broken_flex"; then
4030 { echo "$as_me:$LINENO: WARNING:
4031 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4032 *** should get version 2.5.4 or later." >&5
4033 echo "$as_me: WARNING:
4034 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4035 *** should get version 2.5.4 or later." >&2;}
4038 { echo "$as_me:$LINENO: WARNING:
4039 *** Without Flex you will not be able to build PostgreSQL from CVS or
4040 *** change any of the scanner definition files. You can obtain Flex from
4041 *** a GNU mirror site. (If you are using the official distribution of
4042 *** PostgreSQL then you do not need to worry about this because the Flex
4043 *** output is pre-generated.)" >&5
4044 echo "$as_me: WARNING:
4045 *** Without Flex you will not be able to build PostgreSQL from CVS or
4046 *** change any of the scanner definition files. You can obtain Flex from
4047 *** a GNU mirror site. (If you are using the official distribution of
4048 *** PostgreSQL then you do not need to worry about this because the Flex
4049 *** output is pre-generated.)" >&2;}
4052 if test x"$pgac_cv_path_flex" = x"no"; then
4055 FLEX=$pgac_cv_path_flex
4061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4062 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4064 if test "$LN_S" = "ln -s"; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066 echo "${ECHO_T}yes" >&6
4068 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4069 echo "${ECHO_T}no, using $LN_S" >&6
4073 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4074 if test "${with_gnu_ld+set}" = set; then
4075 withval="$with_gnu_ld"
4076 test "$withval" = no || with_gnu_ld=yes
4081 if test "$GCC" = yes; then
4082 # Check if gcc -print-prog-name=ld gives a path.
4083 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4084 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4087 # gcc leaves a trailing carriage return which upsets mingw
4088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4093 # Accept absolute paths.
4094 [\\/]* | [A-Za-z]:[\\/]*)
4095 re_direlt='/[^/][^/]*/\.\./'
4096 # Canonicalize the path of ld
4097 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4098 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4099 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4101 test -z "$LD" && LD="$ac_prog"
4104 # If it fails, then pretend we aren't using GCC.
4108 # If it is relative, then search for the first ld in PATH.
4112 elif test "$with_gnu_ld" = yes; then
4113 echo "$as_me:$LINENO: checking for GNU ld" >&5
4114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4116 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4119 if test "${ac_cv_path_LD+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -z "$LD"; then
4123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4124 for ac_dir in $PATH; do
4125 test -z "$ac_dir" && ac_dir=.
4126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4127 ac_cv_path_LD="$ac_dir/$ac_prog"
4128 # Check to see if the program is GNU ld. I'd rather use --version,
4129 # but apparently some GNU ld's only accept -v.
4130 # Break only if it was the GNU/non-GNU ld that we prefer.
4131 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4132 test "$with_gnu_ld" != no && break
4134 test "$with_gnu_ld" != yes && break
4140 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4145 if test -n "$LD"; then
4146 echo "$as_me:$LINENO: result: $LD" >&5
4147 echo "${ECHO_T}$LD" >&6
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4152 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4153 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4154 { (exit 1); exit 1; }; }
4155 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4156 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4157 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4161 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4162 ac_cv_prog_gnu_ld=yes
4164 ac_cv_prog_gnu_ld=no
4167 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4168 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4169 with_gnu_ld=$ac_cv_prog_gnu_ld
4174 case $host_os in sysv5*)
4175 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4176 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4177 if test "${pgac_cv_prog_ld_R+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4182 cat >conftest.$ac_ext <<_ACEOF
4183 #line $LINENO "configure"
4184 #include "confdefs.h"
4186 #ifdef F77_DUMMY_MAIN
4190 int F77_DUMMY_MAIN() { return 1; }
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } &&
4206 { ac_try='test -s conftest$ac_exeext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 pgac_cv_prog_ld_R=yes
4214 echo "$as_me: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4216 pgac_cv_prog_ld_R=no
4218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4219 LDFLAGS=$pgac_save_LDFLAGS
4222 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4223 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4224 ld_R_works=$pgac_cv_prog_ld_R
4227 if test -n "$ac_tool_prefix"; then
4228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4230 echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4232 if test "${ac_cv_prog_RANLIB+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 if test -n "$RANLIB"; then
4236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 RANLIB=$ac_cv_prog_RANLIB
4255 if test -n "$RANLIB"; then
4256 echo "$as_me:$LINENO: result: $RANLIB" >&5
4257 echo "${ECHO_T}$RANLIB" >&6
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4264 if test -z "$ac_cv_prog_RANLIB"; then
4265 ac_ct_RANLIB=$RANLIB
4266 # Extract the first word of "ranlib", so it can be a program name with args.
4267 set dummy ranlib; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$ac_ct_RANLIB"; then
4274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_ac_ct_RANLIB="ranlib"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4294 if test -n "$ac_ct_RANLIB"; then
4295 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4296 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4298 echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6
4302 RANLIB=$ac_ct_RANLIB
4304 RANLIB="$ac_cv_prog_RANLIB"
4307 for ac_prog in lorder
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_prog_LORDER+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 if test -n "$LORDER"; then
4317 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_LORDER="$ac_prog"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 LORDER=$ac_cv_prog_LORDER
4336 if test -n "$LORDER"; then
4337 echo "$as_me:$LINENO: result: $LORDER" >&5
4338 echo "${ECHO_T}$LORDER" >&6
4340 echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4344 test -n "$LORDER" && break
4347 # Extract the first word of "tar", so it can be a program name with args.
4348 set dummy tar; ac_word=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_path_TAR+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 if test -n "$TAR"; then
4379 echo "$as_me:$LINENO: result: $TAR" >&5
4380 echo "${ECHO_T}$TAR" >&6
4382 echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}strip; ac_word=$2
4390 echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4392 if test "${ac_cv_prog_STRIP+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 if test -n "$STRIP"; then
4396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 STRIP=$ac_cv_prog_STRIP
4415 if test -n "$STRIP"; then
4416 echo "$as_me:$LINENO: result: $STRIP" >&5
4417 echo "${ECHO_T}$STRIP" >&6
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4424 if test -z "$ac_cv_prog_STRIP"; then
4426 # Extract the first word of "strip", so it can be a program name with args.
4427 set dummy strip; ac_word=$2
4428 echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 if test -n "$ac_ct_STRIP"; then
4434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_ac_ct_STRIP="strip"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4454 if test -n "$ac_ct_STRIP"; then
4455 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4456 echo "${ECHO_T}$ac_ct_STRIP" >&6
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4464 STRIP="$ac_cv_prog_STRIP"
4468 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4469 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4470 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4471 STRIP_STATIC_LIB="$STRIP -x"
4472 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4473 echo "$as_me:$LINENO: result: yes" >&5
4474 echo "${ECHO_T}yes" >&6
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4485 for ac_prog in 'bison -y'
4487 # Extract the first word of "$ac_prog", so it can be a program name with args.
4488 set dummy $ac_prog; ac_word=$2
4489 echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4491 if test "${ac_cv_prog_YACC+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 if test -n "$YACC"; then
4495 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_YACC="$ac_prog"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 YACC=$ac_cv_prog_YACC
4514 if test -n "$YACC"; then
4515 echo "$as_me:$LINENO: result: $YACC" >&5
4516 echo "${ECHO_T}$YACC" >&6
4518 echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4522 test -n "$YACC" && break
4526 if test "$YACC"; then
4527 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4528 { echo "$as_me:$LINENO: WARNING:
4529 *** The installed version of Bison is too old. PostgreSQL needs
4530 *** Bison version 1.875 or later." >&5
4531 echo "$as_me: WARNING:
4532 *** The installed version of Bison is too old. PostgreSQL needs
4533 *** Bison version 1.875 or later." >&2;}
4537 if test -z "$YACC"; then
4538 { echo "$as_me:$LINENO: WARNING:
4539 *** Without Bison you will not be able to build PostgreSQL from CVS or
4540 *** change any of the parser definition files. You can obtain Bison from
4541 *** a GNU mirror site. (If you are using the official distribution of
4542 *** PostgreSQL then you do not need to worry about this because the Bison
4543 *** output is pre-generated.) To use a different yacc program (possible,
4544 *** but not recommended), set the environment variable YACC before running
4545 *** 'configure'." >&5
4546 echo "$as_me: WARNING:
4547 *** Without Bison you will not be able to build PostgreSQL from CVS or
4548 *** change any of the parser definition files. You can obtain Bison from
4549 *** a GNU mirror site. (If you are using the official distribution of
4550 *** PostgreSQL then you do not need to worry about this because the Bison
4551 *** output is pre-generated.) To use a different yacc program (possible,
4552 *** but not recommended), set the environment variable YACC before running
4553 *** 'configure'." >&2;}
4557 # Extract the first word of "perl", so it can be a program name with args.
4558 set dummy perl; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_PERL+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 PERL=$ac_cv_path_PERL
4588 if test -n "$PERL"; then
4589 echo "$as_me:$LINENO: result: $PERL" >&5
4590 echo "${ECHO_T}$PERL" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 if test "$with_perl" = yes; then
4598 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4599 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4600 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4601 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4602 echo "${ECHO_T}$perl_archlibexp" >&6
4603 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4604 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4605 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4606 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4607 echo "${ECHO_T}$perl_privlibexp" >&6
4608 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4609 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4610 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4611 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4612 echo "${ECHO_T}$perl_useshrplib" >&6
4614 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4615 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4616 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4617 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4618 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4619 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4620 echo "${ECHO_T}$perl_embed_ldflags" >&6
4623 if test "$with_python" = yes; then
4624 # Extract the first word of "python", so it can be a program name with args.
4625 set dummy python; ac_word=$2
4626 echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4628 if test "${ac_cv_path_PYTHON+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 PYTHON=$ac_cv_path_PYTHON
4655 if test -n "$PYTHON"; then
4656 echo "$as_me:$LINENO: result: $PYTHON" >&5
4657 echo "${ECHO_T}$PYTHON" >&6
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4663 if test x"$PYTHON" = x""; then
4664 { { echo "$as_me:$LINENO: error: Python not found" >&5
4665 echo "$as_me: error: Python not found" >&2;}
4666 { (exit 1); exit 1; }; }
4670 echo "$as_me:$LINENO: checking Python installation directories" >&5
4671 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4672 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4673 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4674 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4675 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4676 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4677 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4678 python_includespec="-I${python_prefix}/include/python${python_version}"
4679 if test "$python_prefix" != "$python_execprefix"; then
4680 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4683 # This should be enough of a message.
4684 if test "$python_prefix" != "$python_execprefix"; then
4685 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4686 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4688 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4689 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4696 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4697 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4699 if test ! -f "$python_configdir/Makefile"; then
4700 echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6
4702 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4703 echo "$as_me: error: Python Makefile not found" >&2;}
4704 { (exit 1); exit 1; }; }
4707 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4708 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4709 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4710 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4711 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4713 pgac_tab=" " # tab character
4714 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"`
4716 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4717 echo "${ECHO_T}${python_libspec}" >&6
4727 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4730 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4731 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4732 if test "${ac_cv_lib_bsd_main+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 ac_check_lib_save_LIBS=$LIBS
4737 cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4739 #include "confdefs.h"
4742 #ifdef F77_DUMMY_MAIN
4746 int F77_DUMMY_MAIN() { return 1; }
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -s conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_lib_bsd_main=yes
4770 echo "$as_me: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4772 ac_cv_lib_bsd_main=no
4774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4775 LIBS=$ac_check_lib_save_LIBS
4777 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4778 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4779 if test $ac_cv_lib_bsd_main = yes; then
4780 cat >>confdefs.h <<_ACEOF
4781 #define HAVE_LIBBSD 1
4790 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4791 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4792 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 ac_check_lib_save_LIBS=$LIBS
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 #include "confdefs.h"
4801 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4807 char setproctitle ();
4808 #ifdef F77_DUMMY_MAIN
4812 int F77_DUMMY_MAIN() { return 1; }
4822 rm -f conftest.$ac_objext conftest$ac_exeext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4824 (eval $ac_link) 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try='test -s conftest$ac_exeext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_cv_lib_util_setproctitle=yes
4836 echo "$as_me: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4838 ac_cv_lib_util_setproctitle=no
4840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4841 LIBS=$ac_check_lib_save_LIBS
4843 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4844 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4845 if test $ac_cv_lib_util_setproctitle = yes; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define HAVE_LIBUTIL 1
4855 echo "$as_me:$LINENO: checking for main in -lm" >&5
4856 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4857 if test "${ac_cv_lib_m_main+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 ac_check_lib_save_LIBS=$LIBS
4862 cat >conftest.$ac_ext <<_ACEOF
4863 #line $LINENO "configure"
4864 #include "confdefs.h"
4867 #ifdef F77_DUMMY_MAIN
4871 int F77_DUMMY_MAIN() { return 1; }
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -s conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_lib_m_main=yes
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4900 LIBS=$ac_check_lib_save_LIBS
4902 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4903 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4904 if test $ac_cv_lib_m_main = yes; then
4905 cat >>confdefs.h <<_ACEOF
4914 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4915 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4916 if test "${ac_cv_lib_dl_main+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 ac_check_lib_save_LIBS=$LIBS
4921 cat >conftest.$ac_ext <<_ACEOF
4922 #line $LINENO "configure"
4923 #include "confdefs.h"
4926 #ifdef F77_DUMMY_MAIN
4930 int F77_DUMMY_MAIN() { return 1; }
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_lib_dl_main=yes
4954 echo "$as_me: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4956 ac_cv_lib_dl_main=no
4958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4959 LIBS=$ac_check_lib_save_LIBS
4961 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4962 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4963 if test $ac_cv_lib_dl_main = yes; then
4964 cat >>confdefs.h <<_ACEOF
4965 #define HAVE_LIBDL 1
4973 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4974 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4975 if test "${ac_cv_lib_nsl_main+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_check_lib_save_LIBS=$LIBS
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4982 #include "confdefs.h"
4985 #ifdef F77_DUMMY_MAIN
4989 int F77_DUMMY_MAIN() { return 1; }
4999 rm -f conftest.$ac_objext conftest$ac_exeext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5001 (eval $ac_link) 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -s conftest$ac_exeext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_lib_nsl_main=yes
5013 echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 ac_cv_lib_nsl_main=no
5017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5018 LIBS=$ac_check_lib_save_LIBS
5020 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5021 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5022 if test $ac_cv_lib_nsl_main = yes; then
5023 cat >>confdefs.h <<_ACEOF
5024 #define HAVE_LIBNSL 1
5032 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5033 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5034 if test "${ac_cv_lib_socket_main+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 ac_check_lib_save_LIBS=$LIBS
5038 LIBS="-lsocket $LIBS"
5039 cat >conftest.$ac_ext <<_ACEOF
5040 #line $LINENO "configure"
5041 #include "confdefs.h"
5044 #ifdef F77_DUMMY_MAIN
5048 int F77_DUMMY_MAIN() { return 1; }
5058 rm -f conftest.$ac_objext conftest$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -s conftest$ac_exeext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 ac_cv_lib_socket_main=yes
5072 echo "$as_me: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5074 ac_cv_lib_socket_main=no
5076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5077 LIBS=$ac_check_lib_save_LIBS
5079 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5080 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5081 if test $ac_cv_lib_socket_main = yes; then
5082 cat >>confdefs.h <<_ACEOF
5083 #define HAVE_LIBSOCKET 1
5086 LIBS="-lsocket $LIBS"
5091 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5092 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5093 if test "${ac_cv_lib_ipc_main+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 ac_check_lib_save_LIBS=$LIBS
5098 cat >conftest.$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5100 #include "confdefs.h"
5103 #ifdef F77_DUMMY_MAIN
5107 int F77_DUMMY_MAIN() { return 1; }
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -s conftest$ac_exeext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_lib_ipc_main=yes
5131 echo "$as_me: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5133 ac_cv_lib_ipc_main=no
5135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5136 LIBS=$ac_check_lib_save_LIBS
5138 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5139 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5140 if test $ac_cv_lib_ipc_main = yes; then
5141 cat >>confdefs.h <<_ACEOF
5142 #define HAVE_LIBIPC 1
5150 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5151 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5152 if test "${ac_cv_lib_IPC_main+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 ac_check_lib_save_LIBS=$LIBS
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5159 #include "confdefs.h"
5162 #ifdef F77_DUMMY_MAIN
5166 int F77_DUMMY_MAIN() { return 1; }
5176 rm -f conftest.$ac_objext conftest$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178 (eval $ac_link) 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -s conftest$ac_exeext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_cv_lib_IPC_main=yes
5190 echo "$as_me: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5192 ac_cv_lib_IPC_main=no
5194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5195 LIBS=$ac_check_lib_save_LIBS
5197 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5198 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5199 if test $ac_cv_lib_IPC_main = yes; then
5200 cat >>confdefs.h <<_ACEOF
5201 #define HAVE_LIBIPC 1
5209 echo "$as_me:$LINENO: checking for main in -llc" >&5
5210 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5211 if test "${ac_cv_lib_lc_main+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 ac_check_lib_save_LIBS=$LIBS
5216 cat >conftest.$ac_ext <<_ACEOF
5217 #line $LINENO "configure"
5218 #include "confdefs.h"
5221 #ifdef F77_DUMMY_MAIN
5225 int F77_DUMMY_MAIN() { return 1; }
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -s conftest$ac_exeext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_cv_lib_lc_main=yes
5249 echo "$as_me: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5251 ac_cv_lib_lc_main=no
5253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5254 LIBS=$ac_check_lib_save_LIBS
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5257 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5258 if test $ac_cv_lib_lc_main = yes; then
5259 cat >>confdefs.h <<_ACEOF
5260 #define HAVE_LIBLC 1
5268 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5269 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5270 if test "${ac_cv_lib_dld_main+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 ac_check_lib_save_LIBS=$LIBS
5275 cat >conftest.$ac_ext <<_ACEOF
5276 #line $LINENO "configure"
5277 #include "confdefs.h"
5280 #ifdef F77_DUMMY_MAIN
5284 int F77_DUMMY_MAIN() { return 1; }
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -s conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_cv_lib_dld_main=yes
5308 echo "$as_me: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5310 ac_cv_lib_dld_main=no
5312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5313 LIBS=$ac_check_lib_save_LIBS
5315 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5316 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5317 if test $ac_cv_lib_dld_main = yes; then
5318 cat >>confdefs.h <<_ACEOF
5319 #define HAVE_LIBDLD 1
5327 echo "$as_me:$LINENO: checking for main in -lld" >&5
5328 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5329 if test "${ac_cv_lib_ld_main+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 ac_check_lib_save_LIBS=$LIBS
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 #include "confdefs.h"
5339 #ifdef F77_DUMMY_MAIN
5343 int F77_DUMMY_MAIN() { return 1; }
5353 rm -f conftest.$ac_objext conftest$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355 (eval $ac_link) 2>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -s conftest$ac_exeext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 ac_cv_lib_ld_main=yes
5367 echo "$as_me: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5369 ac_cv_lib_ld_main=no
5371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5372 LIBS=$ac_check_lib_save_LIBS
5374 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5375 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5376 if test $ac_cv_lib_ld_main = yes; then
5377 cat >>confdefs.h <<_ACEOF
5378 #define HAVE_LIBLD 1
5386 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5387 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5388 if test "${ac_cv_lib_compat_main+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 ac_check_lib_save_LIBS=$LIBS
5392 LIBS="-lcompat $LIBS"
5393 cat >conftest.$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5395 #include "confdefs.h"
5398 #ifdef F77_DUMMY_MAIN
5402 int F77_DUMMY_MAIN() { return 1; }
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414 (eval $ac_link) 2>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -s conftest$ac_exeext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_cv_lib_compat_main=yes
5426 echo "$as_me: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 ac_cv_lib_compat_main=no
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5434 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5435 if test $ac_cv_lib_compat_main = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define HAVE_LIBCOMPAT 1
5440 LIBS="-lcompat $LIBS"
5445 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5446 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5447 if test "${ac_cv_lib_BSD_main+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 ac_check_lib_save_LIBS=$LIBS
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5454 #include "confdefs.h"
5457 #ifdef F77_DUMMY_MAIN
5461 int F77_DUMMY_MAIN() { return 1; }
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -s conftest$ac_exeext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 ac_cv_lib_BSD_main=yes
5485 echo "$as_me: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 ac_cv_lib_BSD_main=no
5489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5490 LIBS=$ac_check_lib_save_LIBS
5492 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5493 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5494 if test $ac_cv_lib_BSD_main = yes; then
5495 cat >>confdefs.h <<_ACEOF
5496 #define HAVE_LIBBSD 1
5504 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5505 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5506 if test "${ac_cv_lib_gen_main+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_check_lib_save_LIBS=$LIBS
5511 cat >conftest.$ac_ext <<_ACEOF
5512 #line $LINENO "configure"
5513 #include "confdefs.h"
5516 #ifdef F77_DUMMY_MAIN
5520 int F77_DUMMY_MAIN() { return 1; }
5530 rm -f conftest.$ac_objext conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532 (eval $ac_link) 2>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -s conftest$ac_exeext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_lib_gen_main=yes
5544 echo "$as_me: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5546 ac_cv_lib_gen_main=no
5548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5549 LIBS=$ac_check_lib_save_LIBS
5551 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5552 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5553 if test $ac_cv_lib_gen_main = yes; then
5554 cat >>confdefs.h <<_ACEOF
5555 #define HAVE_LIBGEN 1
5563 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5564 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5565 if test "${ac_cv_lib_PW_main+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 ac_check_lib_save_LIBS=$LIBS
5570 cat >conftest.$ac_ext <<_ACEOF
5571 #line $LINENO "configure"
5572 #include "confdefs.h"
5575 #ifdef F77_DUMMY_MAIN
5579 int F77_DUMMY_MAIN() { return 1; }
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -s conftest$ac_exeext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 ac_cv_lib_PW_main=yes
5603 echo "$as_me: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 ac_cv_lib_PW_main=no
5607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5608 LIBS=$ac_check_lib_save_LIBS
5610 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5611 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5612 if test $ac_cv_lib_PW_main = yes; then
5613 cat >>confdefs.h <<_ACEOF
5614 #define HAVE_LIBPW 1
5622 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5623 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5624 if test "${ac_cv_lib_resolv_main+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 ac_check_lib_save_LIBS=$LIBS
5628 LIBS="-lresolv $LIBS"
5629 cat >conftest.$ac_ext <<_ACEOF
5630 #line $LINENO "configure"
5631 #include "confdefs.h"
5634 #ifdef F77_DUMMY_MAIN
5638 int F77_DUMMY_MAIN() { return 1; }
5648 rm -f conftest.$ac_objext conftest$ac_exeext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5650 (eval $ac_link) 2>&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -s conftest$ac_exeext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_cv_lib_resolv_main=yes
5662 echo "$as_me: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5664 ac_cv_lib_resolv_main=no
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5669 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5670 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5671 if test $ac_cv_lib_resolv_main = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define HAVE_LIBRESOLV 1
5676 LIBS="-lresolv $LIBS"
5681 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5682 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5683 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 ac_check_lib_save_LIBS=$LIBS
5687 LIBS="-lwsock32 $LIBS"
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5693 #ifdef F77_DUMMY_MAIN
5697 int F77_DUMMY_MAIN() { return 1; }
5707 rm -f conftest.$ac_objext conftest$ac_exeext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5709 (eval $ac_link) 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_lib_wsock32_main=yes
5721 echo "$as_me: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5723 ac_cv_lib_wsock32_main=no
5725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5726 LIBS=$ac_check_lib_save_LIBS
5728 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5729 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5730 if test $ac_cv_lib_wsock32_main = yes; then
5731 cat >>confdefs.h <<_ACEOF
5732 #define HAVE_LIBWSOCK32 1
5735 LIBS="-lwsock32 $LIBS"
5739 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5740 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5741 if test "${ac_cv_search_getopt_long+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 ac_func_search_save_LIBS=$LIBS
5745 ac_cv_search_getopt_long=no
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line $LINENO "configure"
5748 #include "confdefs.h"
5750 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5756 char getopt_long ();
5757 #ifdef F77_DUMMY_MAIN
5761 int F77_DUMMY_MAIN() { return 1; }
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773 (eval $ac_link) 2>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try='test -s conftest$ac_exeext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_cv_search_getopt_long="none required"
5785 echo "$as_me: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789 if test "$ac_cv_search_getopt_long" = no; then
5790 for ac_lib in getopt gnugetopt; do
5791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5796 /* Override any gcc2 internal prototype to avoid an error. */
5800 /* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5802 char getopt_long ();
5803 #ifdef F77_DUMMY_MAIN
5807 int F77_DUMMY_MAIN() { return 1; }
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819 (eval $ac_link) 2>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -s conftest$ac_exeext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_cv_search_getopt_long="-l$ac_lib"
5832 echo "$as_me: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_func_search_save_LIBS
5840 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5841 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5842 if test "$ac_cv_search_getopt_long" != no; then
5843 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5849 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5850 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5851 if test "${ac_cv_lib_unix_main+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_check_lib_save_LIBS=$LIBS
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 #include "confdefs.h"
5861 #ifdef F77_DUMMY_MAIN
5865 int F77_DUMMY_MAIN() { return 1; }
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -s conftest$ac_exeext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_lib_unix_main=yes
5889 echo "$as_me: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5891 ac_cv_lib_unix_main=no
5893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5894 LIBS=$ac_check_lib_save_LIBS
5896 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5897 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5898 if test $ac_cv_lib_unix_main = yes; then
5899 cat >>confdefs.h <<_ACEOF
5900 #define HAVE_LIBUNIX 1
5907 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5908 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5909 if test "${ac_cv_search_crypt+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_func_search_save_LIBS=$LIBS
5913 ac_cv_search_crypt=no
5914 cat >conftest.$ac_ext <<_ACEOF
5915 #line $LINENO "configure"
5916 #include "confdefs.h"
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5925 #ifdef F77_DUMMY_MAIN
5929 int F77_DUMMY_MAIN() { return 1; }
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941 (eval $ac_link) 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -s conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_search_crypt="none required"
5953 echo "$as_me: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5957 if test "$ac_cv_search_crypt" = no; then
5958 for ac_lib in crypt; do
5959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5960 cat >conftest.$ac_ext <<_ACEOF
5961 #line $LINENO "configure"
5962 #include "confdefs.h"
5964 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5971 #ifdef F77_DUMMY_MAIN
5975 int F77_DUMMY_MAIN() { return 1; }
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest$ac_exeext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_cv_search_crypt="-l$ac_lib"
6000 echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_func_search_save_LIBS
6008 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6009 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6010 if test "$ac_cv_search_crypt" != no; then
6011 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6017 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6018 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6019 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 ac_check_lib_save_LIBS=$LIBS
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6028 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6034 char __inet_ntoa ();
6035 #ifdef F77_DUMMY_MAIN
6039 int F77_DUMMY_MAIN() { return 1; }
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_cv_lib_bind___inet_ntoa=yes
6063 echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_lib_bind___inet_ntoa=no
6067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_check_lib_save_LIBS
6070 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6071 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6072 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6073 cat >>confdefs.h <<_ACEOF
6074 #define HAVE_LIBBIND 1
6082 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6083 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6084 if test "${ac_cv_search_fdatasync+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 ac_func_search_save_LIBS=$LIBS
6088 ac_cv_search_fdatasync=no
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 #include "confdefs.h"
6093 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6100 #ifdef F77_DUMMY_MAIN
6104 int F77_DUMMY_MAIN() { return 1; }
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -s conftest$ac_exeext'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 ac_cv_search_fdatasync="none required"
6128 echo "$as_me: failed program was:" >&5
6129 cat conftest.$ac_ext >&5
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6132 if test "$ac_cv_search_fdatasync" = no; then
6133 for ac_lib in rt posix4; do
6134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 #include "confdefs.h"
6139 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6146 #ifdef F77_DUMMY_MAIN
6150 int F77_DUMMY_MAIN() { return 1; }
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -s conftest$ac_exeext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_search_fdatasync="-l$ac_lib"
6175 echo "$as_me: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_func_search_save_LIBS
6183 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6184 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6185 if test "$ac_cv_search_fdatasync" != no; then
6186 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6192 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6193 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6194 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 ac_check_lib_save_LIBS=$LIBS
6198 LIBS="-lcygipc $LIBS"
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 #include "confdefs.h"
6203 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6210 #ifdef F77_DUMMY_MAIN
6214 int F77_DUMMY_MAIN() { return 1; }
6224 rm -f conftest.$ac_objext conftest$ac_exeext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226 (eval $ac_link) 2>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -s conftest$ac_exeext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_cv_lib_cygipc_shmget=yes
6238 echo "$as_me: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 ac_cv_lib_cygipc_shmget=no
6242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6245 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6246 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6247 if test $ac_cv_lib_cygipc_shmget = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define HAVE_LIBCYGIPC 1
6252 LIBS="-lcygipc $LIBS"
6257 if test "$with_readline" = yes; then
6259 echo "$as_me:$LINENO: checking for readline" >&5
6260 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6262 if test "${pgac_cv_check_readline+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 pgac_cv_check_readline=no
6266 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6267 for pgac_rllib in -lreadline -ledit ; do
6268 pgac_save_LIBS=$LIBS
6269 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6270 cat >conftest.$ac_ext <<_ACEOF
6271 #line $LINENO "configure"
6272 #include "confdefs.h"
6274 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6281 #ifdef F77_DUMMY_MAIN
6285 int F77_DUMMY_MAIN() { return 1; }
6295 rm -f conftest.$ac_objext conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297 (eval $ac_link) 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -s conftest$ac_exeext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6308 # NetBSD and OpenBSD have a broken linker that does not
6309 # recognize dependent libraries
6310 case $host_os in netbsd* | openbsd* )
6313 *) pgac_lib=" -lcurses" ;;
6317 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6321 echo "$as_me: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325 LIBS=$pgac_save_LIBS
6328 LIBS=$pgac_save_LIBS
6332 if test "$pgac_cv_check_readline" != no ; then
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_LIBREADLINE 1
6338 LIBS="$pgac_cv_check_readline $LIBS"
6339 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6340 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6342 echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6345 if test x"$pgac_cv_check_readline" = x"no"; then
6346 { { echo "$as_me:$LINENO: error: readline library not found
6347 If you have readline already installed, see config.log for details on the
6348 failure. It is possible the compiler isn't looking in the proper directory.
6349 Use --without-readline to disable readline support." >&5
6350 echo "$as_me: error: readline library not found
6351 If you have readline already installed, see config.log for details on the
6352 failure. It is possible the compiler isn't looking in the proper directory.
6353 Use --without-readline to disable readline support." >&2;}
6354 { (exit 1); exit 1; }; }
6358 if test "$with_zlib" = yes; then
6360 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6361 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6362 if test "${ac_cv_lib_z_inflate+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 ac_check_lib_save_LIBS=$LIBS
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 #include "confdefs.h"
6371 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6378 #ifdef F77_DUMMY_MAIN
6382 int F77_DUMMY_MAIN() { return 1; }
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 (eval $ac_link) 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest$ac_exeext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_lib_z_inflate=yes
6406 echo "$as_me: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6408 ac_cv_lib_z_inflate=no
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6411 LIBS=$ac_check_lib_save_LIBS
6413 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6414 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6415 if test $ac_cv_lib_z_inflate = yes; then
6416 cat >>confdefs.h <<_ACEOF
6423 { { echo "$as_me:$LINENO: error: zlib library not found
6424 If you have zlib already installed, see config.log for details on the
6425 failure. It is possible the compiler isn't looking in the proper directory.
6426 Use --without-zlib to disable zlib support." >&5
6427 echo "$as_me: error: zlib library not found
6428 If you have zlib already installed, see config.log for details on the
6429 failure. It is possible the compiler isn't looking in the proper directory.
6430 Use --without-zlib to disable zlib support." >&2;}
6431 { (exit 1); exit 1; }; }
6436 if test "$with_krb4" = yes ; then
6438 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6439 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6440 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_check_lib_save_LIBS=$LIBS
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6449 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6455 char des_encrypt ();
6456 #ifdef F77_DUMMY_MAIN
6460 int F77_DUMMY_MAIN() { return 1; }
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_lib_des_des_encrypt=yes
6484 echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 ac_cv_lib_des_des_encrypt=no
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6491 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6492 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6493 if test $ac_cv_lib_des_des_encrypt = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495 #define HAVE_LIBDES 1
6501 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6502 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6503 { (exit 1); exit 1; }; }
6507 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6508 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6509 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 ac_check_lib_save_LIBS=$LIBS
6514 cat >conftest.$ac_ext <<_ACEOF
6515 #line $LINENO "configure"
6516 #include "confdefs.h"
6518 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6524 char krb_sendauth ();
6525 #ifdef F77_DUMMY_MAIN
6529 int F77_DUMMY_MAIN() { return 1; }
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541 (eval $ac_link) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_lib_krb_krb_sendauth=yes
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_cv_lib_krb_krb_sendauth=no
6557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6558 LIBS=$ac_check_lib_save_LIBS
6560 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6561 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6562 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564 #define HAVE_LIBKRB 1
6570 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6571 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6572 { (exit 1); exit 1; }; }
6576 for ac_func in gethostname
6578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6579 echo "$as_me:$LINENO: checking for $ac_func" >&5
6580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6581 if eval "test \"\${$as_ac_var+set}\" = set"; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6585 #line $LINENO "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588 which can conflict with char $ac_func (); below. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6599 #ifdef F77_DUMMY_MAIN
6603 int F77_DUMMY_MAIN() { return 1; }
6608 /* The GNU C library defines this for functions which it implements
6609 to always fail with ENOSYS. Some functions are actually named
6610 something starting with __ and the normal name is an alias. */
6611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6621 rm -f conftest.$ac_objext conftest$ac_exeext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623 (eval $ac_link) 2>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -s conftest$ac_exeext'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 eval "$as_ac_var=yes"
6635 echo "$as_me: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6637 eval "$as_ac_var=no"
6639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6643 if test `eval echo '${'$as_ac_var'}'` = yes; then
6644 cat >>confdefs.h <<_ACEOF
6645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6649 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6656 if test "$with_krb5" = yes ; then
6657 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6658 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6659 if test "${ac_cv_search_com_err+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_func_search_save_LIBS=$LIBS
6663 ac_cv_search_com_err=no
6664 cat >conftest.$ac_ext <<_ACEOF
6665 #line $LINENO "configure"
6666 #include "confdefs.h"
6668 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6675 #ifdef F77_DUMMY_MAIN
6679 int F77_DUMMY_MAIN() { return 1; }
6689 rm -f conftest.$ac_objext conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -s conftest$ac_exeext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_search_com_err="none required"
6703 echo "$as_me: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6707 if test "$ac_cv_search_com_err" = no; then
6708 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6710 cat >conftest.$ac_ext <<_ACEOF
6711 #line $LINENO "configure"
6712 #include "confdefs.h"
6714 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6721 #ifdef F77_DUMMY_MAIN
6725 int F77_DUMMY_MAIN() { return 1; }
6735 rm -f conftest.$ac_objext conftest$ac_exeext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737 (eval $ac_link) 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_search_com_err="-l$ac_lib"
6750 echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6756 LIBS=$ac_func_search_save_LIBS
6758 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6759 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6760 if test "$ac_cv_search_com_err" != no; then
6761 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6764 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6765 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6766 { (exit 1); exit 1; }; }
6769 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6770 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6771 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 ac_func_search_save_LIBS=$LIBS
6775 ac_cv_search_krb5_encrypt=no
6776 cat >conftest.$ac_ext <<_ACEOF
6777 #line $LINENO "configure"
6778 #include "confdefs.h"
6780 /* Override any gcc2 internal prototype to avoid an error. */
6784 /* We use char because int might match the return type of a gcc2
6785 builtin and then its argument prototype would still apply. */
6786 char krb5_encrypt ();
6787 #ifdef F77_DUMMY_MAIN
6791 int F77_DUMMY_MAIN() { return 1; }
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803 (eval $ac_link) 2>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -s conftest$ac_exeext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 ac_cv_search_krb5_encrypt="none required"
6815 echo "$as_me: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6819 if test "$ac_cv_search_krb5_encrypt" = no; then
6820 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6822 cat >conftest.$ac_ext <<_ACEOF
6823 #line $LINENO "configure"
6824 #include "confdefs.h"
6826 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6832 char krb5_encrypt ();
6833 #ifdef F77_DUMMY_MAIN
6837 int F77_DUMMY_MAIN() { return 1; }
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6849 (eval $ac_link) 2>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_cv_search_krb5_encrypt="-l$ac_lib"
6862 echo "$as_me: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6868 LIBS=$ac_func_search_save_LIBS
6870 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6871 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6872 if test "$ac_cv_search_krb5_encrypt" != no; then
6873 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6876 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6877 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6878 { (exit 1); exit 1; }; }
6881 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6882 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6883 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_func_search_save_LIBS=$LIBS
6887 ac_cv_search_krb5_sendauth=no
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 #include "confdefs.h"
6892 /* Override any gcc2 internal prototype to avoid an error. */
6896 /* We use char because int might match the return type of a gcc2
6897 builtin and then its argument prototype would still apply. */
6898 char krb5_sendauth ();
6899 #ifdef F77_DUMMY_MAIN
6903 int F77_DUMMY_MAIN() { return 1; }
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915 (eval $ac_link) 2>&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -s conftest$ac_exeext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_search_krb5_sendauth="none required"
6927 echo "$as_me: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6931 if test "$ac_cv_search_krb5_sendauth" = no; then
6932 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6934 cat >conftest.$ac_ext <<_ACEOF
6935 #line $LINENO "configure"
6936 #include "confdefs.h"
6938 /* Override any gcc2 internal prototype to avoid an error. */
6942 /* We use char because int might match the return type of a gcc2
6943 builtin and then its argument prototype would still apply. */
6944 char krb5_sendauth ();
6945 #ifdef F77_DUMMY_MAIN
6949 int F77_DUMMY_MAIN() { return 1; }
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -s conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_search_krb5_sendauth="-l$ac_lib"
6974 echo "$as_me: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6980 LIBS=$ac_func_search_save_LIBS
6982 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6983 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6984 if test "$ac_cv_search_krb5_sendauth" != no; then
6985 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6988 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6989 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6990 { (exit 1); exit 1; }; }
6995 if test "$with_openssl" = yes ; then
6997 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6998 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6999 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 ac_check_lib_save_LIBS=$LIBS
7003 LIBS="-lcrypto $LIBS"
7004 cat >conftest.$ac_ext <<_ACEOF
7005 #line $LINENO "configure"
7006 #include "confdefs.h"
7008 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7014 char CRYPTO_new_ex_data ();
7015 #ifdef F77_DUMMY_MAIN
7019 int F77_DUMMY_MAIN() { return 1; }
7024 CRYPTO_new_ex_data ();
7029 rm -f conftest.$ac_objext conftest$ac_exeext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031 (eval $ac_link) 2>&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -s conftest$ac_exeext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7043 echo "$as_me: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7050 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7051 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7052 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_LIBCRYPTO 1
7057 LIBS="-lcrypto $LIBS"
7060 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7061 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7062 { (exit 1); exit 1; }; }
7066 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7067 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7068 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 ac_check_lib_save_LIBS=$LIBS
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7075 #include "confdefs.h"
7077 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7083 char SSL_library_init ();
7084 #ifdef F77_DUMMY_MAIN
7088 int F77_DUMMY_MAIN() { return 1; }
7093 SSL_library_init ();
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_cv_lib_ssl_SSL_library_init=yes
7112 echo "$as_me: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 ac_cv_lib_ssl_SSL_library_init=no
7116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7117 LIBS=$ac_check_lib_save_LIBS
7119 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7120 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7121 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7122 cat >>confdefs.h <<_ACEOF
7123 #define HAVE_LIBSSL 1
7129 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7130 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7131 { (exit 1); exit 1; }; }
7136 if test "$with_pam" = yes ; then
7138 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7139 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7140 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 ac_check_lib_save_LIBS=$LIBS
7145 cat >conftest.$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7147 #include "confdefs.h"
7149 /* Override any gcc2 internal prototype to avoid an error. */
7153 /* We use char because int might match the return type of a gcc2
7154 builtin and then its argument prototype would still apply. */
7156 #ifdef F77_DUMMY_MAIN
7160 int F77_DUMMY_MAIN() { return 1; }
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -s conftest$ac_exeext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 ac_cv_lib_pam_pam_start=yes
7184 echo "$as_me: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 ac_cv_lib_pam_pam_start=no
7188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7189 LIBS=$ac_check_lib_save_LIBS
7191 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7192 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7193 if test $ac_cv_lib_pam_pam_start = yes; then
7194 cat >>confdefs.h <<_ACEOF
7195 #define HAVE_LIBPAM 1
7201 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7202 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7203 { (exit 1); exit 1; }; }
7234 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
7239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7246 # Is the header compilable?
7247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7249 cat >conftest.$ac_ext <<_ACEOF
7250 #line $LINENO "configure"
7251 #include "confdefs.h"
7252 $ac_includes_default
7253 #include <$ac_header>
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_header_compiler=yes
7269 echo "$as_me: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 ac_header_compiler=no
7273 rm -f conftest.$ac_objext conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7275 echo "${ECHO_T}$ac_header_compiler" >&6
7277 # Is the header present?
7278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7280 cat >conftest.$ac_ext <<_ACEOF
7281 #line $LINENO "configure"
7282 #include "confdefs.h"
7283 #include <$ac_header>
7285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7288 egrep -v '^ *\+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } >/dev/null; then
7293 if test -s conftest.err; then
7294 ac_cpp_err=$ac_c_preproc_warn_flag
7301 if test -z "$ac_cpp_err"; then
7302 ac_header_preproc=yes
7304 echo "$as_me: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7306 ac_header_preproc=no
7308 rm -f conftest.err conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7310 echo "${ECHO_T}$ac_header_preproc" >&6
7312 # So? What about this header?
7313 case $ac_header_compiler:$ac_header_preproc in
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7327 echo "$as_me:$LINENO: checking for $ac_header" >&5
7328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 eval "$as_ac_Header=$ac_header_preproc"
7334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7339 cat >>confdefs.h <<_ACEOF
7340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7349 # netinet/in.h is included first.
7351 for ac_header in netinet/in.h
7353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355 echo "$as_me:$LINENO: checking for $ac_header" >&5
7356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7363 # Is the header compilable?
7364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7367 #line $LINENO "configure"
7368 #include "confdefs.h"
7369 $ac_includes_default
7370 #include <$ac_header>
7372 rm -f conftest.$ac_objext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -s conftest.$ac_objext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 ac_header_compiler=yes
7386 echo "$as_me: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7388 ac_header_compiler=no
7390 rm -f conftest.$ac_objext conftest.$ac_ext
7391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392 echo "${ECHO_T}$ac_header_compiler" >&6
7394 # Is the header present?
7395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7397 cat >conftest.$ac_ext <<_ACEOF
7398 #line $LINENO "configure"
7399 #include "confdefs.h"
7400 #include <$ac_header>
7402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7405 egrep -v '^ *\+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } >/dev/null; then
7410 if test -s conftest.err; then
7411 ac_cpp_err=$ac_c_preproc_warn_flag
7418 if test -z "$ac_cpp_err"; then
7419 ac_header_preproc=yes
7421 echo "$as_me: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7423 ac_header_preproc=no
7425 rm -f conftest.err conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7427 echo "${ECHO_T}$ac_header_preproc" >&6
7429 # So? What about this header?
7430 case $ac_header_compiler:$ac_header_preproc in
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7444 echo "$as_me:$LINENO: checking for $ac_header" >&5
7445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 eval "$as_ac_Header=$ac_header_preproc"
7451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7456 cat >>confdefs.h <<_ACEOF
7457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7465 for ac_header in netinet/tcp.h
7467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7468 echo "$as_me:$LINENO: checking for $ac_header" >&5
7469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 cat >conftest.$ac_ext <<_ACEOF
7474 #line $LINENO "configure"
7475 #include "confdefs.h"
7476 $ac_includes_default
7477 #ifdef HAVE_NETINET_IN_H
7478 #include <netinet/in.h>
7482 #include <$ac_header>
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 eval "$as_ac_Header=yes"
7498 echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 eval "$as_ac_Header=no"
7502 rm -f conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7507 cat >>confdefs.h <<_ACEOF
7508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7516 if test "$with_readline" = yes; then
7518 for ac_header in readline/readline.h
7520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7522 echo "$as_me:$LINENO: checking for $ac_header" >&5
7523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7530 # Is the header compilable?
7531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7534 #line $LINENO "configure"
7535 #include "confdefs.h"
7536 $ac_includes_default
7537 #include <$ac_header>
7539 rm -f conftest.$ac_objext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7541 (eval $ac_compile) 2>&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } &&
7545 { ac_try='test -s conftest.$ac_objext'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; }; then
7551 ac_header_compiler=yes
7553 echo "$as_me: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 ac_header_compiler=no
7557 rm -f conftest.$ac_objext conftest.$ac_ext
7558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7559 echo "${ECHO_T}$ac_header_compiler" >&6
7561 # Is the header present?
7562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7564 cat >conftest.$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7566 #include "confdefs.h"
7567 #include <$ac_header>
7569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7572 egrep -v '^ *\+' conftest.er1 >conftest.err
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } >/dev/null; then
7577 if test -s conftest.err; then
7578 ac_cpp_err=$ac_c_preproc_warn_flag
7585 if test -z "$ac_cpp_err"; then
7586 ac_header_preproc=yes
7588 echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 ac_header_preproc=no
7592 rm -f conftest.err conftest.$ac_ext
7593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7594 echo "${ECHO_T}$ac_header_preproc" >&6
7596 # So? What about this header?
7597 case $ac_header_compiler:$ac_header_preproc in
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7611 echo "$as_me:$LINENO: checking for $ac_header" >&5
7612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 eval "$as_ac_Header=$ac_header_preproc"
7618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7623 cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7629 for ac_header in editline/readline.h
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7641 # Is the header compilable?
7642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7646 #include "confdefs.h"
7647 $ac_includes_default
7648 #include <$ac_header>
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_header_compiler=yes
7664 echo "$as_me: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 ac_header_compiler=no
7668 rm -f conftest.$ac_objext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7670 echo "${ECHO_T}$ac_header_compiler" >&6
7672 # Is the header present?
7673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7675 cat >conftest.$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 #include "confdefs.h"
7678 #include <$ac_header>
7680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7683 egrep -v '^ *\+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } >/dev/null; then
7688 if test -s conftest.err; then
7689 ac_cpp_err=$ac_c_preproc_warn_flag
7696 if test -z "$ac_cpp_err"; then
7697 ac_header_preproc=yes
7699 echo "$as_me: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 ac_header_preproc=no
7703 rm -f conftest.err conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7705 echo "${ECHO_T}$ac_header_preproc" >&6
7707 # So? What about this header?
7708 case $ac_header_compiler:$ac_header_preproc in
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 eval "$as_ac_Header=$ac_header_preproc"
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7740 for ac_header in readline.h
7742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7744 echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7752 # Is the header compilable?
7753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7756 #line $LINENO "configure"
7757 #include "confdefs.h"
7758 $ac_includes_default
7759 #include <$ac_header>
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_header_compiler=yes
7775 echo "$as_me: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7777 ac_header_compiler=no
7779 rm -f conftest.$ac_objext conftest.$ac_ext
7780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7781 echo "${ECHO_T}$ac_header_compiler" >&6
7783 # Is the header present?
7784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7786 cat >conftest.$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7788 #include "confdefs.h"
7789 #include <$ac_header>
7791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7794 egrep -v '^ *\+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } >/dev/null; then
7799 if test -s conftest.err; then
7800 ac_cpp_err=$ac_c_preproc_warn_flag
7807 if test -z "$ac_cpp_err"; then
7808 ac_header_preproc=yes
7810 echo "$as_me: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7812 ac_header_preproc=no
7814 rm -f conftest.err conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7816 echo "${ECHO_T}$ac_header_preproc" >&6
7818 # So? What about this header?
7819 case $ac_header_compiler:$ac_header_preproc in
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7833 echo "$as_me:$LINENO: checking for $ac_header" >&5
7834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 eval "$as_ac_Header=$ac_header_preproc"
7840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7845 cat >>confdefs.h <<_ACEOF
7846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7850 { { echo "$as_me:$LINENO: error: readline header not found
7851 If you have readline already installed, see config.log for details on the
7852 failure. It is possible the compiler isn't looking in the proper directory.
7853 Use --without-readline to disable readline support." >&5
7854 echo "$as_me: error: readline header not found
7855 If you have readline already installed, see config.log for details on the
7856 failure. It is possible the compiler isn't looking in the proper directory.
7857 Use --without-readline to disable readline support." >&2;}
7858 { (exit 1); exit 1; }; }
7872 for ac_header in readline/history.h
7874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876 echo "$as_me:$LINENO: checking for $ac_header" >&5
7877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884 # Is the header compilable?
7885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 #include "confdefs.h"
7890 $ac_includes_default
7891 #include <$ac_header>
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest.$ac_objext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_header_compiler=yes
7907 echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 ac_header_compiler=no
7911 rm -f conftest.$ac_objext conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7913 echo "${ECHO_T}$ac_header_compiler" >&6
7915 # Is the header present?
7916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 #include "confdefs.h"
7921 #include <$ac_header>
7923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7926 egrep -v '^ *\+' conftest.er1 >conftest.err
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } >/dev/null; then
7931 if test -s conftest.err; then
7932 ac_cpp_err=$ac_c_preproc_warn_flag
7939 if test -z "$ac_cpp_err"; then
7940 ac_header_preproc=yes
7942 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7944 ac_header_preproc=no
7946 rm -f conftest.err conftest.$ac_ext
7947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7948 echo "${ECHO_T}$ac_header_preproc" >&6
7950 # So? What about this header?
7951 case $ac_header_compiler:$ac_header_preproc in
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 eval "$as_ac_Header=$ac_header_preproc"
7972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7977 cat >>confdefs.h <<_ACEOF
7978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7983 for ac_header in editline/history.h
7985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7987 echo "$as_me:$LINENO: checking for $ac_header" >&5
7988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7995 # Is the header compilable?
7996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8000 #include "confdefs.h"
8001 $ac_includes_default
8002 #include <$ac_header>
8004 rm -f conftest.$ac_objext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8006 (eval $ac_compile) 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_header_compiler=yes
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 ac_header_compiler=no
8022 rm -f conftest.$ac_objext conftest.$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8024 echo "${ECHO_T}$ac_header_compiler" >&6
8026 # Is the header present?
8027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8031 #include "confdefs.h"
8032 #include <$ac_header>
8034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8037 egrep -v '^ *\+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } >/dev/null; then
8042 if test -s conftest.err; then
8043 ac_cpp_err=$ac_c_preproc_warn_flag
8050 if test -z "$ac_cpp_err"; then
8051 ac_header_preproc=yes
8053 echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 ac_header_preproc=no
8057 rm -f conftest.err conftest.$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8059 echo "${ECHO_T}$ac_header_preproc" >&6
8061 # So? What about this header?
8062 case $ac_header_compiler:$ac_header_preproc in
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 eval "$as_ac_Header=$ac_header_preproc"
8083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088 cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8094 for ac_header in history.h
8096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo "$as_me:$LINENO: checking for $ac_header" >&5
8099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106 # Is the header compilable?
8107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8110 #line $LINENO "configure"
8111 #include "confdefs.h"
8112 $ac_includes_default
8113 #include <$ac_header>
8115 rm -f conftest.$ac_objext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117 (eval $ac_compile) 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -s conftest.$ac_objext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_header_compiler=yes
8129 echo "$as_me: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 ac_header_compiler=no
8133 rm -f conftest.$ac_objext conftest.$ac_ext
8134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8135 echo "${ECHO_T}$ac_header_compiler" >&6
8137 # Is the header present?
8138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line $LINENO "configure"
8142 #include "confdefs.h"
8143 #include <$ac_header>
8145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8148 egrep -v '^ *\+' conftest.er1 >conftest.err
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } >/dev/null; then
8153 if test -s conftest.err; then
8154 ac_cpp_err=$ac_c_preproc_warn_flag
8161 if test -z "$ac_cpp_err"; then
8162 ac_header_preproc=yes
8164 echo "$as_me: failed program was:" >&5
8165 cat conftest.$ac_ext >&5
8166 ac_header_preproc=no
8168 rm -f conftest.err conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170 echo "${ECHO_T}$ac_header_preproc" >&6
8172 # So? What about this header?
8173 case $ac_header_compiler:$ac_header_preproc in
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8187 echo "$as_me:$LINENO: checking for $ac_header" >&5
8188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 eval "$as_ac_Header=$ac_header_preproc"
8194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8199 cat >>confdefs.h <<_ACEOF
8200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8204 { { echo "$as_me:$LINENO: error: history header not found
8205 If you have readline already installed, see config.log for details on the
8206 failure. It is possible the compiler isn't looking in the proper directory.
8207 Use --without-readline to disable readline support." >&5
8208 echo "$as_me: error: history header not found
8209 If you have readline already installed, see config.log for details on the
8210 failure. It is possible the compiler isn't looking in the proper directory.
8211 Use --without-readline to disable readline support." >&2;}
8212 { (exit 1); exit 1; }; }
8227 if test "$with_zlib" = yes; then
8228 if test "${ac_cv_header_zlib_h+set}" = set; then
8229 echo "$as_me:$LINENO: checking for zlib.h" >&5
8230 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8231 if test "${ac_cv_header_zlib_h+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8235 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8237 # Is the header compilable?
8238 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8239 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243 $ac_includes_default
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_header_compiler=yes
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 ac_header_compiler=no
8264 rm -f conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266 echo "${ECHO_T}$ac_header_compiler" >&6
8268 # Is the header present?
8269 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8270 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 #line $LINENO "configure"
8273 #include "confdefs.h"
8276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8279 egrep -v '^ *\+' conftest.er1 >conftest.err
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } >/dev/null; then
8284 if test -s conftest.err; then
8285 ac_cpp_err=$ac_c_preproc_warn_flag
8292 if test -z "$ac_cpp_err"; then
8293 ac_header_preproc=yes
8295 echo "$as_me: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8297 ac_header_preproc=no
8299 rm -f conftest.err conftest.$ac_ext
8300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8301 echo "${ECHO_T}$ac_header_preproc" >&6
8303 # So? What about this header?
8304 case $ac_header_compiler:$ac_header_preproc in
8306 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8307 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8309 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8311 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8312 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8313 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8314 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8316 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8318 echo "$as_me:$LINENO: checking for zlib.h" >&5
8319 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8320 if test "${ac_cv_header_zlib_h+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 ac_cv_header_zlib_h=$ac_header_preproc
8325 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8326 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8329 if test $ac_cv_header_zlib_h = yes; then
8332 { { echo "$as_me:$LINENO: error: zlib header not found
8333 If you have zlib already installed, see config.log for details on the
8334 failure. It is possible the compiler isn't looking in the proper directory.
8335 Use --without-zlib to disable zlib support." >&5
8336 echo "$as_me: error: zlib header not found
8337 If you have zlib already installed, see config.log for details on the
8338 failure. It is possible the compiler isn't looking in the proper directory.
8339 Use --without-zlib to disable zlib support." >&2;}
8340 { (exit 1); exit 1; }; }
8346 if test "$with_krb4" = yes ; then
8347 if test "${ac_cv_header_krb_h+set}" = set; then
8348 echo "$as_me:$LINENO: checking for krb.h" >&5
8349 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8350 if test "${ac_cv_header_krb_h+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8354 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8356 # Is the header compilable?
8357 echo "$as_me:$LINENO: checking krb.h usability" >&5
8358 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8359 cat >conftest.$ac_ext <<_ACEOF
8360 #line $LINENO "configure"
8361 #include "confdefs.h"
8362 $ac_includes_default
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_header_compiler=yes
8379 echo "$as_me: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8381 ac_header_compiler=no
8383 rm -f conftest.$ac_objext conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8385 echo "${ECHO_T}$ac_header_compiler" >&6
8387 # Is the header present?
8388 echo "$as_me:$LINENO: checking krb.h presence" >&5
8389 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 #include "confdefs.h"
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8398 egrep -v '^ *\+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev/null; then
8403 if test -s conftest.err; then
8404 ac_cpp_err=$ac_c_preproc_warn_flag
8411 if test -z "$ac_cpp_err"; then
8412 ac_header_preproc=yes
8414 echo "$as_me: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8416 ac_header_preproc=no
8418 rm -f conftest.err conftest.$ac_ext
8419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8420 echo "${ECHO_T}$ac_header_preproc" >&6
8422 # So? What about this header?
8423 case $ac_header_compiler:$ac_header_preproc in
8425 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8426 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8430 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8431 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8433 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8435 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8437 echo "$as_me:$LINENO: checking for krb.h" >&5
8438 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8439 if test "${ac_cv_header_krb_h+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 ac_cv_header_krb_h=$ac_header_preproc
8444 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8445 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8448 if test $ac_cv_header_krb_h = yes; then
8451 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8452 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8453 { (exit 1); exit 1; }; }
8459 if test "$with_krb5" = yes ; then
8460 if test "${ac_cv_header_krb5_h+set}" = set; then
8461 echo "$as_me:$LINENO: checking for krb5.h" >&5
8462 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8463 if test "${ac_cv_header_krb5_h+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8467 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8469 # Is the header compilable?
8470 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8471 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8474 #include "confdefs.h"
8475 $ac_includes_default
8478 rm -f conftest.$ac_objext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_header_compiler=yes
8492 echo "$as_me: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8494 ac_header_compiler=no
8496 rm -f conftest.$ac_objext conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8498 echo "${ECHO_T}$ac_header_compiler" >&6
8500 # Is the header present?
8501 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8502 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8504 #line $LINENO "configure"
8505 #include "confdefs.h"
8508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8511 egrep -v '^ *\+' conftest.er1 >conftest.err
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } >/dev/null; then
8516 if test -s conftest.err; then
8517 ac_cpp_err=$ac_c_preproc_warn_flag
8524 if test -z "$ac_cpp_err"; then
8525 ac_header_preproc=yes
8527 echo "$as_me: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8529 ac_header_preproc=no
8531 rm -f conftest.err conftest.$ac_ext
8532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8533 echo "${ECHO_T}$ac_header_preproc" >&6
8535 # So? What about this header?
8536 case $ac_header_compiler:$ac_header_preproc in
8538 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8539 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8543 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8544 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8546 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8548 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8550 echo "$as_me:$LINENO: checking for krb5.h" >&5
8551 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8552 if test "${ac_cv_header_krb5_h+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 ac_cv_header_krb5_h=$ac_header_preproc
8557 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8558 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8561 if test $ac_cv_header_krb5_h = yes; then
8564 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8565 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8566 { (exit 1); exit 1; }; }
8570 if test "${ac_cv_header_com_err_h+set}" = set; then
8571 echo "$as_me:$LINENO: checking for com_err.h" >&5
8572 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8573 if test "${ac_cv_header_com_err_h+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8577 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8579 # Is the header compilable?
8580 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8581 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8585 $ac_includes_default
8586 #include <com_err.h>
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590 (eval $ac_compile) 2>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_header_compiler=yes
8602 echo "$as_me: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 ac_header_compiler=no
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6
8610 # Is the header present?
8611 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8612 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 #include "confdefs.h"
8616 #include <com_err.h>
8618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8621 egrep -v '^ *\+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } >/dev/null; then
8626 if test -s conftest.err; then
8627 ac_cpp_err=$ac_c_preproc_warn_flag
8634 if test -z "$ac_cpp_err"; then
8635 ac_header_preproc=yes
8637 echo "$as_me: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 ac_header_preproc=no
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc in
8648 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8653 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8660 echo "$as_me:$LINENO: checking for com_err.h" >&5
8661 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8662 if test "${ac_cv_header_com_err_h+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 ac_cv_header_com_err_h=$ac_header_preproc
8667 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8668 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8671 if test $ac_cv_header_com_err_h = yes; then
8674 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8675 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8676 { (exit 1); exit 1; }; }
8682 if test "$with_openssl" = yes ; then
8683 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8684 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8685 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8686 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8690 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8692 # Is the header compilable?
8693 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8694 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8695 cat >conftest.$ac_ext <<_ACEOF
8696 #line $LINENO "configure"
8697 #include "confdefs.h"
8698 $ac_includes_default
8699 #include <openssl/ssl.h>
8701 rm -f conftest.$ac_objext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703 (eval $ac_compile) 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_header_compiler=yes
8715 echo "$as_me: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 ac_header_compiler=no
8719 rm -f conftest.$ac_objext conftest.$ac_ext
8720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8721 echo "${ECHO_T}$ac_header_compiler" >&6
8723 # Is the header present?
8724 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8725 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line $LINENO "configure"
8728 #include "confdefs.h"
8729 #include <openssl/ssl.h>
8731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8734 egrep -v '^ *\+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } >/dev/null; then
8739 if test -s conftest.err; then
8740 ac_cpp_err=$ac_c_preproc_warn_flag
8747 if test -z "$ac_cpp_err"; then
8748 ac_header_preproc=yes
8750 echo "$as_me: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8752 ac_header_preproc=no
8754 rm -f conftest.err conftest.$ac_ext
8755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8756 echo "${ECHO_T}$ac_header_preproc" >&6
8758 # So? What about this header?
8759 case $ac_header_compiler:$ac_header_preproc in
8761 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8762 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8764 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8766 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8767 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8769 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8773 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8774 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8775 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8780 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8781 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8784 if test $ac_cv_header_openssl_ssl_h = yes; then
8787 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8788 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8789 { (exit 1); exit 1; }; }
8793 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8794 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8795 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8796 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8800 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8802 # Is the header compilable?
8803 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8804 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 #include "confdefs.h"
8808 $ac_includes_default
8809 #include <openssl/err.h>
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_header_compiler=yes
8825 echo "$as_me: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 ac_header_compiler=no
8829 rm -f conftest.$ac_objext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8831 echo "${ECHO_T}$ac_header_compiler" >&6
8833 # Is the header present?
8834 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8835 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 #include <openssl/err.h>
8841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8844 egrep -v '^ *\+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } >/dev/null; then
8849 if test -s conftest.err; then
8850 ac_cpp_err=$ac_c_preproc_warn_flag
8857 if test -z "$ac_cpp_err"; then
8858 ac_header_preproc=yes
8860 echo "$as_me: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 ac_header_preproc=no
8864 rm -f conftest.err conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866 echo "${ECHO_T}$ac_header_preproc" >&6
8868 # So? What about this header?
8869 case $ac_header_compiler:$ac_header_preproc in
8871 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8872 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8874 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8876 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8883 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8884 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8885 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 ac_cv_header_openssl_err_h=$ac_header_preproc
8890 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8891 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8894 if test $ac_cv_header_openssl_err_h = yes; then
8897 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8898 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8899 { (exit 1); exit 1; }; }
8905 if test "$with_pam" = yes ; then
8907 for ac_header in security/pam_appl.h
8909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8911 echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8919 # Is the header compilable?
8920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8922 cat >conftest.$ac_ext <<_ACEOF
8923 #line $LINENO "configure"
8924 #include "confdefs.h"
8925 $ac_includes_default
8926 #include <$ac_header>
8928 rm -f conftest.$ac_objext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8930 (eval $ac_compile) 2>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_header_compiler=yes
8942 echo "$as_me: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8944 ac_header_compiler=no
8946 rm -f conftest.$ac_objext conftest.$ac_ext
8947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8948 echo "${ECHO_T}$ac_header_compiler" >&6
8950 # Is the header present?
8951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8953 cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8955 #include "confdefs.h"
8956 #include <$ac_header>
8958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8961 egrep -v '^ *\+' conftest.er1 >conftest.err
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } >/dev/null; then
8966 if test -s conftest.err; then
8967 ac_cpp_err=$ac_c_preproc_warn_flag
8974 if test -z "$ac_cpp_err"; then
8975 ac_header_preproc=yes
8977 echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8979 ac_header_preproc=no
8981 rm -f conftest.err conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983 echo "${ECHO_T}$ac_header_preproc" >&6
8985 # So? What about this header?
8986 case $ac_header_compiler:$ac_header_preproc in
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9000 echo "$as_me:$LINENO: checking for $ac_header" >&5
9001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 eval "$as_ac_Header=$ac_header_preproc"
9007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9012 cat >>confdefs.h <<_ACEOF
9013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018 for ac_header in pam/pam_appl.h
9020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022 echo "$as_me:$LINENO: checking for $ac_header" >&5
9023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9030 # Is the header compilable?
9031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 #include "confdefs.h"
9036 $ac_includes_default
9037 #include <$ac_header>
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_header_compiler=yes
9053 echo "$as_me: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9055 ac_header_compiler=no
9057 rm -f conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9059 echo "${ECHO_T}$ac_header_compiler" >&6
9061 # Is the header present?
9062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9067 #include <$ac_header>
9069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9072 egrep -v '^ *\+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } >/dev/null; then
9077 if test -s conftest.err; then
9078 ac_cpp_err=$ac_c_preproc_warn_flag
9085 if test -z "$ac_cpp_err"; then
9086 ac_header_preproc=yes
9088 echo "$as_me: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 ac_header_preproc=no
9092 rm -f conftest.err conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9094 echo "${ECHO_T}$ac_header_preproc" >&6
9096 # So? What about this header?
9097 case $ac_header_compiler:$ac_header_preproc in
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9111 echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 eval "$as_ac_Header=$ac_header_preproc"
9118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9128 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9129 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9130 { (exit 1); exit 1; }; }
9141 if test "$with_rendezvous" = yes ; then
9142 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9143 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9144 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9145 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9149 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9151 # Is the header compilable?
9152 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9153 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9155 #line $LINENO "configure"
9156 #include "confdefs.h"
9157 $ac_includes_default
9158 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9160 rm -f conftest.$ac_objext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162 (eval $ac_compile) 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -s conftest.$ac_objext'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 ac_header_compiler=yes
9174 echo "$as_me: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 ac_header_compiler=no
9178 rm -f conftest.$ac_objext conftest.$ac_ext
9179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9180 echo "${ECHO_T}$ac_header_compiler" >&6
9182 # Is the header present?
9183 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9184 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9186 #line $LINENO "configure"
9187 #include "confdefs.h"
9188 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9193 egrep -v '^ *\+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } >/dev/null; then
9198 if test -s conftest.err; then
9199 ac_cpp_err=$ac_c_preproc_warn_flag
9206 if test -z "$ac_cpp_err"; then
9207 ac_header_preproc=yes
9209 echo "$as_me: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9211 ac_header_preproc=no
9213 rm -f conftest.err conftest.$ac_ext
9214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9215 echo "${ECHO_T}$ac_header_preproc" >&6
9217 # So? What about this header?
9218 case $ac_header_compiler:$ac_header_preproc in
9220 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9221 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9223 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9225 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9226 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9228 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9230 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9232 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9233 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9234 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9239 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9240 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9243 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9246 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9247 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9248 { (exit 1); exit 1; }; }
9256 ## Types, structures, compiler characteristics
9260 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9261 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9262 if test "${ac_cv_c_const+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"
9269 #ifdef F77_DUMMY_MAIN
9273 int F77_DUMMY_MAIN() { return 1; }
9278 /* FIXME: Include the comments suggested by Paul. */
9280 /* Ultrix mips cc rejects this. */
9281 typedef int charset[2];
9283 /* SunOS 4.1.1 cc rejects this. */
9284 char const *const *ccp;
9286 /* NEC SVR4.0.2 mips cc rejects this. */
9287 struct point {int x, y;};
9288 static struct point const zero = {0,0};
9289 /* AIX XL C 1.02.0.0 rejects this.
9290 It does not let you subtract one const X* pointer from another in
9291 an arm of an if-expression whose if-part is not a constant
9293 const char *g = "string";
9294 ccp = &g + (g ? g-g : 0);
9295 /* HPUX 7.0 cc rejects these. */
9298 ccp = (char const *const *) p;
9299 { /* SCO 3.2v4 cc rejects this. */
9301 char const *s = 0 ? (char *) 0 : (char const *) 0;
9305 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9307 const int *foo = &x[0];
9310 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9311 typedef const int *iptr;
9315 { /* AIX XL C 1.02.0.0 rejects this saying
9316 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9317 struct s { int j; const int *ap[3]; };
9318 struct s *b; b->j = 5;
9320 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9329 rm -f conftest.$ac_objext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9331 (eval $ac_compile) 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -s conftest.$ac_objext'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9343 echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9347 rm -f conftest.$ac_objext conftest.$ac_ext
9349 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9350 echo "${ECHO_T}$ac_cv_c_const" >&6
9351 if test $ac_cv_c_const = no; then
9353 cat >>confdefs.h <<\_ACEOF
9359 echo "$as_me:$LINENO: checking for inline" >&5
9360 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9361 if test "${ac_cv_c_inline+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 for ac_kw in inline __inline__ __inline; do
9366 cat >conftest.$ac_ext <<_ACEOF
9367 #line $LINENO "configure"
9368 #include "confdefs.h"
9370 static $ac_kw int static_foo () {return 0; }
9371 $ac_kw int foo () {return 0; }
9375 rm -f conftest.$ac_objext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9377 (eval $ac_compile) 2>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_cv_c_inline=$ac_kw; break
9389 echo "$as_me: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9392 rm -f conftest.$ac_objext conftest.$ac_ext
9396 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9397 echo "${ECHO_T}$ac_cv_c_inline" >&6
9398 case $ac_cv_c_inline in
9401 cat >>confdefs.h <<\_ACEOF
9405 *) cat >>confdefs.h <<_ACEOF
9406 #define inline $ac_cv_c_inline
9411 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9412 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9413 if test "${ac_cv_c_stringize+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.$ac_ext <<_ACEOF
9417 #line $LINENO "configure"
9418 #include "confdefs.h"
9421 char *s = x(teststring);
9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9424 egrep "#teststring" >/dev/null 2>&1; then
9425 ac_cv_c_stringize=no
9427 ac_cv_c_stringize=yes
9432 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9433 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9434 if test $ac_cv_c_stringize = yes; then
9436 cat >>confdefs.h <<\_ACEOF
9437 #define HAVE_STRINGIZE 1
9442 echo "$as_me:$LINENO: checking for signed types" >&5
9443 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9444 if test "${pgac_cv_c_signed+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 cat >conftest.$ac_ext <<_ACEOF
9448 #line $LINENO "configure"
9449 #include "confdefs.h"
9451 #ifdef F77_DUMMY_MAIN
9455 int F77_DUMMY_MAIN() { return 1; }
9460 signed char c; signed short s; signed int i;
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 pgac_cv_c_signed=yes
9479 echo "$as_me: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9483 rm -f conftest.$ac_objext conftest.$ac_ext
9485 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9486 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9487 if test x"$pgac_cv_c_signed" = xno ; then
9489 cat >>confdefs.h <<\_ACEOF
9494 echo "$as_me:$LINENO: checking for working volatile" >&5
9495 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9496 if test "${ac_cv_c_volatile+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9501 #include "confdefs.h"
9503 #ifdef F77_DUMMY_MAIN
9507 int F77_DUMMY_MAIN() { return 1; }
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -s conftest.$ac_objext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_c_volatile=yes
9533 echo "$as_me: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9537 rm -f conftest.$ac_objext conftest.$ac_ext
9539 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9540 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9541 if test $ac_cv_c_volatile = no; then
9543 cat >>confdefs.h <<\_ACEOF
9549 echo "$as_me:$LINENO: checking for __func__" >&5
9550 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9551 if test "${pgac_cv_funcname_func_support+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 #include "confdefs.h"
9558 #ifdef F77_DUMMY_MAIN
9562 int F77_DUMMY_MAIN() { return 1; }
9567 printf("%s\n", __func__);
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574 (eval $ac_compile) 2>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 pgac_cv_funcname_func_support=yes
9586 echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 pgac_cv_funcname_func_support=no
9590 rm -f conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9593 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9594 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_FUNCNAME__FUNC 1
9601 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9602 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9603 if test "${pgac_cv_funcname_function_support+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9608 #include "confdefs.h"
9610 #ifdef F77_DUMMY_MAIN
9614 int F77_DUMMY_MAIN() { return 1; }
9619 printf("%s\n", __FUNCTION__);
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -s conftest.$ac_objext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 pgac_cv_funcname_function_support=yes
9638 echo "$as_me: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9640 pgac_cv_funcname_function_support=no
9642 rm -f conftest.$ac_objext conftest.$ac_ext
9644 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9645 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9646 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9648 cat >>confdefs.h <<\_ACEOF
9649 #define HAVE_FUNCNAME__FUNCTION 1
9654 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9655 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9656 if test "${ac_cv_struct_tm+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 cat >conftest.$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9661 #include "confdefs.h"
9662 #include <sys/types.h>
9665 #ifdef F77_DUMMY_MAIN
9669 int F77_DUMMY_MAIN() { return 1; }
9674 struct tm *tp; tp->tm_sec;
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681 (eval $ac_compile) 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_struct_tm=time.h
9693 echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 ac_cv_struct_tm=sys/time.h
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9700 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9701 if test $ac_cv_struct_tm = sys/time.h; then
9703 cat >>confdefs.h <<\_ACEOF
9704 #define TM_IN_SYS_TIME 1
9709 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9710 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9711 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 #include "confdefs.h"
9717 #include <sys/types.h>
9718 #include <$ac_cv_struct_tm>
9721 #ifdef F77_DUMMY_MAIN
9725 int F77_DUMMY_MAIN() { return 1; }
9730 static struct tm ac_aggr;
9731 if (ac_aggr.tm_zone)
9737 rm -f conftest.$ac_objext
9738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9739 (eval $ac_compile) 2>&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -s conftest.$ac_objext'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
9749 ac_cv_member_struct_tm_tm_zone=yes
9751 echo "$as_me: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9753 ac_cv_member_struct_tm_tm_zone=no
9755 rm -f conftest.$ac_objext conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9758 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9759 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9761 cat >>confdefs.h <<_ACEOF
9762 #define HAVE_STRUCT_TM_TM_ZONE 1
9768 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_TM_ZONE 1
9775 echo "$as_me:$LINENO: checking for tzname" >&5
9776 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9777 if test "${ac_cv_var_tzname+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 #include "confdefs.h"
9784 #ifndef tzname /* For SGI. */
9785 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9788 #ifdef F77_DUMMY_MAIN
9792 int F77_DUMMY_MAIN() { return 1; }
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804 (eval $ac_link) 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_var_tzname=yes
9816 echo "$as_me: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9822 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9823 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9824 if test $ac_cv_var_tzname = yes; then
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_TZNAME 1
9832 echo "$as_me:$LINENO: checking for union semun" >&5
9833 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9834 if test "${ac_cv_type_union_semun+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 cat >conftest.$ac_ext <<_ACEOF
9838 #line $LINENO "configure"
9839 #include "confdefs.h"
9840 #include <sys/types.h>
9841 #include <sys/ipc.h>
9842 #include <sys/sem.h>
9844 #ifdef F77_DUMMY_MAIN
9848 int F77_DUMMY_MAIN() { return 1; }
9853 if ((union semun *) 0)
9855 if (sizeof (union semun))
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863 (eval $ac_compile) 2>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_cv_type_union_semun=yes
9875 echo "$as_me: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 ac_cv_type_union_semun=no
9879 rm -f conftest.$ac_objext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9882 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9883 if test $ac_cv_type_union_semun = yes; then
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_UNION_SEMUN 1
9892 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9893 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9894 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 cat >conftest.$ac_ext <<_ACEOF
9898 #line $LINENO "configure"
9899 #include "confdefs.h"
9900 #include <sys/types.h>
9901 #ifdef HAVE_SYS_UN_H
9906 #ifdef F77_DUMMY_MAIN
9910 int F77_DUMMY_MAIN() { return 1; }
9915 if ((struct sockaddr_un *) 0)
9917 if (sizeof (struct sockaddr_un))
9923 rm -f conftest.$ac_objext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_type_struct_sockaddr_un=yes
9937 echo "$as_me: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 ac_cv_type_struct_sockaddr_un=no
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9943 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9944 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9945 if test $ac_cv_type_struct_sockaddr_un = yes; then
9947 cat >>confdefs.h <<_ACEOF
9948 #define HAVE_STRUCT_SOCKADDR_UN 1
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_UNIX_SOCKETS 1
9958 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9959 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9960 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9965 #include "confdefs.h"
9966 #include <sys/types.h>
9967 #ifdef HAVE_SYS_SOCKET_H
9968 #include <sys/socket.h>
9972 #ifdef F77_DUMMY_MAIN
9976 int F77_DUMMY_MAIN() { return 1; }
9981 if ((struct sockaddr_storage *) 0)
9983 if (sizeof (struct sockaddr_storage))
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991 (eval $ac_compile) 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -s conftest.$ac_objext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_cv_type_struct_sockaddr_storage=yes
10003 echo "$as_me: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 ac_cv_type_struct_sockaddr_storage=no
10007 rm -f conftest.$ac_objext conftest.$ac_ext
10009 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10010 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10011 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10020 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10021 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10022 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 #include <sys/types.h>
10029 #include <sys/socket.h>
10033 #ifdef F77_DUMMY_MAIN
10034 # ifdef __cplusplus
10037 int F77_DUMMY_MAIN() { return 1; }
10042 if ((struct addrinfo *) 0)
10044 if (sizeof (struct addrinfo))
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052 (eval $ac_compile) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest.$ac_objext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_type_struct_addrinfo=yes
10064 echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 ac_cv_type_struct_addrinfo=no
10068 rm -f conftest.$ac_objext conftest.$ac_ext
10070 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10071 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10072 if test $ac_cv_type_struct_addrinfo = yes; then
10074 cat >>confdefs.h <<_ACEOF
10075 #define HAVE_STRUCT_ADDRINFO 1
10082 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10083 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10084 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 #include "confdefs.h"
10090 #include <sys/param.h>
10091 #include <sys/types.h>
10092 #include <sys/socket.h>
10093 #include <sys/ucred.h>
10095 #ifdef F77_DUMMY_MAIN
10096 # ifdef __cplusplus
10099 int F77_DUMMY_MAIN() { return 1; }
10104 if ((struct cmsgcred *) 0)
10106 if (sizeof (struct cmsgcred))
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest.$ac_objext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_type_struct_cmsgcred=yes
10126 echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_type_struct_cmsgcred=no
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10133 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10134 if test $ac_cv_type_struct_cmsgcred = yes; then
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_STRUCT_CMSGCRED 1
10142 echo "$as_me:$LINENO: checking for struct fcred" >&5
10143 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10144 if test "${ac_cv_type_struct_fcred+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <sys/param.h>
10151 #include <sys/types.h>
10152 #include <sys/socket.h>
10153 #include <sys/ucred.h>
10155 #ifdef F77_DUMMY_MAIN
10156 # ifdef __cplusplus
10159 int F77_DUMMY_MAIN() { return 1; }
10164 if ((struct fcred *) 0)
10166 if (sizeof (struct fcred))
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_type_struct_fcred=yes
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_type_struct_fcred=no
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10193 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10194 if test $ac_cv_type_struct_fcred = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_STRUCT_FCRED 1
10202 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10203 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10204 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <sys/param.h>
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10213 #include <sys/ucred.h>
10215 #ifdef F77_DUMMY_MAIN
10216 # ifdef __cplusplus
10219 int F77_DUMMY_MAIN() { return 1; }
10224 if ((struct sockcred *) 0)
10226 if (sizeof (struct sockcred))
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_type_struct_sockcred=yes
10246 echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_type_struct_sockcred=no
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10253 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10254 if test $ac_cv_type_struct_sockcred = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_STRUCT_SOCKCRED 1
10264 if test "$with_zlib" = yes; then
10265 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10266 # did not). While we could work around the lack of z_streamp, it
10267 # seems unwise to encourage people to use such old zlib versions...
10268 echo "$as_me:$LINENO: checking for z_streamp" >&5
10269 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10270 if test "${ac_cv_type_z_streamp+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 #include "confdefs.h"
10278 #ifdef F77_DUMMY_MAIN
10279 # ifdef __cplusplus
10282 int F77_DUMMY_MAIN() { return 1; }
10287 if ((z_streamp *) 0)
10289 if (sizeof (z_streamp))
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_type_z_streamp=yes
10309 echo "$as_me: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10311 ac_cv_type_z_streamp=no
10313 rm -f conftest.$ac_objext conftest.$ac_ext
10315 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10316 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10317 if test $ac_cv_type_z_streamp = yes; then
10320 { { echo "$as_me:$LINENO: error: zlib version is too old
10321 Use --without-zlib to disable zlib support." >&5
10322 echo "$as_me: error: zlib version is too old
10323 Use --without-zlib to disable zlib support." >&2;}
10324 { (exit 1); exit 1; }; }
10329 if test "$with_krb5" = yes; then
10330 # Check for differences between MIT and Heimdal (KTH) releases
10331 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10332 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10333 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 cat >conftest.$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10338 #include "confdefs.h"
10341 #ifdef F77_DUMMY_MAIN
10342 # ifdef __cplusplus
10345 int F77_DUMMY_MAIN() { return 1; }
10350 static krb5_ticket ac_aggr;
10351 if (ac_aggr.enc_part2)
10357 rm -f conftest.$ac_objext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359 (eval $ac_compile) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -s conftest.$ac_objext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_member_krb5_ticket_enc_part2=yes
10371 echo "$as_me: failed program was:" >&5
10372 cat conftest.$ac_ext >&5
10373 ac_cv_member_krb5_ticket_enc_part2=no
10375 rm -f conftest.$ac_objext conftest.$ac_ext
10377 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10378 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10379 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10381 cat >>confdefs.h <<_ACEOF
10382 #define HAVE_KRB5_TICKET_ENC_PART2 1
10387 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10388 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10389 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 #include "confdefs.h"
10397 #ifdef F77_DUMMY_MAIN
10398 # ifdef __cplusplus
10401 int F77_DUMMY_MAIN() { return 1; }
10406 static krb5_ticket ac_aggr;
10407 if (ac_aggr.client)
10413 rm -f conftest.$ac_objext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } &&
10419 { ac_try='test -s conftest.$ac_objext'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_member_krb5_ticket_client=yes
10427 echo "$as_me: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 ac_cv_member_krb5_ticket_client=no
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10433 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10434 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10435 if test $ac_cv_member_krb5_ticket_client = yes; then
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_KRB5_TICKET_CLIENT 1
10443 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10444 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10445 { (exit 1); exit 1; }; }
10450 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10451 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10452 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 #include "confdefs.h"
10460 #ifdef F77_DUMMY_MAIN
10461 # ifdef __cplusplus
10464 int F77_DUMMY_MAIN() { return 1; }
10469 static krb5_error ac_aggr;
10470 if (ac_aggr.text.data)
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_member_krb5_error_text_data=yes
10490 echo "$as_me: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 ac_cv_member_krb5_error_text_data=no
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10497 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10498 if test $ac_cv_member_krb5_error_text_data = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10506 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10507 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10508 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 cat >conftest.$ac_ext <<_ACEOF
10512 #line $LINENO "configure"
10513 #include "confdefs.h"
10516 #ifdef F77_DUMMY_MAIN
10517 # ifdef __cplusplus
10520 int F77_DUMMY_MAIN() { return 1; }
10525 static krb5_error ac_aggr;
10526 if (ac_aggr.e_data)
10532 rm -f conftest.$ac_objext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10534 (eval $ac_compile) 2>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -s conftest.$ac_objext'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_member_krb5_error_e_data=yes
10546 echo "$as_me: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 ac_cv_member_krb5_error_e_data=no
10550 rm -f conftest.$ac_objext conftest.$ac_ext
10552 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10553 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10554 if test $ac_cv_member_krb5_error_e_data = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_KRB5_ERROR_E_DATA 1
10562 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10563 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10564 { (exit 1); exit 1; }; }
10573 ## Functions, global variables
10576 echo "$as_me:$LINENO: checking for int timezone" >&5
10577 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10578 if test "${pgac_cv_var_int_timezone+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10586 #ifdef F77_DUMMY_MAIN
10587 # ifdef __cplusplus
10590 int F77_DUMMY_MAIN() { return 1; }
10595 res = timezone / 60;
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 pgac_cv_var_int_timezone=yes
10614 echo "$as_me: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 pgac_cv_var_int_timezone=no
10618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10621 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10622 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_INT_TIMEZONE
10629 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10630 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10631 if test "${ac_cv_func_accept_arg1+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 if test "${ac_cv_func_accept_arg2+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 if test "${ac_cv_func_accept_arg3+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10641 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10642 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10645 #include "confdefs.h"
10646 #ifdef HAVE_SYS_TYPES_H
10647 #include <sys/types.h>
10649 #ifdef HAVE_SYS_SOCKET_H
10650 #include <sys/socket.h>
10652 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10653 #ifdef F77_DUMMY_MAIN
10654 # ifdef __cplusplus
10657 int F77_DUMMY_MAIN() { return 1; }
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_not_found=no; break 3
10681 echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10685 rm -f conftest.$ac_objext conftest.$ac_ext
10689 if test "$ac_not_found" = yes; then
10690 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10691 echo "$as_me: error: could not determine argument types" >&2;}
10692 { (exit 1); exit 1; }; }
10694 if test "$ac_cv_func_accept_arg3" = "void"; then
10695 ac_cv_func_accept_arg3=int
10703 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10704 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10706 cat >>confdefs.h <<_ACEOF
10707 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10711 cat >>confdefs.h <<_ACEOF
10712 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10716 cat >>confdefs.h <<_ACEOF
10717 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10721 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10722 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10723 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10728 #include "confdefs.h"
10729 #include <sys/time.h>
10730 #ifdef F77_DUMMY_MAIN
10731 # ifdef __cplusplus
10734 int F77_DUMMY_MAIN() { return 1; }
10739 struct timeval *tp;
10740 struct timezone *tzp;
10741 gettimeofday(tp,tzp);
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 pgac_cv_func_gettimeofday_1arg=no
10760 echo "$as_me: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 pgac_cv_func_gettimeofday_1arg=yes
10764 rm -f conftest.$ac_objext conftest.$ac_ext
10766 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10767 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10768 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10770 cat >>confdefs.h <<\_ACEOF
10771 #define GETTIMEOFDAY_1ARG
10778 # SunOS doesn't handle negative byte comparisons properly with +/- return
10779 echo "$as_me:$LINENO: checking for working memcmp" >&5
10780 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10781 if test "${ac_cv_func_memcmp_working+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 if test "$cross_compiling" = yes; then
10785 ac_cv_func_memcmp_working=no
10787 cat >conftest.$ac_ext <<_ACEOF
10788 #line $LINENO "configure"
10789 #include "confdefs.h"
10791 #ifdef F77_DUMMY_MAIN
10792 # ifdef __cplusplus
10795 int F77_DUMMY_MAIN() { return 1; }
10801 /* Some versions of memcmp are not 8-bit clean. */
10802 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10803 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10806 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10807 or more and with at least one buffer not starting on a 4-byte boundary.
10808 William Lewis provided this test program. */
10813 for (i = 0; i < 4; i++)
10817 strcpy (a, "--------01111111");
10818 strcpy (b, "--------10000000");
10819 if (memcmp (a, b, 16) >= 0)
10829 rm -f conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_cv_func_memcmp_working=yes
10842 echo "$as_me: program exited with status $ac_status" >&5
10843 echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 ( exit $ac_status )
10846 ac_cv_func_memcmp_working=no
10848 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10851 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10852 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10853 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10872 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 echo "$as_me:$LINENO: checking for $ac_func" >&5
10876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10877 if eval "test \"\${$as_ac_var+set}\" = set"; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func (); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10895 #ifdef F77_DUMMY_MAIN
10896 # ifdef __cplusplus
10899 int F77_DUMMY_MAIN() { return 1; }
10904 /* The GNU C library defines this for functions which it implements
10905 to always fail with ENOSYS. Some functions are actually named
10906 something starting with __ and the normal name is an alias. */
10907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10917 rm -f conftest.$ac_objext conftest$ac_exeext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10919 (eval $ac_link) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -s conftest$ac_exeext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 eval "$as_ac_var=yes"
10931 echo "$as_me: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 eval "$as_ac_var=no"
10935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10939 if test `eval echo '${'$as_ac_var'}'` = yes; then
10940 cat >>confdefs.h <<_ACEOF
10941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10948 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10949 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10950 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 cat >conftest.$ac_ext <<_ACEOF
10954 #line $LINENO "configure"
10955 #include "confdefs.h"
10956 #include <unistd.h>
10958 #ifdef F77_DUMMY_MAIN
10959 # ifdef __cplusplus
10962 int F77_DUMMY_MAIN() { return 1; }
10968 char *p = (char *) fdatasync;
10975 rm -f conftest.$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -s conftest.$ac_objext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_cv_have_decl_fdatasync=yes
10989 echo "$as_me: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10991 ac_cv_have_decl_fdatasync=no
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10995 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10996 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10997 if test $ac_cv_have_decl_fdatasync = yes; then
10999 cat >>confdefs.h <<_ACEOF
11000 #define HAVE_DECL_FDATASYNC 1
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_DECL_FDATASYNC 0
11014 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11015 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11016 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11020 #line $LINENO "configure"
11021 #include "confdefs.h"
11022 $ac_includes_default
11023 #include <netinet/in.h>
11025 #ifdef F77_DUMMY_MAIN
11026 # ifdef __cplusplus
11029 int F77_DUMMY_MAIN() { return 1; }
11034 if ((struct sockaddr_in6 *) 0)
11036 if (sizeof (struct sockaddr_in6))
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try='test -s conftest.$ac_objext'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 ac_cv_type_struct_sockaddr_in6=yes
11056 echo "$as_me: failed program was:" >&5
11057 cat conftest.$ac_ext >&5
11058 ac_cv_type_struct_sockaddr_in6=no
11060 rm -f conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11063 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11064 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11065 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11066 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11067 if test "${ac_cv_func_inet_ntop+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11072 #include "confdefs.h"
11073 /* System header to define __stub macros and hopefully few prototypes,
11074 which can conflict with char inet_ntop (); below. */
11075 #include <assert.h>
11076 /* Override any gcc2 internal prototype to avoid an error. */
11080 /* We use char because int might match the return type of a gcc2
11081 builtin and then its argument prototype would still apply. */
11085 #ifdef F77_DUMMY_MAIN
11086 # ifdef __cplusplus
11089 int F77_DUMMY_MAIN() { return 1; }
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_func_inet_ntop=yes
11121 echo "$as_me: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11123 ac_cv_func_inet_ntop=no
11125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11127 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11128 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11129 if test $ac_cv_func_inet_ntop = yes; then
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_IPV6 1
11140 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11141 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11142 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 #include "confdefs.h"
11148 #include <machine/vmparam.h>
11149 #include <sys/exec.h>
11151 #ifdef F77_DUMMY_MAIN
11152 # ifdef __cplusplus
11155 int F77_DUMMY_MAIN() { return 1; }
11160 PS_STRINGS->ps_nargvstr = 1;
11161 PS_STRINGS->ps_argvstr = "foo";
11166 rm -f conftest.$ac_objext conftest$ac_exeext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11168 (eval $ac_link) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -s conftest$ac_exeext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 pgac_cv_var_PS_STRINGS=yes
11180 echo "$as_me: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11182 pgac_cv_var_PS_STRINGS=no
11184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11187 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11188 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11190 cat >>confdefs.h <<\_ACEOF
11191 #define HAVE_PS_STRINGS
11197 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11198 # is missing. Yes, there are machines that have only one. We may
11199 # also decide to use snprintf.c if snprintf() is present but does not
11200 # have working "long long int" support -- see below.
11202 pgac_need_repl_snprintf=no
11204 for ac_func in snprintf
11206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11207 echo "$as_me:$LINENO: checking for $ac_func" >&5
11208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11209 if eval "test \"\${$as_ac_var+set}\" = set"; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11214 #include "confdefs.h"
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below. */
11217 #include <assert.h>
11218 /* Override any gcc2 internal prototype to avoid an error. */
11222 /* We use char because int might match the return type of a gcc2
11223 builtin and then its argument prototype would still apply. */
11227 #ifdef F77_DUMMY_MAIN
11228 # ifdef __cplusplus
11231 int F77_DUMMY_MAIN() { return 1; }
11236 /* The GNU C library defines this for functions which it implements
11237 to always fail with ENOSYS. Some functions are actually named
11238 something starting with __ and the normal name is an alias. */
11239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 eval "$as_ac_var=yes"
11263 echo "$as_me: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272 cat >>confdefs.h <<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 pgac_need_repl_snprintf=yes
11282 for ac_func in vsnprintf
11284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11285 echo "$as_me:$LINENO: checking for $ac_func" >&5
11286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11287 if eval "test \"\${$as_ac_var+set}\" = set"; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 cat >conftest.$ac_ext <<_ACEOF
11291 #line $LINENO "configure"
11292 #include "confdefs.h"
11293 /* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char $ac_func (); below. */
11295 #include <assert.h>
11296 /* Override any gcc2 internal prototype to avoid an error. */
11300 /* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11305 #ifdef F77_DUMMY_MAIN
11306 # ifdef __cplusplus
11309 int F77_DUMMY_MAIN() { return 1; }
11314 /* The GNU C library defines this for functions which it implements
11315 to always fail with ENOSYS. Some functions are actually named
11316 something starting with __ and the normal name is an alias. */
11317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11329 (eval $ac_link) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 eval "$as_ac_var=yes"
11341 echo "$as_me: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11343 eval "$as_ac_var=no"
11345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11349 if test `eval echo '${'$as_ac_var'}'` = yes; then
11350 cat >>confdefs.h <<_ACEOF
11351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11355 pgac_need_repl_snprintf=yes
11361 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11362 # include/c.h will provide declarations. Note this is a separate test
11363 # from whether the functions exist in the C library --- there are
11364 # systems that have the functions but don't bother to declare them :-(
11366 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11367 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11368 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 cat >conftest.$ac_ext <<_ACEOF
11372 #line $LINENO "configure"
11373 #include "confdefs.h"
11374 $ac_includes_default
11375 #ifdef F77_DUMMY_MAIN
11376 # ifdef __cplusplus
11379 int F77_DUMMY_MAIN() { return 1; }
11385 char *p = (char *) snprintf;
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_cv_have_decl_snprintf=yes
11406 echo "$as_me: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11408 ac_cv_have_decl_snprintf=no
11410 rm -f conftest.$ac_objext conftest.$ac_ext
11412 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11413 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11414 if test $ac_cv_have_decl_snprintf = yes; then
11416 cat >>confdefs.h <<_ACEOF
11417 #define HAVE_DECL_SNPRINTF 1
11422 cat >>confdefs.h <<_ACEOF
11423 #define HAVE_DECL_SNPRINTF 0
11428 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11429 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11430 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 #include "confdefs.h"
11436 $ac_includes_default
11437 #ifdef F77_DUMMY_MAIN
11438 # ifdef __cplusplus
11441 int F77_DUMMY_MAIN() { return 1; }
11447 char *p = (char *) vsnprintf;
11454 rm -f conftest.$ac_objext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456 (eval $ac_compile) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -s conftest.$ac_objext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_cv_have_decl_vsnprintf=yes
11468 echo "$as_me: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11470 ac_cv_have_decl_vsnprintf=no
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11474 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11475 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11476 if test $ac_cv_have_decl_vsnprintf = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define HAVE_DECL_VSNPRINTF 1
11484 cat >>confdefs.h <<_ACEOF
11485 #define HAVE_DECL_VSNPRINTF 0
11494 # do this one the hard way in case isinf() is a macro
11495 echo "$as_me:$LINENO: checking for isinf" >&5
11496 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11497 if test "${ac_cv_func_isinf+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11501 #line $LINENO "configure"
11502 #include "confdefs.h"
11505 #ifdef F77_DUMMY_MAIN
11506 # ifdef __cplusplus
11509 int F77_DUMMY_MAIN() { return 1; }
11514 double x = 0.0; int res = isinf(x);
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_func_isinf=yes
11533 echo "$as_me: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 ac_cv_func_isinf=no
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11539 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11540 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11542 if test $ac_cv_func_isinf = yes ; then
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_ISINF 1
11549 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11550 # Look for a way to implement a substitute for isinf()
11555 for ac_func in fpclass fp_class fp_class_d class
11557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558 echo "$as_me:$LINENO: checking for $ac_func" >&5
11559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11560 if eval "test \"\${$as_ac_var+set}\" = set"; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11564 #line $LINENO "configure"
11565 #include "confdefs.h"
11566 /* System header to define __stub macros and hopefully few prototypes,
11567 which can conflict with char $ac_func (); below. */
11568 #include <assert.h>
11569 /* Override any gcc2 internal prototype to avoid an error. */
11573 /* We use char because int might match the return type of a gcc2
11574 builtin and then its argument prototype would still apply. */
11578 #ifdef F77_DUMMY_MAIN
11579 # ifdef __cplusplus
11582 int F77_DUMMY_MAIN() { return 1; }
11587 /* The GNU C library defines this for functions which it implements
11588 to always fail with ENOSYS. Some functions are actually named
11589 something starting with __ and the normal name is an alias. */
11590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11602 (eval $ac_link) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -s conftest$ac_exeext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 eval "$as_ac_var=yes"
11614 echo "$as_me: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11616 eval "$as_ac_var=no"
11618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11622 if test `eval echo '${'$as_ac_var'}'` = yes; then
11623 cat >>confdefs.h <<_ACEOF
11624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649 echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11651 if eval "test \"\${$as_ac_var+set}\" = set"; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 cat >conftest.$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below. */
11659 #include <assert.h>
11660 /* Override any gcc2 internal prototype to avoid an error. */
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11669 #ifdef F77_DUMMY_MAIN
11670 # ifdef __cplusplus
11673 int F77_DUMMY_MAIN() { return 1; }
11678 /* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 eval "$as_ac_var=yes"
11705 echo "$as_me: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11707 eval "$as_ac_var=no"
11709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11713 if test `eval echo '${'$as_ac_var'}'` = yes; then
11714 cat >>confdefs.h <<_ACEOF
11715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11719 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11725 # system's version of getaddrinfo(), if any, may be used only if we found
11726 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11727 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11729 for ac_func in getaddrinfo
11731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732 echo "$as_me:$LINENO: checking for $ac_func" >&5
11733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11734 if eval "test \"\${$as_ac_var+set}\" = set"; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 cat >conftest.$ac_ext <<_ACEOF
11738 #line $LINENO "configure"
11739 #include "confdefs.h"
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below. */
11742 #include <assert.h>
11743 /* Override any gcc2 internal prototype to avoid an error. */
11747 /* We use char because int might match the return type of a gcc2
11748 builtin and then its argument prototype would still apply. */
11752 #ifdef F77_DUMMY_MAIN
11753 # ifdef __cplusplus
11756 int F77_DUMMY_MAIN() { return 1; }
11761 /* The GNU C library defines this for functions which it implements
11762 to always fail with ENOSYS. Some functions are actually named
11763 something starting with __ and the normal name is an alias. */
11764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 eval "$as_ac_var=yes"
11788 echo "$as_me: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 eval "$as_ac_var=no"
11792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11802 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11808 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11811 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11812 # We override the previous test that said fseeko/ftello didn't exist
11813 # OS tests are also done in include/c.h and port/fseeko.c
11814 case $host_os in bsdi*|netbsd*)
11815 ac_cv_func_fseeko=yes
11818 # Solaris has a very slow qsort in certain cases, so we replace it.
11819 case $host_os in solaris*)
11820 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11823 # Win32 can't to rename or unlink on an open file
11824 case $host_os in mingw*)
11825 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11826 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11827 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11830 if test "$with_readline" = yes; then
11831 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11832 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 #include "confdefs.h"
11837 #ifdef HAVE_READLINE_READLINE_H
11838 # include <readline/readline.h>
11839 #elif defined(HAVE_READLINE_H)
11840 # include <readline.h>
11843 #ifdef F77_DUMMY_MAIN
11844 # ifdef __cplusplus
11847 int F77_DUMMY_MAIN() { return 1; }
11852 rl_completion_append_character = 'x';
11857 rm -f conftest.$ac_objext conftest$ac_exeext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11859 (eval $ac_link) 2>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
11863 { ac_try='test -s conftest$ac_exeext'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 echo "$as_me:$LINENO: result: yes" >&5
11870 echo "${ECHO_T}yes" >&6
11872 cat >>confdefs.h <<\_ACEOF
11873 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11877 echo "$as_me: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879 echo "$as_me:$LINENO: result: no" >&5
11880 echo "${ECHO_T}no" >&6
11882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11885 for ac_func in rl_completion_matches rl_filename_completion_function
11887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11888 echo "$as_me:$LINENO: checking for $ac_func" >&5
11889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11890 if eval "test \"\${$as_ac_var+set}\" = set"; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 cat >conftest.$ac_ext <<_ACEOF
11894 #line $LINENO "configure"
11895 #include "confdefs.h"
11896 /* System header to define __stub macros and hopefully few prototypes,
11897 which can conflict with char $ac_func (); below. */
11898 #include <assert.h>
11899 /* Override any gcc2 internal prototype to avoid an error. */
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11908 #ifdef F77_DUMMY_MAIN
11909 # ifdef __cplusplus
11912 int F77_DUMMY_MAIN() { return 1; }
11917 /* The GNU C library defines this for functions which it implements
11918 to always fail with ENOSYS. Some functions are actually named
11919 something starting with __ and the normal name is an alias. */
11920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11944 echo "$as_me: failed program was:" >&5
11945 cat conftest.$ac_ext >&5
11946 eval "$as_ac_var=no"
11948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961 for ac_func in replace_history_entry
11963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11964 echo "$as_me:$LINENO: checking for $ac_func" >&5
11965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11966 if eval "test \"\${$as_ac_var+set}\" = set"; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11970 #line $LINENO "configure"
11971 #include "confdefs.h"
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char $ac_func (); below. */
11974 #include <assert.h>
11975 /* Override any gcc2 internal prototype to avoid an error. */
11979 /* We use char because int might match the return type of a gcc2
11980 builtin and then its argument prototype would still apply. */
11984 #ifdef F77_DUMMY_MAIN
11985 # ifdef __cplusplus
11988 int F77_DUMMY_MAIN() { return 1; }
11993 /* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 eval "$as_ac_var=yes"
12020 echo "$as_me: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 eval "$as_ac_var=no"
12024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12028 if test `eval echo '${'$as_ac_var'}'` = yes; then
12029 cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12039 echo "$as_me:$LINENO: checking for finite" >&5
12040 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12042 #line $LINENO "configure"
12043 #include "confdefs.h"
12045 #ifdef F77_DUMMY_MAIN
12046 # ifdef __cplusplus
12049 int F77_DUMMY_MAIN() { return 1; }
12054 int dummy=finite(1.0);
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -s conftest$ac_exeext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12072 cat >>confdefs.h <<\_ACEOF
12073 #define HAVE_FINITE 1
12076 echo "$as_me:$LINENO: result: yes" >&5
12077 echo "${ECHO_T}yes" >&6
12079 echo "$as_me: failed program was:" >&5
12080 cat conftest.$ac_ext >&5
12081 echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6
12084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12086 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12087 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12091 #include <setjmp.h>
12092 #ifdef F77_DUMMY_MAIN
12093 # ifdef __cplusplus
12096 int F77_DUMMY_MAIN() { return 1; }
12101 sigjmp_buf x; sigsetjmp(x, 1);
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12119 cat >>confdefs.h <<\_ACEOF
12120 #define HAVE_SIGSETJMP 1
12123 echo "$as_me:$LINENO: result: yes" >&5
12124 echo "${ECHO_T}yes" >&6
12126 echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 echo "$as_me:$LINENO: result: no" >&5
12129 echo "${ECHO_T}no" >&6
12131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12133 echo "$as_me:$LINENO: checking for syslog" >&5
12134 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12135 if test "${ac_cv_func_syslog+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 cat >conftest.$ac_ext <<_ACEOF
12139 #line $LINENO "configure"
12140 #include "confdefs.h"
12141 /* System header to define __stub macros and hopefully few prototypes,
12142 which can conflict with char syslog (); below. */
12143 #include <assert.h>
12144 /* Override any gcc2 internal prototype to avoid an error. */
12148 /* We use char because int might match the return type of a gcc2
12149 builtin and then its argument prototype would still apply. */
12153 #ifdef F77_DUMMY_MAIN
12154 # ifdef __cplusplus
12157 int F77_DUMMY_MAIN() { return 1; }
12162 /* The GNU C library defines this for functions which it implements
12163 to always fail with ENOSYS. Some functions are actually named
12164 something starting with __ and the normal name is an alias. */
12165 #if defined (__stub_syslog) || defined (__stub___syslog)
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -s conftest$ac_exeext'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 ac_cv_func_syslog=yes
12189 echo "$as_me: failed program was:" >&5
12190 cat conftest.$ac_ext >&5
12191 ac_cv_func_syslog=no
12193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12195 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12196 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12197 if test $ac_cv_func_syslog = yes; then
12198 if test "${ac_cv_header_syslog_h+set}" = set; then
12199 echo "$as_me:$LINENO: checking for syslog.h" >&5
12200 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12201 if test "${ac_cv_header_syslog_h+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12207 # Is the header compilable?
12208 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12209 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 #include "confdefs.h"
12213 $ac_includes_default
12214 #include <syslog.h>
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218 (eval $ac_compile) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -s conftest.$ac_objext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_header_compiler=yes
12230 echo "$as_me: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 ac_header_compiler=no
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6
12238 # Is the header present?
12239 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12240 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line $LINENO "configure"
12243 #include "confdefs.h"
12244 #include <syslog.h>
12246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12249 egrep -v '^ *\+' conftest.er1 >conftest.err
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } >/dev/null; then
12254 if test -s conftest.err; then
12255 ac_cpp_err=$ac_c_preproc_warn_flag
12262 if test -z "$ac_cpp_err"; then
12263 ac_header_preproc=yes
12265 echo "$as_me: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12267 ac_header_preproc=no
12269 rm -f conftest.err conftest.$ac_ext
12270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6
12273 # So? What about this header?
12274 case $ac_header_compiler:$ac_header_preproc in
12276 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12279 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12281 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12282 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12284 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12286 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12288 echo "$as_me:$LINENO: checking for syslog.h" >&5
12289 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12290 if test "${ac_cv_header_syslog_h+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 ac_cv_header_syslog_h=$ac_header_preproc
12295 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12296 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12299 if test $ac_cv_header_syslog_h = yes; then
12301 cat >>confdefs.h <<\_ACEOF
12302 #define HAVE_SYSLOG 1
12311 echo "$as_me:$LINENO: checking for optreset" >&5
12312 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12313 if test "${pgac_cv_var_int_optreset+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 #include <unistd.h>
12320 #ifdef F77_DUMMY_MAIN
12321 # ifdef __cplusplus
12324 int F77_DUMMY_MAIN() { return 1; }
12329 extern int optreset; optreset = 1;
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 pgac_cv_var_int_optreset=yes
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 pgac_cv_var_int_optreset=no
12352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12354 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12355 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12356 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_INT_OPTRESET 1
12366 for ac_func in strtoll strtoq
12368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12369 echo "$as_me:$LINENO: checking for $ac_func" >&5
12370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12371 if eval "test \"\${$as_ac_var+set}\" = set"; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 #include "confdefs.h"
12377 /* System header to define __stub macros and hopefully few prototypes,
12378 which can conflict with char $ac_func (); below. */
12379 #include <assert.h>
12380 /* Override any gcc2 internal prototype to avoid an error. */
12384 /* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12389 #ifdef F77_DUMMY_MAIN
12390 # ifdef __cplusplus
12393 int F77_DUMMY_MAIN() { return 1; }
12398 /* The GNU C library defines this for functions which it implements
12399 to always fail with ENOSYS. Some functions are actually named
12400 something starting with __ and the normal name is an alias. */
12401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413 (eval $ac_link) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -s conftest$ac_exeext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 eval "$as_ac_var=yes"
12425 echo "$as_me: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427 eval "$as_ac_var=no"
12429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12433 if test `eval echo '${'$as_ac_var'}'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443 for ac_func in strtoull strtouq
12445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12446 echo "$as_me:$LINENO: checking for $ac_func" >&5
12447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12448 if eval "test \"\${$as_ac_var+set}\" = set"; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12452 #line $LINENO "configure"
12453 #include "confdefs.h"
12454 /* System header to define __stub macros and hopefully few prototypes,
12455 which can conflict with char $ac_func (); below. */
12456 #include <assert.h>
12457 /* Override any gcc2 internal prototype to avoid an error. */
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12466 #ifdef F77_DUMMY_MAIN
12467 # ifdef __cplusplus
12470 int F77_DUMMY_MAIN() { return 1; }
12475 /* The GNU C library defines this for functions which it implements
12476 to always fail with ENOSYS. Some functions are actually named
12477 something starting with __ and the normal name is an alias. */
12478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490 (eval $ac_link) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -s conftest$ac_exeext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 eval "$as_ac_var=yes"
12502 echo "$as_me: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 eval "$as_ac_var=no"
12506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12510 if test `eval echo '${'$as_ac_var'}'` = yes; then
12511 cat >>confdefs.h <<_ACEOF
12512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12519 # Check for one of atexit() or on_exit()
12521 for ac_func in atexit
12523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12524 echo "$as_me:$LINENO: checking for $ac_func" >&5
12525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12526 if eval "test \"\${$as_ac_var+set}\" = set"; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 cat >conftest.$ac_ext <<_ACEOF
12530 #line $LINENO "configure"
12531 #include "confdefs.h"
12532 /* System header to define __stub macros and hopefully few prototypes,
12533 which can conflict with char $ac_func (); below. */
12534 #include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error. */
12539 /* We use char because int might match the return type of a gcc2
12540 builtin and then its argument prototype would still apply. */
12544 #ifdef F77_DUMMY_MAIN
12545 # ifdef __cplusplus
12548 int F77_DUMMY_MAIN() { return 1; }
12553 /* The GNU C library defines this for functions which it implements
12554 to always fail with ENOSYS. Some functions are actually named
12555 something starting with __ and the normal name is an alias. */
12556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -s conftest$ac_exeext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 eval "$as_ac_var=yes"
12580 echo "$as_me: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 eval "$as_ac_var=no"
12584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12588 if test `eval echo '${'$as_ac_var'}'` = yes; then
12589 cat >>confdefs.h <<_ACEOF
12590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12595 for ac_func in on_exit
12597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12598 echo "$as_me:$LINENO: checking for $ac_func" >&5
12599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12600 if eval "test \"\${$as_ac_var+set}\" = set"; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12605 #include "confdefs.h"
12606 /* System header to define __stub macros and hopefully few prototypes,
12607 which can conflict with char $ac_func (); below. */
12608 #include <assert.h>
12609 /* Override any gcc2 internal prototype to avoid an error. */
12613 /* We use char because int might match the return type of a gcc2
12614 builtin and then its argument prototype would still apply. */
12618 #ifdef F77_DUMMY_MAIN
12619 # ifdef __cplusplus
12622 int F77_DUMMY_MAIN() { return 1; }
12627 /* The GNU C library defines this for functions which it implements
12628 to always fail with ENOSYS. Some functions are actually named
12629 something starting with __ and the normal name is an alias. */
12630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 eval "$as_ac_var=yes"
12654 echo "$as_me: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12656 eval "$as_ac_var=no"
12658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12662 if test `eval echo '${'$as_ac_var'}'` = yes; then
12663 cat >>confdefs.h <<_ACEOF
12664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12668 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12669 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12670 { (exit 1); exit 1; }; }
12678 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12679 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12680 if test "${ac_cv_sys_largefile_source+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 ac_cv_sys_largefile_source=no
12685 cat >conftest.$ac_ext <<_ACEOF
12686 #line $LINENO "configure"
12687 #include "confdefs.h"
12689 #ifdef F77_DUMMY_MAIN
12690 # ifdef __cplusplus
12693 int F77_DUMMY_MAIN() { return 1; }
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12717 echo "$as_me: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12720 rm -f conftest.$ac_objext conftest.$ac_ext
12721 cat >conftest.$ac_ext <<_ACEOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12724 #define _LARGEFILE_SOURCE 1
12726 #ifdef F77_DUMMY_MAIN
12727 # ifdef __cplusplus
12730 int F77_DUMMY_MAIN() { return 1; }
12740 rm -f conftest.$ac_objext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742 (eval $ac_compile) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -s conftest.$ac_objext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_cv_sys_largefile_source=1; break
12754 echo "$as_me: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 rm -f conftest.$ac_objext conftest.$ac_ext
12761 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12762 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12763 if test "$ac_cv_sys_largefile_source" != no; then
12765 cat >>confdefs.h <<_ACEOF
12766 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12772 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12773 # in glibc 2.1.3, but that breaks too many other things.
12774 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12775 echo "$as_me:$LINENO: checking for fseeko" >&5
12776 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12777 if test "${ac_cv_func_fseeko+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 cat >conftest.$ac_ext <<_ACEOF
12781 #line $LINENO "configure"
12782 #include "confdefs.h"
12784 #ifdef F77_DUMMY_MAIN
12785 # ifdef __cplusplus
12788 int F77_DUMMY_MAIN() { return 1; }
12793 return fseeko && fseeko (stdin, 0, 0);
12798 rm -f conftest.$ac_objext conftest$ac_exeext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12800 (eval $ac_link) 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_func_fseeko=yes
12812 echo "$as_me: failed program was:" >&5
12813 cat conftest.$ac_ext >&5
12814 ac_cv_func_fseeko=no
12816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12818 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12819 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12820 if test $ac_cv_func_fseeko = yes; then
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_FSEEKO 1
12830 # Check for re-entrant versions of certain functions
12832 # Include special flags if required
12836 CFLAGS="$CFLAGS $TREAD_CFLAGS"
12837 LIBS="$LIBS $THREAD_LIBS"
12841 for ac_func in strerror_r getpwuid_r gethostbyname_r
12843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 echo "$as_me:$LINENO: checking for $ac_func" >&5
12845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12846 if eval "test \"\${$as_ac_var+set}\" = set"; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 #include "confdefs.h"
12852 /* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below. */
12854 #include <assert.h>
12855 /* Override any gcc2 internal prototype to avoid an error. */
12859 /* We use char because int might match the return type of a gcc2
12860 builtin and then its argument prototype would still apply. */
12864 #ifdef F77_DUMMY_MAIN
12865 # ifdef __cplusplus
12868 int F77_DUMMY_MAIN() { return 1; }
12873 /* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12888 (eval $ac_link) 2>&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -s conftest$ac_exeext'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 eval "$as_ac_var=yes"
12900 echo "$as_me: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 eval "$as_ac_var=no"
12904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908 if test `eval echo '${'$as_ac_var'}'` = yes; then
12909 cat >>confdefs.h <<_ACEOF
12910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12921 # This test makes sure that run tests work at all. Sometimes a shared
12922 # library is found by the linker, but the runtime linker can't find it.
12923 # This check should come after all modifications of compiler or linker
12924 # variables, and before any other run tests.
12925 echo "$as_me:$LINENO: checking test program" >&5
12926 echo $ECHO_N "checking test program... $ECHO_C" >&6
12927 if test "$cross_compiling" = yes; then
12928 echo "$as_me:$LINENO: result: cross-compiling" >&5
12929 echo "${ECHO_T}cross-compiling" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line $LINENO "configure"
12933 #include "confdefs.h"
12934 int main() { return 0; }
12936 rm -f conftest$ac_exeext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12938 (eval $ac_link) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 echo "$as_me:$LINENO: result: ok" >&5
12948 echo "${ECHO_T}ok" >&6
12950 echo "$as_me: program exited with status $ac_status" >&5
12951 echo "$as_me: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 ( exit $ac_status )
12954 echo "$as_me:$LINENO: result: failed" >&5
12955 echo "${ECHO_T}failed" >&6
12956 { { echo "$as_me:$LINENO: error:
12957 *** Could not execute a simple test program. This may be a problem
12958 *** related to locating shared libraries. Check the file 'config.log'
12959 *** for the exact reason." >&5
12960 echo "$as_me: error:
12961 *** Could not execute a simple test program. This may be a problem
12962 *** related to locating shared libraries. Check the file 'config.log'
12963 *** for the exact reason." >&2;}
12964 { (exit 1); exit 1; }; }
12966 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12971 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12972 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12973 if test "${pgac_cv_type_long_int_64+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 if test "$cross_compiling" = yes; then
12977 # If cross-compiling, check the size reported by the compiler and
12978 # trust that the arithmetic works.
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line $LINENO "configure"
12981 #include "confdefs.h"
12983 #ifdef F77_DUMMY_MAIN
12984 # ifdef __cplusplus
12987 int F77_DUMMY_MAIN() { return 1; }
12992 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12999 rm -f conftest.$ac_objext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13001 (eval $ac_compile) 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -s conftest.$ac_objext'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 pgac_cv_type_long_int_64=yes
13013 echo "$as_me: failed program was:" >&5
13014 cat conftest.$ac_ext >&5
13015 pgac_cv_type_long_int_64=no
13017 rm -f conftest.$ac_objext conftest.$ac_ext
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 typedef long int int64;
13025 * These are globals to discourage the compiler from folding all the
13026 * arithmetic tests down to compile-time constants.
13028 int64 a = 20000001;
13029 int64 b = 40000005;
13031 int does_int64_work()
13035 if (sizeof(int64) != 8)
13036 return 0; /* definitely not the right size */
13038 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13046 exit(! does_int64_work());
13049 rm -f conftest$ac_exeext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 pgac_cv_type_long_int_64=yes
13062 echo "$as_me: program exited with status $ac_status" >&5
13063 echo "$as_me: failed program was:" >&5
13064 cat conftest.$ac_ext >&5
13065 ( exit $ac_status )
13066 pgac_cv_type_long_int_64=no
13068 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13071 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13072 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13074 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13075 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13077 cat >>confdefs.h <<\_ACEOF
13078 #define HAVE_LONG_INT_64
13084 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13085 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13086 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13087 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 if test "$cross_compiling" = yes; then
13091 # If cross-compiling, check the size reported by the compiler and
13092 # trust that the arithmetic works.
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13095 #include "confdefs.h"
13097 #ifdef F77_DUMMY_MAIN
13098 # ifdef __cplusplus
13101 int F77_DUMMY_MAIN() { return 1; }
13106 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13113 rm -f conftest.$ac_objext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -s conftest.$ac_objext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 pgac_cv_type_long_long_int_64=yes
13127 echo "$as_me: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 pgac_cv_type_long_long_int_64=no
13131 rm -f conftest.$ac_objext conftest.$ac_ext
13133 cat >conftest.$ac_ext <<_ACEOF
13134 #line $LINENO "configure"
13135 #include "confdefs.h"
13136 typedef long long int int64;
13139 * These are globals to discourage the compiler from folding all the
13140 * arithmetic tests down to compile-time constants.
13142 int64 a = 20000001;
13143 int64 b = 40000005;
13145 int does_int64_work()
13149 if (sizeof(int64) != 8)
13150 return 0; /* definitely not the right size */
13152 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13160 exit(! does_int64_work());
13163 rm -f conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 pgac_cv_type_long_long_int_64=yes
13176 echo "$as_me: program exited with status $ac_status" >&5
13177 echo "$as_me: failed program was:" >&5
13178 cat conftest.$ac_ext >&5
13179 ( exit $ac_status )
13180 pgac_cv_type_long_long_int_64=no
13182 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13185 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13186 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13188 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13189 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_LONG_LONG_INT_64
13201 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13202 cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13204 #include "confdefs.h"
13206 #define INT64CONST(x) x##LL
13207 long long int foo = INT64CONST(0x1234567890123456);
13209 #ifdef F77_DUMMY_MAIN
13210 # ifdef __cplusplus
13213 int F77_DUMMY_MAIN() { return 1; }
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -s conftest.$ac_objext'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13236 cat >>confdefs.h <<\_ACEOF
13237 #define HAVE_LL_CONSTANTS 1
13241 echo "$as_me: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13244 rm -f conftest.$ac_objext conftest.$ac_ext
13248 # If we found "long int" is 64 bits, assume snprintf handles it. If
13249 # we found we need to use "long long int", better check. We cope with
13250 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13251 # neither works, fall back to our own snprintf emulation (which we
13254 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13255 if test $pgac_need_repl_snprintf = no; then
13256 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13257 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13258 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 for pgac_format in '%lld' '%qd' '%I64d'; do
13262 if test "$cross_compiling" = yes; then
13263 pgac_cv_snprintf_long_long_int_format=cross; break
13265 cat >conftest.$ac_ext <<_ACEOF
13266 #line $LINENO "configure"
13267 #include "confdefs.h"
13269 typedef long long int int64;
13270 #define INT64_FORMAT "$pgac_format"
13272 int64 a = 20000001;
13273 int64 b = 40000005;
13275 int does_int64_snprintf_work()
13280 if (sizeof(int64) != 8)
13281 return 0; /* doesn't look like the right size */
13284 snprintf(buf, 100, INT64_FORMAT, c);
13285 if (strcmp(buf, "800000140000005") != 0)
13286 return 0; /* either multiply or snprintf is busted */
13290 exit(! does_int64_snprintf_work());
13293 rm -f conftest$ac_exeext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295 (eval $ac_link) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13306 echo "$as_me: program exited with status $ac_status" >&5
13307 echo "$as_me: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13310 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315 LONG_LONG_INT_FORMAT=''
13317 case $pgac_cv_snprintf_long_long_int_format in
13318 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13319 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13320 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13321 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13322 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13323 *) echo "$as_me:$LINENO: result: none" >&5
13324 echo "${ECHO_T}none" >&6;;
13326 if test "$LONG_LONG_INT_FORMAT" = ""; then
13327 # Force usage of our own snprintf, since system snprintf is broken
13328 pgac_need_repl_snprintf=yes
13329 LONG_LONG_INT_FORMAT='%lld'
13332 # Here if we previously decided we needed to use our own snprintf
13333 LONG_LONG_INT_FORMAT='%lld'
13335 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13337 # Here if we are not using 'long long int' at all
13338 INT64_FORMAT='"%ld"'
13342 cat >>confdefs.h <<_ACEOF
13343 #define INT64_FORMAT $INT64_FORMAT
13347 if test $pgac_need_repl_snprintf = yes; then
13348 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13351 # Need a #define for the size of Datum (unsigned long)
13352 echo "$as_me:$LINENO: checking for unsigned long" >&5
13353 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13354 if test "${ac_cv_type_unsigned_long+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 cat >conftest.$ac_ext <<_ACEOF
13358 #line $LINENO "configure"
13359 #include "confdefs.h"
13360 $ac_includes_default
13361 #ifdef F77_DUMMY_MAIN
13362 # ifdef __cplusplus
13365 int F77_DUMMY_MAIN() { return 1; }
13370 if ((unsigned long *) 0)
13372 if (sizeof (unsigned long))
13378 rm -f conftest.$ac_objext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380 (eval $ac_compile) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -s conftest.$ac_objext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_type_unsigned_long=yes
13392 echo "$as_me: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 ac_cv_type_unsigned_long=no
13396 rm -f conftest.$ac_objext conftest.$ac_ext
13398 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13399 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13401 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13402 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13403 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 if test "$ac_cv_type_unsigned_long" = yes; then
13407 # The cast to unsigned long works around a bug in the HP C Compiler
13408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13410 # This bug is HP SR number 8606223364.
13411 if test "$cross_compiling" = yes; then
13412 # Depending upon the size, compute the lo and hi bounds.
13413 cat >conftest.$ac_ext <<_ACEOF
13414 #line $LINENO "configure"
13415 #include "confdefs.h"
13416 $ac_includes_default
13417 #ifdef F77_DUMMY_MAIN
13418 # ifdef __cplusplus
13421 int F77_DUMMY_MAIN() { return 1; }
13426 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13449 #include "confdefs.h"
13450 $ac_includes_default
13451 #ifdef F77_DUMMY_MAIN
13452 # ifdef __cplusplus
13455 int F77_DUMMY_MAIN() { return 1; }
13460 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13467 rm -f conftest.$ac_objext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469 (eval $ac_compile) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } &&
13473 { ac_try='test -s conftest.$ac_objext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_hi=$ac_mid; break
13481 echo "$as_me: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 ac_lo=`expr $ac_mid + 1`
13484 if test $ac_lo -le $ac_mid; then
13488 ac_mid=`expr 2 '*' $ac_mid + 1`
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13493 echo "$as_me: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13495 cat >conftest.$ac_ext <<_ACEOF
13496 #line $LINENO "configure"
13497 #include "confdefs.h"
13498 $ac_includes_default
13499 #ifdef F77_DUMMY_MAIN
13500 # ifdef __cplusplus
13503 int F77_DUMMY_MAIN() { return 1; }
13508 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13515 rm -f conftest.$ac_objext
13516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13529 cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13531 #include "confdefs.h"
13532 $ac_includes_default
13533 #ifdef F77_DUMMY_MAIN
13534 # ifdef __cplusplus
13537 int F77_DUMMY_MAIN() { return 1; }
13542 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13549 rm -f conftest.$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_lo=$ac_mid; break
13563 echo "$as_me: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 ac_hi=`expr '(' $ac_mid ')' - 1`
13566 if test $ac_mid -le $ac_hi; then
13570 ac_mid=`expr 2 '*' $ac_mid`
13572 rm -f conftest.$ac_objext conftest.$ac_ext
13575 echo "$as_me: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13579 rm -f conftest.$ac_objext conftest.$ac_ext
13581 rm -f conftest.$ac_objext conftest.$ac_ext
13582 # Binary search between lo and hi bounds.
13583 while test "x$ac_lo" != "x$ac_hi"; do
13584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13585 cat >conftest.$ac_ext <<_ACEOF
13586 #line $LINENO "configure"
13587 #include "confdefs.h"
13588 $ac_includes_default
13589 #ifdef F77_DUMMY_MAIN
13590 # ifdef __cplusplus
13593 int F77_DUMMY_MAIN() { return 1; }
13598 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13605 rm -f conftest.$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607 (eval $ac_compile) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13619 echo "$as_me: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13621 ac_lo=`expr '(' $ac_mid ')' + 1`
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13626 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13627 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13628 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13629 { (exit 1); exit 1; }; } ;;
13632 if test "$cross_compiling" = yes; then
13633 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13634 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13635 { (exit 1); exit 1; }; }
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13639 #include "confdefs.h"
13640 $ac_includes_default
13641 long longval () { return (long) (sizeof (unsigned long)); }
13642 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13644 #include <stdlib.h>
13645 #ifdef F77_DUMMY_MAIN
13646 # ifdef __cplusplus
13649 int F77_DUMMY_MAIN() { return 1; }
13655 FILE *f = fopen ("conftest.val", "w");
13658 if (((long) (sizeof (unsigned long))) < 0)
13660 long i = longval ();
13661 if (i != ((long) (sizeof (unsigned long))))
13663 fprintf (f, "%ld\n", i);
13667 unsigned long i = ulongval ();
13668 if (i != ((long) (sizeof (unsigned long))))
13670 fprintf (f, "%lu\n", i);
13672 exit (ferror (f) || fclose (f) != 0);
13678 rm -f conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680 (eval $ac_link) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13691 echo "$as_me: program exited with status $ac_status" >&5
13692 echo "$as_me: failed program was:" >&5
13693 cat conftest.$ac_ext >&5
13694 ( exit $ac_status )
13695 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13696 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13697 { (exit 1); exit 1; }; }
13699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13704 ac_cv_sizeof_unsigned_long=0
13707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13708 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13709 cat >>confdefs.h <<_ACEOF
13710 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13715 # Determine memory alignment requirements for the basic C data types.
13717 echo "$as_me:$LINENO: checking for short" >&5
13718 echo $ECHO_N "checking for short... $ECHO_C" >&6
13719 if test "${ac_cv_type_short+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 cat >conftest.$ac_ext <<_ACEOF
13723 #line $LINENO "configure"
13724 #include "confdefs.h"
13725 $ac_includes_default
13726 #ifdef F77_DUMMY_MAIN
13727 # ifdef __cplusplus
13730 int F77_DUMMY_MAIN() { return 1; }
13737 if (sizeof (short))
13743 rm -f conftest.$ac_objext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13745 (eval $ac_compile) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_type_short=yes
13757 echo "$as_me: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 ac_cv_type_short=no
13761 rm -f conftest.$ac_objext conftest.$ac_ext
13763 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13764 echo "${ECHO_T}$ac_cv_type_short" >&6
13766 echo "$as_me:$LINENO: checking alignment of short" >&5
13767 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13768 if test "${pgac_cv_alignof_short+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 if test "$ac_cv_type_short" = yes; then
13772 if test "$cross_compiling" = yes; then
13773 # Depending upon the size, compute the lo and hi bounds.
13774 cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13776 #include "confdefs.h"
13777 $ac_includes_default
13778 struct { char filler; short field; } pgac_struct;
13779 #ifdef F77_DUMMY_MAIN
13780 # ifdef __cplusplus
13783 int F77_DUMMY_MAIN() { return 1; }
13788 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
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
13809 cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 #include "confdefs.h"
13812 $ac_includes_default
13813 struct { char filler; short field; } pgac_struct;
13814 #ifdef F77_DUMMY_MAIN
13815 # ifdef __cplusplus
13818 int F77_DUMMY_MAIN() { return 1; }
13823 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_hi=$ac_mid; break
13844 echo "$as_me: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13846 ac_lo=`expr $ac_mid + 1`
13847 if test $ac_lo -le $ac_mid; then
13851 ac_mid=`expr 2 '*' $ac_mid + 1`
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13856 echo "$as_me: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 cat >conftest.$ac_ext <<_ACEOF
13859 #line $LINENO "configure"
13860 #include "confdefs.h"
13861 $ac_includes_default
13862 struct { char filler; short field; } pgac_struct;
13863 #ifdef F77_DUMMY_MAIN
13864 # ifdef __cplusplus
13867 int F77_DUMMY_MAIN() { return 1; }
13872 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -s conftest.$ac_objext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13893 cat >conftest.$ac_ext <<_ACEOF
13894 #line $LINENO "configure"
13895 #include "confdefs.h"
13896 $ac_includes_default
13897 struct { char filler; short field; } pgac_struct;
13898 #ifdef F77_DUMMY_MAIN
13899 # ifdef __cplusplus
13902 int F77_DUMMY_MAIN() { return 1; }
13907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916 (eval $ac_compile) 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_lo=$ac_mid; break
13928 echo "$as_me: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 ac_hi=`expr '(' $ac_mid ')' - 1`
13931 if test $ac_mid -le $ac_hi; then
13935 ac_mid=`expr 2 '*' $ac_mid`
13937 rm -f conftest.$ac_objext conftest.$ac_ext
13940 echo "$as_me: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13944 rm -f conftest.$ac_objext conftest.$ac_ext
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13947 # Binary search between lo and hi bounds.
13948 while test "x$ac_lo" != "x$ac_hi"; do
13949 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13950 cat >conftest.$ac_ext <<_ACEOF
13951 #line $LINENO "configure"
13952 #include "confdefs.h"
13953 $ac_includes_default
13954 struct { char filler; short field; } pgac_struct;
13955 #ifdef F77_DUMMY_MAIN
13956 # ifdef __cplusplus
13959 int F77_DUMMY_MAIN() { return 1; }
13964 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13971 rm -f conftest.$ac_objext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13973 (eval $ac_compile) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13985 echo "$as_me: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13987 ac_lo=`expr '(' $ac_mid ')' + 1`
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13992 ?*) pgac_cv_alignof_short=$ac_lo;;
13993 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13994 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13995 { (exit 1); exit 1; }; } ;;
13998 if test "$cross_compiling" = yes; then
13999 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14000 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14001 { (exit 1); exit 1; }; }
14003 cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14005 #include "confdefs.h"
14006 $ac_includes_default
14007 struct { char filler; short field; } pgac_struct;
14008 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14009 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14011 #include <stdlib.h>
14012 #ifdef F77_DUMMY_MAIN
14013 # ifdef __cplusplus
14016 int F77_DUMMY_MAIN() { return 1; }
14022 FILE *f = fopen ("conftest.val", "w");
14025 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14027 long i = longval ();
14028 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14030 fprintf (f, "%ld\n", i);
14034 unsigned long i = ulongval ();
14035 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14037 fprintf (f, "%lu\n", i);
14039 exit (ferror (f) || fclose (f) != 0);
14045 rm -f conftest$ac_exeext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14047 (eval $ac_link) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 pgac_cv_alignof_short=`cat conftest.val`
14058 echo "$as_me: program exited with status $ac_status" >&5
14059 echo "$as_me: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 ( exit $ac_status )
14062 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14063 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14064 { (exit 1); exit 1; }; }
14066 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14071 pgac_cv_alignof_short=0
14074 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14075 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14076 cat >>confdefs.h <<_ACEOF
14077 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14081 echo "$as_me:$LINENO: checking for int" >&5
14082 echo $ECHO_N "checking for int... $ECHO_C" >&6
14083 if test "${ac_cv_type_int+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 cat >conftest.$ac_ext <<_ACEOF
14087 #line $LINENO "configure"
14088 #include "confdefs.h"
14089 $ac_includes_default
14090 #ifdef F77_DUMMY_MAIN
14091 # ifdef __cplusplus
14094 int F77_DUMMY_MAIN() { return 1; }
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14121 echo "$as_me: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14125 rm -f conftest.$ac_objext conftest.$ac_ext
14127 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14128 echo "${ECHO_T}$ac_cv_type_int" >&6
14130 echo "$as_me:$LINENO: checking alignment of int" >&5
14131 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14132 if test "${pgac_cv_alignof_int+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 if test "$ac_cv_type_int" = yes; then
14136 if test "$cross_compiling" = yes; then
14137 # Depending upon the size, compute the lo and hi bounds.
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 #include "confdefs.h"
14141 $ac_includes_default
14142 struct { char filler; int field; } pgac_struct;
14143 #ifdef F77_DUMMY_MAIN
14144 # ifdef __cplusplus
14147 int F77_DUMMY_MAIN() { return 1; }
14152 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14173 cat >conftest.$ac_ext <<_ACEOF
14174 #line $LINENO "configure"
14175 #include "confdefs.h"
14176 $ac_includes_default
14177 struct { char filler; int field; } pgac_struct;
14178 #ifdef F77_DUMMY_MAIN
14179 # ifdef __cplusplus
14182 int F77_DUMMY_MAIN() { return 1; }
14187 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14194 rm -f conftest.$ac_objext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196 (eval $ac_compile) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -s conftest.$ac_objext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_hi=$ac_mid; break
14208 echo "$as_me: failed program was:" >&5
14209 cat conftest.$ac_ext >&5
14210 ac_lo=`expr $ac_mid + 1`
14211 if test $ac_lo -le $ac_mid; then
14215 ac_mid=`expr 2 '*' $ac_mid + 1`
14217 rm -f conftest.$ac_objext conftest.$ac_ext
14220 echo "$as_me: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 cat >conftest.$ac_ext <<_ACEOF
14223 #line $LINENO "configure"
14224 #include "confdefs.h"
14225 $ac_includes_default
14226 struct { char filler; int field; } pgac_struct;
14227 #ifdef F77_DUMMY_MAIN
14228 # ifdef __cplusplus
14231 int F77_DUMMY_MAIN() { return 1; }
14236 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14257 cat >conftest.$ac_ext <<_ACEOF
14258 #line $LINENO "configure"
14259 #include "confdefs.h"
14260 $ac_includes_default
14261 struct { char filler; int field; } pgac_struct;
14262 #ifdef F77_DUMMY_MAIN
14263 # ifdef __cplusplus
14266 int F77_DUMMY_MAIN() { return 1; }
14271 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_lo=$ac_mid; break
14292 echo "$as_me: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14294 ac_hi=`expr '(' $ac_mid ')' - 1`
14295 if test $ac_mid -le $ac_hi; then
14299 ac_mid=`expr 2 '*' $ac_mid`
14301 rm -f conftest.$ac_objext conftest.$ac_ext
14304 echo "$as_me: failed program was:" >&5
14305 cat conftest.$ac_ext >&5
14308 rm -f conftest.$ac_objext conftest.$ac_ext
14310 rm -f conftest.$ac_objext conftest.$ac_ext
14311 # Binary search between lo and hi bounds.
14312 while test "x$ac_lo" != "x$ac_hi"; do
14313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14314 cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14316 #include "confdefs.h"
14317 $ac_includes_default
14318 struct { char filler; int field; } pgac_struct;
14319 #ifdef F77_DUMMY_MAIN
14320 # ifdef __cplusplus
14323 int F77_DUMMY_MAIN() { return 1; }
14328 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337 (eval $ac_compile) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -s conftest.$ac_objext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14349 echo "$as_me: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 ac_lo=`expr '(' $ac_mid ')' + 1`
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14356 ?*) pgac_cv_alignof_int=$ac_lo;;
14357 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14358 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14359 { (exit 1); exit 1; }; } ;;
14362 if test "$cross_compiling" = yes; then
14363 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14364 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14365 { (exit 1); exit 1; }; }
14367 cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14369 #include "confdefs.h"
14370 $ac_includes_default
14371 struct { char filler; int field; } pgac_struct;
14372 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14373 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14375 #include <stdlib.h>
14376 #ifdef F77_DUMMY_MAIN
14377 # ifdef __cplusplus
14380 int F77_DUMMY_MAIN() { return 1; }
14386 FILE *f = fopen ("conftest.val", "w");
14389 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14391 long i = longval ();
14392 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14394 fprintf (f, "%ld\n", i);
14398 unsigned long i = ulongval ();
14399 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14401 fprintf (f, "%lu\n", i);
14403 exit (ferror (f) || fclose (f) != 0);
14409 rm -f conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411 (eval $ac_link) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 pgac_cv_alignof_int=`cat conftest.val`
14422 echo "$as_me: program exited with status $ac_status" >&5
14423 echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 ( exit $ac_status )
14426 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14427 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14428 { (exit 1); exit 1; }; }
14430 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14435 pgac_cv_alignof_int=0
14438 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14439 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14440 cat >>confdefs.h <<_ACEOF
14441 #define ALIGNOF_INT $pgac_cv_alignof_int
14445 echo "$as_me:$LINENO: checking for long" >&5
14446 echo $ECHO_N "checking for long... $ECHO_C" >&6
14447 if test "${ac_cv_type_long+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 cat >conftest.$ac_ext <<_ACEOF
14451 #line $LINENO "configure"
14452 #include "confdefs.h"
14453 $ac_includes_default
14454 #ifdef F77_DUMMY_MAIN
14455 # ifdef __cplusplus
14458 int F77_DUMMY_MAIN() { return 1; }
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -s conftest.$ac_objext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 ac_cv_type_long=yes
14485 echo "$as_me: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14489 rm -f conftest.$ac_objext conftest.$ac_ext
14491 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14492 echo "${ECHO_T}$ac_cv_type_long" >&6
14494 echo "$as_me:$LINENO: checking alignment of long" >&5
14495 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14496 if test "${pgac_cv_alignof_long+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 if test "$ac_cv_type_long" = yes; then
14500 if test "$cross_compiling" = yes; then
14501 # Depending upon the size, compute the lo and hi bounds.
14502 cat >conftest.$ac_ext <<_ACEOF
14503 #line $LINENO "configure"
14504 #include "confdefs.h"
14505 $ac_includes_default
14506 struct { char filler; long field; } pgac_struct;
14507 #ifdef F77_DUMMY_MAIN
14508 # ifdef __cplusplus
14511 int F77_DUMMY_MAIN() { return 1; }
14516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525 (eval $ac_compile) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } &&
14529 { ac_try='test -s conftest.$ac_objext'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14537 cat >conftest.$ac_ext <<_ACEOF
14538 #line $LINENO "configure"
14539 #include "confdefs.h"
14540 $ac_includes_default
14541 struct { char filler; long field; } pgac_struct;
14542 #ifdef F77_DUMMY_MAIN
14543 # ifdef __cplusplus
14546 int F77_DUMMY_MAIN() { return 1; }
14551 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14558 rm -f conftest.$ac_objext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560 (eval $ac_compile) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } &&
14564 { ac_try='test -s conftest.$ac_objext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_hi=$ac_mid; break
14572 echo "$as_me: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 ac_lo=`expr $ac_mid + 1`
14575 if test $ac_lo -le $ac_mid; then
14579 ac_mid=`expr 2 '*' $ac_mid + 1`
14581 rm -f conftest.$ac_objext conftest.$ac_ext
14584 echo "$as_me: failed program was:" >&5
14585 cat conftest.$ac_ext >&5
14586 cat >conftest.$ac_ext <<_ACEOF
14587 #line $LINENO "configure"
14588 #include "confdefs.h"
14589 $ac_includes_default
14590 struct { char filler; long field; } pgac_struct;
14591 #ifdef F77_DUMMY_MAIN
14592 # ifdef __cplusplus
14595 int F77_DUMMY_MAIN() { return 1; }
14600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14607 rm -f conftest.$ac_objext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609 (eval $ac_compile) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14621 cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14623 #include "confdefs.h"
14624 $ac_includes_default
14625 struct { char filler; long field; } pgac_struct;
14626 #ifdef F77_DUMMY_MAIN
14627 # ifdef __cplusplus
14630 int F77_DUMMY_MAIN() { return 1; }
14635 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_lo=$ac_mid; break
14656 echo "$as_me: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14658 ac_hi=`expr '(' $ac_mid ')' - 1`
14659 if test $ac_mid -le $ac_hi; then
14663 ac_mid=`expr 2 '*' $ac_mid`
14665 rm -f conftest.$ac_objext conftest.$ac_ext
14668 echo "$as_me: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14672 rm -f conftest.$ac_objext conftest.$ac_ext
14674 rm -f conftest.$ac_objext conftest.$ac_ext
14675 # Binary search between lo and hi bounds.
14676 while test "x$ac_lo" != "x$ac_hi"; do
14677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14678 cat >conftest.$ac_ext <<_ACEOF
14679 #line $LINENO "configure"
14680 #include "confdefs.h"
14681 $ac_includes_default
14682 struct { char filler; long field; } pgac_struct;
14683 #ifdef F77_DUMMY_MAIN
14684 # ifdef __cplusplus
14687 int F77_DUMMY_MAIN() { return 1; }
14692 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14699 rm -f conftest.$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701 (eval $ac_compile) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14713 echo "$as_me: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 ac_lo=`expr '(' $ac_mid ')' + 1`
14717 rm -f conftest.$ac_objext conftest.$ac_ext
14720 ?*) pgac_cv_alignof_long=$ac_lo;;
14721 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14722 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14723 { (exit 1); exit 1; }; } ;;
14726 if test "$cross_compiling" = yes; then
14727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14728 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14729 { (exit 1); exit 1; }; }
14731 cat >conftest.$ac_ext <<_ACEOF
14732 #line $LINENO "configure"
14733 #include "confdefs.h"
14734 $ac_includes_default
14735 struct { char filler; long field; } pgac_struct;
14736 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14737 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14739 #include <stdlib.h>
14740 #ifdef F77_DUMMY_MAIN
14741 # ifdef __cplusplus
14744 int F77_DUMMY_MAIN() { return 1; }
14750 FILE *f = fopen ("conftest.val", "w");
14753 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14755 long i = longval ();
14756 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14758 fprintf (f, "%ld\n", i);
14762 unsigned long i = ulongval ();
14763 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14765 fprintf (f, "%lu\n", i);
14767 exit (ferror (f) || fclose (f) != 0);
14773 rm -f conftest$ac_exeext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14775 (eval $ac_link) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 pgac_cv_alignof_long=`cat conftest.val`
14786 echo "$as_me: program exited with status $ac_status" >&5
14787 echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 ( exit $ac_status )
14790 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14791 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14792 { (exit 1); exit 1; }; }
14794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14799 pgac_cv_alignof_long=0
14802 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14803 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14804 cat >>confdefs.h <<_ACEOF
14805 #define ALIGNOF_LONG $pgac_cv_alignof_long
14809 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14810 echo "$as_me:$LINENO: checking for long long int" >&5
14811 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14812 if test "${ac_cv_type_long_long_int+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14816 #line $LINENO "configure"
14817 #include "confdefs.h"
14818 $ac_includes_default
14819 #ifdef F77_DUMMY_MAIN
14820 # ifdef __cplusplus
14823 int F77_DUMMY_MAIN() { return 1; }
14828 if ((long long int *) 0)
14830 if (sizeof (long long int))
14836 rm -f conftest.$ac_objext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14838 (eval $ac_compile) 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -s conftest.$ac_objext'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_cv_type_long_long_int=yes
14850 echo "$as_me: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 ac_cv_type_long_long_int=no
14854 rm -f conftest.$ac_objext conftest.$ac_ext
14856 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14857 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14859 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14860 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14861 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 if test "$ac_cv_type_long_long_int" = yes; then
14865 if test "$cross_compiling" = yes; then
14866 # Depending upon the size, compute the lo and hi bounds.
14867 cat >conftest.$ac_ext <<_ACEOF
14868 #line $LINENO "configure"
14869 #include "confdefs.h"
14870 $ac_includes_default
14871 struct { char filler; long long int field; } pgac_struct;
14872 #ifdef F77_DUMMY_MAIN
14873 # ifdef __cplusplus
14876 int F77_DUMMY_MAIN() { return 1; }
14881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14888 rm -f conftest.$ac_objext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14902 cat >conftest.$ac_ext <<_ACEOF
14903 #line $LINENO "configure"
14904 #include "confdefs.h"
14905 $ac_includes_default
14906 struct { char filler; long long int field; } pgac_struct;
14907 #ifdef F77_DUMMY_MAIN
14908 # ifdef __cplusplus
14911 int F77_DUMMY_MAIN() { return 1; }
14916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14923 rm -f conftest.$ac_objext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925 (eval $ac_compile) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -s conftest.$ac_objext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_hi=$ac_mid; break
14937 echo "$as_me: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 ac_lo=`expr $ac_mid + 1`
14940 if test $ac_lo -le $ac_mid; then
14944 ac_mid=`expr 2 '*' $ac_mid + 1`
14946 rm -f conftest.$ac_objext conftest.$ac_ext
14949 echo "$as_me: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 cat >conftest.$ac_ext <<_ACEOF
14952 #line $LINENO "configure"
14953 #include "confdefs.h"
14954 $ac_includes_default
14955 struct { char filler; long long int field; } pgac_struct;
14956 #ifdef F77_DUMMY_MAIN
14957 # ifdef __cplusplus
14960 int F77_DUMMY_MAIN() { return 1; }
14965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14972 rm -f conftest.$ac_objext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974 (eval $ac_compile) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14986 cat >conftest.$ac_ext <<_ACEOF
14987 #line $LINENO "configure"
14988 #include "confdefs.h"
14989 $ac_includes_default
14990 struct { char filler; long long int field; } pgac_struct;
14991 #ifdef F77_DUMMY_MAIN
14992 # ifdef __cplusplus
14995 int F77_DUMMY_MAIN() { return 1; }
15000 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009 (eval $ac_compile) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_lo=$ac_mid; break
15021 echo "$as_me: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15023 ac_hi=`expr '(' $ac_mid ')' - 1`
15024 if test $ac_mid -le $ac_hi; then
15028 ac_mid=`expr 2 '*' $ac_mid`
15030 rm -f conftest.$ac_objext conftest.$ac_ext
15033 echo "$as_me: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15037 rm -f conftest.$ac_objext conftest.$ac_ext
15039 rm -f conftest.$ac_objext conftest.$ac_ext
15040 # Binary search between lo and hi bounds.
15041 while test "x$ac_lo" != "x$ac_hi"; do
15042 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15043 cat >conftest.$ac_ext <<_ACEOF
15044 #line $LINENO "configure"
15045 #include "confdefs.h"
15046 $ac_includes_default
15047 struct { char filler; long long int field; } pgac_struct;
15048 #ifdef F77_DUMMY_MAIN
15049 # ifdef __cplusplus
15052 int F77_DUMMY_MAIN() { return 1; }
15057 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15064 rm -f conftest.$ac_objext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } &&
15070 { ac_try='test -s conftest.$ac_objext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15078 echo "$as_me: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15080 ac_lo=`expr '(' $ac_mid ')' + 1`
15082 rm -f conftest.$ac_objext conftest.$ac_ext
15085 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15086 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15087 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15088 { (exit 1); exit 1; }; } ;;
15091 if test "$cross_compiling" = yes; then
15092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15093 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15094 { (exit 1); exit 1; }; }
15096 cat >conftest.$ac_ext <<_ACEOF
15097 #line $LINENO "configure"
15098 #include "confdefs.h"
15099 $ac_includes_default
15100 struct { char filler; long long int field; } pgac_struct;
15101 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15102 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15104 #include <stdlib.h>
15105 #ifdef F77_DUMMY_MAIN
15106 # ifdef __cplusplus
15109 int F77_DUMMY_MAIN() { return 1; }
15115 FILE *f = fopen ("conftest.val", "w");
15118 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15120 long i = longval ();
15121 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15123 fprintf (f, "%ld\n", i);
15127 unsigned long i = ulongval ();
15128 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15130 fprintf (f, "%lu\n", i);
15132 exit (ferror (f) || fclose (f) != 0);
15138 rm -f conftest$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 pgac_cv_alignof_long_long_int=`cat conftest.val`
15151 echo "$as_me: program exited with status $ac_status" >&5
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 ( exit $ac_status )
15155 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15156 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15157 { (exit 1); exit 1; }; }
15159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15164 pgac_cv_alignof_long_long_int=0
15167 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15168 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15169 cat >>confdefs.h <<_ACEOF
15170 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15175 echo "$as_me:$LINENO: checking for double" >&5
15176 echo $ECHO_N "checking for double... $ECHO_C" >&6
15177 if test "${ac_cv_type_double+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15181 #line $LINENO "configure"
15182 #include "confdefs.h"
15183 $ac_includes_default
15184 #ifdef F77_DUMMY_MAIN
15185 # ifdef __cplusplus
15188 int F77_DUMMY_MAIN() { return 1; }
15195 if (sizeof (double))
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203 (eval $ac_compile) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } &&
15207 { ac_try='test -s conftest.$ac_objext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_type_double=yes
15215 echo "$as_me: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 ac_cv_type_double=no
15219 rm -f conftest.$ac_objext conftest.$ac_ext
15221 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15222 echo "${ECHO_T}$ac_cv_type_double" >&6
15224 echo "$as_me:$LINENO: checking alignment of double" >&5
15225 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15226 if test "${pgac_cv_alignof_double+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 if test "$ac_cv_type_double" = yes; then
15230 if test "$cross_compiling" = yes; then
15231 # Depending upon the size, compute the lo and hi bounds.
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 #include "confdefs.h"
15235 $ac_includes_default
15236 struct { char filler; double field; } pgac_struct;
15237 #ifdef F77_DUMMY_MAIN
15238 # ifdef __cplusplus
15241 int F77_DUMMY_MAIN() { return 1; }
15246 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15255 (eval $ac_compile) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15267 cat >conftest.$ac_ext <<_ACEOF
15268 #line $LINENO "configure"
15269 #include "confdefs.h"
15270 $ac_includes_default
15271 struct { char filler; double field; } pgac_struct;
15272 #ifdef F77_DUMMY_MAIN
15273 # ifdef __cplusplus
15276 int F77_DUMMY_MAIN() { return 1; }
15281 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15288 rm -f conftest.$ac_objext
15289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15290 (eval $ac_compile) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_hi=$ac_mid; break
15302 echo "$as_me: failed program was:" >&5
15303 cat conftest.$ac_ext >&5
15304 ac_lo=`expr $ac_mid + 1`
15305 if test $ac_lo -le $ac_mid; then
15309 ac_mid=`expr 2 '*' $ac_mid + 1`
15311 rm -f conftest.$ac_objext conftest.$ac_ext
15314 echo "$as_me: failed program was:" >&5
15315 cat conftest.$ac_ext >&5
15316 cat >conftest.$ac_ext <<_ACEOF
15317 #line $LINENO "configure"
15318 #include "confdefs.h"
15319 $ac_includes_default
15320 struct { char filler; double field; } pgac_struct;
15321 #ifdef F77_DUMMY_MAIN
15322 # ifdef __cplusplus
15325 int F77_DUMMY_MAIN() { return 1; }
15330 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15337 rm -f conftest.$ac_objext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15339 (eval $ac_compile) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15351 cat >conftest.$ac_ext <<_ACEOF
15352 #line $LINENO "configure"
15353 #include "confdefs.h"
15354 $ac_includes_default
15355 struct { char filler; double field; } pgac_struct;
15356 #ifdef F77_DUMMY_MAIN
15357 # ifdef __cplusplus
15360 int F77_DUMMY_MAIN() { return 1; }
15365 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374 (eval $ac_compile) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest.$ac_objext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_lo=$ac_mid; break
15386 echo "$as_me: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 ac_hi=`expr '(' $ac_mid ')' - 1`
15389 if test $ac_mid -le $ac_hi; then
15393 ac_mid=`expr 2 '*' $ac_mid`
15395 rm -f conftest.$ac_objext conftest.$ac_ext
15398 echo "$as_me: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15402 rm -f conftest.$ac_objext conftest.$ac_ext
15404 rm -f conftest.$ac_objext conftest.$ac_ext
15405 # Binary search between lo and hi bounds.
15406 while test "x$ac_lo" != "x$ac_hi"; do
15407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15408 cat >conftest.$ac_ext <<_ACEOF
15409 #line $LINENO "configure"
15410 #include "confdefs.h"
15411 $ac_includes_default
15412 struct { char filler; double field; } pgac_struct;
15413 #ifdef F77_DUMMY_MAIN
15414 # ifdef __cplusplus
15417 int F77_DUMMY_MAIN() { return 1; }
15422 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431 (eval $ac_compile) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15443 echo "$as_me: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 ac_lo=`expr '(' $ac_mid ')' + 1`
15447 rm -f conftest.$ac_objext conftest.$ac_ext
15450 ?*) pgac_cv_alignof_double=$ac_lo;;
15451 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15452 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15453 { (exit 1); exit 1; }; } ;;
15456 if test "$cross_compiling" = yes; then
15457 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15458 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15459 { (exit 1); exit 1; }; }
15461 cat >conftest.$ac_ext <<_ACEOF
15462 #line $LINENO "configure"
15463 #include "confdefs.h"
15464 $ac_includes_default
15465 struct { char filler; double field; } pgac_struct;
15466 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15467 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15469 #include <stdlib.h>
15470 #ifdef F77_DUMMY_MAIN
15471 # ifdef __cplusplus
15474 int F77_DUMMY_MAIN() { return 1; }
15480 FILE *f = fopen ("conftest.val", "w");
15483 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15485 long i = longval ();
15486 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15488 fprintf (f, "%ld\n", i);
15492 unsigned long i = ulongval ();
15493 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15495 fprintf (f, "%lu\n", i);
15497 exit (ferror (f) || fclose (f) != 0);
15503 rm -f conftest$ac_exeext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15505 (eval $ac_link) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 pgac_cv_alignof_double=`cat conftest.val`
15516 echo "$as_me: program exited with status $ac_status" >&5
15517 echo "$as_me: failed program was:" >&5
15518 cat conftest.$ac_ext >&5
15519 ( exit $ac_status )
15520 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15521 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15522 { (exit 1); exit 1; }; }
15524 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15529 pgac_cv_alignof_double=0
15532 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15533 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15534 cat >>confdefs.h <<_ACEOF
15535 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15540 # Compute maximum alignment of any basic type.
15541 # We assume long's alignment is at least as strong as char, short, or int;
15542 # but we must check long long (if it exists) and double.
15544 MAX_ALIGNOF=$pgac_cv_alignof_long
15545 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15546 MAX_ALIGNOF=$pgac_cv_alignof_double
15548 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15549 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15552 cat >>confdefs.h <<_ACEOF
15553 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15558 # Some platforms predefine the types int8, int16, etc. Only check
15559 # a (hopefully) representative subset.
15560 echo "$as_me:$LINENO: checking for int8" >&5
15561 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15562 if test "${ac_cv_type_int8+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15566 #line $LINENO "configure"
15567 #include "confdefs.h"
15569 #ifdef HAVE_SUPPORTDEFS_H
15570 #include <SupportDefs.h>
15573 #ifdef F77_DUMMY_MAIN
15574 # ifdef __cplusplus
15577 int F77_DUMMY_MAIN() { return 1; }
15590 rm -f conftest.$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_type_int8=yes
15604 echo "$as_me: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15608 rm -f conftest.$ac_objext conftest.$ac_ext
15610 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15611 echo "${ECHO_T}$ac_cv_type_int8" >&6
15612 if test $ac_cv_type_int8 = yes; then
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_INT8 1
15620 echo "$as_me:$LINENO: checking for uint8" >&5
15621 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15622 if test "${ac_cv_type_uint8+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 cat >conftest.$ac_ext <<_ACEOF
15626 #line $LINENO "configure"
15627 #include "confdefs.h"
15629 #ifdef HAVE_SUPPORTDEFS_H
15630 #include <SupportDefs.h>
15633 #ifdef F77_DUMMY_MAIN
15634 # ifdef __cplusplus
15637 int F77_DUMMY_MAIN() { return 1; }
15644 if (sizeof (uint8))
15650 rm -f conftest.$ac_objext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15652 (eval $ac_compile) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -s conftest.$ac_objext'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 ac_cv_type_uint8=yes
15664 echo "$as_me: failed program was:" >&5
15665 cat conftest.$ac_ext >&5
15666 ac_cv_type_uint8=no
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15670 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15671 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15672 if test $ac_cv_type_uint8 = yes; then
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_UINT8 1
15680 echo "$as_me:$LINENO: checking for int64" >&5
15681 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15682 if test "${ac_cv_type_int64+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 cat >conftest.$ac_ext <<_ACEOF
15686 #line $LINENO "configure"
15687 #include "confdefs.h"
15689 #ifdef HAVE_SUPPORTDEFS_H
15690 #include <SupportDefs.h>
15693 #ifdef F77_DUMMY_MAIN
15694 # ifdef __cplusplus
15697 int F77_DUMMY_MAIN() { return 1; }
15704 if (sizeof (int64))
15710 rm -f conftest.$ac_objext
15711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15712 (eval $ac_compile) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -s conftest.$ac_objext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_type_int64=yes
15724 echo "$as_me: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 ac_cv_type_int64=no
15728 rm -f conftest.$ac_objext conftest.$ac_ext
15730 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15731 echo "${ECHO_T}$ac_cv_type_int64" >&6
15732 if test $ac_cv_type_int64 = yes; then
15734 cat >>confdefs.h <<_ACEOF
15735 #define HAVE_INT64 1
15740 echo "$as_me:$LINENO: checking for uint64" >&5
15741 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15742 if test "${ac_cv_type_uint64+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15746 #line $LINENO "configure"
15747 #include "confdefs.h"
15749 #ifdef HAVE_SUPPORTDEFS_H
15750 #include <SupportDefs.h>
15753 #ifdef F77_DUMMY_MAIN
15754 # ifdef __cplusplus
15757 int F77_DUMMY_MAIN() { return 1; }
15764 if (sizeof (uint64))
15770 rm -f conftest.$ac_objext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772 (eval $ac_compile) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -s conftest.$ac_objext'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_cv_type_uint64=yes
15784 echo "$as_me: failed program was:" >&5
15785 cat conftest.$ac_ext >&5
15786 ac_cv_type_uint64=no
15788 rm -f conftest.$ac_objext conftest.$ac_ext
15790 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15791 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15792 if test $ac_cv_type_uint64 = yes; then
15794 cat >>confdefs.h <<_ACEOF
15795 #define HAVE_UINT64 1
15802 # We also check for sig_atomic_t, which *should* be defined per ANSI
15803 # C, but is missing on some old platforms.
15804 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15805 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15806 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 cat >conftest.$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15811 #include "confdefs.h"
15812 #include <signal.h>
15814 #ifdef F77_DUMMY_MAIN
15815 # ifdef __cplusplus
15818 int F77_DUMMY_MAIN() { return 1; }
15823 if ((sig_atomic_t *) 0)
15825 if (sizeof (sig_atomic_t))
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833 (eval $ac_compile) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_cv_type_sig_atomic_t=yes
15845 echo "$as_me: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15847 ac_cv_type_sig_atomic_t=no
15849 rm -f conftest.$ac_objext conftest.$ac_ext
15851 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15852 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15853 if test $ac_cv_type_sig_atomic_t = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define HAVE_SIG_ATOMIC_T 1
15864 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15865 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15866 if test "${pgac_cv_func_posix_signals+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 cat >conftest.$ac_ext <<_ACEOF
15870 #line $LINENO "configure"
15871 #include "confdefs.h"
15872 #include <signal.h>
15874 #ifdef F77_DUMMY_MAIN
15875 # ifdef __cplusplus
15878 int F77_DUMMY_MAIN() { return 1; }
15883 struct sigaction act, oact;
15884 sigemptyset(&act.sa_mask);
15885 act.sa_flags = SA_RESTART;
15886 sigaction(0, &act, &oact);
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15893 (eval $ac_link) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -s conftest$ac_exeext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 pgac_cv_func_posix_signals=yes
15905 echo "$as_me: failed program was:" >&5
15906 cat conftest.$ac_ext >&5
15907 pgac_cv_func_posix_signals=no
15909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15912 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15913 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15915 cat >>confdefs.h <<\_ACEOF
15916 #define HAVE_POSIX_SIGNALS
15920 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15922 if test $ac_cv_func_fseeko = yes; then
15923 # Check whether --enable-largefile or --disable-largefile was given.
15924 if test "${enable_largefile+set}" = set; then
15925 enableval="$enable_largefile"
15928 if test "$enable_largefile" != no; then
15930 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15931 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15932 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 ac_cv_sys_largefile_CC=no
15936 if test "$GCC" != yes; then
15939 # IRIX 6.2 and later do not support large files by default,
15940 # so use the C compiler's -n32 option if that helps.
15941 cat >conftest.$ac_ext <<_ACEOF
15942 #line $LINENO "configure"
15943 #include "confdefs.h"
15944 #include <sys/types.h>
15945 /* Check that off_t can represent 2**63 - 1 correctly.
15946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15947 since some C++ compilers masquerading as C compilers
15948 incorrectly reject 9223372036854775807. */
15949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15951 && LARGE_OFF_T % 2147483647 == 1)
15953 #ifdef F77_DUMMY_MAIN
15954 # ifdef __cplusplus
15957 int F77_DUMMY_MAIN() { return 1; }
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15981 echo "$as_me: failed program was:" >&5
15982 cat conftest.$ac_ext >&5
15984 rm -f conftest.$ac_objext
15986 rm -f conftest.$ac_objext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988 (eval $ac_compile) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
15992 { ac_try='test -s conftest.$ac_objext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_sys_largefile_CC=' -n32'; break
16000 echo "$as_me: failed program was:" >&5
16001 cat conftest.$ac_ext >&5
16003 rm -f conftest.$ac_objext
16007 rm -f conftest.$ac_ext
16010 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16011 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16012 if test "$ac_cv_sys_largefile_CC" != no; then
16013 CC=$CC$ac_cv_sys_largefile_CC
16016 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16017 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16018 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 ac_cv_sys_file_offset_bits=no
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 #include "confdefs.h"
16026 #include <sys/types.h>
16027 /* Check that off_t can represent 2**63 - 1 correctly.
16028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16029 since some C++ compilers masquerading as C compilers
16030 incorrectly reject 9223372036854775807. */
16031 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16033 && LARGE_OFF_T % 2147483647 == 1)
16035 #ifdef F77_DUMMY_MAIN
16036 # ifdef __cplusplus
16039 int F77_DUMMY_MAIN() { return 1; }
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -s conftest.$ac_objext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16063 echo "$as_me: failed program was:" >&5
16064 cat conftest.$ac_ext >&5
16066 rm -f conftest.$ac_objext conftest.$ac_ext
16067 cat >conftest.$ac_ext <<_ACEOF
16068 #line $LINENO "configure"
16069 #include "confdefs.h"
16070 #define _FILE_OFFSET_BITS 64
16071 #include <sys/types.h>
16072 /* Check that off_t can represent 2**63 - 1 correctly.
16073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16074 since some C++ compilers masquerading as C compilers
16075 incorrectly reject 9223372036854775807. */
16076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16078 && LARGE_OFF_T % 2147483647 == 1)
16080 #ifdef F77_DUMMY_MAIN
16081 # ifdef __cplusplus
16084 int F77_DUMMY_MAIN() { return 1; }
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -s conftest.$ac_objext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_sys_file_offset_bits=64; break
16108 echo "$as_me: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16111 rm -f conftest.$ac_objext conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16116 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16117 if test "$ac_cv_sys_file_offset_bits" != no; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16125 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16126 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16127 if test "${ac_cv_sys_large_files+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 ac_cv_sys_large_files=no
16132 cat >conftest.$ac_ext <<_ACEOF
16133 #line $LINENO "configure"
16134 #include "confdefs.h"
16135 #include <sys/types.h>
16136 /* Check that off_t can represent 2**63 - 1 correctly.
16137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16138 since some C++ compilers masquerading as C compilers
16139 incorrectly reject 9223372036854775807. */
16140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16142 && LARGE_OFF_T % 2147483647 == 1)
16144 #ifdef F77_DUMMY_MAIN
16145 # ifdef __cplusplus
16148 int F77_DUMMY_MAIN() { return 1; }
16158 rm -f conftest.$ac_objext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16160 (eval $ac_compile) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
16164 { ac_try='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16172 echo "$as_me: failed program was:" >&5
16173 cat conftest.$ac_ext >&5
16175 rm -f conftest.$ac_objext conftest.$ac_ext
16176 cat >conftest.$ac_ext <<_ACEOF
16177 #line $LINENO "configure"
16178 #include "confdefs.h"
16179 #define _LARGE_FILES 1
16180 #include <sys/types.h>
16181 /* Check that off_t can represent 2**63 - 1 correctly.
16182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16183 since some C++ compilers masquerading as C compilers
16184 incorrectly reject 9223372036854775807. */
16185 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16187 && LARGE_OFF_T % 2147483647 == 1)
16189 #ifdef F77_DUMMY_MAIN
16190 # ifdef __cplusplus
16193 int F77_DUMMY_MAIN() { return 1; }
16203 rm -f conftest.$ac_objext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205 (eval $ac_compile) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_cv_sys_large_files=1; break
16217 echo "$as_me: failed program was:" >&5
16218 cat conftest.$ac_ext >&5
16220 rm -f conftest.$ac_objext conftest.$ac_ext
16224 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16225 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16226 if test "$ac_cv_sys_large_files" != no; then
16228 cat >>confdefs.h <<_ACEOF
16229 #define _LARGE_FILES $ac_cv_sys_large_files
16239 # Select semaphore implementation type.
16240 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16242 cat >>confdefs.h <<\_ACEOF
16243 #define USE_NAMED_POSIX_SEMAPHORES 1
16246 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16248 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16250 cat >>confdefs.h <<\_ACEOF
16251 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16254 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16257 cat >>confdefs.h <<\_ACEOF
16258 #define USE_SYSV_SEMAPHORES 1
16261 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16266 # Select shared-memory implementation type.
16268 cat >>confdefs.h <<\_ACEOF
16269 #define USE_SYSV_SHARED_MEMORY 1
16272 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16275 if test "$enable_nls" = yes ; then
16277 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16278 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16279 if test "${ac_cv_search_gettext+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 ac_func_search_save_LIBS=$LIBS
16283 ac_cv_search_gettext=no
16284 cat >conftest.$ac_ext <<_ACEOF
16285 #line $LINENO "configure"
16286 #include "confdefs.h"
16288 /* Override any gcc2 internal prototype to avoid an error. */
16292 /* We use char because int might match the return type of a gcc2
16293 builtin and then its argument prototype would still apply. */
16295 #ifdef F77_DUMMY_MAIN
16296 # ifdef __cplusplus
16299 int F77_DUMMY_MAIN() { return 1; }
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311 (eval $ac_link) 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -s conftest$ac_exeext'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 ac_cv_search_gettext="none required"
16323 echo "$as_me: failed program was:" >&5
16324 cat conftest.$ac_ext >&5
16326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16327 if test "$ac_cv_search_gettext" = no; then
16328 for ac_lib in intl; do
16329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16330 cat >conftest.$ac_ext <<_ACEOF
16331 #line $LINENO "configure"
16332 #include "confdefs.h"
16334 /* Override any gcc2 internal prototype to avoid an error. */
16338 /* We use char because int might match the return type of a gcc2
16339 builtin and then its argument prototype would still apply. */
16341 #ifdef F77_DUMMY_MAIN
16342 # ifdef __cplusplus
16345 int F77_DUMMY_MAIN() { return 1; }
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16357 (eval $ac_link) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -s conftest$ac_exeext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_search_gettext="-l$ac_lib"
16370 echo "$as_me: failed program was:" >&5
16371 cat conftest.$ac_ext >&5
16373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16376 LIBS=$ac_func_search_save_LIBS
16378 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16379 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16380 if test "$ac_cv_search_gettext" != no; then
16381 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16384 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16385 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16386 { (exit 1); exit 1; }; }
16389 if test "${ac_cv_header_libintl_h+set}" = set; then
16390 echo "$as_me:$LINENO: checking for libintl.h" >&5
16391 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16392 if test "${ac_cv_header_libintl_h+set}" = set; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16396 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16398 # Is the header compilable?
16399 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16400 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16401 cat >conftest.$ac_ext <<_ACEOF
16402 #line $LINENO "configure"
16403 #include "confdefs.h"
16404 $ac_includes_default
16405 #include <libintl.h>
16407 rm -f conftest.$ac_objext
16408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16409 (eval $ac_compile) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
16413 { ac_try='test -s conftest.$ac_objext'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_header_compiler=yes
16421 echo "$as_me: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 ac_header_compiler=no
16425 rm -f conftest.$ac_objext conftest.$ac_ext
16426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16427 echo "${ECHO_T}$ac_header_compiler" >&6
16429 # Is the header present?
16430 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16431 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16432 cat >conftest.$ac_ext <<_ACEOF
16433 #line $LINENO "configure"
16434 #include "confdefs.h"
16435 #include <libintl.h>
16437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16440 egrep -v '^ *\+' conftest.er1 >conftest.err
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } >/dev/null; then
16445 if test -s conftest.err; then
16446 ac_cpp_err=$ac_c_preproc_warn_flag
16453 if test -z "$ac_cpp_err"; then
16454 ac_header_preproc=yes
16456 echo "$as_me: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16458 ac_header_preproc=no
16460 rm -f conftest.err conftest.$ac_ext
16461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16462 echo "${ECHO_T}$ac_header_preproc" >&6
16464 # So? What about this header?
16465 case $ac_header_compiler:$ac_header_preproc in
16467 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16468 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16470 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16472 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16473 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16475 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16477 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16479 echo "$as_me:$LINENO: checking for libintl.h" >&5
16480 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16481 if test "${ac_cv_header_libintl_h+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 ac_cv_header_libintl_h=$ac_header_preproc
16486 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16487 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16490 if test $ac_cv_header_libintl_h = yes; then
16493 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16494 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16495 { (exit 1); exit 1; }; }
16499 for ac_prog in msgfmt
16501 # Extract the first word of "$ac_prog", so it can be a program name with args.
16502 set dummy $ac_prog; ac_word=$2
16503 echo "$as_me:$LINENO: checking for $ac_word" >&5
16504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16505 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 if test -n "$MSGFMT"; then
16509 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_prog_MSGFMT="$ac_prog"
16519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16527 MSGFMT=$ac_cv_prog_MSGFMT
16528 if test -n "$MSGFMT"; then
16529 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16530 echo "${ECHO_T}$MSGFMT" >&6
16532 echo "$as_me:$LINENO: result: no" >&5
16533 echo "${ECHO_T}no" >&6
16536 test -n "$MSGFMT" && break
16539 if test -z "$MSGFMT"; then
16540 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16541 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16542 { (exit 1); exit 1; }; }
16544 for ac_prog in msgmerge
16546 # Extract the first word of "$ac_prog", so it can be a program name with args.
16547 set dummy $ac_prog; ac_word=$2
16548 echo "$as_me:$LINENO: checking for $ac_word" >&5
16549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16550 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 if test -n "$MSGMERGE"; then
16554 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16557 for as_dir in $PATH
16560 test -z "$as_dir" && as_dir=.
16561 for ac_exec_ext in '' $ac_executable_extensions; do
16562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16563 ac_cv_prog_MSGMERGE="$ac_prog"
16564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16572 MSGMERGE=$ac_cv_prog_MSGMERGE
16573 if test -n "$MSGMERGE"; then
16574 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16575 echo "${ECHO_T}$MSGMERGE" >&6
16577 echo "$as_me:$LINENO: result: no" >&5
16578 echo "${ECHO_T}no" >&6
16581 test -n "$MSGMERGE" && break
16584 for ac_prog in xgettext
16586 # Extract the first word of "$ac_prog", so it can be a program name with args.
16587 set dummy $ac_prog; ac_word=$2
16588 echo "$as_me:$LINENO: checking for $ac_word" >&5
16589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16590 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 if test -n "$XGETTEXT"; then
16594 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597 for as_dir in $PATH
16600 test -z "$as_dir" && as_dir=.
16601 for ac_exec_ext in '' $ac_executable_extensions; do
16602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16603 ac_cv_prog_XGETTEXT="$ac_prog"
16604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16612 XGETTEXT=$ac_cv_prog_XGETTEXT
16613 if test -n "$XGETTEXT"; then
16614 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16615 echo "${ECHO_T}$XGETTEXT" >&6
16617 echo "$as_me:$LINENO: result: no" >&5
16618 echo "${ECHO_T}no" >&6
16621 test -n "$XGETTEXT" && break
16625 # Note: share/locale is always the default, independent of $datadir
16626 localedir='${prefix}/share/locale'
16627 if test x"$prefix" = x"NONE"; then
16628 exp_localedir="$ac_default_prefix/share/locale"
16630 exp_localedir="$prefix/share/locale"
16635 cat >>confdefs.h <<_ACEOF
16636 #define LOCALEDIR "$exp_localedir"
16642 # Check for Tcl configuration script tclConfig.sh
16643 if test "$with_tcl" = yes; then
16644 for ac_prog in tclsh tcl
16646 # Extract the first word of "$ac_prog", so it can be a program name with args.
16647 set dummy $ac_prog; ac_word=$2
16648 echo "$as_me:$LINENO: checking for $ac_word" >&5
16649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16650 if test "${ac_cv_path_TCLSH+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16659 for as_dir in $PATH
16662 test -z "$as_dir" && as_dir=.
16663 for ac_exec_ext in '' $ac_executable_extensions; do
16664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16665 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16675 TCLSH=$ac_cv_path_TCLSH
16677 if test -n "$TCLSH"; then
16678 echo "$as_me:$LINENO: result: $TCLSH" >&5
16679 echo "${ECHO_T}$TCLSH" >&6
16681 echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6
16685 test -n "$TCLSH" && break
16688 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16689 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16690 # Let user override test
16691 if test -z "$TCL_CONFIG_SH"; then
16692 pgac_test_dirs="$with_tclconfig"
16694 set X $pgac_test_dirs; shift
16695 if test $# -eq 0; then
16696 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16697 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16698 { (exit 1); exit 1; }; }
16699 set X `echo 'puts $auto_path' | $TCLSH`; shift
16703 if test -r "$pgac_dir/tclConfig.sh"; then
16704 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16710 if test -z "$TCL_CONFIG_SH"; then
16711 echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6
16713 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16714 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16715 { (exit 1); exit 1; }; }
16717 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16718 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16724 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16725 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16726 eval TCL_LIBS=\"$TCL_LIBS\"
16727 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16728 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16732 # Check for Tk configuration script tkConfig.sh
16733 if test "$with_tk" = yes; then
16734 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16735 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16736 # Let user override test
16737 if test -z "$TK_CONFIG_SH"; then
16738 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16740 set X $pgac_test_dirs; shift
16741 if test $# -eq 0; then
16742 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16743 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16744 { (exit 1); exit 1; }; }
16745 set X `echo 'puts $auto_path' | $TCLSH`; shift
16749 if test -r "$pgac_dir/tkConfig.sh"; then
16750 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16756 if test -z "$TK_CONFIG_SH"; then
16757 echo "$as_me:$LINENO: result: no" >&5
16758 echo "${ECHO_T}no" >&6
16759 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16760 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16761 { (exit 1); exit 1; }; }
16763 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16764 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16770 eval TK_LIBS=\"$TK_LIBS\"
16771 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16772 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16778 # Check for DocBook and tools
16780 for ac_prog in onsgmls nsgmls
16782 # Extract the first word of "$ac_prog", so it can be a program name with args.
16783 set dummy $ac_prog; ac_word=$2
16784 echo "$as_me:$LINENO: checking for $ac_word" >&5
16785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16786 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 if test -n "$NSGMLS"; then
16790 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16793 for as_dir in $PATH
16796 test -z "$as_dir" && as_dir=.
16797 for ac_exec_ext in '' $ac_executable_extensions; do
16798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16799 ac_cv_prog_NSGMLS="$ac_prog"
16800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16808 NSGMLS=$ac_cv_prog_NSGMLS
16809 if test -n "$NSGMLS"; then
16810 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16811 echo "${ECHO_T}$NSGMLS" >&6
16813 echo "$as_me:$LINENO: result: no" >&5
16814 echo "${ECHO_T}no" >&6
16817 test -n "$NSGMLS" && break
16820 for ac_prog in openjade jade
16822 # Extract the first word of "$ac_prog", so it can be a program name with args.
16823 set dummy $ac_prog; ac_word=$2
16824 echo "$as_me:$LINENO: checking for $ac_word" >&5
16825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16826 if test "${ac_cv_prog_JADE+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 if test -n "$JADE"; then
16830 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16836 test -z "$as_dir" && as_dir=.
16837 for ac_exec_ext in '' $ac_executable_extensions; do
16838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839 ac_cv_prog_JADE="$ac_prog"
16840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16848 JADE=$ac_cv_prog_JADE
16849 if test -n "$JADE"; then
16850 echo "$as_me:$LINENO: result: $JADE" >&5
16851 echo "${ECHO_T}$JADE" >&6
16853 echo "$as_me:$LINENO: result: no" >&5
16854 echo "${ECHO_T}no" >&6
16857 test -n "$JADE" && break
16861 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16862 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16863 if test "${pgac_cv_check_docbook+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 cat >conftest.sgml <<EOF
16867 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16869 <title>test</title>
16871 <title>random</title>
16873 <title>testsect</title>
16880 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16881 if test $? -eq 0; then
16882 pgac_cv_check_docbook=yes
16884 pgac_cv_check_docbook=no
16886 rm -f conftest.sgml
16888 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16889 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16891 have_docbook=$pgac_cv_check_docbook
16894 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16895 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16896 if test "${pgac_cv_path_stylesheets+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 if test -n "$DOCBOOKSTYLE"; then
16900 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16902 for pgac_prefix in /usr /usr/local /opt; do
16903 for pgac_infix in share lib; do
16904 for pgac_postfix in \
16905 sgml/stylesheets/nwalsh-modular \
16906 sgml/stylesheets/docbook \
16907 sgml/docbook/dsssl/modular \
16908 sgml/docbook/stylesheet/dsssl/modular \
16909 sgml/docbook/dsssl-stylesheets
16911 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16912 if test -r "$pgac_candidate/html/docbook.dsl" \
16913 && test -r "$pgac_candidate/print/docbook.dsl"
16915 pgac_cv_path_stylesheets=$pgac_candidate
16924 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16926 if test -n "$DOCBOOKSTYLE"; then
16927 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16928 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16930 echo "$as_me:$LINENO: result: no" >&5
16931 echo "${ECHO_T}no" >&6
16933 if test -n "$DOCBOOKSTYLE"; then
16934 for ac_prog in collateindex.pl
16936 # Extract the first word of "$ac_prog", so it can be a program name with args.
16937 set dummy $ac_prog; ac_word=$2
16938 echo "$as_me:$LINENO: checking for $ac_word" >&5
16939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16940 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 case $COLLATEINDEX in
16945 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16949 for as_dir in $DOCBOOKSTYLE/bin $PATH
16952 test -z "$as_dir" && as_dir=.
16953 for ac_exec_ext in '' $ac_executable_extensions; do
16954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16955 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16965 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16967 if test -n "$COLLATEINDEX"; then
16968 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16969 echo "${ECHO_T}$COLLATEINDEX" >&6
16971 echo "$as_me:$LINENO: result: no" >&5
16972 echo "${ECHO_T}no" >&6
16975 test -n "$COLLATEINDEX" && break
16979 for ac_prog in collateindex.pl
16981 # Extract the first word of "$ac_prog", so it can be a program name with args.
16982 set dummy $ac_prog; ac_word=$2
16983 echo "$as_me:$LINENO: checking for $ac_word" >&5
16984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16985 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 case $COLLATEINDEX in
16990 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16994 for as_dir in $PATH
16997 test -z "$as_dir" && as_dir=.
16998 for ac_exec_ext in '' $ac_executable_extensions; do
16999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17000 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17010 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17012 if test -n "$COLLATEINDEX"; then
17013 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17014 echo "${ECHO_T}$COLLATEINDEX" >&6
17016 echo "$as_me:$LINENO: result: no" >&5
17017 echo "${ECHO_T}no" >&6
17020 test -n "$COLLATEINDEX" && break
17024 for ac_prog in sgmlspl
17026 # Extract the first word of "$ac_prog", so it can be a program name with args.
17027 set dummy $ac_prog; ac_word=$2
17028 echo "$as_me:$LINENO: checking for $ac_word" >&5
17029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17030 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 if test -n "$SGMLSPL"; then
17034 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17037 for as_dir in $PATH
17040 test -z "$as_dir" && as_dir=.
17041 for ac_exec_ext in '' $ac_executable_extensions; do
17042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17043 ac_cv_prog_SGMLSPL="$ac_prog"
17044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17052 SGMLSPL=$ac_cv_prog_SGMLSPL
17053 if test -n "$SGMLSPL"; then
17054 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17055 echo "${ECHO_T}$SGMLSPL" >&6
17057 echo "$as_me:$LINENO: result: no" >&5
17058 echo "${ECHO_T}no" >&6
17061 test -n "$SGMLSPL" && break
17066 # prepare build tree if outside source tree
17067 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17068 # Note 2: /bin/pwd might be better than shell's built-in at getting
17069 # a symlink-free name.
17070 if test "$no_create" != yes; then
17071 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17076 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17077 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17078 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17079 || { { echo "$as_me:$LINENO: error: failed" >&5
17080 echo "$as_me: error: failed" >&2;}
17081 { (exit 1); exit 1; }; }
17082 echo "$as_me:$LINENO: result: done" >&5
17083 echo "${ECHO_T}done" >&6
17088 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17091 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}"
17094 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17097 cat >confcache <<\_ACEOF
17098 # This file is a shell script that caches the results of configure
17099 # tests run on this system so they can be shared between configure
17100 # scripts and configure runs, see configure's option --config-cache.
17101 # It is not useful on other systems. If it contains results you don't
17102 # want to keep, you may remove or edit it.
17104 # config.status only pays attention to the cache file if you give it
17105 # the --recheck option to rerun configure.
17107 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17109 # following values.
17113 # The following way of writing the cache mishandles newlines in values,
17114 # but we know of no workaround that is simple, portable, and efficient.
17115 # So, don't put newlines in cache variables' values.
17116 # Ultrix sh set writes to stderr and can't be redirected directly,
17117 # and sets the high bit in the cache file unless we assign to the vars.
17120 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17122 # `set' does not quote correctly, so add quotes (double-quote
17123 # substitution turns \\\\ into \\, and sed turns \\ into \).
17126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17129 # `set' quotes correctly as required by POSIX, so do not add quotes.
17131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17140 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17142 if cmp -s $cache_file confcache; then :; else
17143 if test -w $cache_file; then
17144 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17145 cat confcache >$cache_file
17147 echo "not updating unwritable cache $cache_file"
17152 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17153 # Let make expand exec_prefix.
17154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17156 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17157 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17158 # trailing colons and then remove the whole line if VPATH becomes empty
17159 # (actually we leave an empty line to preserve line numbers).
17160 if test "x$srcdir" = x.; then
17161 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17162 s/:*\$(srcdir):*/:/;
17163 s/:*\${srcdir}:*/:/;
17165 s/^\([^=]*=[ ]*\):*/\1/;
17171 DEFS=-DHAVE_CONFIG_H
17174 : ${CONFIG_STATUS=./config.status}
17175 ac_clean_files_save=$ac_clean_files
17176 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17177 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17178 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17179 cat >$CONFIG_STATUS <<_ACEOF
17181 # Generated by $as_me.
17182 # Run this file to recreate the current configuration.
17183 # Compiler output produced by configure, useful for debugging
17184 # configure, is in config.log if it exists.
17187 SHELL=\${CONFIG_SHELL-$SHELL}
17190 cat >>$CONFIG_STATUS <<\_ACEOF
17192 ## --------------------- ##
17193 ## M4sh Initialization. ##
17194 ## --------------------- ##
17196 # Be Bourne compatible
17197 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17200 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17205 # Support unset when possible.
17206 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17212 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17213 { $as_unset LANG || test "${LANG+set}" != set; } ||
17214 { LANG=C; export LANG; }
17215 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17216 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17217 { LC_ALL=C; export LC_ALL; }
17218 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17219 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17220 { LC_TIME=C; export LC_TIME; }
17221 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17222 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17223 { LC_CTYPE=C; export LC_CTYPE; }
17224 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17225 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17226 { LANGUAGE=C; export LANGUAGE; }
17227 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17228 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17229 { LC_COLLATE=C; export LC_COLLATE; }
17230 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17231 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17232 { LC_NUMERIC=C; export LC_NUMERIC; }
17233 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17234 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17235 { LC_MESSAGES=C; export LC_MESSAGES; }
17238 # Name of the executable.
17239 as_me=`(basename "$0") 2>/dev/null ||
17240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17241 X"$0" : 'X\(//\)$' \| \
17242 X"$0" : 'X\(/\)$' \| \
17243 . : '\(.\)' 2>/dev/null ||
17245 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17246 /^X\/\(\/\/\)$/{ s//\1/; q; }
17247 /^X\/\(\/\).*/{ s//\1/; q; }
17250 # PATH needs CR, and LINENO needs CR and PATH.
17251 # Avoid depending upon Character Ranges.
17252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17255 as_cr_digits='0123456789'
17256 as_cr_alnum=$as_cr_Letters$as_cr_digits
17258 # The user is always right.
17259 if test "${PATH_SEPARATOR+set}" != set; then
17260 echo "#! /bin/sh" >conftest.sh
17261 echo "exit 0" >>conftest.sh
17262 chmod +x conftest.sh
17263 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17272 as_lineno_1=$LINENO
17273 as_lineno_2=$LINENO
17274 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17275 test "x$as_lineno_1" != "x$as_lineno_2" &&
17276 test "x$as_lineno_3" = "x$as_lineno_2" || {
17277 # Find who we are. Look in the path if we contain no path at all
17280 *[\\/]* ) as_myself=$0 ;;
17281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17285 test -z "$as_dir" && as_dir=.
17286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17291 # We did not find ourselves, most probably we were run as `sh COMMAND'
17292 # in which case we are not to be found in the path.
17293 if test "x$as_myself" = x; then
17296 if test ! -f "$as_myself"; then
17297 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17298 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17299 { (exit 1); exit 1; }; }
17301 case $CONFIG_SHELL in
17303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17307 test -z "$as_dir" && as_dir=.
17308 for as_base in sh bash ksh sh5; do
17311 if ("$as_dir/$as_base" -c '
17312 as_lineno_1=$LINENO
17313 as_lineno_2=$LINENO
17314 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17315 test "x$as_lineno_1" != "x$as_lineno_2" &&
17316 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17317 CONFIG_SHELL=$as_dir/$as_base
17318 export CONFIG_SHELL
17319 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17328 # uniformly replaced by the line number. The first 'sed' inserts a
17329 # line-number line before each line; the second 'sed' does the real
17330 # work. The second script uses 'N' to pair each line-number line
17331 # with the numbered line, and appends trailing '-' during
17332 # substitution so that $LINENO is not a special case at line end.
17333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17334 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17335 sed '=' <$as_myself |
17340 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17343 s,^['$as_cr_digits']*\n,,
17344 ' >$as_me.lineno &&
17345 chmod +x $as_me.lineno ||
17346 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17347 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17348 { (exit 1); exit 1; }; }
17350 # Don't try to exec as it changes $[0], causing all sort of problems
17351 # (the dirname of $[0] is not the place where we might find the
17352 # original and so on. Autoconf is especially sensible to this).
17354 # Exit status is that of the last command.
17359 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17360 *c*,-n*) ECHO_N= ECHO_C='
17362 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17363 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17366 if expr a : '\(a\)' >/dev/null 2>&1; then
17372 rm -f conf$$ conf$$.exe conf$$.file
17374 if ln -s conf$$.file conf$$ 2>/dev/null; then
17375 # We could just check for DJGPP; but this test a) works b) is more generic
17376 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17377 if test -f conf$$.exe; then
17378 # Don't use ln at all; we don't have any links
17383 elif ln conf$$.file conf$$ 2>/dev/null; then
17388 rm -f conf$$ conf$$.exe conf$$.file
17390 as_executable_p="test -f"
17392 # Sed expression to map a string onto a valid CPP name.
17393 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17395 # Sed expression to map a string onto a valid variable name.
17396 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17400 # We need space, tab and new line, in precisely that order.
17406 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17410 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17411 # report actual input values of CONFIG_FILES etc. instead of their
17412 # values after options handling. Logging --version etc. is OK.
17416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17417 ## Running $as_me. ##
17422 This file was extended by PostgreSQL $as_me 7.4devel, which was
17423 generated by GNU Autoconf 2.53. Invocation command line was
17425 CONFIG_FILES = $CONFIG_FILES
17426 CONFIG_HEADERS = $CONFIG_HEADERS
17427 CONFIG_LINKS = $CONFIG_LINKS
17428 CONFIG_COMMANDS = $CONFIG_COMMANDS
17432 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17436 # Files that config.status was made for.
17437 if test -n "$ac_config_files"; then
17438 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17441 if test -n "$ac_config_headers"; then
17442 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17445 if test -n "$ac_config_links"; then
17446 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17449 if test -n "$ac_config_commands"; then
17450 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17453 cat >>$CONFIG_STATUS <<\_ACEOF
17456 \`$as_me' instantiates files from templates according to the
17457 current configuration.
17459 Usage: $0 [OPTIONS] [FILE]...
17461 -h, --help print this help, then exit
17462 -V, --version print version number, then exit
17463 -d, --debug don't remove temporary files
17464 --recheck update $as_me by reconfiguring in the same conditions
17465 --file=FILE[:TEMPLATE]
17466 instantiate the configuration file FILE
17467 --header=FILE[:TEMPLATE]
17468 instantiate the configuration header FILE
17470 Configuration files:
17473 Configuration headers:
17476 Configuration links:
17479 Report bugs to <bug-autoconf@gnu.org>."
17482 cat >>$CONFIG_STATUS <<_ACEOF
17484 PostgreSQL config.status 7.4devel
17485 configured by $0, generated by GNU Autoconf 2.53,
17486 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17488 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17489 Free Software Foundation, Inc.
17490 This config.status script is free software; the Free Software Foundation
17491 gives unlimited permission to copy, distribute and modify it."
17495 cat >>$CONFIG_STATUS <<\_ACEOF
17496 # If no file are specified by the user, then we need to provide default
17497 # value. By we need to know if files were specified by the user.
17503 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17504 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17506 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17510 *) # This is not an option, so the user has probably given explicit
17512 ac_need_defaults=false;;
17516 # Handling of the options.
17518 cat >>$CONFIG_STATUS <<_ACEOF
17519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17520 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17521 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17523 cat >>$CONFIG_STATUS <<\_ACEOF
17524 --version | --vers* | -V )
17525 echo "$ac_cs_version"; exit 0 ;;
17527 # Conflict between --help and --header
17528 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17529 Try \`$0 --help' for more information." >&5
17530 echo "$as_me: error: ambiguous option: $1
17531 Try \`$0 --help' for more information." >&2;}
17532 { (exit 1); exit 1; }; };;
17533 --help | --hel | -h )
17534 echo "$ac_cs_usage"; exit 0 ;;
17535 --debug | --d* | -d )
17537 --file | --fil | --fi | --f )
17539 CONFIG_FILES="$CONFIG_FILES $1"
17540 ac_need_defaults=false;;
17541 --header | --heade | --head | --hea )
17543 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17544 ac_need_defaults=false;;
17546 # This is an error.
17547 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17548 Try \`$0 --help' for more information." >&5
17549 echo "$as_me: error: unrecognized option: $1
17550 Try \`$0 --help' for more information." >&2;}
17551 { (exit 1); exit 1; }; } ;;
17553 *) ac_config_targets="$ac_config_targets $1" ;;
17565 cat >>$CONFIG_STATUS <<\_ACEOF
17566 for ac_config_target in $ac_config_targets
17568 case "$ac_config_target" in
17569 # Handling of arguments.
17570 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17571 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17572 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17573 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17574 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17575 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17576 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17577 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17578 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17579 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17580 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17581 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17582 { (exit 1); exit 1; }; };;
17586 # If the user did not use the arguments to specify the items to instantiate,
17587 # then the envvar interface is used. Set only those that are not.
17588 # We use the long form for the default assignment because of an extremely
17589 # bizarre bug on SunOS 4.1.3.
17590 if $ac_need_defaults; then
17591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17593 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17596 # Create a temporary directory, and hook for its removal unless debugging.
17599 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17600 trap '{ (exit 1); exit 1; }' 1 2 13 15
17603 # Create a (secure) tmp directory for tmp files.
17606 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17607 test -n "$tmp" && test -d "$tmp"
17610 tmp=$TMPDIR/cs$$-$RANDOM
17611 (umask 077 && mkdir $tmp)
17614 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17615 { (exit 1); exit 1; }
17620 cat >>$CONFIG_STATUS <<_ACEOF
17623 # CONFIG_FILES section.
17626 # No need to generate the scripts if there are no CONFIG_FILES.
17627 # This happens for instance when ./config.status config.h
17628 if test -n "\$CONFIG_FILES"; then
17629 # Protect against being on the right side of a sed subst in config.status.
17630 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17631 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17632 s,@SHELL@,$SHELL,;t t
17633 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17634 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17635 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17636 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17637 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17638 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17639 s,@exec_prefix@,$exec_prefix,;t t
17640 s,@prefix@,$prefix,;t t
17641 s,@program_transform_name@,$program_transform_name,;t t
17642 s,@bindir@,$bindir,;t t
17643 s,@sbindir@,$sbindir,;t t
17644 s,@libexecdir@,$libexecdir,;t t
17645 s,@datadir@,$datadir,;t t
17646 s,@sysconfdir@,$sysconfdir,;t t
17647 s,@sharedstatedir@,$sharedstatedir,;t t
17648 s,@localstatedir@,$localstatedir,;t t
17649 s,@libdir@,$libdir,;t t
17650 s,@includedir@,$includedir,;t t
17651 s,@oldincludedir@,$oldincludedir,;t t
17652 s,@infodir@,$infodir,;t t
17653 s,@mandir@,$mandir,;t t
17654 s,@build_alias@,$build_alias,;t t
17655 s,@host_alias@,$host_alias,;t t
17656 s,@target_alias@,$target_alias,;t t
17657 s,@DEFS@,$DEFS,;t t
17658 s,@ECHO_C@,$ECHO_C,;t t
17659 s,@ECHO_N@,$ECHO_N,;t t
17660 s,@ECHO_T@,$ECHO_T,;t t
17661 s,@LIBS@,$LIBS,;t t
17662 s,@docdir@,$docdir,;t t
17663 s,@configure_args@,$configure_args,;t t
17664 s,@build@,$build,;t t
17665 s,@build_cpu@,$build_cpu,;t t
17666 s,@build_vendor@,$build_vendor,;t t
17667 s,@build_os@,$build_os,;t t
17668 s,@host@,$host,;t t
17669 s,@host_cpu@,$host_cpu,;t t
17670 s,@host_vendor@,$host_vendor,;t t
17671 s,@host_os@,$host_os,;t t
17672 s,@PORTNAME@,$PORTNAME,;t t
17674 s,@enable_nls@,$enable_nls,;t t
17675 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17676 s,@default_port@,$default_port,;t t
17677 s,@enable_shared@,$enable_shared,;t t
17678 s,@enable_rpath@,$enable_rpath,;t t
17679 s,@enable_debug@,$enable_debug,;t t
17681 s,@CFLAGS@,$CFLAGS,;t t
17682 s,@LDFLAGS@,$LDFLAGS,;t t
17683 s,@CPPFLAGS@,$CPPFLAGS,;t t
17684 s,@ac_ct_CC@,$ac_ct_CC,;t t
17685 s,@EXEEXT@,$EXEEXT,;t t
17686 s,@OBJEXT@,$OBJEXT,;t t
17689 s,@autodepend@,$autodepend,;t t
17690 s,@INCLUDES@,$INCLUDES,;t t
17691 s,@with_threads@,$with_threads,;t t
17692 s,@with_tcl@,$with_tcl,;t t
17693 s,@with_tk@,$with_tk,;t t
17694 s,@with_perl@,$with_perl,;t t
17695 s,@with_python@,$with_python,;t t
17697 s,@with_java@,$with_java,;t t
17698 s,@with_krb4@,$with_krb4,;t t
17699 s,@with_krb5@,$with_krb5,;t t
17700 s,@krb_srvtab@,$krb_srvtab,;t t
17701 s,@with_pam@,$with_pam,;t t
17702 s,@with_rendezvous@,$with_rendezvous,;t t
17703 s,@with_openssl@,$with_openssl,;t t
17704 s,@ELF_SYS@,$ELF_SYS,;t t
17705 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17706 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17708 s,@FLEX@,$FLEX,;t t
17709 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17710 s,@LN_S@,$LN_S,;t t
17712 s,@with_gnu_ld@,$with_gnu_ld,;t t
17713 s,@ld_R_works@,$ld_R_works,;t t
17714 s,@RANLIB@,$RANLIB,;t t
17715 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17716 s,@LORDER@,$LORDER,;t t
17718 s,@STRIP@,$STRIP,;t t
17719 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17720 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17721 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17722 s,@YACC@,$YACC,;t t
17723 s,@YFLAGS@,$YFLAGS,;t t
17724 s,@PERL@,$PERL,;t t
17725 s,@perl_archlibexp@,$perl_archlibexp,;t t
17726 s,@perl_privlibexp@,$perl_privlibexp,;t t
17727 s,@perl_useshrplib@,$perl_useshrplib,;t t
17728 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17729 s,@PYTHON@,$PYTHON,;t t
17730 s,@python_version@,$python_version,;t t
17731 s,@python_prefix@,$python_prefix,;t t
17732 s,@python_execprefix@,$python_execprefix,;t t
17733 s,@python_configdir@,$python_configdir,;t t
17734 s,@python_moduledir@,$python_moduledir,;t t
17735 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17736 s,@python_includespec@,$python_includespec,;t t
17737 s,@python_libspec@,$python_libspec,;t t
17738 s,@LIBOBJS@,$LIBOBJS,;t t
17739 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17740 s,@MSGFMT@,$MSGFMT,;t t
17741 s,@MSGMERGE@,$MSGMERGE,;t t
17742 s,@XGETTEXT@,$XGETTEXT,;t t
17743 s,@localedir@,$localedir,;t t
17744 s,@TCLSH@,$TCLSH,;t t
17745 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17746 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17747 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17748 s,@TCL_LIBS@,$TCL_LIBS,;t t
17749 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17750 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17751 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17752 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17753 s,@TK_LIBS@,$TK_LIBS,;t t
17754 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17755 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17756 s,@NSGMLS@,$NSGMLS,;t t
17757 s,@JADE@,$JADE,;t t
17758 s,@have_docbook@,$have_docbook,;t t
17759 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17760 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17761 s,@SGMLSPL@,$SGMLSPL,;t t
17762 s,@vpath_build@,$vpath_build,;t t
17767 cat >>$CONFIG_STATUS <<\_ACEOF
17768 # Split the substitutions into bite-sized pieces for seds with
17769 # small command number limits, like on Digital OSF/1 and HP-UX.
17770 ac_max_sed_lines=48
17771 ac_sed_frag=1 # Number of current file.
17772 ac_beg=1 # First line for current file.
17773 ac_end=$ac_max_sed_lines # Line after last line for current file.
17776 while $ac_more_lines; do
17777 if test $ac_beg -gt 1; then
17778 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17780 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17782 if test ! -s $tmp/subs.frag; then
17783 ac_more_lines=false
17785 # The purpose of the label and of the branching condition is to
17786 # speed up the sed processing (if there are no `@' at all, there
17787 # is no need to browse any of the substitutions).
17788 # These are the two extra sed commands mentioned above.
17790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17791 if test -z "$ac_sed_cmds"; then
17792 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17794 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17796 ac_sed_frag=`expr $ac_sed_frag + 1`
17798 ac_end=`expr $ac_end + $ac_max_sed_lines`
17801 if test -z "$ac_sed_cmds"; then
17804 fi # test -n "$CONFIG_FILES"
17807 cat >>$CONFIG_STATUS <<\_ACEOF
17808 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17811 - | *:- | *:-:* ) # input from stdin
17813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17817 * ) ac_file_in=$ac_file.in ;;
17820 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17821 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17823 X"$ac_file" : 'X\(//\)[^/]' \| \
17824 X"$ac_file" : 'X\(//\)$' \| \
17825 X"$ac_file" : 'X\(/\)' \| \
17826 . : '\(.\)' 2>/dev/null ||
17828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17830 /^X\(\/\/\)$/{ s//\1/; q; }
17831 /^X\(\/\).*/{ s//\1/; q; }
17833 { case "$ac_dir" in
17834 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17838 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17839 case $as_mkdir_dir in
17840 # Skip DOS drivespec
17841 ?:) as_incr_dir=$as_mkdir_dir ;;
17843 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17844 test -d "$as_incr_dir" ||
17845 mkdir "$as_incr_dir" ||
17846 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17847 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17848 { (exit 1); exit 1; }; }
17855 if test "$ac_dir" != .; then
17856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17857 # A "../" for each directory in $ac_dir_suffix.
17858 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17860 ac_dir_suffix= ac_top_builddir=
17864 .) # No --srcdir option. We are building in place.
17866 if test -z "$ac_top_builddir"; then
17869 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17871 [\\/]* | ?:[\\/]* ) # Absolute path.
17872 ac_srcdir=$srcdir$ac_dir_suffix;
17873 ac_top_srcdir=$srcdir ;;
17874 *) # Relative path.
17875 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17876 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17878 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17880 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17881 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17882 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17883 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17887 if test x"$ac_file" != x-; then
17888 { echo "$as_me:$LINENO: creating $ac_file" >&5
17889 echo "$as_me: creating $ac_file" >&6;}
17892 # Let's still pretend it is `configure' which instantiates (i.e., don't
17893 # use $as_me), people would be surprised to read:
17894 # /* config.h. Generated by config.status. */
17895 if test x"$ac_file" = x-; then
17898 configure_input="$ac_file. "
17900 configure_input=$configure_input"Generated from `echo $ac_file_in |
17901 sed 's,.*/,,'` by configure."
17903 # First look for the input files in the build tree, otherwise in the
17905 ac_file_inputs=`IFS=:
17906 for f in $ac_file_in; do
17908 -) echo $tmp/stdin ;;
17910 # Absolute (can't be DOS-style, as IFS=:)
17911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17912 echo "$as_me: error: cannot find input file: $f" >&2;}
17913 { (exit 1); exit 1; }; }
17916 if test -f "$f"; then
17919 elif test -f "$srcdir/$f"; then
17924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17925 echo "$as_me: error: cannot find input file: $f" >&2;}
17926 { (exit 1); exit 1; }; }
17929 done` || { (exit 1); exit 1; }
17931 cat >>$CONFIG_STATUS <<_ACEOF
17935 cat >>$CONFIG_STATUS <<\_ACEOF
17937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17938 s,@configure_input@,$configure_input,;t t
17939 s,@srcdir@,$ac_srcdir,;t t
17940 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17941 s,@top_srcdir@,$ac_top_srcdir,;t t
17942 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17943 s,@builddir@,$ac_builddir,;t t
17944 s,@abs_builddir@,$ac_abs_builddir,;t t
17945 s,@top_builddir@,$ac_top_builddir,;t t
17946 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17947 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17949 if test x"$ac_file" != x-; then
17950 mv $tmp/out $ac_file
17958 cat >>$CONFIG_STATUS <<\_ACEOF
17961 # CONFIG_HEADER section.
17964 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17965 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17967 # ac_d sets the value in "#define NAME VALUE" lines.
17968 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17969 ac_dB='[ ].*$,\1#\2'
17972 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17973 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17974 ac_uB='$,\1#\2define\3'
17978 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17981 - | *:- | *:-:* ) # input from stdin
17983 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17985 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17987 * ) ac_file_in=$ac_file.in ;;
17990 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17991 echo "$as_me: creating $ac_file" >&6;}
17993 # First look for the input files in the build tree, otherwise in the
17995 ac_file_inputs=`IFS=:
17996 for f in $ac_file_in; do
17998 -) echo $tmp/stdin ;;
18000 # Absolute (can't be DOS-style, as IFS=:)
18001 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18002 echo "$as_me: error: cannot find input file: $f" >&2;}
18003 { (exit 1); exit 1; }; }
18006 if test -f "$f"; then
18009 elif test -f "$srcdir/$f"; then
18014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18015 echo "$as_me: error: cannot find input file: $f" >&2;}
18016 { (exit 1); exit 1; }; }
18019 done` || { (exit 1); exit 1; }
18020 # Remove the trailing spaces.
18021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18026 # `conftest.undefs', that substitutes the proper values into
18027 # config.h.in to produce config.h. The first handles `#define'
18028 # templates, and the second `#undef' templates.
18029 # And first: Protect against being on the right side of a sed subst in
18030 # config.status. Protect against being in an unquoted here document
18031 # in config.status.
18032 rm -f conftest.defines conftest.undefs
18033 # Using a here document instead of a string reduces the quoting nightmare.
18034 # Putting comments in sed scripts is not portable.
18036 # `end' is used to avoid that the second main sed command (meant for
18037 # 0-ary CPP macros) applies to n-ary macro definitions.
18038 # See the Autoconf documentation for `clear'.
18039 cat >confdef2sed.sed <<\_ACEOF
18044 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18046 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18049 # If some macros were called several times there might be several times
18050 # the same #defines, which is useless. Nevertheless, we may not want to
18051 # sort them, since we want the *last* AC-DEFINE to be honored.
18052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18054 rm -f confdef2sed.sed
18056 # This sed command replaces #undef with comments. This is necessary, for
18057 # example, in the case of _POSIX_SOURCE, which is predefined and required
18058 # on some systems where configure will not decide to define it.
18059 cat >>conftest.undefs <<\_ACEOF
18060 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18063 # Break up conftest.defines because some shells have a limit on the size
18064 # of here documents, and old seds have small limits too (100 cmds).
18065 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18066 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18067 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18068 echo ' :' >>$CONFIG_STATUS
18069 rm -f conftest.tail
18070 while grep . conftest.defines >/dev/null
18072 # Write a limited-size here document to $tmp/defines.sed.
18073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18074 # Speed up: don't consider the non `#define' lines.
18075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18076 # Work around the forget-to-reset-the-flag bug.
18077 echo 't clr' >>$CONFIG_STATUS
18078 echo ': clr' >>$CONFIG_STATUS
18079 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18083 mv $tmp/out $tmp/in
18085 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18086 rm -f conftest.defines
18087 mv conftest.tail conftest.defines
18089 rm -f conftest.defines
18090 echo ' fi # egrep' >>$CONFIG_STATUS
18091 echo >>$CONFIG_STATUS
18093 # Break up conftest.undefs because some shells have a limit on the size
18094 # of here documents, and old seds have small limits too (100 cmds).
18095 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18096 rm -f conftest.tail
18097 while grep . conftest.undefs >/dev/null
18099 # Write a limited-size here document to $tmp/undefs.sed.
18100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18101 # Speed up: don't consider the non `#undef'
18102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18103 # Work around the forget-to-reset-the-flag bug.
18104 echo 't clr' >>$CONFIG_STATUS
18105 echo ': clr' >>$CONFIG_STATUS
18106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18110 mv $tmp/out $tmp/in
18112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18113 rm -f conftest.undefs
18114 mv conftest.tail conftest.undefs
18116 rm -f conftest.undefs
18118 cat >>$CONFIG_STATUS <<\_ACEOF
18119 # Let's still pretend it is `configure' which instantiates (i.e., don't
18120 # use $as_me), people would be surprised to read:
18121 # /* config.h. Generated by config.status. */
18122 if test x"$ac_file" = x-; then
18123 echo "/* Generated by configure. */" >$tmp/config.h
18125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18127 cat $tmp/in >>$tmp/config.h
18129 if test x"$ac_file" != x-; then
18130 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18132 echo "$as_me: $ac_file is unchanged" >&6;}
18134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18136 X"$ac_file" : 'X\(//\)[^/]' \| \
18137 X"$ac_file" : 'X\(//\)$' \| \
18138 X"$ac_file" : 'X\(/\)' \| \
18139 . : '\(.\)' 2>/dev/null ||
18141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18143 /^X\(\/\/\)$/{ s//\1/; q; }
18144 /^X\(\/\).*/{ s//\1/; q; }
18146 { case "$ac_dir" in
18147 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18151 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18152 case $as_mkdir_dir in
18153 # Skip DOS drivespec
18154 ?:) as_incr_dir=$as_mkdir_dir ;;
18156 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18157 test -d "$as_incr_dir" ||
18158 mkdir "$as_incr_dir" ||
18159 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18160 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18161 { (exit 1); exit 1; }; }
18167 mv $tmp/config.h $ac_file
18171 rm -f $tmp/config.h
18173 # Run the commands associated with the file.
18175 src/include/pg_config.h )
18176 # Update timestamp for pg_config.h (see Makefile.global)
18177 echo >src/include/stamp-h
18182 cat >>$CONFIG_STATUS <<\_ACEOF
18185 # CONFIG_LINKS section.
18188 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18189 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18190 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18192 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18193 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18195 if test ! -r $srcdir/$ac_source; then
18196 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18197 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18198 { (exit 1); exit 1; }; }
18202 # Make relative symlinks.
18203 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18204 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18205 X"$ac_dest" : 'X\(//\)[^/]' \| \
18206 X"$ac_dest" : 'X\(//\)$' \| \
18207 X"$ac_dest" : 'X\(/\)' \| \
18208 . : '\(.\)' 2>/dev/null ||
18210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18212 /^X\(\/\/\)$/{ s//\1/; q; }
18213 /^X\(\/\).*/{ s//\1/; q; }
18215 { case "$ac_dest_dir" in
18216 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18219 as_dummy="$ac_dest_dir"
18220 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18221 case $as_mkdir_dir in
18222 # Skip DOS drivespec
18223 ?:) as_incr_dir=$as_mkdir_dir ;;
18225 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18226 test -d "$as_incr_dir" ||
18227 mkdir "$as_incr_dir" ||
18228 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18229 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18230 { (exit 1); exit 1; }; }
18237 if test "$ac_dest_dir" != .; then
18238 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18239 # A "../" for each directory in $ac_dir_suffix.
18240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18242 ac_dir_suffix= ac_top_builddir=
18246 .) # No --srcdir option. We are building in place.
18248 if test -z "$ac_top_builddir"; then
18251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18253 [\\/]* | ?:[\\/]* ) # Absolute path.
18254 ac_srcdir=$srcdir$ac_dir_suffix;
18255 ac_top_srcdir=$srcdir ;;
18256 *) # Relative path.
18257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18258 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18260 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18262 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18263 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18264 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18265 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18269 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18270 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18273 # Make a symlink if possible; otherwise try a hard link.
18274 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18275 ln $srcdir/$ac_source $ac_dest ||
18276 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18277 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18278 { (exit 1); exit 1; }; }
18282 cat >>$CONFIG_STATUS <<\_ACEOF
18284 { (exit 0); exit 0; }
18286 chmod +x $CONFIG_STATUS
18287 ac_clean_files=$ac_clean_files_save
18290 # configure is writing to config.log, and then calls config.status.
18291 # config.status does its own redirection, appending to config.log.
18292 # Unfortunately, on DOS this fails, as config.log is still kept open
18293 # by configure, so config.status won't be able to write to it; its
18294 # output is simply discarded. So we exec the FD to /dev/null,
18295 # effectively closing config.log, so it can be properly (re)opened and
18296 # appended to by config.status. When coming back to configure, we
18297 # need to make the FD available again.
18298 if test "$no_create" != yes; then
18301 $SHELL $CONFIG_STATUS || ac_cs_success=false
18303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18304 # would make configure fail if this is the last instruction.
18305 $ac_cs_success || { (exit 1); exit 1; }