2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4beta2.
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.4beta2'
262 PACKAGE_STRING='PostgreSQL 7.4beta2'
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.4beta2 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.4beta2:";;
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 --enable-debug build with debugging symbols (-g)
845 --enable-depend turn on automatic dependency tracking
846 --enable-cassert enable assertion checks (for debugging)
847 --enable-thread-safety make client libraries thread-safe
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-tcl build Tcl and Tk interfaces
859 --without-tk do not build Tk interfaces if Tcl is enabled
860 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
861 --with-tkconfig=DIR tkConfig.sh is in DIR
862 --with-perl build Perl modules (PL/Perl)
863 --with-python build Python modules (PL/Python)
864 --with-java build JDBC interface and Java tools
865 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
866 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
867 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
868 --with-pam build with PAM support
869 --with-rendezvous build with Rendezvous support
870 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.4beta2
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2003 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.4beta2, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=cygwin ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 mingw*) template=win32 ;;
1398 netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400 openbsd*) template=openbsd ;;
1401 osf*) template=osf ;;
1402 qnx*) template=qnx4 ;;
1403 sco*) template=sco ;;
1404 solaris*) template=solaris ;;
1405 sunos*) template=sunos4 ;;
1407 case $host_vendor in
1408 univel) template=univel ;;
1410 sysv4*) template=svr4 ;;
1411 sysv5*) template=unixware ;;
1412 ultrix*) template=ultrix4 ;;
1415 if test x"$template" = x"" ; then
1416 { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this. Include the above 'checking host system type...'
1425 *******************************************************************
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this. Include the above 'checking host system type...'
1436 *******************************************************************
1438 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1451 # Pick right test-and-set (TAS) code. Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1455 hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;;
1456 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1458 *) need_tas=no; tas_file=dummy.s ;;
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1463 if test "$need_tas" = yes ; then
1471 ## Command line options
1476 # Add non-standard directories to the include path
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483 withval="$with_includes"
1487 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489 { (exit 1); exit 1; }; }
1492 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494 { (exit 1); exit 1; }; }
1506 # Add non-standard directories to the library search path
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513 withval="$with_libraries"
1517 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519 { (exit 1); exit 1; }; }
1522 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524 { (exit 1); exit 1; }; }
1527 LIBRARY_DIRS=$withval
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539 withval="$with_libs"
1543 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545 { (exit 1); exit 1; }; }
1548 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550 { (exit 1); exit 1; }; }
1553 LIBRARY_DIRS=$withval
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570 enableval="$enable_integer_datetimes"
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1584 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586 { (exit 1); exit 1; }; }
1591 enable_integer_datetimes=no
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1602 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1603 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1606 # Check whether --enable-nls or --disable-nls was given.
1607 if test "${enable_nls+set}" = set; then
1608 enableval="$enable_nls"
1619 WANTED_LANGUAGES=$enableval
1628 if test "$enable_nls" = yes; then
1630 cat >>confdefs.h <<\_ACEOF
1631 #define ENABLE_NLS 1
1636 echo "$as_me:$LINENO: result: $enable_nls" >&5
1637 echo "${ECHO_T}$enable_nls" >&6
1642 # Default port number (--with-pgport), default 5432
1644 echo "$as_me:$LINENO: checking for default port number" >&5
1645 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1649 # Check whether --with-pgport or --without-pgport was given.
1650 if test "${with_pgport+set}" = set; then
1651 withval="$with_pgport"
1655 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1656 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1657 { (exit 1); exit 1; }; }
1660 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1661 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1662 { (exit 1); exit 1; }; }
1665 default_port=$withval
1673 echo "$as_me:$LINENO: result: $default_port" >&5
1674 echo "${ECHO_T}$default_port" >&6
1675 # Need both of these because some places want an integer and some a string
1677 cat >>confdefs.h <<_ACEOF
1678 #define DEF_PGPORT ${default_port}
1682 cat >>confdefs.h <<_ACEOF
1683 #define DEF_PGPORT_STR "${default_port}"
1689 # Option to disable shared libraries
1693 # Check whether --enable-shared or --disable-shared was given.
1694 if test "${enable_shared+set}" = set; then
1695 enableval="$enable_shared"
1705 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1706 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1707 { (exit 1); exit 1; }; }
1719 # '-rpath'-like feature can be disabled
1723 # Check whether --enable-rpath or --disable-rpath was given.
1724 if test "${enable_rpath+set}" = set; then
1725 enableval="$enable_rpath"
1735 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1736 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1737 { (exit 1); exit 1; }; }
1750 # --enable-debug adds -g to compiler flags
1754 # Check whether --enable-debug or --disable-debug was given.
1755 if test "${enable_debug+set}" = set; then
1756 enableval="$enable_debug"
1766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1767 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1768 { (exit 1); exit 1; }; }
1783 # For historical reasons you can also use --with-CC to specify the C compiler
1784 # to use, although the standard way to do this is to set the CC environment
1789 # Check whether --with-CC or --without-CC was given.
1790 if test "${with_CC+set}" = set; then
1795 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1796 echo "$as_me: error: argument required for --with-CC option" >&2;}
1797 { (exit 1); exit 1; }; }
1800 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1801 echo "$as_me: error: argument required for --with-CC option" >&2;}
1802 { (exit 1); exit 1; }; }
1813 aix) pgac_cc_list="gcc xlc";;
1814 irix) pgac_cc_list="cc";; # no gcc
1815 *) pgac_cc_list="gcc cc";;
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824 for ac_prog in $pgac_cc_list
1826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$CC" && break
1864 if test -z "$CC"; then
1866 for ac_prog in $pgac_cc_list
1868 # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="$ac_prog"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1903 test -n "$ac_ct_CC" && break
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1912 { (exit 1); exit 1; }; }
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1938 #ifdef F77_DUMMY_MAIN
1942 int F77_DUMMY_MAIN() { return 1; }
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1957 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1958 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1973 ls a.out conftest 2>/dev/null;
1974 ls a.* conftest.* 2>/dev/null`; do
1976 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1977 a.out ) # We found the default executable, but exeext='' is most
1980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1991 echo "$as_me: error: C compiler cannot create executables" >&2;}
1992 { (exit 77); exit 77; }; }
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1999 # Check the compiler produces executables we can run. If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2014 if test "$cross_compiling" = maybe; then
2017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'." >&5
2019 echo "$as_me: error: cannot run C compiled programs.
2020 If you meant to cross compile, use \`--host'." >&2;}
2021 { (exit 1); exit 1; }; }
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2028 rm -f a.out a.exe conftest$ac_cv_exeext
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run. If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040 (eval $ac_link) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2048 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2050 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2079 #ifdef F77_DUMMY_MAIN
2083 int F77_DUMMY_MAIN() { return 1; }
2093 rm -f conftest.o conftest.obj
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; then
2099 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2129 #ifdef F77_DUMMY_MAIN
2133 int F77_DUMMY_MAIN() { return 1; }
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2183 #ifdef F77_DUMMY_MAIN
2187 int F77_DUMMY_MAIN() { return 1; }
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2219 if test "$ac_test_CFLAGS" = set; then
2220 CFLAGS=$ac_save_CFLAGS
2221 elif test $ac_cv_prog_cc_g = yes; then
2222 if test "$GCC" = yes; then
2228 if test "$GCC" = yes; then
2234 # Some people use a C++ compiler to compile C. Since we use `exit',
2235 # in C++ we need to declare it. In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 for ac_declaration in \
2257 '#include <stdlib.h>' \
2258 'extern "C" void std::exit (int) throw (); using std::exit;' \
2259 'extern "C" void std::exit (int); using std::exit;' \
2260 'extern "C" void exit (int) throw ();' \
2261 'extern "C" void exit (int);' \
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2269 #ifdef F77_DUMMY_MAIN
2273 int F77_DUMMY_MAIN() { return 1; }
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2301 rm -f conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2306 #ifdef F77_DUMMY_MAIN
2310 int F77_DUMMY_MAIN() { return 1; }
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 . "$srcdir/src/template/$template" || exit
2363 # adjust CFLAGS per template
2364 if test "$ac_env_CFLAGS_set" = set; then
2365 CFLAGS=$ac_env_CFLAGS_value
2367 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2370 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2371 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2373 # We already have this in Makefile.win32, but configure needs it too
2374 if test "$PORTNAME" = "win32"
2376 CPPFLAGS="$CPPFLAGS -Isrc/include/port/win32"
2379 # Check if the compiler still works with the template settings
2380 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2381 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2383 cat >conftest.$ac_ext <<_ACEOF
2384 #line $LINENO "configure"
2385 #include "confdefs.h"
2387 #ifdef F77_DUMMY_MAIN
2391 int F77_DUMMY_MAIN() { return 1; }
2401 rm -f conftest.$ac_objext conftest$ac_exeext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2403 (eval $ac_link) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 echo "$as_me:$LINENO: result: yes" >&5
2414 echo "${ECHO_T}yes" >&6
2416 echo "$as_me: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2420 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2421 echo "$as_me: error: cannot proceed" >&2;}
2422 { (exit 1); exit 1; }; }
2424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2426 # Defend against gcc -ffastmath
2427 if test "$GCC" = yes; then
2428 cat >conftest.$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2432 #ifdef F77_DUMMY_MAIN
2436 int F77_DUMMY_MAIN() { return 1; }
2441 #ifdef __FAST_MATH__
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2462 echo "$as_me: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2465 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2466 { (exit 1); exit 1; }; }
2468 rm -f conftest.$ac_objext conftest.$ac_ext
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2477 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2478 # On Suns, sometimes $CPP names a directory.
2479 if test -n "$CPP" && test -d "$CPP"; then
2482 if test -z "$CPP"; then
2483 if test "${ac_cv_prog_CPP+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 # Double quotes because CPP needs to be expanded
2487 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2490 for ac_c_preproc_warn_flag in '' yes
2492 # Use a header file that comes with gcc, so configuring glibc
2493 # with a fresh cross-compiler works.
2494 # On the NeXT, cc -E runs the code through the compiler's parser,
2495 # not just through cpp. "Syntax error" is here to catch this case.
2496 cat >conftest.$ac_ext <<_ACEOF
2497 #line $LINENO "configure"
2498 #include "confdefs.h"
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2505 egrep -v '^ *\+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2518 if test -z "$ac_cpp_err"; then
2521 echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 # Broken: fails on valid input.
2526 rm -f conftest.err conftest.$ac_ext
2528 # OK, works on sane cases. Now check whether non-existent headers
2529 # can be detected and how.
2530 cat >conftest.$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 #include "confdefs.h"
2533 #include <ac_nonexistent.h>
2535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2538 egrep -v '^ *\+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } >/dev/null; then
2543 if test -s conftest.err; then
2544 ac_cpp_err=$ac_c_preproc_warn_flag
2551 if test -z "$ac_cpp_err"; then
2552 # Broken: success on invalid input.
2555 echo "$as_me: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2557 # Passes both tests.
2561 rm -f conftest.err conftest.$ac_ext
2564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565 rm -f conftest.err conftest.$ac_ext
2566 if $ac_preproc_ok; then
2578 echo "$as_me:$LINENO: result: $CPP" >&5
2579 echo "${ECHO_T}$CPP" >&6
2581 for ac_c_preproc_warn_flag in '' yes
2583 # Use a header file that comes with gcc, so configuring glibc
2584 # with a fresh cross-compiler works.
2585 # On the NeXT, cc -E runs the code through the compiler's parser,
2586 # not just through cpp. "Syntax error" is here to catch this case.
2587 cat >conftest.$ac_ext <<_ACEOF
2588 #line $LINENO "configure"
2589 #include "confdefs.h"
2593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2596 egrep -v '^ *\+' conftest.er1 >conftest.err
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } >/dev/null; then
2601 if test -s conftest.err; then
2602 ac_cpp_err=$ac_c_preproc_warn_flag
2609 if test -z "$ac_cpp_err"; then
2612 echo "$as_me: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2614 # Broken: fails on valid input.
2617 rm -f conftest.err conftest.$ac_ext
2619 # OK, works on sane cases. Now check whether non-existent headers
2620 # can be detected and how.
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 #include "confdefs.h"
2624 #include <ac_nonexistent.h>
2626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2629 egrep -v '^ *\+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } >/dev/null; then
2634 if test -s conftest.err; then
2635 ac_cpp_err=$ac_c_preproc_warn_flag
2642 if test -z "$ac_cpp_err"; then
2643 # Broken: success on invalid input.
2646 echo "$as_me: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 # Passes both tests.
2652 rm -f conftest.err conftest.$ac_ext
2655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2656 rm -f conftest.err conftest.$ac_ext
2657 if $ac_preproc_ok; then
2660 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2661 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2662 { (exit 1); exit 1; }; }
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 # Create compiler version string
2674 if test x"$GCC" = x"yes" ; then
2675 cc_string="GCC `${CC} --version | sed q`"
2680 cat >>confdefs.h <<_ACEOF
2681 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2687 # Automatic dependency tracking
2691 # Check whether --enable-depend or --disable-depend was given.
2692 if test "${enable_depend+set}" = set; then
2693 enableval="$enable_depend"
2703 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2704 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2705 { (exit 1); exit 1; }; }
2718 # Enable assert checks
2722 # Check whether --enable-cassert or --disable-cassert was given.
2723 if test "${enable_cassert+set}" = set; then
2724 enableval="$enable_cassert"
2729 cat >>confdefs.h <<\_ACEOF
2730 #define USE_ASSERT_CHECKING 1
2738 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2739 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2740 { (exit 1); exit 1; }; }
2752 # Include directories
2756 # SRCH_INC comes from the template file
2757 for dir in $with_includes $SRCH_INC; do
2758 if test -d "$dir"; then
2759 INCLUDES="$INCLUDES -I$dir"
2761 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2762 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2770 # Library directories
2774 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2775 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2776 if test -d "$dir"; then
2777 LIBDIRS="$LIBDIRS -L$dir"
2779 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2780 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2786 # Enable thread-safe client libraries
2788 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2789 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2792 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2793 if test "${enable_thread_safety+set}" = set; then
2794 enableval="$enable_thread_safety"
2799 cat >>confdefs.h <<\_ACEOF
2800 #define USE_THREADS 1
2808 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2809 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2810 { (exit 1); exit 1; }; }
2815 enable_thread_safety=no
2819 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2820 echo "${ECHO_T}$enable_thread_safety" >&6
2826 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2827 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2831 # Check whether --with-tcl or --without-tcl was given.
2832 if test "${with_tcl+set}" = set; then
2843 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2844 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2845 { (exit 1); exit 1; }; }
2854 echo "$as_me:$LINENO: result: $with_tcl" >&5
2855 echo "${ECHO_T}$with_tcl" >&6
2858 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2859 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2860 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2861 if test "$with_tcl" = yes; then
2865 # Check whether --with-tk or --without-tk was given.
2866 if test "${with_tk+set}" = set; then
2877 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2878 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2879 { (exit 1); exit 1; }; }
2891 echo "$as_me:$LINENO: result: $with_tk" >&5
2892 echo "${ECHO_T}$with_tk" >&6
2896 # We see if the path to the Tcl/Tk configuration scripts is specified.
2897 # This will override the use of tclsh to find the paths to search.
2902 # Check whether --with-tclconfig or --without-tclconfig was given.
2903 if test "${with_tclconfig+set}" = set; then
2904 withval="$with_tclconfig"
2908 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2909 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2910 { (exit 1); exit 1; }; }
2913 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2914 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2915 { (exit 1); exit 1; }; }
2925 # We see if the path to the Tk configuration scripts is specified.
2926 # This will override the use of tclsh to find the paths to search.
2931 # Check whether --with-tkconfig or --without-tkconfig was given.
2932 if test "${with_tkconfig+set}" = set; then
2933 withval="$with_tkconfig"
2937 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2938 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2939 { (exit 1); exit 1; }; }
2942 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2943 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2944 { (exit 1); exit 1; }; }
2955 # Optionally build Perl modules (PL/Perl)
2957 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2958 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2962 # Check whether --with-perl or --without-perl was given.
2963 if test "${with_perl+set}" = set; then
2964 withval="$with_perl"
2974 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2975 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2976 { (exit 1); exit 1; }; }
2985 echo "$as_me:$LINENO: result: $with_perl" >&5
2986 echo "${ECHO_T}$with_perl" >&6
2990 # Optionally build Python modules (PL/Python)
2992 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2993 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2997 # Check whether --with-python or --without-python was given.
2998 if test "${with_python+set}" = set; then
2999 withval="$with_python"
3009 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3010 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3011 { (exit 1); exit 1; }; }
3020 echo "$as_me:$LINENO: result: $with_python" >&5
3021 echo "${ECHO_T}$with_python" >&6
3025 # Optionally build the Java/JDBC tools
3027 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3028 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3032 # Check whether --with-java or --without-java was given.
3033 if test "${with_java+set}" = set; then
3034 withval="$with_java"
3038 echo "$as_me:$LINENO: result: yes" >&5
3039 echo "${ECHO_T}yes" >&6
3041 for ac_prog in jakarta-ant ant ant.sh ant.bat
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_path_ANT+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test -n "$ANT"; then
3075 echo "$as_me:$LINENO: result: $ANT" >&5
3076 echo "${ECHO_T}$ANT" >&6
3078 echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6
3082 test -n "$ANT" && break
3086 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3087 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3088 if test "${pgac_cv_prog_ant_works+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 cat > conftest.java << EOF
3093 public class conftest {
3094 int testmethod(int a, int b) {
3100 cat > conftest.xml << EOF
3101 <project name="conftest" default="conftest">
3102 <target name="conftest">
3103 <javac srcdir="." includes="conftest.java">
3109 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3110 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3111 (eval $pgac_cmd) 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }
3116 if test $? = 0 && test -f ./conftest.class ; then
3117 pgac_cv_prog_ant_works=yes
3119 echo "configure: failed java program was:" >&5
3120 cat conftest.java >&5
3121 echo "configure: failed build file was:" >&5
3122 cat conftest.xml >&5
3123 pgac_cv_prog_ant_works=no
3126 rm -f conftest* core core.* *.core
3129 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3130 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3132 if test "$pgac_cv_prog_ant_works" != yes; then
3133 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3134 echo "$as_me: error: ant does not work" >&2;}
3135 { (exit 1); exit 1; }; }
3139 if test -z "$ANT"; then
3140 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3141 If you have Ant already installed, see config.log for details on the failure." >&5
3142 echo "$as_me: error: Ant is required to build Java components
3143 If you have Ant already installed, see config.log for details on the failure." >&2;}
3144 { (exit 1); exit 1; }; }
3146 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3147 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3148 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3149 { (exit 1); exit 1; }; }
3153 echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3157 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3158 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3159 { (exit 1); exit 1; }; }
3165 echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3175 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3176 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3180 # Check whether --with-krb4 or --without-krb4 was given.
3181 if test "${with_krb4+set}" = set; then
3182 withval="$with_krb4"
3186 krb4_prefix=/usr/athena
3193 krb4_prefix=$withval
3202 if test "$with_krb4" = yes; then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3207 cat >>confdefs.h <<\_ACEOF
3212 if test -d "$krb4_prefix/include"; then
3213 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3215 if test -d "$krb4_prefix/lib"; then
3216 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3219 krb_srvtab="/etc/srvtab"
3222 echo "$as_me:$LINENO: result: no" >&5
3223 echo "${ECHO_T}no" >&6
3233 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3234 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3238 # Check whether --with-krb5 or --without-krb5 was given.
3239 if test "${with_krb5+set}" = set; then
3240 withval="$with_krb5"
3244 krb5_prefix=/usr/athena
3251 krb5_prefix=$withval
3260 if test "$with_krb5" = yes; then
3262 echo "$as_me:$LINENO: result: yes" >&5
3263 echo "${ECHO_T}yes" >&6
3265 cat >>confdefs.h <<\_ACEOF
3270 if test -d "$krb5_prefix/include"; then
3271 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3273 if test -d "$krb5_prefix/lib"; then
3274 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3277 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3288 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3289 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3290 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3291 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3292 { (exit 1); exit 1; }; }
3299 # Kerberos configuration parameters
3304 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3305 if test "${with_krb_srvnam+set}" = set; then
3306 withval="$with_krb_srvnam"
3310 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3311 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3312 { (exit 1); exit 1; }; }
3315 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3316 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3317 { (exit 1); exit 1; }; }
3325 with_krb_srvnam="postgres"
3329 cat >>confdefs.h <<_ACEOF
3330 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3338 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3339 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3343 # Check whether --with-pam or --without-pam was given.
3344 if test "${with_pam+set}" = set; then
3350 cat >>confdefs.h <<\_ACEOF
3359 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3360 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3361 { (exit 1); exit 1; }; }
3370 echo "$as_me:$LINENO: result: $with_pam" >&5
3371 echo "${ECHO_T}$with_pam" >&6
3378 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3379 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3383 # Check whether --with-rendezvous or --without-rendezvous was given.
3384 if test "${with_rendezvous+set}" = set; then
3385 withval="$with_rendezvous"
3390 cat >>confdefs.h <<\_ACEOF
3391 #define USE_RENDEZVOUS 1
3399 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3400 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3401 { (exit 1); exit 1; }; }
3410 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3411 echo "${ECHO_T}$with_rendezvous" >&6
3421 # Check whether --with-openssl or --without-openssl was given.
3422 if test "${with_openssl+set}" = set; then
3423 withval="$with_openssl"
3427 openssl_prefix=/usr/local/ssl
3434 openssl_prefix=$withval
3443 if test "$with_openssl" = yes; then
3445 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3446 echo "${ECHO_T}building with OpenSSL support" >&6
3448 cat >>confdefs.h <<\_ACEOF
3453 if test -d "${openssl_prefix}/include" ; then
3454 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3456 if test -d "${openssl_prefix}/lib" ; then
3457 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3472 # Check whether --with-readline or --without-readline was given.
3473 if test "${with_readline+set}" = set; then
3474 withval="$with_readline"
3484 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3485 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3486 { (exit 1); exit 1; }; }
3502 # Check whether --with-zlib or --without-zlib was given.
3503 if test "${with_zlib+set}" = set; then
3504 withval="$with_zlib"
3514 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3515 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3516 { (exit 1); exit 1; }; }
3531 # Assume system is ELF if it predefines __ELF__ as 1,
3532 # otherwise believe host_os based default.
3534 freebsd1*|freebsd2*) elf=no;;
3535 freebsd3*|freebsd4*) elf=yes;;
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 #include "confdefs.h"
3547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3548 egrep "yes" >/dev/null 2>&1; then
3551 if test "X$elf" = "Xyes" ; then
3565 CPPFLAGS="$CPPFLAGS $INCLUDES"
3566 LDFLAGS="$LDFLAGS $LIBDIRS"
3568 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3569 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3570 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3571 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3574 for ac_prog in gawk mawk nawk awk
3576 # Extract the first word of "$ac_prog", so it can be a program name with args.
3577 set dummy $ac_prog; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_AWK+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test -n "$AWK"; then
3584 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_AWK="$ac_prog"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test -n "$AWK"; then
3604 echo "$as_me:$LINENO: result: $AWK" >&5
3605 echo "${ECHO_T}$AWK" >&6
3607 echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3611 test -n "$AWK" && break
3614 echo "$as_me:$LINENO: checking for flex" >&5
3615 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3616 if test "${pgac_cv_path_flex+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 # Let the user override the test
3620 if test -n "$FLEX"; then
3621 pgac_cv_path_flex=$FLEX
3625 for pgac_dir in $PATH; do
3626 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3629 for pgac_prog in flex lex; do
3630 pgac_candidate="$pgac_dir/$pgac_prog"
3631 if test -f "$pgac_candidate" \
3632 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3634 echo '%%' > conftest.l
3635 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3636 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3637 pgac_broken_flex=$pgac_candidate
3641 pgac_cv_path_flex=$pgac_candidate
3649 : ${pgac_cv_path_flex=no}
3653 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3654 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3655 if test x"$pgac_cv_path_flex" = x"no"; then
3656 if test -n "$pgac_broken_flex"; then
3657 { echo "$as_me:$LINENO: WARNING:
3658 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3659 *** should get version 2.5.4 or later." >&5
3660 echo "$as_me: WARNING:
3661 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3662 *** should get version 2.5.4 or later." >&2;}
3665 { echo "$as_me:$LINENO: WARNING:
3666 *** Without Flex you will not be able to build PostgreSQL from CVS or
3667 *** change any of the scanner definition files. You can obtain Flex from
3668 *** a GNU mirror site. (If you are using the official distribution of
3669 *** PostgreSQL then you do not need to worry about this because the Flex
3670 *** output is pre-generated.)" >&5
3671 echo "$as_me: WARNING:
3672 *** Without Flex you will not be able to build PostgreSQL from CVS or
3673 *** change any of the scanner definition files. You can obtain Flex from
3674 *** a GNU mirror site. (If you are using the official distribution of
3675 *** PostgreSQL then you do not need to worry about this because the Flex
3676 *** output is pre-generated.)" >&2;}
3679 if test x"$pgac_cv_path_flex" = x"no"; then
3682 FLEX=$pgac_cv_path_flex
3688 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3689 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3691 if test "$LN_S" = "ln -s"; then
3692 echo "$as_me:$LINENO: result: yes" >&5
3693 echo "${ECHO_T}yes" >&6
3695 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3696 echo "${ECHO_T}no, using $LN_S" >&6
3700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3701 if test "${with_gnu_ld+set}" = set; then
3702 withval="$with_gnu_ld"
3703 test "$withval" = no || with_gnu_ld=yes
3708 if test "$GCC" = yes; then
3709 # Check if gcc -print-prog-name=ld gives a path.
3710 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3711 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3714 # gcc leaves a trailing carriage return which upsets mingw
3715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3720 # Accept absolute paths.
3721 [\\/]* | [A-Za-z]:[\\/]*)
3722 re_direlt='/[^/][^/]*/\.\./'
3723 # Canonicalize the path of ld
3724 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3726 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3728 test -z "$LD" && LD="$ac_prog"
3731 # If it fails, then pretend we aren't using GCC.
3735 # If it is relative, then search for the first ld in PATH.
3739 elif test "$with_gnu_ld" = yes; then
3740 echo "$as_me:$LINENO: checking for GNU ld" >&5
3741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3743 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3746 if test "${ac_cv_path_LD+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if test -z "$LD"; then
3750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3751 for ac_dir in $PATH; do
3752 test -z "$ac_dir" && ac_dir=.
3753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3754 ac_cv_path_LD="$ac_dir/$ac_prog"
3755 # Check to see if the program is GNU ld. I'd rather use --version,
3756 # but apparently some GNU ld's only accept -v.
3757 # Break only if it was the GNU/non-GNU ld that we prefer.
3758 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3759 test "$with_gnu_ld" != no && break
3761 test "$with_gnu_ld" != yes && break
3767 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3772 if test -n "$LD"; then
3773 echo "$as_me:$LINENO: result: $LD" >&5
3774 echo "${ECHO_T}$LD" >&6
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3779 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3780 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3781 { (exit 1); exit 1; }; }
3782 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3783 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3784 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3788 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3789 ac_cv_prog_gnu_ld=yes
3791 ac_cv_prog_gnu_ld=no
3794 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3795 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3796 with_gnu_ld=$ac_cv_prog_gnu_ld
3801 case $host_os in sysv5*)
3802 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3803 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3804 if test "${pgac_cv_prog_ld_R+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3809 cat >conftest.$ac_ext <<_ACEOF
3810 #line $LINENO "configure"
3811 #include "confdefs.h"
3813 #ifdef F77_DUMMY_MAIN
3817 int F77_DUMMY_MAIN() { return 1; }
3827 rm -f conftest.$ac_objext conftest$ac_exeext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829 (eval $ac_link) 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -s conftest$ac_exeext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 pgac_cv_prog_ld_R=yes
3841 echo "$as_me: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 pgac_cv_prog_ld_R=no
3845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3846 LDFLAGS=$pgac_save_LDFLAGS
3849 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3850 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3851 ld_R_works=$pgac_cv_prog_ld_R
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3857 echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3859 if test "${ac_cv_prog_RANLIB+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 if test -n "$RANLIB"; then
3863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 RANLIB=$ac_cv_prog_RANLIB
3882 if test -n "$RANLIB"; then
3883 echo "$as_me:$LINENO: result: $RANLIB" >&5
3884 echo "${ECHO_T}$RANLIB" >&6
3886 echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3891 if test -z "$ac_cv_prog_RANLIB"; then
3892 ac_ct_RANLIB=$RANLIB
3893 # Extract the first word of "ranlib", so it can be a program name with args.
3894 set dummy ranlib; ac_word=$2
3895 echo "$as_me:$LINENO: checking for $ac_word" >&5
3896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 if test -n "$ac_ct_RANLIB"; then
3901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_RANLIB="ranlib"
3911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3921 if test -n "$ac_ct_RANLIB"; then
3922 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3923 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3929 RANLIB=$ac_ct_RANLIB
3931 RANLIB="$ac_cv_prog_RANLIB"
3934 for ac_prog in lorder
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_LORDER+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 if test -n "$LORDER"; then
3944 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_LORDER="$ac_prog"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 LORDER=$ac_cv_prog_LORDER
3963 if test -n "$LORDER"; then
3964 echo "$as_me:$LINENO: result: $LORDER" >&5
3965 echo "${ECHO_T}$LORDER" >&6
3967 echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3971 test -n "$LORDER" && break
3974 # Extract the first word of "tar", so it can be a program name with args.
3975 set dummy tar; ac_word=$2
3976 echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978 if test "${ac_cv_path_TAR+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 if test -n "$TAR"; then
4006 echo "$as_me:$LINENO: result: $TAR" >&5
4007 echo "${ECHO_T}$TAR" >&6
4009 echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4016 set dummy ${ac_tool_prefix}strip; ac_word=$2
4017 echo "$as_me:$LINENO: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019 if test "${ac_cv_prog_STRIP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 if test -n "$STRIP"; then
4023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 STRIP=$ac_cv_prog_STRIP
4042 if test -n "$STRIP"; then
4043 echo "$as_me:$LINENO: result: $STRIP" >&5
4044 echo "${ECHO_T}$STRIP" >&6
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4051 if test -z "$ac_cv_prog_STRIP"; then
4053 # Extract the first word of "strip", so it can be a program name with args.
4054 set dummy strip; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if test -n "$ac_ct_STRIP"; then
4061 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_STRIP="strip"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4081 if test -n "$ac_ct_STRIP"; then
4082 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4083 echo "${ECHO_T}$ac_ct_STRIP" >&6
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4091 STRIP="$ac_cv_prog_STRIP"
4095 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4096 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4097 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4098 STRIP_STATIC_LIB="$STRIP -x"
4099 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4100 echo "$as_me:$LINENO: result: yes" >&5
4101 echo "${ECHO_T}yes" >&6
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4112 for ac_prog in 'bison -y'
4114 # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy $ac_prog; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_prog_YACC+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test -n "$YACC"; then
4122 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_YACC="$ac_prog"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 YACC=$ac_cv_prog_YACC
4141 if test -n "$YACC"; then
4142 echo "$as_me:$LINENO: result: $YACC" >&5
4143 echo "${ECHO_T}$YACC" >&6
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4149 test -n "$YACC" && break
4153 if test "$YACC"; then
4154 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4155 { echo "$as_me:$LINENO: WARNING:
4156 *** The installed version of Bison is too old. PostgreSQL needs
4157 *** Bison version 1.875 or later." >&5
4158 echo "$as_me: WARNING:
4159 *** The installed version of Bison is too old. PostgreSQL needs
4160 *** Bison version 1.875 or later." >&2;}
4164 if test -z "$YACC"; then
4165 { echo "$as_me:$LINENO: WARNING:
4166 *** Without Bison you will not be able to build PostgreSQL from CVS or
4167 *** change any of the parser definition files. You can obtain Bison from
4168 *** a GNU mirror site. (If you are using the official distribution of
4169 *** PostgreSQL then you do not need to worry about this because the Bison
4170 *** output is pre-generated.) To use a different yacc program (possible,
4171 *** but not recommended), set the environment variable YACC before running
4172 *** 'configure'." >&5
4173 echo "$as_me: WARNING:
4174 *** Without Bison you will not be able to build PostgreSQL from CVS or
4175 *** change any of the parser definition files. You can obtain Bison from
4176 *** a GNU mirror site. (If you are using the official distribution of
4177 *** PostgreSQL then you do not need to worry about this because the Bison
4178 *** output is pre-generated.) To use a different yacc program (possible,
4179 *** but not recommended), set the environment variable YACC before running
4180 *** 'configure'." >&2;}
4184 # Extract the first word of "perl", so it can be a program name with args.
4185 set dummy perl; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_path_PERL+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 PERL=$ac_cv_path_PERL
4215 if test -n "$PERL"; then
4216 echo "$as_me:$LINENO: result: $PERL" >&5
4217 echo "${ECHO_T}$PERL" >&6
4219 echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4223 if test "$with_perl" = yes; then
4225 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4226 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4227 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4228 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4229 echo "${ECHO_T}$perl_archlibexp" >&6
4230 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4231 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4232 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4233 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4234 echo "${ECHO_T}$perl_privlibexp" >&6
4235 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4236 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4237 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4238 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4239 echo "${ECHO_T}$perl_useshrplib" >&6
4241 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4242 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4243 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4244 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4245 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4246 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4247 echo "${ECHO_T}$perl_embed_ldflags" >&6
4250 if test "$with_python" = yes; then
4251 # Extract the first word of "python", so it can be a program name with args.
4252 set dummy python; ac_word=$2
4253 echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_path_PYTHON+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 PYTHON=$ac_cv_path_PYTHON
4282 if test -n "$PYTHON"; then
4283 echo "$as_me:$LINENO: result: $PYTHON" >&5
4284 echo "${ECHO_T}$PYTHON" >&6
4286 echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4290 if test x"$PYTHON" = x""; then
4291 { { echo "$as_me:$LINENO: error: Python not found" >&5
4292 echo "$as_me: error: Python not found" >&2;}
4293 { (exit 1); exit 1; }; }
4297 echo "$as_me:$LINENO: checking Python installation directories" >&5
4298 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4299 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4300 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4301 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4302 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4303 python_includespec="-I${python_prefix}/include/python${python_version}"
4304 if test "$python_prefix" != "$python_execprefix"; then
4305 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4308 # This should be enough of a message.
4309 if test "$python_prefix" != "$python_execprefix"; then
4310 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4311 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4313 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4314 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4318 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4319 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4321 if test ! -f "$python_configdir/Makefile"; then
4322 echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4324 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4325 echo "$as_me: error: Python Makefile not found" >&2;}
4326 { (exit 1); exit 1; }; }
4329 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4330 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4331 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4332 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4333 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4335 pgac_tab=" " # tab character
4336 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"`
4338 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4339 echo "${ECHO_T}${python_libspec}" >&6
4349 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4352 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4353 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4354 if test "${ac_cv_lib_bsd_main+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 ac_check_lib_save_LIBS=$LIBS
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 #include "confdefs.h"
4364 #ifdef F77_DUMMY_MAIN
4368 int F77_DUMMY_MAIN() { return 1; }
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380 (eval $ac_link) 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -s conftest$ac_exeext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_lib_bsd_main=yes
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 ac_cv_lib_bsd_main=no
4396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_check_lib_save_LIBS
4399 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4400 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4401 if test $ac_cv_lib_bsd_main = yes; then
4402 cat >>confdefs.h <<_ACEOF
4403 #define HAVE_LIBBSD 1
4412 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4413 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4414 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 ac_check_lib_save_LIBS=$LIBS
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 #include "confdefs.h"
4423 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4429 char setproctitle ();
4430 #ifdef F77_DUMMY_MAIN
4434 int F77_DUMMY_MAIN() { return 1; }
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446 (eval $ac_link) 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -s conftest$ac_exeext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_cv_lib_util_setproctitle=yes
4458 echo "$as_me: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 ac_cv_lib_util_setproctitle=no
4462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4463 LIBS=$ac_check_lib_save_LIBS
4465 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4466 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4467 if test $ac_cv_lib_util_setproctitle = yes; then
4468 cat >>confdefs.h <<_ACEOF
4469 #define HAVE_LIBUTIL 1
4477 echo "$as_me:$LINENO: checking for main in -lm" >&5
4478 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4479 if test "${ac_cv_lib_m_main+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_check_lib_save_LIBS=$LIBS
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4486 #include "confdefs.h"
4489 #ifdef F77_DUMMY_MAIN
4493 int F77_DUMMY_MAIN() { return 1; }
4503 rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -s conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_lib_m_main=yes
4517 echo "$as_me: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4522 LIBS=$ac_check_lib_save_LIBS
4524 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4525 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4526 if test $ac_cv_lib_m_main = yes; then
4527 cat >>confdefs.h <<_ACEOF
4536 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4537 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4538 if test "${ac_cv_lib_dl_main+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 ac_check_lib_save_LIBS=$LIBS
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4545 #include "confdefs.h"
4548 #ifdef F77_DUMMY_MAIN
4552 int F77_DUMMY_MAIN() { return 1; }
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -s conftest$ac_exeext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 ac_cv_lib_dl_main=yes
4576 echo "$as_me: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 ac_cv_lib_dl_main=no
4580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4581 LIBS=$ac_check_lib_save_LIBS
4583 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4584 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4585 if test $ac_cv_lib_dl_main = yes; then
4586 cat >>confdefs.h <<_ACEOF
4587 #define HAVE_LIBDL 1
4595 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4596 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4597 if test "${ac_cv_lib_nsl_main+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 ac_check_lib_save_LIBS=$LIBS
4602 cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 #include "confdefs.h"
4607 #ifdef F77_DUMMY_MAIN
4611 int F77_DUMMY_MAIN() { return 1; }
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -s conftest$ac_exeext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_lib_nsl_main=yes
4635 echo "$as_me: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4637 ac_cv_lib_nsl_main=no
4639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4640 LIBS=$ac_check_lib_save_LIBS
4642 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4643 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4644 if test $ac_cv_lib_nsl_main = yes; then
4645 cat >>confdefs.h <<_ACEOF
4646 #define HAVE_LIBNSL 1
4654 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4655 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4656 if test "${ac_cv_lib_socket_main+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 ac_check_lib_save_LIBS=$LIBS
4660 LIBS="-lsocket $LIBS"
4661 cat >conftest.$ac_ext <<_ACEOF
4662 #line $LINENO "configure"
4663 #include "confdefs.h"
4666 #ifdef F77_DUMMY_MAIN
4670 int F77_DUMMY_MAIN() { return 1; }
4680 rm -f conftest.$ac_objext conftest$ac_exeext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -s conftest$ac_exeext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_cv_lib_socket_main=yes
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 ac_cv_lib_socket_main=no
4698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4699 LIBS=$ac_check_lib_save_LIBS
4701 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4702 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4703 if test $ac_cv_lib_socket_main = yes; then
4704 cat >>confdefs.h <<_ACEOF
4705 #define HAVE_LIBSOCKET 1
4708 LIBS="-lsocket $LIBS"
4713 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4714 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4715 if test "${ac_cv_lib_ipc_main+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 ac_check_lib_save_LIBS=$LIBS
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4722 #include "confdefs.h"
4725 #ifdef F77_DUMMY_MAIN
4729 int F77_DUMMY_MAIN() { return 1; }
4739 rm -f conftest.$ac_objext conftest$ac_exeext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4741 (eval $ac_link) 2>&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -s conftest$ac_exeext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 ac_cv_lib_ipc_main=yes
4753 echo "$as_me: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 ac_cv_lib_ipc_main=no
4757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4758 LIBS=$ac_check_lib_save_LIBS
4760 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4761 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4762 if test $ac_cv_lib_ipc_main = yes; then
4763 cat >>confdefs.h <<_ACEOF
4764 #define HAVE_LIBIPC 1
4772 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4773 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4774 if test "${ac_cv_lib_IPC_main+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 ac_check_lib_save_LIBS=$LIBS
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line $LINENO "configure"
4781 #include "confdefs.h"
4784 #ifdef F77_DUMMY_MAIN
4788 int F77_DUMMY_MAIN() { return 1; }
4798 rm -f conftest.$ac_objext conftest$ac_exeext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4800 (eval $ac_link) 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_IPC_main=yes
4812 echo "$as_me: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 ac_cv_lib_IPC_main=no
4816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4819 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4820 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4821 if test $ac_cv_lib_IPC_main = yes; then
4822 cat >>confdefs.h <<_ACEOF
4823 #define HAVE_LIBIPC 1
4831 echo "$as_me:$LINENO: checking for main in -llc" >&5
4832 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4833 if test "${ac_cv_lib_lc_main+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 ac_check_lib_save_LIBS=$LIBS
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4843 #ifdef F77_DUMMY_MAIN
4847 int F77_DUMMY_MAIN() { return 1; }
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859 (eval $ac_link) 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest$ac_exeext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_lib_lc_main=yes
4871 echo "$as_me: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 ac_cv_lib_lc_main=no
4875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4876 LIBS=$ac_check_lib_save_LIBS
4878 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4879 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4880 if test $ac_cv_lib_lc_main = yes; then
4881 cat >>confdefs.h <<_ACEOF
4882 #define HAVE_LIBLC 1
4890 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4891 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4892 if test "${ac_cv_lib_dld_main+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_check_lib_save_LIBS=$LIBS
4897 cat >conftest.$ac_ext <<_ACEOF
4898 #line $LINENO "configure"
4899 #include "confdefs.h"
4902 #ifdef F77_DUMMY_MAIN
4906 int F77_DUMMY_MAIN() { return 1; }
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4918 (eval $ac_link) 2>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -s conftest$ac_exeext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_cv_lib_dld_main=yes
4930 echo "$as_me: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4932 ac_cv_lib_dld_main=no
4934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4935 LIBS=$ac_check_lib_save_LIBS
4937 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4938 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4939 if test $ac_cv_lib_dld_main = yes; then
4940 cat >>confdefs.h <<_ACEOF
4941 #define HAVE_LIBDLD 1
4949 echo "$as_me:$LINENO: checking for main in -lld" >&5
4950 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4951 if test "${ac_cv_lib_ld_main+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 ac_check_lib_save_LIBS=$LIBS
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4958 #include "confdefs.h"
4961 #ifdef F77_DUMMY_MAIN
4965 int F77_DUMMY_MAIN() { return 1; }
4975 rm -f conftest.$ac_objext conftest$ac_exeext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4977 (eval $ac_link) 2>&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -s conftest$ac_exeext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_cv_lib_ld_main=yes
4989 echo "$as_me: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 ac_cv_lib_ld_main=no
4993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4994 LIBS=$ac_check_lib_save_LIBS
4996 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4997 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4998 if test $ac_cv_lib_ld_main = yes; then
4999 cat >>confdefs.h <<_ACEOF
5000 #define HAVE_LIBLD 1
5008 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5009 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5010 if test "${ac_cv_lib_compat_main+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_check_lib_save_LIBS=$LIBS
5014 LIBS="-lcompat $LIBS"
5015 cat >conftest.$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5017 #include "confdefs.h"
5020 #ifdef F77_DUMMY_MAIN
5024 int F77_DUMMY_MAIN() { return 1; }
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_lib_compat_main=yes
5048 echo "$as_me: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 ac_cv_lib_compat_main=no
5052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5053 LIBS=$ac_check_lib_save_LIBS
5055 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5056 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5057 if test $ac_cv_lib_compat_main = yes; then
5058 cat >>confdefs.h <<_ACEOF
5059 #define HAVE_LIBCOMPAT 1
5062 LIBS="-lcompat $LIBS"
5067 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5068 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5069 if test "${ac_cv_lib_BSD_main+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 ac_check_lib_save_LIBS=$LIBS
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 #include "confdefs.h"
5079 #ifdef F77_DUMMY_MAIN
5083 int F77_DUMMY_MAIN() { return 1; }
5093 rm -f conftest.$ac_objext conftest$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } &&
5099 { ac_try='test -s conftest$ac_exeext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_cv_lib_BSD_main=yes
5107 echo "$as_me: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5109 ac_cv_lib_BSD_main=no
5111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5112 LIBS=$ac_check_lib_save_LIBS
5114 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5115 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5116 if test $ac_cv_lib_BSD_main = yes; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define HAVE_LIBBSD 1
5126 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5127 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5128 if test "${ac_cv_lib_gen_main+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 ac_check_lib_save_LIBS=$LIBS
5133 cat >conftest.$ac_ext <<_ACEOF
5134 #line $LINENO "configure"
5135 #include "confdefs.h"
5138 #ifdef F77_DUMMY_MAIN
5142 int F77_DUMMY_MAIN() { return 1; }
5152 rm -f conftest.$ac_objext conftest$ac_exeext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154 (eval $ac_link) 2>&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
5158 { ac_try='test -s conftest$ac_exeext'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 ac_cv_lib_gen_main=yes
5166 echo "$as_me: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5168 ac_cv_lib_gen_main=no
5170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5171 LIBS=$ac_check_lib_save_LIBS
5173 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5174 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5175 if test $ac_cv_lib_gen_main = yes; then
5176 cat >>confdefs.h <<_ACEOF
5177 #define HAVE_LIBGEN 1
5185 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5186 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5187 if test "${ac_cv_lib_PW_main+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 ac_check_lib_save_LIBS=$LIBS
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 #include "confdefs.h"
5197 #ifdef F77_DUMMY_MAIN
5201 int F77_DUMMY_MAIN() { return 1; }
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest$ac_exeext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_lib_PW_main=yes
5225 echo "$as_me: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 ac_cv_lib_PW_main=no
5229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230 LIBS=$ac_check_lib_save_LIBS
5232 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5233 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5234 if test $ac_cv_lib_PW_main = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236 #define HAVE_LIBPW 1
5244 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5245 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5246 if test "${ac_cv_lib_resolv_main+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lresolv $LIBS"
5251 cat >conftest.$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5253 #include "confdefs.h"
5256 #ifdef F77_DUMMY_MAIN
5260 int F77_DUMMY_MAIN() { return 1; }
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_cv_lib_resolv_main=yes
5284 echo "$as_me: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 ac_cv_lib_resolv_main=no
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5292 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5293 if test $ac_cv_lib_resolv_main = yes; then
5294 cat >>confdefs.h <<_ACEOF
5295 #define HAVE_LIBRESOLV 1
5298 LIBS="-lresolv $LIBS"
5302 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5303 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5304 if test "${ac_cv_search_getopt_long+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_func_search_save_LIBS=$LIBS
5308 ac_cv_search_getopt_long=no
5309 cat >conftest.$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 #include "confdefs.h"
5313 /* Override any gcc2 internal prototype to avoid an error. */
5317 /* We use char because int might match the return type of a gcc2
5318 builtin and then its argument prototype would still apply. */
5319 char getopt_long ();
5320 #ifdef F77_DUMMY_MAIN
5324 int F77_DUMMY_MAIN() { return 1; }
5334 rm -f conftest.$ac_objext conftest$ac_exeext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest$ac_exeext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_search_getopt_long="none required"
5348 echo "$as_me: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5352 if test "$ac_cv_search_getopt_long" = no; then
5353 for ac_lib in getopt gnugetopt; do
5354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5355 cat >conftest.$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5357 #include "confdefs.h"
5359 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5365 char getopt_long ();
5366 #ifdef F77_DUMMY_MAIN
5370 int F77_DUMMY_MAIN() { return 1; }
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5382 (eval $ac_link) 2>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -s conftest$ac_exeext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_search_getopt_long="-l$ac_lib"
5395 echo "$as_me: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_func_search_save_LIBS
5403 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5404 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5405 if test "$ac_cv_search_getopt_long" != no; then
5406 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5412 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5413 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5414 if test "${ac_cv_lib_unix_main+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 ac_check_lib_save_LIBS=$LIBS
5419 cat >conftest.$ac_ext <<_ACEOF
5420 #line $LINENO "configure"
5421 #include "confdefs.h"
5424 #ifdef F77_DUMMY_MAIN
5428 int F77_DUMMY_MAIN() { return 1; }
5438 rm -f conftest.$ac_objext conftest$ac_exeext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440 (eval $ac_link) 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest$ac_exeext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_cv_lib_unix_main=yes
5452 echo "$as_me: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 ac_cv_lib_unix_main=no
5456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5457 LIBS=$ac_check_lib_save_LIBS
5459 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5460 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5461 if test $ac_cv_lib_unix_main = yes; then
5462 cat >>confdefs.h <<_ACEOF
5463 #define HAVE_LIBUNIX 1
5470 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5471 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5472 if test "${ac_cv_search_crypt+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 ac_func_search_save_LIBS=$LIBS
5476 ac_cv_search_crypt=no
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 #include "confdefs.h"
5481 /* Override any gcc2 internal prototype to avoid an error. */
5485 /* We use char because int might match the return type of a gcc2
5486 builtin and then its argument prototype would still apply. */
5488 #ifdef F77_DUMMY_MAIN
5492 int F77_DUMMY_MAIN() { return 1; }
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5504 (eval $ac_link) 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -s conftest$ac_exeext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 ac_cv_search_crypt="none required"
5516 echo "$as_me: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5520 if test "$ac_cv_search_crypt" = no; then
5521 for ac_lib in crypt; do
5522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5523 cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 #include "confdefs.h"
5527 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5534 #ifdef F77_DUMMY_MAIN
5538 int F77_DUMMY_MAIN() { return 1; }
5548 rm -f conftest.$ac_objext conftest$ac_exeext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550 (eval $ac_link) 2>&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
5554 { ac_try='test -s conftest$ac_exeext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 ac_cv_search_crypt="-l$ac_lib"
5563 echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5569 LIBS=$ac_func_search_save_LIBS
5571 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5572 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5573 if test "$ac_cv_search_crypt" != no; then
5574 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5579 if test "$PORTNAME" = "beos"
5582 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5583 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5584 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_check_lib_save_LIBS=$LIBS
5589 cat >conftest.$ac_ext <<_ACEOF
5590 #line $LINENO "configure"
5591 #include "confdefs.h"
5593 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599 char __inet_ntoa ();
5600 #ifdef F77_DUMMY_MAIN
5604 int F77_DUMMY_MAIN() { return 1; }
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -s conftest$ac_exeext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5626 ac_cv_lib_bind___inet_ntoa=yes
5628 echo "$as_me: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 ac_cv_lib_bind___inet_ntoa=no
5632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5633 LIBS=$ac_check_lib_save_LIBS
5635 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5636 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5637 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5638 cat >>confdefs.h <<_ACEOF
5639 #define HAVE_LIBBIND 1
5648 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5649 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5650 if test "${ac_cv_search_fdatasync+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_func_search_save_LIBS=$LIBS
5654 ac_cv_search_fdatasync=no
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #line $LINENO "configure"
5657 #include "confdefs.h"
5659 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5666 #ifdef F77_DUMMY_MAIN
5670 int F77_DUMMY_MAIN() { return 1; }
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682 (eval $ac_link) 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_search_fdatasync="none required"
5694 echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5698 if test "$ac_cv_search_fdatasync" = no; then
5699 for ac_lib in rt posix4; do
5700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5701 cat >conftest.$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5703 #include "confdefs.h"
5705 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5712 #ifdef F77_DUMMY_MAIN
5716 int F77_DUMMY_MAIN() { return 1; }
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -s conftest$ac_exeext'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 ac_cv_search_fdatasync="-l$ac_lib"
5741 echo "$as_me: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_func_search_save_LIBS
5749 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5750 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5751 if test "$ac_cv_search_fdatasync" != no; then
5752 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5758 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5759 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5760 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 ac_check_lib_save_LIBS=$LIBS
5764 LIBS="-lcygipc $LIBS"
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5767 #include "confdefs.h"
5769 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5776 #ifdef F77_DUMMY_MAIN
5780 int F77_DUMMY_MAIN() { return 1; }
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792 (eval $ac_link) 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try='test -s conftest$ac_exeext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_cv_lib_cygipc_shmget=yes
5804 echo "$as_me: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5806 ac_cv_lib_cygipc_shmget=no
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$ac_check_lib_save_LIBS
5811 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5812 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5813 if test $ac_cv_lib_cygipc_shmget = yes; then
5814 cat >>confdefs.h <<_ACEOF
5815 #define HAVE_LIBCYGIPC 1
5818 LIBS="-lcygipc $LIBS"
5823 if test "$PORTNAME" = "win32"
5826 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5827 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5828 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 ac_check_lib_save_LIBS=$LIBS
5832 LIBS="-lwsock32 $LIBS"
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5835 #include "confdefs.h"
5838 #ifdef F77_DUMMY_MAIN
5842 int F77_DUMMY_MAIN() { return 1; }
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -s conftest$ac_exeext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_lib_wsock32_main=yes
5866 echo "$as_me: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 ac_cv_lib_wsock32_main=no
5870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871 LIBS=$ac_check_lib_save_LIBS
5873 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5874 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5875 if test $ac_cv_lib_wsock32_main = yes; then
5876 cat >>confdefs.h <<_ACEOF
5877 #define HAVE_LIBWSOCK32 1
5880 LIBS="-lwsock32 $LIBS"
5886 if test "$with_readline" = yes; then
5888 echo "$as_me:$LINENO: checking for readline" >&5
5889 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5891 if test "${pgac_cv_check_readline+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 pgac_cv_check_readline=no
5895 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5896 for pgac_rllib in -lreadline -ledit ; do
5897 pgac_save_LIBS=$LIBS
5898 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5899 cat >conftest.$ac_ext <<_ACEOF
5900 #line $LINENO "configure"
5901 #include "confdefs.h"
5903 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5910 #ifdef F77_DUMMY_MAIN
5914 int F77_DUMMY_MAIN() { return 1; }
5924 rm -f conftest.$ac_objext conftest$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -s conftest$ac_exeext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5937 # NetBSD and OpenBSD have a broken linker that does not
5938 # recognize dependent libraries
5939 case $host_os in netbsd* | openbsd* )
5942 *) pgac_lib=" -lcurses" ;;
5946 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5950 echo "$as_me: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954 LIBS=$pgac_save_LIBS
5957 LIBS=$pgac_save_LIBS
5961 if test "$pgac_cv_check_readline" != no ; then
5963 cat >>confdefs.h <<\_ACEOF
5964 #define HAVE_LIBREADLINE 1
5967 LIBS="$pgac_cv_check_readline $LIBS"
5968 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5969 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5971 echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6
5974 if test x"$pgac_cv_check_readline" = x"no"; then
5975 { { echo "$as_me:$LINENO: error: readline library not found
5976 If you have readline already installed, see config.log for details on the
5977 failure. It is possible the compiler isn't looking in the proper directory.
5978 Use --without-readline to disable readline support." >&5
5979 echo "$as_me: error: readline library not found
5980 If you have readline already installed, see config.log for details on the
5981 failure. It is possible the compiler isn't looking in the proper directory.
5982 Use --without-readline to disable readline support." >&2;}
5983 { (exit 1); exit 1; }; }
5987 if test "$with_zlib" = yes; then
5989 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5990 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5991 if test "${ac_cv_lib_z_inflate+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 ac_check_lib_save_LIBS=$LIBS
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 #include "confdefs.h"
6000 /* Override any gcc2 internal prototype to avoid an error. */
6004 /* We use char because int might match the return type of a gcc2
6005 builtin and then its argument prototype would still apply. */
6007 #ifdef F77_DUMMY_MAIN
6011 int F77_DUMMY_MAIN() { return 1; }
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023 (eval $ac_link) 2>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -s conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_lib_z_inflate=yes
6035 echo "$as_me: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6037 ac_cv_lib_z_inflate=no
6039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6040 LIBS=$ac_check_lib_save_LIBS
6042 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6043 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6044 if test $ac_cv_lib_z_inflate = yes; then
6045 cat >>confdefs.h <<_ACEOF
6052 { { echo "$as_me:$LINENO: error: zlib library not found
6053 If you have zlib already installed, see config.log for details on the
6054 failure. It is possible the compiler isn't looking in the proper directory.
6055 Use --without-zlib to disable zlib support." >&5
6056 echo "$as_me: error: zlib library not found
6057 If you have zlib already installed, see config.log for details on the
6058 failure. It is possible the compiler isn't looking in the proper directory.
6059 Use --without-zlib to disable zlib support." >&2;}
6060 { (exit 1); exit 1; }; }
6065 if test "$with_krb4" = yes ; then
6067 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6068 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6069 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 ac_check_lib_save_LIBS=$LIBS
6074 cat >conftest.$ac_ext <<_ACEOF
6075 #line $LINENO "configure"
6076 #include "confdefs.h"
6078 /* Override any gcc2 internal prototype to avoid an error. */
6082 /* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084 char des_encrypt ();
6085 #ifdef F77_DUMMY_MAIN
6089 int F77_DUMMY_MAIN() { return 1; }
6099 rm -f conftest.$ac_objext conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_lib_des_des_encrypt=yes
6113 echo "$as_me: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 ac_cv_lib_des_des_encrypt=no
6117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6118 LIBS=$ac_check_lib_save_LIBS
6120 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6121 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6122 if test $ac_cv_lib_des_des_encrypt = yes; then
6123 cat >>confdefs.h <<_ACEOF
6124 #define HAVE_LIBDES 1
6130 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6131 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6132 { (exit 1); exit 1; }; }
6136 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6137 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6138 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 ac_check_lib_save_LIBS=$LIBS
6143 cat >conftest.$ac_ext <<_ACEOF
6144 #line $LINENO "configure"
6145 #include "confdefs.h"
6147 /* Override any gcc2 internal prototype to avoid an error. */
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
6153 char krb_sendauth ();
6154 #ifdef F77_DUMMY_MAIN
6158 int F77_DUMMY_MAIN() { return 1; }
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -s conftest$ac_exeext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_lib_krb_krb_sendauth=yes
6182 echo "$as_me: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6184 ac_cv_lib_krb_krb_sendauth=no
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6189 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6190 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6191 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6192 cat >>confdefs.h <<_ACEOF
6193 #define HAVE_LIBKRB 1
6199 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6200 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6201 { (exit 1); exit 1; }; }
6205 for ac_func in gethostname
6207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6208 echo "$as_me:$LINENO: checking for $ac_func" >&5
6209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6210 if eval "test \"\${$as_ac_var+set}\" = set"; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 cat >conftest.$ac_ext <<_ACEOF
6214 #line $LINENO "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char $ac_func (); below. */
6219 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6228 #ifdef F77_DUMMY_MAIN
6232 int F77_DUMMY_MAIN() { return 1; }
6237 /* The GNU C library defines this for functions which it implements
6238 to always fail with ENOSYS. Some functions are actually named
6239 something starting with __ and the normal name is an alias. */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -s conftest$ac_exeext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 eval "$as_ac_var=yes"
6264 echo "$as_me: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6266 eval "$as_ac_var=no"
6268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6272 if test `eval echo '${'$as_ac_var'}'` = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6278 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6285 if test "$with_krb5" = yes ; then
6286 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6287 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6288 if test "${ac_cv_search_com_err+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 ac_func_search_save_LIBS=$LIBS
6292 ac_cv_search_com_err=no
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 #include "confdefs.h"
6297 /* Override any gcc2 internal prototype to avoid an error. */
6301 /* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6304 #ifdef F77_DUMMY_MAIN
6308 int F77_DUMMY_MAIN() { return 1; }
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6320 (eval $ac_link) 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -s conftest$ac_exeext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_search_com_err="none required"
6332 echo "$as_me: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6336 if test "$ac_cv_search_com_err" = no; then
6337 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6339 cat >conftest.$ac_ext <<_ACEOF
6340 #line $LINENO "configure"
6341 #include "confdefs.h"
6343 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6350 #ifdef F77_DUMMY_MAIN
6354 int F77_DUMMY_MAIN() { return 1; }
6364 rm -f conftest.$ac_objext conftest$ac_exeext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_search_com_err="-l$ac_lib"
6379 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6385 LIBS=$ac_func_search_save_LIBS
6387 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6388 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6389 if test "$ac_cv_search_com_err" != no; then
6390 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6393 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6394 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6395 { (exit 1); exit 1; }; }
6398 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6399 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6400 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_func_search_save_LIBS=$LIBS
6404 ac_cv_search_krb5_encrypt=no
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char krb5_encrypt ();
6416 #ifdef F77_DUMMY_MAIN
6420 int F77_DUMMY_MAIN() { return 1; }
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6432 (eval $ac_link) 2>&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -s conftest$ac_exeext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6442 ac_cv_search_krb5_encrypt="none required"
6444 echo "$as_me: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6448 if test "$ac_cv_search_krb5_encrypt" = no; then
6449 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 #include "confdefs.h"
6455 /* Override any gcc2 internal prototype to avoid an error. */
6459 /* We use char because int might match the return type of a gcc2
6460 builtin and then its argument prototype would still apply. */
6461 char krb5_encrypt ();
6462 #ifdef F77_DUMMY_MAIN
6466 int F77_DUMMY_MAIN() { return 1; }
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -s conftest$ac_exeext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_cv_search_krb5_encrypt="-l$ac_lib"
6491 echo "$as_me: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$ac_func_search_save_LIBS
6499 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6500 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6501 if test "$ac_cv_search_krb5_encrypt" != no; then
6502 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6505 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6506 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6507 { (exit 1); exit 1; }; }
6510 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6511 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6512 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 ac_func_search_save_LIBS=$LIBS
6516 ac_cv_search_krb5_sendauth=no
6517 cat >conftest.$ac_ext <<_ACEOF
6518 #line $LINENO "configure"
6519 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527 char krb5_sendauth ();
6528 #ifdef F77_DUMMY_MAIN
6532 int F77_DUMMY_MAIN() { return 1; }
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -s conftest$ac_exeext'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 ac_cv_search_krb5_sendauth="none required"
6556 echo "$as_me: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6560 if test "$ac_cv_search_krb5_sendauth" = no; then
6561 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6563 cat >conftest.$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6565 #include "confdefs.h"
6567 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6573 char krb5_sendauth ();
6574 #ifdef F77_DUMMY_MAIN
6578 int F77_DUMMY_MAIN() { return 1; }
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_search_krb5_sendauth="-l$ac_lib"
6603 echo "$as_me: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6609 LIBS=$ac_func_search_save_LIBS
6611 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6612 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6613 if test "$ac_cv_search_krb5_sendauth" != no; then
6614 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6617 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6618 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6619 { (exit 1); exit 1; }; }
6624 if test "$with_openssl" = yes ; then
6626 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6627 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6628 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_check_lib_save_LIBS=$LIBS
6632 LIBS="-lcrypto $LIBS"
6633 cat >conftest.$ac_ext <<_ACEOF
6634 #line $LINENO "configure"
6635 #include "confdefs.h"
6637 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6643 char CRYPTO_new_ex_data ();
6644 #ifdef F77_DUMMY_MAIN
6648 int F77_DUMMY_MAIN() { return 1; }
6653 CRYPTO_new_ex_data ();
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660 (eval $ac_link) 2>&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } &&
6664 { ac_try='test -s conftest$ac_exeext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6672 echo "$as_me: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677 LIBS=$ac_check_lib_save_LIBS
6679 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6680 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6681 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6682 cat >>confdefs.h <<_ACEOF
6683 #define HAVE_LIBCRYPTO 1
6686 LIBS="-lcrypto $LIBS"
6689 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6690 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6691 { (exit 1); exit 1; }; }
6695 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6696 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6697 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 ac_check_lib_save_LIBS=$LIBS
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 #include "confdefs.h"
6706 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6712 char SSL_library_init ();
6713 #ifdef F77_DUMMY_MAIN
6717 int F77_DUMMY_MAIN() { return 1; }
6722 SSL_library_init ();
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_lib_ssl_SSL_library_init=yes
6741 echo "$as_me: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ac_cv_lib_ssl_SSL_library_init=no
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6748 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6749 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6750 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6751 cat >>confdefs.h <<_ACEOF
6752 #define HAVE_LIBSSL 1
6758 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6759 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6760 { (exit 1); exit 1; }; }
6765 if test "$with_pam" = yes ; then
6767 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6768 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6769 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_check_lib_save_LIBS=$LIBS
6774 cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6776 #include "confdefs.h"
6778 /* Override any gcc2 internal prototype to avoid an error. */
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6785 #ifdef F77_DUMMY_MAIN
6789 int F77_DUMMY_MAIN() { return 1; }
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_cv_lib_pam_pam_start=yes
6813 echo "$as_me: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 ac_cv_lib_pam_pam_start=no
6817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6818 LIBS=$ac_check_lib_save_LIBS
6820 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6821 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6822 if test $ac_cv_lib_pam_pam_start = yes; then
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_LIBPAM 1
6830 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6831 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6832 { (exit 1); exit 1; }; }
6842 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6844 if test "${ac_cv_header_stdc+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 cat >conftest.$ac_ext <<_ACEOF
6848 #line $LINENO "configure"
6849 #include "confdefs.h"
6856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6859 egrep -v '^ *\+' conftest.er1 >conftest.err
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } >/dev/null; then
6864 if test -s conftest.err; then
6865 ac_cpp_err=$ac_c_preproc_warn_flag
6872 if test -z "$ac_cpp_err"; then
6873 ac_cv_header_stdc=yes
6875 echo "$as_me: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6877 ac_cv_header_stdc=no
6879 rm -f conftest.err conftest.$ac_ext
6881 if test $ac_cv_header_stdc = yes; then
6882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line $LINENO "configure"
6885 #include "confdefs.h"
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 egrep "memchr" >/dev/null 2>&1; then
6893 ac_cv_header_stdc=no
6899 if test $ac_cv_header_stdc = yes; then
6900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6901 cat >conftest.$ac_ext <<_ACEOF
6902 #line $LINENO "configure"
6903 #include "confdefs.h"
6907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908 egrep "free" >/dev/null 2>&1; then
6911 ac_cv_header_stdc=no
6917 if test $ac_cv_header_stdc = yes; then
6918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6919 if test "$cross_compiling" = yes; then
6922 cat >conftest.$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 #include "confdefs.h"
6926 #if ((' ' & 0x0FF) == 0x020)
6927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6930 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6931 || ('j' <= (c) && (c) <= 'r') \
6932 || ('s' <= (c) && (c) <= 'z'))
6933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6941 for (i = 0; i < 256; i++)
6942 if (XOR (islower (i), ISLOWER (i))
6943 || toupper (i) != TOUPPER (i))
6948 rm -f conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950 (eval $ac_link) 2>&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6961 echo "$as_me: program exited with status $ac_status" >&5
6962 echo "$as_me: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6965 ac_cv_header_stdc=no
6967 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6973 if test $ac_cv_header_stdc = yes; then
6975 cat >>confdefs.h <<\_ACEOF
6976 #define STDC_HEADERS 1
6981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6992 inttypes.h stdint.h unistd.h
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 #include "confdefs.h"
7003 $ac_includes_default
7005 #include <$ac_header>
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest.$ac_objext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 eval "$as_ac_Header=yes"
7021 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 eval "$as_ac_Header=no"
7025 rm -f conftest.$ac_objext conftest.$ac_ext
7027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7030 cat >>confdefs.h <<_ACEOF
7031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7060 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
7062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7064 echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7072 # Is the header compilable?
7073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7075 cat >conftest.$ac_ext <<_ACEOF
7076 #line $LINENO "configure"
7077 #include "confdefs.h"
7078 $ac_includes_default
7079 #include <$ac_header>
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -s conftest.$ac_objext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 ac_header_compiler=yes
7095 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 ac_header_compiler=no
7099 rm -f conftest.$ac_objext conftest.$ac_ext
7100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7101 echo "${ECHO_T}$ac_header_compiler" >&6
7103 # Is the header present?
7104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7106 cat >conftest.$ac_ext <<_ACEOF
7107 #line $LINENO "configure"
7108 #include "confdefs.h"
7109 #include <$ac_header>
7111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7114 egrep -v '^ *\+' conftest.er1 >conftest.err
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } >/dev/null; then
7119 if test -s conftest.err; then
7120 ac_cpp_err=$ac_c_preproc_warn_flag
7127 if test -z "$ac_cpp_err"; then
7128 ac_header_preproc=yes
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 ac_header_preproc=no
7134 rm -f conftest.err conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7136 echo "${ECHO_T}$ac_header_preproc" >&6
7138 # So? What about this header?
7139 case $ac_header_compiler:$ac_header_preproc in
7141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7153 echo "$as_me:$LINENO: checking for $ac_header" >&5
7154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 eval "$as_ac_Header=$ac_header_preproc"
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7165 cat >>confdefs.h <<_ACEOF
7166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7175 # netinet/in.h is included first.
7177 for ac_header in netinet/in.h
7179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181 echo "$as_me:$LINENO: checking for $ac_header" >&5
7182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7189 # Is the header compilable?
7190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7192 cat >conftest.$ac_ext <<_ACEOF
7193 #line $LINENO "configure"
7194 #include "confdefs.h"
7195 $ac_includes_default
7196 #include <$ac_header>
7198 rm -f conftest.$ac_objext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7200 (eval $ac_compile) 2>&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 ac_header_compiler=yes
7212 echo "$as_me: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7214 ac_header_compiler=no
7216 rm -f conftest.$ac_objext conftest.$ac_ext
7217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7218 echo "${ECHO_T}$ac_header_compiler" >&6
7220 # Is the header present?
7221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7223 cat >conftest.$ac_ext <<_ACEOF
7224 #line $LINENO "configure"
7225 #include "confdefs.h"
7226 #include <$ac_header>
7228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7231 egrep -v '^ *\+' conftest.er1 >conftest.err
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } >/dev/null; then
7236 if test -s conftest.err; then
7237 ac_cpp_err=$ac_c_preproc_warn_flag
7244 if test -z "$ac_cpp_err"; then
7245 ac_header_preproc=yes
7247 echo "$as_me: failed program was:" >&5
7248 cat conftest.$ac_ext >&5
7249 ac_header_preproc=no
7251 rm -f conftest.err conftest.$ac_ext
7252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7253 echo "${ECHO_T}$ac_header_preproc" >&6
7255 # So? What about this header?
7256 case $ac_header_compiler:$ac_header_preproc in
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7270 echo "$as_me:$LINENO: checking for $ac_header" >&5
7271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 eval "$as_ac_Header=$ac_header_preproc"
7277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7282 cat >>confdefs.h <<_ACEOF
7283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291 for ac_header in netinet/tcp.h
7293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7294 echo "$as_me:$LINENO: checking for $ac_header" >&5
7295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 cat >conftest.$ac_ext <<_ACEOF
7300 #line $LINENO "configure"
7301 #include "confdefs.h"
7302 $ac_includes_default
7303 #ifdef HAVE_NETINET_IN_H
7304 #include <netinet/in.h>
7308 #include <$ac_header>
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312 (eval $ac_compile) 2>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 eval "$as_ac_Header=yes"
7324 echo "$as_me: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 eval "$as_ac_Header=no"
7328 rm -f conftest.$ac_objext conftest.$ac_ext
7330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7333 cat >>confdefs.h <<_ACEOF
7334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7342 if test "$with_readline" = yes; then
7344 for ac_header in readline/readline.h
7346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348 echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7356 # Is the header compilable?
7357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line $LINENO "configure"
7361 #include "confdefs.h"
7362 $ac_includes_default
7363 #include <$ac_header>
7365 rm -f conftest.$ac_objext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7367 (eval $ac_compile) 2>&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -s conftest.$ac_objext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 ac_header_compiler=yes
7379 echo "$as_me: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 ac_header_compiler=no
7383 rm -f conftest.$ac_objext conftest.$ac_ext
7384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7385 echo "${ECHO_T}$ac_header_compiler" >&6
7387 # Is the header present?
7388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line $LINENO "configure"
7392 #include "confdefs.h"
7393 #include <$ac_header>
7395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7398 egrep -v '^ *\+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } >/dev/null; then
7403 if test -s conftest.err; then
7404 ac_cpp_err=$ac_c_preproc_warn_flag
7411 if test -z "$ac_cpp_err"; then
7412 ac_header_preproc=yes
7414 echo "$as_me: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 ac_header_preproc=no
7418 rm -f conftest.err conftest.$ac_ext
7419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7420 echo "${ECHO_T}$ac_header_preproc" >&6
7422 # So? What about this header?
7423 case $ac_header_compiler:$ac_header_preproc in
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7437 echo "$as_me:$LINENO: checking for $ac_header" >&5
7438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 eval "$as_ac_Header=$ac_header_preproc"
7444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449 cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7455 for ac_header in editline/readline.h
7457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7459 echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7467 # Is the header compilable?
7468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7473 $ac_includes_default
7474 #include <$ac_header>
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 (eval $ac_compile) 2>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_header_compiler=yes
7490 echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 ac_header_compiler=no
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6
7498 # Is the header present?
7499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 #line $LINENO "configure"
7503 #include "confdefs.h"
7504 #include <$ac_header>
7506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7509 egrep -v '^ *\+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } >/dev/null; then
7514 if test -s conftest.err; then
7515 ac_cpp_err=$ac_c_preproc_warn_flag
7522 if test -z "$ac_cpp_err"; then
7523 ac_header_preproc=yes
7525 echo "$as_me: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 ac_header_preproc=no
7529 rm -f conftest.err conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531 echo "${ECHO_T}$ac_header_preproc" >&6
7533 # So? What about this header?
7534 case $ac_header_compiler:$ac_header_preproc in
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7548 echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 eval "$as_ac_Header=$ac_header_preproc"
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7560 cat >>confdefs.h <<_ACEOF
7561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566 for ac_header in readline.h
7568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570 echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578 # Is the header compilable?
7579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7582 #line $LINENO "configure"
7583 #include "confdefs.h"
7584 $ac_includes_default
7585 #include <$ac_header>
7587 rm -f conftest.$ac_objext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7589 (eval $ac_compile) 2>&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -s conftest.$ac_objext'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7599 ac_header_compiler=yes
7601 echo "$as_me: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 ac_header_compiler=no
7605 rm -f conftest.$ac_objext conftest.$ac_ext
7606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7607 echo "${ECHO_T}$ac_header_compiler" >&6
7609 # Is the header present?
7610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7612 cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7614 #include "confdefs.h"
7615 #include <$ac_header>
7617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7620 egrep -v '^ *\+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } >/dev/null; then
7625 if test -s conftest.err; then
7626 ac_cpp_err=$ac_c_preproc_warn_flag
7633 if test -z "$ac_cpp_err"; then
7634 ac_header_preproc=yes
7636 echo "$as_me: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7638 ac_header_preproc=no
7640 rm -f conftest.err conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7642 echo "${ECHO_T}$ac_header_preproc" >&6
7644 # So? What about this header?
7645 case $ac_header_compiler:$ac_header_preproc in
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7659 echo "$as_me:$LINENO: checking for $ac_header" >&5
7660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 eval "$as_ac_Header=$ac_header_preproc"
7666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7676 { { echo "$as_me:$LINENO: error: readline header not found
7677 If you have readline already installed, see config.log for details on the
7678 failure. It is possible the compiler isn't looking in the proper directory.
7679 Use --without-readline to disable readline support." >&5
7680 echo "$as_me: error: readline header not found
7681 If you have readline already installed, see config.log for details on the
7682 failure. It is possible the compiler isn't looking in the proper directory.
7683 Use --without-readline to disable readline support." >&2;}
7684 { (exit 1); exit 1; }; }
7698 for ac_header in readline/history.h
7700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7702 echo "$as_me:$LINENO: checking for $ac_header" >&5
7703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7710 # Is the header compilable?
7711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7715 #include "confdefs.h"
7716 $ac_includes_default
7717 #include <$ac_header>
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_header_compiler=yes
7733 echo "$as_me: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 ac_header_compiler=no
7737 rm -f conftest.$ac_objext conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7739 echo "${ECHO_T}$ac_header_compiler" >&6
7741 # Is the header present?
7742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7744 cat >conftest.$ac_ext <<_ACEOF
7745 #line $LINENO "configure"
7746 #include "confdefs.h"
7747 #include <$ac_header>
7749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7752 egrep -v '^ *\+' conftest.er1 >conftest.err
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } >/dev/null; then
7757 if test -s conftest.err; then
7758 ac_cpp_err=$ac_c_preproc_warn_flag
7765 if test -z "$ac_cpp_err"; then
7766 ac_header_preproc=yes
7768 echo "$as_me: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7770 ac_header_preproc=no
7772 rm -f conftest.err conftest.$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7774 echo "${ECHO_T}$ac_header_preproc" >&6
7776 # So? What about this header?
7777 case $ac_header_compiler:$ac_header_preproc in
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 eval "$as_ac_Header=$ac_header_preproc"
7798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809 for ac_header in editline/history.h
7811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7813 echo "$as_me:$LINENO: checking for $ac_header" >&5
7814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7821 # Is the header compilable?
7822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827 $ac_includes_default
7828 #include <$ac_header>
7830 rm -f conftest.$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -s conftest.$ac_objext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_header_compiler=yes
7844 echo "$as_me: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 ac_header_compiler=no
7848 rm -f conftest.$ac_objext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7850 echo "${ECHO_T}$ac_header_compiler" >&6
7852 # Is the header present?
7853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 #include <$ac_header>
7860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7863 egrep -v '^ *\+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } >/dev/null; then
7868 if test -s conftest.err; then
7869 ac_cpp_err=$ac_c_preproc_warn_flag
7876 if test -z "$ac_cpp_err"; then
7877 ac_header_preproc=yes
7879 echo "$as_me: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7881 ac_header_preproc=no
7883 rm -f conftest.err conftest.$ac_ext
7884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7885 echo "${ECHO_T}$ac_header_preproc" >&6
7887 # So? What about this header?
7888 case $ac_header_compiler:$ac_header_preproc in
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7902 echo "$as_me:$LINENO: checking for $ac_header" >&5
7903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 eval "$as_ac_Header=$ac_header_preproc"
7909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7914 cat >>confdefs.h <<_ACEOF
7915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7920 for ac_header in history.h
7922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7924 echo "$as_me:$LINENO: checking for $ac_header" >&5
7925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7932 # Is the header compilable?
7933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7935 cat >conftest.$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7937 #include "confdefs.h"
7938 $ac_includes_default
7939 #include <$ac_header>
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_header_compiler=yes
7955 echo "$as_me: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_header_compiler=no
7959 rm -f conftest.$ac_objext conftest.$ac_ext
7960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7961 echo "${ECHO_T}$ac_header_compiler" >&6
7963 # Is the header present?
7964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7966 cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 #include "confdefs.h"
7969 #include <$ac_header>
7971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7974 egrep -v '^ *\+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } >/dev/null; then
7979 if test -s conftest.err; then
7980 ac_cpp_err=$ac_c_preproc_warn_flag
7987 if test -z "$ac_cpp_err"; then
7988 ac_header_preproc=yes
7990 echo "$as_me: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7992 ac_header_preproc=no
7994 rm -f conftest.err conftest.$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996 echo "${ECHO_T}$ac_header_preproc" >&6
7998 # So? What about this header?
7999 case $ac_header_compiler:$ac_header_preproc in
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8013 echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 eval "$as_ac_Header=$ac_header_preproc"
8020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8025 cat >>confdefs.h <<_ACEOF
8026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8030 { { echo "$as_me:$LINENO: error: history header not found
8031 If you have readline already installed, see config.log for details on the
8032 failure. It is possible the compiler isn't looking in the proper directory.
8033 Use --without-readline to disable readline support." >&5
8034 echo "$as_me: error: history header not found
8035 If you have readline already installed, see config.log for details on the
8036 failure. It is possible the compiler isn't looking in the proper directory.
8037 Use --without-readline to disable readline support." >&2;}
8038 { (exit 1); exit 1; }; }
8053 if test "$with_zlib" = yes; then
8054 if test "${ac_cv_header_zlib_h+set}" = set; then
8055 echo "$as_me:$LINENO: checking for zlib.h" >&5
8056 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8057 if test "${ac_cv_header_zlib_h+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8061 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8063 # Is the header compilable?
8064 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8065 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8066 cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8068 #include "confdefs.h"
8069 $ac_includes_default
8072 rm -f conftest.$ac_objext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8074 (eval $ac_compile) 2>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 ac_header_compiler=yes
8086 echo "$as_me: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 ac_header_compiler=no
8090 rm -f conftest.$ac_objext conftest.$ac_ext
8091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8092 echo "${ECHO_T}$ac_header_compiler" >&6
8094 # Is the header present?
8095 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8096 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8098 #line $LINENO "configure"
8099 #include "confdefs.h"
8102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8105 egrep -v '^ *\+' conftest.er1 >conftest.err
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } >/dev/null; then
8110 if test -s conftest.err; then
8111 ac_cpp_err=$ac_c_preproc_warn_flag
8118 if test -z "$ac_cpp_err"; then
8119 ac_header_preproc=yes
8121 echo "$as_me: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 ac_header_preproc=no
8125 rm -f conftest.err conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8127 echo "${ECHO_T}$ac_header_preproc" >&6
8129 # So? What about this header?
8130 case $ac_header_compiler:$ac_header_preproc in
8132 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8133 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8135 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8137 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8138 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8140 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8142 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8144 echo "$as_me:$LINENO: checking for zlib.h" >&5
8145 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8146 if test "${ac_cv_header_zlib_h+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 ac_cv_header_zlib_h=$ac_header_preproc
8151 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8152 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8155 if test $ac_cv_header_zlib_h = yes; then
8158 { { echo "$as_me:$LINENO: error: zlib header not found
8159 If you have zlib already installed, see config.log for details on the
8160 failure. It is possible the compiler isn't looking in the proper directory.
8161 Use --without-zlib to disable zlib support." >&5
8162 echo "$as_me: error: zlib header not found
8163 If you have zlib already installed, see config.log for details on the
8164 failure. It is possible the compiler isn't looking in the proper directory.
8165 Use --without-zlib to disable zlib support." >&2;}
8166 { (exit 1); exit 1; }; }
8172 if test "$with_krb4" = yes ; then
8173 if test "${ac_cv_header_krb_h+set}" = set; then
8174 echo "$as_me:$LINENO: checking for krb.h" >&5
8175 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8176 if test "${ac_cv_header_krb_h+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8180 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8182 # Is the header compilable?
8183 echo "$as_me:$LINENO: checking krb.h usability" >&5
8184 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8188 $ac_includes_default
8191 rm -f conftest.$ac_objext
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_header_compiler=yes
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 ac_header_compiler=no
8209 rm -f conftest.$ac_objext conftest.$ac_ext
8210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8211 echo "${ECHO_T}$ac_header_compiler" >&6
8213 # Is the header present?
8214 echo "$as_me:$LINENO: checking krb.h presence" >&5
8215 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8216 cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8218 #include "confdefs.h"
8221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8224 egrep -v '^ *\+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } >/dev/null; then
8229 if test -s conftest.err; then
8230 ac_cpp_err=$ac_c_preproc_warn_flag
8237 if test -z "$ac_cpp_err"; then
8238 ac_header_preproc=yes
8240 echo "$as_me: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8242 ac_header_preproc=no
8244 rm -f conftest.err conftest.$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8246 echo "${ECHO_T}$ac_header_preproc" >&6
8248 # So? What about this header?
8249 case $ac_header_compiler:$ac_header_preproc in
8251 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8252 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8254 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8256 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8257 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8258 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8259 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8261 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8263 echo "$as_me:$LINENO: checking for krb.h" >&5
8264 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8265 if test "${ac_cv_header_krb_h+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 ac_cv_header_krb_h=$ac_header_preproc
8270 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8271 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8274 if test $ac_cv_header_krb_h = yes; then
8277 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8278 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8279 { (exit 1); exit 1; }; }
8285 if test "$with_krb5" = yes ; then
8286 if test "${ac_cv_header_krb5_h+set}" = set; then
8287 echo "$as_me:$LINENO: checking for krb5.h" >&5
8288 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8289 if test "${ac_cv_header_krb5_h+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8293 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8295 # Is the header compilable?
8296 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8297 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 #include "confdefs.h"
8301 $ac_includes_default
8304 rm -f conftest.$ac_objext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8306 (eval $ac_compile) 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_header_compiler=yes
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 ac_header_compiler=no
8322 rm -f conftest.$ac_objext conftest.$ac_ext
8323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8324 echo "${ECHO_T}$ac_header_compiler" >&6
8326 # Is the header present?
8327 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8328 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8331 #include "confdefs.h"
8334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8337 egrep -v '^ *\+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } >/dev/null; then
8342 if test -s conftest.err; then
8343 ac_cpp_err=$ac_c_preproc_warn_flag
8350 if test -z "$ac_cpp_err"; then
8351 ac_header_preproc=yes
8353 echo "$as_me: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8355 ac_header_preproc=no
8357 rm -f conftest.err conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8359 echo "${ECHO_T}$ac_header_preproc" >&6
8361 # So? What about this header?
8362 case $ac_header_compiler:$ac_header_preproc in
8364 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8365 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8369 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8370 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8372 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8374 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8376 echo "$as_me:$LINENO: checking for krb5.h" >&5
8377 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8378 if test "${ac_cv_header_krb5_h+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 ac_cv_header_krb5_h=$ac_header_preproc
8383 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8384 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8387 if test $ac_cv_header_krb5_h = yes; then
8390 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8391 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8392 { (exit 1); exit 1; }; }
8396 if test "${ac_cv_header_com_err_h+set}" = set; then
8397 echo "$as_me:$LINENO: checking for com_err.h" >&5
8398 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8399 if test "${ac_cv_header_com_err_h+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8403 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8405 # Is the header compilable?
8406 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8407 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line $LINENO "configure"
8410 #include "confdefs.h"
8411 $ac_includes_default
8412 #include <com_err.h>
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_header_compiler=yes
8428 echo "$as_me: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8430 ac_header_compiler=no
8432 rm -f conftest.$ac_objext conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434 echo "${ECHO_T}$ac_header_compiler" >&6
8436 # Is the header present?
8437 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8438 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 #include "confdefs.h"
8442 #include <com_err.h>
8444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8447 egrep -v '^ *\+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } >/dev/null; then
8452 if test -s conftest.err; then
8453 ac_cpp_err=$ac_c_preproc_warn_flag
8460 if test -z "$ac_cpp_err"; then
8461 ac_header_preproc=yes
8463 echo "$as_me: failed program was:" >&5
8464 cat conftest.$ac_ext >&5
8465 ac_header_preproc=no
8467 rm -f conftest.err conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8469 echo "${ECHO_T}$ac_header_preproc" >&6
8471 # So? What about this header?
8472 case $ac_header_compiler:$ac_header_preproc in
8474 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8475 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8479 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8484 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8486 echo "$as_me:$LINENO: checking for com_err.h" >&5
8487 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8488 if test "${ac_cv_header_com_err_h+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 ac_cv_header_com_err_h=$ac_header_preproc
8493 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8494 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8497 if test $ac_cv_header_com_err_h = yes; then
8500 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8501 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8502 { (exit 1); exit 1; }; }
8508 if test "$with_openssl" = yes ; then
8509 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8510 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8511 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8512 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8516 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8518 # Is the header compilable?
8519 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8520 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 #include "confdefs.h"
8524 $ac_includes_default
8525 #include <openssl/ssl.h>
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_header_compiler=yes
8541 echo "$as_me: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8543 ac_header_compiler=no
8545 rm -f conftest.$ac_objext conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8547 echo "${ECHO_T}$ac_header_compiler" >&6
8549 # Is the header present?
8550 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8551 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8552 cat >conftest.$ac_ext <<_ACEOF
8553 #line $LINENO "configure"
8554 #include "confdefs.h"
8555 #include <openssl/ssl.h>
8557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8560 egrep -v '^ *\+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } >/dev/null; then
8565 if test -s conftest.err; then
8566 ac_cpp_err=$ac_c_preproc_warn_flag
8573 if test -z "$ac_cpp_err"; then
8574 ac_header_preproc=yes
8576 echo "$as_me: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 ac_header_preproc=no
8580 rm -f conftest.err conftest.$ac_ext
8581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8582 echo "${ECHO_T}$ac_header_preproc" >&6
8584 # So? What about this header?
8585 case $ac_header_compiler:$ac_header_preproc in
8587 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8588 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8590 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8592 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8597 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8599 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8600 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8601 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8606 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8607 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8610 if test $ac_cv_header_openssl_ssl_h = yes; then
8613 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8614 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8615 { (exit 1); exit 1; }; }
8619 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8620 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8621 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8622 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8626 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8628 # Is the header compilable?
8629 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8630 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8632 #line $LINENO "configure"
8633 #include "confdefs.h"
8634 $ac_includes_default
8635 #include <openssl/err.h>
8637 rm -f conftest.$ac_objext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639 (eval $ac_compile) 2>&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 ac_header_compiler=yes
8651 echo "$as_me: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 ac_header_compiler=no
8655 rm -f conftest.$ac_objext conftest.$ac_ext
8656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8657 echo "${ECHO_T}$ac_header_compiler" >&6
8659 # Is the header present?
8660 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8661 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8662 cat >conftest.$ac_ext <<_ACEOF
8663 #line $LINENO "configure"
8664 #include "confdefs.h"
8665 #include <openssl/err.h>
8667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8670 egrep -v '^ *\+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } >/dev/null; then
8675 if test -s conftest.err; then
8676 ac_cpp_err=$ac_c_preproc_warn_flag
8683 if test -z "$ac_cpp_err"; then
8684 ac_header_preproc=yes
8686 echo "$as_me: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8688 ac_header_preproc=no
8690 rm -f conftest.err conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8692 echo "${ECHO_T}$ac_header_preproc" >&6
8694 # So? What about this header?
8695 case $ac_header_compiler:$ac_header_preproc in
8697 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8698 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8700 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8702 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8703 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8705 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8706 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8707 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8709 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8710 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8711 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 ac_cv_header_openssl_err_h=$ac_header_preproc
8716 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8717 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8720 if test $ac_cv_header_openssl_err_h = yes; then
8723 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8724 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8725 { (exit 1); exit 1; }; }
8731 if test "$with_pam" = yes ; then
8733 for ac_header in security/pam_appl.h
8735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745 # Is the header compilable?
8746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line $LINENO "configure"
8750 #include "confdefs.h"
8751 $ac_includes_default
8752 #include <$ac_header>
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756 (eval $ac_compile) 2>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_header_compiler=yes
8768 echo "$as_me: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 ac_header_compiler=no
8772 rm -f conftest.$ac_objext conftest.$ac_ext
8773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8774 echo "${ECHO_T}$ac_header_compiler" >&6
8776 # Is the header present?
8777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 #include <$ac_header>
8784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787 egrep -v '^ *\+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } >/dev/null; then
8792 if test -s conftest.err; then
8793 ac_cpp_err=$ac_c_preproc_warn_flag
8800 if test -z "$ac_cpp_err"; then
8801 ac_header_preproc=yes
8803 echo "$as_me: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8805 ac_header_preproc=no
8807 rm -f conftest.err conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8809 echo "${ECHO_T}$ac_header_preproc" >&6
8811 # So? What about this header?
8812 case $ac_header_compiler:$ac_header_preproc in
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8826 echo "$as_me:$LINENO: checking for $ac_header" >&5
8827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 eval "$as_ac_Header=$ac_header_preproc"
8833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838 cat >>confdefs.h <<_ACEOF
8839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8844 for ac_header in pam/pam_appl.h
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8848 echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8856 # Is the header compilable?
8857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8860 #line $LINENO "configure"
8861 #include "confdefs.h"
8862 $ac_includes_default
8863 #include <$ac_header>
8865 rm -f conftest.$ac_objext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867 (eval $ac_compile) 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 ac_header_compiler=yes
8879 echo "$as_me: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 ac_header_compiler=no
8883 rm -f conftest.$ac_objext conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8885 echo "${ECHO_T}$ac_header_compiler" >&6
8887 # Is the header present?
8888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8891 #line $LINENO "configure"
8892 #include "confdefs.h"
8893 #include <$ac_header>
8895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8898 egrep -v '^ *\+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } >/dev/null; then
8903 if test -s conftest.err; then
8904 ac_cpp_err=$ac_c_preproc_warn_flag
8911 if test -z "$ac_cpp_err"; then
8912 ac_header_preproc=yes
8914 echo "$as_me: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 ac_header_preproc=no
8918 rm -f conftest.err conftest.$ac_ext
8919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8920 echo "${ECHO_T}$ac_header_preproc" >&6
8922 # So? What about this header?
8923 case $ac_header_compiler:$ac_header_preproc in
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8937 echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 eval "$as_ac_Header=$ac_header_preproc"
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8949 cat >>confdefs.h <<_ACEOF
8950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8954 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8955 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8956 { (exit 1); exit 1; }; }
8967 if test "$with_rendezvous" = yes ; then
8968 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8969 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8970 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8971 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8975 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8977 # Is the header compilable?
8978 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8979 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8980 cat >conftest.$ac_ext <<_ACEOF
8981 #line $LINENO "configure"
8982 #include "confdefs.h"
8983 $ac_includes_default
8984 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -s conftest.$ac_objext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_header_compiler=yes
9000 echo "$as_me: failed program was:" >&5
9001 cat conftest.$ac_ext >&5
9002 ac_header_compiler=no
9004 rm -f conftest.$ac_objext conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9006 echo "${ECHO_T}$ac_header_compiler" >&6
9008 # Is the header present?
9009 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9010 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9011 cat >conftest.$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9013 #include "confdefs.h"
9014 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9019 egrep -v '^ *\+' conftest.er1 >conftest.err
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } >/dev/null; then
9024 if test -s conftest.err; then
9025 ac_cpp_err=$ac_c_preproc_warn_flag
9032 if test -z "$ac_cpp_err"; then
9033 ac_header_preproc=yes
9035 echo "$as_me: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9037 ac_header_preproc=no
9039 rm -f conftest.err conftest.$ac_ext
9040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 echo "${ECHO_T}$ac_header_preproc" >&6
9043 # So? What about this header?
9044 case $ac_header_compiler:$ac_header_preproc in
9046 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9051 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9052 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9054 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9058 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9059 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9060 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9065 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9066 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9069 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9072 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9073 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9074 { (exit 1); exit 1; }; }
9082 ## Types, structures, compiler characteristics
9086 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9088 if test "${ac_cv_c_const+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9092 #line $LINENO "configure"
9093 #include "confdefs.h"
9095 #ifdef F77_DUMMY_MAIN
9099 int F77_DUMMY_MAIN() { return 1; }
9104 /* FIXME: Include the comments suggested by Paul. */
9106 /* Ultrix mips cc rejects this. */
9107 typedef int charset[2];
9109 /* SunOS 4.1.1 cc rejects this. */
9110 char const *const *ccp;
9112 /* NEC SVR4.0.2 mips cc rejects this. */
9113 struct point {int x, y;};
9114 static struct point const zero = {0,0};
9115 /* AIX XL C 1.02.0.0 rejects this.
9116 It does not let you subtract one const X* pointer from another in
9117 an arm of an if-expression whose if-part is not a constant
9119 const char *g = "string";
9120 ccp = &g + (g ? g-g : 0);
9121 /* HPUX 7.0 cc rejects these. */
9124 ccp = (char const *const *) p;
9125 { /* SCO 3.2v4 cc rejects this. */
9127 char const *s = 0 ? (char *) 0 : (char const *) 0;
9131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9133 const int *foo = &x[0];
9136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9137 typedef const int *iptr;
9141 { /* AIX XL C 1.02.0.0 rejects this saying
9142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9143 struct s { int j; const int *ap[3]; };
9144 struct s *b; b->j = 5;
9146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -s conftest.$ac_objext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9169 echo "$as_me: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9173 rm -f conftest.$ac_objext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9176 echo "${ECHO_T}$ac_cv_c_const" >&6
9177 if test $ac_cv_c_const = no; then
9179 cat >>confdefs.h <<\_ACEOF
9185 echo "$as_me:$LINENO: checking for inline" >&5
9186 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9187 if test "${ac_cv_c_inline+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 for ac_kw in inline __inline__ __inline; do
9192 cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9194 #include "confdefs.h"
9196 static $ac_kw int static_foo () {return 0; }
9197 $ac_kw int foo () {return 0; }
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_cv_c_inline=$ac_kw; break
9215 echo "$as_me: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9218 rm -f conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9223 echo "${ECHO_T}$ac_cv_c_inline" >&6
9224 case $ac_cv_c_inline in
9227 cat >>confdefs.h <<\_ACEOF
9231 *) cat >>confdefs.h <<_ACEOF
9232 #define inline $ac_cv_c_inline
9237 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9238 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9239 if test "${ac_cv_c_stringize+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9244 #include "confdefs.h"
9247 char *s = x(teststring);
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250 egrep "#teststring" >/dev/null 2>&1; then
9251 ac_cv_c_stringize=no
9253 ac_cv_c_stringize=yes
9258 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9259 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9260 if test $ac_cv_c_stringize = yes; then
9262 cat >>confdefs.h <<\_ACEOF
9263 #define HAVE_STRINGIZE 1
9268 echo "$as_me:$LINENO: checking for signed types" >&5
9269 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9270 if test "${pgac_cv_c_signed+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 cat >conftest.$ac_ext <<_ACEOF
9274 #line $LINENO "configure"
9275 #include "confdefs.h"
9277 #ifdef F77_DUMMY_MAIN
9281 int F77_DUMMY_MAIN() { return 1; }
9286 signed char c; signed short s; signed int i;
9291 rm -f conftest.$ac_objext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9293 (eval $ac_compile) 2>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -s conftest.$ac_objext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 pgac_cv_c_signed=yes
9305 echo "$as_me: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9309 rm -f conftest.$ac_objext conftest.$ac_ext
9311 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9312 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9313 if test x"$pgac_cv_c_signed" = xno ; then
9315 cat >>confdefs.h <<\_ACEOF
9320 echo "$as_me:$LINENO: checking for working volatile" >&5
9321 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9322 if test "${ac_cv_c_volatile+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9329 #ifdef F77_DUMMY_MAIN
9333 int F77_DUMMY_MAIN() { return 1; }
9345 rm -f conftest.$ac_objext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -s conftest.$ac_objext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_c_volatile=yes
9359 echo "$as_me: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9363 rm -f conftest.$ac_objext conftest.$ac_ext
9365 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9366 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9367 if test $ac_cv_c_volatile = no; then
9369 cat >>confdefs.h <<\_ACEOF
9375 echo "$as_me:$LINENO: checking for __func__" >&5
9376 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9377 if test "${pgac_cv_funcname_func_support+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 #include "confdefs.h"
9384 #ifdef F77_DUMMY_MAIN
9388 int F77_DUMMY_MAIN() { return 1; }
9393 printf("%s\n", __func__);
9398 rm -f conftest.$ac_objext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9400 (eval $ac_compile) 2>&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -s conftest.$ac_objext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 pgac_cv_funcname_func_support=yes
9412 echo "$as_me: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 pgac_cv_funcname_func_support=no
9416 rm -f conftest.$ac_objext conftest.$ac_ext
9418 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9419 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9420 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9422 cat >>confdefs.h <<\_ACEOF
9423 #define HAVE_FUNCNAME__FUNC 1
9427 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9428 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9429 if test "${pgac_cv_funcname_function_support+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 cat >conftest.$ac_ext <<_ACEOF
9433 #line $LINENO "configure"
9434 #include "confdefs.h"
9436 #ifdef F77_DUMMY_MAIN
9440 int F77_DUMMY_MAIN() { return 1; }
9445 printf("%s\n", __FUNCTION__);
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 pgac_cv_funcname_function_support=yes
9464 echo "$as_me: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 pgac_cv_funcname_function_support=no
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9470 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9471 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9472 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9474 cat >>confdefs.h <<\_ACEOF
9475 #define HAVE_FUNCNAME__FUNCTION 1
9480 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9481 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9482 if test "${ac_cv_struct_tm+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9486 #line $LINENO "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9491 #ifdef F77_DUMMY_MAIN
9495 int F77_DUMMY_MAIN() { return 1; }
9500 struct tm *tp; tp->tm_sec;
9505 rm -f conftest.$ac_objext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507 (eval $ac_compile) 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_struct_tm=time.h
9519 echo "$as_me: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 ac_cv_struct_tm=sys/time.h
9523 rm -f conftest.$ac_objext conftest.$ac_ext
9525 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9526 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9527 if test $ac_cv_struct_tm = sys/time.h; then
9529 cat >>confdefs.h <<\_ACEOF
9530 #define TM_IN_SYS_TIME 1
9535 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9536 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9537 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 cat >conftest.$ac_ext <<_ACEOF
9541 #line $LINENO "configure"
9542 #include "confdefs.h"
9543 #include <sys/types.h>
9544 #include <$ac_cv_struct_tm>
9547 #ifdef F77_DUMMY_MAIN
9551 int F77_DUMMY_MAIN() { return 1; }
9556 static struct tm ac_aggr;
9557 if (ac_aggr.tm_zone)
9563 rm -f conftest.$ac_objext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest.$ac_objext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_member_struct_tm_tm_zone=yes
9577 echo "$as_me: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 ac_cv_member_struct_tm_tm_zone=no
9581 rm -f conftest.$ac_objext conftest.$ac_ext
9583 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9584 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9585 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9587 cat >>confdefs.h <<_ACEOF
9588 #define HAVE_STRUCT_TM_TM_ZONE 1
9594 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_TM_ZONE 1
9601 echo "$as_me:$LINENO: checking for tzname" >&5
9602 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9603 if test "${ac_cv_var_tzname+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9608 #include "confdefs.h"
9610 #ifndef tzname /* For SGI. */
9611 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9614 #ifdef F77_DUMMY_MAIN
9618 int F77_DUMMY_MAIN() { return 1; }
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -s conftest$ac_exeext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_var_tzname=yes
9642 echo "$as_me: failed program was:" >&5
9643 cat conftest.$ac_ext >&5
9646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9648 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9649 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9650 if test $ac_cv_var_tzname = yes; then
9652 cat >>confdefs.h <<\_ACEOF
9653 #define HAVE_TZNAME 1
9658 echo "$as_me:$LINENO: checking for union semun" >&5
9659 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9660 if test "${ac_cv_type_union_semun+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 #include "confdefs.h"
9666 #include <sys/types.h>
9667 #include <sys/ipc.h>
9668 #include <sys/sem.h>
9670 #ifdef F77_DUMMY_MAIN
9674 int F77_DUMMY_MAIN() { return 1; }
9679 if ((union semun *) 0)
9681 if (sizeof (union semun))
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest.$ac_objext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_type_union_semun=yes
9701 echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 ac_cv_type_union_semun=no
9705 rm -f conftest.$ac_objext conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9708 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9709 if test $ac_cv_type_union_semun = yes; then
9711 cat >>confdefs.h <<_ACEOF
9712 #define HAVE_UNION_SEMUN 1
9718 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9719 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9720 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 #include "confdefs.h"
9726 #include <sys/types.h>
9727 #ifdef HAVE_SYS_UN_H
9732 #ifdef F77_DUMMY_MAIN
9736 int F77_DUMMY_MAIN() { return 1; }
9741 if ((struct sockaddr_un *) 0)
9743 if (sizeof (struct sockaddr_un))
9749 rm -f conftest.$ac_objext
9750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9751 (eval $ac_compile) 2>&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -s conftest.$ac_objext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_type_struct_sockaddr_un=yes
9763 echo "$as_me: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 ac_cv_type_struct_sockaddr_un=no
9767 rm -f conftest.$ac_objext conftest.$ac_ext
9769 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9770 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9771 if test $ac_cv_type_struct_sockaddr_un = yes; then
9773 cat >>confdefs.h <<_ACEOF
9774 #define HAVE_STRUCT_SOCKADDR_UN 1
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_UNIX_SOCKETS 1
9784 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9785 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9786 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 #include "confdefs.h"
9792 #include <sys/types.h>
9793 #ifdef HAVE_SYS_SOCKET_H
9794 #include <sys/socket.h>
9798 #ifdef F77_DUMMY_MAIN
9802 int F77_DUMMY_MAIN() { return 1; }
9807 if ((struct sockaddr_storage *) 0)
9809 if (sizeof (struct sockaddr_storage))
9815 rm -f conftest.$ac_objext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9817 (eval $ac_compile) 2>&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -s conftest.$ac_objext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 ac_cv_type_struct_sockaddr_storage=yes
9829 echo "$as_me: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
9831 ac_cv_type_struct_sockaddr_storage=no
9833 rm -f conftest.$ac_objext conftest.$ac_ext
9835 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9836 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9837 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9839 cat >>confdefs.h <<_ACEOF
9840 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9846 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9847 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9848 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9852 #line $LINENO "configure"
9853 #include "confdefs.h"
9854 #include <sys/types.h>
9855 #ifdef HAVE_SYS_SOCKET_H
9856 #include <sys/socket.h>
9860 #ifdef F77_DUMMY_MAIN
9864 int F77_DUMMY_MAIN() { return 1; }
9869 static struct sockaddr_storage ac_aggr;
9870 if (ac_aggr.ss_family)
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -s conftest.$ac_objext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9890 echo "$as_me: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 ac_cv_member_struct_sockaddr_storage_ss_family=no
9894 rm -f conftest.$ac_objext conftest.$ac_ext
9896 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9897 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9898 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9906 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9907 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9908 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 #include "confdefs.h"
9914 #include <sys/types.h>
9915 #ifdef HAVE_SYS_SOCKET_H
9916 #include <sys/socket.h>
9920 #ifdef F77_DUMMY_MAIN
9924 int F77_DUMMY_MAIN() { return 1; }
9929 static struct sockaddr_storage ac_aggr;
9930 if (ac_aggr.__ss_family)
9936 rm -f conftest.$ac_objext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9938 (eval $ac_compile) 2>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -s conftest.$ac_objext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9950 echo "$as_me: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 ac_cv_member_struct_sockaddr_storage___ss_family=no
9954 rm -f conftest.$ac_objext conftest.$ac_ext
9956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9957 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9958 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9960 cat >>confdefs.h <<_ACEOF
9961 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9966 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9967 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9968 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 cat >conftest.$ac_ext <<_ACEOF
9972 #line $LINENO "configure"
9973 #include "confdefs.h"
9974 #include <sys/types.h>
9975 #ifdef HAVE_SYS_SOCKET_H
9976 #include <sys/socket.h>
9980 #ifdef F77_DUMMY_MAIN
9984 int F77_DUMMY_MAIN() { return 1; }
9989 static struct sockaddr_storage ac_aggr;
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998 (eval $ac_compile) 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -s conftest.$ac_objext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10010 echo "$as_me: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 ac_cv_member_struct_sockaddr_storage_ss_len=no
10014 rm -f conftest.$ac_objext conftest.$ac_ext
10016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10017 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10018 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10026 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10027 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10028 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10033 #include "confdefs.h"
10034 #include <sys/types.h>
10035 #ifdef HAVE_SYS_SOCKET_H
10036 #include <sys/socket.h>
10040 #ifdef F77_DUMMY_MAIN
10041 # ifdef __cplusplus
10044 int F77_DUMMY_MAIN() { return 1; }
10049 static struct sockaddr_storage ac_aggr;
10050 if (ac_aggr.__ss_len)
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058 (eval $ac_compile) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10070 echo "$as_me: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 ac_cv_member_struct_sockaddr_storage___ss_len=no
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10077 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10078 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10086 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10087 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10088 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 #include "confdefs.h"
10094 #include <sys/types.h>
10095 #ifdef HAVE_SYS_SOCKET_H
10096 #include <sys/socket.h>
10100 #ifdef F77_DUMMY_MAIN
10101 # ifdef __cplusplus
10104 int F77_DUMMY_MAIN() { return 1; }
10109 static struct sockaddr ac_aggr;
10110 if (ac_aggr.sa_len)
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -s conftest.$ac_objext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_member_struct_sockaddr_sa_len=yes
10130 echo "$as_me: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 ac_cv_member_struct_sockaddr_sa_len=no
10134 rm -f conftest.$ac_objext conftest.$ac_ext
10136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10137 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10138 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10140 cat >>confdefs.h <<_ACEOF
10141 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10147 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10148 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10149 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10154 #include "confdefs.h"
10155 #include <sys/types.h>
10156 #include <sys/socket.h>
10160 #ifdef F77_DUMMY_MAIN
10161 # ifdef __cplusplus
10164 int F77_DUMMY_MAIN() { return 1; }
10169 if ((struct addrinfo *) 0)
10171 if (sizeof (struct addrinfo))
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_type_struct_addrinfo=yes
10191 echo "$as_me: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 ac_cv_type_struct_addrinfo=no
10195 rm -f conftest.$ac_objext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10198 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10199 if test $ac_cv_type_struct_addrinfo = yes; then
10201 cat >>confdefs.h <<_ACEOF
10202 #define HAVE_STRUCT_ADDRINFO 1
10209 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10210 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10211 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 #include "confdefs.h"
10217 #include <sys/param.h>
10218 #include <sys/types.h>
10219 #include <sys/socket.h>
10220 #include <sys/ucred.h>
10222 #ifdef F77_DUMMY_MAIN
10223 # ifdef __cplusplus
10226 int F77_DUMMY_MAIN() { return 1; }
10231 if ((struct cmsgcred *) 0)
10233 if (sizeof (struct cmsgcred))
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_type_struct_cmsgcred=yes
10253 echo "$as_me: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 ac_cv_type_struct_cmsgcred=no
10257 rm -f conftest.$ac_objext conftest.$ac_ext
10259 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10260 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10261 if test $ac_cv_type_struct_cmsgcred = yes; then
10263 cat >>confdefs.h <<_ACEOF
10264 #define HAVE_STRUCT_CMSGCRED 1
10269 echo "$as_me:$LINENO: checking for struct fcred" >&5
10270 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10271 if test "${ac_cv_type_struct_fcred+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 cat >conftest.$ac_ext <<_ACEOF
10275 #line $LINENO "configure"
10276 #include "confdefs.h"
10277 #include <sys/param.h>
10278 #include <sys/types.h>
10279 #include <sys/socket.h>
10280 #include <sys/ucred.h>
10282 #ifdef F77_DUMMY_MAIN
10283 # ifdef __cplusplus
10286 int F77_DUMMY_MAIN() { return 1; }
10291 if ((struct fcred *) 0)
10293 if (sizeof (struct fcred))
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_cv_type_struct_fcred=yes
10313 echo "$as_me: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 ac_cv_type_struct_fcred=no
10317 rm -f conftest.$ac_objext conftest.$ac_ext
10319 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10320 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10321 if test $ac_cv_type_struct_fcred = yes; then
10323 cat >>confdefs.h <<_ACEOF
10324 #define HAVE_STRUCT_FCRED 1
10329 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10330 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10331 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10336 #include "confdefs.h"
10337 #include <sys/param.h>
10338 #include <sys/types.h>
10339 #include <sys/socket.h>
10340 #include <sys/ucred.h>
10342 #ifdef F77_DUMMY_MAIN
10343 # ifdef __cplusplus
10346 int F77_DUMMY_MAIN() { return 1; }
10351 if ((struct sockcred *) 0)
10353 if (sizeof (struct sockcred))
10359 rm -f conftest.$ac_objext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_type_struct_sockcred=yes
10373 echo "$as_me: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 ac_cv_type_struct_sockcred=no
10377 rm -f conftest.$ac_objext conftest.$ac_ext
10379 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10380 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10381 if test $ac_cv_type_struct_sockcred = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_STRUCT_SOCKCRED 1
10391 echo "$as_me:$LINENO: checking for struct option" >&5
10392 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10393 if test "${ac_cv_type_struct_option+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 cat >conftest.$ac_ext <<_ACEOF
10397 #line $LINENO "configure"
10398 #include "confdefs.h"
10399 #ifdef HAVE_GETOPT_H
10400 #include <getopt.h>
10403 #ifdef F77_DUMMY_MAIN
10404 # ifdef __cplusplus
10407 int F77_DUMMY_MAIN() { return 1; }
10412 if ((struct option *) 0)
10414 if (sizeof (struct option))
10420 rm -f conftest.$ac_objext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -s conftest.$ac_objext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_type_struct_option=yes
10434 echo "$as_me: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10436 ac_cv_type_struct_option=no
10438 rm -f conftest.$ac_objext conftest.$ac_ext
10440 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10441 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10442 if test $ac_cv_type_struct_option = yes; then
10444 cat >>confdefs.h <<_ACEOF
10445 #define HAVE_STRUCT_OPTION 1
10452 if test "$with_zlib" = yes; then
10453 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10454 # did not). While we could work around the lack of z_streamp, it
10455 # seems unwise to encourage people to use such old zlib versions...
10456 echo "$as_me:$LINENO: checking for z_streamp" >&5
10457 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10458 if test "${ac_cv_type_z_streamp+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 cat >conftest.$ac_ext <<_ACEOF
10462 #line $LINENO "configure"
10463 #include "confdefs.h"
10466 #ifdef F77_DUMMY_MAIN
10467 # ifdef __cplusplus
10470 int F77_DUMMY_MAIN() { return 1; }
10475 if ((z_streamp *) 0)
10477 if (sizeof (z_streamp))
10483 rm -f conftest.$ac_objext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10485 (eval $ac_compile) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -s conftest.$ac_objext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 ac_cv_type_z_streamp=yes
10497 echo "$as_me: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 ac_cv_type_z_streamp=no
10501 rm -f conftest.$ac_objext conftest.$ac_ext
10503 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10504 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10505 if test $ac_cv_type_z_streamp = yes; then
10508 { { echo "$as_me:$LINENO: error: zlib version is too old
10509 Use --without-zlib to disable zlib support." >&5
10510 echo "$as_me: error: zlib version is too old
10511 Use --without-zlib to disable zlib support." >&2;}
10512 { (exit 1); exit 1; }; }
10517 if test "$with_krb5" = yes; then
10518 # Check for differences between MIT and Heimdal (KTH) releases
10519 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10520 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10521 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 cat >conftest.$ac_ext <<_ACEOF
10525 #line $LINENO "configure"
10526 #include "confdefs.h"
10529 #ifdef F77_DUMMY_MAIN
10530 # ifdef __cplusplus
10533 int F77_DUMMY_MAIN() { return 1; }
10538 static krb5_ticket ac_aggr;
10539 if (ac_aggr.enc_part2)
10545 rm -f conftest.$ac_objext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547 (eval $ac_compile) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -s conftest.$ac_objext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_member_krb5_ticket_enc_part2=yes
10559 echo "$as_me: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 ac_cv_member_krb5_ticket_enc_part2=no
10563 rm -f conftest.$ac_objext conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10566 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10567 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10569 cat >>confdefs.h <<_ACEOF
10570 #define HAVE_KRB5_TICKET_ENC_PART2 1
10575 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10576 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10577 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 #include "confdefs.h"
10585 #ifdef F77_DUMMY_MAIN
10586 # ifdef __cplusplus
10589 int F77_DUMMY_MAIN() { return 1; }
10594 static krb5_ticket ac_aggr;
10595 if (ac_aggr.client)
10601 rm -f conftest.$ac_objext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603 (eval $ac_compile) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 ac_cv_member_krb5_ticket_client=yes
10615 echo "$as_me: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10617 ac_cv_member_krb5_ticket_client=no
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10621 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10622 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10623 if test $ac_cv_member_krb5_ticket_client = yes; then
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_KRB5_TICKET_CLIENT 1
10631 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10632 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10633 { (exit 1); exit 1; }; }
10638 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10639 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10640 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10645 #include "confdefs.h"
10648 #ifdef F77_DUMMY_MAIN
10649 # ifdef __cplusplus
10652 int F77_DUMMY_MAIN() { return 1; }
10657 static krb5_error ac_aggr;
10658 if (ac_aggr.text.data)
10664 rm -f conftest.$ac_objext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10666 (eval $ac_compile) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -s conftest.$ac_objext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_member_krb5_error_text_data=yes
10678 echo "$as_me: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10680 ac_cv_member_krb5_error_text_data=no
10682 rm -f conftest.$ac_objext conftest.$ac_ext
10684 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10685 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10686 if test $ac_cv_member_krb5_error_text_data = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10694 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10695 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10696 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10700 #line $LINENO "configure"
10701 #include "confdefs.h"
10704 #ifdef F77_DUMMY_MAIN
10705 # ifdef __cplusplus
10708 int F77_DUMMY_MAIN() { return 1; }
10713 static krb5_error ac_aggr;
10714 if (ac_aggr.e_data)
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ac_cv_member_krb5_error_e_data=yes
10734 echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 ac_cv_member_krb5_error_e_data=no
10738 rm -f conftest.$ac_objext conftest.$ac_ext
10740 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10741 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10742 if test $ac_cv_member_krb5_error_e_data = yes; then
10744 cat >>confdefs.h <<_ACEOF
10745 #define HAVE_KRB5_ERROR_E_DATA 1
10750 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10751 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10752 { (exit 1); exit 1; }; }
10761 ## Functions, global variables
10764 echo "$as_me:$LINENO: checking for int timezone" >&5
10765 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10766 if test "${pgac_cv_var_int_timezone+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10770 #line $LINENO "configure"
10771 #include "confdefs.h"
10774 #ifdef F77_DUMMY_MAIN
10775 # ifdef __cplusplus
10778 int F77_DUMMY_MAIN() { return 1; }
10783 res = timezone / 60;
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 pgac_cv_var_int_timezone=yes
10802 echo "$as_me: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 pgac_cv_var_int_timezone=no
10806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10809 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10810 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_INT_TIMEZONE
10817 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10818 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10819 if test "${ac_cv_func_accept_return+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 if test "${ac_cv_func_accept_arg1+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 if test "${ac_cv_func_accept_arg2+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 if test "${ac_cv_func_accept_arg3+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10832 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10833 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10834 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10835 cat >conftest.$ac_ext <<_ACEOF
10836 #line $LINENO "configure"
10837 #include "confdefs.h"
10838 #ifdef HAVE_SYS_TYPES_H
10839 #include <sys/types.h>
10841 #ifdef HAVE_SYS_SOCKET_H
10842 #include <sys/socket.h>
10844 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10845 #ifdef F77_DUMMY_MAIN
10846 # ifdef __cplusplus
10849 int F77_DUMMY_MAIN() { return 1; }
10859 rm -f conftest.$ac_objext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861 (eval $ac_compile) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -s conftest.$ac_objext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_not_found=no; break 4
10873 echo "$as_me: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10877 rm -f conftest.$ac_objext conftest.$ac_ext
10882 if test "$ac_not_found" = yes; then
10883 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10884 echo "$as_me: error: could not determine argument types" >&2;}
10885 { (exit 1); exit 1; }; }
10887 if test "$ac_cv_func_accept_arg3" = "void"; then
10888 ac_cv_func_accept_arg3=int
10898 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
10899 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10901 cat >>confdefs.h <<_ACEOF
10902 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10906 cat >>confdefs.h <<_ACEOF
10907 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10911 cat >>confdefs.h <<_ACEOF
10912 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10916 cat >>confdefs.h <<_ACEOF
10917 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10921 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10922 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10923 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 cat >conftest.$ac_ext <<_ACEOF
10927 #line $LINENO "configure"
10928 #include "confdefs.h"
10929 #include <sys/time.h>
10930 #ifdef F77_DUMMY_MAIN
10931 # ifdef __cplusplus
10934 int F77_DUMMY_MAIN() { return 1; }
10939 struct timeval *tp;
10940 struct timezone *tzp;
10941 gettimeofday(tp,tzp);
10946 rm -f conftest.$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948 (eval $ac_compile) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -s conftest.$ac_objext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 pgac_cv_func_gettimeofday_1arg=no
10960 echo "$as_me: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10962 pgac_cv_func_gettimeofday_1arg=yes
10964 rm -f conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10967 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10968 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10970 cat >>confdefs.h <<\_ACEOF
10971 #define GETTIMEOFDAY_1ARG
10978 # SunOS doesn't handle negative byte comparisons properly with +/- return
10979 echo "$as_me:$LINENO: checking for working memcmp" >&5
10980 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10981 if test "${ac_cv_func_memcmp_working+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 if test "$cross_compiling" = yes; then
10985 ac_cv_func_memcmp_working=no
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10991 #ifdef F77_DUMMY_MAIN
10992 # ifdef __cplusplus
10995 int F77_DUMMY_MAIN() { return 1; }
11001 /* Some versions of memcmp are not 8-bit clean. */
11002 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11003 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11006 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11007 or more and with at least one buffer not starting on a 4-byte boundary.
11008 William Lewis provided this test program. */
11013 for (i = 0; i < 4; i++)
11017 strcpy (a, "--------01111111");
11018 strcpy (b, "--------10000000");
11019 if (memcmp (a, b, 16) >= 0)
11029 rm -f conftest$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_func_memcmp_working=yes
11042 echo "$as_me: program exited with status $ac_status" >&5
11043 echo "$as_me: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11045 ( exit $ac_status )
11046 ac_cv_func_memcmp_working=no
11048 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11051 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11052 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11053 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11072 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11075 echo "$as_me:$LINENO: checking for $ac_func" >&5
11076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11077 if eval "test \"\${$as_ac_var+set}\" = set"; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 cat >conftest.$ac_ext <<_ACEOF
11081 #line $LINENO "configure"
11082 #include "confdefs.h"
11083 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char $ac_func (); below. */
11085 #include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error. */
11090 /* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11095 #ifdef F77_DUMMY_MAIN
11096 # ifdef __cplusplus
11099 int F77_DUMMY_MAIN() { return 1; }
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest$ac_exeext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 eval "$as_ac_var=yes"
11131 echo "$as_me: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11133 eval "$as_ac_var=no"
11135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11139 if test `eval echo '${'$as_ac_var'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11148 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11149 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11150 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 cat >conftest.$ac_ext <<_ACEOF
11154 #line $LINENO "configure"
11155 #include "confdefs.h"
11156 #include <unistd.h>
11158 #ifdef F77_DUMMY_MAIN
11159 # ifdef __cplusplus
11162 int F77_DUMMY_MAIN() { return 1; }
11168 char *p = (char *) fdatasync;
11175 rm -f conftest.$ac_objext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11177 (eval $ac_compile) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 ac_cv_have_decl_fdatasync=yes
11189 echo "$as_me: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11191 ac_cv_have_decl_fdatasync=no
11193 rm -f conftest.$ac_objext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11196 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11197 if test $ac_cv_have_decl_fdatasync = yes; then
11199 cat >>confdefs.h <<_ACEOF
11200 #define HAVE_DECL_FDATASYNC 1
11205 cat >>confdefs.h <<_ACEOF
11206 #define HAVE_DECL_FDATASYNC 0
11215 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11216 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11217 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 #include "confdefs.h"
11223 $ac_includes_default
11224 #include <netinet/in.h>
11226 #ifdef F77_DUMMY_MAIN
11227 # ifdef __cplusplus
11230 int F77_DUMMY_MAIN() { return 1; }
11235 if ((struct sockaddr_in6 *) 0)
11237 if (sizeof (struct sockaddr_in6))
11243 rm -f conftest.$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -s conftest.$ac_objext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 ac_cv_type_struct_sockaddr_in6=yes
11257 echo "$as_me: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11259 ac_cv_type_struct_sockaddr_in6=no
11261 rm -f conftest.$ac_objext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11264 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11265 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11266 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11267 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11268 if test "${ac_cv_func_inet_ntop+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11273 #include "confdefs.h"
11274 /* System header to define __stub macros and hopefully few prototypes,
11275 which can conflict with char inet_ntop (); below. */
11276 #include <assert.h>
11277 /* Override any gcc2 internal prototype to avoid an error. */
11281 /* We use char because int might match the return type of a gcc2
11282 builtin and then its argument prototype would still apply. */
11286 #ifdef F77_DUMMY_MAIN
11287 # ifdef __cplusplus
11290 int F77_DUMMY_MAIN() { return 1; }
11295 /* The GNU C library defines this for functions which it implements
11296 to always fail with ENOSYS. Some functions are actually named
11297 something starting with __ and the normal name is an alias. */
11298 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_cv_func_inet_ntop=yes
11322 echo "$as_me: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 ac_cv_func_inet_ntop=no
11326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11328 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11329 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11330 if test $ac_cv_func_inet_ntop = yes; then
11332 cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_IPV6 1
11343 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11344 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11345 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 #include "confdefs.h"
11351 #include <machine/vmparam.h>
11352 #include <sys/exec.h>
11354 #ifdef F77_DUMMY_MAIN
11355 # ifdef __cplusplus
11358 int F77_DUMMY_MAIN() { return 1; }
11363 PS_STRINGS->ps_nargvstr = 1;
11364 PS_STRINGS->ps_argvstr = "foo";
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 pgac_cv_var_PS_STRINGS=yes
11383 echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 pgac_cv_var_PS_STRINGS=no
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11389 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11390 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11391 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_PS_STRINGS
11400 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11401 # is missing. Yes, there are machines that have only one. We may
11402 # also decide to use snprintf.c if snprintf() is present but does not
11403 # have working "long long int" support -- see below.
11405 pgac_need_repl_snprintf=no
11407 for ac_func in snprintf
11409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11412 if eval "test \"\${$as_ac_var+set}\" = set"; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11417 #include "confdefs.h"
11418 /* System header to define __stub macros and hopefully few prototypes,
11419 which can conflict with char $ac_func (); below. */
11420 #include <assert.h>
11421 /* Override any gcc2 internal prototype to avoid an error. */
11425 /* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11430 #ifdef F77_DUMMY_MAIN
11431 # ifdef __cplusplus
11434 int F77_DUMMY_MAIN() { return 1; }
11439 /* The GNU C library defines this for functions which it implements
11440 to always fail with ENOSYS. Some functions are actually named
11441 something starting with __ and the normal name is an alias. */
11442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454 (eval $ac_link) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -s conftest$ac_exeext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 eval "$as_ac_var=yes"
11466 echo "$as_me: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 eval "$as_ac_var=no"
11470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11474 if test `eval echo '${'$as_ac_var'}'` = yes; then
11475 cat >>confdefs.h <<_ACEOF
11476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480 pgac_need_repl_snprintf=yes
11485 for ac_func in vsnprintf
11487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11488 echo "$as_me:$LINENO: checking for $ac_func" >&5
11489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11490 if eval "test \"\${$as_ac_var+set}\" = set"; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 cat >conftest.$ac_ext <<_ACEOF
11494 #line $LINENO "configure"
11495 #include "confdefs.h"
11496 /* System header to define __stub macros and hopefully few prototypes,
11497 which can conflict with char $ac_func (); below. */
11498 #include <assert.h>
11499 /* Override any gcc2 internal prototype to avoid an error. */
11503 /* We use char because int might match the return type of a gcc2
11504 builtin and then its argument prototype would still apply. */
11508 #ifdef F77_DUMMY_MAIN
11509 # ifdef __cplusplus
11512 int F77_DUMMY_MAIN() { return 1; }
11517 /* The GNU C library defines this for functions which it implements
11518 to always fail with ENOSYS. Some functions are actually named
11519 something starting with __ and the normal name is an alias. */
11520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11530 rm -f conftest.$ac_objext conftest$ac_exeext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532 (eval $ac_link) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -s conftest$ac_exeext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 eval "$as_ac_var=yes"
11544 echo "$as_me: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11546 eval "$as_ac_var=no"
11548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11552 if test `eval echo '${'$as_ac_var'}'` = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11558 pgac_need_repl_snprintf=yes
11564 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11565 # include/c.h will provide declarations. Note this is a separate test
11566 # from whether the functions exist in the C library --- there are
11567 # systems that have the functions but don't bother to declare them :-(
11569 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11570 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11571 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 cat >conftest.$ac_ext <<_ACEOF
11575 #line $LINENO "configure"
11576 #include "confdefs.h"
11577 $ac_includes_default
11578 #ifdef F77_DUMMY_MAIN
11579 # ifdef __cplusplus
11582 int F77_DUMMY_MAIN() { return 1; }
11588 char *p = (char *) snprintf;
11595 rm -f conftest.$ac_objext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597 (eval $ac_compile) 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -s conftest.$ac_objext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 ac_cv_have_decl_snprintf=yes
11609 echo "$as_me: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 ac_cv_have_decl_snprintf=no
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11615 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11616 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11617 if test $ac_cv_have_decl_snprintf = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define HAVE_DECL_SNPRINTF 1
11625 cat >>confdefs.h <<_ACEOF
11626 #define HAVE_DECL_SNPRINTF 0
11631 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11632 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11633 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 #include "confdefs.h"
11639 $ac_includes_default
11640 #ifdef F77_DUMMY_MAIN
11641 # ifdef __cplusplus
11644 int F77_DUMMY_MAIN() { return 1; }
11650 char *p = (char *) vsnprintf;
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_have_decl_vsnprintf=yes
11671 echo "$as_me: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11673 ac_cv_have_decl_vsnprintf=no
11675 rm -f conftest.$ac_objext conftest.$ac_ext
11677 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11678 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11679 if test $ac_cv_have_decl_vsnprintf = yes; then
11681 cat >>confdefs.h <<_ACEOF
11682 #define HAVE_DECL_VSNPRINTF 1
11687 cat >>confdefs.h <<_ACEOF
11688 #define HAVE_DECL_VSNPRINTF 0
11697 # do this one the hard way in case isinf() is a macro
11698 echo "$as_me:$LINENO: checking for isinf" >&5
11699 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11700 if test "${ac_cv_func_isinf+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11705 #include "confdefs.h"
11708 #ifdef F77_DUMMY_MAIN
11709 # ifdef __cplusplus
11712 int F77_DUMMY_MAIN() { return 1; }
11717 double x = 0.0; int res = isinf(x);
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 ac_cv_func_isinf=yes
11736 echo "$as_me: failed program was:" >&5
11737 cat conftest.$ac_ext >&5
11738 ac_cv_func_isinf=no
11740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11743 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11745 if test $ac_cv_func_isinf = yes ; then
11747 cat >>confdefs.h <<\_ACEOF
11748 #define HAVE_ISINF 1
11752 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11753 # Look for a way to implement a substitute for isinf()
11758 for ac_func in fpclass fp_class fp_class_d class
11760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11761 echo "$as_me:$LINENO: checking for $ac_func" >&5
11762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11763 if eval "test \"\${$as_ac_var+set}\" = set"; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11768 #include "confdefs.h"
11769 /* System header to define __stub macros and hopefully few prototypes,
11770 which can conflict with char $ac_func (); below. */
11771 #include <assert.h>
11772 /* Override any gcc2 internal prototype to avoid an error. */
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11781 #ifdef F77_DUMMY_MAIN
11782 # ifdef __cplusplus
11785 int F77_DUMMY_MAIN() { return 1; }
11790 /* The GNU C library defines this for functions which it implements
11791 to always fail with ENOSYS. Some functions are actually named
11792 something starting with __ and the normal name is an alias. */
11793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11803 rm -f conftest.$ac_objext conftest$ac_exeext
11804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11805 (eval $ac_link) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } &&
11809 { ac_try='test -s conftest$ac_exeext'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 eval "$as_ac_var=yes"
11817 echo "$as_me: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 eval "$as_ac_var=no"
11821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11825 if test `eval echo '${'$as_ac_var'}'` = yes; then
11826 cat >>confdefs.h <<_ACEOF
11827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11851 echo "$as_me:$LINENO: checking for $ac_func" >&5
11852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11853 if eval "test \"\${$as_ac_var+set}\" = set"; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 cat >conftest.$ac_ext <<_ACEOF
11857 #line $LINENO "configure"
11858 #include "confdefs.h"
11859 /* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char $ac_func (); below. */
11861 #include <assert.h>
11862 /* Override any gcc2 internal prototype to avoid an error. */
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11871 #ifdef F77_DUMMY_MAIN
11872 # ifdef __cplusplus
11875 int F77_DUMMY_MAIN() { return 1; }
11880 /* The GNU C library defines this for functions which it implements
11881 to always fail with ENOSYS. Some functions are actually named
11882 something starting with __ and the normal name is an alias. */
11883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895 (eval $ac_link) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 eval "$as_ac_var=yes"
11907 echo "$as_me: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11909 eval "$as_ac_var=no"
11911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11921 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11927 # system's version of getaddrinfo(), if any, may be used only if we found
11928 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11929 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11931 for ac_func in getaddrinfo
11933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11934 echo "$as_me:$LINENO: checking for $ac_func" >&5
11935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11936 if eval "test \"\${$as_ac_var+set}\" = set"; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 cat >conftest.$ac_ext <<_ACEOF
11940 #line $LINENO "configure"
11941 #include "confdefs.h"
11942 /* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func (); below. */
11944 #include <assert.h>
11945 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11954 #ifdef F77_DUMMY_MAIN
11955 # ifdef __cplusplus
11958 int F77_DUMMY_MAIN() { return 1; }
11963 /* The GNU C library defines this for functions which it implements
11964 to always fail with ENOSYS. Some functions are actually named
11965 something starting with __ and the normal name is an alias. */
11966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978 (eval $ac_link) 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -s conftest$ac_exeext'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 eval "$as_ac_var=yes"
11990 echo "$as_me: failed program was:" >&5
11991 cat conftest.$ac_ext >&5
11992 eval "$as_ac_var=no"
11994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11998 if test `eval echo '${'$as_ac_var'}'` = yes; then
11999 cat >>confdefs.h <<_ACEOF
12000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12004 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12010 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12013 # similarly, use system's getopt_long() only if system provides struct option.
12014 if test x"$ac_cv_type_struct_option" = xyes ; then
12016 for ac_func in getopt_long
12018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019 echo "$as_me:$LINENO: checking for $ac_func" >&5
12020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12021 if eval "test \"\${$as_ac_var+set}\" = set"; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 cat >conftest.$ac_ext <<_ACEOF
12025 #line $LINENO "configure"
12026 #include "confdefs.h"
12027 /* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below. */
12029 #include <assert.h>
12030 /* Override any gcc2 internal prototype to avoid an error. */
12034 /* We use char because int might match the return type of a gcc2
12035 builtin and then its argument prototype would still apply. */
12039 #ifdef F77_DUMMY_MAIN
12040 # ifdef __cplusplus
12043 int F77_DUMMY_MAIN() { return 1; }
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -s conftest$ac_exeext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 eval "$as_ac_var=yes"
12075 echo "$as_me: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12077 eval "$as_ac_var=no"
12079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12083 if test `eval echo '${'$as_ac_var'}'` = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12089 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12095 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12098 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12099 # We override the previous test that said fseeko/ftello didn't exist
12100 # OS tests are also done in include/c.h and port/fseeko.c
12101 case $host_os in bsdi*|netbsd*)
12102 ac_cv_func_fseeko=yes
12105 # Solaris has a very slow qsort in certain cases, so we replace it.
12106 case $host_os in solaris*)
12107 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12110 # Win32 can't to rename or unlink on an open file
12111 case $host_os in mingw*)
12112 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12113 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12114 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12117 if test "$with_readline" = yes; then
12118 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12119 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12120 cat >conftest.$ac_ext <<_ACEOF
12121 #line $LINENO "configure"
12122 #include "confdefs.h"
12124 #ifdef HAVE_READLINE_READLINE_H
12125 # include <readline/readline.h>
12126 #elif defined(HAVE_READLINE_H)
12127 # include <readline.h>
12130 #ifdef F77_DUMMY_MAIN
12131 # ifdef __cplusplus
12134 int F77_DUMMY_MAIN() { return 1; }
12139 rl_completion_append_character = 'x';
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -s conftest$ac_exeext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 echo "$as_me:$LINENO: result: yes" >&5
12157 echo "${ECHO_T}yes" >&6
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12164 echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12172 for ac_func in rl_completion_matches rl_filename_completion_function
12174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12175 echo "$as_me:$LINENO: checking for $ac_func" >&5
12176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12177 if eval "test \"\${$as_ac_var+set}\" = set"; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12182 #include "confdefs.h"
12183 /* System header to define __stub macros and hopefully few prototypes,
12184 which can conflict with char $ac_func (); below. */
12185 #include <assert.h>
12186 /* Override any gcc2 internal prototype to avoid an error. */
12190 /* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12195 #ifdef F77_DUMMY_MAIN
12196 # ifdef __cplusplus
12199 int F77_DUMMY_MAIN() { return 1; }
12204 /* The GNU C library defines this for functions which it implements
12205 to always fail with ENOSYS. Some functions are actually named
12206 something starting with __ and the normal name is an alias. */
12207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 eval "$as_ac_var=yes"
12231 echo "$as_me: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12233 eval "$as_ac_var=no"
12235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12239 if test `eval echo '${'$as_ac_var'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12248 for ac_func in replace_history_entry
12250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12251 echo "$as_me:$LINENO: checking for $ac_func" >&5
12252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12253 if eval "test \"\${$as_ac_var+set}\" = set"; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12258 #include "confdefs.h"
12259 /* System header to define __stub macros and hopefully few prototypes,
12260 which can conflict with char $ac_func (); below. */
12261 #include <assert.h>
12262 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12271 #ifdef F77_DUMMY_MAIN
12272 # ifdef __cplusplus
12275 int F77_DUMMY_MAIN() { return 1; }
12280 /* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
12283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 eval "$as_ac_var=yes"
12307 echo "$as_me: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 eval "$as_ac_var=no"
12311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12315 if test `eval echo '${'$as_ac_var'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12326 echo "$as_me:$LINENO: checking for finite" >&5
12327 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12330 #include "confdefs.h"
12332 #ifdef F77_DUMMY_MAIN
12333 # ifdef __cplusplus
12336 int F77_DUMMY_MAIN() { return 1; }
12341 int dummy=finite(1.0);
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12359 cat >>confdefs.h <<\_ACEOF
12360 #define HAVE_FINITE 1
12363 echo "$as_me:$LINENO: result: yes" >&5
12364 echo "${ECHO_T}yes" >&6
12366 echo "$as_me: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12368 echo "$as_me:$LINENO: result: no" >&5
12369 echo "${ECHO_T}no" >&6
12371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12373 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12374 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12376 #line $LINENO "configure"
12377 #include "confdefs.h"
12378 #include <setjmp.h>
12379 #ifdef F77_DUMMY_MAIN
12380 # ifdef __cplusplus
12383 int F77_DUMMY_MAIN() { return 1; }
12388 sigjmp_buf x; sigsetjmp(x, 1);
12393 rm -f conftest.$ac_objext conftest$ac_exeext
12394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12395 (eval $ac_link) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -s conftest$ac_exeext'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_SIGSETJMP 1
12410 echo "$as_me:$LINENO: result: yes" >&5
12411 echo "${ECHO_T}yes" >&6
12413 echo "$as_me: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12415 echo "$as_me:$LINENO: result: no" >&5
12416 echo "${ECHO_T}no" >&6
12418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12420 echo "$as_me:$LINENO: checking for syslog" >&5
12421 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12422 if test "${ac_cv_func_syslog+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 cat >conftest.$ac_ext <<_ACEOF
12426 #line $LINENO "configure"
12427 #include "confdefs.h"
12428 /* System header to define __stub macros and hopefully few prototypes,
12429 which can conflict with char syslog (); below. */
12430 #include <assert.h>
12431 /* Override any gcc2 internal prototype to avoid an error. */
12435 /* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
12440 #ifdef F77_DUMMY_MAIN
12441 # ifdef __cplusplus
12444 int F77_DUMMY_MAIN() { return 1; }
12449 /* The GNU C library defines this for functions which it implements
12450 to always fail with ENOSYS. Some functions are actually named
12451 something starting with __ and the normal name is an alias. */
12452 #if defined (__stub_syslog) || defined (__stub___syslog)
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_func_syslog=yes
12476 echo "$as_me: failed program was:" >&5
12477 cat conftest.$ac_ext >&5
12478 ac_cv_func_syslog=no
12480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12482 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12483 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12484 if test $ac_cv_func_syslog = yes; then
12485 if test "${ac_cv_header_syslog_h+set}" = set; then
12486 echo "$as_me:$LINENO: checking for syslog.h" >&5
12487 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12488 if test "${ac_cv_header_syslog_h+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12492 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12494 # Is the header compilable?
12495 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12496 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12497 cat >conftest.$ac_ext <<_ACEOF
12498 #line $LINENO "configure"
12499 #include "confdefs.h"
12500 $ac_includes_default
12501 #include <syslog.h>
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
12517 echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 ac_header_compiler=no
12521 rm -f conftest.$ac_objext conftest.$ac_ext
12522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523 echo "${ECHO_T}$ac_header_compiler" >&6
12525 # Is the header present?
12526 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12527 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12530 #include "confdefs.h"
12531 #include <syslog.h>
12533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12536 egrep -v '^ *\+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } >/dev/null; then
12541 if test -s conftest.err; then
12542 ac_cpp_err=$ac_c_preproc_warn_flag
12549 if test -z "$ac_cpp_err"; then
12550 ac_header_preproc=yes
12552 echo "$as_me: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12554 ac_header_preproc=no
12556 rm -f conftest.err conftest.$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12558 echo "${ECHO_T}$ac_header_preproc" >&6
12560 # So? What about this header?
12561 case $ac_header_compiler:$ac_header_preproc in
12563 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12564 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12566 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12568 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12569 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12571 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12573 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12575 echo "$as_me:$LINENO: checking for syslog.h" >&5
12576 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12577 if test "${ac_cv_header_syslog_h+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 ac_cv_header_syslog_h=$ac_header_preproc
12582 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12583 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12586 if test $ac_cv_header_syslog_h = yes; then
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_SYSLOG 1
12598 echo "$as_me:$LINENO: checking for optreset" >&5
12599 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12600 if test "${pgac_cv_var_int_optreset+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12605 #include "confdefs.h"
12606 #include <unistd.h>
12607 #ifdef F77_DUMMY_MAIN
12608 # ifdef __cplusplus
12611 int F77_DUMMY_MAIN() { return 1; }
12616 extern int optreset; optreset = 1;
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 pgac_cv_var_int_optreset=yes
12635 echo "$as_me: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12637 pgac_cv_var_int_optreset=no
12639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12641 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12642 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12643 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_INT_OPTRESET 1
12653 for ac_func in strtoll strtoq
12655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12656 echo "$as_me:$LINENO: checking for $ac_func" >&5
12657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12658 if eval "test \"\${$as_ac_var+set}\" = set"; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 cat >conftest.$ac_ext <<_ACEOF
12662 #line $LINENO "configure"
12663 #include "confdefs.h"
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func (); below. */
12666 #include <assert.h>
12667 /* Override any gcc2 internal prototype to avoid an error. */
12671 /* We use char because int might match the return type of a gcc2
12672 builtin and then its argument prototype would still apply. */
12676 #ifdef F77_DUMMY_MAIN
12677 # ifdef __cplusplus
12680 int F77_DUMMY_MAIN() { return 1; }
12685 /* The GNU C library defines this for functions which it implements
12686 to always fail with ENOSYS. Some functions are actually named
12687 something starting with __ and the normal name is an alias. */
12688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 eval "$as_ac_var=yes"
12712 echo "$as_me: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12714 eval "$as_ac_var=no"
12716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12720 if test `eval echo '${'$as_ac_var'}'` = yes; then
12721 cat >>confdefs.h <<_ACEOF
12722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12730 for ac_func in strtoull strtouq
12732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12733 echo "$as_me:$LINENO: checking for $ac_func" >&5
12734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12735 if eval "test \"\${$as_ac_var+set}\" = set"; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 cat >conftest.$ac_ext <<_ACEOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func (); below. */
12743 #include <assert.h>
12744 /* Override any gcc2 internal prototype to avoid an error. */
12748 /* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12753 #ifdef F77_DUMMY_MAIN
12754 # ifdef __cplusplus
12757 int F77_DUMMY_MAIN() { return 1; }
12762 /* The GNU C library defines this for functions which it implements
12763 to always fail with ENOSYS. Some functions are actually named
12764 something starting with __ and the normal name is an alias. */
12765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 eval "$as_ac_var=yes"
12789 echo "$as_me: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 eval "$as_ac_var=no"
12793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12797 if test `eval echo '${'$as_ac_var'}'` = yes; then
12798 cat >>confdefs.h <<_ACEOF
12799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12806 # Check for one of atexit() or on_exit()
12808 for ac_func in atexit
12810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12811 echo "$as_me:$LINENO: checking for $ac_func" >&5
12812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12813 if eval "test \"\${$as_ac_var+set}\" = set"; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 cat >conftest.$ac_ext <<_ACEOF
12817 #line $LINENO "configure"
12818 #include "confdefs.h"
12819 /* System header to define __stub macros and hopefully few prototypes,
12820 which can conflict with char $ac_func (); below. */
12821 #include <assert.h>
12822 /* Override any gcc2 internal prototype to avoid an error. */
12826 /* We use char because int might match the return type of a gcc2
12827 builtin and then its argument prototype would still apply. */
12831 #ifdef F77_DUMMY_MAIN
12832 # ifdef __cplusplus
12835 int F77_DUMMY_MAIN() { return 1; }
12840 /* The GNU C library defines this for functions which it implements
12841 to always fail with ENOSYS. Some functions are actually named
12842 something starting with __ and the normal name is an alias. */
12843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
12859 { ac_try='test -s conftest$ac_exeext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 eval "$as_ac_var=yes"
12867 echo "$as_me: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12869 eval "$as_ac_var=no"
12871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12875 if test `eval echo '${'$as_ac_var'}'` = yes; then
12876 cat >>confdefs.h <<_ACEOF
12877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12882 for ac_func in on_exit
12884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12885 echo "$as_me:$LINENO: checking for $ac_func" >&5
12886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12887 if eval "test \"\${$as_ac_var+set}\" = set"; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 cat >conftest.$ac_ext <<_ACEOF
12891 #line $LINENO "configure"
12892 #include "confdefs.h"
12893 /* System header to define __stub macros and hopefully few prototypes,
12894 which can conflict with char $ac_func (); below. */
12895 #include <assert.h>
12896 /* Override any gcc2 internal prototype to avoid an error. */
12900 /* We use char because int might match the return type of a gcc2
12901 builtin and then its argument prototype would still apply. */
12905 #ifdef F77_DUMMY_MAIN
12906 # ifdef __cplusplus
12909 int F77_DUMMY_MAIN() { return 1; }
12914 /* The GNU C library defines this for functions which it implements
12915 to always fail with ENOSYS. Some functions are actually named
12916 something starting with __ and the normal name is an alias. */
12917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929 (eval $ac_link) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest$ac_exeext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 eval "$as_ac_var=yes"
12941 echo "$as_me: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12943 eval "$as_ac_var=no"
12945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12949 if test `eval echo '${'$as_ac_var'}'` = yes; then
12950 cat >>confdefs.h <<_ACEOF
12951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12955 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12956 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12957 { (exit 1); exit 1; }; }
12965 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12966 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12967 if test "${ac_cv_sys_largefile_source+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 ac_cv_sys_largefile_source=no
12972 cat >conftest.$ac_ext <<_ACEOF
12973 #line $LINENO "configure"
12974 #include "confdefs.h"
12976 #ifdef F77_DUMMY_MAIN
12977 # ifdef __cplusplus
12980 int F77_DUMMY_MAIN() { return 1; }
12990 rm -f conftest.$ac_objext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992 (eval $ac_compile) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -s conftest.$ac_objext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13004 echo "$as_me: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13007 rm -f conftest.$ac_objext conftest.$ac_ext
13008 cat >conftest.$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13010 #include "confdefs.h"
13011 #define _LARGEFILE_SOURCE 1
13013 #ifdef F77_DUMMY_MAIN
13014 # ifdef __cplusplus
13017 int F77_DUMMY_MAIN() { return 1; }
13027 rm -f conftest.$ac_objext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029 (eval $ac_compile) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -s conftest.$ac_objext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_cv_sys_largefile_source=1; break
13041 echo "$as_me: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13044 rm -f conftest.$ac_objext conftest.$ac_ext
13048 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13049 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13050 if test "$ac_cv_sys_largefile_source" != no; then
13052 cat >>confdefs.h <<_ACEOF
13053 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13059 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13060 # in glibc 2.1.3, but that breaks too many other things.
13061 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13062 echo "$as_me:$LINENO: checking for fseeko" >&5
13063 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13064 if test "${ac_cv_func_fseeko+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 cat >conftest.$ac_ext <<_ACEOF
13068 #line $LINENO "configure"
13069 #include "confdefs.h"
13071 #ifdef F77_DUMMY_MAIN
13072 # ifdef __cplusplus
13075 int F77_DUMMY_MAIN() { return 1; }
13080 return fseeko && fseeko (stdin, 0, 0);
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13087 (eval $ac_link) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -s conftest$ac_exeext'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_cv_func_fseeko=yes
13099 echo "$as_me: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13101 ac_cv_func_fseeko=no
13103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13106 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13107 if test $ac_cv_func_fseeko = yes; then
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_FSEEKO 1
13119 # For each platform, we need to know about any special compile and link
13120 # libraries, and whether the normal C function names are thread-safe.
13121 # See the comment at the top of src/port/thread.c for more information.
13123 if test "$enable_thread_safety" = yes; then
13124 if test "${ac_cv_header_pthread_h+set}" = set; then
13125 echo "$as_me:$LINENO: checking for pthread.h" >&5
13126 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13127 if test "${ac_cv_header_pthread_h+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13131 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13133 # Is the header compilable?
13134 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13135 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13137 #line $LINENO "configure"
13138 #include "confdefs.h"
13139 $ac_includes_default
13140 #include <pthread.h>
13142 rm -f conftest.$ac_objext
13143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -s conftest.$ac_objext'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_header_compiler=yes
13156 echo "$as_me: failed program was:" >&5
13157 cat conftest.$ac_ext >&5
13158 ac_header_compiler=no
13160 rm -f conftest.$ac_objext conftest.$ac_ext
13161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13162 echo "${ECHO_T}$ac_header_compiler" >&6
13164 # Is the header present?
13165 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13166 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13167 cat >conftest.$ac_ext <<_ACEOF
13168 #line $LINENO "configure"
13169 #include "confdefs.h"
13170 #include <pthread.h>
13172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13175 egrep -v '^ *\+' conftest.er1 >conftest.err
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } >/dev/null; then
13180 if test -s conftest.err; then
13181 ac_cpp_err=$ac_c_preproc_warn_flag
13188 if test -z "$ac_cpp_err"; then
13189 ac_header_preproc=yes
13191 echo "$as_me: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13193 ac_header_preproc=no
13195 rm -f conftest.err conftest.$ac_ext
13196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197 echo "${ECHO_T}$ac_header_preproc" >&6
13199 # So? What about this header?
13200 case $ac_header_compiler:$ac_header_preproc in
13202 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13205 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13207 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13208 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13210 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13212 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13214 echo "$as_me:$LINENO: checking for pthread.h" >&5
13215 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13216 if test "${ac_cv_header_pthread_h+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 ac_cv_header_pthread_h=$ac_header_preproc
13221 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13222 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13225 if test $ac_cv_header_pthread_h = yes; then
13228 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13229 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13230 { (exit 1); exit 1; }; }
13235 if test "$SUPPORTS_THREADS" != yes; then
13236 { { echo "$as_me:$LINENO: error:
13237 Cannot enable threads on your platform.
13238 Please report your platform threading info to the PostgreSQL mailing lists
13239 so it can be added to the next release. Report all compile flags, link flags,
13240 functions, or libraries required for threading support.
13241 See the comment at the top of src/port/thread.c for more information.
13243 echo "$as_me: error:
13244 Cannot enable threads on your platform.
13245 Please report your platform threading info to the PostgreSQL mailing lists
13246 so it can be added to the next release. Report all compile flags, link flags,
13247 functions, or libraries required for threading support.
13248 See the comment at the top of src/port/thread.c for more information.
13250 { (exit 1); exit 1; }; }
13253 # do not use values from template file
13262 # Check for re-entrant versions of certain functions
13264 # Include special flags if threads are enabled _and_ if required for
13265 # threading on this platform. Some platforms have *_r functions but
13266 # their natively named funcs are threadsafe, and should be used instead.
13268 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13269 # functions are marked "not found", which is perfect.
13271 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13274 CFLAGS="$CFLAGS $THREAD_CFLAGS"
13275 LIBS="$LIBS $THREAD_LIBS"
13276 echo "$as_me:$LINENO: checking for strerror_r" >&5
13277 echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6
13278 if test "${ac_cv_func_strerror_r+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13283 #include "confdefs.h"
13284 /* System header to define __stub macros and hopefully few prototypes,
13285 which can conflict with char strerror_r (); below. */
13286 #include <assert.h>
13287 /* Override any gcc2 internal prototype to avoid an error. */
13291 /* We use char because int might match the return type of a gcc2
13292 builtin and then its argument prototype would still apply. */
13293 char strerror_r ();
13296 #ifdef F77_DUMMY_MAIN
13297 # ifdef __cplusplus
13300 int F77_DUMMY_MAIN() { return 1; }
13305 /* The GNU C library defines this for functions which it implements
13306 to always fail with ENOSYS. Some functions are actually named
13307 something starting with __ and the normal name is an alias. */
13308 #if defined (__stub_strerror_r) || defined (__stub___strerror_r)
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -s conftest$ac_exeext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_func_strerror_r=yes
13332 echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 ac_cv_func_strerror_r=no
13336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13338 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5
13339 echo "${ECHO_T}$ac_cv_func_strerror_r" >&6
13340 if test $ac_cv_func_strerror_r = yes; then
13343 { { echo "$as_me:$LINENO: error: strerror_r not found, required on this platform for --enable-thread-safety" >&5
13344 echo "$as_me: error: strerror_r not found, required on this platform for --enable-thread-safety" >&2;}
13345 { (exit 1); exit 1; }; }
13348 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
13349 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
13350 if test "${ac_cv_func_getpwuid_r+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 cat >conftest.$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13355 #include "confdefs.h"
13356 /* System header to define __stub macros and hopefully few prototypes,
13357 which can conflict with char getpwuid_r (); below. */
13358 #include <assert.h>
13359 /* Override any gcc2 internal prototype to avoid an error. */
13363 /* We use char because int might match the return type of a gcc2
13364 builtin and then its argument prototype would still apply. */
13365 char getpwuid_r ();
13368 #ifdef F77_DUMMY_MAIN
13369 # ifdef __cplusplus
13372 int F77_DUMMY_MAIN() { return 1; }
13377 /* The GNU C library defines this for functions which it implements
13378 to always fail with ENOSYS. Some functions are actually named
13379 something starting with __ and the normal name is an alias. */
13380 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392 (eval $ac_link) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_func_getpwuid_r=yes
13404 echo "$as_me: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13406 ac_cv_func_getpwuid_r=no
13408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13410 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
13411 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
13412 if test $ac_cv_func_getpwuid_r = yes; then
13415 { { echo "$as_me:$LINENO: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&5
13416 echo "$as_me: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&2;}
13417 { (exit 1); exit 1; }; }
13420 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
13421 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
13422 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 cat >conftest.$ac_ext <<_ACEOF
13426 #line $LINENO "configure"
13427 #include "confdefs.h"
13428 /* System header to define __stub macros and hopefully few prototypes,
13429 which can conflict with char gethostbyname_r (); below. */
13430 #include <assert.h>
13431 /* Override any gcc2 internal prototype to avoid an error. */
13435 /* We use char because int might match the return type of a gcc2
13436 builtin and then its argument prototype would still apply. */
13437 char gethostbyname_r ();
13440 #ifdef F77_DUMMY_MAIN
13441 # ifdef __cplusplus
13444 int F77_DUMMY_MAIN() { return 1; }
13449 /* The GNU C library defines this for functions which it implements
13450 to always fail with ENOSYS. Some functions are actually named
13451 something starting with __ and the normal name is an alias. */
13452 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
13455 f = gethostbyname_r;
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_func_gethostbyname_r=yes
13476 echo "$as_me: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13478 ac_cv_func_gethostbyname_r=no
13480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13482 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
13483 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
13484 if test $ac_cv_func_gethostbyname_r = yes; then
13487 { { echo "$as_me:$LINENO: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&5
13488 echo "$as_me: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&2;}
13489 { (exit 1); exit 1; }; }
13497 # This test makes sure that run tests work at all. Sometimes a shared
13498 # library is found by the linker, but the runtime linker can't find it.
13499 # This check should come after all modifications of compiler or linker
13500 # variables, and before any other run tests.
13501 echo "$as_me:$LINENO: checking test program" >&5
13502 echo $ECHO_N "checking test program... $ECHO_C" >&6
13503 if test "$cross_compiling" = yes; then
13504 echo "$as_me:$LINENO: result: cross-compiling" >&5
13505 echo "${ECHO_T}cross-compiling" >&6
13507 cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13509 #include "confdefs.h"
13510 int main() { return 0; }
13512 rm -f conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 echo "$as_me:$LINENO: result: ok" >&5
13524 echo "${ECHO_T}ok" >&6
13526 echo "$as_me: program exited with status $ac_status" >&5
13527 echo "$as_me: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13529 ( exit $ac_status )
13530 echo "$as_me:$LINENO: result: failed" >&5
13531 echo "${ECHO_T}failed" >&6
13532 { { echo "$as_me:$LINENO: error:
13533 *** Could not execute a simple test program. This may be a problem
13534 *** related to locating shared libraries. Check the file 'config.log'
13535 *** for the exact reason." >&5
13536 echo "$as_me: error:
13537 *** Could not execute a simple test program. This may be a problem
13538 *** related to locating shared libraries. Check the file 'config.log'
13539 *** for the exact reason." >&2;}
13540 { (exit 1); exit 1; }; }
13542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13547 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13548 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13549 if test "${pgac_cv_type_long_int_64+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 if test "$cross_compiling" = yes; then
13553 # If cross-compiling, check the size reported by the compiler and
13554 # trust that the arithmetic works.
13555 cat >conftest.$ac_ext <<_ACEOF
13556 #line $LINENO "configure"
13557 #include "confdefs.h"
13559 #ifdef F77_DUMMY_MAIN
13560 # ifdef __cplusplus
13563 int F77_DUMMY_MAIN() { return 1; }
13568 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -s conftest.$ac_objext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 pgac_cv_type_long_int_64=yes
13589 echo "$as_me: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 pgac_cv_type_long_int_64=no
13593 rm -f conftest.$ac_objext conftest.$ac_ext
13595 cat >conftest.$ac_ext <<_ACEOF
13596 #line $LINENO "configure"
13597 #include "confdefs.h"
13598 typedef long int int64;
13601 * These are globals to discourage the compiler from folding all the
13602 * arithmetic tests down to compile-time constants.
13604 int64 a = 20000001;
13605 int64 b = 40000005;
13607 int does_int64_work()
13611 if (sizeof(int64) != 8)
13612 return 0; /* definitely not the right size */
13614 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13622 exit(! does_int64_work());
13625 rm -f conftest$ac_exeext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13627 (eval $ac_link) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 pgac_cv_type_long_int_64=yes
13638 echo "$as_me: program exited with status $ac_status" >&5
13639 echo "$as_me: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13641 ( exit $ac_status )
13642 pgac_cv_type_long_int_64=no
13644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13647 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13648 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13650 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13651 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13653 cat >>confdefs.h <<\_ACEOF
13654 #define HAVE_LONG_INT_64
13660 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13661 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13662 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13663 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 if test "$cross_compiling" = yes; then
13667 # If cross-compiling, check the size reported by the compiler and
13668 # trust that the arithmetic works.
13669 cat >conftest.$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 #include "confdefs.h"
13673 #ifdef F77_DUMMY_MAIN
13674 # ifdef __cplusplus
13677 int F77_DUMMY_MAIN() { return 1; }
13682 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13689 rm -f conftest.$ac_objext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13691 (eval $ac_compile) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -s conftest.$ac_objext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 pgac_cv_type_long_long_int_64=yes
13703 echo "$as_me: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
13705 pgac_cv_type_long_long_int_64=no
13707 rm -f conftest.$ac_objext conftest.$ac_ext
13709 cat >conftest.$ac_ext <<_ACEOF
13710 #line $LINENO "configure"
13711 #include "confdefs.h"
13712 typedef long long int int64;
13715 * These are globals to discourage the compiler from folding all the
13716 * arithmetic tests down to compile-time constants.
13718 int64 a = 20000001;
13719 int64 b = 40000005;
13721 int does_int64_work()
13725 if (sizeof(int64) != 8)
13726 return 0; /* definitely not the right size */
13728 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13736 exit(! does_int64_work());
13739 rm -f conftest$ac_exeext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13741 (eval $ac_link) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 pgac_cv_type_long_long_int_64=yes
13752 echo "$as_me: program exited with status $ac_status" >&5
13753 echo "$as_me: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 ( exit $ac_status )
13756 pgac_cv_type_long_long_int_64=no
13758 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13762 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13764 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13765 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13767 cat >>confdefs.h <<\_ACEOF
13768 #define HAVE_LONG_LONG_INT_64
13777 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13780 #include "confdefs.h"
13782 #define INT64CONST(x) x##LL
13783 long long int foo = INT64CONST(0x1234567890123456);
13785 #ifdef F77_DUMMY_MAIN
13786 # ifdef __cplusplus
13789 int F77_DUMMY_MAIN() { return 1; }
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try='test -s conftest.$ac_objext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13812 cat >>confdefs.h <<\_ACEOF
13813 #define HAVE_LL_CONSTANTS 1
13817 echo "$as_me: failed program was:" >&5
13818 cat conftest.$ac_ext >&5
13820 rm -f conftest.$ac_objext conftest.$ac_ext
13824 # If we found "long int" is 64 bits, assume snprintf handles it. If
13825 # we found we need to use "long long int", better check. We cope with
13826 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13827 # neither works, fall back to our own snprintf emulation (which we
13830 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13831 if test $pgac_need_repl_snprintf = no; then
13832 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13833 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13834 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 for pgac_format in '%lld' '%qd' '%I64d'; do
13838 if test "$cross_compiling" = yes; then
13839 pgac_cv_snprintf_long_long_int_format=cross; break
13841 cat >conftest.$ac_ext <<_ACEOF
13842 #line $LINENO "configure"
13843 #include "confdefs.h"
13845 typedef long long int int64;
13846 #define INT64_FORMAT "$pgac_format"
13848 int64 a = 20000001;
13849 int64 b = 40000005;
13851 int does_int64_snprintf_work()
13856 if (sizeof(int64) != 8)
13857 return 0; /* doesn't look like the right size */
13860 snprintf(buf, 100, INT64_FORMAT, c);
13861 if (strcmp(buf, "800000140000005") != 0)
13862 return 0; /* either multiply or snprintf is busted */
13866 exit(! does_int64_snprintf_work());
13869 rm -f conftest$ac_exeext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13871 (eval $ac_link) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13882 echo "$as_me: program exited with status $ac_status" >&5
13883 echo "$as_me: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13886 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13891 LONG_LONG_INT_FORMAT=''
13893 case $pgac_cv_snprintf_long_long_int_format in
13894 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13895 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13896 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13897 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13898 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13899 *) echo "$as_me:$LINENO: result: none" >&5
13900 echo "${ECHO_T}none" >&6;;
13902 if test "$LONG_LONG_INT_FORMAT" = ""; then
13903 # Force usage of our own snprintf, since system snprintf is broken
13904 pgac_need_repl_snprintf=yes
13905 LONG_LONG_INT_FORMAT='%lld'
13908 # Here if we previously decided we needed to use our own snprintf
13909 LONG_LONG_INT_FORMAT='%lld'
13911 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13913 # Here if we are not using 'long long int' at all
13914 INT64_FORMAT='"%ld"'
13918 cat >>confdefs.h <<_ACEOF
13919 #define INT64_FORMAT $INT64_FORMAT
13923 if test $pgac_need_repl_snprintf = yes; then
13924 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13927 # Need a #define for the size of Datum (unsigned long)
13928 echo "$as_me:$LINENO: checking for unsigned long" >&5
13929 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13930 if test "${ac_cv_type_unsigned_long+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 cat >conftest.$ac_ext <<_ACEOF
13934 #line $LINENO "configure"
13935 #include "confdefs.h"
13936 $ac_includes_default
13937 #ifdef F77_DUMMY_MAIN
13938 # ifdef __cplusplus
13941 int F77_DUMMY_MAIN() { return 1; }
13946 if ((unsigned long *) 0)
13948 if (sizeof (unsigned long))
13954 rm -f conftest.$ac_objext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956 (eval $ac_compile) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -s conftest.$ac_objext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_type_unsigned_long=yes
13968 echo "$as_me: failed program was:" >&5
13969 cat conftest.$ac_ext >&5
13970 ac_cv_type_unsigned_long=no
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13974 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13975 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13977 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13978 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13979 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 if test "$ac_cv_type_unsigned_long" = yes; then
13983 # The cast to unsigned long works around a bug in the HP C Compiler
13984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13986 # This bug is HP SR number 8606223364.
13987 if test "$cross_compiling" = yes; then
13988 # Depending upon the size, compute the lo and hi bounds.
13989 cat >conftest.$ac_ext <<_ACEOF
13990 #line $LINENO "configure"
13991 #include "confdefs.h"
13992 $ac_includes_default
13993 #ifdef F77_DUMMY_MAIN
13994 # ifdef __cplusplus
13997 int F77_DUMMY_MAIN() { return 1; }
14002 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -s conftest.$ac_objext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026 $ac_includes_default
14027 #ifdef F77_DUMMY_MAIN
14028 # ifdef __cplusplus
14031 int F77_DUMMY_MAIN() { return 1; }
14036 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_hi=$ac_mid; break
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 ac_lo=`expr $ac_mid + 1`
14060 if test $ac_lo -le $ac_mid; then
14064 ac_mid=`expr 2 '*' $ac_mid + 1`
14066 rm -f conftest.$ac_objext conftest.$ac_ext
14069 echo "$as_me: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 cat >conftest.$ac_ext <<_ACEOF
14072 #line $LINENO "configure"
14073 #include "confdefs.h"
14074 $ac_includes_default
14075 #ifdef F77_DUMMY_MAIN
14076 # ifdef __cplusplus
14079 int F77_DUMMY_MAIN() { return 1; }
14084 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093 (eval $ac_compile) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14105 cat >conftest.$ac_ext <<_ACEOF
14106 #line $LINENO "configure"
14107 #include "confdefs.h"
14108 $ac_includes_default
14109 #ifdef F77_DUMMY_MAIN
14110 # ifdef __cplusplus
14113 int F77_DUMMY_MAIN() { return 1; }
14118 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127 (eval $ac_compile) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_lo=$ac_mid; break
14139 echo "$as_me: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 ac_hi=`expr '(' $ac_mid ')' - 1`
14142 if test $ac_mid -le $ac_hi; then
14146 ac_mid=`expr 2 '*' $ac_mid`
14148 rm -f conftest.$ac_objext conftest.$ac_ext
14151 echo "$as_me: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14155 rm -f conftest.$ac_objext conftest.$ac_ext
14157 rm -f conftest.$ac_objext conftest.$ac_ext
14158 # Binary search between lo and hi bounds.
14159 while test "x$ac_lo" != "x$ac_hi"; do
14160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14161 cat >conftest.$ac_ext <<_ACEOF
14162 #line $LINENO "configure"
14163 #include "confdefs.h"
14164 $ac_includes_default
14165 #ifdef F77_DUMMY_MAIN
14166 # ifdef __cplusplus
14169 int F77_DUMMY_MAIN() { return 1; }
14174 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14181 rm -f conftest.$ac_objext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14183 (eval $ac_compile) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -s conftest.$ac_objext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14195 echo "$as_me: failed program was:" >&5
14196 cat conftest.$ac_ext >&5
14197 ac_lo=`expr '(' $ac_mid ')' + 1`
14199 rm -f conftest.$ac_objext conftest.$ac_ext
14202 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14203 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14204 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14205 { (exit 1); exit 1; }; } ;;
14208 if test "$cross_compiling" = yes; then
14209 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14210 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14211 { (exit 1); exit 1; }; }
14213 cat >conftest.$ac_ext <<_ACEOF
14214 #line $LINENO "configure"
14215 #include "confdefs.h"
14216 $ac_includes_default
14217 long longval () { return (long) (sizeof (unsigned long)); }
14218 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14220 #include <stdlib.h>
14221 #ifdef F77_DUMMY_MAIN
14222 # ifdef __cplusplus
14225 int F77_DUMMY_MAIN() { return 1; }
14231 FILE *f = fopen ("conftest.val", "w");
14234 if (((long) (sizeof (unsigned long))) < 0)
14236 long i = longval ();
14237 if (i != ((long) (sizeof (unsigned long))))
14239 fprintf (f, "%ld\n", i);
14243 unsigned long i = ulongval ();
14244 if (i != ((long) (sizeof (unsigned long))))
14246 fprintf (f, "%lu\n", i);
14248 exit (ferror (f) || fclose (f) != 0);
14254 rm -f conftest$ac_exeext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14256 (eval $ac_link) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14267 echo "$as_me: program exited with status $ac_status" >&5
14268 echo "$as_me: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14270 ( exit $ac_status )
14271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14272 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14273 { (exit 1); exit 1; }; }
14275 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14280 ac_cv_sizeof_unsigned_long=0
14283 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14284 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14285 cat >>confdefs.h <<_ACEOF
14286 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14291 # Determine memory alignment requirements for the basic C data types.
14293 echo "$as_me:$LINENO: checking for short" >&5
14294 echo $ECHO_N "checking for short... $ECHO_C" >&6
14295 if test "${ac_cv_type_short+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 cat >conftest.$ac_ext <<_ACEOF
14299 #line $LINENO "configure"
14300 #include "confdefs.h"
14301 $ac_includes_default
14302 #ifdef F77_DUMMY_MAIN
14303 # ifdef __cplusplus
14306 int F77_DUMMY_MAIN() { return 1; }
14313 if (sizeof (short))
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_cv_type_short=yes
14333 echo "$as_me: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14335 ac_cv_type_short=no
14337 rm -f conftest.$ac_objext conftest.$ac_ext
14339 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14340 echo "${ECHO_T}$ac_cv_type_short" >&6
14342 echo "$as_me:$LINENO: checking alignment of short" >&5
14343 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14344 if test "${pgac_cv_alignof_short+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 if test "$ac_cv_type_short" = yes; then
14348 if test "$cross_compiling" = yes; then
14349 # Depending upon the size, compute the lo and hi bounds.
14350 cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14352 #include "confdefs.h"
14353 $ac_includes_default
14354 struct { char filler; short field; } pgac_struct;
14355 #ifdef F77_DUMMY_MAIN
14356 # ifdef __cplusplus
14359 int F77_DUMMY_MAIN() { return 1; }
14364 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373 (eval $ac_compile) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14385 cat >conftest.$ac_ext <<_ACEOF
14386 #line $LINENO "configure"
14387 #include "confdefs.h"
14388 $ac_includes_default
14389 struct { char filler; short field; } pgac_struct;
14390 #ifdef F77_DUMMY_MAIN
14391 # ifdef __cplusplus
14394 int F77_DUMMY_MAIN() { return 1; }
14399 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_hi=$ac_mid; break
14420 echo "$as_me: failed program was:" >&5
14421 cat conftest.$ac_ext >&5
14422 ac_lo=`expr $ac_mid + 1`
14423 if test $ac_lo -le $ac_mid; then
14427 ac_mid=`expr 2 '*' $ac_mid + 1`
14429 rm -f conftest.$ac_objext conftest.$ac_ext
14432 echo "$as_me: failed program was:" >&5
14433 cat conftest.$ac_ext >&5
14434 cat >conftest.$ac_ext <<_ACEOF
14435 #line $LINENO "configure"
14436 #include "confdefs.h"
14437 $ac_includes_default
14438 struct { char filler; short field; } pgac_struct;
14439 #ifdef F77_DUMMY_MAIN
14440 # ifdef __cplusplus
14443 int F77_DUMMY_MAIN() { return 1; }
14448 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14455 rm -f conftest.$ac_objext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457 (eval $ac_compile) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 $ac_includes_default
14473 struct { char filler; short field; } pgac_struct;
14474 #ifdef F77_DUMMY_MAIN
14475 # ifdef __cplusplus
14478 int F77_DUMMY_MAIN() { return 1; }
14483 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_lo=$ac_mid; break
14504 echo "$as_me: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 ac_hi=`expr '(' $ac_mid ')' - 1`
14507 if test $ac_mid -le $ac_hi; then
14511 ac_mid=`expr 2 '*' $ac_mid`
14513 rm -f conftest.$ac_objext conftest.$ac_ext
14516 echo "$as_me: failed program was:" >&5
14517 cat conftest.$ac_ext >&5
14520 rm -f conftest.$ac_objext conftest.$ac_ext
14522 rm -f conftest.$ac_objext conftest.$ac_ext
14523 # Binary search between lo and hi bounds.
14524 while test "x$ac_lo" != "x$ac_hi"; do
14525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14526 cat >conftest.$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14528 #include "confdefs.h"
14529 $ac_includes_default
14530 struct { char filler; short field; } pgac_struct;
14531 #ifdef F77_DUMMY_MAIN
14532 # ifdef __cplusplus
14535 int F77_DUMMY_MAIN() { return 1; }
14540 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14547 rm -f conftest.$ac_objext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14549 (eval $ac_compile) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -s conftest.$ac_objext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14561 echo "$as_me: failed program was:" >&5
14562 cat conftest.$ac_ext >&5
14563 ac_lo=`expr '(' $ac_mid ')' + 1`
14565 rm -f conftest.$ac_objext conftest.$ac_ext
14568 ?*) pgac_cv_alignof_short=$ac_lo;;
14569 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14570 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14571 { (exit 1); exit 1; }; } ;;
14574 if test "$cross_compiling" = yes; then
14575 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14576 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14577 { (exit 1); exit 1; }; }
14579 cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14581 #include "confdefs.h"
14582 $ac_includes_default
14583 struct { char filler; short field; } pgac_struct;
14584 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14585 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14587 #include <stdlib.h>
14588 #ifdef F77_DUMMY_MAIN
14589 # ifdef __cplusplus
14592 int F77_DUMMY_MAIN() { return 1; }
14598 FILE *f = fopen ("conftest.val", "w");
14601 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14603 long i = longval ();
14604 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14606 fprintf (f, "%ld\n", i);
14610 unsigned long i = ulongval ();
14611 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14613 fprintf (f, "%lu\n", i);
14615 exit (ferror (f) || fclose (f) != 0);
14621 rm -f conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 pgac_cv_alignof_short=`cat conftest.val`
14634 echo "$as_me: program exited with status $ac_status" >&5
14635 echo "$as_me: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14637 ( exit $ac_status )
14638 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14639 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14640 { (exit 1); exit 1; }; }
14642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14647 pgac_cv_alignof_short=0
14650 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14651 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14652 cat >>confdefs.h <<_ACEOF
14653 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14657 echo "$as_me:$LINENO: checking for int" >&5
14658 echo $ECHO_N "checking for int... $ECHO_C" >&6
14659 if test "${ac_cv_type_int+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 cat >conftest.$ac_ext <<_ACEOF
14663 #line $LINENO "configure"
14664 #include "confdefs.h"
14665 $ac_includes_default
14666 #ifdef F77_DUMMY_MAIN
14667 # ifdef __cplusplus
14670 int F77_DUMMY_MAIN() { return 1; }
14683 rm -f conftest.$ac_objext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14685 (eval $ac_compile) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } &&
14689 { ac_try='test -s conftest.$ac_objext'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14697 echo "$as_me: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14703 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14704 echo "${ECHO_T}$ac_cv_type_int" >&6
14706 echo "$as_me:$LINENO: checking alignment of int" >&5
14707 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14708 if test "${pgac_cv_alignof_int+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 if test "$ac_cv_type_int" = yes; then
14712 if test "$cross_compiling" = yes; then
14713 # Depending upon the size, compute the lo and hi bounds.
14714 cat >conftest.$ac_ext <<_ACEOF
14715 #line $LINENO "configure"
14716 #include "confdefs.h"
14717 $ac_includes_default
14718 struct { char filler; int field; } pgac_struct;
14719 #ifdef F77_DUMMY_MAIN
14720 # ifdef __cplusplus
14723 int F77_DUMMY_MAIN() { return 1; }
14728 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -s conftest.$ac_objext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14749 cat >conftest.$ac_ext <<_ACEOF
14750 #line $LINENO "configure"
14751 #include "confdefs.h"
14752 $ac_includes_default
14753 struct { char filler; int field; } pgac_struct;
14754 #ifdef F77_DUMMY_MAIN
14755 # ifdef __cplusplus
14758 int F77_DUMMY_MAIN() { return 1; }
14763 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14770 rm -f conftest.$ac_objext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772 (eval $ac_compile) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_hi=$ac_mid; break
14784 echo "$as_me: failed program was:" >&5
14785 cat conftest.$ac_ext >&5
14786 ac_lo=`expr $ac_mid + 1`
14787 if test $ac_lo -le $ac_mid; then
14791 ac_mid=`expr 2 '*' $ac_mid + 1`
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14796 echo "$as_me: failed program was:" >&5
14797 cat conftest.$ac_ext >&5
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14800 #include "confdefs.h"
14801 $ac_includes_default
14802 struct { char filler; int field; } pgac_struct;
14803 #ifdef F77_DUMMY_MAIN
14804 # ifdef __cplusplus
14807 int F77_DUMMY_MAIN() { return 1; }
14812 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14819 rm -f conftest.$ac_objext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821 (eval $ac_compile) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14833 cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 #include "confdefs.h"
14836 $ac_includes_default
14837 struct { char filler; int field; } pgac_struct;
14838 #ifdef F77_DUMMY_MAIN
14839 # ifdef __cplusplus
14842 int F77_DUMMY_MAIN() { return 1; }
14847 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856 (eval $ac_compile) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -s conftest.$ac_objext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_lo=$ac_mid; break
14868 echo "$as_me: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14870 ac_hi=`expr '(' $ac_mid ')' - 1`
14871 if test $ac_mid -le $ac_hi; then
14875 ac_mid=`expr 2 '*' $ac_mid`
14877 rm -f conftest.$ac_objext conftest.$ac_ext
14880 echo "$as_me: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14886 rm -f conftest.$ac_objext conftest.$ac_ext
14887 # Binary search between lo and hi bounds.
14888 while test "x$ac_lo" != "x$ac_hi"; do
14889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14890 cat >conftest.$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14893 $ac_includes_default
14894 struct { char filler; int field; } pgac_struct;
14895 #ifdef F77_DUMMY_MAIN
14896 # ifdef __cplusplus
14899 int F77_DUMMY_MAIN() { return 1; }
14904 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14911 rm -f conftest.$ac_objext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913 (eval $ac_compile) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -s conftest.$ac_objext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14925 echo "$as_me: failed program was:" >&5
14926 cat conftest.$ac_ext >&5
14927 ac_lo=`expr '(' $ac_mid ')' + 1`
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14932 ?*) pgac_cv_alignof_int=$ac_lo;;
14933 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14934 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14935 { (exit 1); exit 1; }; } ;;
14938 if test "$cross_compiling" = yes; then
14939 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14940 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14941 { (exit 1); exit 1; }; }
14943 cat >conftest.$ac_ext <<_ACEOF
14944 #line $LINENO "configure"
14945 #include "confdefs.h"
14946 $ac_includes_default
14947 struct { char filler; int field; } pgac_struct;
14948 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14949 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14951 #include <stdlib.h>
14952 #ifdef F77_DUMMY_MAIN
14953 # ifdef __cplusplus
14956 int F77_DUMMY_MAIN() { return 1; }
14962 FILE *f = fopen ("conftest.val", "w");
14965 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14967 long i = longval ();
14968 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14970 fprintf (f, "%ld\n", i);
14974 unsigned long i = ulongval ();
14975 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14977 fprintf (f, "%lu\n", i);
14979 exit (ferror (f) || fclose (f) != 0);
14985 rm -f conftest$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987 (eval $ac_link) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 pgac_cv_alignof_int=`cat conftest.val`
14998 echo "$as_me: program exited with status $ac_status" >&5
14999 echo "$as_me: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15001 ( exit $ac_status )
15002 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15003 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15004 { (exit 1); exit 1; }; }
15006 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15011 pgac_cv_alignof_int=0
15014 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15015 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15016 cat >>confdefs.h <<_ACEOF
15017 #define ALIGNOF_INT $pgac_cv_alignof_int
15021 echo "$as_me:$LINENO: checking for long" >&5
15022 echo $ECHO_N "checking for long... $ECHO_C" >&6
15023 if test "${ac_cv_type_long+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15029 $ac_includes_default
15030 #ifdef F77_DUMMY_MAIN
15031 # ifdef __cplusplus
15034 int F77_DUMMY_MAIN() { return 1; }
15047 rm -f conftest.$ac_objext
15048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15049 (eval $ac_compile) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
15053 { ac_try='test -s conftest.$ac_objext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_type_long=yes
15061 echo "$as_me: failed program was:" >&5
15062 cat conftest.$ac_ext >&5
15065 rm -f conftest.$ac_objext conftest.$ac_ext
15067 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15068 echo "${ECHO_T}$ac_cv_type_long" >&6
15070 echo "$as_me:$LINENO: checking alignment of long" >&5
15071 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15072 if test "${pgac_cv_alignof_long+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 if test "$ac_cv_type_long" = yes; then
15076 if test "$cross_compiling" = yes; then
15077 # Depending upon the size, compute the lo and hi bounds.
15078 cat >conftest.$ac_ext <<_ACEOF
15079 #line $LINENO "configure"
15080 #include "confdefs.h"
15081 $ac_includes_default
15082 struct { char filler; long field; } pgac_struct;
15083 #ifdef F77_DUMMY_MAIN
15084 # ifdef __cplusplus
15087 int F77_DUMMY_MAIN() { return 1; }
15092 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101 (eval $ac_compile) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -s conftest.$ac_objext'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15113 cat >conftest.$ac_ext <<_ACEOF
15114 #line $LINENO "configure"
15115 #include "confdefs.h"
15116 $ac_includes_default
15117 struct { char filler; long field; } pgac_struct;
15118 #ifdef F77_DUMMY_MAIN
15119 # ifdef __cplusplus
15122 int F77_DUMMY_MAIN() { return 1; }
15127 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15134 rm -f conftest.$ac_objext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136 (eval $ac_compile) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -s conftest.$ac_objext'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15146 ac_hi=$ac_mid; break
15148 echo "$as_me: failed program was:" >&5
15149 cat conftest.$ac_ext >&5
15150 ac_lo=`expr $ac_mid + 1`
15151 if test $ac_lo -le $ac_mid; then
15155 ac_mid=`expr 2 '*' $ac_mid + 1`
15157 rm -f conftest.$ac_objext conftest.$ac_ext
15160 echo "$as_me: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162 cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15164 #include "confdefs.h"
15165 $ac_includes_default
15166 struct { char filler; long field; } pgac_struct;
15167 #ifdef F77_DUMMY_MAIN
15168 # ifdef __cplusplus
15171 int F77_DUMMY_MAIN() { return 1; }
15176 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15183 rm -f conftest.$ac_objext
15184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15185 (eval $ac_compile) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
15189 { ac_try='test -s conftest.$ac_objext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15197 cat >conftest.$ac_ext <<_ACEOF
15198 #line $LINENO "configure"
15199 #include "confdefs.h"
15200 $ac_includes_default
15201 struct { char filler; long field; } pgac_struct;
15202 #ifdef F77_DUMMY_MAIN
15203 # ifdef __cplusplus
15206 int F77_DUMMY_MAIN() { return 1; }
15211 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 ac_lo=$ac_mid; break
15232 echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 ac_hi=`expr '(' $ac_mid ')' - 1`
15235 if test $ac_mid -le $ac_hi; then
15239 ac_mid=`expr 2 '*' $ac_mid`
15241 rm -f conftest.$ac_objext conftest.$ac_ext
15244 echo "$as_me: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15248 rm -f conftest.$ac_objext conftest.$ac_ext
15250 rm -f conftest.$ac_objext conftest.$ac_ext
15251 # Binary search between lo and hi bounds.
15252 while test "x$ac_lo" != "x$ac_hi"; do
15253 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15254 cat >conftest.$ac_ext <<_ACEOF
15255 #line $LINENO "configure"
15256 #include "confdefs.h"
15257 $ac_includes_default
15258 struct { char filler; long field; } pgac_struct;
15259 #ifdef F77_DUMMY_MAIN
15260 # ifdef __cplusplus
15263 int F77_DUMMY_MAIN() { return 1; }
15268 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15275 rm -f conftest.$ac_objext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277 (eval $ac_compile) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15289 echo "$as_me: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 ac_lo=`expr '(' $ac_mid ')' + 1`
15293 rm -f conftest.$ac_objext conftest.$ac_ext
15296 ?*) pgac_cv_alignof_long=$ac_lo;;
15297 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15298 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15299 { (exit 1); exit 1; }; } ;;
15302 if test "$cross_compiling" = yes; then
15303 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15304 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15305 { (exit 1); exit 1; }; }
15307 cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15309 #include "confdefs.h"
15310 $ac_includes_default
15311 struct { char filler; long field; } pgac_struct;
15312 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15313 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15315 #include <stdlib.h>
15316 #ifdef F77_DUMMY_MAIN
15317 # ifdef __cplusplus
15320 int F77_DUMMY_MAIN() { return 1; }
15326 FILE *f = fopen ("conftest.val", "w");
15329 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15331 long i = longval ();
15332 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15334 fprintf (f, "%ld\n", i);
15338 unsigned long i = ulongval ();
15339 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15341 fprintf (f, "%lu\n", i);
15343 exit (ferror (f) || fclose (f) != 0);
15349 rm -f conftest$ac_exeext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351 (eval $ac_link) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 pgac_cv_alignof_long=`cat conftest.val`
15362 echo "$as_me: program exited with status $ac_status" >&5
15363 echo "$as_me: failed program was:" >&5
15364 cat conftest.$ac_ext >&5
15365 ( exit $ac_status )
15366 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15367 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15368 { (exit 1); exit 1; }; }
15370 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15375 pgac_cv_alignof_long=0
15378 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15379 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15380 cat >>confdefs.h <<_ACEOF
15381 #define ALIGNOF_LONG $pgac_cv_alignof_long
15385 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15386 echo "$as_me:$LINENO: checking for long long int" >&5
15387 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15388 if test "${ac_cv_type_long_long_int+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 cat >conftest.$ac_ext <<_ACEOF
15392 #line $LINENO "configure"
15393 #include "confdefs.h"
15394 $ac_includes_default
15395 #ifdef F77_DUMMY_MAIN
15396 # ifdef __cplusplus
15399 int F77_DUMMY_MAIN() { return 1; }
15404 if ((long long int *) 0)
15406 if (sizeof (long long int))
15412 rm -f conftest.$ac_objext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414 (eval $ac_compile) 2>&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -s conftest.$ac_objext'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_cv_type_long_long_int=yes
15426 echo "$as_me: failed program was:" >&5
15427 cat conftest.$ac_ext >&5
15428 ac_cv_type_long_long_int=no
15430 rm -f conftest.$ac_objext conftest.$ac_ext
15432 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15433 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15435 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15436 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15437 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 if test "$ac_cv_type_long_long_int" = yes; then
15441 if test "$cross_compiling" = yes; then
15442 # Depending upon the size, compute the lo and hi bounds.
15443 cat >conftest.$ac_ext <<_ACEOF
15444 #line $LINENO "configure"
15445 #include "confdefs.h"
15446 $ac_includes_default
15447 struct { char filler; long long int field; } pgac_struct;
15448 #ifdef F77_DUMMY_MAIN
15449 # ifdef __cplusplus
15452 int F77_DUMMY_MAIN() { return 1; }
15457 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15478 cat >conftest.$ac_ext <<_ACEOF
15479 #line $LINENO "configure"
15480 #include "confdefs.h"
15481 $ac_includes_default
15482 struct { char filler; long long int field; } pgac_struct;
15483 #ifdef F77_DUMMY_MAIN
15484 # ifdef __cplusplus
15487 int F77_DUMMY_MAIN() { return 1; }
15492 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15499 rm -f conftest.$ac_objext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501 (eval $ac_compile) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } &&
15505 { ac_try='test -s conftest.$ac_objext'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 ac_hi=$ac_mid; break
15513 echo "$as_me: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15515 ac_lo=`expr $ac_mid + 1`
15516 if test $ac_lo -le $ac_mid; then
15520 ac_mid=`expr 2 '*' $ac_mid + 1`
15522 rm -f conftest.$ac_objext conftest.$ac_ext
15525 echo "$as_me: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15527 cat >conftest.$ac_ext <<_ACEOF
15528 #line $LINENO "configure"
15529 #include "confdefs.h"
15530 $ac_includes_default
15531 struct { char filler; long long int field; } pgac_struct;
15532 #ifdef F77_DUMMY_MAIN
15533 # ifdef __cplusplus
15536 int F77_DUMMY_MAIN() { return 1; }
15541 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15548 rm -f conftest.$ac_objext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -s conftest.$ac_objext'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15562 cat >conftest.$ac_ext <<_ACEOF
15563 #line $LINENO "configure"
15564 #include "confdefs.h"
15565 $ac_includes_default
15566 struct { char filler; long long int field; } pgac_struct;
15567 #ifdef F77_DUMMY_MAIN
15568 # ifdef __cplusplus
15571 int F77_DUMMY_MAIN() { return 1; }
15576 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15583 rm -f conftest.$ac_objext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585 (eval $ac_compile) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -s conftest.$ac_objext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_lo=$ac_mid; break
15597 echo "$as_me: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 ac_hi=`expr '(' $ac_mid ')' - 1`
15600 if test $ac_mid -le $ac_hi; then
15604 ac_mid=`expr 2 '*' $ac_mid`
15606 rm -f conftest.$ac_objext conftest.$ac_ext
15609 echo "$as_me: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15613 rm -f conftest.$ac_objext conftest.$ac_ext
15615 rm -f conftest.$ac_objext conftest.$ac_ext
15616 # Binary search between lo and hi bounds.
15617 while test "x$ac_lo" != "x$ac_hi"; do
15618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15619 cat >conftest.$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15621 #include "confdefs.h"
15622 $ac_includes_default
15623 struct { char filler; long long int field; } pgac_struct;
15624 #ifdef F77_DUMMY_MAIN
15625 # ifdef __cplusplus
15628 int F77_DUMMY_MAIN() { return 1; }
15633 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15654 echo "$as_me: failed program was:" >&5
15655 cat conftest.$ac_ext >&5
15656 ac_lo=`expr '(' $ac_mid ')' + 1`
15658 rm -f conftest.$ac_objext conftest.$ac_ext
15661 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15662 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15663 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15664 { (exit 1); exit 1; }; } ;;
15667 if test "$cross_compiling" = yes; then
15668 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15669 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15670 { (exit 1); exit 1; }; }
15672 cat >conftest.$ac_ext <<_ACEOF
15673 #line $LINENO "configure"
15674 #include "confdefs.h"
15675 $ac_includes_default
15676 struct { char filler; long long int field; } pgac_struct;
15677 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15678 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15680 #include <stdlib.h>
15681 #ifdef F77_DUMMY_MAIN
15682 # ifdef __cplusplus
15685 int F77_DUMMY_MAIN() { return 1; }
15691 FILE *f = fopen ("conftest.val", "w");
15694 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15696 long i = longval ();
15697 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15699 fprintf (f, "%ld\n", i);
15703 unsigned long i = ulongval ();
15704 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15706 fprintf (f, "%lu\n", i);
15708 exit (ferror (f) || fclose (f) != 0);
15714 rm -f conftest$ac_exeext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716 (eval $ac_link) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 pgac_cv_alignof_long_long_int=`cat conftest.val`
15727 echo "$as_me: program exited with status $ac_status" >&5
15728 echo "$as_me: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 ( exit $ac_status )
15731 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15732 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15733 { (exit 1); exit 1; }; }
15735 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15740 pgac_cv_alignof_long_long_int=0
15743 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15744 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15745 cat >>confdefs.h <<_ACEOF
15746 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15751 echo "$as_me:$LINENO: checking for double" >&5
15752 echo $ECHO_N "checking for double... $ECHO_C" >&6
15753 if test "${ac_cv_type_double+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 cat >conftest.$ac_ext <<_ACEOF
15757 #line $LINENO "configure"
15758 #include "confdefs.h"
15759 $ac_includes_default
15760 #ifdef F77_DUMMY_MAIN
15761 # ifdef __cplusplus
15764 int F77_DUMMY_MAIN() { return 1; }
15771 if (sizeof (double))
15777 rm -f conftest.$ac_objext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15779 (eval $ac_compile) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_cv_type_double=yes
15791 echo "$as_me: failed program was:" >&5
15792 cat conftest.$ac_ext >&5
15793 ac_cv_type_double=no
15795 rm -f conftest.$ac_objext conftest.$ac_ext
15797 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15798 echo "${ECHO_T}$ac_cv_type_double" >&6
15800 echo "$as_me:$LINENO: checking alignment of double" >&5
15801 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15802 if test "${pgac_cv_alignof_double+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 if test "$ac_cv_type_double" = yes; then
15806 if test "$cross_compiling" = yes; then
15807 # Depending upon the size, compute the lo and hi bounds.
15808 cat >conftest.$ac_ext <<_ACEOF
15809 #line $LINENO "configure"
15810 #include "confdefs.h"
15811 $ac_includes_default
15812 struct { char filler; double field; } pgac_struct;
15813 #ifdef F77_DUMMY_MAIN
15814 # ifdef __cplusplus
15817 int F77_DUMMY_MAIN() { return 1; }
15822 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15829 rm -f conftest.$ac_objext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831 (eval $ac_compile) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -s conftest.$ac_objext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15843 cat >conftest.$ac_ext <<_ACEOF
15844 #line $LINENO "configure"
15845 #include "confdefs.h"
15846 $ac_includes_default
15847 struct { char filler; double field; } pgac_struct;
15848 #ifdef F77_DUMMY_MAIN
15849 # ifdef __cplusplus
15852 int F77_DUMMY_MAIN() { return 1; }
15857 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15864 rm -f conftest.$ac_objext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15866 (eval $ac_compile) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -s conftest.$ac_objext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_hi=$ac_mid; break
15878 echo "$as_me: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 ac_lo=`expr $ac_mid + 1`
15881 if test $ac_lo -le $ac_mid; then
15885 ac_mid=`expr 2 '*' $ac_mid + 1`
15887 rm -f conftest.$ac_objext conftest.$ac_ext
15890 echo "$as_me: failed program was:" >&5
15891 cat conftest.$ac_ext >&5
15892 cat >conftest.$ac_ext <<_ACEOF
15893 #line $LINENO "configure"
15894 #include "confdefs.h"
15895 $ac_includes_default
15896 struct { char filler; double field; } pgac_struct;
15897 #ifdef F77_DUMMY_MAIN
15898 # ifdef __cplusplus
15901 int F77_DUMMY_MAIN() { return 1; }
15906 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15913 rm -f conftest.$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -s conftest.$ac_objext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15927 cat >conftest.$ac_ext <<_ACEOF
15928 #line $LINENO "configure"
15929 #include "confdefs.h"
15930 $ac_includes_default
15931 struct { char filler; double field; } pgac_struct;
15932 #ifdef F77_DUMMY_MAIN
15933 # ifdef __cplusplus
15936 int F77_DUMMY_MAIN() { return 1; }
15941 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15948 rm -f conftest.$ac_objext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15950 (eval $ac_compile) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -s conftest.$ac_objext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_lo=$ac_mid; break
15962 echo "$as_me: failed program was:" >&5
15963 cat conftest.$ac_ext >&5
15964 ac_hi=`expr '(' $ac_mid ')' - 1`
15965 if test $ac_mid -le $ac_hi; then
15969 ac_mid=`expr 2 '*' $ac_mid`
15971 rm -f conftest.$ac_objext conftest.$ac_ext
15974 echo "$as_me: failed program was:" >&5
15975 cat conftest.$ac_ext >&5
15978 rm -f conftest.$ac_objext conftest.$ac_ext
15980 rm -f conftest.$ac_objext conftest.$ac_ext
15981 # Binary search between lo and hi bounds.
15982 while test "x$ac_lo" != "x$ac_hi"; do
15983 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15984 cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15986 #include "confdefs.h"
15987 $ac_includes_default
15988 struct { char filler; double field; } pgac_struct;
15989 #ifdef F77_DUMMY_MAIN
15990 # ifdef __cplusplus
15993 int F77_DUMMY_MAIN() { return 1; }
15998 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16005 rm -f conftest.$ac_objext
16006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16007 (eval $ac_compile) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
16011 { ac_try='test -s conftest.$ac_objext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16019 echo "$as_me: failed program was:" >&5
16020 cat conftest.$ac_ext >&5
16021 ac_lo=`expr '(' $ac_mid ')' + 1`
16023 rm -f conftest.$ac_objext conftest.$ac_ext
16026 ?*) pgac_cv_alignof_double=$ac_lo;;
16027 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16028 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16029 { (exit 1); exit 1; }; } ;;
16032 if test "$cross_compiling" = yes; then
16033 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16034 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16035 { (exit 1); exit 1; }; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 #line $LINENO "configure"
16039 #include "confdefs.h"
16040 $ac_includes_default
16041 struct { char filler; double field; } pgac_struct;
16042 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16043 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16045 #include <stdlib.h>
16046 #ifdef F77_DUMMY_MAIN
16047 # ifdef __cplusplus
16050 int F77_DUMMY_MAIN() { return 1; }
16056 FILE *f = fopen ("conftest.val", "w");
16059 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16061 long i = longval ();
16062 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16064 fprintf (f, "%ld\n", i);
16068 unsigned long i = ulongval ();
16069 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16071 fprintf (f, "%lu\n", i);
16073 exit (ferror (f) || fclose (f) != 0);
16079 rm -f conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 pgac_cv_alignof_double=`cat conftest.val`
16092 echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 cat conftest.$ac_ext >&5
16095 ( exit $ac_status )
16096 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16097 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16098 { (exit 1); exit 1; }; }
16100 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16105 pgac_cv_alignof_double=0
16108 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16109 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16110 cat >>confdefs.h <<_ACEOF
16111 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16116 # Compute maximum alignment of any basic type.
16117 # We assume long's alignment is at least as strong as char, short, or int;
16118 # but we must check long long (if it exists) and double.
16120 MAX_ALIGNOF=$pgac_cv_alignof_long
16121 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16122 MAX_ALIGNOF=$pgac_cv_alignof_double
16124 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16125 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16128 cat >>confdefs.h <<_ACEOF
16129 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16134 # Some platforms predefine the types int8, int16, etc. Only check
16135 # a (hopefully) representative subset.
16136 echo "$as_me:$LINENO: checking for int8" >&5
16137 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16138 if test "${ac_cv_type_int8+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16142 #line $LINENO "configure"
16143 #include "confdefs.h"
16145 #ifdef HAVE_SUPPORTDEFS_H
16146 #include <SupportDefs.h>
16149 #ifdef F77_DUMMY_MAIN
16150 # ifdef __cplusplus
16153 int F77_DUMMY_MAIN() { return 1; }
16166 rm -f conftest.$ac_objext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168 (eval $ac_compile) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try='test -s conftest.$ac_objext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_type_int8=yes
16180 echo "$as_me: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16184 rm -f conftest.$ac_objext conftest.$ac_ext
16186 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16187 echo "${ECHO_T}$ac_cv_type_int8" >&6
16188 if test $ac_cv_type_int8 = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191 #define HAVE_INT8 1
16196 echo "$as_me:$LINENO: checking for uint8" >&5
16197 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16198 if test "${ac_cv_type_uint8+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 cat >conftest.$ac_ext <<_ACEOF
16202 #line $LINENO "configure"
16203 #include "confdefs.h"
16205 #ifdef HAVE_SUPPORTDEFS_H
16206 #include <SupportDefs.h>
16209 #ifdef F77_DUMMY_MAIN
16210 # ifdef __cplusplus
16213 int F77_DUMMY_MAIN() { return 1; }
16220 if (sizeof (uint8))
16226 rm -f conftest.$ac_objext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16228 (eval $ac_compile) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -s conftest.$ac_objext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_cv_type_uint8=yes
16240 echo "$as_me: failed program was:" >&5
16241 cat conftest.$ac_ext >&5
16242 ac_cv_type_uint8=no
16244 rm -f conftest.$ac_objext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16247 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16248 if test $ac_cv_type_uint8 = yes; then
16250 cat >>confdefs.h <<_ACEOF
16251 #define HAVE_UINT8 1
16256 echo "$as_me:$LINENO: checking for int64" >&5
16257 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16258 if test "${ac_cv_type_int64+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 cat >conftest.$ac_ext <<_ACEOF
16262 #line $LINENO "configure"
16263 #include "confdefs.h"
16265 #ifdef HAVE_SUPPORTDEFS_H
16266 #include <SupportDefs.h>
16269 #ifdef F77_DUMMY_MAIN
16270 # ifdef __cplusplus
16273 int F77_DUMMY_MAIN() { return 1; }
16280 if (sizeof (int64))
16286 rm -f conftest.$ac_objext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16288 (eval $ac_compile) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -s conftest.$ac_objext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 ac_cv_type_int64=yes
16300 echo "$as_me: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16302 ac_cv_type_int64=no
16304 rm -f conftest.$ac_objext conftest.$ac_ext
16306 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16307 echo "${ECHO_T}$ac_cv_type_int64" >&6
16308 if test $ac_cv_type_int64 = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define HAVE_INT64 1
16316 echo "$as_me:$LINENO: checking for uint64" >&5
16317 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16318 if test "${ac_cv_type_uint64+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 cat >conftest.$ac_ext <<_ACEOF
16322 #line $LINENO "configure"
16323 #include "confdefs.h"
16325 #ifdef HAVE_SUPPORTDEFS_H
16326 #include <SupportDefs.h>
16329 #ifdef F77_DUMMY_MAIN
16330 # ifdef __cplusplus
16333 int F77_DUMMY_MAIN() { return 1; }
16340 if (sizeof (uint64))
16346 rm -f conftest.$ac_objext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348 (eval $ac_compile) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_type_uint64=yes
16360 echo "$as_me: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 ac_cv_type_uint64=no
16364 rm -f conftest.$ac_objext conftest.$ac_ext
16366 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16367 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16368 if test $ac_cv_type_uint64 = yes; then
16370 cat >>confdefs.h <<_ACEOF
16371 #define HAVE_UINT64 1
16378 # We also check for sig_atomic_t, which *should* be defined per ANSI
16379 # C, but is missing on some old platforms.
16380 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16381 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16382 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 cat >conftest.$ac_ext <<_ACEOF
16386 #line $LINENO "configure"
16387 #include "confdefs.h"
16388 #include <signal.h>
16390 #ifdef F77_DUMMY_MAIN
16391 # ifdef __cplusplus
16394 int F77_DUMMY_MAIN() { return 1; }
16399 if ((sig_atomic_t *) 0)
16401 if (sizeof (sig_atomic_t))
16407 rm -f conftest.$ac_objext
16408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16409 (eval $ac_compile) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
16413 { ac_try='test -s conftest.$ac_objext'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_cv_type_sig_atomic_t=yes
16421 echo "$as_me: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 ac_cv_type_sig_atomic_t=no
16425 rm -f conftest.$ac_objext conftest.$ac_ext
16427 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16428 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16429 if test $ac_cv_type_sig_atomic_t = yes; then
16431 cat >>confdefs.h <<_ACEOF
16432 #define HAVE_SIG_ATOMIC_T 1
16440 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16441 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16442 if test "${pgac_cv_func_posix_signals+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16447 #include "confdefs.h"
16448 #include <signal.h>
16450 #ifdef F77_DUMMY_MAIN
16451 # ifdef __cplusplus
16454 int F77_DUMMY_MAIN() { return 1; }
16459 struct sigaction act, oact;
16460 sigemptyset(&act.sa_mask);
16461 act.sa_flags = SA_RESTART;
16462 sigaction(0, &act, &oact);
16467 rm -f conftest.$ac_objext conftest$ac_exeext
16468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16469 (eval $ac_link) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -s conftest$ac_exeext'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16479 pgac_cv_func_posix_signals=yes
16481 echo "$as_me: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16483 pgac_cv_func_posix_signals=no
16485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16487 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16488 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16489 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16491 cat >>confdefs.h <<\_ACEOF
16492 #define HAVE_POSIX_SIGNALS
16496 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16498 if test $ac_cv_func_fseeko = yes; then
16499 # Check whether --enable-largefile or --disable-largefile was given.
16500 if test "${enable_largefile+set}" = set; then
16501 enableval="$enable_largefile"
16504 if test "$enable_largefile" != no; then
16506 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16507 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16508 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_cv_sys_largefile_CC=no
16512 if test "$GCC" != yes; then
16515 # IRIX 6.2 and later do not support large files by default,
16516 # so use the C compiler's -n32 option if that helps.
16517 cat >conftest.$ac_ext <<_ACEOF
16518 #line $LINENO "configure"
16519 #include "confdefs.h"
16520 #include <sys/types.h>
16521 /* Check that off_t can represent 2**63 - 1 correctly.
16522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16523 since some C++ compilers masquerading as C compilers
16524 incorrectly reject 9223372036854775807. */
16525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16527 && LARGE_OFF_T % 2147483647 == 1)
16529 #ifdef F77_DUMMY_MAIN
16530 # ifdef __cplusplus
16533 int F77_DUMMY_MAIN() { return 1; }
16543 rm -f conftest.$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -s conftest.$ac_objext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16557 echo "$as_me: failed program was:" >&5
16558 cat conftest.$ac_ext >&5
16560 rm -f conftest.$ac_objext
16562 rm -f conftest.$ac_objext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564 (eval $ac_compile) 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_cv_sys_largefile_CC=' -n32'; break
16576 echo "$as_me: failed program was:" >&5
16577 cat conftest.$ac_ext >&5
16579 rm -f conftest.$ac_objext
16583 rm -f conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16587 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16588 if test "$ac_cv_sys_largefile_CC" != no; then
16589 CC=$CC$ac_cv_sys_largefile_CC
16592 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16593 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16594 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 ac_cv_sys_file_offset_bits=no
16599 cat >conftest.$ac_ext <<_ACEOF
16600 #line $LINENO "configure"
16601 #include "confdefs.h"
16602 #include <sys/types.h>
16603 /* Check that off_t can represent 2**63 - 1 correctly.
16604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16605 since some C++ compilers masquerading as C compilers
16606 incorrectly reject 9223372036854775807. */
16607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16609 && LARGE_OFF_T % 2147483647 == 1)
16611 #ifdef F77_DUMMY_MAIN
16612 # ifdef __cplusplus
16615 int F77_DUMMY_MAIN() { return 1; }
16625 rm -f conftest.$ac_objext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16627 (eval $ac_compile) 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -s conftest.$ac_objext'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16639 echo "$as_me: failed program was:" >&5
16640 cat conftest.$ac_ext >&5
16642 rm -f conftest.$ac_objext conftest.$ac_ext
16643 cat >conftest.$ac_ext <<_ACEOF
16644 #line $LINENO "configure"
16645 #include "confdefs.h"
16646 #define _FILE_OFFSET_BITS 64
16647 #include <sys/types.h>
16648 /* Check that off_t can represent 2**63 - 1 correctly.
16649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16650 since some C++ compilers masquerading as C compilers
16651 incorrectly reject 9223372036854775807. */
16652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16654 && LARGE_OFF_T % 2147483647 == 1)
16656 #ifdef F77_DUMMY_MAIN
16657 # ifdef __cplusplus
16660 int F77_DUMMY_MAIN() { return 1; }
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_sys_file_offset_bits=64; break
16684 echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16687 rm -f conftest.$ac_objext conftest.$ac_ext
16691 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16692 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16693 if test "$ac_cv_sys_file_offset_bits" != no; then
16695 cat >>confdefs.h <<_ACEOF
16696 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16701 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16702 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16703 if test "${ac_cv_sys_large_files+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 ac_cv_sys_large_files=no
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16710 #include "confdefs.h"
16711 #include <sys/types.h>
16712 /* Check that off_t can represent 2**63 - 1 correctly.
16713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16714 since some C++ compilers masquerading as C compilers
16715 incorrectly reject 9223372036854775807. */
16716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16718 && LARGE_OFF_T % 2147483647 == 1)
16720 #ifdef F77_DUMMY_MAIN
16721 # ifdef __cplusplus
16724 int F77_DUMMY_MAIN() { return 1; }
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -s conftest.$ac_objext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16748 echo "$as_me: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16751 rm -f conftest.$ac_objext conftest.$ac_ext
16752 cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16754 #include "confdefs.h"
16755 #define _LARGE_FILES 1
16756 #include <sys/types.h>
16757 /* Check that off_t can represent 2**63 - 1 correctly.
16758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16759 since some C++ compilers masquerading as C compilers
16760 incorrectly reject 9223372036854775807. */
16761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16763 && LARGE_OFF_T % 2147483647 == 1)
16765 #ifdef F77_DUMMY_MAIN
16766 # ifdef __cplusplus
16769 int F77_DUMMY_MAIN() { return 1; }
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_cv_sys_large_files=1; break
16793 echo "$as_me: failed program was:" >&5
16794 cat conftest.$ac_ext >&5
16796 rm -f conftest.$ac_objext conftest.$ac_ext
16800 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16801 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16802 if test "$ac_cv_sys_large_files" != no; then
16804 cat >>confdefs.h <<_ACEOF
16805 #define _LARGE_FILES $ac_cv_sys_large_files
16815 # Select semaphore implementation type.
16816 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16818 cat >>confdefs.h <<\_ACEOF
16819 #define USE_NAMED_POSIX_SEMAPHORES 1
16822 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16824 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16830 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16833 cat >>confdefs.h <<\_ACEOF
16834 #define USE_SYSV_SEMAPHORES 1
16837 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16842 # Select shared-memory implementation type.
16844 cat >>confdefs.h <<\_ACEOF
16845 #define USE_SYSV_SHARED_MEMORY 1
16848 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16851 if test "$enable_nls" = yes ; then
16853 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16854 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16855 if test "${ac_cv_search_gettext+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 ac_func_search_save_LIBS=$LIBS
16859 ac_cv_search_gettext=no
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 #include "confdefs.h"
16864 /* Override any gcc2 internal prototype to avoid an error. */
16868 /* We use char because int might match the return type of a gcc2
16869 builtin and then its argument prototype would still apply. */
16871 #ifdef F77_DUMMY_MAIN
16872 # ifdef __cplusplus
16875 int F77_DUMMY_MAIN() { return 1; }
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16887 (eval $ac_link) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
16891 { ac_try='test -s conftest$ac_exeext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_search_gettext="none required"
16899 echo "$as_me: failed program was:" >&5
16900 cat conftest.$ac_ext >&5
16902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16903 if test "$ac_cv_search_gettext" = no; then
16904 for ac_lib in intl; do
16905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16906 cat >conftest.$ac_ext <<_ACEOF
16907 #line $LINENO "configure"
16908 #include "confdefs.h"
16910 /* Override any gcc2 internal prototype to avoid an error. */
16914 /* We use char because int might match the return type of a gcc2
16915 builtin and then its argument prototype would still apply. */
16917 #ifdef F77_DUMMY_MAIN
16918 # ifdef __cplusplus
16921 int F77_DUMMY_MAIN() { return 1; }
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_cv_search_gettext="-l$ac_lib"
16946 echo "$as_me: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16952 LIBS=$ac_func_search_save_LIBS
16954 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16955 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16956 if test "$ac_cv_search_gettext" != no; then
16957 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16960 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16961 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16962 { (exit 1); exit 1; }; }
16965 if test "${ac_cv_header_libintl_h+set}" = set; then
16966 echo "$as_me:$LINENO: checking for libintl.h" >&5
16967 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16968 if test "${ac_cv_header_libintl_h+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16972 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16974 # Is the header compilable?
16975 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16976 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16977 cat >conftest.$ac_ext <<_ACEOF
16978 #line $LINENO "configure"
16979 #include "confdefs.h"
16980 $ac_includes_default
16981 #include <libintl.h>
16983 rm -f conftest.$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985 (eval $ac_compile) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -s conftest.$ac_objext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_header_compiler=yes
16997 echo "$as_me: failed program was:" >&5
16998 cat conftest.$ac_ext >&5
16999 ac_header_compiler=no
17001 rm -f conftest.$ac_objext conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17003 echo "${ECHO_T}$ac_header_compiler" >&6
17005 # Is the header present?
17006 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17007 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17008 cat >conftest.$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 #include "confdefs.h"
17011 #include <libintl.h>
17013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17016 egrep -v '^ *\+' conftest.er1 >conftest.err
17018 cat conftest.err >&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } >/dev/null; then
17021 if test -s conftest.err; then
17022 ac_cpp_err=$ac_c_preproc_warn_flag
17029 if test -z "$ac_cpp_err"; then
17030 ac_header_preproc=yes
17032 echo "$as_me: failed program was:" >&5
17033 cat conftest.$ac_ext >&5
17034 ac_header_preproc=no
17036 rm -f conftest.err conftest.$ac_ext
17037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038 echo "${ECHO_T}$ac_header_preproc" >&6
17040 # So? What about this header?
17041 case $ac_header_compiler:$ac_header_preproc in
17043 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17044 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17046 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17048 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17049 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17050 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17051 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17053 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17055 echo "$as_me:$LINENO: checking for libintl.h" >&5
17056 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17057 if test "${ac_cv_header_libintl_h+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 ac_cv_header_libintl_h=$ac_header_preproc
17062 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17063 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17066 if test $ac_cv_header_libintl_h = yes; then
17069 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17070 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17071 { (exit 1); exit 1; }; }
17075 for ac_prog in msgfmt
17077 # Extract the first word of "$ac_prog", so it can be a program name with args.
17078 set dummy $ac_prog; ac_word=$2
17079 echo "$as_me:$LINENO: checking for $ac_word" >&5
17080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17081 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 if test -n "$MSGFMT"; then
17085 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088 for as_dir in $PATH
17091 test -z "$as_dir" && as_dir=.
17092 for ac_exec_ext in '' $ac_executable_extensions; do
17093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17094 ac_cv_prog_MSGFMT="$ac_prog"
17095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17103 MSGFMT=$ac_cv_prog_MSGFMT
17104 if test -n "$MSGFMT"; then
17105 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17106 echo "${ECHO_T}$MSGFMT" >&6
17108 echo "$as_me:$LINENO: result: no" >&5
17109 echo "${ECHO_T}no" >&6
17112 test -n "$MSGFMT" && break
17115 if test -z "$MSGFMT"; then
17116 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17117 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17118 { (exit 1); exit 1; }; }
17120 for ac_prog in msgmerge
17122 # Extract the first word of "$ac_prog", so it can be a program name with args.
17123 set dummy $ac_prog; ac_word=$2
17124 echo "$as_me:$LINENO: checking for $ac_word" >&5
17125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17126 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 if test -n "$MSGMERGE"; then
17130 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17133 for as_dir in $PATH
17136 test -z "$as_dir" && as_dir=.
17137 for ac_exec_ext in '' $ac_executable_extensions; do
17138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17139 ac_cv_prog_MSGMERGE="$ac_prog"
17140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17148 MSGMERGE=$ac_cv_prog_MSGMERGE
17149 if test -n "$MSGMERGE"; then
17150 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17151 echo "${ECHO_T}$MSGMERGE" >&6
17153 echo "$as_me:$LINENO: result: no" >&5
17154 echo "${ECHO_T}no" >&6
17157 test -n "$MSGMERGE" && break
17160 for ac_prog in xgettext
17162 # Extract the first word of "$ac_prog", so it can be a program name with args.
17163 set dummy $ac_prog; ac_word=$2
17164 echo "$as_me:$LINENO: checking for $ac_word" >&5
17165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17166 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 if test -n "$XGETTEXT"; then
17170 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17173 for as_dir in $PATH
17176 test -z "$as_dir" && as_dir=.
17177 for ac_exec_ext in '' $ac_executable_extensions; do
17178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17179 ac_cv_prog_XGETTEXT="$ac_prog"
17180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17188 XGETTEXT=$ac_cv_prog_XGETTEXT
17189 if test -n "$XGETTEXT"; then
17190 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17191 echo "${ECHO_T}$XGETTEXT" >&6
17193 echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6
17197 test -n "$XGETTEXT" && break
17201 # Note: share/locale is always the default, independent of $datadir
17202 localedir='${prefix}/share/locale'
17203 if test x"$prefix" = x"NONE"; then
17204 exp_localedir="$ac_default_prefix/share/locale"
17206 exp_localedir="$prefix/share/locale"
17211 cat >>confdefs.h <<_ACEOF
17212 #define LOCALEDIR "$exp_localedir"
17218 # Check for Tcl configuration script tclConfig.sh
17219 if test "$with_tcl" = yes; then
17220 for ac_prog in tclsh tcl
17222 # Extract the first word of "$ac_prog", so it can be a program name with args.
17223 set dummy $ac_prog; ac_word=$2
17224 echo "$as_me:$LINENO: checking for $ac_word" >&5
17225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17226 if test "${ac_cv_path_TCLSH+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17235 for as_dir in $PATH
17238 test -z "$as_dir" && as_dir=.
17239 for ac_exec_ext in '' $ac_executable_extensions; do
17240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17241 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17251 TCLSH=$ac_cv_path_TCLSH
17253 if test -n "$TCLSH"; then
17254 echo "$as_me:$LINENO: result: $TCLSH" >&5
17255 echo "${ECHO_T}$TCLSH" >&6
17257 echo "$as_me:$LINENO: result: no" >&5
17258 echo "${ECHO_T}no" >&6
17261 test -n "$TCLSH" && break
17264 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17265 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17266 # Let user override test
17267 if test -z "$TCL_CONFIG_SH"; then
17268 pgac_test_dirs="$with_tclconfig"
17270 set X $pgac_test_dirs; shift
17271 if test $# -eq 0; then
17272 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17273 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17274 { (exit 1); exit 1; }; }
17275 set X `echo 'puts $auto_path' | $TCLSH`; shift
17279 if test -r "$pgac_dir/tclConfig.sh"; then
17280 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17286 if test -z "$TCL_CONFIG_SH"; then
17287 echo "$as_me:$LINENO: result: no" >&5
17288 echo "${ECHO_T}no" >&6
17289 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17290 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17291 { (exit 1); exit 1; }; }
17293 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17294 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17300 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17301 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17302 eval TCL_LIBS=\"$TCL_LIBS\"
17303 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17304 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17308 # Check for Tk configuration script tkConfig.sh
17309 if test "$with_tk" = yes; then
17310 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17311 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17312 # Let user override test
17313 if test -z "$TK_CONFIG_SH"; then
17314 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17316 set X $pgac_test_dirs; shift
17317 if test $# -eq 0; then
17318 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17319 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17320 { (exit 1); exit 1; }; }
17321 set X `echo 'puts $auto_path' | $TCLSH`; shift
17325 if test -r "$pgac_dir/tkConfig.sh"; then
17326 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17332 if test -z "$TK_CONFIG_SH"; then
17333 echo "$as_me:$LINENO: result: no" >&5
17334 echo "${ECHO_T}no" >&6
17335 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17336 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17337 { (exit 1); exit 1; }; }
17339 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17340 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17346 eval TK_LIBS=\"$TK_LIBS\"
17347 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17348 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17354 # Check for DocBook and tools
17356 for ac_prog in onsgmls nsgmls
17358 # Extract the first word of "$ac_prog", so it can be a program name with args.
17359 set dummy $ac_prog; ac_word=$2
17360 echo "$as_me:$LINENO: checking for $ac_word" >&5
17361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17362 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 if test -n "$NSGMLS"; then
17366 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17372 test -z "$as_dir" && as_dir=.
17373 for ac_exec_ext in '' $ac_executable_extensions; do
17374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17375 ac_cv_prog_NSGMLS="$ac_prog"
17376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17384 NSGMLS=$ac_cv_prog_NSGMLS
17385 if test -n "$NSGMLS"; then
17386 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17387 echo "${ECHO_T}$NSGMLS" >&6
17389 echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6
17393 test -n "$NSGMLS" && break
17396 for ac_prog in openjade jade
17398 # Extract the first word of "$ac_prog", so it can be a program name with args.
17399 set dummy $ac_prog; ac_word=$2
17400 echo "$as_me:$LINENO: checking for $ac_word" >&5
17401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17402 if test "${ac_cv_prog_JADE+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 if test -n "$JADE"; then
17406 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17409 for as_dir in $PATH
17412 test -z "$as_dir" && as_dir=.
17413 for ac_exec_ext in '' $ac_executable_extensions; do
17414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17415 ac_cv_prog_JADE="$ac_prog"
17416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17424 JADE=$ac_cv_prog_JADE
17425 if test -n "$JADE"; then
17426 echo "$as_me:$LINENO: result: $JADE" >&5
17427 echo "${ECHO_T}$JADE" >&6
17429 echo "$as_me:$LINENO: result: no" >&5
17430 echo "${ECHO_T}no" >&6
17433 test -n "$JADE" && break
17437 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17438 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17439 if test "${pgac_cv_check_docbook+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.sgml <<EOF
17443 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17445 <title>test</title>
17447 <title>random</title>
17449 <title>testsect</title>
17456 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17457 if test $? -eq 0; then
17458 pgac_cv_check_docbook=yes
17460 pgac_cv_check_docbook=no
17462 rm -f conftest.sgml
17464 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17465 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17467 have_docbook=$pgac_cv_check_docbook
17470 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17471 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17472 if test "${pgac_cv_path_stylesheets+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 if test -n "$DOCBOOKSTYLE"; then
17476 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17478 for pgac_prefix in /usr /usr/local /opt; do
17479 for pgac_infix in share lib; do
17480 for pgac_postfix in \
17481 sgml/stylesheets/nwalsh-modular \
17482 sgml/stylesheets/docbook \
17483 sgml/docbook/dsssl/modular \
17484 sgml/docbook/stylesheet/dsssl/modular \
17485 sgml/docbook/dsssl-stylesheets
17487 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17488 if test -r "$pgac_candidate/html/docbook.dsl" \
17489 && test -r "$pgac_candidate/print/docbook.dsl"
17491 pgac_cv_path_stylesheets=$pgac_candidate
17500 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17502 if test -n "$DOCBOOKSTYLE"; then
17503 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17504 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17506 echo "$as_me:$LINENO: result: no" >&5
17507 echo "${ECHO_T}no" >&6
17509 if test -n "$DOCBOOKSTYLE"; then
17510 for ac_prog in collateindex.pl
17512 # Extract the first word of "$ac_prog", so it can be a program name with args.
17513 set dummy $ac_prog; ac_word=$2
17514 echo "$as_me:$LINENO: checking for $ac_word" >&5
17515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17516 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 case $COLLATEINDEX in
17521 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17525 for as_dir in $DOCBOOKSTYLE/bin $PATH
17528 test -z "$as_dir" && as_dir=.
17529 for ac_exec_ext in '' $ac_executable_extensions; do
17530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17531 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17541 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17543 if test -n "$COLLATEINDEX"; then
17544 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17545 echo "${ECHO_T}$COLLATEINDEX" >&6
17547 echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6
17551 test -n "$COLLATEINDEX" && break
17555 for ac_prog in collateindex.pl
17557 # Extract the first word of "$ac_prog", so it can be a program name with args.
17558 set dummy $ac_prog; ac_word=$2
17559 echo "$as_me:$LINENO: checking for $ac_word" >&5
17560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17561 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 case $COLLATEINDEX in
17566 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17570 for as_dir in $PATH
17573 test -z "$as_dir" && as_dir=.
17574 for ac_exec_ext in '' $ac_executable_extensions; do
17575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17576 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17586 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17588 if test -n "$COLLATEINDEX"; then
17589 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17590 echo "${ECHO_T}$COLLATEINDEX" >&6
17592 echo "$as_me:$LINENO: result: no" >&5
17593 echo "${ECHO_T}no" >&6
17596 test -n "$COLLATEINDEX" && break
17600 for ac_prog in sgmlspl
17602 # Extract the first word of "$ac_prog", so it can be a program name with args.
17603 set dummy $ac_prog; ac_word=$2
17604 echo "$as_me:$LINENO: checking for $ac_word" >&5
17605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17606 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 if test -n "$SGMLSPL"; then
17610 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17613 for as_dir in $PATH
17616 test -z "$as_dir" && as_dir=.
17617 for ac_exec_ext in '' $ac_executable_extensions; do
17618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17619 ac_cv_prog_SGMLSPL="$ac_prog"
17620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17628 SGMLSPL=$ac_cv_prog_SGMLSPL
17629 if test -n "$SGMLSPL"; then
17630 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17631 echo "${ECHO_T}$SGMLSPL" >&6
17633 echo "$as_me:$LINENO: result: no" >&5
17634 echo "${ECHO_T}no" >&6
17637 test -n "$SGMLSPL" && break
17642 # prepare build tree if outside source tree
17643 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17644 # Note 2: /bin/pwd might be better than shell's built-in at getting
17645 # a symlink-free name.
17646 if test "$no_create" != yes; then
17647 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17652 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17653 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17654 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17655 || { { echo "$as_me:$LINENO: error: failed" >&5
17656 echo "$as_me: error: failed" >&2;}
17657 { (exit 1); exit 1; }; }
17658 echo "$as_me:$LINENO: result: done" >&5
17659 echo "${ECHO_T}done" >&6
17664 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17667 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}"
17670 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17673 cat >confcache <<\_ACEOF
17674 # This file is a shell script that caches the results of configure
17675 # tests run on this system so they can be shared between configure
17676 # scripts and configure runs, see configure's option --config-cache.
17677 # It is not useful on other systems. If it contains results you don't
17678 # want to keep, you may remove or edit it.
17680 # config.status only pays attention to the cache file if you give it
17681 # the --recheck option to rerun configure.
17683 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17685 # following values.
17689 # The following way of writing the cache mishandles newlines in values,
17690 # but we know of no workaround that is simple, portable, and efficient.
17691 # So, don't put newlines in cache variables' values.
17692 # Ultrix sh set writes to stderr and can't be redirected directly,
17693 # and sets the high bit in the cache file unless we assign to the vars.
17696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17698 # `set' does not quote correctly, so add quotes (double-quote
17699 # substitution turns \\\\ into \\, and sed turns \\ into \).
17702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17705 # `set' quotes correctly as required by POSIX, so do not add quotes.
17707 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17716 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17718 if cmp -s $cache_file confcache; then :; else
17719 if test -w $cache_file; then
17720 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17721 cat confcache >$cache_file
17723 echo "not updating unwritable cache $cache_file"
17728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17729 # Let make expand exec_prefix.
17730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17734 # trailing colons and then remove the whole line if VPATH becomes empty
17735 # (actually we leave an empty line to preserve line numbers).
17736 if test "x$srcdir" = x.; then
17737 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17738 s/:*\$(srcdir):*/:/;
17739 s/:*\${srcdir}:*/:/;
17741 s/^\([^=]*=[ ]*\):*/\1/;
17747 DEFS=-DHAVE_CONFIG_H
17750 : ${CONFIG_STATUS=./config.status}
17751 ac_clean_files_save=$ac_clean_files
17752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17755 cat >$CONFIG_STATUS <<_ACEOF
17757 # Generated by $as_me.
17758 # Run this file to recreate the current configuration.
17759 # Compiler output produced by configure, useful for debugging
17760 # configure, is in config.log if it exists.
17763 SHELL=\${CONFIG_SHELL-$SHELL}
17766 cat >>$CONFIG_STATUS <<\_ACEOF
17768 ## --------------------- ##
17769 ## M4sh Initialization. ##
17770 ## --------------------- ##
17772 # Be Bourne compatible
17773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17776 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17781 # Support unset when possible.
17782 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17788 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17789 { $as_unset LANG || test "${LANG+set}" != set; } ||
17790 { LANG=C; export LANG; }
17791 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17792 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17793 { LC_ALL=C; export LC_ALL; }
17794 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17795 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17796 { LC_TIME=C; export LC_TIME; }
17797 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17798 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17799 { LC_CTYPE=C; export LC_CTYPE; }
17800 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17801 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17802 { LANGUAGE=C; export LANGUAGE; }
17803 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17804 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17805 { LC_COLLATE=C; export LC_COLLATE; }
17806 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17807 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17808 { LC_NUMERIC=C; export LC_NUMERIC; }
17809 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17810 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17811 { LC_MESSAGES=C; export LC_MESSAGES; }
17814 # Name of the executable.
17815 as_me=`(basename "$0") 2>/dev/null ||
17816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17817 X"$0" : 'X\(//\)$' \| \
17818 X"$0" : 'X\(/\)$' \| \
17819 . : '\(.\)' 2>/dev/null ||
17821 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17822 /^X\/\(\/\/\)$/{ s//\1/; q; }
17823 /^X\/\(\/\).*/{ s//\1/; q; }
17826 # PATH needs CR, and LINENO needs CR and PATH.
17827 # Avoid depending upon Character Ranges.
17828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17831 as_cr_digits='0123456789'
17832 as_cr_alnum=$as_cr_Letters$as_cr_digits
17834 # The user is always right.
17835 if test "${PATH_SEPARATOR+set}" != set; then
17836 echo "#! /bin/sh" >conftest.sh
17837 echo "exit 0" >>conftest.sh
17838 chmod +x conftest.sh
17839 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17848 as_lineno_1=$LINENO
17849 as_lineno_2=$LINENO
17850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17851 test "x$as_lineno_1" != "x$as_lineno_2" &&
17852 test "x$as_lineno_3" = "x$as_lineno_2" || {
17853 # Find who we are. Look in the path if we contain no path at all
17856 *[\\/]* ) as_myself=$0 ;;
17857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17858 for as_dir in $PATH
17861 test -z "$as_dir" && as_dir=.
17862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17867 # We did not find ourselves, most probably we were run as `sh COMMAND'
17868 # in which case we are not to be found in the path.
17869 if test "x$as_myself" = x; then
17872 if test ! -f "$as_myself"; then
17873 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17874 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17875 { (exit 1); exit 1; }; }
17877 case $CONFIG_SHELL in
17879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17883 test -z "$as_dir" && as_dir=.
17884 for as_base in sh bash ksh sh5; do
17887 if ("$as_dir/$as_base" -c '
17888 as_lineno_1=$LINENO
17889 as_lineno_2=$LINENO
17890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17891 test "x$as_lineno_1" != "x$as_lineno_2" &&
17892 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17893 CONFIG_SHELL=$as_dir/$as_base
17894 export CONFIG_SHELL
17895 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17903 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17904 # uniformly replaced by the line number. The first 'sed' inserts a
17905 # line-number line before each line; the second 'sed' does the real
17906 # work. The second script uses 'N' to pair each line-number line
17907 # with the numbered line, and appends trailing '-' during
17908 # substitution so that $LINENO is not a special case at line end.
17909 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17910 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17911 sed '=' <$as_myself |
17916 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17919 s,^['$as_cr_digits']*\n,,
17920 ' >$as_me.lineno &&
17921 chmod +x $as_me.lineno ||
17922 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17923 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17924 { (exit 1); exit 1; }; }
17926 # Don't try to exec as it changes $[0], causing all sort of problems
17927 # (the dirname of $[0] is not the place where we might find the
17928 # original and so on. Autoconf is especially sensible to this).
17930 # Exit status is that of the last command.
17935 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17936 *c*,-n*) ECHO_N= ECHO_C='
17938 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17939 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17942 if expr a : '\(a\)' >/dev/null 2>&1; then
17948 rm -f conf$$ conf$$.exe conf$$.file
17950 if ln -s conf$$.file conf$$ 2>/dev/null; then
17951 # We could just check for DJGPP; but this test a) works b) is more generic
17952 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17953 if test -f conf$$.exe; then
17954 # Don't use ln at all; we don't have any links
17959 elif ln conf$$.file conf$$ 2>/dev/null; then
17964 rm -f conf$$ conf$$.exe conf$$.file
17966 as_executable_p="test -f"
17968 # Sed expression to map a string onto a valid CPP name.
17969 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17971 # Sed expression to map a string onto a valid variable name.
17972 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17976 # We need space, tab and new line, in precisely that order.
17982 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17986 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17987 # report actual input values of CONFIG_FILES etc. instead of their
17988 # values after options handling. Logging --version etc. is OK.
17992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17993 ## Running $as_me. ##
17998 This file was extended by PostgreSQL $as_me 7.4beta2, which was
17999 generated by GNU Autoconf 2.53. Invocation command line was
18001 CONFIG_FILES = $CONFIG_FILES
18002 CONFIG_HEADERS = $CONFIG_HEADERS
18003 CONFIG_LINKS = $CONFIG_LINKS
18004 CONFIG_COMMANDS = $CONFIG_COMMANDS
18008 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18012 # Files that config.status was made for.
18013 if test -n "$ac_config_files"; then
18014 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18017 if test -n "$ac_config_headers"; then
18018 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18021 if test -n "$ac_config_links"; then
18022 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18025 if test -n "$ac_config_commands"; then
18026 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18029 cat >>$CONFIG_STATUS <<\_ACEOF
18032 \`$as_me' instantiates files from templates according to the
18033 current configuration.
18035 Usage: $0 [OPTIONS] [FILE]...
18037 -h, --help print this help, then exit
18038 -V, --version print version number, then exit
18039 -d, --debug don't remove temporary files
18040 --recheck update $as_me by reconfiguring in the same conditions
18041 --file=FILE[:TEMPLATE]
18042 instantiate the configuration file FILE
18043 --header=FILE[:TEMPLATE]
18044 instantiate the configuration header FILE
18046 Configuration files:
18049 Configuration headers:
18052 Configuration links:
18055 Report bugs to <bug-autoconf@gnu.org>."
18058 cat >>$CONFIG_STATUS <<_ACEOF
18060 PostgreSQL config.status 7.4beta2
18061 configured by $0, generated by GNU Autoconf 2.53,
18062 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18064 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18065 Free Software Foundation, Inc.
18066 This config.status script is free software; the Free Software Foundation
18067 gives unlimited permission to copy, distribute and modify it."
18071 cat >>$CONFIG_STATUS <<\_ACEOF
18072 # If no file are specified by the user, then we need to provide default
18073 # value. By we need to know if files were specified by the user.
18079 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18080 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18082 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18086 *) # This is not an option, so the user has probably given explicit
18088 ac_need_defaults=false;;
18092 # Handling of the options.
18094 cat >>$CONFIG_STATUS <<_ACEOF
18095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18096 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18097 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18099 cat >>$CONFIG_STATUS <<\_ACEOF
18100 --version | --vers* | -V )
18101 echo "$ac_cs_version"; exit 0 ;;
18103 # Conflict between --help and --header
18104 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18105 Try \`$0 --help' for more information." >&5
18106 echo "$as_me: error: ambiguous option: $1
18107 Try \`$0 --help' for more information." >&2;}
18108 { (exit 1); exit 1; }; };;
18109 --help | --hel | -h )
18110 echo "$ac_cs_usage"; exit 0 ;;
18111 --debug | --d* | -d )
18113 --file | --fil | --fi | --f )
18115 CONFIG_FILES="$CONFIG_FILES $1"
18116 ac_need_defaults=false;;
18117 --header | --heade | --head | --hea )
18119 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18120 ac_need_defaults=false;;
18122 # This is an error.
18123 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18124 Try \`$0 --help' for more information." >&5
18125 echo "$as_me: error: unrecognized option: $1
18126 Try \`$0 --help' for more information." >&2;}
18127 { (exit 1); exit 1; }; } ;;
18129 *) ac_config_targets="$ac_config_targets $1" ;;
18141 cat >>$CONFIG_STATUS <<\_ACEOF
18142 for ac_config_target in $ac_config_targets
18144 case "$ac_config_target" in
18145 # Handling of arguments.
18146 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18147 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18148 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18149 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18150 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18151 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18152 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18153 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18154 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18155 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18156 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18157 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18158 { (exit 1); exit 1; }; };;
18162 # If the user did not use the arguments to specify the items to instantiate,
18163 # then the envvar interface is used. Set only those that are not.
18164 # We use the long form for the default assignment because of an extremely
18165 # bizarre bug on SunOS 4.1.3.
18166 if $ac_need_defaults; then
18167 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18168 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18169 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18172 # Create a temporary directory, and hook for its removal unless debugging.
18175 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18176 trap '{ (exit 1); exit 1; }' 1 2 13 15
18179 # Create a (secure) tmp directory for tmp files.
18182 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18183 test -n "$tmp" && test -d "$tmp"
18186 tmp=$TMPDIR/cs$$-$RANDOM
18187 (umask 077 && mkdir $tmp)
18190 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18191 { (exit 1); exit 1; }
18196 cat >>$CONFIG_STATUS <<_ACEOF
18199 # CONFIG_FILES section.
18202 # No need to generate the scripts if there are no CONFIG_FILES.
18203 # This happens for instance when ./config.status config.h
18204 if test -n "\$CONFIG_FILES"; then
18205 # Protect against being on the right side of a sed subst in config.status.
18206 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18207 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18208 s,@SHELL@,$SHELL,;t t
18209 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18210 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18211 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18212 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18213 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18214 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18215 s,@exec_prefix@,$exec_prefix,;t t
18216 s,@prefix@,$prefix,;t t
18217 s,@program_transform_name@,$program_transform_name,;t t
18218 s,@bindir@,$bindir,;t t
18219 s,@sbindir@,$sbindir,;t t
18220 s,@libexecdir@,$libexecdir,;t t
18221 s,@datadir@,$datadir,;t t
18222 s,@sysconfdir@,$sysconfdir,;t t
18223 s,@sharedstatedir@,$sharedstatedir,;t t
18224 s,@localstatedir@,$localstatedir,;t t
18225 s,@libdir@,$libdir,;t t
18226 s,@includedir@,$includedir,;t t
18227 s,@oldincludedir@,$oldincludedir,;t t
18228 s,@infodir@,$infodir,;t t
18229 s,@mandir@,$mandir,;t t
18230 s,@build_alias@,$build_alias,;t t
18231 s,@host_alias@,$host_alias,;t t
18232 s,@target_alias@,$target_alias,;t t
18233 s,@DEFS@,$DEFS,;t t
18234 s,@ECHO_C@,$ECHO_C,;t t
18235 s,@ECHO_N@,$ECHO_N,;t t
18236 s,@ECHO_T@,$ECHO_T,;t t
18237 s,@LIBS@,$LIBS,;t t
18238 s,@docdir@,$docdir,;t t
18239 s,@configure_args@,$configure_args,;t t
18240 s,@build@,$build,;t t
18241 s,@build_cpu@,$build_cpu,;t t
18242 s,@build_vendor@,$build_vendor,;t t
18243 s,@build_os@,$build_os,;t t
18244 s,@host@,$host,;t t
18245 s,@host_cpu@,$host_cpu,;t t
18246 s,@host_vendor@,$host_vendor,;t t
18247 s,@host_os@,$host_os,;t t
18248 s,@PORTNAME@,$PORTNAME,;t t
18250 s,@enable_nls@,$enable_nls,;t t
18251 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18252 s,@default_port@,$default_port,;t t
18253 s,@enable_shared@,$enable_shared,;t t
18254 s,@enable_rpath@,$enable_rpath,;t t
18255 s,@enable_debug@,$enable_debug,;t t
18257 s,@CFLAGS@,$CFLAGS,;t t
18258 s,@LDFLAGS@,$LDFLAGS,;t t
18259 s,@CPPFLAGS@,$CPPFLAGS,;t t
18260 s,@ac_ct_CC@,$ac_ct_CC,;t t
18261 s,@EXEEXT@,$EXEEXT,;t t
18262 s,@OBJEXT@,$OBJEXT,;t t
18265 s,@autodepend@,$autodepend,;t t
18266 s,@INCLUDES@,$INCLUDES,;t t
18267 s,@enable_thread_safety@,$enable_thread_safety,;t t
18268 s,@with_tcl@,$with_tcl,;t t
18269 s,@with_tk@,$with_tk,;t t
18270 s,@with_perl@,$with_perl,;t t
18271 s,@with_python@,$with_python,;t t
18273 s,@with_java@,$with_java,;t t
18274 s,@with_krb4@,$with_krb4,;t t
18275 s,@with_krb5@,$with_krb5,;t t
18276 s,@krb_srvtab@,$krb_srvtab,;t t
18277 s,@with_pam@,$with_pam,;t t
18278 s,@with_rendezvous@,$with_rendezvous,;t t
18279 s,@with_openssl@,$with_openssl,;t t
18280 s,@ELF_SYS@,$ELF_SYS,;t t
18282 s,@FLEX@,$FLEX,;t t
18283 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18284 s,@LN_S@,$LN_S,;t t
18286 s,@with_gnu_ld@,$with_gnu_ld,;t t
18287 s,@ld_R_works@,$ld_R_works,;t t
18288 s,@RANLIB@,$RANLIB,;t t
18289 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18290 s,@LORDER@,$LORDER,;t t
18292 s,@STRIP@,$STRIP,;t t
18293 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18294 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18295 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18296 s,@YACC@,$YACC,;t t
18297 s,@YFLAGS@,$YFLAGS,;t t
18298 s,@PERL@,$PERL,;t t
18299 s,@perl_archlibexp@,$perl_archlibexp,;t t
18300 s,@perl_privlibexp@,$perl_privlibexp,;t t
18301 s,@perl_useshrplib@,$perl_useshrplib,;t t
18302 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18303 s,@PYTHON@,$PYTHON,;t t
18304 s,@python_prefix@,$python_prefix,;t t
18305 s,@python_execprefix@,$python_execprefix,;t t
18306 s,@python_configdir@,$python_configdir,;t t
18307 s,@python_includespec@,$python_includespec,;t t
18308 s,@python_libspec@,$python_libspec,;t t
18309 s,@LIBOBJS@,$LIBOBJS,;t t
18310 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18311 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18312 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18313 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18314 s,@MSGFMT@,$MSGFMT,;t t
18315 s,@MSGMERGE@,$MSGMERGE,;t t
18316 s,@XGETTEXT@,$XGETTEXT,;t t
18317 s,@localedir@,$localedir,;t t
18318 s,@TCLSH@,$TCLSH,;t t
18319 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18320 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18321 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18322 s,@TCL_LIBS@,$TCL_LIBS,;t t
18323 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18324 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18325 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18326 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18327 s,@TK_LIBS@,$TK_LIBS,;t t
18328 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18329 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18330 s,@NSGMLS@,$NSGMLS,;t t
18331 s,@JADE@,$JADE,;t t
18332 s,@have_docbook@,$have_docbook,;t t
18333 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18334 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18335 s,@SGMLSPL@,$SGMLSPL,;t t
18336 s,@vpath_build@,$vpath_build,;t t
18341 cat >>$CONFIG_STATUS <<\_ACEOF
18342 # Split the substitutions into bite-sized pieces for seds with
18343 # small command number limits, like on Digital OSF/1 and HP-UX.
18344 ac_max_sed_lines=48
18345 ac_sed_frag=1 # Number of current file.
18346 ac_beg=1 # First line for current file.
18347 ac_end=$ac_max_sed_lines # Line after last line for current file.
18350 while $ac_more_lines; do
18351 if test $ac_beg -gt 1; then
18352 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18354 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18356 if test ! -s $tmp/subs.frag; then
18357 ac_more_lines=false
18359 # The purpose of the label and of the branching condition is to
18360 # speed up the sed processing (if there are no `@' at all, there
18361 # is no need to browse any of the substitutions).
18362 # These are the two extra sed commands mentioned above.
18364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18365 if test -z "$ac_sed_cmds"; then
18366 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18368 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18370 ac_sed_frag=`expr $ac_sed_frag + 1`
18372 ac_end=`expr $ac_end + $ac_max_sed_lines`
18375 if test -z "$ac_sed_cmds"; then
18378 fi # test -n "$CONFIG_FILES"
18381 cat >>$CONFIG_STATUS <<\_ACEOF
18382 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18383 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18385 - | *:- | *:-:* ) # input from stdin
18387 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18389 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18391 * ) ac_file_in=$ac_file.in ;;
18394 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18395 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397 X"$ac_file" : 'X\(//\)[^/]' \| \
18398 X"$ac_file" : 'X\(//\)$' \| \
18399 X"$ac_file" : 'X\(/\)' \| \
18400 . : '\(.\)' 2>/dev/null ||
18402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18404 /^X\(\/\/\)$/{ s//\1/; q; }
18405 /^X\(\/\).*/{ s//\1/; q; }
18407 { case "$ac_dir" in
18408 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18412 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18413 case $as_mkdir_dir in
18414 # Skip DOS drivespec
18415 ?:) as_incr_dir=$as_mkdir_dir ;;
18417 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18418 test -d "$as_incr_dir" ||
18419 mkdir "$as_incr_dir" ||
18420 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18421 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18422 { (exit 1); exit 1; }; }
18429 if test "$ac_dir" != .; then
18430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18431 # A "../" for each directory in $ac_dir_suffix.
18432 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18434 ac_dir_suffix= ac_top_builddir=
18438 .) # No --srcdir option. We are building in place.
18440 if test -z "$ac_top_builddir"; then
18443 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18445 [\\/]* | ?:[\\/]* ) # Absolute path.
18446 ac_srcdir=$srcdir$ac_dir_suffix;
18447 ac_top_srcdir=$srcdir ;;
18448 *) # Relative path.
18449 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18450 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18452 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18454 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18455 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18456 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18457 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18461 if test x"$ac_file" != x-; then
18462 { echo "$as_me:$LINENO: creating $ac_file" >&5
18463 echo "$as_me: creating $ac_file" >&6;}
18466 # Let's still pretend it is `configure' which instantiates (i.e., don't
18467 # use $as_me), people would be surprised to read:
18468 # /* config.h. Generated by config.status. */
18469 if test x"$ac_file" = x-; then
18472 configure_input="$ac_file. "
18474 configure_input=$configure_input"Generated from `echo $ac_file_in |
18475 sed 's,.*/,,'` by configure."
18477 # First look for the input files in the build tree, otherwise in the
18479 ac_file_inputs=`IFS=:
18480 for f in $ac_file_in; do
18482 -) echo $tmp/stdin ;;
18484 # Absolute (can't be DOS-style, as IFS=:)
18485 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18486 echo "$as_me: error: cannot find input file: $f" >&2;}
18487 { (exit 1); exit 1; }; }
18490 if test -f "$f"; then
18493 elif test -f "$srcdir/$f"; then
18498 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18499 echo "$as_me: error: cannot find input file: $f" >&2;}
18500 { (exit 1); exit 1; }; }
18503 done` || { (exit 1); exit 1; }
18505 cat >>$CONFIG_STATUS <<_ACEOF
18509 cat >>$CONFIG_STATUS <<\_ACEOF
18511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18512 s,@configure_input@,$configure_input,;t t
18513 s,@srcdir@,$ac_srcdir,;t t
18514 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18515 s,@top_srcdir@,$ac_top_srcdir,;t t
18516 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18517 s,@builddir@,$ac_builddir,;t t
18518 s,@abs_builddir@,$ac_abs_builddir,;t t
18519 s,@top_builddir@,$ac_top_builddir,;t t
18520 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18521 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18523 if test x"$ac_file" != x-; then
18524 mv $tmp/out $ac_file
18532 cat >>$CONFIG_STATUS <<\_ACEOF
18535 # CONFIG_HEADER section.
18538 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18539 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18541 # ac_d sets the value in "#define NAME VALUE" lines.
18542 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18543 ac_dB='[ ].*$,\1#\2'
18546 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18547 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18548 ac_uB='$,\1#\2define\3'
18552 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18555 - | *:- | *:-:* ) # input from stdin
18557 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18559 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18561 * ) ac_file_in=$ac_file.in ;;
18564 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18565 echo "$as_me: creating $ac_file" >&6;}
18567 # First look for the input files in the build tree, otherwise in the
18569 ac_file_inputs=`IFS=:
18570 for f in $ac_file_in; do
18572 -) echo $tmp/stdin ;;
18574 # Absolute (can't be DOS-style, as IFS=:)
18575 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18576 echo "$as_me: error: cannot find input file: $f" >&2;}
18577 { (exit 1); exit 1; }; }
18580 if test -f "$f"; then
18583 elif test -f "$srcdir/$f"; then
18588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18589 echo "$as_me: error: cannot find input file: $f" >&2;}
18590 { (exit 1); exit 1; }; }
18593 done` || { (exit 1); exit 1; }
18594 # Remove the trailing spaces.
18595 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18599 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18600 # `conftest.undefs', that substitutes the proper values into
18601 # config.h.in to produce config.h. The first handles `#define'
18602 # templates, and the second `#undef' templates.
18603 # And first: Protect against being on the right side of a sed subst in
18604 # config.status. Protect against being in an unquoted here document
18605 # in config.status.
18606 rm -f conftest.defines conftest.undefs
18607 # Using a here document instead of a string reduces the quoting nightmare.
18608 # Putting comments in sed scripts is not portable.
18610 # `end' is used to avoid that the second main sed command (meant for
18611 # 0-ary CPP macros) applies to n-ary macro definitions.
18612 # See the Autoconf documentation for `clear'.
18613 cat >confdef2sed.sed <<\_ACEOF
18618 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18620 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18623 # If some macros were called several times there might be several times
18624 # the same #defines, which is useless. Nevertheless, we may not want to
18625 # sort them, since we want the *last* AC-DEFINE to be honored.
18626 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18627 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18628 rm -f confdef2sed.sed
18630 # This sed command replaces #undef with comments. This is necessary, for
18631 # example, in the case of _POSIX_SOURCE, which is predefined and required
18632 # on some systems where configure will not decide to define it.
18633 cat >>conftest.undefs <<\_ACEOF
18634 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18637 # Break up conftest.defines because some shells have a limit on the size
18638 # of here documents, and old seds have small limits too (100 cmds).
18639 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18640 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18641 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18642 echo ' :' >>$CONFIG_STATUS
18643 rm -f conftest.tail
18644 while grep . conftest.defines >/dev/null
18646 # Write a limited-size here document to $tmp/defines.sed.
18647 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18648 # Speed up: don't consider the non `#define' lines.
18649 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18650 # Work around the forget-to-reset-the-flag bug.
18651 echo 't clr' >>$CONFIG_STATUS
18652 echo ': clr' >>$CONFIG_STATUS
18653 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18655 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18657 mv $tmp/out $tmp/in
18659 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18660 rm -f conftest.defines
18661 mv conftest.tail conftest.defines
18663 rm -f conftest.defines
18664 echo ' fi # egrep' >>$CONFIG_STATUS
18665 echo >>$CONFIG_STATUS
18667 # Break up conftest.undefs because some shells have a limit on the size
18668 # of here documents, and old seds have small limits too (100 cmds).
18669 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18670 rm -f conftest.tail
18671 while grep . conftest.undefs >/dev/null
18673 # Write a limited-size here document to $tmp/undefs.sed.
18674 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18675 # Speed up: don't consider the non `#undef'
18676 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18677 # Work around the forget-to-reset-the-flag bug.
18678 echo 't clr' >>$CONFIG_STATUS
18679 echo ': clr' >>$CONFIG_STATUS
18680 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18682 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18684 mv $tmp/out $tmp/in
18686 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18687 rm -f conftest.undefs
18688 mv conftest.tail conftest.undefs
18690 rm -f conftest.undefs
18692 cat >>$CONFIG_STATUS <<\_ACEOF
18693 # Let's still pretend it is `configure' which instantiates (i.e., don't
18694 # use $as_me), people would be surprised to read:
18695 # /* config.h. Generated by config.status. */
18696 if test x"$ac_file" = x-; then
18697 echo "/* Generated by configure. */" >$tmp/config.h
18699 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18701 cat $tmp/in >>$tmp/config.h
18703 if test x"$ac_file" != x-; then
18704 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18706 echo "$as_me: $ac_file is unchanged" >&6;}
18708 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18710 X"$ac_file" : 'X\(//\)[^/]' \| \
18711 X"$ac_file" : 'X\(//\)$' \| \
18712 X"$ac_file" : 'X\(/\)' \| \
18713 . : '\(.\)' 2>/dev/null ||
18715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18717 /^X\(\/\/\)$/{ s//\1/; q; }
18718 /^X\(\/\).*/{ s//\1/; q; }
18720 { case "$ac_dir" in
18721 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18725 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18726 case $as_mkdir_dir in
18727 # Skip DOS drivespec
18728 ?:) as_incr_dir=$as_mkdir_dir ;;
18730 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18731 test -d "$as_incr_dir" ||
18732 mkdir "$as_incr_dir" ||
18733 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18734 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18735 { (exit 1); exit 1; }; }
18741 mv $tmp/config.h $ac_file
18745 rm -f $tmp/config.h
18747 # Run the commands associated with the file.
18749 src/include/pg_config.h )
18750 # Update timestamp for pg_config.h (see Makefile.global)
18751 echo >src/include/stamp-h
18756 cat >>$CONFIG_STATUS <<\_ACEOF
18759 # CONFIG_LINKS section.
18762 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18763 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18764 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18766 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18767 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18769 if test ! -r $srcdir/$ac_source; then
18770 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18771 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18772 { (exit 1); exit 1; }; }
18776 # Make relative symlinks.
18777 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18778 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18779 X"$ac_dest" : 'X\(//\)[^/]' \| \
18780 X"$ac_dest" : 'X\(//\)$' \| \
18781 X"$ac_dest" : 'X\(/\)' \| \
18782 . : '\(.\)' 2>/dev/null ||
18784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18786 /^X\(\/\/\)$/{ s//\1/; q; }
18787 /^X\(\/\).*/{ s//\1/; q; }
18789 { case "$ac_dest_dir" in
18790 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18793 as_dummy="$ac_dest_dir"
18794 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18795 case $as_mkdir_dir in
18796 # Skip DOS drivespec
18797 ?:) as_incr_dir=$as_mkdir_dir ;;
18799 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18800 test -d "$as_incr_dir" ||
18801 mkdir "$as_incr_dir" ||
18802 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18803 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18804 { (exit 1); exit 1; }; }
18811 if test "$ac_dest_dir" != .; then
18812 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18813 # A "../" for each directory in $ac_dir_suffix.
18814 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18816 ac_dir_suffix= ac_top_builddir=
18820 .) # No --srcdir option. We are building in place.
18822 if test -z "$ac_top_builddir"; then
18825 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18827 [\\/]* | ?:[\\/]* ) # Absolute path.
18828 ac_srcdir=$srcdir$ac_dir_suffix;
18829 ac_top_srcdir=$srcdir ;;
18830 *) # Relative path.
18831 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18832 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18834 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18836 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18837 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18838 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18839 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18843 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18844 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18847 # Make a symlink if possible; otherwise try a hard link.
18848 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18849 ln $srcdir/$ac_source $ac_dest ||
18850 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18851 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18852 { (exit 1); exit 1; }; }
18856 cat >>$CONFIG_STATUS <<\_ACEOF
18858 { (exit 0); exit 0; }
18860 chmod +x $CONFIG_STATUS
18861 ac_clean_files=$ac_clean_files_save
18864 # configure is writing to config.log, and then calls config.status.
18865 # config.status does its own redirection, appending to config.log.
18866 # Unfortunately, on DOS this fails, as config.log is still kept open
18867 # by configure, so config.status won't be able to write to it; its
18868 # output is simply discarded. So we exec the FD to /dev/null,
18869 # effectively closing config.log, so it can be properly (re)opened and
18870 # appended to by config.status. When coming back to configure, we
18871 # need to make the FD available again.
18872 if test "$no_create" != yes; then
18875 $SHELL $CONFIG_STATUS || ac_cs_success=false
18877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18878 # would make configure fail if this is the last instruction.
18879 $ac_cs_success || { (exit 1); exit 1; }