2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4beta3.
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 2003 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.4beta3'
262 PACKAGE_STRING='PostgreSQL 7.4beta3'
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.4beta3 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.4beta3:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --disable-spinlocks do not use Spinlocks
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 --enable-thread-safety make client libraries thread-safe
849 --disable-largefile omit support for large files
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-includes=DIRS look for additional header files in DIRS
856 --with-libraries=DIRS look for additional libraries in DIRS
857 --with-libs=DIRS alternative spelling of --with-libraries
858 --with-pgport=PORTNUM change default port number 5432
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 modules (PL/Python)
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.4beta3
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 2003 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.4beta3, 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 hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.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
1603 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1604 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1607 # Check whether --enable-nls or --disable-nls was given.
1608 if test "${enable_nls+set}" = set; then
1609 enableval="$enable_nls"
1620 WANTED_LANGUAGES=$enableval
1629 if test "$enable_nls" = yes; then
1631 cat >>confdefs.h <<\_ACEOF
1632 #define ENABLE_NLS 1
1637 echo "$as_me:$LINENO: result: $enable_nls" >&5
1638 echo "${ECHO_T}$enable_nls" >&6
1643 # Default port number (--with-pgport), default 5432
1645 echo "$as_me:$LINENO: checking for default port number" >&5
1646 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1650 # Check whether --with-pgport or --without-pgport was given.
1651 if test "${with_pgport+set}" = set; then
1652 withval="$with_pgport"
1656 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1657 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1658 { (exit 1); exit 1; }; }
1661 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1662 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1663 { (exit 1); exit 1; }; }
1666 default_port=$withval
1674 echo "$as_me:$LINENO: result: $default_port" >&5
1675 echo "${ECHO_T}$default_port" >&6
1676 # Need both of these because some places want an integer and some a string
1678 cat >>confdefs.h <<_ACEOF
1679 #define DEF_PGPORT ${default_port}
1683 cat >>confdefs.h <<_ACEOF
1684 #define DEF_PGPORT_STR "${default_port}"
1690 # Option to disable shared libraries
1694 # Check whether --enable-shared or --disable-shared was given.
1695 if test "${enable_shared+set}" = set; then
1696 enableval="$enable_shared"
1706 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1707 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1708 { (exit 1); exit 1; }; }
1720 # '-rpath'-like feature can be disabled
1724 # Check whether --enable-rpath or --disable-rpath was given.
1725 if test "${enable_rpath+set}" = set; then
1726 enableval="$enable_rpath"
1736 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1737 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1738 { (exit 1); exit 1; }; }
1754 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1755 if test "${enable_spinlocks+set}" = set; then
1756 enableval="$enable_spinlocks"
1766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1767 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1768 { (exit 1); exit 1; }; }
1773 enable_spinlocks=yes
1779 # --enable-debug adds -g to compiler flags
1783 # Check whether --enable-debug or --disable-debug was given.
1784 if test "${enable_debug+set}" = set; then
1785 enableval="$enable_debug"
1795 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1796 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1797 { (exit 1); exit 1; }; }
1812 # For historical reasons you can also use --with-CC to specify the C compiler
1813 # to use, although the standard way to do this is to set the CC environment
1818 # Check whether --with-CC or --without-CC was given.
1819 if test "${with_CC+set}" = set; then
1824 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1825 echo "$as_me: error: argument required for --with-CC option" >&2;}
1826 { (exit 1); exit 1; }; }
1829 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1830 echo "$as_me: error: argument required for --with-CC option" >&2;}
1831 { (exit 1); exit 1; }; }
1842 aix) pgac_cc_list="gcc xlc";;
1843 irix) pgac_cc_list="cc";; # no gcc
1844 *) pgac_cc_list="gcc cc";;
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852 if test -n "$ac_tool_prefix"; then
1853 for ac_prog in $pgac_cc_list
1855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 if test -n "$CC"; then
1883 echo "$as_me:$LINENO: result: $CC" >&5
1884 echo "${ECHO_T}$CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1890 test -n "$CC" && break
1893 if test -z "$CC"; then
1895 for ac_prog in $pgac_cc_list
1897 # Extract the first word of "$ac_prog", so it can be a program name with args.
1898 set dummy $ac_prog; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$ac_ct_CC"; then
1905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_ac_ct_CC="$ac_prog"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1924 if test -n "$ac_ct_CC"; then
1925 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1926 echo "${ECHO_T}$ac_ct_CC" >&6
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1932 test -n "$ac_ct_CC" && break
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1941 { (exit 1); exit 1; }; }
1943 # Provide some information about the compiler.
1944 echo "$as_me:$LINENO:" \
1945 "checking for C compiler version" >&5
1946 ac_compiler=`set X $ac_compile; echo $2`
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1948 (eval $ac_compiler --version </dev/null >&5) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1953 (eval $ac_compiler -v </dev/null >&5) 2>&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1958 (eval $ac_compiler -V </dev/null >&5) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line $LINENO "configure"
1965 #include "confdefs.h"
1967 #ifdef F77_DUMMY_MAIN
1971 int F77_DUMMY_MAIN() { return 1; }
1981 ac_clean_files_save=$ac_clean_files
1982 ac_clean_files="$ac_clean_files a.out a.exe"
1983 # Try to create an executable without -o first, disregard a.out.
1984 # It will help us diagnose broken compilers, and finding out an intuition
1986 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1987 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1989 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1990 (eval $ac_link_default) 2>&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; then
1994 # Find the output, starting from the most likely. This scheme is
1995 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1998 # Be careful to initialize this variable, since it used to be cached.
1999 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2001 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2002 ls a.out conftest 2>/dev/null;
2003 ls a.* conftest.* 2>/dev/null`; do
2005 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2006 a.out ) # We found the default executable, but exeext='' is most
2009 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2010 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2017 echo "$as_me: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2020 echo "$as_me: error: C compiler cannot create executables" >&2;}
2021 { (exit 77); exit 77; }; }
2024 ac_exeext=$ac_cv_exeext
2025 echo "$as_me:$LINENO: result: $ac_file" >&5
2026 echo "${ECHO_T}$ac_file" >&6
2028 # Check the compiler produces executables we can run. If not, either
2029 # the compiler is broken, or we cross compile.
2030 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033 # If not cross compiling, check that we can run a simple program.
2034 if test "$cross_compiling" != yes; then
2035 if { ac_try='./$ac_file'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 if test "$cross_compiling" = maybe; then
2046 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'." >&5
2048 echo "$as_me: error: cannot run C compiled programs.
2049 If you meant to cross compile, use \`--host'." >&2;}
2050 { (exit 1); exit 1; }; }
2054 echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6
2057 rm -f a.out a.exe conftest$ac_cv_exeext
2058 ac_clean_files=$ac_clean_files_save
2059 # Check the compiler produces executables we can run. If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2062 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2063 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2064 echo "${ECHO_T}$cross_compiling" >&6
2066 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2067 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2069 (eval $ac_link) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2075 # work properly (i.e., refer to `conftest.exe'), while it won't with
2077 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2079 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2088 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2089 { (exit 1); exit 1; }; }
2092 rm -f conftest$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2094 echo "${ECHO_T}$ac_cv_exeext" >&6
2096 rm -f conftest.$ac_ext
2097 EXEEXT=$ac_cv_exeext
2099 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2100 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2101 if test "${ac_cv_objext+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 cat >conftest.$ac_ext <<_ACEOF
2105 #line $LINENO "configure"
2106 #include "confdefs.h"
2108 #ifdef F77_DUMMY_MAIN
2112 int F77_DUMMY_MAIN() { return 1; }
2122 rm -f conftest.o conftest.obj
2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2136 echo "$as_me: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2139 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2140 { (exit 1); exit 1; }; }
2143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146 echo "${ECHO_T}$ac_cv_objext" >&6
2147 OBJEXT=$ac_cv_objext
2149 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #line $LINENO "configure"
2156 #include "confdefs.h"
2158 #ifdef F77_DUMMY_MAIN
2162 int F77_DUMMY_MAIN() { return 1; }
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2189 echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2193 rm -f conftest.$ac_objext conftest.$ac_ext
2194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2199 GCC=`test $ac_compiler_gnu = yes && echo yes`
2200 ac_test_CFLAGS=${CFLAGS+set}
2201 ac_save_CFLAGS=$CFLAGS
2203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2205 if test "${ac_cv_prog_cc_g+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 cat >conftest.$ac_ext <<_ACEOF
2209 #line $LINENO "configure"
2210 #include "confdefs.h"
2212 #ifdef F77_DUMMY_MAIN
2216 int F77_DUMMY_MAIN() { return 1; }
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2240 echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2244 rm -f conftest.$ac_objext conftest.$ac_ext
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2247 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2248 if test "$ac_test_CFLAGS" = set; then
2249 CFLAGS=$ac_save_CFLAGS
2250 elif test $ac_cv_prog_cc_g = yes; then
2251 if test "$GCC" = yes; then
2257 if test "$GCC" = yes; then
2263 # Some people use a C++ compiler to compile C. Since we use `exit',
2264 # in C++ we need to declare it. In case someone uses the same compiler
2265 # for both compiling C and C++ we need to have the C++ compiler decide
2266 # the declaration of exit, since it's the most demanding environment.
2267 cat >conftest.$ac_ext <<_ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 for ac_declaration in \
2286 '#include <stdlib.h>' \
2287 'extern "C" void std::exit (int) throw (); using std::exit;' \
2288 'extern "C" void std::exit (int); using std::exit;' \
2289 'extern "C" void exit (int) throw ();' \
2290 'extern "C" void exit (int);' \
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 #include "confdefs.h"
2298 #ifdef F77_DUMMY_MAIN
2302 int F77_DUMMY_MAIN() { return 1; }
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -s conftest.$ac_objext'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; }; then
2326 echo "$as_me: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2333 #include "confdefs.h"
2335 #ifdef F77_DUMMY_MAIN
2339 int F77_DUMMY_MAIN() { return 1; }
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2369 if test -n "$ac_declaration"; then
2370 echo '#ifdef __cplusplus' >>confdefs.h
2371 echo $ac_declaration >>confdefs.h
2372 echo '#endif' >>confdefs.h
2376 echo "$as_me: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 . "$srcdir/src/template/$template" || exit
2392 # adjust CFLAGS per template
2393 if test "$ac_env_CFLAGS_set" = set; then
2394 CFLAGS=$ac_env_CFLAGS_value
2396 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2399 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2400 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2402 # We already have this in Makefile.win32, but configure needs it too
2403 if test "$PORTNAME" = "win32"
2405 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2408 # Check if the compiler still works with the template settings
2409 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2410 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2414 #include "confdefs.h"
2416 #ifdef F77_DUMMY_MAIN
2420 int F77_DUMMY_MAIN() { return 1; }
2430 rm -f conftest.$ac_objext conftest$ac_exeext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2432 (eval $ac_link) 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -s conftest$ac_exeext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 echo "$as_me:$LINENO: result: yes" >&5
2443 echo "${ECHO_T}yes" >&6
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6
2449 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2450 echo "$as_me: error: cannot proceed" >&2;}
2451 { (exit 1); exit 1; }; }
2453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2455 # Defend against gcc -ffastmath
2456 if test "$GCC" = yes; then
2457 cat >conftest.$ac_ext <<_ACEOF
2458 #line $LINENO "configure"
2459 #include "confdefs.h"
2461 #ifdef F77_DUMMY_MAIN
2465 int F77_DUMMY_MAIN() { return 1; }
2470 #ifdef __FAST_MATH__
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2494 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2495 { (exit 1); exit 1; }; }
2497 rm -f conftest.$ac_objext conftest.$ac_ext
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2506 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2507 # On Suns, sometimes $CPP names a directory.
2508 if test -n "$CPP" && test -d "$CPP"; then
2511 if test -z "$CPP"; then
2512 if test "${ac_cv_prog_CPP+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 # Double quotes because CPP needs to be expanded
2516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2519 for ac_c_preproc_warn_flag in '' yes
2521 # Use a header file that comes with gcc, so configuring glibc
2522 # with a fresh cross-compiler works.
2523 # On the NeXT, cc -E runs the code through the compiler's parser,
2524 # not just through cpp. "Syntax error" is here to catch this case.
2525 cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 #include "confdefs.h"
2531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534 egrep -v '^ *\+' conftest.er1 >conftest.err
2536 cat conftest.err >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } >/dev/null; then
2539 if test -s conftest.err; then
2540 ac_cpp_err=$ac_c_preproc_warn_flag
2547 if test -z "$ac_cpp_err"; then
2550 echo "$as_me: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 # Broken: fails on valid input.
2555 rm -f conftest.err conftest.$ac_ext
2557 # OK, works on sane cases. Now check whether non-existent headers
2558 # can be detected and how.
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #line $LINENO "configure"
2561 #include "confdefs.h"
2562 #include <ac_nonexistent.h>
2564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567 egrep -v '^ *\+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } >/dev/null; then
2572 if test -s conftest.err; then
2573 ac_cpp_err=$ac_c_preproc_warn_flag
2580 if test -z "$ac_cpp_err"; then
2581 # Broken: success on invalid input.
2584 echo "$as_me: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2586 # Passes both tests.
2590 rm -f conftest.err conftest.$ac_ext
2593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2594 rm -f conftest.err conftest.$ac_ext
2595 if $ac_preproc_ok; then
2607 echo "$as_me:$LINENO: result: $CPP" >&5
2608 echo "${ECHO_T}$CPP" >&6
2610 for ac_c_preproc_warn_flag in '' yes
2612 # Use a header file that comes with gcc, so configuring glibc
2613 # with a fresh cross-compiler works.
2614 # On the NeXT, cc -E runs the code through the compiler's parser,
2615 # not just through cpp. "Syntax error" is here to catch this case.
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2618 #include "confdefs.h"
2622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2625 egrep -v '^ *\+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } >/dev/null; then
2630 if test -s conftest.err; then
2631 ac_cpp_err=$ac_c_preproc_warn_flag
2638 if test -z "$ac_cpp_err"; then
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 # Broken: fails on valid input.
2646 rm -f conftest.err conftest.$ac_ext
2648 # OK, works on sane cases. Now check whether non-existent headers
2649 # can be detected and how.
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line $LINENO "configure"
2652 #include "confdefs.h"
2653 #include <ac_nonexistent.h>
2655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2658 egrep -v '^ *\+' conftest.er1 >conftest.err
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } >/dev/null; then
2663 if test -s conftest.err; then
2664 ac_cpp_err=$ac_c_preproc_warn_flag
2671 if test -z "$ac_cpp_err"; then
2672 # Broken: success on invalid input.
2675 echo "$as_me: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 # Passes both tests.
2681 rm -f conftest.err conftest.$ac_ext
2684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2685 rm -f conftest.err conftest.$ac_ext
2686 if $ac_preproc_ok; then
2689 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2691 { (exit 1); exit 1; }; }
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702 # Create compiler version string
2703 if test x"$GCC" = x"yes" ; then
2704 cc_string="GCC `${CC} --version | sed q`"
2709 cat >>confdefs.h <<_ACEOF
2710 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2716 # Automatic dependency tracking
2720 # Check whether --enable-depend or --disable-depend was given.
2721 if test "${enable_depend+set}" = set; then
2722 enableval="$enable_depend"
2732 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2733 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2734 { (exit 1); exit 1; }; }
2747 # Enable assert checks
2751 # Check whether --enable-cassert or --disable-cassert was given.
2752 if test "${enable_cassert+set}" = set; then
2753 enableval="$enable_cassert"
2758 cat >>confdefs.h <<\_ACEOF
2759 #define USE_ASSERT_CHECKING 1
2767 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2768 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2769 { (exit 1); exit 1; }; }
2781 # Include directories
2785 # SRCH_INC comes from the template file
2786 for dir in $with_includes $SRCH_INC; do
2787 if test -d "$dir"; then
2788 INCLUDES="$INCLUDES -I$dir"
2790 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2791 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2799 # Library directories
2803 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2804 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2805 if test -d "$dir"; then
2806 LIBDIRS="$LIBDIRS -L$dir"
2808 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2809 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2815 # Enable thread-safe client libraries
2817 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2818 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2821 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2822 if test "${enable_thread_safety+set}" = set; then
2823 enableval="$enable_thread_safety"
2828 cat >>confdefs.h <<\_ACEOF
2829 #define USE_THREADS 1
2837 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2838 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2839 { (exit 1); exit 1; }; }
2844 enable_thread_safety=no
2848 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2849 echo "${ECHO_T}$enable_thread_safety" >&6
2855 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2856 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2860 # Check whether --with-tcl or --without-tcl was given.
2861 if test "${with_tcl+set}" = set; then
2872 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2873 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2874 { (exit 1); exit 1; }; }
2883 echo "$as_me:$LINENO: result: $with_tcl" >&5
2884 echo "${ECHO_T}$with_tcl" >&6
2887 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2888 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2889 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2890 if test "$with_tcl" = yes; then
2894 # Check whether --with-tk or --without-tk was given.
2895 if test "${with_tk+set}" = set; then
2906 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2907 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2908 { (exit 1); exit 1; }; }
2920 echo "$as_me:$LINENO: result: $with_tk" >&5
2921 echo "${ECHO_T}$with_tk" >&6
2925 # We see if the path to the Tcl/Tk configuration scripts is specified.
2926 # This will override the use of tclsh to find the paths to search.
2931 # Check whether --with-tclconfig or --without-tclconfig was given.
2932 if test "${with_tclconfig+set}" = set; then
2933 withval="$with_tclconfig"
2937 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2938 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2939 { (exit 1); exit 1; }; }
2942 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2943 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2944 { (exit 1); exit 1; }; }
2954 # We see if the path to the Tk configuration scripts is specified.
2955 # This will override the use of tclsh to find the paths to search.
2960 # Check whether --with-tkconfig or --without-tkconfig was given.
2961 if test "${with_tkconfig+set}" = set; then
2962 withval="$with_tkconfig"
2966 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2967 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2968 { (exit 1); exit 1; }; }
2971 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2972 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2973 { (exit 1); exit 1; }; }
2984 # Optionally build Perl modules (PL/Perl)
2986 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2987 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2991 # Check whether --with-perl or --without-perl was given.
2992 if test "${with_perl+set}" = set; then
2993 withval="$with_perl"
3003 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3004 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3005 { (exit 1); exit 1; }; }
3014 echo "$as_me:$LINENO: result: $with_perl" >&5
3015 echo "${ECHO_T}$with_perl" >&6
3019 # Optionally build Python modules (PL/Python)
3021 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3022 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3026 # Check whether --with-python or --without-python was given.
3027 if test "${with_python+set}" = set; then
3028 withval="$with_python"
3038 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3039 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3040 { (exit 1); exit 1; }; }
3049 echo "$as_me:$LINENO: result: $with_python" >&5
3050 echo "${ECHO_T}$with_python" >&6
3054 # Optionally build the Java/JDBC tools
3056 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3057 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3061 # Check whether --with-java or --without-java was given.
3062 if test "${with_java+set}" = set; then
3063 withval="$with_java"
3067 echo "$as_me:$LINENO: result: yes" >&5
3068 echo "${ECHO_T}yes" >&6
3070 for ac_prog in jakarta-ant ant ant.sh ant.bat
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_path_ANT+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$ANT"; then
3104 echo "$as_me:$LINENO: result: $ANT" >&5
3105 echo "${ECHO_T}$ANT" >&6
3107 echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6
3111 test -n "$ANT" && break
3115 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3116 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3117 if test "${pgac_cv_prog_ant_works+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat > conftest.java << EOF
3122 public class conftest {
3123 int testmethod(int a, int b) {
3129 cat > conftest.xml << EOF
3130 <project name="conftest" default="conftest">
3131 <target name="conftest">
3132 <javac srcdir="." includes="conftest.java">
3138 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3139 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3140 (eval $pgac_cmd) 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3145 if test $? = 0 && test -f ./conftest.class ; then
3146 pgac_cv_prog_ant_works=yes
3148 echo "configure: failed java program was:" >&5
3149 cat conftest.java >&5
3150 echo "configure: failed build file was:" >&5
3151 cat conftest.xml >&5
3152 pgac_cv_prog_ant_works=no
3155 rm -f conftest* core core.* *.core
3158 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3159 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3161 if test "$pgac_cv_prog_ant_works" != yes; then
3162 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3163 echo "$as_me: error: ant does not work" >&2;}
3164 { (exit 1); exit 1; }; }
3168 if test -z "$ANT"; then
3169 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3170 If you have Ant already installed, see config.log for details on the failure." >&5
3171 echo "$as_me: error: Ant is required to build Java components
3172 If you have Ant already installed, see config.log for details on the failure." >&2;}
3173 { (exit 1); exit 1; }; }
3175 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3176 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3177 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3178 { (exit 1); exit 1; }; }
3182 echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3186 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3187 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3188 { (exit 1); exit 1; }; }
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3204 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3205 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3209 # Check whether --with-krb4 or --without-krb4 was given.
3210 if test "${with_krb4+set}" = set; then
3211 withval="$with_krb4"
3215 krb4_prefix=/usr/athena
3222 krb4_prefix=$withval
3231 if test "$with_krb4" = yes; then
3233 echo "$as_me:$LINENO: result: yes" >&5
3234 echo "${ECHO_T}yes" >&6
3236 cat >>confdefs.h <<\_ACEOF
3241 if test -d "$krb4_prefix/include"; then
3242 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3244 if test -d "$krb4_prefix/lib"; then
3245 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3248 krb_srvtab="/etc/srvtab"
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3262 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3263 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3267 # Check whether --with-krb5 or --without-krb5 was given.
3268 if test "${with_krb5+set}" = set; then
3269 withval="$with_krb5"
3273 krb5_prefix=/usr/athena
3280 krb5_prefix=$withval
3289 if test "$with_krb5" = yes; then
3291 echo "$as_me:$LINENO: result: yes" >&5
3292 echo "${ECHO_T}yes" >&6
3294 cat >>confdefs.h <<\_ACEOF
3299 if test -d "$krb5_prefix/include"; then
3300 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3302 if test -d "$krb5_prefix/lib"; then
3303 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3306 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3317 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3318 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3319 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3320 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3321 { (exit 1); exit 1; }; }
3328 # Kerberos configuration parameters
3333 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3334 if test "${with_krb_srvnam+set}" = set; then
3335 withval="$with_krb_srvnam"
3339 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3340 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3341 { (exit 1); exit 1; }; }
3344 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3345 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3346 { (exit 1); exit 1; }; }
3354 with_krb_srvnam="postgres"
3358 cat >>confdefs.h <<_ACEOF
3359 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3367 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3368 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3372 # Check whether --with-pam or --without-pam was given.
3373 if test "${with_pam+set}" = set; then
3379 cat >>confdefs.h <<\_ACEOF
3388 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3389 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3390 { (exit 1); exit 1; }; }
3399 echo "$as_me:$LINENO: result: $with_pam" >&5
3400 echo "${ECHO_T}$with_pam" >&6
3407 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3408 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3412 # Check whether --with-rendezvous or --without-rendezvous was given.
3413 if test "${with_rendezvous+set}" = set; then
3414 withval="$with_rendezvous"
3419 cat >>confdefs.h <<\_ACEOF
3420 #define USE_RENDEZVOUS 1
3428 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3429 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3430 { (exit 1); exit 1; }; }
3439 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3440 echo "${ECHO_T}$with_rendezvous" >&6
3450 # Check whether --with-openssl or --without-openssl was given.
3451 if test "${with_openssl+set}" = set; then
3452 withval="$with_openssl"
3456 openssl_prefix=/usr/local/ssl
3463 openssl_prefix=$withval
3472 if test "$with_openssl" = yes; then
3474 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3475 echo "${ECHO_T}building with OpenSSL support" >&6
3477 cat >>confdefs.h <<\_ACEOF
3482 if test -d "${openssl_prefix}/include" ; then
3483 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3485 if test -d "${openssl_prefix}/lib" ; then
3486 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3501 # Check whether --with-readline or --without-readline was given.
3502 if test "${with_readline+set}" = set; then
3503 withval="$with_readline"
3513 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3514 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3515 { (exit 1); exit 1; }; }
3531 # Check whether --with-zlib or --without-zlib was given.
3532 if test "${with_zlib+set}" = set; then
3533 withval="$with_zlib"
3543 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3544 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3545 { (exit 1); exit 1; }; }
3559 # Assume system is ELF if it predefines __ELF__ as 1,
3560 # otherwise believe host_os based default.
3562 freebsd1*|freebsd2*) elf=no;;
3563 freebsd3*|freebsd4*) elf=yes;;
3567 cat >conftest.$ac_ext <<_ACEOF
3568 #line $LINENO "configure"
3569 #include "confdefs.h"
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "yes" >/dev/null 2>&1; then
3579 if test "X$elf" = "Xyes" ; then
3593 CPPFLAGS="$CPPFLAGS $INCLUDES"
3594 LDFLAGS="$LDFLAGS $LIBDIRS"
3596 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3597 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3598 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3599 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3602 for ac_prog in gawk mawk nawk awk
3604 # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy $ac_prog; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_AWK+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test -n "$AWK"; then
3612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_AWK="$ac_prog"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 if test -n "$AWK"; then
3632 echo "$as_me:$LINENO: result: $AWK" >&5
3633 echo "${ECHO_T}$AWK" >&6
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3639 test -n "$AWK" && break
3642 echo "$as_me:$LINENO: checking for flex" >&5
3643 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3644 if test "${pgac_cv_path_flex+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 # Let the user override the test
3648 if test -n "$FLEX"; then
3649 pgac_cv_path_flex=$FLEX
3653 for pgac_dir in $PATH; do
3654 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3657 for pgac_prog in flex lex; do
3658 pgac_candidate="$pgac_dir/$pgac_prog"
3659 if test -f "$pgac_candidate" \
3660 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3662 echo '%%' > conftest.l
3663 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3664 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3665 pgac_broken_flex=$pgac_candidate
3669 pgac_cv_path_flex=$pgac_candidate
3677 : ${pgac_cv_path_flex=no}
3681 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3682 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3683 if test x"$pgac_cv_path_flex" = x"no"; then
3684 if test -n "$pgac_broken_flex"; then
3685 { echo "$as_me:$LINENO: WARNING:
3686 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3687 *** should get version 2.5.4 or later." >&5
3688 echo "$as_me: WARNING:
3689 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3690 *** should get version 2.5.4 or later." >&2;}
3693 { echo "$as_me:$LINENO: WARNING:
3694 *** Without Flex you will not be able to build PostgreSQL from CVS or
3695 *** change any of the scanner definition files. You can obtain Flex from
3696 *** a GNU mirror site. (If you are using the official distribution of
3697 *** PostgreSQL then you do not need to worry about this because the Flex
3698 *** output is pre-generated.)" >&5
3699 echo "$as_me: WARNING:
3700 *** Without Flex you will not be able to build PostgreSQL from CVS or
3701 *** change any of the scanner definition files. You can obtain Flex from
3702 *** a GNU mirror site. (If you are using the official distribution of
3703 *** PostgreSQL then you do not need to worry about this because the Flex
3704 *** output is pre-generated.)" >&2;}
3707 if test x"$pgac_cv_path_flex" = x"no"; then
3710 FLEX=$pgac_cv_path_flex
3716 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3717 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3719 if test "$LN_S" = "ln -s"; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6
3723 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3724 echo "${ECHO_T}no, using $LN_S" >&6
3728 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3729 if test "${with_gnu_ld+set}" = set; then
3730 withval="$with_gnu_ld"
3731 test "$withval" = no || with_gnu_ld=yes
3736 if test "$GCC" = yes; then
3737 # Check if gcc -print-prog-name=ld gives a path.
3738 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3739 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3742 # gcc leaves a trailing carriage return which upsets mingw
3743 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3745 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3748 # Accept absolute paths.
3749 [\\/]* | [A-Za-z]:[\\/]*)
3750 re_direlt='/[^/][^/]*/\.\./'
3751 # Canonicalize the path of ld
3752 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3753 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3754 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3756 test -z "$LD" && LD="$ac_prog"
3759 # If it fails, then pretend we aren't using GCC.
3763 # If it is relative, then search for the first ld in PATH.
3767 elif test "$with_gnu_ld" = yes; then
3768 echo "$as_me:$LINENO: checking for GNU ld" >&5
3769 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3771 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3772 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3774 if test "${ac_cv_path_LD+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 if test -z "$LD"; then
3778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3779 for ac_dir in $PATH; do
3780 test -z "$ac_dir" && ac_dir=.
3781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3782 ac_cv_path_LD="$ac_dir/$ac_prog"
3783 # Check to see if the program is GNU ld. I'd rather use --version,
3784 # but apparently some GNU ld's only accept -v.
3785 # Break only if it was the GNU/non-GNU ld that we prefer.
3786 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3787 test "$with_gnu_ld" != no && break
3789 test "$with_gnu_ld" != yes && break
3795 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3800 if test -n "$LD"; then
3801 echo "$as_me:$LINENO: result: $LD" >&5
3802 echo "${ECHO_T}$LD" >&6
3804 echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3807 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3808 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3809 { (exit 1); exit 1; }; }
3810 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3811 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3812 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3816 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3817 ac_cv_prog_gnu_ld=yes
3819 ac_cv_prog_gnu_ld=no
3822 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3823 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3824 with_gnu_ld=$ac_cv_prog_gnu_ld
3829 case $host_os in sysv5*)
3830 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3831 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3832 if test "${pgac_cv_prog_ld_R+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3837 cat >conftest.$ac_ext <<_ACEOF
3838 #line $LINENO "configure"
3839 #include "confdefs.h"
3841 #ifdef F77_DUMMY_MAIN
3845 int F77_DUMMY_MAIN() { return 1; }
3855 rm -f conftest.$ac_objext conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 pgac_cv_prog_ld_R=yes
3869 echo "$as_me: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 pgac_cv_prog_ld_R=no
3873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3874 LDFLAGS=$pgac_save_LDFLAGS
3877 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3878 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3879 ld_R_works=$pgac_cv_prog_ld_R
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_RANLIB+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$RANLIB"; then
3891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 RANLIB=$ac_cv_prog_RANLIB
3910 if test -n "$RANLIB"; then
3911 echo "$as_me:$LINENO: result: $RANLIB" >&5
3912 echo "${ECHO_T}$RANLIB" >&6
3914 echo "$as_me:$LINENO: result: no" >&5
3915 echo "${ECHO_T}no" >&6
3919 if test -z "$ac_cv_prog_RANLIB"; then
3920 ac_ct_RANLIB=$RANLIB
3921 # Extract the first word of "ranlib", so it can be a program name with args.
3922 set dummy ranlib; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test -n "$ac_ct_RANLIB"; then
3929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_ac_ct_RANLIB="ranlib"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3949 if test -n "$ac_ct_RANLIB"; then
3950 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3951 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3957 RANLIB=$ac_ct_RANLIB
3959 RANLIB="$ac_cv_prog_RANLIB"
3962 for ac_prog in lorder
3964 # Extract the first word of "$ac_prog", so it can be a program name with args.
3965 set dummy $ac_prog; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_LORDER+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test -n "$LORDER"; then
3972 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_LORDER="$ac_prog"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 LORDER=$ac_cv_prog_LORDER
3991 if test -n "$LORDER"; then
3992 echo "$as_me:$LINENO: result: $LORDER" >&5
3993 echo "${ECHO_T}$LORDER" >&6
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3999 test -n "$LORDER" && break
4002 # Extract the first word of "tar", so it can be a program name with args.
4003 set dummy tar; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_path_TAR+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test -n "$TAR"; then
4034 echo "$as_me:$LINENO: result: $TAR" >&5
4035 echo "${ECHO_T}$TAR" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4042 if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}strip; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_STRIP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test -n "$STRIP"; then
4051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 STRIP=$ac_cv_prog_STRIP
4070 if test -n "$STRIP"; then
4071 echo "$as_me:$LINENO: result: $STRIP" >&5
4072 echo "${ECHO_T}$STRIP" >&6
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4079 if test -z "$ac_cv_prog_STRIP"; then
4081 # Extract the first word of "strip", so it can be a program name with args.
4082 set dummy strip; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$ac_ct_STRIP"; then
4089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_STRIP="strip"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4109 if test -n "$ac_ct_STRIP"; then
4110 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4111 echo "${ECHO_T}$ac_ct_STRIP" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4119 STRIP="$ac_cv_prog_STRIP"
4123 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4124 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4125 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4126 STRIP_STATIC_LIB="$STRIP -x"
4127 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4128 echo "$as_me:$LINENO: result: yes" >&5
4129 echo "${ECHO_T}yes" >&6
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4140 for ac_prog in 'bison -y'
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy $ac_prog; ac_word=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_YACC+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$YACC"; then
4150 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_YACC="$ac_prog"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 YACC=$ac_cv_prog_YACC
4169 if test -n "$YACC"; then
4170 echo "$as_me:$LINENO: result: $YACC" >&5
4171 echo "${ECHO_T}$YACC" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4177 test -n "$YACC" && break
4181 if test "$YACC"; then
4182 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4183 { echo "$as_me:$LINENO: WARNING:
4184 *** The installed version of Bison is too old. PostgreSQL needs
4185 *** Bison version 1.875 or later." >&5
4186 echo "$as_me: WARNING:
4187 *** The installed version of Bison is too old. PostgreSQL needs
4188 *** Bison version 1.875 or later." >&2;}
4192 if test -z "$YACC"; then
4193 { echo "$as_me:$LINENO: WARNING:
4194 *** Without Bison you will not be able to build PostgreSQL from CVS or
4195 *** change any of the parser definition files. You can obtain Bison from
4196 *** a GNU mirror site. (If you are using the official distribution of
4197 *** PostgreSQL then you do not need to worry about this because the Bison
4198 *** output is pre-generated.) To use a different yacc program (possible,
4199 *** but not recommended), set the environment variable YACC before running
4200 *** 'configure'." >&5
4201 echo "$as_me: WARNING:
4202 *** Without Bison you will not be able to build PostgreSQL from CVS or
4203 *** change any of the parser definition files. You can obtain Bison from
4204 *** a GNU mirror site. (If you are using the official distribution of
4205 *** PostgreSQL then you do not need to worry about this because the Bison
4206 *** output is pre-generated.) To use a different yacc program (possible,
4207 *** but not recommended), set the environment variable YACC before running
4208 *** 'configure'." >&2;}
4212 # Extract the first word of "perl", so it can be a program name with args.
4213 set dummy perl; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_path_PERL+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 PERL=$ac_cv_path_PERL
4243 if test -n "$PERL"; then
4244 echo "$as_me:$LINENO: result: $PERL" >&5
4245 echo "${ECHO_T}$PERL" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4251 if test "$with_perl" = yes; then
4253 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4254 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4255 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4256 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4257 echo "${ECHO_T}$perl_archlibexp" >&6
4258 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4259 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4260 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4261 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4262 echo "${ECHO_T}$perl_privlibexp" >&6
4263 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4264 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4265 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4266 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4267 echo "${ECHO_T}$perl_useshrplib" >&6
4269 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4270 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4271 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4272 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4273 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4274 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4275 echo "${ECHO_T}$perl_embed_ldflags" >&6
4278 if test "$with_python" = yes; then
4279 # Extract the first word of "python", so it can be a program name with args.
4280 set dummy python; ac_word=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_path_PYTHON+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 PYTHON=$ac_cv_path_PYTHON
4310 if test -n "$PYTHON"; then
4311 echo "$as_me:$LINENO: result: $PYTHON" >&5
4312 echo "${ECHO_T}$PYTHON" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 if test x"$PYTHON" = x""; then
4319 { { echo "$as_me:$LINENO: error: Python not found" >&5
4320 echo "$as_me: error: Python not found" >&2;}
4321 { (exit 1); exit 1; }; }
4325 echo "$as_me:$LINENO: checking Python installation directories" >&5
4326 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4327 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4328 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4329 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4330 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4331 python_includespec="-I${python_prefix}/include/python${python_version}"
4332 if test "$python_prefix" != "$python_execprefix"; then
4333 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4336 # This should be enough of a message.
4337 if test "$python_prefix" != "$python_execprefix"; then
4338 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4339 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4341 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4342 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4346 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4347 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4349 if test ! -f "$python_configdir/Makefile"; then
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4352 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4353 echo "$as_me: error: Python Makefile not found" >&2;}
4354 { (exit 1); exit 1; }; }
4357 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4358 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4359 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4360 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4361 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4363 pgac_tab=" " # tab character
4364 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"`
4366 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4367 echo "${ECHO_T}${python_libspec}" >&6
4377 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4380 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4381 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4382 if test "${ac_cv_lib_bsd_main+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 ac_check_lib_save_LIBS=$LIBS
4387 cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4389 #include "confdefs.h"
4392 #ifdef F77_DUMMY_MAIN
4396 int F77_DUMMY_MAIN() { return 1; }
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -s conftest$ac_exeext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_cv_lib_bsd_main=yes
4420 echo "$as_me: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4422 ac_cv_lib_bsd_main=no
4424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4425 LIBS=$ac_check_lib_save_LIBS
4427 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4428 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4429 if test $ac_cv_lib_bsd_main = yes; then
4430 cat >>confdefs.h <<_ACEOF
4431 #define HAVE_LIBBSD 1
4440 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4441 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4442 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 ac_check_lib_save_LIBS=$LIBS
4447 cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 #include "confdefs.h"
4451 /* Override any gcc2 internal prototype to avoid an error. */
4455 /* We use char because int might match the return type of a gcc2
4456 builtin and then its argument prototype would still apply. */
4457 char setproctitle ();
4458 #ifdef F77_DUMMY_MAIN
4462 int F77_DUMMY_MAIN() { return 1; }
4472 rm -f conftest.$ac_objext conftest$ac_exeext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4474 (eval $ac_link) 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -s conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_lib_util_setproctitle=yes
4486 echo "$as_me: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 ac_cv_lib_util_setproctitle=no
4490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4491 LIBS=$ac_check_lib_save_LIBS
4493 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4494 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4495 if test $ac_cv_lib_util_setproctitle = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497 #define HAVE_LIBUTIL 1
4505 echo "$as_me:$LINENO: checking for main in -lm" >&5
4506 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4507 if test "${ac_cv_lib_m_main+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 ac_check_lib_save_LIBS=$LIBS
4512 cat >conftest.$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4514 #include "confdefs.h"
4517 #ifdef F77_DUMMY_MAIN
4521 int F77_DUMMY_MAIN() { return 1; }
4531 rm -f conftest.$ac_objext conftest$ac_exeext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533 (eval $ac_link) 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -s conftest$ac_exeext'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 ac_cv_lib_m_main=yes
4545 echo "$as_me: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4550 LIBS=$ac_check_lib_save_LIBS
4552 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4553 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4554 if test $ac_cv_lib_m_main = yes; then
4555 cat >>confdefs.h <<_ACEOF
4564 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4565 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4566 if test "${ac_cv_lib_dl_main+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 ac_check_lib_save_LIBS=$LIBS
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 #include "confdefs.h"
4576 #ifdef F77_DUMMY_MAIN
4580 int F77_DUMMY_MAIN() { return 1; }
4590 rm -f conftest.$ac_objext conftest$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -s conftest$ac_exeext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_lib_dl_main=yes
4604 echo "$as_me: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4606 ac_cv_lib_dl_main=no
4608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4609 LIBS=$ac_check_lib_save_LIBS
4611 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4612 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4613 if test $ac_cv_lib_dl_main = yes; then
4614 cat >>confdefs.h <<_ACEOF
4615 #define HAVE_LIBDL 1
4623 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4624 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4625 if test "${ac_cv_lib_nsl_main+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 ac_check_lib_save_LIBS=$LIBS
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 #include "confdefs.h"
4635 #ifdef F77_DUMMY_MAIN
4639 int F77_DUMMY_MAIN() { return 1; }
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -s conftest$ac_exeext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_lib_nsl_main=yes
4663 echo "$as_me: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 ac_cv_lib_nsl_main=no
4667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4668 LIBS=$ac_check_lib_save_LIBS
4670 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4671 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4672 if test $ac_cv_lib_nsl_main = yes; then
4673 cat >>confdefs.h <<_ACEOF
4674 #define HAVE_LIBNSL 1
4682 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4683 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4684 if test "${ac_cv_lib_socket_main+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 ac_check_lib_save_LIBS=$LIBS
4688 LIBS="-lsocket $LIBS"
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4691 #include "confdefs.h"
4694 #ifdef F77_DUMMY_MAIN
4698 int F77_DUMMY_MAIN() { return 1; }
4708 rm -f conftest.$ac_objext conftest$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_cv_lib_socket_main=yes
4722 echo "$as_me: failed program was:" >&5
4723 cat conftest.$ac_ext >&5
4724 ac_cv_lib_socket_main=no
4726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4727 LIBS=$ac_check_lib_save_LIBS
4729 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4730 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4731 if test $ac_cv_lib_socket_main = yes; then
4732 cat >>confdefs.h <<_ACEOF
4733 #define HAVE_LIBSOCKET 1
4736 LIBS="-lsocket $LIBS"
4741 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4742 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4743 if test "${ac_cv_lib_ipc_main+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_check_lib_save_LIBS=$LIBS
4748 cat >conftest.$ac_ext <<_ACEOF
4749 #line $LINENO "configure"
4750 #include "confdefs.h"
4753 #ifdef F77_DUMMY_MAIN
4757 int F77_DUMMY_MAIN() { return 1; }
4767 rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769 (eval $ac_link) 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest$ac_exeext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_lib_ipc_main=yes
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 ac_cv_lib_ipc_main=no
4785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4786 LIBS=$ac_check_lib_save_LIBS
4788 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4789 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4790 if test $ac_cv_lib_ipc_main = yes; then
4791 cat >>confdefs.h <<_ACEOF
4792 #define HAVE_LIBIPC 1
4800 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4801 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4802 if test "${ac_cv_lib_IPC_main+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 ac_check_lib_save_LIBS=$LIBS
4807 cat >conftest.$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4812 #ifdef F77_DUMMY_MAIN
4816 int F77_DUMMY_MAIN() { return 1; }
4826 rm -f conftest.$ac_objext conftest$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_lib_IPC_main=yes
4840 echo "$as_me: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 ac_cv_lib_IPC_main=no
4844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4845 LIBS=$ac_check_lib_save_LIBS
4847 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4848 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4849 if test $ac_cv_lib_IPC_main = yes; then
4850 cat >>confdefs.h <<_ACEOF
4851 #define HAVE_LIBIPC 1
4859 echo "$as_me:$LINENO: checking for main in -llc" >&5
4860 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4861 if test "${ac_cv_lib_lc_main+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 ac_check_lib_save_LIBS=$LIBS
4866 cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 #include "confdefs.h"
4871 #ifdef F77_DUMMY_MAIN
4875 int F77_DUMMY_MAIN() { return 1; }
4885 rm -f conftest.$ac_objext conftest$ac_exeext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887 (eval $ac_link) 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_lib_lc_main=yes
4899 echo "$as_me: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 ac_cv_lib_lc_main=no
4903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4904 LIBS=$ac_check_lib_save_LIBS
4906 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4907 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4908 if test $ac_cv_lib_lc_main = yes; then
4909 cat >>confdefs.h <<_ACEOF
4910 #define HAVE_LIBLC 1
4918 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4919 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4920 if test "${ac_cv_lib_dld_main+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 ac_check_lib_save_LIBS=$LIBS
4925 cat >conftest.$ac_ext <<_ACEOF
4926 #line $LINENO "configure"
4927 #include "confdefs.h"
4930 #ifdef F77_DUMMY_MAIN
4934 int F77_DUMMY_MAIN() { return 1; }
4944 rm -f conftest.$ac_objext conftest$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -s conftest$ac_exeext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_lib_dld_main=yes
4958 echo "$as_me: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4960 ac_cv_lib_dld_main=no
4962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4963 LIBS=$ac_check_lib_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4966 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4967 if test $ac_cv_lib_dld_main = yes; then
4968 cat >>confdefs.h <<_ACEOF
4969 #define HAVE_LIBDLD 1
4977 echo "$as_me:$LINENO: checking for main in -lld" >&5
4978 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4979 if test "${ac_cv_lib_ld_main+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 ac_check_lib_save_LIBS=$LIBS
4984 cat >conftest.$ac_ext <<_ACEOF
4985 #line $LINENO "configure"
4986 #include "confdefs.h"
4989 #ifdef F77_DUMMY_MAIN
4993 int F77_DUMMY_MAIN() { return 1; }
5003 rm -f conftest.$ac_objext conftest$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -s conftest$ac_exeext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_lib_ld_main=yes
5017 echo "$as_me: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5019 ac_cv_lib_ld_main=no
5021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5022 LIBS=$ac_check_lib_save_LIBS
5024 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5025 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5026 if test $ac_cv_lib_ld_main = yes; then
5027 cat >>confdefs.h <<_ACEOF
5028 #define HAVE_LIBLD 1
5036 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5037 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5038 if test "${ac_cv_lib_compat_main+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 ac_check_lib_save_LIBS=$LIBS
5042 LIBS="-lcompat $LIBS"
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5045 #include "confdefs.h"
5048 #ifdef F77_DUMMY_MAIN
5052 int F77_DUMMY_MAIN() { return 1; }
5062 rm -f conftest.$ac_objext conftest$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -s conftest$ac_exeext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_cv_lib_compat_main=yes
5076 echo "$as_me: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 ac_cv_lib_compat_main=no
5080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5081 LIBS=$ac_check_lib_save_LIBS
5083 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5084 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5085 if test $ac_cv_lib_compat_main = yes; then
5086 cat >>confdefs.h <<_ACEOF
5087 #define HAVE_LIBCOMPAT 1
5090 LIBS="-lcompat $LIBS"
5095 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5096 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5097 if test "${ac_cv_lib_BSD_main+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 ac_check_lib_save_LIBS=$LIBS
5102 cat >conftest.$ac_ext <<_ACEOF
5103 #line $LINENO "configure"
5104 #include "confdefs.h"
5107 #ifdef F77_DUMMY_MAIN
5111 int F77_DUMMY_MAIN() { return 1; }
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 ac_cv_lib_BSD_main=yes
5135 echo "$as_me: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5137 ac_cv_lib_BSD_main=no
5139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5142 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5143 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5144 if test $ac_cv_lib_BSD_main = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146 #define HAVE_LIBBSD 1
5154 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5155 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5156 if test "${ac_cv_lib_gen_main+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 ac_check_lib_save_LIBS=$LIBS
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5163 #include "confdefs.h"
5166 #ifdef F77_DUMMY_MAIN
5170 int F77_DUMMY_MAIN() { return 1; }
5180 rm -f conftest.$ac_objext conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182 (eval $ac_link) 2>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try='test -s conftest$ac_exeext'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 ac_cv_lib_gen_main=yes
5194 echo "$as_me: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5196 ac_cv_lib_gen_main=no
5198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5199 LIBS=$ac_check_lib_save_LIBS
5201 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5202 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5203 if test $ac_cv_lib_gen_main = yes; then
5204 cat >>confdefs.h <<_ACEOF
5205 #define HAVE_LIBGEN 1
5213 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5214 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5215 if test "${ac_cv_lib_PW_main+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 ac_check_lib_save_LIBS=$LIBS
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line $LINENO "configure"
5222 #include "confdefs.h"
5225 #ifdef F77_DUMMY_MAIN
5229 int F77_DUMMY_MAIN() { return 1; }
5239 rm -f conftest.$ac_objext conftest$ac_exeext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241 (eval $ac_link) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -s conftest$ac_exeext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 ac_cv_lib_PW_main=yes
5253 echo "$as_me: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 ac_cv_lib_PW_main=no
5257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5258 LIBS=$ac_check_lib_save_LIBS
5260 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5261 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5262 if test $ac_cv_lib_PW_main = yes; then
5263 cat >>confdefs.h <<_ACEOF
5264 #define HAVE_LIBPW 1
5272 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5273 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5274 if test "${ac_cv_lib_resolv_main+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 ac_check_lib_save_LIBS=$LIBS
5278 LIBS="-lresolv $LIBS"
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line $LINENO "configure"
5281 #include "confdefs.h"
5284 #ifdef F77_DUMMY_MAIN
5288 int F77_DUMMY_MAIN() { return 1; }
5298 rm -f conftest.$ac_objext conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -s conftest$ac_exeext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_lib_resolv_main=yes
5312 echo "$as_me: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5314 ac_cv_lib_resolv_main=no
5316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5317 LIBS=$ac_check_lib_save_LIBS
5319 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5320 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5321 if test $ac_cv_lib_resolv_main = yes; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define HAVE_LIBRESOLV 1
5326 LIBS="-lresolv $LIBS"
5330 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5331 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5332 if test "${ac_cv_search_getopt_long+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 ac_func_search_save_LIBS=$LIBS
5336 ac_cv_search_getopt_long=no
5337 cat >conftest.$ac_ext <<_ACEOF
5338 #line $LINENO "configure"
5339 #include "confdefs.h"
5341 /* Override any gcc2 internal prototype to avoid an error. */
5345 /* We use char because int might match the return type of a gcc2
5346 builtin and then its argument prototype would still apply. */
5347 char getopt_long ();
5348 #ifdef F77_DUMMY_MAIN
5352 int F77_DUMMY_MAIN() { return 1; }
5362 rm -f conftest.$ac_objext conftest$ac_exeext
5363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5364 (eval $ac_link) 2>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -s conftest$ac_exeext'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 ac_cv_search_getopt_long="none required"
5376 echo "$as_me: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5380 if test "$ac_cv_search_getopt_long" = no; then
5381 for ac_lib in getopt gnugetopt; do
5382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5387 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5393 char getopt_long ();
5394 #ifdef F77_DUMMY_MAIN
5398 int F77_DUMMY_MAIN() { return 1; }
5408 rm -f conftest.$ac_objext conftest$ac_exeext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410 (eval $ac_link) 2>&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_getopt_long="-l$ac_lib"
5423 echo "$as_me: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5429 LIBS=$ac_func_search_save_LIBS
5431 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5432 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5433 if test "$ac_cv_search_getopt_long" != no; then
5434 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5440 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5441 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5442 if test "${ac_cv_lib_unix_main+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_check_lib_save_LIBS=$LIBS
5447 cat >conftest.$ac_ext <<_ACEOF
5448 #line $LINENO "configure"
5449 #include "confdefs.h"
5452 #ifdef F77_DUMMY_MAIN
5456 int F77_DUMMY_MAIN() { return 1; }
5466 rm -f conftest.$ac_objext conftest$ac_exeext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5468 (eval $ac_link) 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try='test -s conftest$ac_exeext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_lib_unix_main=yes
5480 echo "$as_me: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5482 ac_cv_lib_unix_main=no
5484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5485 LIBS=$ac_check_lib_save_LIBS
5487 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5488 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5489 if test $ac_cv_lib_unix_main = yes; then
5490 cat >>confdefs.h <<_ACEOF
5491 #define HAVE_LIBUNIX 1
5498 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5499 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5500 if test "${ac_cv_search_crypt+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_func_search_save_LIBS=$LIBS
5504 ac_cv_search_crypt=no
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5507 #include "confdefs.h"
5509 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
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_search_crypt="none required"
5544 echo "$as_me: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548 if test "$ac_cv_search_crypt" = no; then
5549 for ac_lib in crypt; do
5550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5551 cat >conftest.$ac_ext <<_ACEOF
5552 #line $LINENO "configure"
5553 #include "confdefs.h"
5555 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5562 #ifdef F77_DUMMY_MAIN
5566 int F77_DUMMY_MAIN() { return 1; }
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5578 (eval $ac_link) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 ac_cv_search_crypt="-l$ac_lib"
5591 echo "$as_me: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_func_search_save_LIBS
5599 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5600 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5601 if test "$ac_cv_search_crypt" != no; then
5602 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5607 if test "$PORTNAME" = "beos"
5610 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5611 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5612 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_check_lib_save_LIBS=$LIBS
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 #include "confdefs.h"
5621 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5627 char __inet_ntoa ();
5628 #ifdef F77_DUMMY_MAIN
5632 int F77_DUMMY_MAIN() { return 1; }
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest$ac_exeext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_lib_bind___inet_ntoa=yes
5656 echo "$as_me: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 ac_cv_lib_bind___inet_ntoa=no
5660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5661 LIBS=$ac_check_lib_save_LIBS
5663 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5664 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5665 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5666 cat >>confdefs.h <<_ACEOF
5667 #define HAVE_LIBBIND 1
5676 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5677 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5678 if test "${ac_cv_search_fdatasync+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 ac_func_search_save_LIBS=$LIBS
5682 ac_cv_search_fdatasync=no
5683 cat >conftest.$ac_ext <<_ACEOF
5684 #line $LINENO "configure"
5685 #include "confdefs.h"
5687 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5694 #ifdef F77_DUMMY_MAIN
5698 int F77_DUMMY_MAIN() { return 1; }
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5710 (eval $ac_link) 2>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_cv_search_fdatasync="none required"
5722 echo "$as_me: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5726 if test "$ac_cv_search_fdatasync" = no; then
5727 for ac_lib in rt posix4; do
5728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5729 cat >conftest.$ac_ext <<_ACEOF
5730 #line $LINENO "configure"
5731 #include "confdefs.h"
5733 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5740 #ifdef F77_DUMMY_MAIN
5744 int F77_DUMMY_MAIN() { return 1; }
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -s conftest$ac_exeext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_cv_search_fdatasync="-l$ac_lib"
5769 echo "$as_me: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5775 LIBS=$ac_func_search_save_LIBS
5777 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5778 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5779 if test "$ac_cv_search_fdatasync" != no; then
5780 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5786 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5787 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5788 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 ac_check_lib_save_LIBS=$LIBS
5792 LIBS="-lcygipc $LIBS"
5793 cat >conftest.$ac_ext <<_ACEOF
5794 #line $LINENO "configure"
5795 #include "confdefs.h"
5797 /* Override any gcc2 internal prototype to avoid an error. */
5801 /* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5804 #ifdef F77_DUMMY_MAIN
5808 int F77_DUMMY_MAIN() { return 1; }
5818 rm -f conftest.$ac_objext conftest$ac_exeext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820 (eval $ac_link) 2>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -s conftest$ac_exeext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_lib_cygipc_shmget=yes
5832 echo "$as_me: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 ac_cv_lib_cygipc_shmget=no
5836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5837 LIBS=$ac_check_lib_save_LIBS
5839 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5840 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5841 if test $ac_cv_lib_cygipc_shmget = yes; then
5842 cat >>confdefs.h <<_ACEOF
5843 #define HAVE_LIBCYGIPC 1
5846 LIBS="-lcygipc $LIBS"
5851 if test "$PORTNAME" = "win32"
5854 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5855 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5856 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_check_lib_save_LIBS=$LIBS
5860 LIBS="-lwsock32 $LIBS"
5861 cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 #include "confdefs.h"
5866 #ifdef F77_DUMMY_MAIN
5870 int F77_DUMMY_MAIN() { return 1; }
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882 (eval $ac_link) 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try='test -s conftest$ac_exeext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_lib_wsock32_main=yes
5894 echo "$as_me: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5896 ac_cv_lib_wsock32_main=no
5898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5899 LIBS=$ac_check_lib_save_LIBS
5901 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5902 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5903 if test $ac_cv_lib_wsock32_main = yes; then
5904 cat >>confdefs.h <<_ACEOF
5905 #define HAVE_LIBWSOCK32 1
5908 LIBS="-lwsock32 $LIBS"
5914 if test "$with_readline" = yes; then
5916 echo "$as_me:$LINENO: checking for readline" >&5
5917 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5919 if test "${pgac_cv_check_readline+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 pgac_cv_check_readline=no
5923 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5924 for pgac_rllib in -lreadline -ledit ; do
5925 pgac_save_LIBS=$LIBS
5926 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5927 cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 #include "confdefs.h"
5931 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5938 #ifdef F77_DUMMY_MAIN
5942 int F77_DUMMY_MAIN() { return 1; }
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -s conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5965 # NetBSD and OpenBSD have a broken linker that does not
5966 # recognize dependent libraries
5967 case $host_os in netbsd* | openbsd* )
5970 *) pgac_lib=" -lcurses" ;;
5974 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5978 echo "$as_me: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5982 LIBS=$pgac_save_LIBS
5985 LIBS=$pgac_save_LIBS
5989 if test "$pgac_cv_check_readline" != no ; then
5991 cat >>confdefs.h <<\_ACEOF
5992 #define HAVE_LIBREADLINE 1
5995 LIBS="$pgac_cv_check_readline $LIBS"
5996 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5997 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6002 if test x"$pgac_cv_check_readline" = x"no"; then
6003 { { echo "$as_me:$LINENO: error: readline library not found
6004 If you have readline already installed, see config.log for details on the
6005 failure. It is possible the compiler isn't looking in the proper directory.
6006 Use --without-readline to disable readline support." >&5
6007 echo "$as_me: error: readline library not found
6008 If you have readline already installed, see config.log for details on the
6009 failure. It is possible the compiler isn't looking in the proper directory.
6010 Use --without-readline to disable readline support." >&2;}
6011 { (exit 1); exit 1; }; }
6015 if test "$with_zlib" = yes; then
6017 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6018 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6019 if test "${ac_cv_lib_z_inflate+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. */
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_z_inflate=yes
6063 echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_lib_z_inflate=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_z_inflate" >&5
6071 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6072 if test $ac_cv_lib_z_inflate = yes; then
6073 cat >>confdefs.h <<_ACEOF
6080 { { echo "$as_me:$LINENO: error: zlib library not found
6081 If you have zlib already installed, see config.log for details on the
6082 failure. It is possible the compiler isn't looking in the proper directory.
6083 Use --without-zlib to disable zlib support." >&5
6084 echo "$as_me: error: zlib library not found
6085 If you have zlib already installed, see config.log for details on the
6086 failure. It is possible the compiler isn't looking in the proper directory.
6087 Use --without-zlib to disable zlib support." >&2;}
6088 { (exit 1); exit 1; }; }
6093 if test "$enable_spinlocks" = yes; then
6095 cat >>confdefs.h <<\_ACEOF
6096 #define HAVE_SPINLOCKS 1
6100 { echo "$as_me:$LINENO: WARNING:
6101 *** Not using spinlocks will cause poor performance." >&5
6102 echo "$as_me: WARNING:
6103 *** Not using spinlocks will cause poor performance." >&2;}
6106 if test "$with_krb4" = yes ; then
6108 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6109 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6110 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_check_lib_save_LIBS=$LIBS
6115 cat >conftest.$ac_ext <<_ACEOF
6116 #line $LINENO "configure"
6117 #include "confdefs.h"
6119 /* Override any gcc2 internal prototype to avoid an error. */
6123 /* We use char because int might match the return type of a gcc2
6124 builtin and then its argument prototype would still apply. */
6125 char des_encrypt ();
6126 #ifdef F77_DUMMY_MAIN
6130 int F77_DUMMY_MAIN() { return 1; }
6140 rm -f conftest.$ac_objext conftest$ac_exeext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142 (eval $ac_link) 2>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -s conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_lib_des_des_encrypt=yes
6154 echo "$as_me: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 ac_cv_lib_des_des_encrypt=no
6158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6159 LIBS=$ac_check_lib_save_LIBS
6161 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6162 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6163 if test $ac_cv_lib_des_des_encrypt = yes; then
6164 cat >>confdefs.h <<_ACEOF
6165 #define HAVE_LIBDES 1
6171 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6172 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6173 { (exit 1); exit 1; }; }
6177 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6178 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6179 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_check_lib_save_LIBS=$LIBS
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6186 #include "confdefs.h"
6188 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6194 char krb_sendauth ();
6195 #ifdef F77_DUMMY_MAIN
6199 int F77_DUMMY_MAIN() { return 1; }
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211 (eval $ac_link) 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -s conftest$ac_exeext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_lib_krb_krb_sendauth=yes
6223 echo "$as_me: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6225 ac_cv_lib_krb_krb_sendauth=no
6227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6228 LIBS=$ac_check_lib_save_LIBS
6230 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6231 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6232 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6233 cat >>confdefs.h <<_ACEOF
6234 #define HAVE_LIBKRB 1
6240 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6241 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6242 { (exit 1); exit 1; }; }
6246 for ac_func in gethostname
6248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6249 echo "$as_me:$LINENO: checking for $ac_func" >&5
6250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6251 if eval "test \"\${$as_ac_var+set}\" = set"; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 cat >conftest.$ac_ext <<_ACEOF
6255 #line $LINENO "configure"
6256 #include "confdefs.h"
6257 /* System header to define __stub macros and hopefully few prototypes,
6258 which can conflict with char $ac_func (); below. */
6260 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6269 #ifdef F77_DUMMY_MAIN
6273 int F77_DUMMY_MAIN() { return 1; }
6278 /* The GNU C library defines this for functions which it implements
6279 to always fail with ENOSYS. Some functions are actually named
6280 something starting with __ and the normal name is an alias. */
6281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6291 rm -f conftest.$ac_objext conftest$ac_exeext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 eval "$as_ac_var=yes"
6305 echo "$as_me: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6307 eval "$as_ac_var=no"
6309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6313 if test `eval echo '${'$as_ac_var'}'` = yes; then
6314 cat >>confdefs.h <<_ACEOF
6315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6319 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6326 if test "$with_krb5" = yes ; then
6327 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6328 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6329 if test "${ac_cv_search_com_err+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 ac_func_search_save_LIBS=$LIBS
6333 ac_cv_search_com_err=no
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 #include "confdefs.h"
6338 /* Override any gcc2 internal prototype to avoid an error. */
6342 /* We use char because int might match the return type of a gcc2
6343 builtin and then its argument prototype would still apply. */
6345 #ifdef F77_DUMMY_MAIN
6349 int F77_DUMMY_MAIN() { return 1; }
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_search_com_err="none required"
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377 if test "$ac_cv_search_com_err" = no; then
6378 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6380 cat >conftest.$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6382 #include "confdefs.h"
6384 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6391 #ifdef F77_DUMMY_MAIN
6395 int F77_DUMMY_MAIN() { return 1; }
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try='test -s conftest$ac_exeext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_search_com_err="-l$ac_lib"
6420 echo "$as_me: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6426 LIBS=$ac_func_search_save_LIBS
6428 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6429 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6430 if test "$ac_cv_search_com_err" != no; then
6431 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6434 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6435 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6436 { (exit 1); exit 1; }; }
6439 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6440 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6441 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 ac_func_search_save_LIBS=$LIBS
6445 ac_cv_search_krb5_encrypt=no
6446 cat >conftest.$ac_ext <<_ACEOF
6447 #line $LINENO "configure"
6448 #include "confdefs.h"
6450 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6456 char krb5_encrypt ();
6457 #ifdef F77_DUMMY_MAIN
6461 int F77_DUMMY_MAIN() { return 1; }
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_search_krb5_encrypt="none required"
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 if test "$ac_cv_search_krb5_encrypt" = no; then
6490 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6492 cat >conftest.$ac_ext <<_ACEOF
6493 #line $LINENO "configure"
6494 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char krb5_encrypt ();
6503 #ifdef F77_DUMMY_MAIN
6507 int F77_DUMMY_MAIN() { return 1; }
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_cv_search_krb5_encrypt="-l$ac_lib"
6532 echo "$as_me: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 LIBS=$ac_func_search_save_LIBS
6540 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6541 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6542 if test "$ac_cv_search_krb5_encrypt" != no; then
6543 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6546 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6547 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6548 { (exit 1); exit 1; }; }
6551 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6552 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6553 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 ac_func_search_save_LIBS=$LIBS
6557 ac_cv_search_krb5_sendauth=no
6558 cat >conftest.$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6560 #include "confdefs.h"
6562 /* Override any gcc2 internal prototype to avoid an error. */
6566 /* We use char because int might match the return type of a gcc2
6567 builtin and then its argument prototype would still apply. */
6568 char krb5_sendauth ();
6569 #ifdef F77_DUMMY_MAIN
6573 int F77_DUMMY_MAIN() { return 1; }
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585 (eval $ac_link) 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -s conftest$ac_exeext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 ac_cv_search_krb5_sendauth="none required"
6597 echo "$as_me: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6601 if test "$ac_cv_search_krb5_sendauth" = no; then
6602 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6614 char krb5_sendauth ();
6615 #ifdef F77_DUMMY_MAIN
6619 int F77_DUMMY_MAIN() { return 1; }
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6631 (eval $ac_link) 2>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_search_krb5_sendauth="-l$ac_lib"
6644 echo "$as_me: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6650 LIBS=$ac_func_search_save_LIBS
6652 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6653 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6654 if test "$ac_cv_search_krb5_sendauth" != no; then
6655 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6658 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6659 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6660 { (exit 1); exit 1; }; }
6665 if test "$with_openssl" = yes ; then
6667 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6668 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6669 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 ac_check_lib_save_LIBS=$LIBS
6673 LIBS="-lcrypto $LIBS"
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6678 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684 char CRYPTO_new_ex_data ();
6685 #ifdef F77_DUMMY_MAIN
6689 int F77_DUMMY_MAIN() { return 1; }
6694 CRYPTO_new_ex_data ();
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6713 echo "$as_me: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718 LIBS=$ac_check_lib_save_LIBS
6720 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6721 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6722 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6723 cat >>confdefs.h <<_ACEOF
6724 #define HAVE_LIBCRYPTO 1
6727 LIBS="-lcrypto $LIBS"
6730 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6731 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6732 { (exit 1); exit 1; }; }
6736 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6737 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6738 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_check_lib_save_LIBS=$LIBS
6743 cat >conftest.$ac_ext <<_ACEOF
6744 #line $LINENO "configure"
6745 #include "confdefs.h"
6747 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6753 char SSL_library_init ();
6754 #ifdef F77_DUMMY_MAIN
6758 int F77_DUMMY_MAIN() { return 1; }
6763 SSL_library_init ();
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_ssl_SSL_library_init=yes
6782 echo "$as_me: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 ac_cv_lib_ssl_SSL_library_init=no
6786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6787 LIBS=$ac_check_lib_save_LIBS
6789 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6790 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6791 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793 #define HAVE_LIBSSL 1
6799 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6800 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6801 { (exit 1); exit 1; }; }
6806 if test "$with_pam" = yes ; then
6808 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6809 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6810 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 ac_check_lib_save_LIBS=$LIBS
6815 cat >conftest.$ac_ext <<_ACEOF
6816 #line $LINENO "configure"
6817 #include "confdefs.h"
6819 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6826 #ifdef F77_DUMMY_MAIN
6830 int F77_DUMMY_MAIN() { return 1; }
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6842 (eval $ac_link) 2>&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -s conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_lib_pam_pam_start=yes
6854 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 ac_cv_lib_pam_pam_start=no
6858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6859 LIBS=$ac_check_lib_save_LIBS
6861 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6862 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6863 if test $ac_cv_lib_pam_pam_start = yes; then
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_LIBPAM 1
6871 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6872 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6873 { (exit 1); exit 1; }; }
6883 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6884 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6885 if test "${ac_cv_header_stdc+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 #include "confdefs.h"
6897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6900 egrep -v '^ *\+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } >/dev/null; then
6905 if test -s conftest.err; then
6906 ac_cpp_err=$ac_c_preproc_warn_flag
6913 if test -z "$ac_cpp_err"; then
6914 ac_cv_header_stdc=yes
6916 echo "$as_me: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6918 ac_cv_header_stdc=no
6920 rm -f conftest.err conftest.$ac_ext
6922 if test $ac_cv_header_stdc = yes; then
6923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6924 cat >conftest.$ac_ext <<_ACEOF
6925 #line $LINENO "configure"
6926 #include "confdefs.h"
6930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6931 egrep "memchr" >/dev/null 2>&1; then
6934 ac_cv_header_stdc=no
6940 if test $ac_cv_header_stdc = yes; then
6941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6942 cat >conftest.$ac_ext <<_ACEOF
6943 #line $LINENO "configure"
6944 #include "confdefs.h"
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 egrep "free" >/dev/null 2>&1; then
6952 ac_cv_header_stdc=no
6958 if test $ac_cv_header_stdc = yes; then
6959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6960 if test "$cross_compiling" = yes; then
6963 cat >conftest.$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6965 #include "confdefs.h"
6967 #if ((' ' & 0x0FF) == 0x020)
6968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6971 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6972 || ('j' <= (c) && (c) <= 'r') \
6973 || ('s' <= (c) && (c) <= 'z'))
6974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6982 for (i = 0; i < 256; i++)
6983 if (XOR (islower (i), ISLOWER (i))
6984 || toupper (i) != TOUPPER (i))
6989 rm -f conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7002 echo "$as_me: program exited with status $ac_status" >&5
7003 echo "$as_me: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 ac_cv_header_stdc=no
7008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7014 if test $ac_cv_header_stdc = yes; then
7016 cat >>confdefs.h <<\_ACEOF
7017 #define STDC_HEADERS 1
7022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7033 inttypes.h stdint.h unistd.h
7035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7036 echo "$as_me:$LINENO: checking for $ac_header" >&5
7037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 cat >conftest.$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7043 #include "confdefs.h"
7044 $ac_includes_default
7046 #include <$ac_header>
7048 rm -f conftest.$ac_objext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050 (eval $ac_compile) 2>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -s conftest.$ac_objext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 eval "$as_ac_Header=yes"
7062 echo "$as_me: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7064 eval "$as_ac_Header=no"
7066 rm -f conftest.$ac_objext conftest.$ac_ext
7068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7071 cat >>confdefs.h <<_ACEOF
7072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7101 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
7103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7105 echo "$as_me:$LINENO: checking for $ac_header" >&5
7106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7113 # Is the header compilable?
7114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7116 cat >conftest.$ac_ext <<_ACEOF
7117 #line $LINENO "configure"
7118 #include "confdefs.h"
7119 $ac_includes_default
7120 #include <$ac_header>
7122 rm -f conftest.$ac_objext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124 (eval $ac_compile) 2>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_header_compiler=yes
7136 echo "$as_me: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7138 ac_header_compiler=no
7140 rm -f conftest.$ac_objext conftest.$ac_ext
7141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142 echo "${ECHO_T}$ac_header_compiler" >&6
7144 # Is the header present?
7145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7147 cat >conftest.$ac_ext <<_ACEOF
7148 #line $LINENO "configure"
7149 #include "confdefs.h"
7150 #include <$ac_header>
7152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155 egrep -v '^ *\+' conftest.er1 >conftest.err
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } >/dev/null; then
7160 if test -s conftest.err; then
7161 ac_cpp_err=$ac_c_preproc_warn_flag
7168 if test -z "$ac_cpp_err"; then
7169 ac_header_preproc=yes
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 ac_header_preproc=no
7175 rm -f conftest.err conftest.$ac_ext
7176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7177 echo "${ECHO_T}$ac_header_preproc" >&6
7179 # So? What about this header?
7180 case $ac_header_compiler:$ac_header_preproc in
7182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7194 echo "$as_me:$LINENO: checking for $ac_header" >&5
7195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 eval "$as_ac_Header=$ac_header_preproc"
7201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7206 cat >>confdefs.h <<_ACEOF
7207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7215 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7216 # netinet/in.h is included first.
7218 for ac_header in netinet/in.h
7220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo "$as_me:$LINENO: checking for $ac_header" >&5
7223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7230 # Is the header compilable?
7231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7234 #line $LINENO "configure"
7235 #include "confdefs.h"
7236 $ac_includes_default
7237 #include <$ac_header>
7239 rm -f conftest.$ac_objext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7241 (eval $ac_compile) 2>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 ac_header_compiler=yes
7253 echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7255 ac_header_compiler=no
7257 rm -f conftest.$ac_objext conftest.$ac_ext
7258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7259 echo "${ECHO_T}$ac_header_compiler" >&6
7261 # Is the header present?
7262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 #line $LINENO "configure"
7266 #include "confdefs.h"
7267 #include <$ac_header>
7269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7272 egrep -v '^ *\+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } >/dev/null; then
7277 if test -s conftest.err; then
7278 ac_cpp_err=$ac_c_preproc_warn_flag
7285 if test -z "$ac_cpp_err"; then
7286 ac_header_preproc=yes
7288 echo "$as_me: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7290 ac_header_preproc=no
7292 rm -f conftest.err conftest.$ac_ext
7293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7294 echo "${ECHO_T}$ac_header_preproc" >&6
7296 # So? What about this header?
7297 case $ac_header_compiler:$ac_header_preproc in
7299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7311 echo "$as_me:$LINENO: checking for $ac_header" >&5
7312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 eval "$as_ac_Header=$ac_header_preproc"
7318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7323 cat >>confdefs.h <<_ACEOF
7324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7332 for ac_header in netinet/tcp.h
7334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 #include "confdefs.h"
7343 $ac_includes_default
7344 #ifdef HAVE_NETINET_IN_H
7345 #include <netinet/in.h>
7349 #include <$ac_header>
7351 rm -f conftest.$ac_objext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7353 (eval $ac_compile) 2>&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 eval "$as_ac_Header=yes"
7365 echo "$as_me: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7367 eval "$as_ac_Header=no"
7369 rm -f conftest.$ac_objext conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 if test "$with_readline" = yes; then
7385 for ac_header in readline/readline.h
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389 echo "$as_me:$LINENO: checking for $ac_header" >&5
7390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7397 # Is the header compilable?
7398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7400 cat >conftest.$ac_ext <<_ACEOF
7401 #line $LINENO "configure"
7402 #include "confdefs.h"
7403 $ac_includes_default
7404 #include <$ac_header>
7406 rm -f conftest.$ac_objext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -s conftest.$ac_objext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 ac_header_compiler=yes
7420 echo "$as_me: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7422 ac_header_compiler=no
7424 rm -f conftest.$ac_objext conftest.$ac_ext
7425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7426 echo "${ECHO_T}$ac_header_compiler" >&6
7428 # Is the header present?
7429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7431 cat >conftest.$ac_ext <<_ACEOF
7432 #line $LINENO "configure"
7433 #include "confdefs.h"
7434 #include <$ac_header>
7436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7439 egrep -v '^ *\+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } >/dev/null; then
7444 if test -s conftest.err; then
7445 ac_cpp_err=$ac_c_preproc_warn_flag
7452 if test -z "$ac_cpp_err"; then
7453 ac_header_preproc=yes
7455 echo "$as_me: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 ac_header_preproc=no
7459 rm -f conftest.err conftest.$ac_ext
7460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7461 echo "${ECHO_T}$ac_header_preproc" >&6
7463 # So? What about this header?
7464 case $ac_header_compiler:$ac_header_preproc in
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7478 echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 eval "$as_ac_Header=$ac_header_preproc"
7485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496 for ac_header in editline/readline.h
7498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500 echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7508 # Is the header compilable?
7509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7512 #line $LINENO "configure"
7513 #include "confdefs.h"
7514 $ac_includes_default
7515 #include <$ac_header>
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -s conftest.$ac_objext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_header_compiler=yes
7531 echo "$as_me: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 ac_header_compiler=no
7535 rm -f conftest.$ac_objext conftest.$ac_ext
7536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7537 echo "${ECHO_T}$ac_header_compiler" >&6
7539 # Is the header present?
7540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7542 cat >conftest.$ac_ext <<_ACEOF
7543 #line $LINENO "configure"
7544 #include "confdefs.h"
7545 #include <$ac_header>
7547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7550 egrep -v '^ *\+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } >/dev/null; then
7555 if test -s conftest.err; then
7556 ac_cpp_err=$ac_c_preproc_warn_flag
7563 if test -z "$ac_cpp_err"; then
7564 ac_header_preproc=yes
7566 echo "$as_me: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7568 ac_header_preproc=no
7570 rm -f conftest.err conftest.$ac_ext
7571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7572 echo "${ECHO_T}$ac_header_preproc" >&6
7574 # So? What about this header?
7575 case $ac_header_compiler:$ac_header_preproc in
7577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7589 echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 eval "$as_ac_Header=$ac_header_preproc"
7596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7601 cat >>confdefs.h <<_ACEOF
7602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7607 for ac_header in readline.h
7609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7619 # Is the header compilable?
7620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7622 cat >conftest.$ac_ext <<_ACEOF
7623 #line $LINENO "configure"
7624 #include "confdefs.h"
7625 $ac_includes_default
7626 #include <$ac_header>
7628 rm -f conftest.$ac_objext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630 (eval $ac_compile) 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -s conftest.$ac_objext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_header_compiler=yes
7642 echo "$as_me: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7644 ac_header_compiler=no
7646 rm -f conftest.$ac_objext conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 #include "confdefs.h"
7656 #include <$ac_header>
7658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7661 egrep -v '^ *\+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } >/dev/null; then
7666 if test -s conftest.err; then
7667 ac_cpp_err=$ac_c_preproc_warn_flag
7674 if test -z "$ac_cpp_err"; then
7675 ac_header_preproc=yes
7677 echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 ac_header_preproc=no
7681 rm -f conftest.err conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7683 echo "${ECHO_T}$ac_header_preproc" >&6
7685 # So? What about this header?
7686 case $ac_header_compiler:$ac_header_preproc in
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7700 echo "$as_me:$LINENO: checking for $ac_header" >&5
7701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 eval "$as_ac_Header=$ac_header_preproc"
7707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7712 cat >>confdefs.h <<_ACEOF
7713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7717 { { echo "$as_me:$LINENO: error: readline header not found
7718 If you have readline already installed, see config.log for details on the
7719 failure. It is possible the compiler isn't looking in the proper directory.
7720 Use --without-readline to disable readline support." >&5
7721 echo "$as_me: error: readline header not found
7722 If you have readline already installed, see config.log for details on the
7723 failure. It is possible the compiler isn't looking in the proper directory.
7724 Use --without-readline to disable readline support." >&2;}
7725 { (exit 1); exit 1; }; }
7739 for ac_header in readline/history.h
7741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743 echo "$as_me:$LINENO: checking for $ac_header" >&5
7744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7751 # Is the header compilable?
7752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #line $LINENO "configure"
7756 #include "confdefs.h"
7757 $ac_includes_default
7758 #include <$ac_header>
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -s conftest.$ac_objext'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 ac_header_compiler=yes
7774 echo "$as_me: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 ac_header_compiler=no
7778 rm -f conftest.$ac_objext conftest.$ac_ext
7779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7780 echo "${ECHO_T}$ac_header_compiler" >&6
7782 # Is the header present?
7783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7785 cat >conftest.$ac_ext <<_ACEOF
7786 #line $LINENO "configure"
7787 #include "confdefs.h"
7788 #include <$ac_header>
7790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7793 egrep -v '^ *\+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } >/dev/null; then
7798 if test -s conftest.err; then
7799 ac_cpp_err=$ac_c_preproc_warn_flag
7806 if test -z "$ac_cpp_err"; then
7807 ac_header_preproc=yes
7809 echo "$as_me: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 ac_header_preproc=no
7813 rm -f conftest.err conftest.$ac_ext
7814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7815 echo "${ECHO_T}$ac_header_preproc" >&6
7817 # So? What about this header?
7818 case $ac_header_compiler:$ac_header_preproc in
7820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7832 echo "$as_me:$LINENO: checking for $ac_header" >&5
7833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 eval "$as_ac_Header=$ac_header_preproc"
7839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7844 cat >>confdefs.h <<_ACEOF
7845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7850 for ac_header in editline/history.h
7852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7854 echo "$as_me:$LINENO: checking for $ac_header" >&5
7855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7862 # Is the header compilable?
7863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7867 #include "confdefs.h"
7868 $ac_includes_default
7869 #include <$ac_header>
7871 rm -f conftest.$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -s conftest.$ac_objext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7883 ac_header_compiler=yes
7885 echo "$as_me: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7887 ac_header_compiler=no
7889 rm -f conftest.$ac_objext conftest.$ac_ext
7890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7891 echo "${ECHO_T}$ac_header_compiler" >&6
7893 # Is the header present?
7894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7897 #line $LINENO "configure"
7898 #include "confdefs.h"
7899 #include <$ac_header>
7901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7904 egrep -v '^ *\+' conftest.er1 >conftest.err
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } >/dev/null; then
7909 if test -s conftest.err; then
7910 ac_cpp_err=$ac_c_preproc_warn_flag
7917 if test -z "$ac_cpp_err"; then
7918 ac_header_preproc=yes
7920 echo "$as_me: failed program was:" >&5
7921 cat conftest.$ac_ext >&5
7922 ac_header_preproc=no
7924 rm -f conftest.err conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7926 echo "${ECHO_T}$ac_header_preproc" >&6
7928 # So? What about this header?
7929 case $ac_header_compiler:$ac_header_preproc in
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7943 echo "$as_me:$LINENO: checking for $ac_header" >&5
7944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 eval "$as_ac_Header=$ac_header_preproc"
7950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7955 cat >>confdefs.h <<_ACEOF
7956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7961 for ac_header in history.h
7963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7973 # Is the header compilable?
7974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7976 cat >conftest.$ac_ext <<_ACEOF
7977 #line $LINENO "configure"
7978 #include "confdefs.h"
7979 $ac_includes_default
7980 #include <$ac_header>
7982 rm -f conftest.$ac_objext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7984 (eval $ac_compile) 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -s conftest.$ac_objext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_header_compiler=yes
7996 echo "$as_me: failed program was:" >&5
7997 cat conftest.$ac_ext >&5
7998 ac_header_compiler=no
8000 rm -f conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8002 echo "${ECHO_T}$ac_header_compiler" >&6
8004 # Is the header present?
8005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8008 #line $LINENO "configure"
8009 #include "confdefs.h"
8010 #include <$ac_header>
8012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8015 egrep -v '^ *\+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } >/dev/null; then
8020 if test -s conftest.err; then
8021 ac_cpp_err=$ac_c_preproc_warn_flag
8028 if test -z "$ac_cpp_err"; then
8029 ac_header_preproc=yes
8031 echo "$as_me: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8033 ac_header_preproc=no
8035 rm -f conftest.err conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8037 echo "${ECHO_T}$ac_header_preproc" >&6
8039 # So? What about this header?
8040 case $ac_header_compiler:$ac_header_preproc in
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8054 echo "$as_me:$LINENO: checking for $ac_header" >&5
8055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 eval "$as_ac_Header=$ac_header_preproc"
8061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8071 { { echo "$as_me:$LINENO: error: history header not found
8072 If you have readline already installed, see config.log for details on the
8073 failure. It is possible the compiler isn't looking in the proper directory.
8074 Use --without-readline to disable readline support." >&5
8075 echo "$as_me: error: history header not found
8076 If you have readline already installed, see config.log for details on the
8077 failure. It is possible the compiler isn't looking in the proper directory.
8078 Use --without-readline to disable readline support." >&2;}
8079 { (exit 1); exit 1; }; }
8094 if test "$with_zlib" = yes; then
8095 if test "${ac_cv_header_zlib_h+set}" = set; then
8096 echo "$as_me:$LINENO: checking for zlib.h" >&5
8097 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8098 if test "${ac_cv_header_zlib_h+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8102 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8104 # Is the header compilable?
8105 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8106 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8108 #line $LINENO "configure"
8109 #include "confdefs.h"
8110 $ac_includes_default
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_header_compiler=yes
8127 echo "$as_me: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8129 ac_header_compiler=no
8131 rm -f conftest.$ac_objext conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8133 echo "${ECHO_T}$ac_header_compiler" >&6
8135 # Is the header present?
8136 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8137 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line $LINENO "configure"
8140 #include "confdefs.h"
8143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8146 egrep -v '^ *\+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } >/dev/null; then
8151 if test -s conftest.err; then
8152 ac_cpp_err=$ac_c_preproc_warn_flag
8159 if test -z "$ac_cpp_err"; then
8160 ac_header_preproc=yes
8162 echo "$as_me: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8164 ac_header_preproc=no
8166 rm -f conftest.err conftest.$ac_ext
8167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8168 echo "${ECHO_T}$ac_header_preproc" >&6
8170 # So? What about this header?
8171 case $ac_header_compiler:$ac_header_preproc in
8173 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8174 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8176 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8178 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8179 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8181 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8183 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8185 echo "$as_me:$LINENO: checking for zlib.h" >&5
8186 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8187 if test "${ac_cv_header_zlib_h+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 ac_cv_header_zlib_h=$ac_header_preproc
8192 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8193 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8196 if test $ac_cv_header_zlib_h = yes; then
8199 { { echo "$as_me:$LINENO: error: zlib header not found
8200 If you have zlib already installed, see config.log for details on the
8201 failure. It is possible the compiler isn't looking in the proper directory.
8202 Use --without-zlib to disable zlib support." >&5
8203 echo "$as_me: error: zlib header not found
8204 If you have zlib already installed, see config.log for details on the
8205 failure. It is possible the compiler isn't looking in the proper directory.
8206 Use --without-zlib to disable zlib support." >&2;}
8207 { (exit 1); exit 1; }; }
8213 if test "$with_krb4" = yes ; then
8214 if test "${ac_cv_header_krb_h+set}" = set; then
8215 echo "$as_me:$LINENO: checking for krb.h" >&5
8216 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8217 if test "${ac_cv_header_krb_h+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8221 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8223 # Is the header compilable?
8224 echo "$as_me:$LINENO: checking krb.h usability" >&5
8225 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8226 cat >conftest.$ac_ext <<_ACEOF
8227 #line $LINENO "configure"
8228 #include "confdefs.h"
8229 $ac_includes_default
8232 rm -f conftest.$ac_objext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -s conftest.$ac_objext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_header_compiler=yes
8246 echo "$as_me: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 ac_header_compiler=no
8250 rm -f conftest.$ac_objext conftest.$ac_ext
8251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8252 echo "${ECHO_T}$ac_header_compiler" >&6
8254 # Is the header present?
8255 echo "$as_me:$LINENO: checking krb.h presence" >&5
8256 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line $LINENO "configure"
8259 #include "confdefs.h"
8262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8265 egrep -v '^ *\+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } >/dev/null; then
8270 if test -s conftest.err; then
8271 ac_cpp_err=$ac_c_preproc_warn_flag
8278 if test -z "$ac_cpp_err"; then
8279 ac_header_preproc=yes
8281 echo "$as_me: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8283 ac_header_preproc=no
8285 rm -f conftest.err conftest.$ac_ext
8286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8287 echo "${ECHO_T}$ac_header_preproc" >&6
8289 # So? What about this header?
8290 case $ac_header_compiler:$ac_header_preproc in
8292 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8293 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8294 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8295 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8297 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8298 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8300 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8302 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8304 echo "$as_me:$LINENO: checking for krb.h" >&5
8305 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8306 if test "${ac_cv_header_krb_h+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 ac_cv_header_krb_h=$ac_header_preproc
8311 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8312 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8315 if test $ac_cv_header_krb_h = yes; then
8318 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8319 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8320 { (exit 1); exit 1; }; }
8326 if test "$with_krb5" = yes ; then
8327 if test "${ac_cv_header_krb5_h+set}" = set; then
8328 echo "$as_me:$LINENO: checking for krb5.h" >&5
8329 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8330 if test "${ac_cv_header_krb5_h+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8334 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8336 # Is the header compilable?
8337 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8338 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8339 cat >conftest.$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 #include "confdefs.h"
8342 $ac_includes_default
8345 rm -f conftest.$ac_objext
8346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347 (eval $ac_compile) 2>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -s conftest.$ac_objext'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_header_compiler=yes
8359 echo "$as_me: failed program was:" >&5
8360 cat conftest.$ac_ext >&5
8361 ac_header_compiler=no
8363 rm -f conftest.$ac_objext conftest.$ac_ext
8364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8365 echo "${ECHO_T}$ac_header_compiler" >&6
8367 # Is the header present?
8368 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8369 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8370 cat >conftest.$ac_ext <<_ACEOF
8371 #line $LINENO "configure"
8372 #include "confdefs.h"
8375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8378 egrep -v '^ *\+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } >/dev/null; then
8383 if test -s conftest.err; then
8384 ac_cpp_err=$ac_c_preproc_warn_flag
8391 if test -z "$ac_cpp_err"; then
8392 ac_header_preproc=yes
8394 echo "$as_me: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8396 ac_header_preproc=no
8398 rm -f conftest.err conftest.$ac_ext
8399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8400 echo "${ECHO_T}$ac_header_preproc" >&6
8402 # So? What about this header?
8403 case $ac_header_compiler:$ac_header_preproc in
8405 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8406 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8408 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8410 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8411 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8413 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8415 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8417 echo "$as_me:$LINENO: checking for krb5.h" >&5
8418 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8419 if test "${ac_cv_header_krb5_h+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 ac_cv_header_krb5_h=$ac_header_preproc
8424 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8425 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8428 if test $ac_cv_header_krb5_h = yes; then
8431 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8432 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8433 { (exit 1); exit 1; }; }
8437 if test "${ac_cv_header_com_err_h+set}" = set; then
8438 echo "$as_me:$LINENO: checking for com_err.h" >&5
8439 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8440 if test "${ac_cv_header_com_err_h+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8444 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8446 # Is the header compilable?
8447 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8448 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 #include "confdefs.h"
8452 $ac_includes_default
8453 #include <com_err.h>
8455 rm -f conftest.$ac_objext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8457 (eval $ac_compile) 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_header_compiler=yes
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 ac_header_compiler=no
8473 rm -f conftest.$ac_objext conftest.$ac_ext
8474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8475 echo "${ECHO_T}$ac_header_compiler" >&6
8477 # Is the header present?
8478 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8479 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8481 #line $LINENO "configure"
8482 #include "confdefs.h"
8483 #include <com_err.h>
8485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8488 egrep -v '^ *\+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } >/dev/null; then
8493 if test -s conftest.err; then
8494 ac_cpp_err=$ac_c_preproc_warn_flag
8501 if test -z "$ac_cpp_err"; then
8502 ac_header_preproc=yes
8504 echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 ac_header_preproc=no
8508 rm -f conftest.err conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8510 echo "${ECHO_T}$ac_header_preproc" >&6
8512 # So? What about this header?
8513 case $ac_header_compiler:$ac_header_preproc in
8515 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8516 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8518 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8520 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8521 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8523 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8525 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8527 echo "$as_me:$LINENO: checking for com_err.h" >&5
8528 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8529 if test "${ac_cv_header_com_err_h+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 ac_cv_header_com_err_h=$ac_header_preproc
8534 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8535 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8538 if test $ac_cv_header_com_err_h = yes; then
8541 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8542 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8543 { (exit 1); exit 1; }; }
8549 if test "$with_openssl" = yes ; then
8550 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8551 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8552 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8553 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8557 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8559 # Is the header compilable?
8560 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8561 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 #include "confdefs.h"
8565 $ac_includes_default
8566 #include <openssl/ssl.h>
8568 rm -f conftest.$ac_objext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8570 (eval $ac_compile) 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_header_compiler=yes
8582 echo "$as_me: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8584 ac_header_compiler=no
8586 rm -f conftest.$ac_objext conftest.$ac_ext
8587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8588 echo "${ECHO_T}$ac_header_compiler" >&6
8590 # Is the header present?
8591 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8592 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8593 cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 #include "confdefs.h"
8596 #include <openssl/ssl.h>
8598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8601 egrep -v '^ *\+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } >/dev/null; then
8606 if test -s conftest.err; then
8607 ac_cpp_err=$ac_c_preproc_warn_flag
8614 if test -z "$ac_cpp_err"; then
8615 ac_header_preproc=yes
8617 echo "$as_me: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8619 ac_header_preproc=no
8621 rm -f conftest.err conftest.$ac_ext
8622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8623 echo "${ECHO_T}$ac_header_preproc" >&6
8625 # So? What about this header?
8626 case $ac_header_compiler:$ac_header_preproc in
8628 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8629 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8631 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8633 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8634 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8635 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8636 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8637 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8638 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8640 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8641 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8642 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8647 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8648 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8651 if test $ac_cv_header_openssl_ssl_h = yes; then
8654 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8655 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8656 { (exit 1); exit 1; }; }
8660 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8661 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8662 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8663 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8667 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8669 # Is the header compilable?
8670 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8671 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8673 #line $LINENO "configure"
8674 #include "confdefs.h"
8675 $ac_includes_default
8676 #include <openssl/err.h>
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -s conftest.$ac_objext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 ac_header_compiler=yes
8692 echo "$as_me: failed program was:" >&5
8693 cat conftest.$ac_ext >&5
8694 ac_header_compiler=no
8696 rm -f conftest.$ac_objext conftest.$ac_ext
8697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8698 echo "${ECHO_T}$ac_header_compiler" >&6
8700 # Is the header present?
8701 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8702 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8705 #include "confdefs.h"
8706 #include <openssl/err.h>
8708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8711 egrep -v '^ *\+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } >/dev/null; then
8716 if test -s conftest.err; then
8717 ac_cpp_err=$ac_c_preproc_warn_flag
8724 if test -z "$ac_cpp_err"; then
8725 ac_header_preproc=yes
8727 echo "$as_me: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8729 ac_header_preproc=no
8731 rm -f conftest.err conftest.$ac_ext
8732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8733 echo "${ECHO_T}$ac_header_preproc" >&6
8735 # So? What about this header?
8736 case $ac_header_compiler:$ac_header_preproc in
8738 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8739 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8741 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8743 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8744 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8746 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8748 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8750 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8751 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8752 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 ac_cv_header_openssl_err_h=$ac_header_preproc
8757 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8758 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8761 if test $ac_cv_header_openssl_err_h = yes; then
8764 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8765 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8766 { (exit 1); exit 1; }; }
8772 if test "$with_pam" = yes ; then
8774 for ac_header in security/pam_appl.h
8776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778 echo "$as_me:$LINENO: checking for $ac_header" >&5
8779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8786 # Is the header compilable?
8787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8791 #include "confdefs.h"
8792 $ac_includes_default
8793 #include <$ac_header>
8795 rm -f conftest.$ac_objext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8797 (eval $ac_compile) 2>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -s conftest.$ac_objext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 ac_header_compiler=yes
8809 echo "$as_me: failed program was:" >&5
8810 cat conftest.$ac_ext >&5
8811 ac_header_compiler=no
8813 rm -f conftest.$ac_objext conftest.$ac_ext
8814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815 echo "${ECHO_T}$ac_header_compiler" >&6
8817 # Is the header present?
8818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8821 #line $LINENO "configure"
8822 #include "confdefs.h"
8823 #include <$ac_header>
8825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8828 egrep -v '^ *\+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } >/dev/null; then
8833 if test -s conftest.err; then
8834 ac_cpp_err=$ac_c_preproc_warn_flag
8841 if test -z "$ac_cpp_err"; then
8842 ac_header_preproc=yes
8844 echo "$as_me: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8846 ac_header_preproc=no
8848 rm -f conftest.err conftest.$ac_ext
8849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8850 echo "${ECHO_T}$ac_header_preproc" >&6
8852 # So? What about this header?
8853 case $ac_header_compiler:$ac_header_preproc in
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8867 echo "$as_me:$LINENO: checking for $ac_header" >&5
8868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 eval "$as_ac_Header=$ac_header_preproc"
8874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879 cat >>confdefs.h <<_ACEOF
8880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 for ac_header in pam/pam_appl.h
8887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo "$as_me:$LINENO: checking for $ac_header" >&5
8890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897 # Is the header compilable?
8898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line $LINENO "configure"
8902 #include "confdefs.h"
8903 $ac_includes_default
8904 #include <$ac_header>
8906 rm -f conftest.$ac_objext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908 (eval $ac_compile) 2>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest.$ac_objext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_header_compiler=yes
8920 echo "$as_me: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8922 ac_header_compiler=no
8924 rm -f conftest.$ac_objext conftest.$ac_ext
8925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8926 echo "${ECHO_T}$ac_header_compiler" >&6
8928 # Is the header present?
8929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8931 cat >conftest.$ac_ext <<_ACEOF
8932 #line $LINENO "configure"
8933 #include "confdefs.h"
8934 #include <$ac_header>
8936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8939 egrep -v '^ *\+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } >/dev/null; then
8944 if test -s conftest.err; then
8945 ac_cpp_err=$ac_c_preproc_warn_flag
8952 if test -z "$ac_cpp_err"; then
8953 ac_header_preproc=yes
8955 echo "$as_me: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 ac_header_preproc=no
8959 rm -f conftest.err conftest.$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8961 echo "${ECHO_T}$ac_header_preproc" >&6
8963 # So? What about this header?
8964 case $ac_header_compiler:$ac_header_preproc in
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8978 echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 eval "$as_ac_Header=$ac_header_preproc"
8985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8990 cat >>confdefs.h <<_ACEOF
8991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8995 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8996 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8997 { (exit 1); exit 1; }; }
9008 if test "$with_rendezvous" = yes ; then
9009 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9010 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9011 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9012 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9016 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9018 # Is the header compilable?
9019 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9020 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9022 #line $LINENO "configure"
9023 #include "confdefs.h"
9024 $ac_includes_default
9025 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9027 rm -f conftest.$ac_objext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029 (eval $ac_compile) 2>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_header_compiler=yes
9041 echo "$as_me: failed program was:" >&5
9042 cat conftest.$ac_ext >&5
9043 ac_header_compiler=no
9045 rm -f conftest.$ac_objext conftest.$ac_ext
9046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9047 echo "${ECHO_T}$ac_header_compiler" >&6
9049 # Is the header present?
9050 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9051 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9052 cat >conftest.$ac_ext <<_ACEOF
9053 #line $LINENO "configure"
9054 #include "confdefs.h"
9055 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9060 egrep -v '^ *\+' conftest.er1 >conftest.err
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } >/dev/null; then
9065 if test -s conftest.err; then
9066 ac_cpp_err=$ac_c_preproc_warn_flag
9073 if test -z "$ac_cpp_err"; then
9074 ac_header_preproc=yes
9076 echo "$as_me: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9078 ac_header_preproc=no
9080 rm -f conftest.err conftest.$ac_ext
9081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9082 echo "${ECHO_T}$ac_header_preproc" >&6
9084 # So? What about this header?
9085 case $ac_header_compiler:$ac_header_preproc in
9087 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9088 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9090 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9092 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9093 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9095 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9097 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9099 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9100 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9101 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9106 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9107 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9110 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9113 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9114 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9115 { (exit 1); exit 1; }; }
9123 ## Types, structures, compiler characteristics
9127 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9128 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9129 if test "${ac_cv_c_const+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 cat >conftest.$ac_ext <<_ACEOF
9133 #line $LINENO "configure"
9134 #include "confdefs.h"
9136 #ifdef F77_DUMMY_MAIN
9140 int F77_DUMMY_MAIN() { return 1; }
9145 /* FIXME: Include the comments suggested by Paul. */
9147 /* Ultrix mips cc rejects this. */
9148 typedef int charset[2];
9150 /* SunOS 4.1.1 cc rejects this. */
9151 char const *const *ccp;
9153 /* NEC SVR4.0.2 mips cc rejects this. */
9154 struct point {int x, y;};
9155 static struct point const zero = {0,0};
9156 /* AIX XL C 1.02.0.0 rejects this.
9157 It does not let you subtract one const X* pointer from another in
9158 an arm of an if-expression whose if-part is not a constant
9160 const char *g = "string";
9161 ccp = &g + (g ? g-g : 0);
9162 /* HPUX 7.0 cc rejects these. */
9165 ccp = (char const *const *) p;
9166 { /* SCO 3.2v4 cc rejects this. */
9168 char const *s = 0 ? (char *) 0 : (char const *) 0;
9172 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9174 const int *foo = &x[0];
9177 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9178 typedef const int *iptr;
9182 { /* AIX XL C 1.02.0.0 rejects this saying
9183 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9184 struct s { int j; const int *ap[3]; };
9185 struct s *b; b->j = 5;
9187 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198 (eval $ac_compile) 2>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9214 rm -f conftest.$ac_objext conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9217 echo "${ECHO_T}$ac_cv_c_const" >&6
9218 if test $ac_cv_c_const = no; then
9220 cat >>confdefs.h <<\_ACEOF
9226 echo "$as_me:$LINENO: checking for inline" >&5
9227 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9228 if test "${ac_cv_c_inline+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 for ac_kw in inline __inline__ __inline; do
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9235 #include "confdefs.h"
9237 static $ac_kw int static_foo () {return 0; }
9238 $ac_kw int foo () {return 0; }
9242 rm -f conftest.$ac_objext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9244 (eval $ac_compile) 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_c_inline=$ac_kw; break
9256 echo "$as_me: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9259 rm -f conftest.$ac_objext conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9264 echo "${ECHO_T}$ac_cv_c_inline" >&6
9265 case $ac_cv_c_inline in
9268 cat >>confdefs.h <<\_ACEOF
9272 *) cat >>confdefs.h <<_ACEOF
9273 #define inline $ac_cv_c_inline
9278 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9279 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9280 if test "${ac_cv_c_stringize+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9284 #line $LINENO "configure"
9285 #include "confdefs.h"
9288 char *s = x(teststring);
9290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9291 egrep "#teststring" >/dev/null 2>&1; then
9292 ac_cv_c_stringize=no
9294 ac_cv_c_stringize=yes
9299 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9300 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9301 if test $ac_cv_c_stringize = yes; then
9303 cat >>confdefs.h <<\_ACEOF
9304 #define HAVE_STRINGIZE 1
9309 echo "$as_me:$LINENO: checking for signed types" >&5
9310 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9311 if test "${pgac_cv_c_signed+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9316 #include "confdefs.h"
9318 #ifdef F77_DUMMY_MAIN
9322 int F77_DUMMY_MAIN() { return 1; }
9327 signed char c; signed short s; signed int i;
9332 rm -f conftest.$ac_objext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9334 (eval $ac_compile) 2>&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try='test -s conftest.$ac_objext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 pgac_cv_c_signed=yes
9346 echo "$as_me: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9350 rm -f conftest.$ac_objext conftest.$ac_ext
9352 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9353 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9354 if test x"$pgac_cv_c_signed" = xno ; then
9356 cat >>confdefs.h <<\_ACEOF
9361 echo "$as_me:$LINENO: checking for working volatile" >&5
9362 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9363 if test "${ac_cv_c_volatile+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 cat >conftest.$ac_ext <<_ACEOF
9367 #line $LINENO "configure"
9368 #include "confdefs.h"
9370 #ifdef F77_DUMMY_MAIN
9374 int F77_DUMMY_MAIN() { return 1; }
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -s conftest.$ac_objext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_cv_c_volatile=yes
9400 echo "$as_me: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9404 rm -f conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9407 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9408 if test $ac_cv_c_volatile = no; then
9410 cat >>confdefs.h <<\_ACEOF
9416 echo "$as_me:$LINENO: checking for __func__" >&5
9417 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9418 if test "${pgac_cv_funcname_func_support+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9422 #line $LINENO "configure"
9423 #include "confdefs.h"
9425 #ifdef F77_DUMMY_MAIN
9429 int F77_DUMMY_MAIN() { return 1; }
9434 printf("%s\n", __func__);
9439 rm -f conftest.$ac_objext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9441 (eval $ac_compile) 2>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -s conftest.$ac_objext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 pgac_cv_funcname_func_support=yes
9453 echo "$as_me: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9455 pgac_cv_funcname_func_support=no
9457 rm -f conftest.$ac_objext conftest.$ac_ext
9459 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9460 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9461 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9463 cat >>confdefs.h <<\_ACEOF
9464 #define HAVE_FUNCNAME__FUNC 1
9468 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9469 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9470 if test "${pgac_cv_funcname_function_support+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9475 #include "confdefs.h"
9477 #ifdef F77_DUMMY_MAIN
9481 int F77_DUMMY_MAIN() { return 1; }
9486 printf("%s\n", __FUNCTION__);
9491 rm -f conftest.$ac_objext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493 (eval $ac_compile) 2>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -s conftest.$ac_objext'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 pgac_cv_funcname_function_support=yes
9505 echo "$as_me: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9507 pgac_cv_funcname_function_support=no
9509 rm -f conftest.$ac_objext conftest.$ac_ext
9511 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9512 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9513 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9515 cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_FUNCNAME__FUNCTION 1
9521 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9522 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9523 if test "${ac_cv_struct_tm+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 cat >conftest.$ac_ext <<_ACEOF
9527 #line $LINENO "configure"
9528 #include "confdefs.h"
9529 #include <sys/types.h>
9532 #ifdef F77_DUMMY_MAIN
9536 int F77_DUMMY_MAIN() { return 1; }
9541 struct tm *tp; tp->tm_sec;
9546 rm -f conftest.$ac_objext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548 (eval $ac_compile) 2>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_cv_struct_tm=time.h
9560 echo "$as_me: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 ac_cv_struct_tm=sys/time.h
9564 rm -f conftest.$ac_objext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9567 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9568 if test $ac_cv_struct_tm = sys/time.h; then
9570 cat >>confdefs.h <<\_ACEOF
9571 #define TM_IN_SYS_TIME 1
9576 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9577 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9578 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9583 #include "confdefs.h"
9584 #include <sys/types.h>
9585 #include <$ac_cv_struct_tm>
9588 #ifdef F77_DUMMY_MAIN
9592 int F77_DUMMY_MAIN() { return 1; }
9597 static struct tm ac_aggr;
9598 if (ac_aggr.tm_zone)
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -s conftest.$ac_objext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 ac_cv_member_struct_tm_tm_zone=yes
9618 echo "$as_me: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 ac_cv_member_struct_tm_tm_zone=no
9622 rm -f conftest.$ac_objext conftest.$ac_ext
9624 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9625 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9626 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9628 cat >>confdefs.h <<_ACEOF
9629 #define HAVE_STRUCT_TM_TM_ZONE 1
9635 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_TM_ZONE 1
9642 echo "$as_me:$LINENO: checking for tzname" >&5
9643 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9644 if test "${ac_cv_var_tzname+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 cat >conftest.$ac_ext <<_ACEOF
9648 #line $LINENO "configure"
9649 #include "confdefs.h"
9651 #ifndef tzname /* For SGI. */
9652 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9655 #ifdef F77_DUMMY_MAIN
9659 int F77_DUMMY_MAIN() { return 1; }
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_var_tzname=yes
9683 echo "$as_me: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9689 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9690 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9691 if test $ac_cv_var_tzname = yes; then
9693 cat >>confdefs.h <<\_ACEOF
9694 #define HAVE_TZNAME 1
9699 echo "$as_me:$LINENO: checking for union semun" >&5
9700 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9701 if test "${ac_cv_type_union_semun+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9705 #line $LINENO "configure"
9706 #include "confdefs.h"
9707 #include <sys/types.h>
9708 #include <sys/ipc.h>
9709 #include <sys/sem.h>
9711 #ifdef F77_DUMMY_MAIN
9715 int F77_DUMMY_MAIN() { return 1; }
9720 if ((union semun *) 0)
9722 if (sizeof (union semun))
9728 rm -f conftest.$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730 (eval $ac_compile) 2>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_cv_type_union_semun=yes
9742 echo "$as_me: failed program was:" >&5
9743 cat conftest.$ac_ext >&5
9744 ac_cv_type_union_semun=no
9746 rm -f conftest.$ac_objext conftest.$ac_ext
9748 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9749 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9750 if test $ac_cv_type_union_semun = yes; then
9752 cat >>confdefs.h <<_ACEOF
9753 #define HAVE_UNION_SEMUN 1
9759 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9760 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9761 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 cat >conftest.$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9766 #include "confdefs.h"
9767 #include <sys/types.h>
9768 #ifdef HAVE_SYS_UN_H
9773 #ifdef F77_DUMMY_MAIN
9777 int F77_DUMMY_MAIN() { return 1; }
9782 if ((struct sockaddr_un *) 0)
9784 if (sizeof (struct sockaddr_un))
9790 rm -f conftest.$ac_objext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9792 (eval $ac_compile) 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -s conftest.$ac_objext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_cv_type_struct_sockaddr_un=yes
9804 echo "$as_me: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9806 ac_cv_type_struct_sockaddr_un=no
9808 rm -f conftest.$ac_objext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9811 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9812 if test $ac_cv_type_struct_sockaddr_un = yes; then
9814 cat >>confdefs.h <<_ACEOF
9815 #define HAVE_STRUCT_SOCKADDR_UN 1
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_UNIX_SOCKETS 1
9825 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9826 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9827 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 cat >conftest.$ac_ext <<_ACEOF
9831 #line $LINENO "configure"
9832 #include "confdefs.h"
9833 #include <sys/types.h>
9834 #ifdef HAVE_SYS_SOCKET_H
9835 #include <sys/socket.h>
9839 #ifdef F77_DUMMY_MAIN
9843 int F77_DUMMY_MAIN() { return 1; }
9848 if ((struct sockaddr_storage *) 0)
9850 if (sizeof (struct sockaddr_storage))
9856 rm -f conftest.$ac_objext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9858 (eval $ac_compile) 2>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -s conftest.$ac_objext'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 ac_cv_type_struct_sockaddr_storage=yes
9870 echo "$as_me: failed program was:" >&5
9871 cat conftest.$ac_ext >&5
9872 ac_cv_type_struct_sockaddr_storage=no
9874 rm -f conftest.$ac_objext conftest.$ac_ext
9876 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9877 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9878 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9880 cat >>confdefs.h <<_ACEOF
9881 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9887 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9888 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9889 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9895 #include <sys/types.h>
9896 #ifdef HAVE_SYS_SOCKET_H
9897 #include <sys/socket.h>
9901 #ifdef F77_DUMMY_MAIN
9905 int F77_DUMMY_MAIN() { return 1; }
9910 static struct sockaddr_storage ac_aggr;
9911 if (ac_aggr.ss_family)
9917 rm -f conftest.$ac_objext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9919 (eval $ac_compile) 2>&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -s conftest.$ac_objext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9931 echo "$as_me: failed program was:" >&5
9932 cat conftest.$ac_ext >&5
9933 ac_cv_member_struct_sockaddr_storage_ss_family=no
9935 rm -f conftest.$ac_objext conftest.$ac_ext
9937 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9938 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9939 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9941 cat >>confdefs.h <<_ACEOF
9942 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9947 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9948 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9949 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 cat >conftest.$ac_ext <<_ACEOF
9953 #line $LINENO "configure"
9954 #include "confdefs.h"
9955 #include <sys/types.h>
9956 #ifdef HAVE_SYS_SOCKET_H
9957 #include <sys/socket.h>
9961 #ifdef F77_DUMMY_MAIN
9965 int F77_DUMMY_MAIN() { return 1; }
9970 static struct sockaddr_storage ac_aggr;
9971 if (ac_aggr.__ss_family)
9977 rm -f conftest.$ac_objext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9979 (eval $ac_compile) 2>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9991 echo "$as_me: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9993 ac_cv_member_struct_sockaddr_storage___ss_family=no
9995 rm -f conftest.$ac_objext conftest.$ac_ext
9997 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9998 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9999 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10001 cat >>confdefs.h <<_ACEOF
10002 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10007 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10008 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10009 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 cat >conftest.$ac_ext <<_ACEOF
10013 #line $LINENO "configure"
10014 #include "confdefs.h"
10015 #include <sys/types.h>
10016 #ifdef HAVE_SYS_SOCKET_H
10017 #include <sys/socket.h>
10021 #ifdef F77_DUMMY_MAIN
10022 # ifdef __cplusplus
10025 int F77_DUMMY_MAIN() { return 1; }
10030 static struct sockaddr_storage ac_aggr;
10031 if (ac_aggr.ss_len)
10037 rm -f conftest.$ac_objext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10039 (eval $ac_compile) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10051 echo "$as_me: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10053 ac_cv_member_struct_sockaddr_storage_ss_len=no
10055 rm -f conftest.$ac_objext conftest.$ac_ext
10057 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10058 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10059 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10061 cat >>confdefs.h <<_ACEOF
10062 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10067 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10068 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10069 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10073 #line $LINENO "configure"
10074 #include "confdefs.h"
10075 #include <sys/types.h>
10076 #ifdef HAVE_SYS_SOCKET_H
10077 #include <sys/socket.h>
10081 #ifdef F77_DUMMY_MAIN
10082 # ifdef __cplusplus
10085 int F77_DUMMY_MAIN() { return 1; }
10090 static struct sockaddr_storage ac_aggr;
10091 if (ac_aggr.__ss_len)
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10111 echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 ac_cv_member_struct_sockaddr_storage___ss_len=no
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10118 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10119 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10121 cat >>confdefs.h <<_ACEOF
10122 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10127 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10128 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10129 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 #include "confdefs.h"
10135 #include <sys/types.h>
10136 #ifdef HAVE_SYS_SOCKET_H
10137 #include <sys/socket.h>
10141 #ifdef F77_DUMMY_MAIN
10142 # ifdef __cplusplus
10145 int F77_DUMMY_MAIN() { return 1; }
10150 static struct sockaddr ac_aggr;
10151 if (ac_aggr.sa_len)
10157 rm -f conftest.$ac_objext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -s conftest.$ac_objext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_member_struct_sockaddr_sa_len=yes
10171 echo "$as_me: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10173 ac_cv_member_struct_sockaddr_sa_len=no
10175 rm -f conftest.$ac_objext conftest.$ac_ext
10177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10178 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10179 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10181 cat >>confdefs.h <<_ACEOF
10182 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10188 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10189 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10190 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 cat >conftest.$ac_ext <<_ACEOF
10194 #line $LINENO "configure"
10195 #include "confdefs.h"
10196 #include <sys/types.h>
10197 #include <sys/socket.h>
10201 #ifdef F77_DUMMY_MAIN
10202 # ifdef __cplusplus
10205 int F77_DUMMY_MAIN() { return 1; }
10210 if ((struct addrinfo *) 0)
10212 if (sizeof (struct addrinfo))
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_type_struct_addrinfo=yes
10232 echo "$as_me: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 ac_cv_type_struct_addrinfo=no
10236 rm -f conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10239 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10240 if test $ac_cv_type_struct_addrinfo = yes; then
10242 cat >>confdefs.h <<_ACEOF
10243 #define HAVE_STRUCT_ADDRINFO 1
10250 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10251 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10252 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10257 #include "confdefs.h"
10258 #include <sys/param.h>
10259 #include <sys/types.h>
10260 #include <sys/socket.h>
10261 #include <sys/ucred.h>
10263 #ifdef F77_DUMMY_MAIN
10264 # ifdef __cplusplus
10267 int F77_DUMMY_MAIN() { return 1; }
10272 if ((struct cmsgcred *) 0)
10274 if (sizeof (struct cmsgcred))
10280 rm -f conftest.$ac_objext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282 (eval $ac_compile) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_type_struct_cmsgcred=yes
10294 echo "$as_me: failed program was:" >&5
10295 cat conftest.$ac_ext >&5
10296 ac_cv_type_struct_cmsgcred=no
10298 rm -f conftest.$ac_objext conftest.$ac_ext
10300 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10301 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10302 if test $ac_cv_type_struct_cmsgcred = yes; then
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_STRUCT_CMSGCRED 1
10310 echo "$as_me:$LINENO: checking for struct fcred" >&5
10311 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10312 if test "${ac_cv_type_struct_fcred+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 cat >conftest.$ac_ext <<_ACEOF
10316 #line $LINENO "configure"
10317 #include "confdefs.h"
10318 #include <sys/param.h>
10319 #include <sys/types.h>
10320 #include <sys/socket.h>
10321 #include <sys/ucred.h>
10323 #ifdef F77_DUMMY_MAIN
10324 # ifdef __cplusplus
10327 int F77_DUMMY_MAIN() { return 1; }
10332 if ((struct fcred *) 0)
10334 if (sizeof (struct fcred))
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_type_struct_fcred=yes
10354 echo "$as_me: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10356 ac_cv_type_struct_fcred=no
10358 rm -f conftest.$ac_objext conftest.$ac_ext
10360 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10361 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10362 if test $ac_cv_type_struct_fcred = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_STRUCT_FCRED 1
10370 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10371 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10372 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 cat >conftest.$ac_ext <<_ACEOF
10376 #line $LINENO "configure"
10377 #include "confdefs.h"
10378 #include <sys/param.h>
10379 #include <sys/types.h>
10380 #include <sys/socket.h>
10381 #include <sys/ucred.h>
10383 #ifdef F77_DUMMY_MAIN
10384 # ifdef __cplusplus
10387 int F77_DUMMY_MAIN() { return 1; }
10392 if ((struct sockcred *) 0)
10394 if (sizeof (struct sockcred))
10400 rm -f conftest.$ac_objext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -s conftest.$ac_objext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 ac_cv_type_struct_sockcred=yes
10414 echo "$as_me: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 ac_cv_type_struct_sockcred=no
10418 rm -f conftest.$ac_objext conftest.$ac_ext
10420 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10421 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10422 if test $ac_cv_type_struct_sockcred = yes; then
10424 cat >>confdefs.h <<_ACEOF
10425 #define HAVE_STRUCT_SOCKCRED 1
10432 echo "$as_me:$LINENO: checking for struct option" >&5
10433 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10434 if test "${ac_cv_type_struct_option+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10438 #line $LINENO "configure"
10439 #include "confdefs.h"
10440 #ifdef HAVE_GETOPT_H
10441 #include <getopt.h>
10444 #ifdef F77_DUMMY_MAIN
10445 # ifdef __cplusplus
10448 int F77_DUMMY_MAIN() { return 1; }
10453 if ((struct option *) 0)
10455 if (sizeof (struct option))
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_type_struct_option=yes
10475 echo "$as_me: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 ac_cv_type_struct_option=no
10479 rm -f conftest.$ac_objext conftest.$ac_ext
10481 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10482 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10483 if test $ac_cv_type_struct_option = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_STRUCT_OPTION 1
10493 if test "$with_zlib" = yes; then
10494 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10495 # did not). While we could work around the lack of z_streamp, it
10496 # seems unwise to encourage people to use such old zlib versions...
10497 echo "$as_me:$LINENO: checking for z_streamp" >&5
10498 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10499 if test "${ac_cv_type_z_streamp+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 #include "confdefs.h"
10507 #ifdef F77_DUMMY_MAIN
10508 # ifdef __cplusplus
10511 int F77_DUMMY_MAIN() { return 1; }
10516 if ((z_streamp *) 0)
10518 if (sizeof (z_streamp))
10524 rm -f conftest.$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -s conftest.$ac_objext'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 ac_cv_type_z_streamp=yes
10538 echo "$as_me: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 ac_cv_type_z_streamp=no
10542 rm -f conftest.$ac_objext conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10545 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10546 if test $ac_cv_type_z_streamp = yes; then
10549 { { echo "$as_me:$LINENO: error: zlib version is too old
10550 Use --without-zlib to disable zlib support." >&5
10551 echo "$as_me: error: zlib version is too old
10552 Use --without-zlib to disable zlib support." >&2;}
10553 { (exit 1); exit 1; }; }
10558 if test "$with_krb5" = yes; then
10559 # Check for differences between MIT and Heimdal (KTH) releases
10560 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10561 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10562 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 cat >conftest.$ac_ext <<_ACEOF
10566 #line $LINENO "configure"
10567 #include "confdefs.h"
10570 #ifdef F77_DUMMY_MAIN
10571 # ifdef __cplusplus
10574 int F77_DUMMY_MAIN() { return 1; }
10579 static krb5_ticket ac_aggr;
10580 if (ac_aggr.enc_part2)
10586 rm -f conftest.$ac_objext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10588 (eval $ac_compile) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_cv_member_krb5_ticket_enc_part2=yes
10600 echo "$as_me: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 ac_cv_member_krb5_ticket_enc_part2=no
10604 rm -f conftest.$ac_objext conftest.$ac_ext
10606 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10607 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10608 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10610 cat >>confdefs.h <<_ACEOF
10611 #define HAVE_KRB5_TICKET_ENC_PART2 1
10616 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10617 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10618 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 cat >conftest.$ac_ext <<_ACEOF
10622 #line $LINENO "configure"
10623 #include "confdefs.h"
10626 #ifdef F77_DUMMY_MAIN
10627 # ifdef __cplusplus
10630 int F77_DUMMY_MAIN() { return 1; }
10635 static krb5_ticket ac_aggr;
10636 if (ac_aggr.client)
10642 rm -f conftest.$ac_objext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644 (eval $ac_compile) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_member_krb5_ticket_client=yes
10656 echo "$as_me: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 ac_cv_member_krb5_ticket_client=no
10660 rm -f conftest.$ac_objext conftest.$ac_ext
10662 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10663 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10664 if test $ac_cv_member_krb5_ticket_client = yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define HAVE_KRB5_TICKET_CLIENT 1
10672 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10673 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10674 { (exit 1); exit 1; }; }
10679 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10680 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10681 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10685 #line $LINENO "configure"
10686 #include "confdefs.h"
10689 #ifdef F77_DUMMY_MAIN
10690 # ifdef __cplusplus
10693 int F77_DUMMY_MAIN() { return 1; }
10698 static krb5_error ac_aggr;
10699 if (ac_aggr.text.data)
10705 rm -f conftest.$ac_objext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10707 (eval $ac_compile) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_member_krb5_error_text_data=yes
10719 echo "$as_me: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 ac_cv_member_krb5_error_text_data=no
10723 rm -f conftest.$ac_objext conftest.$ac_ext
10725 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10726 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10727 if test $ac_cv_member_krb5_error_text_data = yes; then
10729 cat >>confdefs.h <<_ACEOF
10730 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10735 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10736 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10737 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.$ac_ext <<_ACEOF
10741 #line $LINENO "configure"
10742 #include "confdefs.h"
10745 #ifdef F77_DUMMY_MAIN
10746 # ifdef __cplusplus
10749 int F77_DUMMY_MAIN() { return 1; }
10754 static krb5_error ac_aggr;
10755 if (ac_aggr.e_data)
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_cv_member_krb5_error_e_data=yes
10775 echo "$as_me: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10777 ac_cv_member_krb5_error_e_data=no
10779 rm -f conftest.$ac_objext conftest.$ac_ext
10781 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10782 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10783 if test $ac_cv_member_krb5_error_e_data = yes; then
10785 cat >>confdefs.h <<_ACEOF
10786 #define HAVE_KRB5_ERROR_E_DATA 1
10791 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10792 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10793 { (exit 1); exit 1; }; }
10802 ## Functions, global variables
10805 echo "$as_me:$LINENO: checking for int timezone" >&5
10806 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10807 if test "${pgac_cv_var_int_timezone+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 cat >conftest.$ac_ext <<_ACEOF
10811 #line $LINENO "configure"
10812 #include "confdefs.h"
10815 #ifdef F77_DUMMY_MAIN
10816 # ifdef __cplusplus
10819 int F77_DUMMY_MAIN() { return 1; }
10824 res = timezone / 60;
10829 rm -f conftest.$ac_objext 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); } &&
10835 { ac_try='test -s conftest$ac_exeext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 pgac_cv_var_int_timezone=yes
10843 echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 pgac_cv_var_int_timezone=no
10847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10849 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10850 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10851 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10853 cat >>confdefs.h <<\_ACEOF
10854 #define HAVE_INT_TIMEZONE
10858 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10859 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10860 if test "${ac_cv_func_accept_return+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 if test "${ac_cv_func_accept_arg1+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 if test "${ac_cv_func_accept_arg2+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 if test "${ac_cv_func_accept_arg3+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10873 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10874 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10875 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10876 cat >conftest.$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10878 #include "confdefs.h"
10879 #ifdef HAVE_SYS_TYPES_H
10880 #include <sys/types.h>
10882 #ifdef HAVE_SYS_SOCKET_H
10883 #include <sys/socket.h>
10885 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10886 #ifdef F77_DUMMY_MAIN
10887 # ifdef __cplusplus
10890 int F77_DUMMY_MAIN() { return 1; }
10900 rm -f conftest.$ac_objext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10902 (eval $ac_compile) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -s conftest.$ac_objext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_not_found=no; break 4
10914 echo "$as_me: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10918 rm -f conftest.$ac_objext conftest.$ac_ext
10923 if test "$ac_not_found" = yes; then
10924 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10925 echo "$as_me: error: could not determine argument types" >&2;}
10926 { (exit 1); exit 1; }; }
10928 if test "$ac_cv_func_accept_arg3" = "void"; then
10929 ac_cv_func_accept_arg3=int
10939 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10940 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10942 cat >>confdefs.h <<_ACEOF
10943 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10947 cat >>confdefs.h <<_ACEOF
10948 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10952 cat >>confdefs.h <<_ACEOF
10953 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10957 cat >>confdefs.h <<_ACEOF
10958 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10962 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10963 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10964 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 cat >conftest.$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10969 #include "confdefs.h"
10970 #include <sys/time.h>
10971 #ifdef F77_DUMMY_MAIN
10972 # ifdef __cplusplus
10975 int F77_DUMMY_MAIN() { return 1; }
10980 struct timeval *tp;
10981 struct timezone *tzp;
10982 gettimeofday(tp,tzp);
10987 rm -f conftest.$ac_objext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -s conftest.$ac_objext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 pgac_cv_func_gettimeofday_1arg=no
11001 echo "$as_me: failed program was:" >&5
11002 cat conftest.$ac_ext >&5
11003 pgac_cv_func_gettimeofday_1arg=yes
11005 rm -f conftest.$ac_objext conftest.$ac_ext
11007 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11008 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11009 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11011 cat >>confdefs.h <<\_ACEOF
11012 #define GETTIMEOFDAY_1ARG
11019 # SunOS doesn't handle negative byte comparisons properly with +/- return
11020 echo "$as_me:$LINENO: checking for working memcmp" >&5
11021 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11022 if test "${ac_cv_func_memcmp_working+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 if test "$cross_compiling" = yes; then
11026 ac_cv_func_memcmp_working=no
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line $LINENO "configure"
11030 #include "confdefs.h"
11032 #ifdef F77_DUMMY_MAIN
11033 # ifdef __cplusplus
11036 int F77_DUMMY_MAIN() { return 1; }
11042 /* Some versions of memcmp are not 8-bit clean. */
11043 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11044 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11047 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11048 or more and with at least one buffer not starting on a 4-byte boundary.
11049 William Lewis provided this test program. */
11054 for (i = 0; i < 4; i++)
11058 strcpy (a, "--------01111111");
11059 strcpy (b, "--------10000000");
11060 if (memcmp (a, b, 16) >= 0)
11070 rm -f conftest$ac_exeext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11072 (eval $ac_link) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_func_memcmp_working=yes
11083 echo "$as_me: program exited with status $ac_status" >&5
11084 echo "$as_me: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11086 ( exit $ac_status )
11087 ac_cv_func_memcmp_working=no
11089 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11092 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11093 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11094 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11113 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11116 echo "$as_me:$LINENO: checking for $ac_func" >&5
11117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11118 if eval "test \"\${$as_ac_var+set}\" = set"; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11123 #include "confdefs.h"
11124 /* System header to define __stub macros and hopefully few prototypes,
11125 which can conflict with char $ac_func (); below. */
11126 #include <assert.h>
11127 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11136 #ifdef F77_DUMMY_MAIN
11137 # ifdef __cplusplus
11140 int F77_DUMMY_MAIN() { return 1; }
11145 /* The GNU C library defines this for functions which it implements
11146 to always fail with ENOSYS. Some functions are actually named
11147 something starting with __ and the normal name is an alias. */
11148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -s conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 eval "$as_ac_var=yes"
11172 echo "$as_me: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 eval "$as_ac_var=no"
11176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11180 if test `eval echo '${'$as_ac_var'}'` = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11190 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11191 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 cat >conftest.$ac_ext <<_ACEOF
11195 #line $LINENO "configure"
11196 #include "confdefs.h"
11197 #include <unistd.h>
11199 #ifdef F77_DUMMY_MAIN
11200 # ifdef __cplusplus
11203 int F77_DUMMY_MAIN() { return 1; }
11209 char *p = (char *) fdatasync;
11216 rm -f conftest.$ac_objext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11218 (eval $ac_compile) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 ac_cv_have_decl_fdatasync=yes
11230 echo "$as_me: failed program was:" >&5
11231 cat conftest.$ac_ext >&5
11232 ac_cv_have_decl_fdatasync=no
11234 rm -f conftest.$ac_objext conftest.$ac_ext
11236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11237 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11238 if test $ac_cv_have_decl_fdatasync = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define HAVE_DECL_FDATASYNC 1
11246 cat >>confdefs.h <<_ACEOF
11247 #define HAVE_DECL_FDATASYNC 0
11256 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11257 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11258 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 cat >conftest.$ac_ext <<_ACEOF
11262 #line $LINENO "configure"
11263 #include "confdefs.h"
11264 $ac_includes_default
11265 #include <netinet/in.h>
11267 #ifdef F77_DUMMY_MAIN
11268 # ifdef __cplusplus
11271 int F77_DUMMY_MAIN() { return 1; }
11276 if ((struct sockaddr_in6 *) 0)
11278 if (sizeof (struct sockaddr_in6))
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -s conftest.$ac_objext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_cv_type_struct_sockaddr_in6=yes
11298 echo "$as_me: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 ac_cv_type_struct_sockaddr_in6=no
11302 rm -f conftest.$ac_objext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11305 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11306 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11307 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11308 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11309 if test "${ac_cv_func_inet_ntop+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11313 #line $LINENO "configure"
11314 #include "confdefs.h"
11315 /* System header to define __stub macros and hopefully few prototypes,
11316 which can conflict with char inet_ntop (); below. */
11317 #include <assert.h>
11318 /* Override any gcc2 internal prototype to avoid an error. */
11322 /* We use char because int might match the return type of a gcc2
11323 builtin and then its argument prototype would still apply. */
11327 #ifdef F77_DUMMY_MAIN
11328 # ifdef __cplusplus
11331 int F77_DUMMY_MAIN() { return 1; }
11336 /* The GNU C library defines this for functions which it implements
11337 to always fail with ENOSYS. Some functions are actually named
11338 something starting with __ and the normal name is an alias. */
11339 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11349 rm -f conftest.$ac_objext conftest$ac_exeext
11350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11351 (eval $ac_link) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try='test -s conftest$ac_exeext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_func_inet_ntop=yes
11363 echo "$as_me: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 ac_cv_func_inet_ntop=no
11367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11369 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11370 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11371 if test $ac_cv_func_inet_ntop = yes; then
11373 cat >>confdefs.h <<\_ACEOF
11374 #define HAVE_IPV6 1
11384 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11385 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11386 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11392 #include <machine/vmparam.h>
11393 #include <sys/exec.h>
11395 #ifdef F77_DUMMY_MAIN
11396 # ifdef __cplusplus
11399 int F77_DUMMY_MAIN() { return 1; }
11404 PS_STRINGS->ps_nargvstr = 1;
11405 PS_STRINGS->ps_argvstr = "foo";
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -s conftest$ac_exeext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 pgac_cv_var_PS_STRINGS=yes
11424 echo "$as_me: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 pgac_cv_var_PS_STRINGS=no
11428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11431 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11432 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11434 cat >>confdefs.h <<\_ACEOF
11435 #define HAVE_PS_STRINGS
11441 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11442 # is missing. Yes, there are machines that have only one. We may
11443 # also decide to use snprintf.c if snprintf() is present but does not
11444 # have working "long long int" support -- see below.
11446 pgac_need_repl_snprintf=no
11448 for ac_func in snprintf
11450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11451 echo "$as_me:$LINENO: checking for $ac_func" >&5
11452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11453 if eval "test \"\${$as_ac_var+set}\" = set"; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 cat >conftest.$ac_ext <<_ACEOF
11457 #line $LINENO "configure"
11458 #include "confdefs.h"
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func (); below. */
11461 #include <assert.h>
11462 /* Override any gcc2 internal prototype to avoid an error. */
11466 /* We use char because int might match the return type of a gcc2
11467 builtin and then its argument prototype would still apply. */
11471 #ifdef F77_DUMMY_MAIN
11472 # ifdef __cplusplus
11475 int F77_DUMMY_MAIN() { return 1; }
11480 /* The GNU C library defines this for functions which it implements
11481 to always fail with ENOSYS. Some functions are actually named
11482 something starting with __ and the normal name is an alias. */
11483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11493 rm -f conftest.$ac_objext conftest$ac_exeext
11494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11495 (eval $ac_link) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try='test -s conftest$ac_exeext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 eval "$as_ac_var=yes"
11507 echo "$as_me: failed program was:" >&5
11508 cat conftest.$ac_ext >&5
11509 eval "$as_ac_var=no"
11511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11515 if test `eval echo '${'$as_ac_var'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11521 pgac_need_repl_snprintf=yes
11526 for ac_func in vsnprintf
11528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529 echo "$as_me:$LINENO: checking for $ac_func" >&5
11530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_var+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 cat >conftest.$ac_ext <<_ACEOF
11535 #line $LINENO "configure"
11536 #include "confdefs.h"
11537 /* System header to define __stub macros and hopefully few prototypes,
11538 which can conflict with char $ac_func (); below. */
11539 #include <assert.h>
11540 /* Override any gcc2 internal prototype to avoid an error. */
11544 /* We use char because int might match the return type of a gcc2
11545 builtin and then its argument prototype would still apply. */
11549 #ifdef F77_DUMMY_MAIN
11550 # ifdef __cplusplus
11553 int F77_DUMMY_MAIN() { return 1; }
11558 /* The GNU C library defines this for functions which it implements
11559 to always fail with ENOSYS. Some functions are actually named
11560 something starting with __ and the normal name is an alias. */
11561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573 (eval $ac_link) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 eval "$as_ac_var=yes"
11585 echo "$as_me: failed program was:" >&5
11586 cat conftest.$ac_ext >&5
11587 eval "$as_ac_var=no"
11589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11593 if test `eval echo '${'$as_ac_var'}'` = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 pgac_need_repl_snprintf=yes
11605 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11606 # include/c.h will provide declarations. Note this is a separate test
11607 # from whether the functions exist in the C library --- there are
11608 # systems that have the functions but don't bother to declare them :-(
11610 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11611 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11612 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618 $ac_includes_default
11619 #ifdef F77_DUMMY_MAIN
11620 # ifdef __cplusplus
11623 int F77_DUMMY_MAIN() { return 1; }
11629 char *p = (char *) snprintf;
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638 (eval $ac_compile) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_cv_have_decl_snprintf=yes
11650 echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 ac_cv_have_decl_snprintf=no
11654 rm -f conftest.$ac_objext conftest.$ac_ext
11656 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11657 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11658 if test $ac_cv_have_decl_snprintf = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define HAVE_DECL_SNPRINTF 1
11666 cat >>confdefs.h <<_ACEOF
11667 #define HAVE_DECL_SNPRINTF 0
11672 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11673 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11674 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11678 #line $LINENO "configure"
11679 #include "confdefs.h"
11680 $ac_includes_default
11681 #ifdef F77_DUMMY_MAIN
11682 # ifdef __cplusplus
11685 int F77_DUMMY_MAIN() { return 1; }
11691 char *p = (char *) vsnprintf;
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 ac_cv_have_decl_vsnprintf=yes
11712 echo "$as_me: failed program was:" >&5
11713 cat conftest.$ac_ext >&5
11714 ac_cv_have_decl_vsnprintf=no
11716 rm -f conftest.$ac_objext conftest.$ac_ext
11718 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11719 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11720 if test $ac_cv_have_decl_vsnprintf = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define HAVE_DECL_VSNPRINTF 1
11728 cat >>confdefs.h <<_ACEOF
11729 #define HAVE_DECL_VSNPRINTF 0
11738 # do this one the hard way in case isinf() is a macro
11739 echo "$as_me:$LINENO: checking for isinf" >&5
11740 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11741 if test "${ac_cv_func_isinf+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11745 #line $LINENO "configure"
11746 #include "confdefs.h"
11749 #ifdef F77_DUMMY_MAIN
11750 # ifdef __cplusplus
11753 int F77_DUMMY_MAIN() { return 1; }
11758 double x = 0.0; int res = isinf(x);
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765 (eval $ac_link) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -s conftest$ac_exeext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_cv_func_isinf=yes
11777 echo "$as_me: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11779 ac_cv_func_isinf=no
11781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11783 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11784 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11786 if test $ac_cv_func_isinf = yes ; then
11788 cat >>confdefs.h <<\_ACEOF
11789 #define HAVE_ISINF 1
11793 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11794 # Look for a way to implement a substitute for isinf()
11799 for ac_func in fpclass fp_class fp_class_d class
11801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11802 echo "$as_me:$LINENO: checking for $ac_func" >&5
11803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11804 if eval "test \"\${$as_ac_var+set}\" = set"; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11810 /* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char $ac_func (); below. */
11812 #include <assert.h>
11813 /* Override any gcc2 internal prototype to avoid an error. */
11817 /* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11822 #ifdef F77_DUMMY_MAIN
11823 # ifdef __cplusplus
11826 int F77_DUMMY_MAIN() { return 1; }
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -s conftest$ac_exeext'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 eval "$as_ac_var=yes"
11858 echo "$as_me: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11860 eval "$as_ac_var=no"
11862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11866 if test `eval echo '${'$as_ac_var'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11894 if eval "test \"\${$as_ac_var+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 cat >conftest.$ac_ext <<_ACEOF
11898 #line $LINENO "configure"
11899 #include "confdefs.h"
11900 /* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char $ac_func (); below. */
11902 #include <assert.h>
11903 /* Override any gcc2 internal prototype to avoid an error. */
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11912 #ifdef F77_DUMMY_MAIN
11913 # ifdef __cplusplus
11916 int F77_DUMMY_MAIN() { return 1; }
11921 /* The GNU C library defines this for functions which it implements
11922 to always fail with ENOSYS. Some functions are actually named
11923 something starting with __ and the normal name is an alias. */
11924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 eval "$as_ac_var=yes"
11948 echo "$as_me: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11950 eval "$as_ac_var=no"
11952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11968 # system's version of getaddrinfo(), if any, may be used only if we found
11969 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11970 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11972 for ac_func in getaddrinfo
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_var+set}\" = set"; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11981 #line $LINENO "configure"
11982 #include "confdefs.h"
11983 /* System header to define __stub macros and hopefully few prototypes,
11984 which can conflict with char $ac_func (); below. */
11985 #include <assert.h>
11986 /* Override any gcc2 internal prototype to avoid an error. */
11990 /* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11995 #ifdef F77_DUMMY_MAIN
11996 # ifdef __cplusplus
11999 int F77_DUMMY_MAIN() { return 1; }
12004 /* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
12007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest$ac_exeext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 eval "$as_ac_var=yes"
12031 echo "$as_me: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 eval "$as_ac_var=no"
12035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12051 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12054 # similarly, use system's getopt_long() only if system provides struct option.
12055 if test x"$ac_cv_type_struct_option" = xyes ; then
12057 for ac_func in getopt_long
12059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12060 echo "$as_me:$LINENO: checking for $ac_func" >&5
12061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12062 if eval "test \"\${$as_ac_var+set}\" = set"; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 cat >conftest.$ac_ext <<_ACEOF
12066 #line $LINENO "configure"
12067 #include "confdefs.h"
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below. */
12070 #include <assert.h>
12071 /* Override any gcc2 internal prototype to avoid an error. */
12075 /* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12080 #ifdef F77_DUMMY_MAIN
12081 # ifdef __cplusplus
12084 int F77_DUMMY_MAIN() { return 1; }
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -s conftest$ac_exeext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 eval "$as_ac_var=yes"
12116 echo "$as_me: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 eval "$as_ac_var=no"
12120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12124 if test `eval echo '${'$as_ac_var'}'` = yes; then
12125 cat >>confdefs.h <<_ACEOF
12126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12130 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12136 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12139 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12140 # We override the previous test that said fseeko/ftello didn't exist
12141 # OS tests are also done in include/c.h and port/fseeko.c
12142 case $host_os in bsdi*|netbsd*)
12143 ac_cv_func_fseeko=yes
12146 # Solaris has a very slow qsort in certain cases, so we replace it.
12147 case $host_os in solaris*)
12148 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12151 # Win32 can't to rename or unlink on an open file
12152 case $host_os in mingw*)
12153 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12154 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12155 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12158 if test "$with_readline" = yes; then
12159 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12160 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12165 #ifdef HAVE_READLINE_READLINE_H
12166 # include <readline/readline.h>
12167 #elif defined(HAVE_READLINE_H)
12168 # include <readline.h>
12171 #ifdef F77_DUMMY_MAIN
12172 # ifdef __cplusplus
12175 int F77_DUMMY_MAIN() { return 1; }
12180 rl_completion_append_character = 'x';
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12187 (eval $ac_link) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try='test -s conftest$ac_exeext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 echo "$as_me:$LINENO: result: yes" >&5
12198 echo "${ECHO_T}yes" >&6
12200 cat >>confdefs.h <<\_ACEOF
12201 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12205 echo "$as_me: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12207 echo "$as_me:$LINENO: result: no" >&5
12208 echo "${ECHO_T}no" >&6
12210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12213 for ac_func in rl_completion_matches rl_filename_completion_function
12215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12216 echo "$as_me:$LINENO: checking for $ac_func" >&5
12217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12218 if eval "test \"\${$as_ac_var+set}\" = set"; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12222 #line $LINENO "configure"
12223 #include "confdefs.h"
12224 /* System header to define __stub macros and hopefully few prototypes,
12225 which can conflict with char $ac_func (); below. */
12226 #include <assert.h>
12227 /* Override any gcc2 internal prototype to avoid an error. */
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12236 #ifdef F77_DUMMY_MAIN
12237 # ifdef __cplusplus
12240 int F77_DUMMY_MAIN() { return 1; }
12245 /* The GNU C library defines this for functions which it implements
12246 to always fail with ENOSYS. Some functions are actually named
12247 something starting with __ and the normal name is an alias. */
12248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 eval "$as_ac_var=yes"
12272 echo "$as_me: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12274 eval "$as_ac_var=no"
12276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12280 if test `eval echo '${'$as_ac_var'}'` = yes; then
12281 cat >>confdefs.h <<_ACEOF
12282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12289 for ac_func in replace_history_entry
12291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292 echo "$as_me:$LINENO: checking for $ac_func" >&5
12293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294 if eval "test \"\${$as_ac_var+set}\" = set"; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 cat >conftest.$ac_ext <<_ACEOF
12298 #line $LINENO "configure"
12299 #include "confdefs.h"
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char $ac_func (); below. */
12302 #include <assert.h>
12303 /* Override any gcc2 internal prototype to avoid an error. */
12307 /* We use char because int might match the return type of a gcc2
12308 builtin and then its argument prototype would still apply. */
12312 #ifdef F77_DUMMY_MAIN
12313 # ifdef __cplusplus
12316 int F77_DUMMY_MAIN() { return 1; }
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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 eval "$as_ac_var=yes"
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 eval "$as_ac_var=no"
12352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12356 if test `eval echo '${'$as_ac_var'}'` = yes; then
12357 cat >>confdefs.h <<_ACEOF
12358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12367 echo "$as_me:$LINENO: checking for finite" >&5
12368 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 #include "confdefs.h"
12373 #ifdef F77_DUMMY_MAIN
12374 # ifdef __cplusplus
12377 int F77_DUMMY_MAIN() { return 1; }
12382 int dummy=finite(1.0);
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389 (eval $ac_link) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define HAVE_FINITE 1
12404 echo "$as_me:$LINENO: result: yes" >&5
12405 echo "${ECHO_T}yes" >&6
12407 echo "$as_me: failed program was:" >&5
12408 cat conftest.$ac_ext >&5
12409 echo "$as_me:$LINENO: result: no" >&5
12410 echo "${ECHO_T}no" >&6
12412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12414 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12415 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12416 cat >conftest.$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12418 #include "confdefs.h"
12419 #include <setjmp.h>
12420 #ifdef F77_DUMMY_MAIN
12421 # ifdef __cplusplus
12424 int F77_DUMMY_MAIN() { return 1; }
12429 sigjmp_buf x; sigsetjmp(x, 1);
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436 (eval $ac_link) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try='test -s conftest$ac_exeext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_SIGSETJMP 1
12451 echo "$as_me:$LINENO: result: yes" >&5
12452 echo "${ECHO_T}yes" >&6
12454 echo "$as_me: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12456 echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12461 echo "$as_me:$LINENO: checking for syslog" >&5
12462 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12463 if test "${ac_cv_func_syslog+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12468 #include "confdefs.h"
12469 /* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char syslog (); below. */
12471 #include <assert.h>
12472 /* Override any gcc2 internal prototype to avoid an error. */
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12481 #ifdef F77_DUMMY_MAIN
12482 # ifdef __cplusplus
12485 int F77_DUMMY_MAIN() { return 1; }
12490 /* The GNU C library defines this for functions which it implements
12491 to always fail with ENOSYS. Some functions are actually named
12492 something starting with __ and the normal name is an alias. */
12493 #if defined (__stub_syslog) || defined (__stub___syslog)
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_cv_func_syslog=yes
12517 echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 ac_cv_func_syslog=no
12521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12524 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12525 if test $ac_cv_func_syslog = yes; then
12526 if test "${ac_cv_header_syslog_h+set}" = set; then
12527 echo "$as_me:$LINENO: checking for syslog.h" >&5
12528 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12529 if test "${ac_cv_header_syslog_h+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12533 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12535 # Is the header compilable?
12536 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12537 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12538 cat >conftest.$ac_ext <<_ACEOF
12539 #line $LINENO "configure"
12540 #include "confdefs.h"
12541 $ac_includes_default
12542 #include <syslog.h>
12544 rm -f conftest.$ac_objext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_header_compiler=yes
12558 echo "$as_me: failed program was:" >&5
12559 cat conftest.$ac_ext >&5
12560 ac_header_compiler=no
12562 rm -f conftest.$ac_objext conftest.$ac_ext
12563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12564 echo "${ECHO_T}$ac_header_compiler" >&6
12566 # Is the header present?
12567 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12568 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12569 cat >conftest.$ac_ext <<_ACEOF
12570 #line $LINENO "configure"
12571 #include "confdefs.h"
12572 #include <syslog.h>
12574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12577 egrep -v '^ *\+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } >/dev/null; then
12582 if test -s conftest.err; then
12583 ac_cpp_err=$ac_c_preproc_warn_flag
12590 if test -z "$ac_cpp_err"; then
12591 ac_header_preproc=yes
12593 echo "$as_me: failed program was:" >&5
12594 cat conftest.$ac_ext >&5
12595 ac_header_preproc=no
12597 rm -f conftest.err conftest.$ac_ext
12598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12599 echo "${ECHO_T}$ac_header_preproc" >&6
12601 # So? What about this header?
12602 case $ac_header_compiler:$ac_header_preproc in
12604 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12605 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12607 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12609 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12610 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12612 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12614 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12616 echo "$as_me:$LINENO: checking for syslog.h" >&5
12617 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12618 if test "${ac_cv_header_syslog_h+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 ac_cv_header_syslog_h=$ac_header_preproc
12623 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12624 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12627 if test $ac_cv_header_syslog_h = yes; then
12629 cat >>confdefs.h <<\_ACEOF
12630 #define HAVE_SYSLOG 1
12639 echo "$as_me:$LINENO: checking for optreset" >&5
12640 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12641 if test "${pgac_cv_var_int_optreset+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12646 #include "confdefs.h"
12647 #include <unistd.h>
12648 #ifdef F77_DUMMY_MAIN
12649 # ifdef __cplusplus
12652 int F77_DUMMY_MAIN() { return 1; }
12657 extern int optreset; optreset = 1;
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -s conftest$ac_exeext'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 pgac_cv_var_int_optreset=yes
12676 echo "$as_me: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12678 pgac_cv_var_int_optreset=no
12680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12682 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12683 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12684 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12686 cat >>confdefs.h <<\_ACEOF
12687 #define HAVE_INT_OPTRESET 1
12694 for ac_func in strtoll strtoq
12696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12697 echo "$as_me:$LINENO: checking for $ac_func" >&5
12698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12699 if eval "test \"\${$as_ac_var+set}\" = set"; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 cat >conftest.$ac_ext <<_ACEOF
12703 #line $LINENO "configure"
12704 #include "confdefs.h"
12705 /* System header to define __stub macros and hopefully few prototypes,
12706 which can conflict with char $ac_func (); below. */
12707 #include <assert.h>
12708 /* Override any gcc2 internal prototype to avoid an error. */
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12717 #ifdef F77_DUMMY_MAIN
12718 # ifdef __cplusplus
12721 int F77_DUMMY_MAIN() { return 1; }
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741 (eval $ac_link) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 eval "$as_ac_var=yes"
12753 echo "$as_me: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
12755 eval "$as_ac_var=no"
12757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12761 if test `eval echo '${'$as_ac_var'}'` = yes; then
12762 cat >>confdefs.h <<_ACEOF
12763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12771 for ac_func in strtoull strtouq
12773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12774 echo "$as_me:$LINENO: checking for $ac_func" >&5
12775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12776 if eval "test \"\${$as_ac_var+set}\" = set"; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 cat >conftest.$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12781 #include "confdefs.h"
12782 /* System header to define __stub macros and hopefully few prototypes,
12783 which can conflict with char $ac_func (); below. */
12784 #include <assert.h>
12785 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12794 #ifdef F77_DUMMY_MAIN
12795 # ifdef __cplusplus
12798 int F77_DUMMY_MAIN() { return 1; }
12803 /* The GNU C library defines this for functions which it implements
12804 to always fail with ENOSYS. Some functions are actually named
12805 something starting with __ and the normal name is an alias. */
12806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818 (eval $ac_link) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -s conftest$ac_exeext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 eval "$as_ac_var=yes"
12830 echo "$as_me: failed program was:" >&5
12831 cat conftest.$ac_ext >&5
12832 eval "$as_ac_var=no"
12834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12838 if test `eval echo '${'$as_ac_var'}'` = yes; then
12839 cat >>confdefs.h <<_ACEOF
12840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847 # Check for one of atexit() or on_exit()
12849 for ac_func in atexit
12851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12852 echo "$as_me:$LINENO: checking for $ac_func" >&5
12853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12854 if eval "test \"\${$as_ac_var+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860 /* System header to define __stub macros and hopefully few prototypes,
12861 which can conflict with char $ac_func (); below. */
12862 #include <assert.h>
12863 /* Override any gcc2 internal prototype to avoid an error. */
12867 /* We use char because int might match the return type of a gcc2
12868 builtin and then its argument prototype would still apply. */
12872 #ifdef F77_DUMMY_MAIN
12873 # ifdef __cplusplus
12876 int F77_DUMMY_MAIN() { return 1; }
12881 /* The GNU C library defines this for functions which it implements
12882 to always fail with ENOSYS. Some functions are actually named
12883 something starting with __ and the normal name is an alias. */
12884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896 (eval $ac_link) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -s conftest$ac_exeext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 eval "$as_ac_var=yes"
12908 echo "$as_me: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12910 eval "$as_ac_var=no"
12912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12916 if test `eval echo '${'$as_ac_var'}'` = yes; then
12917 cat >>confdefs.h <<_ACEOF
12918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12923 for ac_func in on_exit
12925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12926 echo "$as_me:$LINENO: checking for $ac_func" >&5
12927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_var+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line $LINENO "configure"
12933 #include "confdefs.h"
12934 /* System header to define __stub macros and hopefully few prototypes,
12935 which can conflict with char $ac_func (); below. */
12936 #include <assert.h>
12937 /* Override any gcc2 internal prototype to avoid an error. */
12941 /* We use char because int might match the return type of a gcc2
12942 builtin and then its argument prototype would still apply. */
12946 #ifdef F77_DUMMY_MAIN
12947 # ifdef __cplusplus
12950 int F77_DUMMY_MAIN() { return 1; }
12955 /* The GNU C library defines this for functions which it implements
12956 to always fail with ENOSYS. Some functions are actually named
12957 something starting with __ and the normal name is an alias. */
12958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970 (eval $ac_link) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try='test -s conftest$ac_exeext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 eval "$as_ac_var=yes"
12982 echo "$as_me: failed program was:" >&5
12983 cat conftest.$ac_ext >&5
12984 eval "$as_ac_var=no"
12986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12990 if test `eval echo '${'$as_ac_var'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12996 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12997 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12998 { (exit 1); exit 1; }; }
13006 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13007 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13008 if test "${ac_cv_sys_largefile_source+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 ac_cv_sys_largefile_source=no
13013 cat >conftest.$ac_ext <<_ACEOF
13014 #line $LINENO "configure"
13015 #include "confdefs.h"
13017 #ifdef F77_DUMMY_MAIN
13018 # ifdef __cplusplus
13021 int F77_DUMMY_MAIN() { return 1; }
13031 rm -f conftest.$ac_objext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13033 (eval $ac_compile) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13045 echo "$as_me: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13049 cat >conftest.$ac_ext <<_ACEOF
13050 #line $LINENO "configure"
13051 #include "confdefs.h"
13052 #define _LARGEFILE_SOURCE 1
13054 #ifdef F77_DUMMY_MAIN
13055 # ifdef __cplusplus
13058 int F77_DUMMY_MAIN() { return 1; }
13068 rm -f conftest.$ac_objext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070 (eval $ac_compile) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -s conftest.$ac_objext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_sys_largefile_source=1; break
13082 echo "$as_me: failed program was:" >&5
13083 cat conftest.$ac_ext >&5
13085 rm -f conftest.$ac_objext conftest.$ac_ext
13089 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13090 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13091 if test "$ac_cv_sys_largefile_source" != no; then
13093 cat >>confdefs.h <<_ACEOF
13094 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13100 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13101 # in glibc 2.1.3, but that breaks too many other things.
13102 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13103 echo "$as_me:$LINENO: checking for fseeko" >&5
13104 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13105 if test "${ac_cv_func_fseeko+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #line $LINENO "configure"
13110 #include "confdefs.h"
13112 #ifdef F77_DUMMY_MAIN
13113 # ifdef __cplusplus
13116 int F77_DUMMY_MAIN() { return 1; }
13121 return fseeko && fseeko (stdin, 0, 0);
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13128 (eval $ac_link) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -s conftest$ac_exeext'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_func_fseeko=yes
13140 echo "$as_me: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13142 ac_cv_func_fseeko=no
13144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13146 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13147 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13148 if test $ac_cv_func_fseeko = yes; then
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_FSEEKO 1
13160 # For each platform, we need to know about any special compile and link
13161 # libraries, and whether the normal C function names are thread-safe.
13162 # See the comment at the top of src/port/thread.c for more information.
13164 if test "$enable_thread_safety" = yes; then
13165 if test "${ac_cv_header_pthread_h+set}" = set; then
13166 echo "$as_me:$LINENO: checking for pthread.h" >&5
13167 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13168 if test "${ac_cv_header_pthread_h+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13172 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13174 # Is the header compilable?
13175 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13176 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13177 cat >conftest.$ac_ext <<_ACEOF
13178 #line $LINENO "configure"
13179 #include "confdefs.h"
13180 $ac_includes_default
13181 #include <pthread.h>
13183 rm -f conftest.$ac_objext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -s conftest.$ac_objext'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_header_compiler=yes
13197 echo "$as_me: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13199 ac_header_compiler=no
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13203 echo "${ECHO_T}$ac_header_compiler" >&6
13205 # Is the header present?
13206 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13207 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13209 #line $LINENO "configure"
13210 #include "confdefs.h"
13211 #include <pthread.h>
13213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13216 egrep -v '^ *\+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } >/dev/null; then
13221 if test -s conftest.err; then
13222 ac_cpp_err=$ac_c_preproc_warn_flag
13229 if test -z "$ac_cpp_err"; then
13230 ac_header_preproc=yes
13232 echo "$as_me: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 ac_header_preproc=no
13236 rm -f conftest.err conftest.$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13238 echo "${ECHO_T}$ac_header_preproc" >&6
13240 # So? What about this header?
13241 case $ac_header_compiler:$ac_header_preproc in
13243 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13244 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13246 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13248 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13249 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13251 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13253 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13255 echo "$as_me:$LINENO: checking for pthread.h" >&5
13256 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13257 if test "${ac_cv_header_pthread_h+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 ac_cv_header_pthread_h=$ac_header_preproc
13262 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13263 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13266 if test $ac_cv_header_pthread_h = yes; then
13269 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13270 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13271 { (exit 1); exit 1; }; }
13276 if test "$SUPPORTS_THREADS" != yes; then
13277 { { echo "$as_me:$LINENO: error:
13278 Cannot enable threads on your platform.
13279 Please report your platform threading info to the PostgreSQL mailing lists
13280 so it can be added to the next release. Report all compile flags, link flags,
13281 functions, or libraries required for threading support.
13282 See the comment at the top of src/port/thread.c for more information.
13284 echo "$as_me: error:
13285 Cannot enable threads on your platform.
13286 Please report your platform threading info to the PostgreSQL mailing lists
13287 so it can be added to the next release. Report all compile flags, link flags,
13288 functions, or libraries required for threading support.
13289 See the comment at the top of src/port/thread.c for more information.
13291 { (exit 1); exit 1; }; }
13294 # do not use values from template file
13303 # Check for re-entrant versions of certain functions
13305 # Include special flags if threads are enabled _and_ if required for
13306 # threading on this platform. Some platforms have *_r functions but
13307 # their natively named funcs are threadsafe, and should be used instead.
13309 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13310 # functions are marked "not found", which is perfect.
13312 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13315 CFLAGS="$CFLAGS $THREAD_CFLAGS"
13316 LIBS="$LIBS $THREAD_LIBS"
13320 for ac_func in strerror_r getpwuid_r gethostbyname_r
13322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323 echo "$as_me:$LINENO: checking for $ac_func" >&5
13324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13325 if eval "test \"\${$as_ac_var+set}\" = set"; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 cat >conftest.$ac_ext <<_ACEOF
13329 #line $LINENO "configure"
13330 #include "confdefs.h"
13331 /* System header to define __stub macros and hopefully few prototypes,
13332 which can conflict with char $ac_func (); below. */
13333 #include <assert.h>
13334 /* Override any gcc2 internal prototype to avoid an error. */
13338 /* We use char because int might match the return type of a gcc2
13339 builtin and then its argument prototype would still apply. */
13343 #ifdef F77_DUMMY_MAIN
13344 # ifdef __cplusplus
13347 int F77_DUMMY_MAIN() { return 1; }
13352 /* The GNU C library defines this for functions which it implements
13353 to always fail with ENOSYS. Some functions are actually named
13354 something starting with __ and the normal name is an alias. */
13355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13367 (eval $ac_link) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -s conftest$ac_exeext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 eval "$as_ac_var=yes"
13379 echo "$as_me: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 eval "$as_ac_var=no"
13383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13387 if test `eval echo '${'$as_ac_var'}'` = yes; then
13388 cat >>confdefs.h <<_ACEOF
13389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13400 # This test makes sure that run tests work at all. Sometimes a shared
13401 # library is found by the linker, but the runtime linker can't find it.
13402 # This check should come after all modifications of compiler or linker
13403 # variables, and before any other run tests.
13404 echo "$as_me:$LINENO: checking test program" >&5
13405 echo $ECHO_N "checking test program... $ECHO_C" >&6
13406 if test "$cross_compiling" = yes; then
13407 echo "$as_me:$LINENO: result: cross-compiling" >&5
13408 echo "${ECHO_T}cross-compiling" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13412 #include "confdefs.h"
13413 int main() { return 0; }
13415 rm -f conftest$ac_exeext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13417 (eval $ac_link) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 echo "$as_me:$LINENO: result: ok" >&5
13427 echo "${ECHO_T}ok" >&6
13429 echo "$as_me: program exited with status $ac_status" >&5
13430 echo "$as_me: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 ( exit $ac_status )
13433 echo "$as_me:$LINENO: result: failed" >&5
13434 echo "${ECHO_T}failed" >&6
13435 { { echo "$as_me:$LINENO: error:
13436 *** Could not execute a simple test program. This may be a problem
13437 *** related to locating shared libraries. Check the file 'config.log'
13438 *** for the exact reason." >&5
13439 echo "$as_me: error:
13440 *** Could not execute a simple test program. This may be a problem
13441 *** related to locating shared libraries. Check the file 'config.log'
13442 *** for the exact reason." >&2;}
13443 { (exit 1); exit 1; }; }
13445 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13450 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13451 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13452 if test "${pgac_cv_type_long_int_64+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 if test "$cross_compiling" = yes; then
13456 # If cross-compiling, check the size reported by the compiler and
13457 # trust that the arithmetic works.
13458 cat >conftest.$ac_ext <<_ACEOF
13459 #line $LINENO "configure"
13460 #include "confdefs.h"
13462 #ifdef F77_DUMMY_MAIN
13463 # ifdef __cplusplus
13466 int F77_DUMMY_MAIN() { return 1; }
13471 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13478 rm -f conftest.$ac_objext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13480 (eval $ac_compile) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 pgac_cv_type_long_int_64=yes
13492 echo "$as_me: failed program was:" >&5
13493 cat conftest.$ac_ext >&5
13494 pgac_cv_type_long_int_64=no
13496 rm -f conftest.$ac_objext conftest.$ac_ext
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501 typedef long int int64;
13504 * These are globals to discourage the compiler from folding all the
13505 * arithmetic tests down to compile-time constants.
13507 int64 a = 20000001;
13508 int64 b = 40000005;
13510 int does_int64_work()
13514 if (sizeof(int64) != 8)
13515 return 0; /* definitely not the right size */
13517 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13525 exit(! does_int64_work());
13528 rm -f conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 pgac_cv_type_long_int_64=yes
13541 echo "$as_me: program exited with status $ac_status" >&5
13542 echo "$as_me: failed program was:" >&5
13543 cat conftest.$ac_ext >&5
13544 ( exit $ac_status )
13545 pgac_cv_type_long_int_64=no
13547 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13550 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13551 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13553 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13554 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13556 cat >>confdefs.h <<\_ACEOF
13557 #define HAVE_LONG_INT_64
13563 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13564 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13565 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13566 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 if test "$cross_compiling" = yes; then
13570 # If cross-compiling, check the size reported by the compiler and
13571 # trust that the arithmetic works.
13572 cat >conftest.$ac_ext <<_ACEOF
13573 #line $LINENO "configure"
13574 #include "confdefs.h"
13576 #ifdef F77_DUMMY_MAIN
13577 # ifdef __cplusplus
13580 int F77_DUMMY_MAIN() { return 1; }
13585 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13592 rm -f conftest.$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -s conftest.$ac_objext'
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }; then
13604 pgac_cv_type_long_long_int_64=yes
13606 echo "$as_me: failed program was:" >&5
13607 cat conftest.$ac_ext >&5
13608 pgac_cv_type_long_long_int_64=no
13610 rm -f conftest.$ac_objext conftest.$ac_ext
13612 cat >conftest.$ac_ext <<_ACEOF
13613 #line $LINENO "configure"
13614 #include "confdefs.h"
13615 typedef long long int int64;
13618 * These are globals to discourage the compiler from folding all the
13619 * arithmetic tests down to compile-time constants.
13621 int64 a = 20000001;
13622 int64 b = 40000005;
13624 int does_int64_work()
13628 if (sizeof(int64) != 8)
13629 return 0; /* definitely not the right size */
13631 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13639 exit(! does_int64_work());
13642 rm -f conftest$ac_exeext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13644 (eval $ac_link) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 pgac_cv_type_long_long_int_64=yes
13655 echo "$as_me: program exited with status $ac_status" >&5
13656 echo "$as_me: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 ( exit $ac_status )
13659 pgac_cv_type_long_long_int_64=no
13661 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13665 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13667 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13668 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13670 cat >>confdefs.h <<\_ACEOF
13671 #define HAVE_LONG_LONG_INT_64
13680 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13681 cat >conftest.$ac_ext <<_ACEOF
13682 #line $LINENO "configure"
13683 #include "confdefs.h"
13685 #define INT64CONST(x) x##LL
13686 long long int foo = INT64CONST(0x1234567890123456);
13688 #ifdef F77_DUMMY_MAIN
13689 # ifdef __cplusplus
13692 int F77_DUMMY_MAIN() { return 1; }
13702 rm -f conftest.$ac_objext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704 (eval $ac_compile) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -s conftest.$ac_objext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13715 cat >>confdefs.h <<\_ACEOF
13716 #define HAVE_LL_CONSTANTS 1
13720 echo "$as_me: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13723 rm -f conftest.$ac_objext conftest.$ac_ext
13727 # If we found "long int" is 64 bits, assume snprintf handles it. If
13728 # we found we need to use "long long int", better check. We cope with
13729 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13730 # neither works, fall back to our own snprintf emulation (which we
13733 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13734 if test $pgac_need_repl_snprintf = no; then
13735 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13736 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13737 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 for pgac_format in '%lld' '%qd' '%I64d'; do
13741 if test "$cross_compiling" = yes; then
13742 pgac_cv_snprintf_long_long_int_format=cross; break
13744 cat >conftest.$ac_ext <<_ACEOF
13745 #line $LINENO "configure"
13746 #include "confdefs.h"
13748 typedef long long int int64;
13749 #define INT64_FORMAT "$pgac_format"
13751 int64 a = 20000001;
13752 int64 b = 40000005;
13754 int does_int64_snprintf_work()
13759 if (sizeof(int64) != 8)
13760 return 0; /* doesn't look like the right size */
13763 snprintf(buf, 100, INT64_FORMAT, c);
13764 if (strcmp(buf, "800000140000005") != 0)
13765 return 0; /* either multiply or snprintf is busted */
13769 exit(! does_int64_snprintf_work());
13772 rm -f conftest$ac_exeext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774 (eval $ac_link) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13785 echo "$as_me: program exited with status $ac_status" >&5
13786 echo "$as_me: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13789 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13794 LONG_LONG_INT_FORMAT=''
13796 case $pgac_cv_snprintf_long_long_int_format in
13797 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13798 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13799 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13800 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13801 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13802 *) echo "$as_me:$LINENO: result: none" >&5
13803 echo "${ECHO_T}none" >&6;;
13805 if test "$LONG_LONG_INT_FORMAT" = ""; then
13806 # Force usage of our own snprintf, since system snprintf is broken
13807 pgac_need_repl_snprintf=yes
13808 LONG_LONG_INT_FORMAT='%lld'
13811 # Here if we previously decided we needed to use our own snprintf
13812 LONG_LONG_INT_FORMAT='%lld'
13814 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13816 # Here if we are not using 'long long int' at all
13817 INT64_FORMAT='"%ld"'
13821 cat >>confdefs.h <<_ACEOF
13822 #define INT64_FORMAT $INT64_FORMAT
13826 if test $pgac_need_repl_snprintf = yes; then
13827 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13830 # Need a #define for the size of Datum (unsigned long)
13831 echo "$as_me:$LINENO: checking for unsigned long" >&5
13832 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13833 if test "${ac_cv_type_unsigned_long+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 cat >conftest.$ac_ext <<_ACEOF
13837 #line $LINENO "configure"
13838 #include "confdefs.h"
13839 $ac_includes_default
13840 #ifdef F77_DUMMY_MAIN
13841 # ifdef __cplusplus
13844 int F77_DUMMY_MAIN() { return 1; }
13849 if ((unsigned long *) 0)
13851 if (sizeof (unsigned long))
13857 rm -f conftest.$ac_objext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13859 (eval $ac_compile) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
13863 { ac_try='test -s conftest.$ac_objext'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_cv_type_unsigned_long=yes
13871 echo "$as_me: failed program was:" >&5
13872 cat conftest.$ac_ext >&5
13873 ac_cv_type_unsigned_long=no
13875 rm -f conftest.$ac_objext conftest.$ac_ext
13877 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13878 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13880 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13881 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13882 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 if test "$ac_cv_type_unsigned_long" = yes; then
13886 # The cast to unsigned long works around a bug in the HP C Compiler
13887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13889 # This bug is HP SR number 8606223364.
13890 if test "$cross_compiling" = yes; then
13891 # Depending upon the size, compute the lo and hi bounds.
13892 cat >conftest.$ac_ext <<_ACEOF
13893 #line $LINENO "configure"
13894 #include "confdefs.h"
13895 $ac_includes_default
13896 #ifdef F77_DUMMY_MAIN
13897 # ifdef __cplusplus
13900 int F77_DUMMY_MAIN() { return 1; }
13905 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13912 rm -f conftest.$ac_objext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13914 (eval $ac_compile) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13926 cat >conftest.$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13928 #include "confdefs.h"
13929 $ac_includes_default
13930 #ifdef F77_DUMMY_MAIN
13931 # ifdef __cplusplus
13934 int F77_DUMMY_MAIN() { return 1; }
13939 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13946 rm -f conftest.$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -s conftest.$ac_objext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_hi=$ac_mid; break
13960 echo "$as_me: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 ac_lo=`expr $ac_mid + 1`
13963 if test $ac_lo -le $ac_mid; then
13967 ac_mid=`expr 2 '*' $ac_mid + 1`
13969 rm -f conftest.$ac_objext conftest.$ac_ext
13972 echo "$as_me: failed program was:" >&5
13973 cat conftest.$ac_ext >&5
13974 cat >conftest.$ac_ext <<_ACEOF
13975 #line $LINENO "configure"
13976 #include "confdefs.h"
13977 $ac_includes_default
13978 #ifdef F77_DUMMY_MAIN
13979 # ifdef __cplusplus
13982 int F77_DUMMY_MAIN() { return 1; }
13987 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13994 rm -f conftest.$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -s conftest.$ac_objext'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14008 cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14010 #include "confdefs.h"
14011 $ac_includes_default
14012 #ifdef F77_DUMMY_MAIN
14013 # ifdef __cplusplus
14016 int F77_DUMMY_MAIN() { return 1; }
14021 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_lo=$ac_mid; break
14042 echo "$as_me: failed program was:" >&5
14043 cat conftest.$ac_ext >&5
14044 ac_hi=`expr '(' $ac_mid ')' - 1`
14045 if test $ac_mid -le $ac_hi; then
14049 ac_mid=`expr 2 '*' $ac_mid`
14051 rm -f conftest.$ac_objext conftest.$ac_ext
14054 echo "$as_me: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14060 rm -f conftest.$ac_objext conftest.$ac_ext
14061 # Binary search between lo and hi bounds.
14062 while test "x$ac_lo" != "x$ac_hi"; do
14063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14064 cat >conftest.$ac_ext <<_ACEOF
14065 #line $LINENO "configure"
14066 #include "confdefs.h"
14067 $ac_includes_default
14068 #ifdef F77_DUMMY_MAIN
14069 # ifdef __cplusplus
14072 int F77_DUMMY_MAIN() { return 1; }
14077 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14084 rm -f conftest.$ac_objext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14086 (eval $ac_compile) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14098 echo "$as_me: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14100 ac_lo=`expr '(' $ac_mid ')' + 1`
14102 rm -f conftest.$ac_objext conftest.$ac_ext
14105 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14107 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14108 { (exit 1); exit 1; }; } ;;
14111 if test "$cross_compiling" = yes; then
14112 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14113 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14114 { (exit 1); exit 1; }; }
14116 cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14118 #include "confdefs.h"
14119 $ac_includes_default
14120 long longval () { return (long) (sizeof (unsigned long)); }
14121 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14123 #include <stdlib.h>
14124 #ifdef F77_DUMMY_MAIN
14125 # ifdef __cplusplus
14128 int F77_DUMMY_MAIN() { return 1; }
14134 FILE *f = fopen ("conftest.val", "w");
14137 if (((long) (sizeof (unsigned long))) < 0)
14139 long i = longval ();
14140 if (i != ((long) (sizeof (unsigned long))))
14142 fprintf (f, "%ld\n", i);
14146 unsigned long i = ulongval ();
14147 if (i != ((long) (sizeof (unsigned long))))
14149 fprintf (f, "%lu\n", i);
14151 exit (ferror (f) || fclose (f) != 0);
14157 rm -f conftest$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14170 echo "$as_me: program exited with status $ac_status" >&5
14171 echo "$as_me: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 ( exit $ac_status )
14174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14175 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14176 { (exit 1); exit 1; }; }
14178 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14183 ac_cv_sizeof_unsigned_long=0
14186 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14187 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14188 cat >>confdefs.h <<_ACEOF
14189 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14194 # Determine memory alignment requirements for the basic C data types.
14196 echo "$as_me:$LINENO: checking for short" >&5
14197 echo $ECHO_N "checking for short... $ECHO_C" >&6
14198 if test "${ac_cv_type_short+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 cat >conftest.$ac_ext <<_ACEOF
14202 #line $LINENO "configure"
14203 #include "confdefs.h"
14204 $ac_includes_default
14205 #ifdef F77_DUMMY_MAIN
14206 # ifdef __cplusplus
14209 int F77_DUMMY_MAIN() { return 1; }
14216 if (sizeof (short))
14222 rm -f conftest.$ac_objext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224 (eval $ac_compile) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -s conftest.$ac_objext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 ac_cv_type_short=yes
14236 echo "$as_me: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14238 ac_cv_type_short=no
14240 rm -f conftest.$ac_objext conftest.$ac_ext
14242 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14243 echo "${ECHO_T}$ac_cv_type_short" >&6
14245 echo "$as_me:$LINENO: checking alignment of short" >&5
14246 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14247 if test "${pgac_cv_alignof_short+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 if test "$ac_cv_type_short" = yes; then
14251 if test "$cross_compiling" = yes; then
14252 # Depending upon the size, compute the lo and hi bounds.
14253 cat >conftest.$ac_ext <<_ACEOF
14254 #line $LINENO "configure"
14255 #include "confdefs.h"
14256 $ac_includes_default
14257 struct { char filler; short field; } pgac_struct;
14258 #ifdef F77_DUMMY_MAIN
14259 # ifdef __cplusplus
14262 int F77_DUMMY_MAIN() { return 1; }
14267 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14274 rm -f conftest.$ac_objext
14275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14276 (eval $ac_compile) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14288 cat >conftest.$ac_ext <<_ACEOF
14289 #line $LINENO "configure"
14290 #include "confdefs.h"
14291 $ac_includes_default
14292 struct { char filler; short field; } pgac_struct;
14293 #ifdef F77_DUMMY_MAIN
14294 # ifdef __cplusplus
14297 int F77_DUMMY_MAIN() { return 1; }
14302 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_hi=$ac_mid; break
14323 echo "$as_me: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 ac_lo=`expr $ac_mid + 1`
14326 if test $ac_lo -le $ac_mid; then
14330 ac_mid=`expr 2 '*' $ac_mid + 1`
14332 rm -f conftest.$ac_objext conftest.$ac_ext
14335 echo "$as_me: failed program was:" >&5
14336 cat conftest.$ac_ext >&5
14337 cat >conftest.$ac_ext <<_ACEOF
14338 #line $LINENO "configure"
14339 #include "confdefs.h"
14340 $ac_includes_default
14341 struct { char filler; short field; } pgac_struct;
14342 #ifdef F77_DUMMY_MAIN
14343 # ifdef __cplusplus
14346 int F77_DUMMY_MAIN() { return 1; }
14351 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14358 rm -f conftest.$ac_objext
14359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -s conftest.$ac_objext'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14372 cat >conftest.$ac_ext <<_ACEOF
14373 #line $LINENO "configure"
14374 #include "confdefs.h"
14375 $ac_includes_default
14376 struct { char filler; short field; } pgac_struct;
14377 #ifdef F77_DUMMY_MAIN
14378 # ifdef __cplusplus
14381 int F77_DUMMY_MAIN() { return 1; }
14386 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -s conftest.$ac_objext'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_lo=$ac_mid; break
14407 echo "$as_me: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 ac_hi=`expr '(' $ac_mid ')' - 1`
14410 if test $ac_mid -le $ac_hi; then
14414 ac_mid=`expr 2 '*' $ac_mid`
14416 rm -f conftest.$ac_objext conftest.$ac_ext
14419 echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14423 rm -f conftest.$ac_objext conftest.$ac_ext
14425 rm -f conftest.$ac_objext conftest.$ac_ext
14426 # Binary search between lo and hi bounds.
14427 while test "x$ac_lo" != "x$ac_hi"; do
14428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line $LINENO "configure"
14431 #include "confdefs.h"
14432 $ac_includes_default
14433 struct { char filler; short field; } pgac_struct;
14434 #ifdef F77_DUMMY_MAIN
14435 # ifdef __cplusplus
14438 int F77_DUMMY_MAIN() { return 1; }
14443 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14464 echo "$as_me: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14466 ac_lo=`expr '(' $ac_mid ')' + 1`
14468 rm -f conftest.$ac_objext conftest.$ac_ext
14471 ?*) pgac_cv_alignof_short=$ac_lo;;
14472 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14473 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14474 { (exit 1); exit 1; }; } ;;
14477 if test "$cross_compiling" = yes; then
14478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14479 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14480 { (exit 1); exit 1; }; }
14482 cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14484 #include "confdefs.h"
14485 $ac_includes_default
14486 struct { char filler; short field; } pgac_struct;
14487 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14488 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14490 #include <stdlib.h>
14491 #ifdef F77_DUMMY_MAIN
14492 # ifdef __cplusplus
14495 int F77_DUMMY_MAIN() { return 1; }
14501 FILE *f = fopen ("conftest.val", "w");
14504 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14506 long i = longval ();
14507 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14509 fprintf (f, "%ld\n", i);
14513 unsigned long i = ulongval ();
14514 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14516 fprintf (f, "%lu\n", i);
14518 exit (ferror (f) || fclose (f) != 0);
14524 rm -f conftest$ac_exeext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14526 (eval $ac_link) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
14535 pgac_cv_alignof_short=`cat conftest.val`
14537 echo "$as_me: program exited with status $ac_status" >&5
14538 echo "$as_me: failed program was:" >&5
14539 cat conftest.$ac_ext >&5
14540 ( exit $ac_status )
14541 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14542 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14543 { (exit 1); exit 1; }; }
14545 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14550 pgac_cv_alignof_short=0
14553 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14554 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14555 cat >>confdefs.h <<_ACEOF
14556 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14560 echo "$as_me:$LINENO: checking for int" >&5
14561 echo $ECHO_N "checking for int... $ECHO_C" >&6
14562 if test "${ac_cv_type_int+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14566 #line $LINENO "configure"
14567 #include "confdefs.h"
14568 $ac_includes_default
14569 #ifdef F77_DUMMY_MAIN
14570 # ifdef __cplusplus
14573 int F77_DUMMY_MAIN() { return 1; }
14586 rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14600 echo "$as_me: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14604 rm -f conftest.$ac_objext conftest.$ac_ext
14606 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14607 echo "${ECHO_T}$ac_cv_type_int" >&6
14609 echo "$as_me:$LINENO: checking alignment of int" >&5
14610 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14611 if test "${pgac_cv_alignof_int+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 if test "$ac_cv_type_int" = yes; then
14615 if test "$cross_compiling" = yes; then
14616 # Depending upon the size, compute the lo and hi bounds.
14617 cat >conftest.$ac_ext <<_ACEOF
14618 #line $LINENO "configure"
14619 #include "confdefs.h"
14620 $ac_includes_default
14621 struct { char filler; int field; } pgac_struct;
14622 #ifdef F77_DUMMY_MAIN
14623 # ifdef __cplusplus
14626 int F77_DUMMY_MAIN() { return 1; }
14631 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14652 cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14654 #include "confdefs.h"
14655 $ac_includes_default
14656 struct { char filler; int field; } pgac_struct;
14657 #ifdef F77_DUMMY_MAIN
14658 # ifdef __cplusplus
14661 int F77_DUMMY_MAIN() { return 1; }
14666 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14673 rm -f conftest.$ac_objext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14675 (eval $ac_compile) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_hi=$ac_mid; break
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14689 ac_lo=`expr $ac_mid + 1`
14690 if test $ac_lo -le $ac_mid; then
14694 ac_mid=`expr 2 '*' $ac_mid + 1`
14696 rm -f conftest.$ac_objext conftest.$ac_ext
14699 echo "$as_me: failed program was:" >&5
14700 cat conftest.$ac_ext >&5
14701 cat >conftest.$ac_ext <<_ACEOF
14702 #line $LINENO "configure"
14703 #include "confdefs.h"
14704 $ac_includes_default
14705 struct { char filler; int field; } pgac_struct;
14706 #ifdef F77_DUMMY_MAIN
14707 # ifdef __cplusplus
14710 int F77_DUMMY_MAIN() { return 1; }
14715 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14722 rm -f conftest.$ac_objext
14723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14736 cat >conftest.$ac_ext <<_ACEOF
14737 #line $LINENO "configure"
14738 #include "confdefs.h"
14739 $ac_includes_default
14740 struct { char filler; int field; } pgac_struct;
14741 #ifdef F77_DUMMY_MAIN
14742 # ifdef __cplusplus
14745 int F77_DUMMY_MAIN() { return 1; }
14750 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14757 rm -f conftest.$ac_objext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759 (eval $ac_compile) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -s conftest.$ac_objext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_lo=$ac_mid; break
14771 echo "$as_me: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 ac_hi=`expr '(' $ac_mid ')' - 1`
14774 if test $ac_mid -le $ac_hi; then
14778 ac_mid=`expr 2 '*' $ac_mid`
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14783 echo "$as_me: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14787 rm -f conftest.$ac_objext conftest.$ac_ext
14789 rm -f conftest.$ac_objext conftest.$ac_ext
14790 # Binary search between lo and hi bounds.
14791 while test "x$ac_lo" != "x$ac_hi"; do
14792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14793 cat >conftest.$ac_ext <<_ACEOF
14794 #line $LINENO "configure"
14795 #include "confdefs.h"
14796 $ac_includes_default
14797 struct { char filler; int field; } pgac_struct;
14798 #ifdef F77_DUMMY_MAIN
14799 # ifdef __cplusplus
14802 int F77_DUMMY_MAIN() { return 1; }
14807 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14828 echo "$as_me: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 ac_lo=`expr '(' $ac_mid ')' + 1`
14832 rm -f conftest.$ac_objext conftest.$ac_ext
14835 ?*) pgac_cv_alignof_int=$ac_lo;;
14836 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14837 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14838 { (exit 1); exit 1; }; } ;;
14841 if test "$cross_compiling" = yes; then
14842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14843 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14844 { (exit 1); exit 1; }; }
14846 cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 #include "confdefs.h"
14849 $ac_includes_default
14850 struct { char filler; int field; } pgac_struct;
14851 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14852 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14854 #include <stdlib.h>
14855 #ifdef F77_DUMMY_MAIN
14856 # ifdef __cplusplus
14859 int F77_DUMMY_MAIN() { return 1; }
14865 FILE *f = fopen ("conftest.val", "w");
14868 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14870 long i = longval ();
14871 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14873 fprintf (f, "%ld\n", i);
14877 unsigned long i = ulongval ();
14878 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14880 fprintf (f, "%lu\n", i);
14882 exit (ferror (f) || fclose (f) != 0);
14888 rm -f conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890 (eval $ac_link) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 pgac_cv_alignof_int=`cat conftest.val`
14901 echo "$as_me: program exited with status $ac_status" >&5
14902 echo "$as_me: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 ( exit $ac_status )
14905 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14906 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14907 { (exit 1); exit 1; }; }
14909 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14914 pgac_cv_alignof_int=0
14917 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14918 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14919 cat >>confdefs.h <<_ACEOF
14920 #define ALIGNOF_INT $pgac_cv_alignof_int
14924 echo "$as_me:$LINENO: checking for long" >&5
14925 echo $ECHO_N "checking for long... $ECHO_C" >&6
14926 if test "${ac_cv_type_long+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14930 #line $LINENO "configure"
14931 #include "confdefs.h"
14932 $ac_includes_default
14933 #ifdef F77_DUMMY_MAIN
14934 # ifdef __cplusplus
14937 int F77_DUMMY_MAIN() { return 1; }
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -s conftest.$ac_objext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_type_long=yes
14964 echo "$as_me: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14968 rm -f conftest.$ac_objext conftest.$ac_ext
14970 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14971 echo "${ECHO_T}$ac_cv_type_long" >&6
14973 echo "$as_me:$LINENO: checking alignment of long" >&5
14974 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14975 if test "${pgac_cv_alignof_long+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 if test "$ac_cv_type_long" = yes; then
14979 if test "$cross_compiling" = yes; then
14980 # Depending upon the size, compute the lo and hi bounds.
14981 cat >conftest.$ac_ext <<_ACEOF
14982 #line $LINENO "configure"
14983 #include "confdefs.h"
14984 $ac_includes_default
14985 struct { char filler; long field; } pgac_struct;
14986 #ifdef F77_DUMMY_MAIN
14987 # ifdef __cplusplus
14990 int F77_DUMMY_MAIN() { return 1; }
14995 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15002 rm -f conftest.$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15016 cat >conftest.$ac_ext <<_ACEOF
15017 #line $LINENO "configure"
15018 #include "confdefs.h"
15019 $ac_includes_default
15020 struct { char filler; long field; } pgac_struct;
15021 #ifdef F77_DUMMY_MAIN
15022 # ifdef __cplusplus
15025 int F77_DUMMY_MAIN() { return 1; }
15030 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15037 rm -f conftest.$ac_objext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15039 (eval $ac_compile) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -s conftest.$ac_objext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_hi=$ac_mid; break
15051 echo "$as_me: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15053 ac_lo=`expr $ac_mid + 1`
15054 if test $ac_lo -le $ac_mid; then
15058 ac_mid=`expr 2 '*' $ac_mid + 1`
15060 rm -f conftest.$ac_objext conftest.$ac_ext
15063 echo "$as_me: failed program was:" >&5
15064 cat conftest.$ac_ext >&5
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15067 #include "confdefs.h"
15068 $ac_includes_default
15069 struct { char filler; long field; } pgac_struct;
15070 #ifdef F77_DUMMY_MAIN
15071 # ifdef __cplusplus
15074 int F77_DUMMY_MAIN() { return 1; }
15079 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15086 rm -f conftest.$ac_objext
15087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15088 (eval $ac_compile) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15100 cat >conftest.$ac_ext <<_ACEOF
15101 #line $LINENO "configure"
15102 #include "confdefs.h"
15103 $ac_includes_default
15104 struct { char filler; long field; } pgac_struct;
15105 #ifdef F77_DUMMY_MAIN
15106 # ifdef __cplusplus
15109 int F77_DUMMY_MAIN() { return 1; }
15114 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15121 rm -f conftest.$ac_objext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123 (eval $ac_compile) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_lo=$ac_mid; break
15135 echo "$as_me: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15137 ac_hi=`expr '(' $ac_mid ')' - 1`
15138 if test $ac_mid -le $ac_hi; then
15142 ac_mid=`expr 2 '*' $ac_mid`
15144 rm -f conftest.$ac_objext conftest.$ac_ext
15147 echo "$as_me: failed program was:" >&5
15148 cat conftest.$ac_ext >&5
15151 rm -f conftest.$ac_objext conftest.$ac_ext
15153 rm -f conftest.$ac_objext conftest.$ac_ext
15154 # Binary search between lo and hi bounds.
15155 while test "x$ac_lo" != "x$ac_hi"; do
15156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15157 cat >conftest.$ac_ext <<_ACEOF
15158 #line $LINENO "configure"
15159 #include "confdefs.h"
15160 $ac_includes_default
15161 struct { char filler; long field; } pgac_struct;
15162 #ifdef F77_DUMMY_MAIN
15163 # ifdef __cplusplus
15166 int F77_DUMMY_MAIN() { return 1; }
15171 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15178 rm -f conftest.$ac_objext
15179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180 (eval $ac_compile) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15192 echo "$as_me: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15194 ac_lo=`expr '(' $ac_mid ')' + 1`
15196 rm -f conftest.$ac_objext conftest.$ac_ext
15199 ?*) pgac_cv_alignof_long=$ac_lo;;
15200 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15201 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15202 { (exit 1); exit 1; }; } ;;
15205 if test "$cross_compiling" = yes; then
15206 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15207 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15208 { (exit 1); exit 1; }; }
15210 cat >conftest.$ac_ext <<_ACEOF
15211 #line $LINENO "configure"
15212 #include "confdefs.h"
15213 $ac_includes_default
15214 struct { char filler; long field; } pgac_struct;
15215 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15216 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15218 #include <stdlib.h>
15219 #ifdef F77_DUMMY_MAIN
15220 # ifdef __cplusplus
15223 int F77_DUMMY_MAIN() { return 1; }
15229 FILE *f = fopen ("conftest.val", "w");
15232 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15234 long i = longval ();
15235 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15237 fprintf (f, "%ld\n", i);
15241 unsigned long i = ulongval ();
15242 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15244 fprintf (f, "%lu\n", i);
15246 exit (ferror (f) || fclose (f) != 0);
15252 rm -f conftest$ac_exeext
15253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15254 (eval $ac_link) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 pgac_cv_alignof_long=`cat conftest.val`
15265 echo "$as_me: program exited with status $ac_status" >&5
15266 echo "$as_me: failed program was:" >&5
15267 cat conftest.$ac_ext >&5
15268 ( exit $ac_status )
15269 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15270 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15271 { (exit 1); exit 1; }; }
15273 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15278 pgac_cv_alignof_long=0
15281 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15282 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15283 cat >>confdefs.h <<_ACEOF
15284 #define ALIGNOF_LONG $pgac_cv_alignof_long
15288 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15289 echo "$as_me:$LINENO: checking for long long int" >&5
15290 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15291 if test "${ac_cv_type_long_long_int+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15295 #line $LINENO "configure"
15296 #include "confdefs.h"
15297 $ac_includes_default
15298 #ifdef F77_DUMMY_MAIN
15299 # ifdef __cplusplus
15302 int F77_DUMMY_MAIN() { return 1; }
15307 if ((long long int *) 0)
15309 if (sizeof (long long int))
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_type_long_long_int=yes
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 ac_cv_type_long_long_int=no
15333 rm -f conftest.$ac_objext conftest.$ac_ext
15335 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15336 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15338 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15339 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15340 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 if test "$ac_cv_type_long_long_int" = yes; then
15344 if test "$cross_compiling" = yes; then
15345 # Depending upon the size, compute the lo and hi bounds.
15346 cat >conftest.$ac_ext <<_ACEOF
15347 #line $LINENO "configure"
15348 #include "confdefs.h"
15349 $ac_includes_default
15350 struct { char filler; long long int field; } pgac_struct;
15351 #ifdef F77_DUMMY_MAIN
15352 # ifdef __cplusplus
15355 int F77_DUMMY_MAIN() { return 1; }
15360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15367 rm -f conftest.$ac_objext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15369 (eval $ac_compile) 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); } &&
15373 { ac_try='test -s conftest.$ac_objext'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15381 cat >conftest.$ac_ext <<_ACEOF
15382 #line $LINENO "configure"
15383 #include "confdefs.h"
15384 $ac_includes_default
15385 struct { char filler; long long int field; } pgac_struct;
15386 #ifdef F77_DUMMY_MAIN
15387 # ifdef __cplusplus
15390 int F77_DUMMY_MAIN() { return 1; }
15395 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15402 rm -f conftest.$ac_objext
15403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15404 (eval $ac_compile) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -s conftest.$ac_objext'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_hi=$ac_mid; break
15416 echo "$as_me: failed program was:" >&5
15417 cat conftest.$ac_ext >&5
15418 ac_lo=`expr $ac_mid + 1`
15419 if test $ac_lo -le $ac_mid; then
15423 ac_mid=`expr 2 '*' $ac_mid + 1`
15425 rm -f conftest.$ac_objext conftest.$ac_ext
15428 echo "$as_me: failed program was:" >&5
15429 cat conftest.$ac_ext >&5
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15432 #include "confdefs.h"
15433 $ac_includes_default
15434 struct { char filler; long long int field; } pgac_struct;
15435 #ifdef F77_DUMMY_MAIN
15436 # ifdef __cplusplus
15439 int F77_DUMMY_MAIN() { return 1; }
15444 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15451 rm -f conftest.$ac_objext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15465 cat >conftest.$ac_ext <<_ACEOF
15466 #line $LINENO "configure"
15467 #include "confdefs.h"
15468 $ac_includes_default
15469 struct { char filler; long long int field; } pgac_struct;
15470 #ifdef F77_DUMMY_MAIN
15471 # ifdef __cplusplus
15474 int F77_DUMMY_MAIN() { return 1; }
15479 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15486 rm -f conftest.$ac_objext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15488 (eval $ac_compile) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_lo=$ac_mid; break
15500 echo "$as_me: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 ac_hi=`expr '(' $ac_mid ')' - 1`
15503 if test $ac_mid -le $ac_hi; then
15507 ac_mid=`expr 2 '*' $ac_mid`
15509 rm -f conftest.$ac_objext conftest.$ac_ext
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15518 rm -f conftest.$ac_objext conftest.$ac_ext
15519 # Binary search between lo and hi bounds.
15520 while test "x$ac_lo" != "x$ac_hi"; do
15521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15522 cat >conftest.$ac_ext <<_ACEOF
15523 #line $LINENO "configure"
15524 #include "confdefs.h"
15525 $ac_includes_default
15526 struct { char filler; long long int field; } pgac_struct;
15527 #ifdef F77_DUMMY_MAIN
15528 # ifdef __cplusplus
15531 int F77_DUMMY_MAIN() { return 1; }
15536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -s conftest.$ac_objext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15557 echo "$as_me: failed program was:" >&5
15558 cat conftest.$ac_ext >&5
15559 ac_lo=`expr '(' $ac_mid ')' + 1`
15561 rm -f conftest.$ac_objext conftest.$ac_ext
15564 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15565 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15566 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15567 { (exit 1); exit 1; }; } ;;
15570 if test "$cross_compiling" = yes; then
15571 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15572 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15573 { (exit 1); exit 1; }; }
15575 cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15577 #include "confdefs.h"
15578 $ac_includes_default
15579 struct { char filler; long long int field; } pgac_struct;
15580 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15581 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15583 #include <stdlib.h>
15584 #ifdef F77_DUMMY_MAIN
15585 # ifdef __cplusplus
15588 int F77_DUMMY_MAIN() { return 1; }
15594 FILE *f = fopen ("conftest.val", "w");
15597 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15599 long i = longval ();
15600 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15602 fprintf (f, "%ld\n", i);
15606 unsigned long i = ulongval ();
15607 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15609 fprintf (f, "%lu\n", i);
15611 exit (ferror (f) || fclose (f) != 0);
15617 rm -f conftest$ac_exeext
15618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15619 (eval $ac_link) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 pgac_cv_alignof_long_long_int=`cat conftest.val`
15630 echo "$as_me: program exited with status $ac_status" >&5
15631 echo "$as_me: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15633 ( exit $ac_status )
15634 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15635 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15636 { (exit 1); exit 1; }; }
15638 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15643 pgac_cv_alignof_long_long_int=0
15646 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15647 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15648 cat >>confdefs.h <<_ACEOF
15649 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15654 echo "$as_me:$LINENO: checking for double" >&5
15655 echo $ECHO_N "checking for double... $ECHO_C" >&6
15656 if test "${ac_cv_type_double+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 cat >conftest.$ac_ext <<_ACEOF
15660 #line $LINENO "configure"
15661 #include "confdefs.h"
15662 $ac_includes_default
15663 #ifdef F77_DUMMY_MAIN
15664 # ifdef __cplusplus
15667 int F77_DUMMY_MAIN() { return 1; }
15674 if (sizeof (double))
15680 rm -f conftest.$ac_objext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_type_double=yes
15694 echo "$as_me: failed program was:" >&5
15695 cat conftest.$ac_ext >&5
15696 ac_cv_type_double=no
15698 rm -f conftest.$ac_objext conftest.$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15701 echo "${ECHO_T}$ac_cv_type_double" >&6
15703 echo "$as_me:$LINENO: checking alignment of double" >&5
15704 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15705 if test "${pgac_cv_alignof_double+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 if test "$ac_cv_type_double" = yes; then
15709 if test "$cross_compiling" = yes; then
15710 # Depending upon the size, compute the lo and hi bounds.
15711 cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15713 #include "confdefs.h"
15714 $ac_includes_default
15715 struct { char filler; double field; } pgac_struct;
15716 #ifdef F77_DUMMY_MAIN
15717 # ifdef __cplusplus
15720 int F77_DUMMY_MAIN() { return 1; }
15725 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734 (eval $ac_compile) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15746 cat >conftest.$ac_ext <<_ACEOF
15747 #line $LINENO "configure"
15748 #include "confdefs.h"
15749 $ac_includes_default
15750 struct { char filler; double field; } pgac_struct;
15751 #ifdef F77_DUMMY_MAIN
15752 # ifdef __cplusplus
15755 int F77_DUMMY_MAIN() { return 1; }
15760 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_hi=$ac_mid; break
15781 echo "$as_me: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15783 ac_lo=`expr $ac_mid + 1`
15784 if test $ac_lo -le $ac_mid; then
15788 ac_mid=`expr 2 '*' $ac_mid + 1`
15790 rm -f conftest.$ac_objext conftest.$ac_ext
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 cat >conftest.$ac_ext <<_ACEOF
15796 #line $LINENO "configure"
15797 #include "confdefs.h"
15798 $ac_includes_default
15799 struct { char filler; double field; } pgac_struct;
15800 #ifdef F77_DUMMY_MAIN
15801 # ifdef __cplusplus
15804 int F77_DUMMY_MAIN() { return 1; }
15809 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15816 rm -f conftest.$ac_objext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15818 (eval $ac_compile) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -s conftest.$ac_objext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15830 cat >conftest.$ac_ext <<_ACEOF
15831 #line $LINENO "configure"
15832 #include "confdefs.h"
15833 $ac_includes_default
15834 struct { char filler; double field; } pgac_struct;
15835 #ifdef F77_DUMMY_MAIN
15836 # ifdef __cplusplus
15839 int F77_DUMMY_MAIN() { return 1; }
15844 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15851 rm -f conftest.$ac_objext
15852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15853 (eval $ac_compile) 2>&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -s conftest.$ac_objext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_lo=$ac_mid; break
15865 echo "$as_me: failed program was:" >&5
15866 cat conftest.$ac_ext >&5
15867 ac_hi=`expr '(' $ac_mid ')' - 1`
15868 if test $ac_mid -le $ac_hi; then
15872 ac_mid=`expr 2 '*' $ac_mid`
15874 rm -f conftest.$ac_objext conftest.$ac_ext
15877 echo "$as_me: failed program was:" >&5
15878 cat conftest.$ac_ext >&5
15881 rm -f conftest.$ac_objext conftest.$ac_ext
15883 rm -f conftest.$ac_objext conftest.$ac_ext
15884 # Binary search between lo and hi bounds.
15885 while test "x$ac_lo" != "x$ac_hi"; do
15886 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15887 cat >conftest.$ac_ext <<_ACEOF
15888 #line $LINENO "configure"
15889 #include "confdefs.h"
15890 $ac_includes_default
15891 struct { char filler; double field; } pgac_struct;
15892 #ifdef F77_DUMMY_MAIN
15893 # ifdef __cplusplus
15896 int F77_DUMMY_MAIN() { return 1; }
15901 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910 (eval $ac_compile) 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -s conftest.$ac_objext'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15922 echo "$as_me: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 ac_lo=`expr '(' $ac_mid ')' + 1`
15926 rm -f conftest.$ac_objext conftest.$ac_ext
15929 ?*) pgac_cv_alignof_double=$ac_lo;;
15930 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15931 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15932 { (exit 1); exit 1; }; } ;;
15935 if test "$cross_compiling" = yes; then
15936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15937 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15938 { (exit 1); exit 1; }; }
15940 cat >conftest.$ac_ext <<_ACEOF
15941 #line $LINENO "configure"
15942 #include "confdefs.h"
15943 $ac_includes_default
15944 struct { char filler; double field; } pgac_struct;
15945 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15946 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15948 #include <stdlib.h>
15949 #ifdef F77_DUMMY_MAIN
15950 # ifdef __cplusplus
15953 int F77_DUMMY_MAIN() { return 1; }
15959 FILE *f = fopen ("conftest.val", "w");
15962 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15964 long i = longval ();
15965 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15967 fprintf (f, "%ld\n", i);
15971 unsigned long i = ulongval ();
15972 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15974 fprintf (f, "%lu\n", i);
15976 exit (ferror (f) || fclose (f) != 0);
15982 rm -f conftest$ac_exeext
15983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15984 (eval $ac_link) 2>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 pgac_cv_alignof_double=`cat conftest.val`
15995 echo "$as_me: program exited with status $ac_status" >&5
15996 echo "$as_me: failed program was:" >&5
15997 cat conftest.$ac_ext >&5
15998 ( exit $ac_status )
15999 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16000 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16001 { (exit 1); exit 1; }; }
16003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16008 pgac_cv_alignof_double=0
16011 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16012 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16013 cat >>confdefs.h <<_ACEOF
16014 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16019 # Compute maximum alignment of any basic type.
16020 # We assume long's alignment is at least as strong as char, short, or int;
16021 # but we must check long long (if it exists) and double.
16023 MAX_ALIGNOF=$pgac_cv_alignof_long
16024 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16025 MAX_ALIGNOF=$pgac_cv_alignof_double
16027 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16028 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16031 cat >>confdefs.h <<_ACEOF
16032 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16037 # Some platforms predefine the types int8, int16, etc. Only check
16038 # a (hopefully) representative subset.
16039 echo "$as_me:$LINENO: checking for int8" >&5
16040 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16041 if test "${ac_cv_type_int8+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 cat >conftest.$ac_ext <<_ACEOF
16045 #line $LINENO "configure"
16046 #include "confdefs.h"
16048 #ifdef HAVE_SUPPORTDEFS_H
16049 #include <SupportDefs.h>
16052 #ifdef F77_DUMMY_MAIN
16053 # ifdef __cplusplus
16056 int F77_DUMMY_MAIN() { return 1; }
16069 rm -f conftest.$ac_objext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -s conftest.$ac_objext'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16081 ac_cv_type_int8=yes
16083 echo "$as_me: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16087 rm -f conftest.$ac_objext conftest.$ac_ext
16089 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16090 echo "${ECHO_T}$ac_cv_type_int8" >&6
16091 if test $ac_cv_type_int8 = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094 #define HAVE_INT8 1
16099 echo "$as_me:$LINENO: checking for uint8" >&5
16100 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16101 if test "${ac_cv_type_uint8+set}" = set; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 cat >conftest.$ac_ext <<_ACEOF
16105 #line $LINENO "configure"
16106 #include "confdefs.h"
16108 #ifdef HAVE_SUPPORTDEFS_H
16109 #include <SupportDefs.h>
16112 #ifdef F77_DUMMY_MAIN
16113 # ifdef __cplusplus
16116 int F77_DUMMY_MAIN() { return 1; }
16123 if (sizeof (uint8))
16129 rm -f conftest.$ac_objext
16130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16131 (eval $ac_compile) 2>&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_type_uint8=yes
16143 echo "$as_me: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 ac_cv_type_uint8=no
16147 rm -f conftest.$ac_objext conftest.$ac_ext
16149 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16150 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16151 if test $ac_cv_type_uint8 = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define HAVE_UINT8 1
16159 echo "$as_me:$LINENO: checking for int64" >&5
16160 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16161 if test "${ac_cv_type_int64+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16166 #include "confdefs.h"
16168 #ifdef HAVE_SUPPORTDEFS_H
16169 #include <SupportDefs.h>
16172 #ifdef F77_DUMMY_MAIN
16173 # ifdef __cplusplus
16176 int F77_DUMMY_MAIN() { return 1; }
16183 if (sizeof (int64))
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -s conftest.$ac_objext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_type_int64=yes
16203 echo "$as_me: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16205 ac_cv_type_int64=no
16207 rm -f conftest.$ac_objext conftest.$ac_ext
16209 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16210 echo "${ECHO_T}$ac_cv_type_int64" >&6
16211 if test $ac_cv_type_int64 = yes; then
16213 cat >>confdefs.h <<_ACEOF
16214 #define HAVE_INT64 1
16219 echo "$as_me:$LINENO: checking for uint64" >&5
16220 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16221 if test "${ac_cv_type_uint64+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 cat >conftest.$ac_ext <<_ACEOF
16225 #line $LINENO "configure"
16226 #include "confdefs.h"
16228 #ifdef HAVE_SUPPORTDEFS_H
16229 #include <SupportDefs.h>
16232 #ifdef F77_DUMMY_MAIN
16233 # ifdef __cplusplus
16236 int F77_DUMMY_MAIN() { return 1; }
16243 if (sizeof (uint64))
16249 rm -f conftest.$ac_objext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251 (eval $ac_compile) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -s conftest.$ac_objext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_type_uint64=yes
16263 echo "$as_me: failed program was:" >&5
16264 cat conftest.$ac_ext >&5
16265 ac_cv_type_uint64=no
16267 rm -f conftest.$ac_objext conftest.$ac_ext
16269 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16270 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16271 if test $ac_cv_type_uint64 = yes; then
16273 cat >>confdefs.h <<_ACEOF
16274 #define HAVE_UINT64 1
16281 # We also check for sig_atomic_t, which *should* be defined per ANSI
16282 # C, but is missing on some old platforms.
16283 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16284 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16285 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 cat >conftest.$ac_ext <<_ACEOF
16289 #line $LINENO "configure"
16290 #include "confdefs.h"
16291 #include <signal.h>
16293 #ifdef F77_DUMMY_MAIN
16294 # ifdef __cplusplus
16297 int F77_DUMMY_MAIN() { return 1; }
16302 if ((sig_atomic_t *) 0)
16304 if (sizeof (sig_atomic_t))
16310 rm -f conftest.$ac_objext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16312 (eval $ac_compile) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_cv_type_sig_atomic_t=yes
16324 echo "$as_me: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 ac_cv_type_sig_atomic_t=no
16328 rm -f conftest.$ac_objext conftest.$ac_ext
16330 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16331 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16332 if test $ac_cv_type_sig_atomic_t = yes; then
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_SIG_ATOMIC_T 1
16343 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16344 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16345 if test "${pgac_cv_func_posix_signals+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 cat >conftest.$ac_ext <<_ACEOF
16349 #line $LINENO "configure"
16350 #include "confdefs.h"
16351 #include <signal.h>
16353 #ifdef F77_DUMMY_MAIN
16354 # ifdef __cplusplus
16357 int F77_DUMMY_MAIN() { return 1; }
16362 struct sigaction act, oact;
16363 sigemptyset(&act.sa_mask);
16364 act.sa_flags = SA_RESTART;
16365 sigaction(0, &act, &oact);
16370 rm -f conftest.$ac_objext conftest$ac_exeext
16371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16372 (eval $ac_link) 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -s conftest$ac_exeext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 pgac_cv_func_posix_signals=yes
16384 echo "$as_me: failed program was:" >&5
16385 cat conftest.$ac_ext >&5
16386 pgac_cv_func_posix_signals=no
16388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16390 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16391 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16392 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_POSIX_SIGNALS
16399 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16401 if test $ac_cv_func_fseeko = yes; then
16402 # Check whether --enable-largefile or --disable-largefile was given.
16403 if test "${enable_largefile+set}" = set; then
16404 enableval="$enable_largefile"
16407 if test "$enable_largefile" != no; then
16409 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16410 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16411 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 ac_cv_sys_largefile_CC=no
16415 if test "$GCC" != yes; then
16418 # IRIX 6.2 and later do not support large files by default,
16419 # so use the C compiler's -n32 option if that helps.
16420 cat >conftest.$ac_ext <<_ACEOF
16421 #line $LINENO "configure"
16422 #include "confdefs.h"
16423 #include <sys/types.h>
16424 /* Check that off_t can represent 2**63 - 1 correctly.
16425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16426 since some C++ compilers masquerading as C compilers
16427 incorrectly reject 9223372036854775807. */
16428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16430 && LARGE_OFF_T % 2147483647 == 1)
16432 #ifdef F77_DUMMY_MAIN
16433 # ifdef __cplusplus
16436 int F77_DUMMY_MAIN() { return 1; }
16446 rm -f conftest.$ac_objext
16447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16448 (eval $ac_compile) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16460 echo "$as_me: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16463 rm -f conftest.$ac_objext
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -s conftest.$ac_objext'
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 ac_cv_sys_largefile_CC=' -n32'; break
16479 echo "$as_me: failed program was:" >&5
16480 cat conftest.$ac_ext >&5
16482 rm -f conftest.$ac_objext
16486 rm -f conftest.$ac_ext
16489 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16490 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16491 if test "$ac_cv_sys_largefile_CC" != no; then
16492 CC=$CC$ac_cv_sys_largefile_CC
16495 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16496 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16497 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 ac_cv_sys_file_offset_bits=no
16502 cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16504 #include "confdefs.h"
16505 #include <sys/types.h>
16506 /* Check that off_t can represent 2**63 - 1 correctly.
16507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16508 since some C++ compilers masquerading as C compilers
16509 incorrectly reject 9223372036854775807. */
16510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16512 && LARGE_OFF_T % 2147483647 == 1)
16514 #ifdef F77_DUMMY_MAIN
16515 # ifdef __cplusplus
16518 int F77_DUMMY_MAIN() { return 1; }
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -s conftest.$ac_objext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16542 echo "$as_me: failed program was:" >&5
16543 cat conftest.$ac_ext >&5
16545 rm -f conftest.$ac_objext conftest.$ac_ext
16546 cat >conftest.$ac_ext <<_ACEOF
16547 #line $LINENO "configure"
16548 #include "confdefs.h"
16549 #define _FILE_OFFSET_BITS 64
16550 #include <sys/types.h>
16551 /* Check that off_t can represent 2**63 - 1 correctly.
16552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16553 since some C++ compilers masquerading as C compilers
16554 incorrectly reject 9223372036854775807. */
16555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16557 && LARGE_OFF_T % 2147483647 == 1)
16559 #ifdef F77_DUMMY_MAIN
16560 # ifdef __cplusplus
16563 int F77_DUMMY_MAIN() { return 1; }
16573 rm -f conftest.$ac_objext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16575 (eval $ac_compile) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -s conftest.$ac_objext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_sys_file_offset_bits=64; break
16587 echo "$as_me: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16590 rm -f conftest.$ac_objext conftest.$ac_ext
16594 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16595 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16596 if test "$ac_cv_sys_file_offset_bits" != no; then
16598 cat >>confdefs.h <<_ACEOF
16599 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16604 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16605 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16606 if test "${ac_cv_sys_large_files+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 ac_cv_sys_large_files=no
16611 cat >conftest.$ac_ext <<_ACEOF
16612 #line $LINENO "configure"
16613 #include "confdefs.h"
16614 #include <sys/types.h>
16615 /* Check that off_t can represent 2**63 - 1 correctly.
16616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16617 since some C++ compilers masquerading as C compilers
16618 incorrectly reject 9223372036854775807. */
16619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16621 && LARGE_OFF_T % 2147483647 == 1)
16623 #ifdef F77_DUMMY_MAIN
16624 # ifdef __cplusplus
16627 int F77_DUMMY_MAIN() { return 1; }
16637 rm -f conftest.$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639 (eval $ac_compile) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16651 echo "$as_me: failed program was:" >&5
16652 cat conftest.$ac_ext >&5
16654 rm -f conftest.$ac_objext conftest.$ac_ext
16655 cat >conftest.$ac_ext <<_ACEOF
16656 #line $LINENO "configure"
16657 #include "confdefs.h"
16658 #define _LARGE_FILES 1
16659 #include <sys/types.h>
16660 /* Check that off_t can represent 2**63 - 1 correctly.
16661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16662 since some C++ compilers masquerading as C compilers
16663 incorrectly reject 9223372036854775807. */
16664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16666 && LARGE_OFF_T % 2147483647 == 1)
16668 #ifdef F77_DUMMY_MAIN
16669 # ifdef __cplusplus
16672 int F77_DUMMY_MAIN() { return 1; }
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16684 (eval $ac_compile) 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_cv_sys_large_files=1; break
16696 echo "$as_me: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16699 rm -f conftest.$ac_objext conftest.$ac_ext
16703 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16704 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16705 if test "$ac_cv_sys_large_files" != no; then
16707 cat >>confdefs.h <<_ACEOF
16708 #define _LARGE_FILES $ac_cv_sys_large_files
16718 # Select semaphore implementation type.
16719 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16721 cat >>confdefs.h <<\_ACEOF
16722 #define USE_NAMED_POSIX_SEMAPHORES 1
16725 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16727 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16729 cat >>confdefs.h <<\_ACEOF
16730 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16733 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16736 cat >>confdefs.h <<\_ACEOF
16737 #define USE_SYSV_SEMAPHORES 1
16740 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16745 # Select shared-memory implementation type.
16747 cat >>confdefs.h <<\_ACEOF
16748 #define USE_SYSV_SHARED_MEMORY 1
16751 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16754 if test "$enable_nls" = yes ; then
16756 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16757 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16758 if test "${ac_cv_search_gettext+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 ac_func_search_save_LIBS=$LIBS
16762 ac_cv_search_gettext=no
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16765 #include "confdefs.h"
16767 /* Override any gcc2 internal prototype to avoid an error. */
16771 /* We use char because int might match the return type of a gcc2
16772 builtin and then its argument prototype would still apply. */
16774 #ifdef F77_DUMMY_MAIN
16775 # ifdef __cplusplus
16778 int F77_DUMMY_MAIN() { return 1; }
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790 (eval $ac_link) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -s conftest$ac_exeext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_search_gettext="none required"
16802 echo "$as_me: failed program was:" >&5
16803 cat conftest.$ac_ext >&5
16805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16806 if test "$ac_cv_search_gettext" = no; then
16807 for ac_lib in intl; do
16808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16809 cat >conftest.$ac_ext <<_ACEOF
16810 #line $LINENO "configure"
16811 #include "confdefs.h"
16813 /* Override any gcc2 internal prototype to avoid an error. */
16817 /* We use char because int might match the return type of a gcc2
16818 builtin and then its argument prototype would still apply. */
16820 #ifdef F77_DUMMY_MAIN
16821 # ifdef __cplusplus
16824 int F77_DUMMY_MAIN() { return 1; }
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16836 (eval $ac_link) 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -s conftest$ac_exeext'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_cv_search_gettext="-l$ac_lib"
16849 echo "$as_me: failed program was:" >&5
16850 cat conftest.$ac_ext >&5
16852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16855 LIBS=$ac_func_search_save_LIBS
16857 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16858 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16859 if test "$ac_cv_search_gettext" != no; then
16860 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16863 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16864 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16865 { (exit 1); exit 1; }; }
16868 if test "${ac_cv_header_libintl_h+set}" = set; then
16869 echo "$as_me:$LINENO: checking for libintl.h" >&5
16870 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16871 if test "${ac_cv_header_libintl_h+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16875 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16877 # Is the header compilable?
16878 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16879 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16880 cat >conftest.$ac_ext <<_ACEOF
16881 #line $LINENO "configure"
16882 #include "confdefs.h"
16883 $ac_includes_default
16884 #include <libintl.h>
16886 rm -f conftest.$ac_objext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16888 (eval $ac_compile) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_header_compiler=yes
16900 echo "$as_me: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16902 ac_header_compiler=no
16904 rm -f conftest.$ac_objext conftest.$ac_ext
16905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16906 echo "${ECHO_T}$ac_header_compiler" >&6
16908 # Is the header present?
16909 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16910 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16911 cat >conftest.$ac_ext <<_ACEOF
16912 #line $LINENO "configure"
16913 #include "confdefs.h"
16914 #include <libintl.h>
16916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16919 egrep -v '^ *\+' conftest.er1 >conftest.err
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } >/dev/null; then
16924 if test -s conftest.err; then
16925 ac_cpp_err=$ac_c_preproc_warn_flag
16932 if test -z "$ac_cpp_err"; then
16933 ac_header_preproc=yes
16935 echo "$as_me: failed program was:" >&5
16936 cat conftest.$ac_ext >&5
16937 ac_header_preproc=no
16939 rm -f conftest.err conftest.$ac_ext
16940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16941 echo "${ECHO_T}$ac_header_preproc" >&6
16943 # So? What about this header?
16944 case $ac_header_compiler:$ac_header_preproc in
16946 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16947 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16949 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16951 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16952 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16953 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16954 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16956 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16958 echo "$as_me:$LINENO: checking for libintl.h" >&5
16959 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16960 if test "${ac_cv_header_libintl_h+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 ac_cv_header_libintl_h=$ac_header_preproc
16965 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16966 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16969 if test $ac_cv_header_libintl_h = yes; then
16972 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16973 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16974 { (exit 1); exit 1; }; }
16978 for ac_prog in msgfmt
16980 # Extract the first word of "$ac_prog", so it can be a program name with args.
16981 set dummy $ac_prog; ac_word=$2
16982 echo "$as_me:$LINENO: checking for $ac_word" >&5
16983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16984 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 if test -n "$MSGFMT"; then
16988 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in $PATH
16994 test -z "$as_dir" && as_dir=.
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16997 ac_cv_prog_MSGFMT="$ac_prog"
16998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17006 MSGFMT=$ac_cv_prog_MSGFMT
17007 if test -n "$MSGFMT"; then
17008 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17009 echo "${ECHO_T}$MSGFMT" >&6
17011 echo "$as_me:$LINENO: result: no" >&5
17012 echo "${ECHO_T}no" >&6
17015 test -n "$MSGFMT" && break
17018 if test -z "$MSGFMT"; then
17019 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17020 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17021 { (exit 1); exit 1; }; }
17023 for ac_prog in msgmerge
17025 # Extract the first word of "$ac_prog", so it can be a program name with args.
17026 set dummy $ac_prog; ac_word=$2
17027 echo "$as_me:$LINENO: checking for $ac_word" >&5
17028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17029 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 if test -n "$MSGMERGE"; then
17033 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17036 for as_dir in $PATH
17039 test -z "$as_dir" && as_dir=.
17040 for ac_exec_ext in '' $ac_executable_extensions; do
17041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17042 ac_cv_prog_MSGMERGE="$ac_prog"
17043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17051 MSGMERGE=$ac_cv_prog_MSGMERGE
17052 if test -n "$MSGMERGE"; then
17053 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17054 echo "${ECHO_T}$MSGMERGE" >&6
17056 echo "$as_me:$LINENO: result: no" >&5
17057 echo "${ECHO_T}no" >&6
17060 test -n "$MSGMERGE" && break
17063 for ac_prog in xgettext
17065 # Extract the first word of "$ac_prog", so it can be a program name with args.
17066 set dummy $ac_prog; ac_word=$2
17067 echo "$as_me:$LINENO: checking for $ac_word" >&5
17068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17069 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 if test -n "$XGETTEXT"; then
17073 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17076 for as_dir in $PATH
17079 test -z "$as_dir" && as_dir=.
17080 for ac_exec_ext in '' $ac_executable_extensions; do
17081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17082 ac_cv_prog_XGETTEXT="$ac_prog"
17083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17091 XGETTEXT=$ac_cv_prog_XGETTEXT
17092 if test -n "$XGETTEXT"; then
17093 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17094 echo "${ECHO_T}$XGETTEXT" >&6
17096 echo "$as_me:$LINENO: result: no" >&5
17097 echo "${ECHO_T}no" >&6
17100 test -n "$XGETTEXT" && break
17104 # Note: share/locale is always the default, independent of $datadir
17105 localedir='${prefix}/share/locale'
17106 if test x"$prefix" = x"NONE"; then
17107 exp_localedir="$ac_default_prefix/share/locale"
17109 exp_localedir="$prefix/share/locale"
17114 cat >>confdefs.h <<_ACEOF
17115 #define LOCALEDIR "$exp_localedir"
17121 # Check for Tcl configuration script tclConfig.sh
17122 if test "$with_tcl" = yes; then
17123 for ac_prog in tclsh tcl
17125 # Extract the first word of "$ac_prog", so it can be a program name with args.
17126 set dummy $ac_prog; ac_word=$2
17127 echo "$as_me:$LINENO: checking for $ac_word" >&5
17128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17129 if test "${ac_cv_path_TCLSH+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138 for as_dir in $PATH
17141 test -z "$as_dir" && as_dir=.
17142 for ac_exec_ext in '' $ac_executable_extensions; do
17143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17144 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17154 TCLSH=$ac_cv_path_TCLSH
17156 if test -n "$TCLSH"; then
17157 echo "$as_me:$LINENO: result: $TCLSH" >&5
17158 echo "${ECHO_T}$TCLSH" >&6
17160 echo "$as_me:$LINENO: result: no" >&5
17161 echo "${ECHO_T}no" >&6
17164 test -n "$TCLSH" && break
17167 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17168 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17169 # Let user override test
17170 if test -z "$TCL_CONFIG_SH"; then
17171 pgac_test_dirs="$with_tclconfig"
17173 set X $pgac_test_dirs; shift
17174 if test $# -eq 0; then
17175 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17176 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17177 { (exit 1); exit 1; }; }
17178 set X `echo 'puts $auto_path' | $TCLSH`; shift
17182 if test -r "$pgac_dir/tclConfig.sh"; then
17183 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17189 if test -z "$TCL_CONFIG_SH"; then
17190 echo "$as_me:$LINENO: result: no" >&5
17191 echo "${ECHO_T}no" >&6
17192 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17193 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17194 { (exit 1); exit 1; }; }
17196 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17197 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17203 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17204 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17205 eval TCL_LIBS=\"$TCL_LIBS\"
17206 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17207 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17211 # Check for Tk configuration script tkConfig.sh
17212 if test "$with_tk" = yes; then
17213 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17214 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17215 # Let user override test
17216 if test -z "$TK_CONFIG_SH"; then
17217 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17219 set X $pgac_test_dirs; shift
17220 if test $# -eq 0; then
17221 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17222 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17223 { (exit 1); exit 1; }; }
17224 set X `echo 'puts $auto_path' | $TCLSH`; shift
17228 if test -r "$pgac_dir/tkConfig.sh"; then
17229 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17235 if test -z "$TK_CONFIG_SH"; then
17236 echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6
17238 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17239 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17240 { (exit 1); exit 1; }; }
17242 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17243 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17249 eval TK_LIBS=\"$TK_LIBS\"
17250 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17251 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17257 # Check for DocBook and tools
17259 for ac_prog in onsgmls nsgmls
17261 # Extract the first word of "$ac_prog", so it can be a program name with args.
17262 set dummy $ac_prog; ac_word=$2
17263 echo "$as_me:$LINENO: checking for $ac_word" >&5
17264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17265 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 if test -n "$NSGMLS"; then
17269 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17272 for as_dir in $PATH
17275 test -z "$as_dir" && as_dir=.
17276 for ac_exec_ext in '' $ac_executable_extensions; do
17277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17278 ac_cv_prog_NSGMLS="$ac_prog"
17279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17287 NSGMLS=$ac_cv_prog_NSGMLS
17288 if test -n "$NSGMLS"; then
17289 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17290 echo "${ECHO_T}$NSGMLS" >&6
17292 echo "$as_me:$LINENO: result: no" >&5
17293 echo "${ECHO_T}no" >&6
17296 test -n "$NSGMLS" && break
17299 for ac_prog in openjade jade
17301 # Extract the first word of "$ac_prog", so it can be a program name with args.
17302 set dummy $ac_prog; ac_word=$2
17303 echo "$as_me:$LINENO: checking for $ac_word" >&5
17304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17305 if test "${ac_cv_prog_JADE+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 if test -n "$JADE"; then
17309 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17312 for as_dir in $PATH
17315 test -z "$as_dir" && as_dir=.
17316 for ac_exec_ext in '' $ac_executable_extensions; do
17317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17318 ac_cv_prog_JADE="$ac_prog"
17319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17327 JADE=$ac_cv_prog_JADE
17328 if test -n "$JADE"; then
17329 echo "$as_me:$LINENO: result: $JADE" >&5
17330 echo "${ECHO_T}$JADE" >&6
17332 echo "$as_me:$LINENO: result: no" >&5
17333 echo "${ECHO_T}no" >&6
17336 test -n "$JADE" && break
17340 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17341 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17342 if test "${pgac_cv_check_docbook+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.sgml <<EOF
17346 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17348 <title>test</title>
17350 <title>random</title>
17352 <title>testsect</title>
17359 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17360 if test $? -eq 0; then
17361 pgac_cv_check_docbook=yes
17363 pgac_cv_check_docbook=no
17365 rm -f conftest.sgml
17367 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17368 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17370 have_docbook=$pgac_cv_check_docbook
17373 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17374 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17375 if test "${pgac_cv_path_stylesheets+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 if test -n "$DOCBOOKSTYLE"; then
17379 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17381 for pgac_prefix in /usr /usr/local /opt; do
17382 for pgac_infix in share lib; do
17383 for pgac_postfix in \
17384 sgml/stylesheets/nwalsh-modular \
17385 sgml/stylesheets/docbook \
17386 sgml/docbook/dsssl/modular \
17387 sgml/docbook/stylesheet/dsssl/modular \
17388 sgml/docbook/dsssl-stylesheets
17390 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17391 if test -r "$pgac_candidate/html/docbook.dsl" \
17392 && test -r "$pgac_candidate/print/docbook.dsl"
17394 pgac_cv_path_stylesheets=$pgac_candidate
17403 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17405 if test -n "$DOCBOOKSTYLE"; then
17406 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17407 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17409 echo "$as_me:$LINENO: result: no" >&5
17410 echo "${ECHO_T}no" >&6
17412 if test -n "$DOCBOOKSTYLE"; then
17413 for ac_prog in collateindex.pl
17415 # Extract the first word of "$ac_prog", so it can be a program name with args.
17416 set dummy $ac_prog; ac_word=$2
17417 echo "$as_me:$LINENO: checking for $ac_word" >&5
17418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17419 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 case $COLLATEINDEX in
17424 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17428 for as_dir in $DOCBOOKSTYLE/bin $PATH
17431 test -z "$as_dir" && as_dir=.
17432 for ac_exec_ext in '' $ac_executable_extensions; do
17433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17434 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17444 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17446 if test -n "$COLLATEINDEX"; then
17447 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17448 echo "${ECHO_T}$COLLATEINDEX" >&6
17450 echo "$as_me:$LINENO: result: no" >&5
17451 echo "${ECHO_T}no" >&6
17454 test -n "$COLLATEINDEX" && break
17458 for ac_prog in collateindex.pl
17460 # Extract the first word of "$ac_prog", so it can be a program name with args.
17461 set dummy $ac_prog; ac_word=$2
17462 echo "$as_me:$LINENO: checking for $ac_word" >&5
17463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17464 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 case $COLLATEINDEX in
17469 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17473 for as_dir in $PATH
17476 test -z "$as_dir" && as_dir=.
17477 for ac_exec_ext in '' $ac_executable_extensions; do
17478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17479 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17489 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17491 if test -n "$COLLATEINDEX"; then
17492 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17493 echo "${ECHO_T}$COLLATEINDEX" >&6
17495 echo "$as_me:$LINENO: result: no" >&5
17496 echo "${ECHO_T}no" >&6
17499 test -n "$COLLATEINDEX" && break
17503 for ac_prog in sgmlspl
17505 # Extract the first word of "$ac_prog", so it can be a program name with args.
17506 set dummy $ac_prog; ac_word=$2
17507 echo "$as_me:$LINENO: checking for $ac_word" >&5
17508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17509 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 if test -n "$SGMLSPL"; then
17513 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17516 for as_dir in $PATH
17519 test -z "$as_dir" && as_dir=.
17520 for ac_exec_ext in '' $ac_executable_extensions; do
17521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17522 ac_cv_prog_SGMLSPL="$ac_prog"
17523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17531 SGMLSPL=$ac_cv_prog_SGMLSPL
17532 if test -n "$SGMLSPL"; then
17533 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17534 echo "${ECHO_T}$SGMLSPL" >&6
17536 echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6
17540 test -n "$SGMLSPL" && break
17545 # prepare build tree if outside source tree
17546 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17547 # Note 2: /bin/pwd might be better than shell's built-in at getting
17548 # a symlink-free name.
17549 if test "$no_create" != yes; then
17550 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17555 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17556 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17557 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17558 || { { echo "$as_me:$LINENO: error: failed" >&5
17559 echo "$as_me: error: failed" >&2;}
17560 { (exit 1); exit 1; }; }
17561 echo "$as_me:$LINENO: result: done" >&5
17562 echo "${ECHO_T}done" >&6
17567 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17570 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}"
17573 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17576 cat >confcache <<\_ACEOF
17577 # This file is a shell script that caches the results of configure
17578 # tests run on this system so they can be shared between configure
17579 # scripts and configure runs, see configure's option --config-cache.
17580 # It is not useful on other systems. If it contains results you don't
17581 # want to keep, you may remove or edit it.
17583 # config.status only pays attention to the cache file if you give it
17584 # the --recheck option to rerun configure.
17586 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17587 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17588 # following values.
17592 # The following way of writing the cache mishandles newlines in values,
17593 # but we know of no workaround that is simple, portable, and efficient.
17594 # So, don't put newlines in cache variables' values.
17595 # Ultrix sh set writes to stderr and can't be redirected directly,
17596 # and sets the high bit in the cache file unless we assign to the vars.
17599 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17601 # `set' does not quote correctly, so add quotes (double-quote
17602 # substitution turns \\\\ into \\, and sed turns \\ into \).
17605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17608 # `set' quotes correctly as required by POSIX, so do not add quotes.
17610 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17619 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17621 if cmp -s $cache_file confcache; then :; else
17622 if test -w $cache_file; then
17623 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17624 cat confcache >$cache_file
17626 echo "not updating unwritable cache $cache_file"
17631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17632 # Let make expand exec_prefix.
17633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17635 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17636 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17637 # trailing colons and then remove the whole line if VPATH becomes empty
17638 # (actually we leave an empty line to preserve line numbers).
17639 if test "x$srcdir" = x.; then
17640 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17641 s/:*\$(srcdir):*/:/;
17642 s/:*\${srcdir}:*/:/;
17644 s/^\([^=]*=[ ]*\):*/\1/;
17650 DEFS=-DHAVE_CONFIG_H
17653 : ${CONFIG_STATUS=./config.status}
17654 ac_clean_files_save=$ac_clean_files
17655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17656 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17657 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17658 cat >$CONFIG_STATUS <<_ACEOF
17660 # Generated by $as_me.
17661 # Run this file to recreate the current configuration.
17662 # Compiler output produced by configure, useful for debugging
17663 # configure, is in config.log if it exists.
17666 SHELL=\${CONFIG_SHELL-$SHELL}
17669 cat >>$CONFIG_STATUS <<\_ACEOF
17671 ## --------------------- ##
17672 ## M4sh Initialization. ##
17673 ## --------------------- ##
17675 # Be Bourne compatible
17676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17679 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17684 # Support unset when possible.
17685 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17691 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17692 { $as_unset LANG || test "${LANG+set}" != set; } ||
17693 { LANG=C; export LANG; }
17694 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17695 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17696 { LC_ALL=C; export LC_ALL; }
17697 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17698 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17699 { LC_TIME=C; export LC_TIME; }
17700 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17701 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17702 { LC_CTYPE=C; export LC_CTYPE; }
17703 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17704 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17705 { LANGUAGE=C; export LANGUAGE; }
17706 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17707 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17708 { LC_COLLATE=C; export LC_COLLATE; }
17709 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17710 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17711 { LC_NUMERIC=C; export LC_NUMERIC; }
17712 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17713 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17714 { LC_MESSAGES=C; export LC_MESSAGES; }
17717 # Name of the executable.
17718 as_me=`(basename "$0") 2>/dev/null ||
17719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17720 X"$0" : 'X\(//\)$' \| \
17721 X"$0" : 'X\(/\)$' \| \
17722 . : '\(.\)' 2>/dev/null ||
17724 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17725 /^X\/\(\/\/\)$/{ s//\1/; q; }
17726 /^X\/\(\/\).*/{ s//\1/; q; }
17729 # PATH needs CR, and LINENO needs CR and PATH.
17730 # Avoid depending upon Character Ranges.
17731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17734 as_cr_digits='0123456789'
17735 as_cr_alnum=$as_cr_Letters$as_cr_digits
17737 # The user is always right.
17738 if test "${PATH_SEPARATOR+set}" != set; then
17739 echo "#! /bin/sh" >conftest.sh
17740 echo "exit 0" >>conftest.sh
17741 chmod +x conftest.sh
17742 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17751 as_lineno_1=$LINENO
17752 as_lineno_2=$LINENO
17753 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17754 test "x$as_lineno_1" != "x$as_lineno_2" &&
17755 test "x$as_lineno_3" = "x$as_lineno_2" || {
17756 # Find who we are. Look in the path if we contain no path at all
17759 *[\\/]* ) as_myself=$0 ;;
17760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17761 for as_dir in $PATH
17764 test -z "$as_dir" && as_dir=.
17765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17770 # We did not find ourselves, most probably we were run as `sh COMMAND'
17771 # in which case we are not to be found in the path.
17772 if test "x$as_myself" = x; then
17775 if test ! -f "$as_myself"; then
17776 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17777 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17778 { (exit 1); exit 1; }; }
17780 case $CONFIG_SHELL in
17782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17783 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17786 test -z "$as_dir" && as_dir=.
17787 for as_base in sh bash ksh sh5; do
17790 if ("$as_dir/$as_base" -c '
17791 as_lineno_1=$LINENO
17792 as_lineno_2=$LINENO
17793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17794 test "x$as_lineno_1" != "x$as_lineno_2" &&
17795 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17796 CONFIG_SHELL=$as_dir/$as_base
17797 export CONFIG_SHELL
17798 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17806 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17807 # uniformly replaced by the line number. The first 'sed' inserts a
17808 # line-number line before each line; the second 'sed' does the real
17809 # work. The second script uses 'N' to pair each line-number line
17810 # with the numbered line, and appends trailing '-' during
17811 # substitution so that $LINENO is not a special case at line end.
17812 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17813 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17814 sed '=' <$as_myself |
17819 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17822 s,^['$as_cr_digits']*\n,,
17823 ' >$as_me.lineno &&
17824 chmod +x $as_me.lineno ||
17825 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17826 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17827 { (exit 1); exit 1; }; }
17829 # Don't try to exec as it changes $[0], causing all sort of problems
17830 # (the dirname of $[0] is not the place where we might find the
17831 # original and so on. Autoconf is especially sensible to this).
17833 # Exit status is that of the last command.
17838 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17839 *c*,-n*) ECHO_N= ECHO_C='
17841 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17842 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17845 if expr a : '\(a\)' >/dev/null 2>&1; then
17851 rm -f conf$$ conf$$.exe conf$$.file
17853 if ln -s conf$$.file conf$$ 2>/dev/null; then
17854 # We could just check for DJGPP; but this test a) works b) is more generic
17855 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17856 if test -f conf$$.exe; then
17857 # Don't use ln at all; we don't have any links
17862 elif ln conf$$.file conf$$ 2>/dev/null; then
17867 rm -f conf$$ conf$$.exe conf$$.file
17869 as_executable_p="test -f"
17871 # Sed expression to map a string onto a valid CPP name.
17872 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17874 # Sed expression to map a string onto a valid variable name.
17875 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17879 # We need space, tab and new line, in precisely that order.
17885 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17889 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17890 # report actual input values of CONFIG_FILES etc. instead of their
17891 # values after options handling. Logging --version etc. is OK.
17895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17896 ## Running $as_me. ##
17901 This file was extended by PostgreSQL $as_me 7.4beta3, which was
17902 generated by GNU Autoconf 2.53. Invocation command line was
17904 CONFIG_FILES = $CONFIG_FILES
17905 CONFIG_HEADERS = $CONFIG_HEADERS
17906 CONFIG_LINKS = $CONFIG_LINKS
17907 CONFIG_COMMANDS = $CONFIG_COMMANDS
17911 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17915 # Files that config.status was made for.
17916 if test -n "$ac_config_files"; then
17917 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17920 if test -n "$ac_config_headers"; then
17921 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17924 if test -n "$ac_config_links"; then
17925 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17928 if test -n "$ac_config_commands"; then
17929 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17932 cat >>$CONFIG_STATUS <<\_ACEOF
17935 \`$as_me' instantiates files from templates according to the
17936 current configuration.
17938 Usage: $0 [OPTIONS] [FILE]...
17940 -h, --help print this help, then exit
17941 -V, --version print version number, then exit
17942 -d, --debug don't remove temporary files
17943 --recheck update $as_me by reconfiguring in the same conditions
17944 --file=FILE[:TEMPLATE]
17945 instantiate the configuration file FILE
17946 --header=FILE[:TEMPLATE]
17947 instantiate the configuration header FILE
17949 Configuration files:
17952 Configuration headers:
17955 Configuration links:
17958 Report bugs to <bug-autoconf@gnu.org>."
17961 cat >>$CONFIG_STATUS <<_ACEOF
17963 PostgreSQL config.status 7.4beta3
17964 configured by $0, generated by GNU Autoconf 2.53,
17965 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17967 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17968 Free Software Foundation, Inc.
17969 This config.status script is free software; the Free Software Foundation
17970 gives unlimited permission to copy, distribute and modify it."
17974 cat >>$CONFIG_STATUS <<\_ACEOF
17975 # If no file are specified by the user, then we need to provide default
17976 # value. By we need to know if files were specified by the user.
17982 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17983 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17985 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17989 *) # This is not an option, so the user has probably given explicit
17991 ac_need_defaults=false;;
17995 # Handling of the options.
17997 cat >>$CONFIG_STATUS <<_ACEOF
17998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17999 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18000 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18002 cat >>$CONFIG_STATUS <<\_ACEOF
18003 --version | --vers* | -V )
18004 echo "$ac_cs_version"; exit 0 ;;
18006 # Conflict between --help and --header
18007 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18008 Try \`$0 --help' for more information." >&5
18009 echo "$as_me: error: ambiguous option: $1
18010 Try \`$0 --help' for more information." >&2;}
18011 { (exit 1); exit 1; }; };;
18012 --help | --hel | -h )
18013 echo "$ac_cs_usage"; exit 0 ;;
18014 --debug | --d* | -d )
18016 --file | --fil | --fi | --f )
18018 CONFIG_FILES="$CONFIG_FILES $1"
18019 ac_need_defaults=false;;
18020 --header | --heade | --head | --hea )
18022 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18023 ac_need_defaults=false;;
18025 # This is an error.
18026 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18027 Try \`$0 --help' for more information." >&5
18028 echo "$as_me: error: unrecognized option: $1
18029 Try \`$0 --help' for more information." >&2;}
18030 { (exit 1); exit 1; }; } ;;
18032 *) ac_config_targets="$ac_config_targets $1" ;;
18044 cat >>$CONFIG_STATUS <<\_ACEOF
18045 for ac_config_target in $ac_config_targets
18047 case "$ac_config_target" in
18048 # Handling of arguments.
18049 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18050 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18051 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18052 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18053 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18054 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18055 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18056 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18057 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18058 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18059 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18060 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18061 { (exit 1); exit 1; }; };;
18065 # If the user did not use the arguments to specify the items to instantiate,
18066 # then the envvar interface is used. Set only those that are not.
18067 # We use the long form for the default assignment because of an extremely
18068 # bizarre bug on SunOS 4.1.3.
18069 if $ac_need_defaults; then
18070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18072 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18075 # Create a temporary directory, and hook for its removal unless debugging.
18078 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18079 trap '{ (exit 1); exit 1; }' 1 2 13 15
18082 # Create a (secure) tmp directory for tmp files.
18085 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18086 test -n "$tmp" && test -d "$tmp"
18089 tmp=$TMPDIR/cs$$-$RANDOM
18090 (umask 077 && mkdir $tmp)
18093 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18094 { (exit 1); exit 1; }
18099 cat >>$CONFIG_STATUS <<_ACEOF
18102 # CONFIG_FILES section.
18105 # No need to generate the scripts if there are no CONFIG_FILES.
18106 # This happens for instance when ./config.status config.h
18107 if test -n "\$CONFIG_FILES"; then
18108 # Protect against being on the right side of a sed subst in config.status.
18109 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18110 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18111 s,@SHELL@,$SHELL,;t t
18112 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18113 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18114 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18115 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18116 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18117 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18118 s,@exec_prefix@,$exec_prefix,;t t
18119 s,@prefix@,$prefix,;t t
18120 s,@program_transform_name@,$program_transform_name,;t t
18121 s,@bindir@,$bindir,;t t
18122 s,@sbindir@,$sbindir,;t t
18123 s,@libexecdir@,$libexecdir,;t t
18124 s,@datadir@,$datadir,;t t
18125 s,@sysconfdir@,$sysconfdir,;t t
18126 s,@sharedstatedir@,$sharedstatedir,;t t
18127 s,@localstatedir@,$localstatedir,;t t
18128 s,@libdir@,$libdir,;t t
18129 s,@includedir@,$includedir,;t t
18130 s,@oldincludedir@,$oldincludedir,;t t
18131 s,@infodir@,$infodir,;t t
18132 s,@mandir@,$mandir,;t t
18133 s,@build_alias@,$build_alias,;t t
18134 s,@host_alias@,$host_alias,;t t
18135 s,@target_alias@,$target_alias,;t t
18136 s,@DEFS@,$DEFS,;t t
18137 s,@ECHO_C@,$ECHO_C,;t t
18138 s,@ECHO_N@,$ECHO_N,;t t
18139 s,@ECHO_T@,$ECHO_T,;t t
18140 s,@LIBS@,$LIBS,;t t
18141 s,@docdir@,$docdir,;t t
18142 s,@configure_args@,$configure_args,;t t
18143 s,@build@,$build,;t t
18144 s,@build_cpu@,$build_cpu,;t t
18145 s,@build_vendor@,$build_vendor,;t t
18146 s,@build_os@,$build_os,;t t
18147 s,@host@,$host,;t t
18148 s,@host_cpu@,$host_cpu,;t t
18149 s,@host_vendor@,$host_vendor,;t t
18150 s,@host_os@,$host_os,;t t
18151 s,@PORTNAME@,$PORTNAME,;t t
18153 s,@enable_nls@,$enable_nls,;t t
18154 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18155 s,@default_port@,$default_port,;t t
18156 s,@enable_shared@,$enable_shared,;t t
18157 s,@enable_rpath@,$enable_rpath,;t t
18158 s,@enable_debug@,$enable_debug,;t t
18160 s,@CFLAGS@,$CFLAGS,;t t
18161 s,@LDFLAGS@,$LDFLAGS,;t t
18162 s,@CPPFLAGS@,$CPPFLAGS,;t t
18163 s,@ac_ct_CC@,$ac_ct_CC,;t t
18164 s,@EXEEXT@,$EXEEXT,;t t
18165 s,@OBJEXT@,$OBJEXT,;t t
18168 s,@autodepend@,$autodepend,;t t
18169 s,@INCLUDES@,$INCLUDES,;t t
18170 s,@enable_thread_safety@,$enable_thread_safety,;t t
18171 s,@with_tcl@,$with_tcl,;t t
18172 s,@with_tk@,$with_tk,;t t
18173 s,@with_perl@,$with_perl,;t t
18174 s,@with_python@,$with_python,;t t
18176 s,@with_java@,$with_java,;t t
18177 s,@with_krb4@,$with_krb4,;t t
18178 s,@with_krb5@,$with_krb5,;t t
18179 s,@krb_srvtab@,$krb_srvtab,;t t
18180 s,@with_pam@,$with_pam,;t t
18181 s,@with_rendezvous@,$with_rendezvous,;t t
18182 s,@with_openssl@,$with_openssl,;t t
18183 s,@ELF_SYS@,$ELF_SYS,;t t
18185 s,@FLEX@,$FLEX,;t t
18186 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18187 s,@LN_S@,$LN_S,;t t
18189 s,@with_gnu_ld@,$with_gnu_ld,;t t
18190 s,@ld_R_works@,$ld_R_works,;t t
18191 s,@RANLIB@,$RANLIB,;t t
18192 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18193 s,@LORDER@,$LORDER,;t t
18195 s,@STRIP@,$STRIP,;t t
18196 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18197 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18198 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18199 s,@YACC@,$YACC,;t t
18200 s,@YFLAGS@,$YFLAGS,;t t
18201 s,@PERL@,$PERL,;t t
18202 s,@perl_archlibexp@,$perl_archlibexp,;t t
18203 s,@perl_privlibexp@,$perl_privlibexp,;t t
18204 s,@perl_useshrplib@,$perl_useshrplib,;t t
18205 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18206 s,@PYTHON@,$PYTHON,;t t
18207 s,@python_prefix@,$python_prefix,;t t
18208 s,@python_execprefix@,$python_execprefix,;t t
18209 s,@python_configdir@,$python_configdir,;t t
18210 s,@python_includespec@,$python_includespec,;t t
18211 s,@python_libspec@,$python_libspec,;t t
18212 s,@LIBOBJS@,$LIBOBJS,;t t
18213 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18214 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18215 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18216 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18217 s,@MSGFMT@,$MSGFMT,;t t
18218 s,@MSGMERGE@,$MSGMERGE,;t t
18219 s,@XGETTEXT@,$XGETTEXT,;t t
18220 s,@localedir@,$localedir,;t t
18221 s,@TCLSH@,$TCLSH,;t t
18222 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18223 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18224 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18225 s,@TCL_LIBS@,$TCL_LIBS,;t t
18226 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18227 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18228 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18229 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18230 s,@TK_LIBS@,$TK_LIBS,;t t
18231 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18232 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18233 s,@NSGMLS@,$NSGMLS,;t t
18234 s,@JADE@,$JADE,;t t
18235 s,@have_docbook@,$have_docbook,;t t
18236 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18237 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18238 s,@SGMLSPL@,$SGMLSPL,;t t
18239 s,@vpath_build@,$vpath_build,;t t
18244 cat >>$CONFIG_STATUS <<\_ACEOF
18245 # Split the substitutions into bite-sized pieces for seds with
18246 # small command number limits, like on Digital OSF/1 and HP-UX.
18247 ac_max_sed_lines=48
18248 ac_sed_frag=1 # Number of current file.
18249 ac_beg=1 # First line for current file.
18250 ac_end=$ac_max_sed_lines # Line after last line for current file.
18253 while $ac_more_lines; do
18254 if test $ac_beg -gt 1; then
18255 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18257 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18259 if test ! -s $tmp/subs.frag; then
18260 ac_more_lines=false
18262 # The purpose of the label and of the branching condition is to
18263 # speed up the sed processing (if there are no `@' at all, there
18264 # is no need to browse any of the substitutions).
18265 # These are the two extra sed commands mentioned above.
18267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18268 if test -z "$ac_sed_cmds"; then
18269 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18271 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18273 ac_sed_frag=`expr $ac_sed_frag + 1`
18275 ac_end=`expr $ac_end + $ac_max_sed_lines`
18278 if test -z "$ac_sed_cmds"; then
18281 fi # test -n "$CONFIG_FILES"
18284 cat >>$CONFIG_STATUS <<\_ACEOF
18285 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18286 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18288 - | *:- | *:-:* ) # input from stdin
18290 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18292 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18294 * ) ac_file_in=$ac_file.in ;;
18297 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18298 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18300 X"$ac_file" : 'X\(//\)[^/]' \| \
18301 X"$ac_file" : 'X\(//\)$' \| \
18302 X"$ac_file" : 'X\(/\)' \| \
18303 . : '\(.\)' 2>/dev/null ||
18305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18307 /^X\(\/\/\)$/{ s//\1/; q; }
18308 /^X\(\/\).*/{ s//\1/; q; }
18310 { case "$ac_dir" in
18311 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18315 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18316 case $as_mkdir_dir in
18317 # Skip DOS drivespec
18318 ?:) as_incr_dir=$as_mkdir_dir ;;
18320 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18321 test -d "$as_incr_dir" ||
18322 mkdir "$as_incr_dir" ||
18323 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18324 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18325 { (exit 1); exit 1; }; }
18332 if test "$ac_dir" != .; then
18333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18334 # A "../" for each directory in $ac_dir_suffix.
18335 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18337 ac_dir_suffix= ac_top_builddir=
18341 .) # No --srcdir option. We are building in place.
18343 if test -z "$ac_top_builddir"; then
18346 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18348 [\\/]* | ?:[\\/]* ) # Absolute path.
18349 ac_srcdir=$srcdir$ac_dir_suffix;
18350 ac_top_srcdir=$srcdir ;;
18351 *) # Relative path.
18352 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18353 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18355 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18357 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18358 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18359 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18360 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18364 if test x"$ac_file" != x-; then
18365 { echo "$as_me:$LINENO: creating $ac_file" >&5
18366 echo "$as_me: creating $ac_file" >&6;}
18369 # Let's still pretend it is `configure' which instantiates (i.e., don't
18370 # use $as_me), people would be surprised to read:
18371 # /* config.h. Generated by config.status. */
18372 if test x"$ac_file" = x-; then
18375 configure_input="$ac_file. "
18377 configure_input=$configure_input"Generated from `echo $ac_file_in |
18378 sed 's,.*/,,'` by configure."
18380 # First look for the input files in the build tree, otherwise in the
18382 ac_file_inputs=`IFS=:
18383 for f in $ac_file_in; do
18385 -) echo $tmp/stdin ;;
18387 # Absolute (can't be DOS-style, as IFS=:)
18388 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18389 echo "$as_me: error: cannot find input file: $f" >&2;}
18390 { (exit 1); exit 1; }; }
18393 if test -f "$f"; then
18396 elif test -f "$srcdir/$f"; then
18401 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18402 echo "$as_me: error: cannot find input file: $f" >&2;}
18403 { (exit 1); exit 1; }; }
18406 done` || { (exit 1); exit 1; }
18408 cat >>$CONFIG_STATUS <<_ACEOF
18412 cat >>$CONFIG_STATUS <<\_ACEOF
18414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18415 s,@configure_input@,$configure_input,;t t
18416 s,@srcdir@,$ac_srcdir,;t t
18417 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18418 s,@top_srcdir@,$ac_top_srcdir,;t t
18419 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18420 s,@builddir@,$ac_builddir,;t t
18421 s,@abs_builddir@,$ac_abs_builddir,;t t
18422 s,@top_builddir@,$ac_top_builddir,;t t
18423 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18424 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18426 if test x"$ac_file" != x-; then
18427 mv $tmp/out $ac_file
18435 cat >>$CONFIG_STATUS <<\_ACEOF
18438 # CONFIG_HEADER section.
18441 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18442 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18444 # ac_d sets the value in "#define NAME VALUE" lines.
18445 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18446 ac_dB='[ ].*$,\1#\2'
18449 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18450 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18451 ac_uB='$,\1#\2define\3'
18455 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18458 - | *:- | *:-:* ) # input from stdin
18460 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18462 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18464 * ) ac_file_in=$ac_file.in ;;
18467 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18468 echo "$as_me: creating $ac_file" >&6;}
18470 # First look for the input files in the build tree, otherwise in the
18472 ac_file_inputs=`IFS=:
18473 for f in $ac_file_in; do
18475 -) echo $tmp/stdin ;;
18477 # Absolute (can't be DOS-style, as IFS=:)
18478 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18479 echo "$as_me: error: cannot find input file: $f" >&2;}
18480 { (exit 1); exit 1; }; }
18483 if test -f "$f"; then
18486 elif test -f "$srcdir/$f"; then
18491 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18492 echo "$as_me: error: cannot find input file: $f" >&2;}
18493 { (exit 1); exit 1; }; }
18496 done` || { (exit 1); exit 1; }
18497 # Remove the trailing spaces.
18498 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18502 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18503 # `conftest.undefs', that substitutes the proper values into
18504 # config.h.in to produce config.h. The first handles `#define'
18505 # templates, and the second `#undef' templates.
18506 # And first: Protect against being on the right side of a sed subst in
18507 # config.status. Protect against being in an unquoted here document
18508 # in config.status.
18509 rm -f conftest.defines conftest.undefs
18510 # Using a here document instead of a string reduces the quoting nightmare.
18511 # Putting comments in sed scripts is not portable.
18513 # `end' is used to avoid that the second main sed command (meant for
18514 # 0-ary CPP macros) applies to n-ary macro definitions.
18515 # See the Autoconf documentation for `clear'.
18516 cat >confdef2sed.sed <<\_ACEOF
18521 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18523 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18526 # If some macros were called several times there might be several times
18527 # the same #defines, which is useless. Nevertheless, we may not want to
18528 # sort them, since we want the *last* AC-DEFINE to be honored.
18529 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18530 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18531 rm -f confdef2sed.sed
18533 # This sed command replaces #undef with comments. This is necessary, for
18534 # example, in the case of _POSIX_SOURCE, which is predefined and required
18535 # on some systems where configure will not decide to define it.
18536 cat >>conftest.undefs <<\_ACEOF
18537 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18540 # Break up conftest.defines because some shells have a limit on the size
18541 # of here documents, and old seds have small limits too (100 cmds).
18542 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18543 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18544 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18545 echo ' :' >>$CONFIG_STATUS
18546 rm -f conftest.tail
18547 while grep . conftest.defines >/dev/null
18549 # Write a limited-size here document to $tmp/defines.sed.
18550 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18551 # Speed up: don't consider the non `#define' lines.
18552 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18553 # Work around the forget-to-reset-the-flag bug.
18554 echo 't clr' >>$CONFIG_STATUS
18555 echo ': clr' >>$CONFIG_STATUS
18556 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18558 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18560 mv $tmp/out $tmp/in
18562 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18563 rm -f conftest.defines
18564 mv conftest.tail conftest.defines
18566 rm -f conftest.defines
18567 echo ' fi # egrep' >>$CONFIG_STATUS
18568 echo >>$CONFIG_STATUS
18570 # Break up conftest.undefs because some shells have a limit on the size
18571 # of here documents, and old seds have small limits too (100 cmds).
18572 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18573 rm -f conftest.tail
18574 while grep . conftest.undefs >/dev/null
18576 # Write a limited-size here document to $tmp/undefs.sed.
18577 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18578 # Speed up: don't consider the non `#undef'
18579 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18580 # Work around the forget-to-reset-the-flag bug.
18581 echo 't clr' >>$CONFIG_STATUS
18582 echo ': clr' >>$CONFIG_STATUS
18583 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18585 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18587 mv $tmp/out $tmp/in
18589 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18590 rm -f conftest.undefs
18591 mv conftest.tail conftest.undefs
18593 rm -f conftest.undefs
18595 cat >>$CONFIG_STATUS <<\_ACEOF
18596 # Let's still pretend it is `configure' which instantiates (i.e., don't
18597 # use $as_me), people would be surprised to read:
18598 # /* config.h. Generated by config.status. */
18599 if test x"$ac_file" = x-; then
18600 echo "/* Generated by configure. */" >$tmp/config.h
18602 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18604 cat $tmp/in >>$tmp/config.h
18606 if test x"$ac_file" != x-; then
18607 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18609 echo "$as_me: $ac_file is unchanged" >&6;}
18611 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18613 X"$ac_file" : 'X\(//\)[^/]' \| \
18614 X"$ac_file" : 'X\(//\)$' \| \
18615 X"$ac_file" : 'X\(/\)' \| \
18616 . : '\(.\)' 2>/dev/null ||
18618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18620 /^X\(\/\/\)$/{ s//\1/; q; }
18621 /^X\(\/\).*/{ s//\1/; q; }
18623 { case "$ac_dir" in
18624 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18628 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18629 case $as_mkdir_dir in
18630 # Skip DOS drivespec
18631 ?:) as_incr_dir=$as_mkdir_dir ;;
18633 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18634 test -d "$as_incr_dir" ||
18635 mkdir "$as_incr_dir" ||
18636 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18637 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18638 { (exit 1); exit 1; }; }
18644 mv $tmp/config.h $ac_file
18648 rm -f $tmp/config.h
18650 # Run the commands associated with the file.
18652 src/include/pg_config.h )
18653 # Update timestamp for pg_config.h (see Makefile.global)
18654 echo >src/include/stamp-h
18659 cat >>$CONFIG_STATUS <<\_ACEOF
18662 # CONFIG_LINKS section.
18665 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18666 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18667 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18669 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18670 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18672 if test ! -r $srcdir/$ac_source; then
18673 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18674 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18675 { (exit 1); exit 1; }; }
18679 # Make relative symlinks.
18680 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18681 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18682 X"$ac_dest" : 'X\(//\)[^/]' \| \
18683 X"$ac_dest" : 'X\(//\)$' \| \
18684 X"$ac_dest" : 'X\(/\)' \| \
18685 . : '\(.\)' 2>/dev/null ||
18687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18689 /^X\(\/\/\)$/{ s//\1/; q; }
18690 /^X\(\/\).*/{ s//\1/; q; }
18692 { case "$ac_dest_dir" in
18693 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18696 as_dummy="$ac_dest_dir"
18697 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18698 case $as_mkdir_dir in
18699 # Skip DOS drivespec
18700 ?:) as_incr_dir=$as_mkdir_dir ;;
18702 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18703 test -d "$as_incr_dir" ||
18704 mkdir "$as_incr_dir" ||
18705 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18706 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18707 { (exit 1); exit 1; }; }
18714 if test "$ac_dest_dir" != .; then
18715 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18716 # A "../" for each directory in $ac_dir_suffix.
18717 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18719 ac_dir_suffix= ac_top_builddir=
18723 .) # No --srcdir option. We are building in place.
18725 if test -z "$ac_top_builddir"; then
18728 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18730 [\\/]* | ?:[\\/]* ) # Absolute path.
18731 ac_srcdir=$srcdir$ac_dir_suffix;
18732 ac_top_srcdir=$srcdir ;;
18733 *) # Relative path.
18734 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18735 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18737 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18739 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18740 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18741 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18742 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18746 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18747 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18750 # Make a symlink if possible; otherwise try a hard link.
18751 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18752 ln $srcdir/$ac_source $ac_dest ||
18753 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18754 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18755 { (exit 1); exit 1; }; }
18759 cat >>$CONFIG_STATUS <<\_ACEOF
18761 { (exit 0); exit 0; }
18763 chmod +x $CONFIG_STATUS
18764 ac_clean_files=$ac_clean_files_save
18767 # configure is writing to config.log, and then calls config.status.
18768 # config.status does its own redirection, appending to config.log.
18769 # Unfortunately, on DOS this fails, as config.log is still kept open
18770 # by configure, so config.status won't be able to write to it; its
18771 # output is simply discarded. So we exec the FD to /dev/null,
18772 # effectively closing config.log, so it can be properly (re)opened and
18773 # appended to by config.status. When coming back to configure, we
18774 # need to make the FD available again.
18775 if test "$no_create" != yes; then
18778 $SHELL $CONFIG_STATUS || ac_cs_success=false
18780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18781 # would make configure fail if this is the last instruction.
18782 $ac_cs_success || { (exit 1); exit 1; }