2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.5devel.
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.5devel'
262 PACKAGE_STRING='PostgreSQL 7.5devel'
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 infodir='${prefix}/info'
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 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
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 infodir 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.5devel 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.5devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --disable-spinlocks do not use spinlocks
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --enable-thread-safety make client libraries thread-safe
849 --disable-largefile omit support for large files
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
856 --without-docdir do not install the documentation
857 --with-includes=DIRS look for additional header files in DIRS
858 --with-libraries=DIRS look for additional libraries in DIRS
859 --with-libs=DIRS alternative spelling of --with-libraries
860 --with-pgport=PORTNUM change default port number 5432
861 --with-tcl build Tcl and Tk interfaces
862 --without-tk do not build Tk interfaces if Tcl is enabled
863 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
864 --with-tkconfig=DIR tkConfig.sh is in DIR
865 --with-perl build Perl modules (PL/Perl)
866 --with-python build Python modules (PL/Python)
867 --with-java build JDBC interface and Java tools
868 --with-krb4 build with Kerberos 4 support
869 --with-krb5 build with Kerberos 5 support
870 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
871 --with-pam build with PAM support
872 --with-rendezvous build with Rendezvous support
873 --with-openssl build with OpenSSL support
874 --without-readline do not use Readline
875 --without-zlib do not use Zlib
876 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
887 location of DocBook stylesheets
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
892 Report bugs to <pgsql-bugs@postgresql.org>.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
955 PostgreSQL configure 7.5devel
956 generated by GNU Autoconf 2.53
958 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
959 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
963 Copyright 2003 PostgreSQL Global Development Group
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by PostgreSQL $as_me 7.5devel, which was
973 generated by GNU Autoconf 2.53. Invocation command line was
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Also quote any args containing shell meta-characters.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n ) continue ;;
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 case " $ac_configure_args " in
1040 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1041 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044 # Get rid of the leading space.
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log. We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1062 # The following way of writing the cache mishandles newlines in values,
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078 if test -s confdefs.h; then
1085 sed "/^$/d" confdefs.h
1088 test "$ac_signal" != 0 &&
1089 echo "$as_me: caught signal $ac_signal"
1090 echo "$as_me: exit $exit_status"
1092 rm -f core core.* *.core &&
1093 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1096 for ac_signal in 1 2 13 15; do
1097 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1102 rm -rf conftest* confdefs.h
1103 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1106 # Predefined preprocessor variables.
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_NAME "$PACKAGE_NAME"
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_STRING "$PACKAGE_STRING"
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1133 # Let the site file select an alternate cache file if it wants to.
1134 # Prefer explicitly selected file to automatically selected ones.
1135 if test -z "$CONFIG_SITE"; then
1136 if test "x$prefix" != xNONE; then
1137 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1139 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1142 for ac_site_file in $CONFIG_SITE; do
1143 if test -r "$ac_site_file"; then
1144 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1145 echo "$as_me: loading site script $ac_site_file" >&6;}
1146 sed 's/^/| /' "$ac_site_file" >&5
1151 if test -r "$cache_file"; then
1152 # Some versions of bash will fail to source /dev/null (special
1153 # files actually), so we avoid doing that.
1154 if test -f "$cache_file"; then
1155 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1156 echo "$as_me: loading cache $cache_file" >&6;}
1158 [\\/]* | ?:[\\/]* ) . $cache_file;;
1159 *) . ./$cache_file;;
1163 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1164 echo "$as_me: creating cache $cache_file" >&6;}
1168 # Check that the precious variables saved in the cache have kept the same
1170 ac_cache_corrupted=false
1171 for ac_var in `(set) 2>&1 |
1172 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1173 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1174 eval ac_new_set=\$ac_env_${ac_var}_set
1175 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1176 eval ac_new_val="\$ac_env_${ac_var}_value"
1177 case $ac_old_set,$ac_new_set in
1179 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1181 ac_cache_corrupted=: ;;
1183 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1184 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1185 ac_cache_corrupted=: ;;
1188 if test "x$ac_old_val" != "x$ac_new_val"; then
1189 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1190 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1191 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1192 echo "$as_me: former value: $ac_old_val" >&2;}
1193 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1194 echo "$as_me: current value: $ac_new_val" >&2;}
1195 ac_cache_corrupted=:
1198 # Pass precious variables to config.status.
1199 if test "$ac_new_set" = set; then
1201 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1202 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1203 *) ac_arg=$ac_var=$ac_new_val ;;
1205 case " $ac_configure_args " in
1206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1207 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1211 if $ac_cache_corrupted; then
1212 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1213 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1214 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1215 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1216 { (exit 1); exit 1; }; }
1220 ac_cpp='$CPP $CPPFLAGS'
1221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1223 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
1475 # Installation directory for documentation
1480 # Check whether --with-docdir or --without-docdir was given.
1481 if test "${with_docdir+set}" = set; then
1482 withval="$with_docdir"
1486 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1487 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1488 { (exit 1); exit 1; }; }
1499 docdir='${prefix}/doc'
1506 # Add non-standard directories to the include path
1511 # Check whether --with-includes or --without-includes was given.
1512 if test "${with_includes+set}" = set; then
1513 withval="$with_includes"
1517 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1518 echo "$as_me: error: argument required for --with-includes option" >&2;}
1519 { (exit 1); exit 1; }; }
1522 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1523 echo "$as_me: error: argument required for --with-includes option" >&2;}
1524 { (exit 1); exit 1; }; }
1536 # Add non-standard directories to the library search path
1541 # Check whether --with-libraries or --without-libraries was given.
1542 if test "${with_libraries+set}" = set; then
1543 withval="$with_libraries"
1547 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1548 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1549 { (exit 1); exit 1; }; }
1552 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1553 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1554 { (exit 1); exit 1; }; }
1557 LIBRARY_DIRS=$withval
1567 # Check whether --with-libs or --without-libs was given.
1568 if test "${with_libs+set}" = set; then
1569 withval="$with_libs"
1573 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1574 echo "$as_me: error: argument required for --with-libs option" >&2;}
1575 { (exit 1); exit 1; }; }
1578 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1579 echo "$as_me: error: argument required for --with-libs option" >&2;}
1580 { (exit 1); exit 1; }; }
1583 LIBRARY_DIRS=$withval
1592 # 64-bit integer date/time storage (--enable-integer-datetimes)
1594 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1595 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1598 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1599 if test "${enable_integer_datetimes+set}" = set; then
1600 enableval="$enable_integer_datetimes"
1605 cat >>confdefs.h <<\_ACEOF
1606 #define USE_INTEGER_DATETIMES 1
1614 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1615 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1616 { (exit 1); exit 1; }; }
1621 enable_integer_datetimes=no
1625 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1626 echo "${ECHO_T}$enable_integer_datetimes" >&6
1632 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1633 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1636 # Check whether --enable-nls or --disable-nls was given.
1637 if test "${enable_nls+set}" = set; then
1638 enableval="$enable_nls"
1649 WANTED_LANGUAGES=$enableval
1658 if test "$enable_nls" = yes; then
1660 cat >>confdefs.h <<\_ACEOF
1661 #define ENABLE_NLS 1
1666 echo "$as_me:$LINENO: result: $enable_nls" >&5
1667 echo "${ECHO_T}$enable_nls" >&6
1672 # Default port number (--with-pgport), default 5432
1674 echo "$as_me:$LINENO: checking for default port number" >&5
1675 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1679 # Check whether --with-pgport or --without-pgport was given.
1680 if test "${with_pgport+set}" = set; then
1681 withval="$with_pgport"
1685 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1686 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1687 { (exit 1); exit 1; }; }
1690 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1691 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1692 { (exit 1); exit 1; }; }
1695 default_port=$withval
1703 echo "$as_me:$LINENO: result: $default_port" >&5
1704 echo "${ECHO_T}$default_port" >&6
1705 # Need both of these because some places want an integer and some a string
1707 cat >>confdefs.h <<_ACEOF
1708 #define DEF_PGPORT ${default_port}
1712 cat >>confdefs.h <<_ACEOF
1713 #define DEF_PGPORT_STR "${default_port}"
1719 # Option to disable shared libraries
1723 # Check whether --enable-shared or --disable-shared was given.
1724 if test "${enable_shared+set}" = set; then
1725 enableval="$enable_shared"
1735 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1736 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1737 { (exit 1); exit 1; }; }
1749 # '-rpath'-like feature can be disabled
1753 # Check whether --enable-rpath or --disable-rpath was given.
1754 if test "${enable_rpath+set}" = set; then
1755 enableval="$enable_rpath"
1765 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1766 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1767 { (exit 1); exit 1; }; }
1783 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1784 if test "${enable_spinlocks+set}" = set; then
1785 enableval="$enable_spinlocks"
1795 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1796 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1797 { (exit 1); exit 1; }; }
1802 enable_spinlocks=yes
1808 # --enable-debug adds -g to compiler flags
1812 # Check whether --enable-debug or --disable-debug was given.
1813 if test "${enable_debug+set}" = set; then
1814 enableval="$enable_debug"
1824 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1825 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1826 { (exit 1); exit 1; }; }
1841 # For historical reasons you can also use --with-CC to specify the C compiler
1842 # to use, although the standard way to do this is to set the CC environment
1847 # Check whether --with-CC or --without-CC was given.
1848 if test "${with_CC+set}" = set; then
1853 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1854 echo "$as_me: error: argument required for --with-CC option" >&2;}
1855 { (exit 1); exit 1; }; }
1858 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1859 echo "$as_me: error: argument required for --with-CC option" >&2;}
1860 { (exit 1); exit 1; }; }
1871 aix) pgac_cc_list="gcc xlc";;
1872 irix) pgac_cc_list="cc";; # no gcc
1873 *) pgac_cc_list="gcc cc";;
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 if test -n "$ac_tool_prefix"; then
1882 for ac_prog in $pgac_cc_list
1884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 if test -n "$CC"; then
1912 echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 test -n "$CC" && break
1922 if test -z "$CC"; then
1924 for ac_prog in $pgac_cc_list
1926 # Extract the first word of "$ac_prog", so it can be a program name with args.
1927 set dummy $ac_prog; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 if test -n "$ac_ct_CC"; then
1934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_ac_ct_CC="$ac_prog"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953 if test -n "$ac_ct_CC"; then
1954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1955 echo "${ECHO_T}$ac_ct_CC" >&6
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1961 test -n "$ac_ct_CC" && break
1968 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1969 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1970 { (exit 1); exit 1; }; }
1972 # Provide some information about the compiler.
1973 echo "$as_me:$LINENO:" \
1974 "checking for C compiler version" >&5
1975 ac_compiler=`set X $ac_compile; echo $2`
1976 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1977 (eval $ac_compiler --version </dev/null >&5) 2>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }
1981 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1982 (eval $ac_compiler -v </dev/null >&5) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }
1986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1987 (eval $ac_compiler -V </dev/null >&5) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }
1992 cat >conftest.$ac_ext <<_ACEOF
1993 #line $LINENO "configure"
1994 #include "confdefs.h"
1996 #ifdef F77_DUMMY_MAIN
2000 int F77_DUMMY_MAIN() { return 1; }
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2015 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2016 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2030 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2031 ls a.out conftest 2>/dev/null;
2032 ls a.* conftest.* 2>/dev/null`; do
2034 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2035 a.out ) # We found the default executable, but exeext='' is most
2038 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2039 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2046 echo "$as_me: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2049 echo "$as_me: error: C compiler cannot create executables" >&2;}
2050 { (exit 77); exit 77; }; }
2053 ac_exeext=$ac_cv_exeext
2054 echo "$as_me:$LINENO: result: $ac_file" >&5
2055 echo "${ECHO_T}$ac_file" >&6
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2060 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2061 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2062 # If not cross compiling, check that we can run a simple program.
2063 if test "$cross_compiling" != yes; then
2064 if { ac_try='./$ac_file'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2072 if test "$cross_compiling" = maybe; then
2075 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2076 If you meant to cross compile, use \`--host'." >&5
2077 echo "$as_me: error: cannot run C compiled programs.
2078 If you meant to cross compile, use \`--host'." >&2;}
2079 { (exit 1); exit 1; }; }
2083 echo "$as_me:$LINENO: result: yes" >&5
2084 echo "${ECHO_T}yes" >&6
2086 rm -f a.out a.exe conftest$ac_cv_exeext
2087 ac_clean_files=$ac_clean_files_save
2088 # Check the compiler produces executables we can run. If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2091 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2092 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2093 echo "${ECHO_T}$cross_compiling" >&6
2095 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2096 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2098 (eval $ac_link) 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; then
2102 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2103 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2104 # work properly (i.e., refer to `conftest.exe'), while it won't with
2106 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2108 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2109 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2117 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2118 { (exit 1); exit 1; }; }
2121 rm -f conftest$ac_cv_exeext
2122 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2123 echo "${ECHO_T}$ac_cv_exeext" >&6
2125 rm -f conftest.$ac_ext
2126 EXEEXT=$ac_cv_exeext
2128 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2129 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2130 if test "${ac_cv_objext+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 cat >conftest.$ac_ext <<_ACEOF
2134 #line $LINENO "configure"
2135 #include "confdefs.h"
2137 #ifdef F77_DUMMY_MAIN
2141 int F77_DUMMY_MAIN() { return 1; }
2151 rm -f conftest.o conftest.obj
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; then
2157 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2160 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2165 echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2168 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2169 { (exit 1); exit 1; }; }
2172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2174 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2175 echo "${ECHO_T}$ac_cv_objext" >&6
2176 OBJEXT=$ac_cv_objext
2178 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2179 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2180 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 cat >conftest.$ac_ext <<_ACEOF
2184 #line $LINENO "configure"
2185 #include "confdefs.h"
2187 #ifdef F77_DUMMY_MAIN
2191 int F77_DUMMY_MAIN() { return 1; }
2204 rm -f conftest.$ac_objext
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2222 rm -f conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 #include "confdefs.h"
2241 #ifdef F77_DUMMY_MAIN
2245 int F77_DUMMY_MAIN() { return 1; }
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2269 echo "$as_me: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2273 rm -f conftest.$ac_objext conftest.$ac_ext
2275 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2277 if test "$ac_test_CFLAGS" = set; then
2278 CFLAGS=$ac_save_CFLAGS
2279 elif test $ac_cv_prog_cc_g = yes; then
2280 if test "$GCC" = yes; then
2286 if test "$GCC" = yes; then
2292 # Some people use a C++ compiler to compile C. Since we use `exit',
2293 # in C++ we need to declare it. In case someone uses the same compiler
2294 # for both compiling C and C++ we need to have the C++ compiler decide
2295 # the declaration of exit, since it's the most demanding environment.
2296 cat >conftest.$ac_ext <<_ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2313 for ac_declaration in \
2315 '#include <stdlib.h>' \
2316 'extern "C" void std::exit (int) throw (); using std::exit;' \
2317 'extern "C" void std::exit (int); using std::exit;' \
2318 'extern "C" void exit (int) throw ();' \
2319 'extern "C" void exit (int);' \
2322 cat >conftest.$ac_ext <<_ACEOF
2323 #line $LINENO "configure"
2324 #include "confdefs.h"
2327 #ifdef F77_DUMMY_MAIN
2331 int F77_DUMMY_MAIN() { return 1; }
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 #include "confdefs.h"
2364 #ifdef F77_DUMMY_MAIN
2368 int F77_DUMMY_MAIN() { return 1; }
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2398 if test -n "$ac_declaration"; then
2399 echo '#ifdef __cplusplus' >>confdefs.h
2400 echo $ac_declaration >>confdefs.h
2401 echo '#endif' >>confdefs.h
2405 echo "$as_me: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2408 rm -f conftest.$ac_objext conftest.$ac_ext
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 . "$srcdir/src/template/$template" || exit
2423 # CFLAGS are selected so:
2424 # If the user specifies something in the environment, that is used.
2425 # else: If the template file set something, that is used.
2426 # else: If the compiler is GCC, then we use -O2.
2427 # else: If the compiler is something else, then we use -0.
2429 if test "$ac_env_CFLAGS_set" = set; then
2430 CFLAGS=$ac_env_CFLAGS_value
2431 elif test "${CFLAGS+set}" = set; then
2432 : # (keep what template set)
2433 elif test "$GCC" = yes; then
2436 # if the user selected debug mode, don't use -O
2437 if test "$enable_debug" != yes; then
2442 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2443 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2444 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2445 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 pgac_save_CFLAGS=$CFLAGS
2449 if test "$GCC" = yes; then
2450 pgac_try="-fno-strict-aliasing"
2452 # Maybe fill in later...
2456 for pgac_flag in $pgac_try; do
2457 CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2458 cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 #include "confdefs.h"
2462 #ifdef F77_DUMMY_MAIN
2466 int F77_DUMMY_MAIN() { return 1; }
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2497 CFLAGS=$pgac_save_CFLAGS
2500 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2501 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2503 if test "$ac_env_CFLAGS_set" != set; then
2504 CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2507 # supply -g if --enable-debug
2508 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2512 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2513 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2515 # We already have this in Makefile.win32, but configure needs it too
2516 if test "$PORTNAME" = "win32"; then
2517 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2520 # Check if the compiler still works with the template settings
2521 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2522 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2528 #ifdef F77_DUMMY_MAIN
2532 int F77_DUMMY_MAIN() { return 1; }
2542 rm -f conftest.$ac_objext conftest$ac_exeext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544 (eval $ac_link) 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -s conftest$ac_exeext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 echo "$as_me:$LINENO: result: yes" >&5
2555 echo "${ECHO_T}yes" >&6
2557 echo "$as_me: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2559 echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6
2561 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2562 echo "$as_me: error: cannot proceed" >&2;}
2563 { (exit 1); exit 1; }; }
2565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2567 # Defend against gcc -ffast-math
2568 if test "$GCC" = yes; then
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 #include "confdefs.h"
2573 #ifdef F77_DUMMY_MAIN
2577 int F77_DUMMY_MAIN() { return 1; }
2582 #ifdef __FAST_MATH__
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2606 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2607 { (exit 1); exit 1; }; }
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2618 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2619 # On Suns, sometimes $CPP names a directory.
2620 if test -n "$CPP" && test -d "$CPP"; then
2623 if test -z "$CPP"; then
2624 if test "${ac_cv_prog_CPP+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 # Double quotes because CPP needs to be expanded
2628 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2631 for ac_c_preproc_warn_flag in '' yes
2633 # Use a header file that comes with gcc, so configuring glibc
2634 # with a fresh cross-compiler works.
2635 # On the NeXT, cc -E runs the code through the compiler's parser,
2636 # not just through cpp. "Syntax error" is here to catch this case.
2637 cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 #include "confdefs.h"
2643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2646 egrep -v '^ *\+' conftest.er1 >conftest.err
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } >/dev/null; then
2651 if test -s conftest.err; then
2652 ac_cpp_err=$ac_c_preproc_warn_flag
2659 if test -z "$ac_cpp_err"; then
2662 echo "$as_me: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 # Broken: fails on valid input.
2667 rm -f conftest.err conftest.$ac_ext
2669 # OK, works on sane cases. Now check whether non-existent headers
2670 # can be detected and how.
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 #include "confdefs.h"
2674 #include <ac_nonexistent.h>
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2679 egrep -v '^ *\+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } >/dev/null; then
2684 if test -s conftest.err; then
2685 ac_cpp_err=$ac_c_preproc_warn_flag
2692 if test -z "$ac_cpp_err"; then
2693 # Broken: success on invalid input.
2696 echo "$as_me: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698 # Passes both tests.
2702 rm -f conftest.err conftest.$ac_ext
2705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2706 rm -f conftest.err conftest.$ac_ext
2707 if $ac_preproc_ok; then
2719 echo "$as_me:$LINENO: result: $CPP" >&5
2720 echo "${ECHO_T}$CPP" >&6
2722 for ac_c_preproc_warn_flag in '' yes
2724 # Use a header file that comes with gcc, so configuring glibc
2725 # with a fresh cross-compiler works.
2726 # On the NeXT, cc -E runs the code through the compiler's parser,
2727 # not just through cpp. "Syntax error" is here to catch this case.
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2730 #include "confdefs.h"
2734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2737 egrep -v '^ *\+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2750 if test -z "$ac_cpp_err"; then
2753 echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 # Broken: fails on valid input.
2758 rm -f conftest.err conftest.$ac_ext
2760 # OK, works on sane cases. Now check whether non-existent headers
2761 # can be detected and how.
2762 cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 #include "confdefs.h"
2765 #include <ac_nonexistent.h>
2767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2770 egrep -v '^ *\+' conftest.er1 >conftest.err
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } >/dev/null; then
2775 if test -s conftest.err; then
2776 ac_cpp_err=$ac_c_preproc_warn_flag
2783 if test -z "$ac_cpp_err"; then
2784 # Broken: success on invalid input.
2787 echo "$as_me: failed program was:" >&5
2788 cat conftest.$ac_ext >&5
2789 # Passes both tests.
2793 rm -f conftest.err conftest.$ac_ext
2796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2797 rm -f conftest.err conftest.$ac_ext
2798 if $ac_preproc_ok; then
2801 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2802 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2803 { (exit 1); exit 1; }; }
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 # Create compiler version string
2815 if test x"$GCC" = x"yes" ; then
2816 cc_string="GCC `${CC} --version | sed q`"
2821 cat >>confdefs.h <<_ACEOF
2822 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2828 # Automatic dependency tracking
2832 # Check whether --enable-depend or --disable-depend was given.
2833 if test "${enable_depend+set}" = set; then
2834 enableval="$enable_depend"
2844 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2845 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2846 { (exit 1); exit 1; }; }
2859 # Enable assert checks
2863 # Check whether --enable-cassert or --disable-cassert was given.
2864 if test "${enable_cassert+set}" = set; then
2865 enableval="$enable_cassert"
2870 cat >>confdefs.h <<\_ACEOF
2871 #define USE_ASSERT_CHECKING 1
2879 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2880 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2881 { (exit 1); exit 1; }; }
2893 # Include directories
2897 # SRCH_INC comes from the template file
2898 for dir in $with_includes $SRCH_INC; do
2899 if test -d "$dir"; then
2900 INCLUDES="$INCLUDES -I$dir"
2902 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2903 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2911 # Library directories
2915 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2916 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2917 if test -d "$dir"; then
2918 LIBDIRS="$LIBDIRS -L$dir"
2920 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2921 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2927 # Enable thread-safe client libraries
2929 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2930 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2933 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2934 if test "${enable_thread_safety+set}" = set; then
2935 enableval="$enable_thread_safety"
2940 cat >>confdefs.h <<\_ACEOF
2941 #define ENABLE_THREAD_SAFETY 1
2949 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2950 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2951 { (exit 1); exit 1; }; }
2956 enable_thread_safety=no
2960 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2961 echo "${ECHO_T}$enable_thread_safety" >&6
2967 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2968 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2972 # Check whether --with-tcl or --without-tcl was given.
2973 if test "${with_tcl+set}" = set; then
2984 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2985 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2986 { (exit 1); exit 1; }; }
2995 echo "$as_me:$LINENO: result: $with_tcl" >&5
2996 echo "${ECHO_T}$with_tcl" >&6
2999 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
3000 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
3001 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
3002 if test "$with_tcl" = yes; then
3006 # Check whether --with-tk or --without-tk was given.
3007 if test "${with_tk+set}" = set; then
3018 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
3019 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
3020 { (exit 1); exit 1; }; }
3032 echo "$as_me:$LINENO: result: $with_tk" >&5
3033 echo "${ECHO_T}$with_tk" >&6
3037 # We see if the path to the Tcl/Tk configuration scripts is specified.
3038 # This will override the use of tclsh to find the paths to search.
3043 # Check whether --with-tclconfig or --without-tclconfig was given.
3044 if test "${with_tclconfig+set}" = set; then
3045 withval="$with_tclconfig"
3049 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3050 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3051 { (exit 1); exit 1; }; }
3054 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3055 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3056 { (exit 1); exit 1; }; }
3066 # We see if the path to the Tk configuration scripts is specified.
3067 # This will override the use of tclsh to find the paths to search.
3072 # Check whether --with-tkconfig or --without-tkconfig was given.
3073 if test "${with_tkconfig+set}" = set; then
3074 withval="$with_tkconfig"
3078 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3079 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3080 { (exit 1); exit 1; }; }
3083 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3084 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3085 { (exit 1); exit 1; }; }
3096 # Optionally build Perl modules (PL/Perl)
3098 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3099 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3103 # Check whether --with-perl or --without-perl was given.
3104 if test "${with_perl+set}" = set; then
3105 withval="$with_perl"
3115 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3116 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3117 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: result: $with_perl" >&5
3127 echo "${ECHO_T}$with_perl" >&6
3131 # Optionally build Python modules (PL/Python)
3133 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3134 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3138 # Check whether --with-python or --without-python was given.
3139 if test "${with_python+set}" = set; then
3140 withval="$with_python"
3150 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3151 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3152 { (exit 1); exit 1; }; }
3161 echo "$as_me:$LINENO: result: $with_python" >&5
3162 echo "${ECHO_T}$with_python" >&6
3166 # Optionally build the Java/JDBC tools
3168 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3169 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3173 # Check whether --with-java or --without-java was given.
3174 if test "${with_java+set}" = set; then
3175 withval="$with_java"
3179 echo "$as_me:$LINENO: result: yes" >&5
3180 echo "${ECHO_T}yes" >&6
3182 for ac_prog in jakarta-ant ant ant.sh ant.bat
3184 # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188 if test "${ac_cv_path_ANT+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 if test -n "$ANT"; then
3216 echo "$as_me:$LINENO: result: $ANT" >&5
3217 echo "${ECHO_T}$ANT" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 test -n "$ANT" && break
3227 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3228 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3229 if test "${pgac_cv_prog_ant_works+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 cat > conftest.java << EOF
3234 public class conftest {
3235 int testmethod(int a, int b) {
3241 cat > conftest.xml << EOF
3242 <project name="conftest" default="conftest">
3243 <target name="conftest">
3244 <javac srcdir="." includes="conftest.java">
3250 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3251 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3252 (eval $pgac_cmd) 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }
3257 if test $? = 0 && test -f ./conftest.class ; then
3258 pgac_cv_prog_ant_works=yes
3260 echo "configure: failed java program was:" >&5
3261 cat conftest.java >&5
3262 echo "configure: failed build file was:" >&5
3263 cat conftest.xml >&5
3264 pgac_cv_prog_ant_works=no
3267 rm -f conftest* core core.* *.core
3270 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3271 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3273 if test "$pgac_cv_prog_ant_works" != yes; then
3274 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3275 echo "$as_me: error: ant does not work" >&2;}
3276 { (exit 1); exit 1; }; }
3280 if test -z "$ANT"; then
3281 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3282 If you have Ant already installed, see config.log for details on the failure." >&5
3283 echo "$as_me: error: Ant is required to build Java components
3284 If you have Ant already installed, see config.log for details on the failure." >&2;}
3285 { (exit 1); exit 1; }; }
3287 if "$ANT" -version | egrep -i 'ant version' | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3288 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3289 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3290 { (exit 1); exit 1; }; }
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3298 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3299 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3300 { (exit 1); exit 1; }; }
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3315 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3316 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3320 # Check whether --with-krb4 or --without-krb4 was given.
3321 if test "${with_krb4+set}" = set; then
3322 withval="$with_krb4"
3328 cat >>confdefs.h <<\_ACEOF
3332 krb_srvtab="/etc/srvtab"
3339 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3340 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3341 { (exit 1); exit 1; }; }
3350 echo "$as_me:$LINENO: result: $with_krb4" >&5
3351 echo "${ECHO_T}$with_krb4" >&6
3358 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3359 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3363 # Check whether --with-krb5 or --without-krb5 was given.
3364 if test "${with_krb5+set}" = set; then
3365 withval="$with_krb5"
3371 cat >>confdefs.h <<\_ACEOF
3375 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3382 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3383 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3384 { (exit 1); exit 1; }; }
3393 echo "$as_me:$LINENO: result: $with_krb5" >&5
3394 echo "${ECHO_T}$with_krb5" >&6
3398 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3399 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3400 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3401 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3402 { (exit 1); exit 1; }; }
3409 # Kerberos configuration parameters
3414 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3415 if test "${with_krb_srvnam+set}" = set; then
3416 withval="$with_krb_srvnam"
3420 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3421 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3422 { (exit 1); exit 1; }; }
3425 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3426 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3427 { (exit 1); exit 1; }; }
3435 with_krb_srvnam="postgres"
3439 cat >>confdefs.h <<_ACEOF
3440 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3448 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3449 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3453 # Check whether --with-pam or --without-pam was given.
3454 if test "${with_pam+set}" = set; then
3460 cat >>confdefs.h <<\_ACEOF
3469 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3470 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3471 { (exit 1); exit 1; }; }
3480 echo "$as_me:$LINENO: result: $with_pam" >&5
3481 echo "${ECHO_T}$with_pam" >&6
3488 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3489 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3493 # Check whether --with-rendezvous or --without-rendezvous was given.
3494 if test "${with_rendezvous+set}" = set; then
3495 withval="$with_rendezvous"
3500 cat >>confdefs.h <<\_ACEOF
3501 #define USE_RENDEZVOUS 1
3509 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3510 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3511 { (exit 1); exit 1; }; }
3520 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3521 echo "${ECHO_T}$with_rendezvous" >&6
3528 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3529 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3533 # Check whether --with-openssl or --without-openssl was given.
3534 if test "${with_openssl+set}" = set; then
3535 withval="$with_openssl"
3540 cat >>confdefs.h <<\_ACEOF
3549 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3550 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3551 { (exit 1); exit 1; }; }
3560 echo "$as_me:$LINENO: result: $with_openssl" >&5
3561 echo "${ECHO_T}$with_openssl" >&6
3571 # Check whether --with-readline or --without-readline was given.
3572 if test "${with_readline+set}" = set; then
3573 withval="$with_readline"
3583 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3584 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3585 { (exit 1); exit 1; }; }
3601 # Check whether --with-zlib or --without-zlib was given.
3602 if test "${with_zlib+set}" = set; then
3603 withval="$with_zlib"
3613 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3614 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3615 { (exit 1); exit 1; }; }
3629 # Assume system is ELF if it predefines __ELF__ as 1,
3630 # otherwise believe host_os based default.
3632 freebsd1*|freebsd2*) elf=no;;
3633 freebsd3*|freebsd4*) elf=yes;;
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3639 #include "confdefs.h"
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646 egrep "yes" >/dev/null 2>&1; then
3649 if test "X$elf" = "Xyes" ; then
3663 CPPFLAGS="$CPPFLAGS $INCLUDES"
3664 LDFLAGS="$LDFLAGS $LIBDIRS"
3666 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3667 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3668 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3669 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3672 for ac_prog in gawk mawk nawk awk
3674 # Extract the first word of "$ac_prog", so it can be a program name with args.
3675 set dummy $ac_prog; ac_word=$2
3676 echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678 if test "${ac_cv_prog_AWK+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 if test -n "$AWK"; then
3682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_AWK="$ac_prog"
3692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 if test -n "$AWK"; then
3702 echo "$as_me:$LINENO: result: $AWK" >&5
3703 echo "${ECHO_T}$AWK" >&6
3705 echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3709 test -n "$AWK" && break
3712 echo "$as_me:$LINENO: checking for flex" >&5
3713 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3714 if test "${pgac_cv_path_flex+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 # Let the user override the test
3718 if test -n "$FLEX"; then
3719 pgac_cv_path_flex=$FLEX
3723 for pgac_dir in $PATH; do
3724 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3727 for pgac_prog in flex lex; do
3728 pgac_candidate="$pgac_dir/$pgac_prog"
3729 if test -f "$pgac_candidate" \
3730 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3732 echo '%%' > conftest.l
3733 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3734 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3735 pgac_broken_flex=$pgac_candidate
3739 pgac_cv_path_flex=$pgac_candidate
3747 : ${pgac_cv_path_flex=no}
3751 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3752 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3753 if test x"$pgac_cv_path_flex" = x"no"; then
3754 if test -n "$pgac_broken_flex"; then
3755 { echo "$as_me:$LINENO: WARNING:
3756 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3757 *** should get version 2.5.4 or later." >&5
3758 echo "$as_me: WARNING:
3759 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3760 *** should get version 2.5.4 or later." >&2;}
3763 { echo "$as_me:$LINENO: WARNING:
3764 *** Without Flex you will not be able to build PostgreSQL from CVS or
3765 *** change any of the scanner definition files. You can obtain Flex from
3766 *** a GNU mirror site. (If you are using the official distribution of
3767 *** PostgreSQL then you do not need to worry about this because the Flex
3768 *** output is pre-generated.)" >&5
3769 echo "$as_me: WARNING:
3770 *** Without Flex you will not be able to build PostgreSQL from CVS or
3771 *** change any of the scanner definition files. You can obtain Flex from
3772 *** a GNU mirror site. (If you are using the official distribution of
3773 *** PostgreSQL then you do not need to worry about this because the Flex
3774 *** output is pre-generated.)" >&2;}
3777 if test x"$pgac_cv_path_flex" = x"no"; then
3780 FLEX=$pgac_cv_path_flex
3786 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3787 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3789 if test "$LN_S" = "ln -s"; then
3790 echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3793 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3794 echo "${ECHO_T}no, using $LN_S" >&6
3798 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3799 if test "${with_gnu_ld+set}" = set; then
3800 withval="$with_gnu_ld"
3801 test "$withval" = no || with_gnu_ld=yes
3806 if test "$GCC" = yes; then
3807 # Check if gcc -print-prog-name=ld gives a path.
3808 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3809 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3812 # gcc leaves a trailing carriage return which upsets mingw
3813 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3815 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3818 # Accept absolute paths.
3819 [\\/]* | [A-Za-z]:[\\/]*)
3820 re_direlt='/[^/][^/]*/\.\./'
3821 # Canonicalize the path of ld
3822 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3823 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3824 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3826 test -z "$LD" && LD="$ac_prog"
3829 # If it fails, then pretend we aren't using GCC.
3833 # If it is relative, then search for the first ld in PATH.
3837 elif test "$with_gnu_ld" = yes; then
3838 echo "$as_me:$LINENO: checking for GNU ld" >&5
3839 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3841 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3842 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3844 if test "${ac_cv_path_LD+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test -z "$LD"; then
3848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3849 for ac_dir in $PATH; do
3850 test -z "$ac_dir" && ac_dir=.
3851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3852 ac_cv_path_LD="$ac_dir/$ac_prog"
3853 # Check to see if the program is GNU ld. I'd rather use --version,
3854 # but apparently some GNU ld's only accept -v.
3855 # Break only if it was the GNU/non-GNU ld that we prefer.
3856 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3857 test "$with_gnu_ld" != no && break
3859 test "$with_gnu_ld" != yes && break
3865 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3870 if test -n "$LD"; then
3871 echo "$as_me:$LINENO: result: $LD" >&5
3872 echo "${ECHO_T}$LD" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3877 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3878 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3879 { (exit 1); exit 1; }; }
3880 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3881 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3882 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3886 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3887 ac_cv_prog_gnu_ld=yes
3889 ac_cv_prog_gnu_ld=no
3892 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3893 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3894 with_gnu_ld=$ac_cv_prog_gnu_ld
3899 case $host_os in sysv5*)
3900 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3901 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3902 if test "${pgac_cv_prog_ld_R+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3911 #ifdef F77_DUMMY_MAIN
3915 int F77_DUMMY_MAIN() { return 1; }
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 pgac_cv_prog_ld_R=yes
3939 echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 pgac_cv_prog_ld_R=no
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LDFLAGS=$pgac_save_LDFLAGS
3947 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3948 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3949 ld_R_works=$pgac_cv_prog_ld_R
3952 if test -n "$ac_tool_prefix"; then
3953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_RANLIB+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 if test -n "$RANLIB"; then
3961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 RANLIB=$ac_cv_prog_RANLIB
3980 if test -n "$RANLIB"; then
3981 echo "$as_me:$LINENO: result: $RANLIB" >&5
3982 echo "${ECHO_T}$RANLIB" >&6
3984 echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3989 if test -z "$ac_cv_prog_RANLIB"; then
3990 ac_ct_RANLIB=$RANLIB
3991 # Extract the first word of "ranlib", so it can be a program name with args.
3992 set dummy ranlib; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$ac_ct_RANLIB"; then
3999 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_prog_ac_ct_RANLIB="ranlib"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4018 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4019 if test -n "$ac_ct_RANLIB"; then
4020 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4021 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4023 echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4027 RANLIB=$ac_ct_RANLIB
4029 RANLIB="$ac_cv_prog_RANLIB"
4032 for ac_prog in lorder
4034 # Extract the first word of "$ac_prog", so it can be a program name with args.
4035 set dummy $ac_prog; ac_word=$2
4036 echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_LORDER+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -n "$LORDER"; then
4042 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_LORDER="$ac_prog"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 LORDER=$ac_cv_prog_LORDER
4061 if test -n "$LORDER"; then
4062 echo "$as_me:$LINENO: result: $LORDER" >&5
4063 echo "${ECHO_T}$LORDER" >&6
4065 echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4069 test -n "$LORDER" && break
4072 # Extract the first word of "tar", so it can be a program name with args.
4073 set dummy tar; ac_word=$2
4074 echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_path_TAR+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 if test -n "$TAR"; then
4104 echo "$as_me:$LINENO: result: $TAR" >&5
4105 echo "${ECHO_T}$TAR" >&6
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}strip; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_STRIP+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -n "$STRIP"; then
4121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 STRIP=$ac_cv_prog_STRIP
4140 if test -n "$STRIP"; then
4141 echo "$as_me:$LINENO: result: $STRIP" >&5
4142 echo "${ECHO_T}$STRIP" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4149 if test -z "$ac_cv_prog_STRIP"; then
4151 # Extract the first word of "strip", so it can be a program name with args.
4152 set dummy strip; ac_word=$2
4153 echo "$as_me:$LINENO: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 if test -n "$ac_ct_STRIP"; then
4159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_STRIP="strip"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4179 if test -n "$ac_ct_STRIP"; then
4180 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4181 echo "${ECHO_T}$ac_ct_STRIP" >&6
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4189 STRIP="$ac_cv_prog_STRIP"
4193 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4194 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4195 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4196 STRIP_STATIC_LIB="$STRIP -x"
4197 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4198 echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4210 for ac_prog in 'bison -y'
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_YACC+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$YACC"; then
4220 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_YACC="$ac_prog"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 YACC=$ac_cv_prog_YACC
4239 if test -n "$YACC"; then
4240 echo "$as_me:$LINENO: result: $YACC" >&5
4241 echo "${ECHO_T}$YACC" >&6
4243 echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4247 test -n "$YACC" && break
4251 if test "$YACC"; then
4252 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4253 { echo "$as_me:$LINENO: WARNING:
4254 *** The installed version of Bison is too old. PostgreSQL needs
4255 *** Bison version 1.875 or later." >&5
4256 echo "$as_me: WARNING:
4257 *** The installed version of Bison is too old. PostgreSQL needs
4258 *** Bison version 1.875 or later." >&2;}
4262 if test -z "$YACC"; then
4263 { echo "$as_me:$LINENO: WARNING:
4264 *** Without Bison you will not be able to build PostgreSQL from CVS or
4265 *** change any of the parser definition files. You can obtain Bison from
4266 *** a GNU mirror site. (If you are using the official distribution of
4267 *** PostgreSQL then you do not need to worry about this because the Bison
4268 *** output is pre-generated.) To use a different yacc program (possible,
4269 *** but not recommended), set the environment variable YACC before running
4270 *** 'configure'." >&5
4271 echo "$as_me: WARNING:
4272 *** Without Bison you will not be able to build PostgreSQL from CVS or
4273 *** change any of the parser definition files. You can obtain Bison from
4274 *** a GNU mirror site. (If you are using the official distribution of
4275 *** PostgreSQL then you do not need to worry about this because the Bison
4276 *** output is pre-generated.) To use a different yacc program (possible,
4277 *** but not recommended), set the environment variable YACC before running
4278 *** 'configure'." >&2;}
4282 # Extract the first word of "perl", so it can be a program name with args.
4283 set dummy perl; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_PERL+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 PERL=$ac_cv_path_PERL
4313 if test -n "$PERL"; then
4314 echo "$as_me:$LINENO: result: $PERL" >&5
4315 echo "${ECHO_T}$PERL" >&6
4317 echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4321 if test "$with_perl" = yes; then
4323 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4324 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4325 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4326 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4327 echo "${ECHO_T}$perl_archlibexp" >&6
4328 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4329 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4330 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4331 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4332 echo "${ECHO_T}$perl_privlibexp" >&6
4333 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4334 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4335 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4336 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4337 echo "${ECHO_T}$perl_useshrplib" >&6
4339 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4340 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4341 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4342 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4343 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4344 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4345 echo "${ECHO_T}$perl_embed_ldflags" >&6
4348 if test "$with_python" = yes; then
4349 # Extract the first word of "python", so it can be a program name with args.
4350 set dummy python; ac_word=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_path_PYTHON+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 PYTHON=$ac_cv_path_PYTHON
4380 if test -n "$PYTHON"; then
4381 echo "$as_me:$LINENO: result: $PYTHON" >&5
4382 echo "${ECHO_T}$PYTHON" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4388 if test x"$PYTHON" = x""; then
4389 { { echo "$as_me:$LINENO: error: Python not found" >&5
4390 echo "$as_me: error: Python not found" >&2;}
4391 { (exit 1); exit 1; }; }
4395 echo "$as_me:$LINENO: checking Python installation directories" >&5
4396 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4397 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4398 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4399 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4400 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4401 python_includespec="-I${python_prefix}/include/python${python_version}"
4402 if test "$python_prefix" != "$python_execprefix"; then
4403 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4406 # This should be enough of a message.
4407 if test "$python_prefix" != "$python_execprefix"; then
4408 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4409 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4411 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4412 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4416 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4417 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4419 if test ! -f "$python_configdir/Makefile"; then
4420 echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4422 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4423 echo "$as_me: error: Python Makefile not found" >&2;}
4424 { (exit 1); exit 1; }; }
4427 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4428 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4429 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4430 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4431 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4433 pgac_tab=" " # tab character
4434 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"`
4436 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4437 echo "${ECHO_T}${python_libspec}" >&6
4447 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4450 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4451 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4452 if test "${ac_cv_lib_bsd_main+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 ac_check_lib_save_LIBS=$LIBS
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line $LINENO "configure"
4459 #include "confdefs.h"
4462 #ifdef F77_DUMMY_MAIN
4466 int F77_DUMMY_MAIN() { return 1; }
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4478 (eval $ac_link) 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -s conftest$ac_exeext'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 ac_cv_lib_bsd_main=yes
4490 echo "$as_me: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 ac_cv_lib_bsd_main=no
4494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_check_lib_save_LIBS
4497 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4498 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4499 if test $ac_cv_lib_bsd_main = yes; then
4500 cat >>confdefs.h <<_ACEOF
4501 #define HAVE_LIBBSD 1
4510 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4511 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4512 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_check_lib_save_LIBS=$LIBS
4517 cat >conftest.$ac_ext <<_ACEOF
4518 #line $LINENO "configure"
4519 #include "confdefs.h"
4521 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4527 char setproctitle ();
4528 #ifdef F77_DUMMY_MAIN
4532 int F77_DUMMY_MAIN() { return 1; }
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -s conftest$ac_exeext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_cv_lib_util_setproctitle=yes
4556 echo "$as_me: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4558 ac_cv_lib_util_setproctitle=no
4560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4561 LIBS=$ac_check_lib_save_LIBS
4563 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4564 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4565 if test $ac_cv_lib_util_setproctitle = yes; then
4566 cat >>confdefs.h <<_ACEOF
4567 #define HAVE_LIBUTIL 1
4575 echo "$as_me:$LINENO: checking for main in -lm" >&5
4576 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4577 if test "${ac_cv_lib_m_main+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_check_lib_save_LIBS=$LIBS
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 #include "confdefs.h"
4587 #ifdef F77_DUMMY_MAIN
4591 int F77_DUMMY_MAIN() { return 1; }
4601 rm -f conftest.$ac_objext conftest$ac_exeext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4603 (eval $ac_link) 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest$ac_exeext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_lib_m_main=yes
4615 echo "$as_me: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4620 LIBS=$ac_check_lib_save_LIBS
4622 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4623 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4624 if test $ac_cv_lib_m_main = yes; then
4625 cat >>confdefs.h <<_ACEOF
4634 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4635 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4636 if test "${ac_cv_lib_dl_main+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_check_lib_save_LIBS=$LIBS
4641 cat >conftest.$ac_ext <<_ACEOF
4642 #line $LINENO "configure"
4643 #include "confdefs.h"
4646 #ifdef F77_DUMMY_MAIN
4650 int F77_DUMMY_MAIN() { return 1; }
4660 rm -f conftest.$ac_objext conftest$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662 (eval $ac_link) 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -s conftest$ac_exeext'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 ac_cv_lib_dl_main=yes
4674 echo "$as_me: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4676 ac_cv_lib_dl_main=no
4678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4682 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4683 if test $ac_cv_lib_dl_main = yes; then
4684 cat >>confdefs.h <<_ACEOF
4685 #define HAVE_LIBDL 1
4693 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4694 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4695 if test "${ac_cv_lib_nsl_main+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_check_lib_save_LIBS=$LIBS
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4702 #include "confdefs.h"
4705 #ifdef F77_DUMMY_MAIN
4709 int F77_DUMMY_MAIN() { return 1; }
4719 rm -f conftest.$ac_objext conftest$ac_exeext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4721 (eval $ac_link) 2>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -s conftest$ac_exeext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_lib_nsl_main=yes
4733 echo "$as_me: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 ac_cv_lib_nsl_main=no
4737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4738 LIBS=$ac_check_lib_save_LIBS
4740 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4741 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4742 if test $ac_cv_lib_nsl_main = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744 #define HAVE_LIBNSL 1
4752 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4753 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4754 if test "${ac_cv_lib_socket_main+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 ac_check_lib_save_LIBS=$LIBS
4758 LIBS="-lsocket $LIBS"
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4764 #ifdef F77_DUMMY_MAIN
4768 int F77_DUMMY_MAIN() { return 1; }
4778 rm -f conftest.$ac_objext conftest$ac_exeext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780 (eval $ac_link) 2>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_lib_socket_main=yes
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 ac_cv_lib_socket_main=no
4796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4797 LIBS=$ac_check_lib_save_LIBS
4799 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4800 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4801 if test $ac_cv_lib_socket_main = yes; then
4802 cat >>confdefs.h <<_ACEOF
4803 #define HAVE_LIBSOCKET 1
4806 LIBS="-lsocket $LIBS"
4811 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4812 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4813 if test "${ac_cv_lib_ipc_main+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 ac_check_lib_save_LIBS=$LIBS
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4820 #include "confdefs.h"
4823 #ifdef F77_DUMMY_MAIN
4827 int F77_DUMMY_MAIN() { return 1; }
4837 rm -f conftest.$ac_objext conftest$ac_exeext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4839 (eval $ac_link) 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -s conftest$ac_exeext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_lib_ipc_main=yes
4851 echo "$as_me: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 ac_cv_lib_ipc_main=no
4855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4856 LIBS=$ac_check_lib_save_LIBS
4858 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4859 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4860 if test $ac_cv_lib_ipc_main = yes; then
4861 cat >>confdefs.h <<_ACEOF
4862 #define HAVE_LIBIPC 1
4870 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4871 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4872 if test "${ac_cv_lib_IPC_main+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 ac_check_lib_save_LIBS=$LIBS
4877 cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4879 #include "confdefs.h"
4882 #ifdef F77_DUMMY_MAIN
4886 int F77_DUMMY_MAIN() { return 1; }
4896 rm -f conftest.$ac_objext conftest$ac_exeext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4898 (eval $ac_link) 2>&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -s conftest$ac_exeext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 ac_cv_lib_IPC_main=yes
4910 echo "$as_me: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 ac_cv_lib_IPC_main=no
4914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4915 LIBS=$ac_check_lib_save_LIBS
4917 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4918 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4919 if test $ac_cv_lib_IPC_main = yes; then
4920 cat >>confdefs.h <<_ACEOF
4921 #define HAVE_LIBIPC 1
4929 echo "$as_me:$LINENO: checking for main in -llc" >&5
4930 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4931 if test "${ac_cv_lib_lc_main+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 ac_check_lib_save_LIBS=$LIBS
4936 cat >conftest.$ac_ext <<_ACEOF
4937 #line $LINENO "configure"
4938 #include "confdefs.h"
4941 #ifdef F77_DUMMY_MAIN
4945 int F77_DUMMY_MAIN() { return 1; }
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957 (eval $ac_link) 2>&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -s conftest$ac_exeext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_lib_lc_main=yes
4969 echo "$as_me: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4971 ac_cv_lib_lc_main=no
4973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4974 LIBS=$ac_check_lib_save_LIBS
4976 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4977 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4978 if test $ac_cv_lib_lc_main = yes; then
4979 cat >>confdefs.h <<_ACEOF
4980 #define HAVE_LIBLC 1
4988 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4989 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4990 if test "${ac_cv_lib_dld_main+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 ac_check_lib_save_LIBS=$LIBS
4995 cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 #include "confdefs.h"
5000 #ifdef F77_DUMMY_MAIN
5004 int F77_DUMMY_MAIN() { return 1; }
5014 rm -f conftest.$ac_objext conftest$ac_exeext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5016 (eval $ac_link) 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -s conftest$ac_exeext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_cv_lib_dld_main=yes
5028 echo "$as_me: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5030 ac_cv_lib_dld_main=no
5032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5033 LIBS=$ac_check_lib_save_LIBS
5035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5036 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5037 if test $ac_cv_lib_dld_main = yes; then
5038 cat >>confdefs.h <<_ACEOF
5039 #define HAVE_LIBDLD 1
5047 echo "$as_me:$LINENO: checking for main in -lld" >&5
5048 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5049 if test "${ac_cv_lib_ld_main+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 ac_check_lib_save_LIBS=$LIBS
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5056 #include "confdefs.h"
5059 #ifdef F77_DUMMY_MAIN
5063 int F77_DUMMY_MAIN() { return 1; }
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_lib_ld_main=yes
5087 echo "$as_me: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5089 ac_cv_lib_ld_main=no
5091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5094 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5095 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5096 if test $ac_cv_lib_ld_main = yes; then
5097 cat >>confdefs.h <<_ACEOF
5098 #define HAVE_LIBLD 1
5106 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5107 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5108 if test "${ac_cv_lib_compat_main+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 ac_check_lib_save_LIBS=$LIBS
5112 LIBS="-lcompat $LIBS"
5113 cat >conftest.$ac_ext <<_ACEOF
5114 #line $LINENO "configure"
5115 #include "confdefs.h"
5118 #ifdef F77_DUMMY_MAIN
5122 int F77_DUMMY_MAIN() { return 1; }
5132 rm -f conftest.$ac_objext conftest$ac_exeext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5134 (eval $ac_link) 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -s conftest$ac_exeext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_cv_lib_compat_main=yes
5146 echo "$as_me: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5148 ac_cv_lib_compat_main=no
5150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5151 LIBS=$ac_check_lib_save_LIBS
5153 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5154 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5155 if test $ac_cv_lib_compat_main = yes; then
5156 cat >>confdefs.h <<_ACEOF
5157 #define HAVE_LIBCOMPAT 1
5160 LIBS="-lcompat $LIBS"
5165 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5166 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5167 if test "${ac_cv_lib_BSD_main+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 ac_check_lib_save_LIBS=$LIBS
5172 cat >conftest.$ac_ext <<_ACEOF
5173 #line $LINENO "configure"
5174 #include "confdefs.h"
5177 #ifdef F77_DUMMY_MAIN
5181 int F77_DUMMY_MAIN() { return 1; }
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_lib_BSD_main=yes
5205 echo "$as_me: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 ac_cv_lib_BSD_main=no
5209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5210 LIBS=$ac_check_lib_save_LIBS
5212 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5213 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5214 if test $ac_cv_lib_BSD_main = yes; then
5215 cat >>confdefs.h <<_ACEOF
5216 #define HAVE_LIBBSD 1
5224 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5225 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5226 if test "${ac_cv_lib_gen_main+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 ac_check_lib_save_LIBS=$LIBS
5231 cat >conftest.$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5233 #include "confdefs.h"
5236 #ifdef F77_DUMMY_MAIN
5240 int F77_DUMMY_MAIN() { return 1; }
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_cv_lib_gen_main=yes
5264 echo "$as_me: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 ac_cv_lib_gen_main=no
5268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5269 LIBS=$ac_check_lib_save_LIBS
5271 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5272 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5273 if test $ac_cv_lib_gen_main = yes; then
5274 cat >>confdefs.h <<_ACEOF
5275 #define HAVE_LIBGEN 1
5283 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5284 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5285 if test "${ac_cv_lib_PW_main+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_check_lib_save_LIBS=$LIBS
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5295 #ifdef F77_DUMMY_MAIN
5299 int F77_DUMMY_MAIN() { return 1; }
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311 (eval $ac_link) 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -s conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_lib_PW_main=yes
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 ac_cv_lib_PW_main=no
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_check_lib_save_LIBS
5330 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5331 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5332 if test $ac_cv_lib_PW_main = yes; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define HAVE_LIBPW 1
5342 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5343 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5344 if test "${ac_cv_lib_resolv_main+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_check_lib_save_LIBS=$LIBS
5348 LIBS="-lresolv $LIBS"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5354 #ifdef F77_DUMMY_MAIN
5358 int F77_DUMMY_MAIN() { return 1; }
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -s conftest$ac_exeext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_lib_resolv_main=yes
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 ac_cv_lib_resolv_main=no
5386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5387 LIBS=$ac_check_lib_save_LIBS
5389 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5390 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5391 if test $ac_cv_lib_resolv_main = yes; then
5392 cat >>confdefs.h <<_ACEOF
5393 #define HAVE_LIBRESOLV 1
5396 LIBS="-lresolv $LIBS"
5400 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5401 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5402 if test "${ac_cv_search_getopt_long+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 ac_func_search_save_LIBS=$LIBS
5406 ac_cv_search_getopt_long=no
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5411 /* Override any gcc2 internal prototype to avoid an error. */
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5417 char getopt_long ();
5418 #ifdef F77_DUMMY_MAIN
5422 int F77_DUMMY_MAIN() { return 1; }
5432 rm -f conftest.$ac_objext conftest$ac_exeext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434 (eval $ac_link) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_search_getopt_long="none required"
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5450 if test "$ac_cv_search_getopt_long" = no; then
5451 for ac_lib in getopt gnugetopt; do
5452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5455 #include "confdefs.h"
5457 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */
5463 char getopt_long ();
5464 #ifdef F77_DUMMY_MAIN
5468 int F77_DUMMY_MAIN() { return 1; }
5478 rm -f conftest.$ac_objext conftest$ac_exeext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5480 (eval $ac_link) 2>&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -s conftest$ac_exeext'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 ac_cv_search_getopt_long="-l$ac_lib"
5493 echo "$as_me: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 LIBS=$ac_func_search_save_LIBS
5501 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5502 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5503 if test "$ac_cv_search_getopt_long" != no; then
5504 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5510 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5511 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5512 if test "${ac_cv_lib_unix_main+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_check_lib_save_LIBS=$LIBS
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5522 #ifdef F77_DUMMY_MAIN
5526 int F77_DUMMY_MAIN() { return 1; }
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -s conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 ac_cv_lib_unix_main=yes
5550 echo "$as_me: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 ac_cv_lib_unix_main=no
5554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5555 LIBS=$ac_check_lib_save_LIBS
5557 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5558 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5559 if test $ac_cv_lib_unix_main = yes; then
5560 cat >>confdefs.h <<_ACEOF
5561 #define HAVE_LIBUNIX 1
5568 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5569 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5570 if test "${ac_cv_search_crypt+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 ac_func_search_save_LIBS=$LIBS
5574 ac_cv_search_crypt=no
5575 cat >conftest.$ac_ext <<_ACEOF
5576 #line $LINENO "configure"
5577 #include "confdefs.h"
5579 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5586 #ifdef F77_DUMMY_MAIN
5590 int F77_DUMMY_MAIN() { return 1; }
5600 rm -f conftest.$ac_objext conftest$ac_exeext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5602 (eval $ac_link) 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_search_crypt="none required"
5614 echo "$as_me: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 if test "$ac_cv_search_crypt" = no; then
5619 for ac_lib in crypt; do
5620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 #include "confdefs.h"
5625 /* Override any gcc2 internal prototype to avoid an error. */
5629 /* We use char because int might match the return type of a gcc2
5630 builtin and then its argument prototype would still apply. */
5632 #ifdef F77_DUMMY_MAIN
5636 int F77_DUMMY_MAIN() { return 1; }
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648 (eval $ac_link) 2>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_search_crypt="-l$ac_lib"
5661 echo "$as_me: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_func_search_save_LIBS
5669 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5670 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5671 if test "$ac_cv_search_crypt" != no; then
5672 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5677 if test "$PORTNAME" = "beos"
5680 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5681 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5682 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 ac_check_lib_save_LIBS=$LIBS
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5689 #include "confdefs.h"
5691 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5697 char __inet_ntoa ();
5698 #ifdef F77_DUMMY_MAIN
5702 int F77_DUMMY_MAIN() { return 1; }
5712 rm -f conftest.$ac_objext conftest$ac_exeext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714 (eval $ac_link) 2>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_cv_lib_bind___inet_ntoa=yes
5726 echo "$as_me: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5728 ac_cv_lib_bind___inet_ntoa=no
5730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5731 LIBS=$ac_check_lib_save_LIBS
5733 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5734 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5735 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define HAVE_LIBBIND 1
5746 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5747 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5748 if test "${ac_cv_search_fdatasync+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 ac_func_search_save_LIBS=$LIBS
5752 ac_cv_search_fdatasync=no
5753 cat >conftest.$ac_ext <<_ACEOF
5754 #line $LINENO "configure"
5755 #include "confdefs.h"
5757 /* Override any gcc2 internal prototype to avoid an error. */
5761 /* We use char because int might match the return type of a gcc2
5762 builtin and then its argument prototype would still apply. */
5764 #ifdef F77_DUMMY_MAIN
5768 int F77_DUMMY_MAIN() { return 1; }
5778 rm -f conftest.$ac_objext conftest$ac_exeext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5780 (eval $ac_link) 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -s conftest$ac_exeext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 ac_cv_search_fdatasync="none required"
5792 echo "$as_me: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5796 if test "$ac_cv_search_fdatasync" = no; then
5797 for ac_lib in rt posix4; do
5798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 #include "confdefs.h"
5803 /* Override any gcc2 internal prototype to avoid an error. */
5807 /* We use char because int might match the return type of a gcc2
5808 builtin and then its argument prototype would still apply. */
5810 #ifdef F77_DUMMY_MAIN
5814 int F77_DUMMY_MAIN() { return 1; }
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826 (eval $ac_link) 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_search_fdatasync="-l$ac_lib"
5839 echo "$as_me: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5845 LIBS=$ac_func_search_save_LIBS
5847 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5848 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5849 if test "$ac_cv_search_fdatasync" != no; then
5850 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5856 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5857 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5858 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-lcygipc $LIBS"
5863 cat >conftest.$ac_ext <<_ACEOF
5864 #line $LINENO "configure"
5865 #include "confdefs.h"
5867 /* Override any gcc2 internal prototype to avoid an error. */
5871 /* We use char because int might match the return type of a gcc2
5872 builtin and then its argument prototype would still apply. */
5874 #ifdef F77_DUMMY_MAIN
5878 int F77_DUMMY_MAIN() { return 1; }
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890 (eval $ac_link) 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
5894 { ac_try='test -s conftest$ac_exeext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 ac_cv_lib_cygipc_shmget=yes
5902 echo "$as_me: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5904 ac_cv_lib_cygipc_shmget=no
5906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5907 LIBS=$ac_check_lib_save_LIBS
5909 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5910 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5911 if test $ac_cv_lib_cygipc_shmget = yes; then
5912 cat >>confdefs.h <<_ACEOF
5913 #define HAVE_LIBCYGIPC 1
5916 LIBS="-lcygipc $LIBS"
5921 if test "$PORTNAME" = "win32"
5924 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5925 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5926 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 ac_check_lib_save_LIBS=$LIBS
5930 LIBS="-lwsock32 $LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5932 #line $LINENO "configure"
5933 #include "confdefs.h"
5936 #ifdef F77_DUMMY_MAIN
5940 int F77_DUMMY_MAIN() { return 1; }
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952 (eval $ac_link) 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -s conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_cv_lib_wsock32_main=yes
5964 echo "$as_me: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 ac_cv_lib_wsock32_main=no
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969 LIBS=$ac_check_lib_save_LIBS
5971 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5972 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5973 if test $ac_cv_lib_wsock32_main = yes; then
5974 cat >>confdefs.h <<_ACEOF
5975 #define HAVE_LIBWSOCK32 1
5978 LIBS="-lwsock32 $LIBS"
5984 if test "$with_readline" = yes; then
5986 echo "$as_me:$LINENO: checking for readline" >&5
5987 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5989 if test "${pgac_cv_check_readline+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 pgac_cv_check_readline=no
5993 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5994 for pgac_rllib in -lreadline -ledit ; do
5995 pgac_save_LIBS=$LIBS
5996 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5997 cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6001 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6008 #ifdef F77_DUMMY_MAIN
6012 int F77_DUMMY_MAIN() { return 1; }
6022 rm -f conftest.$ac_objext conftest$ac_exeext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024 (eval $ac_link) 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -s conftest$ac_exeext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6035 # NetBSD and OpenBSD have a broken linker that does not
6036 # recognize dependent libraries
6037 case $host_os in netbsd* | openbsd* )
6040 *) pgac_lib=" -lcurses" ;;
6044 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6048 echo "$as_me: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6052 LIBS=$pgac_save_LIBS
6055 LIBS=$pgac_save_LIBS
6059 if test "$pgac_cv_check_readline" != no ; then
6061 cat >>confdefs.h <<\_ACEOF
6062 #define HAVE_LIBREADLINE 1
6065 LIBS="$pgac_cv_check_readline $LIBS"
6066 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6067 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6069 echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6072 if test x"$pgac_cv_check_readline" = x"no"; then
6073 { { echo "$as_me:$LINENO: error: readline library not found
6074 If you have readline already installed, see config.log for details on the
6075 failure. It is possible the compiler isn't looking in the proper directory.
6076 Use --without-readline to disable readline support." >&5
6077 echo "$as_me: error: readline library not found
6078 If you have readline already installed, see config.log for details on the
6079 failure. It is possible the compiler isn't looking in the proper directory.
6080 Use --without-readline to disable readline support." >&2;}
6081 { (exit 1); exit 1; }; }
6085 if test "$with_zlib" = yes; then
6087 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6088 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6089 if test "${ac_cv_lib_z_inflate+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 ac_check_lib_save_LIBS=$LIBS
6094 cat >conftest.$ac_ext <<_ACEOF
6095 #line $LINENO "configure"
6096 #include "confdefs.h"
6098 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6105 #ifdef F77_DUMMY_MAIN
6109 int F77_DUMMY_MAIN() { return 1; }
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121 (eval $ac_link) 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -s conftest$ac_exeext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_cv_lib_z_inflate=yes
6133 echo "$as_me: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6135 ac_cv_lib_z_inflate=no
6137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6138 LIBS=$ac_check_lib_save_LIBS
6140 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6141 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6142 if test $ac_cv_lib_z_inflate = yes; then
6143 cat >>confdefs.h <<_ACEOF
6150 { { echo "$as_me:$LINENO: error: zlib library not found
6151 If you have zlib already installed, see config.log for details on the
6152 failure. It is possible the compiler isn't looking in the proper directory.
6153 Use --without-zlib to disable zlib support." >&5
6154 echo "$as_me: error: zlib library not found
6155 If you have zlib already installed, see config.log for details on the
6156 failure. It is possible the compiler isn't looking in the proper directory.
6157 Use --without-zlib to disable zlib support." >&2;}
6158 { (exit 1); exit 1; }; }
6163 if test "$enable_spinlocks" = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define HAVE_SPINLOCKS 1
6170 { echo "$as_me:$LINENO: WARNING:
6171 *** Not using spinlocks will cause poor performance." >&5
6172 echo "$as_me: WARNING:
6173 *** Not using spinlocks will cause poor performance." >&2;}
6176 if test "$with_krb4" = yes ; then
6178 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6179 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6180 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 ac_check_lib_save_LIBS=$LIBS
6185 cat >conftest.$ac_ext <<_ACEOF
6186 #line $LINENO "configure"
6187 #include "confdefs.h"
6189 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char des_encrypt ();
6196 #ifdef F77_DUMMY_MAIN
6200 int F77_DUMMY_MAIN() { return 1; }
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212 (eval $ac_link) 2>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -s conftest$ac_exeext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_cv_lib_des_des_encrypt=yes
6224 echo "$as_me: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6226 ac_cv_lib_des_des_encrypt=no
6228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6229 LIBS=$ac_check_lib_save_LIBS
6231 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6232 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6233 if test $ac_cv_lib_des_des_encrypt = yes; then
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_LIBDES 1
6241 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6242 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6243 { (exit 1); exit 1; }; }
6247 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6248 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6249 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 ac_check_lib_save_LIBS=$LIBS
6254 cat >conftest.$ac_ext <<_ACEOF
6255 #line $LINENO "configure"
6256 #include "confdefs.h"
6258 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char krb_sendauth ();
6265 #ifdef F77_DUMMY_MAIN
6269 int F77_DUMMY_MAIN() { return 1; }
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_lib_krb_krb_sendauth=yes
6293 echo "$as_me: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 ac_cv_lib_krb_krb_sendauth=no
6297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6300 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6301 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6302 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6303 cat >>confdefs.h <<_ACEOF
6304 #define HAVE_LIBKRB 1
6310 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6311 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6312 { (exit 1); exit 1; }; }
6316 for ac_func in gethostname
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes,
6328 which can conflict with char $ac_func (); below. */
6330 /* Override any gcc2 internal prototype to avoid an error. */
6334 /* We use char because int might match the return type of a gcc2
6335 builtin and then its argument prototype would still apply. */
6339 #ifdef F77_DUMMY_MAIN
6343 int F77_DUMMY_MAIN() { return 1; }
6348 /* The GNU C library defines this for functions which it implements
6349 to always fail with ENOSYS. Some functions are actually named
6350 something starting with __ and the normal name is an alias. */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6361 rm -f conftest.$ac_objext conftest$ac_exeext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -s conftest$ac_exeext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 eval "$as_ac_var=yes"
6375 echo "$as_me: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6377 eval "$as_ac_var=no"
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6383 if test `eval echo '${'$as_ac_var'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6389 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6396 if test "$with_krb5" = yes ; then
6397 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6398 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6399 if test "${ac_cv_search_com_err+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 ac_func_search_save_LIBS=$LIBS
6403 ac_cv_search_com_err=no
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 #include "confdefs.h"
6408 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6415 #ifdef F77_DUMMY_MAIN
6419 int F77_DUMMY_MAIN() { return 1; }
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -s conftest$ac_exeext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 ac_cv_search_com_err="none required"
6443 echo "$as_me: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447 if test "$ac_cv_search_com_err" = no; then
6448 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6450 cat >conftest.$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 #include "confdefs.h"
6454 /* Override any gcc2 internal prototype to avoid an error. */
6458 /* We use char because int might match the return type of a gcc2
6459 builtin and then its argument prototype would still apply. */
6461 #ifdef F77_DUMMY_MAIN
6465 int F77_DUMMY_MAIN() { return 1; }
6475 rm -f conftest.$ac_objext conftest$ac_exeext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6477 (eval $ac_link) 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -s conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_search_com_err="-l$ac_lib"
6490 echo "$as_me: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6496 LIBS=$ac_func_search_save_LIBS
6498 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6499 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6500 if test "$ac_cv_search_com_err" != no; then
6501 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6504 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6505 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6506 { (exit 1); exit 1; }; }
6509 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6510 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6511 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 ac_func_search_save_LIBS=$LIBS
6515 ac_cv_search_krb5_encrypt=no
6516 cat >conftest.$ac_ext <<_ACEOF
6517 #line $LINENO "configure"
6518 #include "confdefs.h"
6520 /* Override any gcc2 internal prototype to avoid an error. */
6524 /* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6526 char krb5_encrypt ();
6527 #ifdef F77_DUMMY_MAIN
6531 int F77_DUMMY_MAIN() { return 1; }
6541 rm -f conftest.$ac_objext conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543 (eval $ac_link) 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -s conftest$ac_exeext'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6553 ac_cv_search_krb5_encrypt="none required"
6555 echo "$as_me: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6559 if test "$ac_cv_search_krb5_encrypt" = no; then
6560 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6562 cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6566 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6572 char krb5_encrypt ();
6573 #ifdef F77_DUMMY_MAIN
6577 int F77_DUMMY_MAIN() { return 1; }
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -s conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_cv_search_krb5_encrypt="-l$ac_lib"
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6608 LIBS=$ac_func_search_save_LIBS
6610 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6611 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6612 if test "$ac_cv_search_krb5_encrypt" != no; then
6613 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6616 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6617 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6618 { (exit 1); exit 1; }; }
6621 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6622 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6623 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 ac_func_search_save_LIBS=$LIBS
6627 ac_cv_search_krb5_sendauth=no
6628 cat >conftest.$ac_ext <<_ACEOF
6629 #line $LINENO "configure"
6630 #include "confdefs.h"
6632 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6638 char krb5_sendauth ();
6639 #ifdef F77_DUMMY_MAIN
6643 int F77_DUMMY_MAIN() { return 1; }
6653 rm -f conftest.$ac_objext conftest$ac_exeext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655 (eval $ac_link) 2>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -s conftest$ac_exeext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_search_krb5_sendauth="none required"
6667 echo "$as_me: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6671 if test "$ac_cv_search_krb5_sendauth" = no; then
6672 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6678 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684 char krb5_sendauth ();
6685 #ifdef F77_DUMMY_MAIN
6689 int F77_DUMMY_MAIN() { return 1; }
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_search_krb5_sendauth="-l$ac_lib"
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6720 LIBS=$ac_func_search_save_LIBS
6722 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6723 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6724 if test "$ac_cv_search_krb5_sendauth" != no; then
6725 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6728 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6729 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6730 { (exit 1); exit 1; }; }
6735 if test "$with_openssl" = yes ; then
6737 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6738 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6739 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_check_lib_save_LIBS=$LIBS
6743 LIBS="-lcrypto $LIBS"
6744 cat >conftest.$ac_ext <<_ACEOF
6745 #line $LINENO "configure"
6746 #include "confdefs.h"
6748 /* Override any gcc2 internal prototype to avoid an error. */
6752 /* We use char because int might match the return type of a gcc2
6753 builtin and then its argument prototype would still apply. */
6754 char CRYPTO_new_ex_data ();
6755 #ifdef F77_DUMMY_MAIN
6759 int F77_DUMMY_MAIN() { return 1; }
6764 CRYPTO_new_ex_data ();
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6783 echo "$as_me: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6788 LIBS=$ac_check_lib_save_LIBS
6790 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6791 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6792 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6793 cat >>confdefs.h <<_ACEOF
6794 #define HAVE_LIBCRYPTO 1
6797 LIBS="-lcrypto $LIBS"
6800 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6801 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6802 { (exit 1); exit 1; }; }
6806 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6807 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6808 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 ac_check_lib_save_LIBS=$LIBS
6813 cat >conftest.$ac_ext <<_ACEOF
6814 #line $LINENO "configure"
6815 #include "confdefs.h"
6817 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6823 char SSL_library_init ();
6824 #ifdef F77_DUMMY_MAIN
6828 int F77_DUMMY_MAIN() { return 1; }
6833 SSL_library_init ();
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_lib_ssl_SSL_library_init=yes
6852 echo "$as_me: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 ac_cv_lib_ssl_SSL_library_init=no
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_check_lib_save_LIBS
6859 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6860 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6861 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863 #define HAVE_LIBSSL 1
6869 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6870 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6871 { (exit 1); exit 1; }; }
6876 if test "$with_pam" = yes ; then
6878 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6879 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6880 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 ac_check_lib_save_LIBS=$LIBS
6885 cat >conftest.$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6887 #include "confdefs.h"
6889 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6896 #ifdef F77_DUMMY_MAIN
6900 int F77_DUMMY_MAIN() { return 1; }
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_lib_pam_pam_start=yes
6924 echo "$as_me: failed program was:" >&5
6925 cat conftest.$ac_ext >&5
6926 ac_cv_lib_pam_pam_start=no
6928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6931 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6932 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6933 if test $ac_cv_lib_pam_pam_start = yes; then
6934 cat >>confdefs.h <<_ACEOF
6935 #define HAVE_LIBPAM 1
6941 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6942 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6943 { (exit 1); exit 1; }; }
6953 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6954 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6955 if test "${ac_cv_header_stdc+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 cat >conftest.$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6960 #include "confdefs.h"
6967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6970 egrep -v '^ *\+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } >/dev/null; then
6975 if test -s conftest.err; then
6976 ac_cpp_err=$ac_c_preproc_warn_flag
6983 if test -z "$ac_cpp_err"; then
6984 ac_cv_header_stdc=yes
6986 echo "$as_me: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 ac_cv_header_stdc=no
6990 rm -f conftest.err conftest.$ac_ext
6992 if test $ac_cv_header_stdc = yes; then
6993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 #include "confdefs.h"
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001 egrep "memchr" >/dev/null 2>&1; then
7004 ac_cv_header_stdc=no
7010 if test $ac_cv_header_stdc = yes; then
7011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012 cat >conftest.$ac_ext <<_ACEOF
7013 #line $LINENO "configure"
7014 #include "confdefs.h"
7018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019 egrep "free" >/dev/null 2>&1; then
7022 ac_cv_header_stdc=no
7028 if test $ac_cv_header_stdc = yes; then
7029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7030 if test "$cross_compiling" = yes; then
7033 cat >conftest.$ac_ext <<_ACEOF
7034 #line $LINENO "configure"
7035 #include "confdefs.h"
7037 #if ((' ' & 0x0FF) == 0x020)
7038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7041 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7042 || ('j' <= (c) && (c) <= 'r') \
7043 || ('s' <= (c) && (c) <= 'z'))
7044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7052 for (i = 0; i < 256; i++)
7053 if (XOR (islower (i), ISLOWER (i))
7054 || toupper (i) != TOUPPER (i))
7059 rm -f conftest$ac_exeext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7072 echo "$as_me: program exited with status $ac_status" >&5
7073 echo "$as_me: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7076 ac_cv_header_stdc=no
7078 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7084 if test $ac_cv_header_stdc = yes; then
7086 cat >>confdefs.h <<\_ACEOF
7087 #define STDC_HEADERS 1
7092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7103 inttypes.h stdint.h unistd.h
7105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 echo "$as_me:$LINENO: checking for $ac_header" >&5
7107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 cat >conftest.$ac_ext <<_ACEOF
7112 #line $LINENO "configure"
7113 #include "confdefs.h"
7114 $ac_includes_default
7116 #include <$ac_header>
7118 rm -f conftest.$ac_objext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120 (eval $ac_compile) 2>&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -s conftest.$ac_objext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 eval "$as_ac_Header=yes"
7132 echo "$as_me: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 eval "$as_ac_Header=no"
7136 rm -f conftest.$ac_objext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7141 cat >>confdefs.h <<_ACEOF
7142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7171 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
7173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175 echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7183 # Is the header compilable?
7184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line $LINENO "configure"
7188 #include "confdefs.h"
7189 $ac_includes_default
7190 #include <$ac_header>
7192 rm -f conftest.$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194 (eval $ac_compile) 2>&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_header_compiler=yes
7206 echo "$as_me: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 ac_header_compiler=no
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7212 echo "${ECHO_T}$ac_header_compiler" >&6
7214 # Is the header present?
7215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7217 cat >conftest.$ac_ext <<_ACEOF
7218 #line $LINENO "configure"
7219 #include "confdefs.h"
7220 #include <$ac_header>
7222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7225 egrep -v '^ *\+' conftest.er1 >conftest.err
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } >/dev/null; then
7230 if test -s conftest.err; then
7231 ac_cpp_err=$ac_c_preproc_warn_flag
7238 if test -z "$ac_cpp_err"; then
7239 ac_header_preproc=yes
7241 echo "$as_me: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 ac_header_preproc=no
7245 rm -f conftest.err conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6
7249 # So? What about this header?
7250 case $ac_header_compiler:$ac_header_preproc in
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7264 echo "$as_me:$LINENO: checking for $ac_header" >&5
7265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 eval "$as_ac_Header=$ac_header_preproc"
7271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276 cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7286 # netinet/in.h is included first.
7288 for ac_header in netinet/in.h
7290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292 echo "$as_me:$LINENO: checking for $ac_header" >&5
7293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7300 # Is the header compilable?
7301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 #include <$ac_header>
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -s conftest.$ac_objext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_header_compiler=yes
7323 echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 ac_header_compiler=no
7327 rm -f conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7337 #include <$ac_header>
7339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7342 egrep -v '^ *\+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } >/dev/null; then
7347 if test -s conftest.err; then
7348 ac_cpp_err=$ac_c_preproc_warn_flag
7355 if test -z "$ac_cpp_err"; then
7356 ac_header_preproc=yes
7358 echo "$as_me: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 ac_header_preproc=no
7362 rm -f conftest.err conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7364 echo "${ECHO_T}$ac_header_preproc" >&6
7366 # So? What about this header?
7367 case $ac_header_compiler:$ac_header_preproc in
7369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 eval "$as_ac_Header=$ac_header_preproc"
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393 cat >>confdefs.h <<_ACEOF
7394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7402 for ac_header in netinet/tcp.h
7404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7405 echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 cat >conftest.$ac_ext <<_ACEOF
7411 #line $LINENO "configure"
7412 #include "confdefs.h"
7413 $ac_includes_default
7414 #ifdef HAVE_NETINET_IN_H
7415 #include <netinet/in.h>
7419 #include <$ac_header>
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 eval "$as_ac_Header=yes"
7435 echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 eval "$as_ac_Header=no"
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7444 cat >>confdefs.h <<_ACEOF
7445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7453 if test "$with_readline" = yes; then
7455 for ac_header in readline/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 editline/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
7677 for ac_header in readline.h
7679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7681 echo "$as_me:$LINENO: checking for $ac_header" >&5
7682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7689 # Is the header compilable?
7690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7692 cat >conftest.$ac_ext <<_ACEOF
7693 #line $LINENO "configure"
7694 #include "confdefs.h"
7695 $ac_includes_default
7696 #include <$ac_header>
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -s conftest.$ac_objext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_header_compiler=yes
7712 echo "$as_me: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 ac_header_compiler=no
7716 rm -f conftest.$ac_objext conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7718 echo "${ECHO_T}$ac_header_compiler" >&6
7720 # Is the header present?
7721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7725 #include "confdefs.h"
7726 #include <$ac_header>
7728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7731 egrep -v '^ *\+' conftest.er1 >conftest.err
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } >/dev/null; then
7736 if test -s conftest.err; then
7737 ac_cpp_err=$ac_c_preproc_warn_flag
7744 if test -z "$ac_cpp_err"; then
7745 ac_header_preproc=yes
7747 echo "$as_me: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7749 ac_header_preproc=no
7751 rm -f conftest.err conftest.$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7753 echo "${ECHO_T}$ac_header_preproc" >&6
7755 # So? What about this header?
7756 case $ac_header_compiler:$ac_header_preproc in
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7770 echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 eval "$as_ac_Header=$ac_header_preproc"
7777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7782 cat >>confdefs.h <<_ACEOF
7783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7787 { { echo "$as_me:$LINENO: error: readline header not found
7788 If you have readline already installed, see config.log for details on the
7789 failure. It is possible the compiler isn't looking in the proper directory.
7790 Use --without-readline to disable readline support." >&5
7791 echo "$as_me: error: readline header not found
7792 If you have readline already installed, see config.log for details on the
7793 failure. It is possible the compiler isn't looking in the proper directory.
7794 Use --without-readline to disable readline support." >&2;}
7795 { (exit 1); exit 1; }; }
7809 for ac_header in readline/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 editline/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
8031 for ac_header in history.h
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035 echo "$as_me:$LINENO: checking for $ac_header" >&5
8036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043 # Is the header compilable?
8044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8048 #include "confdefs.h"
8049 $ac_includes_default
8050 #include <$ac_header>
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -s conftest.$ac_objext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 ac_header_compiler=yes
8066 echo "$as_me: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8068 ac_header_compiler=no
8070 rm -f conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8072 echo "${ECHO_T}$ac_header_compiler" >&6
8074 # Is the header present?
8075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8079 #include "confdefs.h"
8080 #include <$ac_header>
8082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8085 egrep -v '^ *\+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } >/dev/null; then
8090 if test -s conftest.err; then
8091 ac_cpp_err=$ac_c_preproc_warn_flag
8098 if test -z "$ac_cpp_err"; then
8099 ac_header_preproc=yes
8101 echo "$as_me: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 ac_header_preproc=no
8105 rm -f conftest.err conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 echo "${ECHO_T}$ac_header_preproc" >&6
8109 # So? What about this header?
8110 case $ac_header_compiler:$ac_header_preproc in
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 eval "$as_ac_Header=$ac_header_preproc"
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8141 { { echo "$as_me:$LINENO: error: history header not found
8142 If you have readline already installed, see config.log for details on the
8143 failure. It is possible the compiler isn't looking in the proper directory.
8144 Use --without-readline to disable readline support." >&5
8145 echo "$as_me: error: history header not found
8146 If you have readline already installed, see config.log for details on the
8147 failure. It is possible the compiler isn't looking in the proper directory.
8148 Use --without-readline to disable readline support." >&2;}
8149 { (exit 1); exit 1; }; }
8164 if test "$with_zlib" = yes; then
8165 if test "${ac_cv_header_zlib_h+set}" = set; then
8166 echo "$as_me:$LINENO: checking for zlib.h" >&5
8167 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8168 if test "${ac_cv_header_zlib_h+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8172 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8174 # Is the header compilable?
8175 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8176 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8178 #line $LINENO "configure"
8179 #include "confdefs.h"
8180 $ac_includes_default
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185 (eval $ac_compile) 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -s conftest.$ac_objext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_header_compiler=yes
8197 echo "$as_me: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8199 ac_header_compiler=no
8201 rm -f conftest.$ac_objext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8203 echo "${ECHO_T}$ac_header_compiler" >&6
8205 # Is the header present?
8206 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8207 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8210 #include "confdefs.h"
8213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8216 egrep -v '^ *\+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } >/dev/null; then
8221 if test -s conftest.err; then
8222 ac_cpp_err=$ac_c_preproc_warn_flag
8229 if test -z "$ac_cpp_err"; then
8230 ac_header_preproc=yes
8232 echo "$as_me: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8234 ac_header_preproc=no
8236 rm -f conftest.err conftest.$ac_ext
8237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8238 echo "${ECHO_T}$ac_header_preproc" >&6
8240 # So? What about this header?
8241 case $ac_header_compiler:$ac_header_preproc in
8243 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8244 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8245 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8246 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8248 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8249 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8251 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8252 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8253 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8255 echo "$as_me:$LINENO: checking for zlib.h" >&5
8256 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8257 if test "${ac_cv_header_zlib_h+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 ac_cv_header_zlib_h=$ac_header_preproc
8262 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8263 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8266 if test $ac_cv_header_zlib_h = yes; then
8269 { { echo "$as_me:$LINENO: error: zlib header not found
8270 If you have zlib already installed, see config.log for details on the
8271 failure. It is possible the compiler isn't looking in the proper directory.
8272 Use --without-zlib to disable zlib support." >&5
8273 echo "$as_me: error: zlib header not found
8274 If you have zlib already installed, see config.log for details on the
8275 failure. It is possible the compiler isn't looking in the proper directory.
8276 Use --without-zlib to disable zlib support." >&2;}
8277 { (exit 1); exit 1; }; }
8283 if test "$with_krb4" = yes ; then
8284 if test "${ac_cv_header_krb_h+set}" = set; then
8285 echo "$as_me:$LINENO: checking for krb.h" >&5
8286 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8287 if test "${ac_cv_header_krb_h+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8291 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8293 # Is the header compilable?
8294 echo "$as_me:$LINENO: checking krb.h usability" >&5
8295 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8296 cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8298 #include "confdefs.h"
8299 $ac_includes_default
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_header_compiler=yes
8316 echo "$as_me: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8318 ac_header_compiler=no
8320 rm -f conftest.$ac_objext conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8322 echo "${ECHO_T}$ac_header_compiler" >&6
8324 # Is the header present?
8325 echo "$as_me:$LINENO: checking krb.h presence" >&5
8326 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8327 cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8329 #include "confdefs.h"
8332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8335 egrep -v '^ *\+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } >/dev/null; then
8340 if test -s conftest.err; then
8341 ac_cpp_err=$ac_c_preproc_warn_flag
8348 if test -z "$ac_cpp_err"; then
8349 ac_header_preproc=yes
8351 echo "$as_me: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 ac_header_preproc=no
8355 rm -f conftest.err conftest.$ac_ext
8356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8357 echo "${ECHO_T}$ac_header_preproc" >&6
8359 # So? What about this header?
8360 case $ac_header_compiler:$ac_header_preproc in
8362 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8363 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8365 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8367 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8368 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8370 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8374 echo "$as_me:$LINENO: checking for krb.h" >&5
8375 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8376 if test "${ac_cv_header_krb_h+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 ac_cv_header_krb_h=$ac_header_preproc
8381 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8382 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8385 if test $ac_cv_header_krb_h = yes; then
8388 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8389 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8390 { (exit 1); exit 1; }; }
8396 if test "$with_krb5" = yes ; then
8397 if test "${ac_cv_header_krb5_h+set}" = set; then
8398 echo "$as_me:$LINENO: checking for krb5.h" >&5
8399 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8400 if test "${ac_cv_header_krb5_h+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8404 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8406 # Is the header compilable?
8407 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8408 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8409 cat >conftest.$ac_ext <<_ACEOF
8410 #line $LINENO "configure"
8411 #include "confdefs.h"
8412 $ac_includes_default
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417 (eval $ac_compile) 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -s conftest.$ac_objext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_header_compiler=yes
8429 echo "$as_me: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8431 ac_header_compiler=no
8433 rm -f conftest.$ac_objext conftest.$ac_ext
8434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8435 echo "${ECHO_T}$ac_header_compiler" >&6
8437 # Is the header present?
8438 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8439 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8441 #line $LINENO "configure"
8442 #include "confdefs.h"
8445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8448 egrep -v '^ *\+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } >/dev/null; then
8453 if test -s conftest.err; then
8454 ac_cpp_err=$ac_c_preproc_warn_flag
8461 if test -z "$ac_cpp_err"; then
8462 ac_header_preproc=yes
8464 echo "$as_me: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8466 ac_header_preproc=no
8468 rm -f conftest.err conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6
8472 # So? What about this header?
8473 case $ac_header_compiler:$ac_header_preproc in
8475 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8476 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8480 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8481 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8483 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8485 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8487 echo "$as_me:$LINENO: checking for krb5.h" >&5
8488 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8489 if test "${ac_cv_header_krb5_h+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_cv_header_krb5_h=$ac_header_preproc
8494 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8495 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8498 if test $ac_cv_header_krb5_h = yes; then
8501 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8502 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8503 { (exit 1); exit 1; }; }
8507 if test "${ac_cv_header_com_err_h+set}" = set; then
8508 echo "$as_me:$LINENO: checking for com_err.h" >&5
8509 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8510 if test "${ac_cv_header_com_err_h+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8514 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8516 # Is the header compilable?
8517 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8518 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 #include "confdefs.h"
8522 $ac_includes_default
8523 #include <com_err.h>
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -s conftest.$ac_objext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_header_compiler=yes
8539 echo "$as_me: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8541 ac_header_compiler=no
8543 rm -f conftest.$ac_objext conftest.$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8545 echo "${ECHO_T}$ac_header_compiler" >&6
8547 # Is the header present?
8548 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8549 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8550 cat >conftest.$ac_ext <<_ACEOF
8551 #line $LINENO "configure"
8552 #include "confdefs.h"
8553 #include <com_err.h>
8555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8558 egrep -v '^ *\+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } >/dev/null; then
8563 if test -s conftest.err; then
8564 ac_cpp_err=$ac_c_preproc_warn_flag
8571 if test -z "$ac_cpp_err"; then
8572 ac_header_preproc=yes
8574 echo "$as_me: failed program was:" >&5
8575 cat conftest.$ac_ext >&5
8576 ac_header_preproc=no
8578 rm -f conftest.err conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6
8582 # So? What about this header?
8583 case $ac_header_compiler:$ac_header_preproc in
8585 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8588 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8590 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8591 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8593 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8595 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8597 echo "$as_me:$LINENO: checking for com_err.h" >&5
8598 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8599 if test "${ac_cv_header_com_err_h+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 ac_cv_header_com_err_h=$ac_header_preproc
8604 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8605 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8608 if test $ac_cv_header_com_err_h = yes; then
8611 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8612 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8613 { (exit 1); exit 1; }; }
8619 if test "$with_openssl" = yes ; then
8620 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8621 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8622 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8623 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8627 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8629 # Is the header compilable?
8630 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8631 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8632 cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8634 #include "confdefs.h"
8635 $ac_includes_default
8636 #include <openssl/ssl.h>
8638 rm -f conftest.$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 ac_header_compiler=yes
8652 echo "$as_me: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8654 ac_header_compiler=no
8656 rm -f conftest.$ac_objext conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8658 echo "${ECHO_T}$ac_header_compiler" >&6
8660 # Is the header present?
8661 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8662 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8663 cat >conftest.$ac_ext <<_ACEOF
8664 #line $LINENO "configure"
8665 #include "confdefs.h"
8666 #include <openssl/ssl.h>
8668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8671 egrep -v '^ *\+' conftest.er1 >conftest.err
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } >/dev/null; then
8676 if test -s conftest.err; then
8677 ac_cpp_err=$ac_c_preproc_warn_flag
8684 if test -z "$ac_cpp_err"; then
8685 ac_header_preproc=yes
8687 echo "$as_me: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8689 ac_header_preproc=no
8691 rm -f conftest.err conftest.$ac_ext
8692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8693 echo "${ECHO_T}$ac_header_preproc" >&6
8695 # So? What about this header?
8696 case $ac_header_compiler:$ac_header_preproc in
8698 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8699 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8700 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8701 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8703 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8708 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8710 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8711 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8712 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8717 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8718 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8721 if test $ac_cv_header_openssl_ssl_h = yes; then
8724 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8725 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8726 { (exit 1); exit 1; }; }
8730 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8731 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8732 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8733 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8737 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8739 # Is the header compilable?
8740 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8741 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 #include "confdefs.h"
8745 $ac_includes_default
8746 #include <openssl/err.h>
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -s conftest.$ac_objext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_header_compiler=yes
8762 echo "$as_me: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_header_compiler=no
8766 rm -f conftest.$ac_objext conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8768 echo "${ECHO_T}$ac_header_compiler" >&6
8770 # Is the header present?
8771 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8772 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8774 #line $LINENO "configure"
8775 #include "confdefs.h"
8776 #include <openssl/err.h>
8778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8781 egrep -v '^ *\+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } >/dev/null; then
8786 if test -s conftest.err; then
8787 ac_cpp_err=$ac_c_preproc_warn_flag
8794 if test -z "$ac_cpp_err"; then
8795 ac_header_preproc=yes
8797 echo "$as_me: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8799 ac_header_preproc=no
8801 rm -f conftest.err conftest.$ac_ext
8802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8803 echo "${ECHO_T}$ac_header_preproc" >&6
8805 # So? What about this header?
8806 case $ac_header_compiler:$ac_header_preproc in
8808 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8809 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8813 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8814 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8816 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8820 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8821 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8822 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_cv_header_openssl_err_h=$ac_header_preproc
8827 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8828 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8831 if test $ac_cv_header_openssl_err_h = yes; then
8834 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8835 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8836 { (exit 1); exit 1; }; }
8842 if test "$with_pam" = yes ; then
8844 for ac_header in security/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
8955 for ac_header in pam/pam_appl.h
8957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959 echo "$as_me:$LINENO: checking for $ac_header" >&5
8960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8967 # Is the header compilable?
8968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8970 cat >conftest.$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8972 #include "confdefs.h"
8973 $ac_includes_default
8974 #include <$ac_header>
8976 rm -f conftest.$ac_objext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978 (eval $ac_compile) 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_header_compiler=yes
8990 echo "$as_me: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8992 ac_header_compiler=no
8994 rm -f conftest.$ac_objext conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8996 echo "${ECHO_T}$ac_header_compiler" >&6
8998 # Is the header present?
8999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9001 cat >conftest.$ac_ext <<_ACEOF
9002 #line $LINENO "configure"
9003 #include "confdefs.h"
9004 #include <$ac_header>
9006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9009 egrep -v '^ *\+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } >/dev/null; then
9014 if test -s conftest.err; then
9015 ac_cpp_err=$ac_c_preproc_warn_flag
9022 if test -z "$ac_cpp_err"; then
9023 ac_header_preproc=yes
9025 echo "$as_me: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9027 ac_header_preproc=no
9029 rm -f conftest.err conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031 echo "${ECHO_T}$ac_header_preproc" >&6
9033 # So? What about this header?
9034 case $ac_header_compiler:$ac_header_preproc in
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9048 echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 eval "$as_ac_Header=$ac_header_preproc"
9055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9065 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9066 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9067 { (exit 1); exit 1; }; }
9078 if test "$with_rendezvous" = yes ; then
9079 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9080 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9081 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9082 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9086 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9088 # Is the header compilable?
9089 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9090 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9092 #line $LINENO "configure"
9093 #include "confdefs.h"
9094 $ac_includes_default
9095 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest.$ac_objext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_header_compiler=yes
9111 echo "$as_me: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 ac_header_compiler=no
9115 rm -f conftest.$ac_objext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9117 echo "${ECHO_T}$ac_header_compiler" >&6
9119 # Is the header present?
9120 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9121 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9124 #include "confdefs.h"
9125 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9130 egrep -v '^ *\+' conftest.er1 >conftest.err
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } >/dev/null; then
9135 if test -s conftest.err; then
9136 ac_cpp_err=$ac_c_preproc_warn_flag
9143 if test -z "$ac_cpp_err"; then
9144 ac_header_preproc=yes
9146 echo "$as_me: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9148 ac_header_preproc=no
9150 rm -f conftest.err conftest.$ac_ext
9151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9152 echo "${ECHO_T}$ac_header_preproc" >&6
9154 # So? What about this header?
9155 case $ac_header_compiler:$ac_header_preproc in
9157 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9158 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9160 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9162 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9163 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9165 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9169 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9170 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9171 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9176 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9177 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9180 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9183 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9184 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9185 { (exit 1); exit 1; }; }
9193 ## Types, structures, compiler characteristics
9197 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9199 if test "${ac_cv_c_const+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9204 #include "confdefs.h"
9206 #ifdef F77_DUMMY_MAIN
9210 int F77_DUMMY_MAIN() { return 1; }
9215 /* FIXME: Include the comments suggested by Paul. */
9217 /* Ultrix mips cc rejects this. */
9218 typedef int charset[2];
9220 /* SunOS 4.1.1 cc rejects this. */
9221 char const *const *ccp;
9223 /* NEC SVR4.0.2 mips cc rejects this. */
9224 struct point {int x, y;};
9225 static struct point const zero = {0,0};
9226 /* AIX XL C 1.02.0.0 rejects this.
9227 It does not let you subtract one const X* pointer from another in
9228 an arm of an if-expression whose if-part is not a constant
9230 const char *g = "string";
9231 ccp = &g + (g ? g-g : 0);
9232 /* HPUX 7.0 cc rejects these. */
9235 ccp = (char const *const *) p;
9236 { /* SCO 3.2v4 cc rejects this. */
9238 char const *s = 0 ? (char *) 0 : (char const *) 0;
9242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9244 const int *foo = &x[0];
9247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9248 typedef const int *iptr;
9252 { /* AIX XL C 1.02.0.0 rejects this saying
9253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9254 struct s { int j; const int *ap[3]; };
9255 struct s *b; b->j = 5;
9257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -s conftest.$ac_objext'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9280 echo "$as_me: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9284 rm -f conftest.$ac_objext conftest.$ac_ext
9286 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9287 echo "${ECHO_T}$ac_cv_c_const" >&6
9288 if test $ac_cv_c_const = no; then
9290 cat >>confdefs.h <<\_ACEOF
9296 echo "$as_me:$LINENO: checking for inline" >&5
9297 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9298 if test "${ac_cv_c_inline+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 for ac_kw in inline __inline__ __inline; do
9303 cat >conftest.$ac_ext <<_ACEOF
9304 #line $LINENO "configure"
9305 #include "confdefs.h"
9308 static $ac_kw foo_t static_foo () {return 0; }
9309 $ac_kw int foo () {return 0; }
9313 rm -f conftest.$ac_objext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315 (eval $ac_compile) 2>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -s conftest.$ac_objext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_c_inline=$ac_kw; break
9327 echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9335 echo "${ECHO_T}$ac_cv_c_inline" >&6
9336 case $ac_cv_c_inline in
9339 cat >>confdefs.h <<\_ACEOF
9343 *) cat >>confdefs.h <<_ACEOF
9344 #define inline $ac_cv_c_inline
9349 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9350 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9351 if test "${ac_cv_c_stringize+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9356 #include "confdefs.h"
9359 char *s = x(teststring);
9361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9362 egrep "#teststring" >/dev/null 2>&1; then
9363 ac_cv_c_stringize=no
9365 ac_cv_c_stringize=yes
9370 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9371 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9372 if test $ac_cv_c_stringize = yes; then
9374 cat >>confdefs.h <<\_ACEOF
9375 #define HAVE_STRINGIZE 1
9380 echo "$as_me:$LINENO: checking for signed types" >&5
9381 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9382 if test "${pgac_cv_c_signed+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9387 #include "confdefs.h"
9389 #ifdef F77_DUMMY_MAIN
9393 int F77_DUMMY_MAIN() { return 1; }
9398 signed char c; signed short s; signed int i;
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -s conftest.$ac_objext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 pgac_cv_c_signed=yes
9417 echo "$as_me: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9421 rm -f conftest.$ac_objext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9424 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9425 if test x"$pgac_cv_c_signed" = xno ; then
9427 cat >>confdefs.h <<\_ACEOF
9432 echo "$as_me:$LINENO: checking for working volatile" >&5
9433 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9434 if test "${ac_cv_c_volatile+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 #include "confdefs.h"
9441 #ifdef F77_DUMMY_MAIN
9445 int F77_DUMMY_MAIN() { return 1; }
9457 rm -f conftest.$ac_objext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459 (eval $ac_compile) 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest.$ac_objext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_c_volatile=yes
9471 echo "$as_me: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9475 rm -f conftest.$ac_objext conftest.$ac_ext
9477 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9478 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9479 if test $ac_cv_c_volatile = no; then
9481 cat >>confdefs.h <<\_ACEOF
9487 echo "$as_me:$LINENO: checking for __func__" >&5
9488 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9489 if test "${pgac_cv_funcname_func_support+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 cat >conftest.$ac_ext <<_ACEOF
9493 #line $LINENO "configure"
9494 #include "confdefs.h"
9496 #ifdef F77_DUMMY_MAIN
9500 int F77_DUMMY_MAIN() { return 1; }
9505 printf("%s\n", __func__);
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -s conftest.$ac_objext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 pgac_cv_funcname_func_support=yes
9524 echo "$as_me: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 pgac_cv_funcname_func_support=no
9528 rm -f conftest.$ac_objext conftest.$ac_ext
9530 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9531 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9532 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_FUNCNAME__FUNC 1
9539 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9540 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9541 if test "${pgac_cv_funcname_function_support+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9546 #include "confdefs.h"
9548 #ifdef F77_DUMMY_MAIN
9552 int F77_DUMMY_MAIN() { return 1; }
9557 printf("%s\n", __FUNCTION__);
9562 rm -f conftest.$ac_objext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -s conftest.$ac_objext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 pgac_cv_funcname_function_support=yes
9576 echo "$as_me: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 pgac_cv_funcname_function_support=no
9580 rm -f conftest.$ac_objext conftest.$ac_ext
9582 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9583 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9584 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9586 cat >>confdefs.h <<\_ACEOF
9587 #define HAVE_FUNCNAME__FUNCTION 1
9592 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9593 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9594 if test "${ac_cv_struct_tm+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 cat >conftest.$ac_ext <<_ACEOF
9598 #line $LINENO "configure"
9599 #include "confdefs.h"
9600 #include <sys/types.h>
9603 #ifdef F77_DUMMY_MAIN
9607 int F77_DUMMY_MAIN() { return 1; }
9612 struct tm *tp; tp->tm_sec;
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619 (eval $ac_compile) 2>&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -s conftest.$ac_objext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_struct_tm=time.h
9631 echo "$as_me: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 ac_cv_struct_tm=sys/time.h
9635 rm -f conftest.$ac_objext conftest.$ac_ext
9637 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9638 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9639 if test $ac_cv_struct_tm = sys/time.h; then
9641 cat >>confdefs.h <<\_ACEOF
9642 #define TM_IN_SYS_TIME 1
9647 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9648 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9649 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9655 #include <sys/types.h>
9656 #include <$ac_cv_struct_tm>
9659 #ifdef F77_DUMMY_MAIN
9663 int F77_DUMMY_MAIN() { return 1; }
9668 static struct tm ac_aggr;
9669 if (ac_aggr.tm_zone)
9675 rm -f conftest.$ac_objext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677 (eval $ac_compile) 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_member_struct_tm_tm_zone=yes
9689 echo "$as_me: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9691 ac_cv_member_struct_tm_tm_zone=no
9693 rm -f conftest.$ac_objext conftest.$ac_ext
9695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE_STRUCT_TM_TM_ZONE 1
9706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_TM_ZONE 1
9713 echo "$as_me:$LINENO: checking for tzname" >&5
9714 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9715 if test "${ac_cv_var_tzname+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 cat >conftest.$ac_ext <<_ACEOF
9719 #line $LINENO "configure"
9720 #include "confdefs.h"
9722 #ifndef tzname /* For SGI. */
9723 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9726 #ifdef F77_DUMMY_MAIN
9730 int F77_DUMMY_MAIN() { return 1; }
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_var_tzname=yes
9754 echo "$as_me: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9761 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9762 if test $ac_cv_var_tzname = yes; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define HAVE_TZNAME 1
9770 echo "$as_me:$LINENO: checking for union semun" >&5
9771 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9772 if test "${ac_cv_type_union_semun+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 cat >conftest.$ac_ext <<_ACEOF
9776 #line $LINENO "configure"
9777 #include "confdefs.h"
9778 #include <sys/types.h>
9779 #include <sys/ipc.h>
9780 #include <sys/sem.h>
9782 #ifdef F77_DUMMY_MAIN
9786 int F77_DUMMY_MAIN() { return 1; }
9791 if ((union semun *) 0)
9793 if (sizeof (union semun))
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801 (eval $ac_compile) 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -s conftest.$ac_objext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_type_union_semun=yes
9813 echo "$as_me: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 ac_cv_type_union_semun=no
9817 rm -f conftest.$ac_objext conftest.$ac_ext
9819 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9820 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9821 if test $ac_cv_type_union_semun = yes; then
9823 cat >>confdefs.h <<_ACEOF
9824 #define HAVE_UNION_SEMUN 1
9830 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9831 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9832 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.$ac_ext <<_ACEOF
9836 #line $LINENO "configure"
9837 #include "confdefs.h"
9838 #include <sys/types.h>
9839 #ifdef HAVE_SYS_UN_H
9844 #ifdef F77_DUMMY_MAIN
9848 int F77_DUMMY_MAIN() { return 1; }
9853 if ((struct sockaddr_un *) 0)
9855 if (sizeof (struct sockaddr_un))
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863 (eval $ac_compile) 2>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_cv_type_struct_sockaddr_un=yes
9875 echo "$as_me: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 ac_cv_type_struct_sockaddr_un=no
9879 rm -f conftest.$ac_objext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9882 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9883 if test $ac_cv_type_struct_sockaddr_un = yes; then
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_STRUCT_SOCKADDR_UN 1
9890 cat >>confdefs.h <<\_ACEOF
9891 #define HAVE_UNIX_SOCKETS 1
9896 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9897 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9898 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 #include "confdefs.h"
9904 #include <sys/types.h>
9905 #ifdef HAVE_SYS_SOCKET_H
9906 #include <sys/socket.h>
9910 #ifdef F77_DUMMY_MAIN
9914 int F77_DUMMY_MAIN() { return 1; }
9919 if ((struct sockaddr_storage *) 0)
9921 if (sizeof (struct sockaddr_storage))
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -s conftest.$ac_objext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_cv_type_struct_sockaddr_storage=yes
9941 echo "$as_me: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 ac_cv_type_struct_sockaddr_storage=no
9945 rm -f conftest.$ac_objext conftest.$ac_ext
9947 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9948 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9949 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9951 cat >>confdefs.h <<_ACEOF
9952 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9958 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9959 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9960 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9965 #include "confdefs.h"
9966 #include <sys/types.h>
9967 #ifdef HAVE_SYS_SOCKET_H
9968 #include <sys/socket.h>
9972 #ifdef F77_DUMMY_MAIN
9976 int F77_DUMMY_MAIN() { return 1; }
9981 static struct sockaddr_storage ac_aggr;
9982 if (ac_aggr.ss_family)
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990 (eval $ac_compile) 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -s conftest.$ac_objext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 ac_cv_member_struct_sockaddr_storage_ss_family=yes
10002 echo "$as_me: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 ac_cv_member_struct_sockaddr_storage_ss_family=no
10006 rm -f conftest.$ac_objext conftest.$ac_ext
10008 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10009 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10010 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10018 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10019 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10020 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 cat >conftest.$ac_ext <<_ACEOF
10024 #line $LINENO "configure"
10025 #include "confdefs.h"
10026 #include <sys/types.h>
10027 #ifdef HAVE_SYS_SOCKET_H
10028 #include <sys/socket.h>
10032 #ifdef F77_DUMMY_MAIN
10033 # ifdef __cplusplus
10036 int F77_DUMMY_MAIN() { return 1; }
10041 static struct sockaddr_storage ac_aggr;
10042 if (ac_aggr.__ss_family)
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -s conftest.$ac_objext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10062 echo "$as_me: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 ac_cv_member_struct_sockaddr_storage___ss_family=no
10066 rm -f conftest.$ac_objext conftest.$ac_ext
10068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10069 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10070 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10072 cat >>confdefs.h <<_ACEOF
10073 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10078 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10079 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10080 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 cat >conftest.$ac_ext <<_ACEOF
10084 #line $LINENO "configure"
10085 #include "confdefs.h"
10086 #include <sys/types.h>
10087 #ifdef HAVE_SYS_SOCKET_H
10088 #include <sys/socket.h>
10092 #ifdef F77_DUMMY_MAIN
10093 # ifdef __cplusplus
10096 int F77_DUMMY_MAIN() { return 1; }
10101 static struct sockaddr_storage ac_aggr;
10102 if (ac_aggr.ss_len)
10108 rm -f conftest.$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -s conftest.$ac_objext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10122 echo "$as_me: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10124 ac_cv_member_struct_sockaddr_storage_ss_len=no
10126 rm -f conftest.$ac_objext conftest.$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10129 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10130 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10132 cat >>confdefs.h <<_ACEOF
10133 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10138 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10139 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10140 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 #include "confdefs.h"
10146 #include <sys/types.h>
10147 #ifdef HAVE_SYS_SOCKET_H
10148 #include <sys/socket.h>
10152 #ifdef F77_DUMMY_MAIN
10153 # ifdef __cplusplus
10156 int F77_DUMMY_MAIN() { return 1; }
10161 static struct sockaddr_storage ac_aggr;
10162 if (ac_aggr.__ss_len)
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170 (eval $ac_compile) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -s conftest.$ac_objext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10182 echo "$as_me: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 ac_cv_member_struct_sockaddr_storage___ss_len=no
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10188 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10189 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10190 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10198 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10199 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10200 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10205 #include "confdefs.h"
10206 #include <sys/types.h>
10207 #ifdef HAVE_SYS_SOCKET_H
10208 #include <sys/socket.h>
10212 #ifdef F77_DUMMY_MAIN
10213 # ifdef __cplusplus
10216 int F77_DUMMY_MAIN() { return 1; }
10221 static struct sockaddr ac_aggr;
10222 if (ac_aggr.sa_len)
10228 rm -f conftest.$ac_objext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230 (eval $ac_compile) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -s conftest.$ac_objext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_member_struct_sockaddr_sa_len=yes
10242 echo "$as_me: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 ac_cv_member_struct_sockaddr_sa_len=no
10246 rm -f conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10249 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10250 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10252 cat >>confdefs.h <<_ACEOF
10253 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10259 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10260 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10261 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 cat >conftest.$ac_ext <<_ACEOF
10265 #line $LINENO "configure"
10266 #include "confdefs.h"
10267 #include <sys/types.h>
10268 #include <sys/socket.h>
10272 #ifdef F77_DUMMY_MAIN
10273 # ifdef __cplusplus
10276 int F77_DUMMY_MAIN() { return 1; }
10281 if ((struct addrinfo *) 0)
10283 if (sizeof (struct addrinfo))
10289 rm -f conftest.$ac_objext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -s conftest.$ac_objext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_type_struct_addrinfo=yes
10303 echo "$as_me: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10305 ac_cv_type_struct_addrinfo=no
10307 rm -f conftest.$ac_objext conftest.$ac_ext
10309 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10310 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10311 if test $ac_cv_type_struct_addrinfo = yes; then
10313 cat >>confdefs.h <<_ACEOF
10314 #define HAVE_STRUCT_ADDRINFO 1
10321 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10322 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10323 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10327 #line $LINENO "configure"
10328 #include "confdefs.h"
10329 #include <sys/param.h>
10330 #include <sys/types.h>
10331 #include <sys/socket.h>
10332 #include <sys/ucred.h>
10334 #ifdef F77_DUMMY_MAIN
10335 # ifdef __cplusplus
10338 int F77_DUMMY_MAIN() { return 1; }
10343 if ((struct cmsgcred *) 0)
10345 if (sizeof (struct cmsgcred))
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_cv_type_struct_cmsgcred=yes
10365 echo "$as_me: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10367 ac_cv_type_struct_cmsgcred=no
10369 rm -f conftest.$ac_objext conftest.$ac_ext
10371 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10372 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10373 if test $ac_cv_type_struct_cmsgcred = yes; then
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_STRUCT_CMSGCRED 1
10381 echo "$as_me:$LINENO: checking for struct fcred" >&5
10382 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10383 if test "${ac_cv_type_struct_fcred+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 #include "confdefs.h"
10389 #include <sys/param.h>
10390 #include <sys/types.h>
10391 #include <sys/socket.h>
10392 #include <sys/ucred.h>
10394 #ifdef F77_DUMMY_MAIN
10395 # ifdef __cplusplus
10398 int F77_DUMMY_MAIN() { return 1; }
10403 if ((struct fcred *) 0)
10405 if (sizeof (struct fcred))
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_cv_type_struct_fcred=yes
10425 echo "$as_me: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 ac_cv_type_struct_fcred=no
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10431 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10432 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10433 if test $ac_cv_type_struct_fcred = yes; then
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_STRUCT_FCRED 1
10441 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10442 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10443 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 cat >conftest.$ac_ext <<_ACEOF
10447 #line $LINENO "configure"
10448 #include "confdefs.h"
10449 #include <sys/param.h>
10450 #include <sys/types.h>
10451 #include <sys/socket.h>
10452 #include <sys/ucred.h>
10454 #ifdef F77_DUMMY_MAIN
10455 # ifdef __cplusplus
10458 int F77_DUMMY_MAIN() { return 1; }
10463 if ((struct sockcred *) 0)
10465 if (sizeof (struct sockcred))
10471 rm -f conftest.$ac_objext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10473 (eval $ac_compile) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 ac_cv_type_struct_sockcred=yes
10485 echo "$as_me: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10487 ac_cv_type_struct_sockcred=no
10489 rm -f conftest.$ac_objext conftest.$ac_ext
10491 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10492 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10493 if test $ac_cv_type_struct_sockcred = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496 #define HAVE_STRUCT_SOCKCRED 1
10503 echo "$as_me:$LINENO: checking for struct option" >&5
10504 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10505 if test "${ac_cv_type_struct_option+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 #ifdef HAVE_GETOPT_H
10512 #include <getopt.h>
10515 #ifdef F77_DUMMY_MAIN
10516 # ifdef __cplusplus
10519 int F77_DUMMY_MAIN() { return 1; }
10524 if ((struct option *) 0)
10526 if (sizeof (struct option))
10532 rm -f conftest.$ac_objext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10534 (eval $ac_compile) 2>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -s conftest.$ac_objext'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_type_struct_option=yes
10546 echo "$as_me: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 ac_cv_type_struct_option=no
10550 rm -f conftest.$ac_objext conftest.$ac_ext
10552 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10553 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10554 if test $ac_cv_type_struct_option = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_STRUCT_OPTION 1
10564 if test "$with_zlib" = yes; then
10565 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10566 # did not). While we could work around the lack of z_streamp, it
10567 # seems unwise to encourage people to use such old zlib versions...
10568 echo "$as_me:$LINENO: checking for z_streamp" >&5
10569 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10570 if test "${ac_cv_type_z_streamp+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10575 #include "confdefs.h"
10578 #ifdef F77_DUMMY_MAIN
10579 # ifdef __cplusplus
10582 int F77_DUMMY_MAIN() { return 1; }
10587 if ((z_streamp *) 0)
10589 if (sizeof (z_streamp))
10595 rm -f conftest.$ac_objext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -s conftest.$ac_objext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 ac_cv_type_z_streamp=yes
10609 echo "$as_me: failed program was:" >&5
10610 cat conftest.$ac_ext >&5
10611 ac_cv_type_z_streamp=no
10613 rm -f conftest.$ac_objext conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10616 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10617 if test $ac_cv_type_z_streamp = yes; then
10620 { { echo "$as_me:$LINENO: error: zlib version is too old
10621 Use --without-zlib to disable zlib support." >&5
10622 echo "$as_me: error: zlib version is too old
10623 Use --without-zlib to disable zlib support." >&2;}
10624 { (exit 1); exit 1; }; }
10629 if test "$with_krb5" = yes; then
10630 # Check for differences between MIT and Heimdal (KTH) releases
10631 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10632 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10633 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10641 #ifdef F77_DUMMY_MAIN
10642 # ifdef __cplusplus
10645 int F77_DUMMY_MAIN() { return 1; }
10650 static krb5_ticket ac_aggr;
10651 if (ac_aggr.enc_part2)
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -s conftest.$ac_objext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_member_krb5_ticket_enc_part2=yes
10671 echo "$as_me: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 ac_cv_member_krb5_ticket_enc_part2=no
10675 rm -f conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10678 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10679 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_KRB5_TICKET_ENC_PART2 1
10687 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10688 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10689 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 cat >conftest.$ac_ext <<_ACEOF
10693 #line $LINENO "configure"
10694 #include "confdefs.h"
10697 #ifdef F77_DUMMY_MAIN
10698 # ifdef __cplusplus
10701 int F77_DUMMY_MAIN() { return 1; }
10706 static krb5_ticket ac_aggr;
10707 if (ac_aggr.client)
10713 rm -f conftest.$ac_objext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715 (eval $ac_compile) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_member_krb5_ticket_client=yes
10727 echo "$as_me: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10729 ac_cv_member_krb5_ticket_client=no
10731 rm -f conftest.$ac_objext conftest.$ac_ext
10733 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10734 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10735 if test $ac_cv_member_krb5_ticket_client = yes; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define HAVE_KRB5_TICKET_CLIENT 1
10743 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10744 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10745 { (exit 1); exit 1; }; }
10750 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10751 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10752 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 #include "confdefs.h"
10760 #ifdef F77_DUMMY_MAIN
10761 # ifdef __cplusplus
10764 int F77_DUMMY_MAIN() { return 1; }
10769 static krb5_error ac_aggr;
10770 if (ac_aggr.text.data)
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_member_krb5_error_text_data=yes
10790 echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 ac_cv_member_krb5_error_text_data=no
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10797 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10798 if test $ac_cv_member_krb5_error_text_data = yes; then
10800 cat >>confdefs.h <<_ACEOF
10801 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10806 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10807 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10808 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10816 #ifdef F77_DUMMY_MAIN
10817 # ifdef __cplusplus
10820 int F77_DUMMY_MAIN() { return 1; }
10825 static krb5_error ac_aggr;
10826 if (ac_aggr.e_data)
10832 rm -f conftest.$ac_objext
10833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10834 (eval $ac_compile) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -s conftest.$ac_objext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_cv_member_krb5_error_e_data=yes
10846 echo "$as_me: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 ac_cv_member_krb5_error_e_data=no
10850 rm -f conftest.$ac_objext conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10853 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10854 if test $ac_cv_member_krb5_error_e_data = yes; then
10856 cat >>confdefs.h <<_ACEOF
10857 #define HAVE_KRB5_ERROR_E_DATA 1
10862 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10863 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10864 { (exit 1); exit 1; }; }
10873 ## Functions, global variables
10876 echo "$as_me:$LINENO: checking for int timezone" >&5
10877 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10878 if test "${pgac_cv_var_int_timezone+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10883 #include "confdefs.h"
10886 #ifdef F77_DUMMY_MAIN
10887 # ifdef __cplusplus
10890 int F77_DUMMY_MAIN() { return 1; }
10895 res = timezone / 60;
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 pgac_cv_var_int_timezone=yes
10914 echo "$as_me: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 pgac_cv_var_int_timezone=no
10918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10921 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10922 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_INT_TIMEZONE
10929 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10930 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10931 if test "${ac_cv_func_accept_return+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 if test "${ac_cv_func_accept_arg1+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 if test "${ac_cv_func_accept_arg2+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 if test "${ac_cv_func_accept_arg3+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10944 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10945 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10946 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10947 cat >conftest.$ac_ext <<_ACEOF
10948 #line $LINENO "configure"
10949 #include "confdefs.h"
10950 #ifdef HAVE_SYS_TYPES_H
10951 #include <sys/types.h>
10953 #ifdef HAVE_SYS_SOCKET_H
10954 #include <sys/socket.h>
10956 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10957 #ifdef F77_DUMMY_MAIN
10958 # ifdef __cplusplus
10961 int F77_DUMMY_MAIN() { return 1; }
10971 rm -f conftest.$ac_objext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973 (eval $ac_compile) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -s conftest.$ac_objext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_not_found=no; break 4
10985 echo "$as_me: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10989 rm -f conftest.$ac_objext conftest.$ac_ext
10994 if test "$ac_not_found" = yes; then
10995 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10996 echo "$as_me: error: could not determine argument types" >&2;}
10997 { (exit 1); exit 1; }; }
10999 if test "$ac_cv_func_accept_arg3" = "void"; then
11000 ac_cv_func_accept_arg3=int
11010 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
11011 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11013 cat >>confdefs.h <<_ACEOF
11014 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11018 cat >>confdefs.h <<_ACEOF
11019 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11023 cat >>confdefs.h <<_ACEOF
11024 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11028 cat >>confdefs.h <<_ACEOF
11029 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11033 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11034 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11035 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11040 #include "confdefs.h"
11041 #include <sys/time.h>
11042 #ifdef F77_DUMMY_MAIN
11043 # ifdef __cplusplus
11046 int F77_DUMMY_MAIN() { return 1; }
11051 struct timeval *tp;
11052 struct timezone *tzp;
11053 gettimeofday(tp,tzp);
11058 rm -f conftest.$ac_objext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060 (eval $ac_compile) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 pgac_cv_func_gettimeofday_1arg=no
11072 echo "$as_me: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11074 pgac_cv_func_gettimeofday_1arg=yes
11076 rm -f conftest.$ac_objext conftest.$ac_ext
11078 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11079 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11080 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11082 cat >>confdefs.h <<\_ACEOF
11083 #define GETTIMEOFDAY_1ARG
11090 # SunOS doesn't handle negative byte comparisons properly with +/- return
11091 echo "$as_me:$LINENO: checking for working memcmp" >&5
11092 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11093 if test "${ac_cv_func_memcmp_working+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 if test "$cross_compiling" = yes; then
11097 ac_cv_func_memcmp_working=no
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11101 #include "confdefs.h"
11103 #ifdef F77_DUMMY_MAIN
11104 # ifdef __cplusplus
11107 int F77_DUMMY_MAIN() { return 1; }
11113 /* Some versions of memcmp are not 8-bit clean. */
11114 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11115 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11118 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11119 or more and with at least one buffer not starting on a 4-byte boundary.
11120 William Lewis provided this test program. */
11125 for (i = 0; i < 4; i++)
11129 strcpy (a, "--------01111111");
11130 strcpy (b, "--------10000000");
11131 if (memcmp (a, b, 16) >= 0)
11141 rm -f conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143 (eval $ac_link) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func_memcmp_working=yes
11154 echo "$as_me: program exited with status $ac_status" >&5
11155 echo "$as_me: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 ( exit $ac_status )
11158 ac_cv_func_memcmp_working=no
11160 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11163 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11164 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11165 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11184 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 echo "$as_me:$LINENO: checking for $ac_func" >&5
11188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11189 if eval "test \"\${$as_ac_var+set}\" = set"; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196 which can conflict with char $ac_func (); below. */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error. */
11202 /* We use char because int might match the return type of a gcc2
11203 builtin and then its argument prototype would still apply. */
11207 #ifdef F77_DUMMY_MAIN
11208 # ifdef __cplusplus
11211 int F77_DUMMY_MAIN() { return 1; }
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 eval "$as_ac_var=yes"
11243 echo "$as_me: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11245 eval "$as_ac_var=no"
11247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11251 if test `eval echo '${'$as_ac_var'}'` = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11260 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11261 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11262 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268 #include <unistd.h>
11270 #ifdef F77_DUMMY_MAIN
11271 # ifdef __cplusplus
11274 int F77_DUMMY_MAIN() { return 1; }
11280 char *p = (char *) fdatasync;
11287 rm -f conftest.$ac_objext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289 (eval $ac_compile) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -s conftest.$ac_objext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_cv_have_decl_fdatasync=yes
11301 echo "$as_me: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11303 ac_cv_have_decl_fdatasync=no
11305 rm -f conftest.$ac_objext conftest.$ac_ext
11307 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11308 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11309 if test $ac_cv_have_decl_fdatasync = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define HAVE_DECL_FDATASYNC 1
11317 cat >>confdefs.h <<_ACEOF
11318 #define HAVE_DECL_FDATASYNC 0
11327 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11328 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11329 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 #include "confdefs.h"
11335 $ac_includes_default
11336 #include <netinet/in.h>
11338 #ifdef F77_DUMMY_MAIN
11339 # ifdef __cplusplus
11342 int F77_DUMMY_MAIN() { return 1; }
11347 if ((struct sockaddr_in6 *) 0)
11349 if (sizeof (struct sockaddr_in6))
11355 rm -f conftest.$ac_objext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_cv_type_struct_sockaddr_in6=yes
11369 echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 ac_cv_type_struct_sockaddr_in6=no
11373 rm -f conftest.$ac_objext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11376 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11377 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11378 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11379 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11380 if test "${ac_cv_func_inet_ntop+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char inet_ntop (); below. */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11398 #ifdef F77_DUMMY_MAIN
11399 # ifdef __cplusplus
11402 int F77_DUMMY_MAIN() { return 1; }
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_func_inet_ntop=yes
11434 echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 ac_cv_func_inet_ntop=no
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11441 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11442 if test $ac_cv_func_inet_ntop = yes; then
11444 cat >>confdefs.h <<\_ACEOF
11445 #define HAVE_IPV6 1
11455 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11456 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11457 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 #include "confdefs.h"
11463 #include <machine/vmparam.h>
11464 #include <sys/exec.h>
11466 #ifdef F77_DUMMY_MAIN
11467 # ifdef __cplusplus
11470 int F77_DUMMY_MAIN() { return 1; }
11475 PS_STRINGS->ps_nargvstr = 1;
11476 PS_STRINGS->ps_argvstr = "foo";
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -s conftest$ac_exeext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 pgac_cv_var_PS_STRINGS=yes
11495 echo "$as_me: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 pgac_cv_var_PS_STRINGS=no
11499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11501 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11502 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11503 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_PS_STRINGS
11512 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11513 # is missing. Yes, there are machines that have only one. We may
11514 # also decide to use snprintf.c if snprintf() is present but does not
11515 # have working "long long int" support -- see below.
11517 pgac_need_repl_snprintf=no
11519 for ac_func in snprintf
11521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11522 echo "$as_me:$LINENO: checking for $ac_func" >&5
11523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11524 if eval "test \"\${$as_ac_var+set}\" = set"; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11529 #include "confdefs.h"
11530 /* System header to define __stub macros and hopefully few prototypes,
11531 which can conflict with char $ac_func (); below. */
11532 #include <assert.h>
11533 /* Override any gcc2 internal prototype to avoid an error. */
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11542 #ifdef F77_DUMMY_MAIN
11543 # ifdef __cplusplus
11546 int F77_DUMMY_MAIN() { return 1; }
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566 (eval $ac_link) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 eval "$as_ac_var=yes"
11578 echo "$as_me: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 eval "$as_ac_var=no"
11582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11586 if test `eval echo '${'$as_ac_var'}'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11592 pgac_need_repl_snprintf=yes
11597 for ac_func in vsnprintf
11599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11600 echo "$as_me:$LINENO: checking for $ac_func" >&5
11601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11602 if eval "test \"\${$as_ac_var+set}\" = set"; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 cat >conftest.$ac_ext <<_ACEOF
11606 #line $LINENO "configure"
11607 #include "confdefs.h"
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char $ac_func (); below. */
11610 #include <assert.h>
11611 /* Override any gcc2 internal prototype to avoid an error. */
11615 /* We use char because int might match the return type of a gcc2
11616 builtin and then its argument prototype would still apply. */
11620 #ifdef F77_DUMMY_MAIN
11621 # ifdef __cplusplus
11624 int F77_DUMMY_MAIN() { return 1; }
11629 /* The GNU C library defines this for functions which it implements
11630 to always fail with ENOSYS. Some functions are actually named
11631 something starting with __ and the normal name is an alias. */
11632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 eval "$as_ac_var=yes"
11656 echo "$as_me: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11658 eval "$as_ac_var=no"
11660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11664 if test `eval echo '${'$as_ac_var'}'` = yes; then
11665 cat >>confdefs.h <<_ACEOF
11666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11670 pgac_need_repl_snprintf=yes
11676 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11677 # include/c.h will provide declarations. Note this is a separate test
11678 # from whether the functions exist in the C library --- there are
11679 # systems that have the functions but don't bother to declare them :-(
11681 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11682 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11683 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 #include "confdefs.h"
11689 $ac_includes_default
11690 #ifdef F77_DUMMY_MAIN
11691 # ifdef __cplusplus
11694 int F77_DUMMY_MAIN() { return 1; }
11700 char *p = (char *) snprintf;
11707 rm -f conftest.$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -s conftest.$ac_objext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 ac_cv_have_decl_snprintf=yes
11721 echo "$as_me: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 ac_cv_have_decl_snprintf=no
11725 rm -f conftest.$ac_objext conftest.$ac_ext
11727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11728 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11729 if test $ac_cv_have_decl_snprintf = yes; then
11731 cat >>confdefs.h <<_ACEOF
11732 #define HAVE_DECL_SNPRINTF 1
11737 cat >>confdefs.h <<_ACEOF
11738 #define HAVE_DECL_SNPRINTF 0
11743 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11744 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11745 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 $ac_includes_default
11752 #ifdef F77_DUMMY_MAIN
11753 # ifdef __cplusplus
11756 int F77_DUMMY_MAIN() { return 1; }
11762 char *p = (char *) vsnprintf;
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_have_decl_vsnprintf=yes
11783 echo "$as_me: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11785 ac_cv_have_decl_vsnprintf=no
11787 rm -f conftest.$ac_objext conftest.$ac_ext
11789 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11790 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11791 if test $ac_cv_have_decl_vsnprintf = yes; then
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_DECL_VSNPRINTF 1
11799 cat >>confdefs.h <<_ACEOF
11800 #define HAVE_DECL_VSNPRINTF 0
11809 # do this one the hard way in case isinf() is a macro
11810 echo "$as_me:$LINENO: checking for isinf" >&5
11811 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11812 if test "${ac_cv_func_isinf+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11816 #line $LINENO "configure"
11817 #include "confdefs.h"
11820 #ifdef F77_DUMMY_MAIN
11821 # ifdef __cplusplus
11824 int F77_DUMMY_MAIN() { return 1; }
11829 double x = 0.0; int res = isinf(x);
11834 rm -f conftest.$ac_objext conftest$ac_exeext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836 (eval $ac_link) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_cv_func_isinf=yes
11848 echo "$as_me: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 ac_cv_func_isinf=no
11852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11854 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11855 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11857 if test $ac_cv_func_isinf = yes ; then
11859 cat >>confdefs.h <<\_ACEOF
11860 #define HAVE_ISINF 1
11864 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11865 # Look for a way to implement a substitute for isinf()
11870 for ac_func in fpclass fp_class fp_class_d class
11872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11873 echo "$as_me:$LINENO: checking for $ac_func" >&5
11874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11875 if eval "test \"\${$as_ac_var+set}\" = set"; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 cat >conftest.$ac_ext <<_ACEOF
11879 #line $LINENO "configure"
11880 #include "confdefs.h"
11881 /* System header to define __stub macros and hopefully few prototypes,
11882 which can conflict with char $ac_func (); below. */
11883 #include <assert.h>
11884 /* Override any gcc2 internal prototype to avoid an error. */
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11893 #ifdef F77_DUMMY_MAIN
11894 # ifdef __cplusplus
11897 int F77_DUMMY_MAIN() { return 1; }
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 eval "$as_ac_var=yes"
11929 echo "$as_me: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 eval "$as_ac_var=no"
11933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11937 if test `eval echo '${'$as_ac_var'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11960 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11963 echo "$as_me:$LINENO: checking for $ac_func" >&5
11964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11965 if eval "test \"\${$as_ac_var+set}\" = set"; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11970 #include "confdefs.h"
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func (); below. */
11973 #include <assert.h>
11974 /* Override any gcc2 internal prototype to avoid an error. */
11978 /* We use char because int might match the return type of a gcc2
11979 builtin and then its argument prototype would still apply. */
11983 #ifdef F77_DUMMY_MAIN
11984 # ifdef __cplusplus
11987 int F77_DUMMY_MAIN() { return 1; }
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12005 rm -f conftest.$ac_objext conftest$ac_exeext
12006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12007 (eval $ac_link) 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 eval "$as_ac_var=yes"
12019 echo "$as_me: failed program was:" >&5
12020 cat conftest.$ac_ext >&5
12021 eval "$as_ac_var=no"
12023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12027 if test `eval echo '${'$as_ac_var'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12039 # system's version of getaddrinfo(), if any, may be used only if we found
12040 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12041 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12043 for ac_func in getaddrinfo
12045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12046 echo "$as_me:$LINENO: checking for $ac_func" >&5
12047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12048 if eval "test \"\${$as_ac_var+set}\" = set"; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 cat >conftest.$ac_ext <<_ACEOF
12052 #line $LINENO "configure"
12053 #include "confdefs.h"
12054 /* System header to define __stub macros and hopefully few prototypes,
12055 which can conflict with char $ac_func (); below. */
12056 #include <assert.h>
12057 /* Override any gcc2 internal prototype to avoid an error. */
12061 /* We use char because int might match the return type of a gcc2
12062 builtin and then its argument prototype would still apply. */
12066 #ifdef F77_DUMMY_MAIN
12067 # ifdef __cplusplus
12070 int F77_DUMMY_MAIN() { return 1; }
12075 /* The GNU C library defines this for functions which it implements
12076 to always fail with ENOSYS. Some functions are actually named
12077 something starting with __ and the normal name is an alias. */
12078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -s conftest$ac_exeext'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 eval "$as_ac_var=yes"
12102 echo "$as_me: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12122 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12125 # similarly, use system's getopt_long() only if system provides struct option.
12126 if test x"$ac_cv_type_struct_option" = xyes ; then
12128 for ac_func in getopt_long
12130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12131 echo "$as_me:$LINENO: checking for $ac_func" >&5
12132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_var+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 #include "confdefs.h"
12139 /* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char $ac_func (); below. */
12141 #include <assert.h>
12142 /* Override any gcc2 internal prototype to avoid an error. */
12146 /* We use char because int might match the return type of a gcc2
12147 builtin and then its argument prototype would still apply. */
12151 #ifdef F77_DUMMY_MAIN
12152 # ifdef __cplusplus
12155 int F77_DUMMY_MAIN() { return 1; }
12160 /* The GNU C library defines this for functions which it implements
12161 to always fail with ENOSYS. Some functions are actually named
12162 something starting with __ and the normal name is an alias. */
12163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175 (eval $ac_link) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 eval "$as_ac_var=yes"
12187 echo "$as_me: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 eval "$as_ac_var=no"
12191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12195 if test `eval echo '${'$as_ac_var'}'` = yes; then
12196 cat >>confdefs.h <<_ACEOF
12197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12207 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12210 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12211 # We override the previous test that said fseeko/ftello didn't exist
12212 # OS tests are also done in include/c.h and port/fseeko.c
12213 case $host_os in bsdi*|netbsd*)
12214 ac_cv_func_fseeko=yes
12217 # Solaris has a very slow qsort in certain cases, so we replace it.
12218 case $host_os in solaris*)
12219 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12222 # Win32 can't to rename or unlink on an open file
12223 case $host_os in mingw*)
12224 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12225 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12226 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12229 if test "$with_readline" = yes; then
12230 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12231 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 #include "confdefs.h"
12236 #ifdef HAVE_READLINE_READLINE_H
12237 # include <readline/readline.h>
12238 #elif defined(HAVE_READLINE_H)
12239 # include <readline.h>
12242 #ifdef F77_DUMMY_MAIN
12243 # ifdef __cplusplus
12246 int F77_DUMMY_MAIN() { return 1; }
12251 rl_completion_append_character = 'x';
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
12262 { ac_try='test -s conftest$ac_exeext'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268 echo "$as_me:$LINENO: result: yes" >&5
12269 echo "${ECHO_T}yes" >&6
12271 cat >>confdefs.h <<\_ACEOF
12272 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12276 echo "$as_me: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6
12281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12284 for ac_func in rl_completion_matches rl_filename_completion_function
12286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12287 echo "$as_me:$LINENO: checking for $ac_func" >&5
12288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_var+set}\" = set"; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 cat >conftest.$ac_ext <<_ACEOF
12293 #line $LINENO "configure"
12294 #include "confdefs.h"
12295 /* System header to define __stub macros and hopefully few prototypes,
12296 which can conflict with char $ac_func (); below. */
12297 #include <assert.h>
12298 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12307 #ifdef F77_DUMMY_MAIN
12308 # ifdef __cplusplus
12311 int F77_DUMMY_MAIN() { return 1; }
12316 /* The GNU C library defines this for functions which it implements
12317 to always fail with ENOSYS. Some functions are actually named
12318 something starting with __ and the normal name is an alias. */
12319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331 (eval $ac_link) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 eval "$as_ac_var=yes"
12343 echo "$as_me: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 eval "$as_ac_var=no"
12347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352 cat >>confdefs.h <<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12360 for ac_func in replace_history_entry
12362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12363 echo "$as_me:$LINENO: checking for $ac_func" >&5
12364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12365 if eval "test \"\${$as_ac_var+set}\" = set"; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 #include "confdefs.h"
12371 /* System header to define __stub macros and hopefully few prototypes,
12372 which can conflict with char $ac_func (); below. */
12373 #include <assert.h>
12374 /* Override any gcc2 internal prototype to avoid an error. */
12378 /* We use char because int might match the return type of a gcc2
12379 builtin and then its argument prototype would still apply. */
12383 #ifdef F77_DUMMY_MAIN
12384 # ifdef __cplusplus
12387 int F77_DUMMY_MAIN() { return 1; }
12392 /* The GNU C library defines this for functions which it implements
12393 to always fail with ENOSYS. Some functions are actually named
12394 something starting with __ and the normal name is an alias. */
12395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -s conftest$ac_exeext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 eval "$as_ac_var=yes"
12419 echo "$as_me: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12421 eval "$as_ac_var=no"
12423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12427 if test `eval echo '${'$as_ac_var'}'` = yes; then
12428 cat >>confdefs.h <<_ACEOF
12429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12438 echo "$as_me:$LINENO: checking for finite" >&5
12439 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12441 #line $LINENO "configure"
12442 #include "confdefs.h"
12444 #ifdef F77_DUMMY_MAIN
12445 # ifdef __cplusplus
12448 int F77_DUMMY_MAIN() { return 1; }
12453 int dummy=finite(1.0);
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12460 (eval $ac_link) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -s conftest$ac_exeext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_FINITE 1
12475 echo "$as_me:$LINENO: result: yes" >&5
12476 echo "${ECHO_T}yes" >&6
12478 echo "$as_me: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 echo "$as_me:$LINENO: result: no" >&5
12481 echo "${ECHO_T}no" >&6
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12485 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12486 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12487 cat >conftest.$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12489 #include "confdefs.h"
12490 #include <setjmp.h>
12491 #ifdef F77_DUMMY_MAIN
12492 # ifdef __cplusplus
12495 int F77_DUMMY_MAIN() { return 1; }
12500 sigjmp_buf x; sigsetjmp(x, 1);
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12507 (eval $ac_link) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_SIGSETJMP 1
12522 echo "$as_me:$LINENO: result: yes" >&5
12523 echo "${ECHO_T}yes" >&6
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 echo "$as_me:$LINENO: result: no" >&5
12528 echo "${ECHO_T}no" >&6
12530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12532 echo "$as_me:$LINENO: checking for syslog" >&5
12533 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12534 if test "${ac_cv_func_syslog+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 cat >conftest.$ac_ext <<_ACEOF
12538 #line $LINENO "configure"
12539 #include "confdefs.h"
12540 /* System header to define __stub macros and hopefully few prototypes,
12541 which can conflict with char syslog (); below. */
12542 #include <assert.h>
12543 /* Override any gcc2 internal prototype to avoid an error. */
12547 /* We use char because int might match the return type of a gcc2
12548 builtin and then its argument prototype would still apply. */
12552 #ifdef F77_DUMMY_MAIN
12553 # ifdef __cplusplus
12556 int F77_DUMMY_MAIN() { return 1; }
12561 /* The GNU C library defines this for functions which it implements
12562 to always fail with ENOSYS. Some functions are actually named
12563 something starting with __ and the normal name is an alias. */
12564 #if defined (__stub_syslog) || defined (__stub___syslog)
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12576 (eval $ac_link) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_func_syslog=yes
12588 echo "$as_me: failed program was:" >&5
12589 cat conftest.$ac_ext >&5
12590 ac_cv_func_syslog=no
12592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12594 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12595 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12596 if test $ac_cv_func_syslog = yes; then
12597 if test "${ac_cv_header_syslog_h+set}" = set; then
12598 echo "$as_me:$LINENO: checking for syslog.h" >&5
12599 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12600 if test "${ac_cv_header_syslog_h+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12604 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12606 # Is the header compilable?
12607 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12608 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12610 #line $LINENO "configure"
12611 #include "confdefs.h"
12612 $ac_includes_default
12613 #include <syslog.h>
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617 (eval $ac_compile) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_header_compiler=yes
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 ac_header_compiler=no
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635 echo "${ECHO_T}$ac_header_compiler" >&6
12637 # Is the header present?
12638 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12639 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12642 #include "confdefs.h"
12643 #include <syslog.h>
12645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12648 egrep -v '^ *\+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } >/dev/null; then
12653 if test -s conftest.err; then
12654 ac_cpp_err=$ac_c_preproc_warn_flag
12661 if test -z "$ac_cpp_err"; then
12662 ac_header_preproc=yes
12664 echo "$as_me: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 ac_header_preproc=no
12668 rm -f conftest.err conftest.$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12670 echo "${ECHO_T}$ac_header_preproc" >&6
12672 # So? What about this header?
12673 case $ac_header_compiler:$ac_header_preproc in
12675 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12676 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12678 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12680 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12681 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12683 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12685 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12687 echo "$as_me:$LINENO: checking for syslog.h" >&5
12688 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12689 if test "${ac_cv_header_syslog_h+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 ac_cv_header_syslog_h=$ac_header_preproc
12694 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12695 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12698 if test $ac_cv_header_syslog_h = yes; then
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_SYSLOG 1
12710 echo "$as_me:$LINENO: checking for optreset" >&5
12711 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12712 if test "${pgac_cv_var_int_optreset+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12716 #line $LINENO "configure"
12717 #include "confdefs.h"
12718 #include <unistd.h>
12719 #ifdef F77_DUMMY_MAIN
12720 # ifdef __cplusplus
12723 int F77_DUMMY_MAIN() { return 1; }
12728 extern int optreset; optreset = 1;
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12735 (eval $ac_link) 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 pgac_cv_var_int_optreset=yes
12747 echo "$as_me: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 pgac_cv_var_int_optreset=no
12751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12753 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12754 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12755 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_INT_OPTRESET 1
12765 for ac_func in strtoll strtoq
12767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12768 echo "$as_me:$LINENO: checking for $ac_func" >&5
12769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12770 if eval "test \"\${$as_ac_var+set}\" = set"; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 #include "confdefs.h"
12776 /* System header to define __stub macros and hopefully few prototypes,
12777 which can conflict with char $ac_func (); below. */
12778 #include <assert.h>
12779 /* Override any gcc2 internal prototype to avoid an error. */
12783 /* We use char because int might match the return type of a gcc2
12784 builtin and then its argument prototype would still apply. */
12788 #ifdef F77_DUMMY_MAIN
12789 # ifdef __cplusplus
12792 int F77_DUMMY_MAIN() { return 1; }
12797 /* The GNU C library defines this for functions which it implements
12798 to always fail with ENOSYS. Some functions are actually named
12799 something starting with __ and the normal name is an alias. */
12800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12812 (eval $ac_link) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 eval "$as_ac_var=yes"
12824 echo "$as_me: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 eval "$as_ac_var=no"
12828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12832 if test `eval echo '${'$as_ac_var'}'` = yes; then
12833 cat >>confdefs.h <<_ACEOF
12834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12842 for ac_func in strtoull strtouq
12844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12845 echo "$as_me:$LINENO: checking for $ac_func" >&5
12846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12847 if eval "test \"\${$as_ac_var+set}\" = set"; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12853 /* System header to define __stub macros and hopefully few prototypes,
12854 which can conflict with char $ac_func (); below. */
12855 #include <assert.h>
12856 /* Override any gcc2 internal prototype to avoid an error. */
12860 /* We use char because int might match the return type of a gcc2
12861 builtin and then its argument prototype would still apply. */
12865 #ifdef F77_DUMMY_MAIN
12866 # ifdef __cplusplus
12869 int F77_DUMMY_MAIN() { return 1; }
12874 /* The GNU C library defines this for functions which it implements
12875 to always fail with ENOSYS. Some functions are actually named
12876 something starting with __ and the normal name is an alias. */
12877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12889 (eval $ac_link) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 eval "$as_ac_var=yes"
12901 echo "$as_me: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12903 eval "$as_ac_var=no"
12905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12909 if test `eval echo '${'$as_ac_var'}'` = yes; then
12910 cat >>confdefs.h <<_ACEOF
12911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12918 # Check for one of atexit() or on_exit()
12920 for ac_func in atexit
12922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12923 echo "$as_me:$LINENO: checking for $ac_func" >&5
12924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12925 if eval "test \"\${$as_ac_var+set}\" = set"; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 cat >conftest.$ac_ext <<_ACEOF
12929 #line $LINENO "configure"
12930 #include "confdefs.h"
12931 /* System header to define __stub macros and hopefully few prototypes,
12932 which can conflict with char $ac_func (); below. */
12933 #include <assert.h>
12934 /* Override any gcc2 internal prototype to avoid an error. */
12938 /* We use char because int might match the return type of a gcc2
12939 builtin and then its argument prototype would still apply. */
12943 #ifdef F77_DUMMY_MAIN
12944 # ifdef __cplusplus
12947 int F77_DUMMY_MAIN() { return 1; }
12952 /* The GNU C library defines this for functions which it implements
12953 to always fail with ENOSYS. Some functions are actually named
12954 something starting with __ and the normal name is an alias. */
12955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12967 (eval $ac_link) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -s conftest$ac_exeext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 eval "$as_ac_var=yes"
12979 echo "$as_me: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 eval "$as_ac_var=no"
12983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12987 if test `eval echo '${'$as_ac_var'}'` = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 for ac_func in on_exit
12996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12997 echo "$as_me:$LINENO: checking for $ac_func" >&5
12998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_var+set}\" = set"; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005 /* System header to define __stub macros and hopefully few prototypes,
13006 which can conflict with char $ac_func (); below. */
13007 #include <assert.h>
13008 /* Override any gcc2 internal prototype to avoid an error. */
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13017 #ifdef F77_DUMMY_MAIN
13018 # ifdef __cplusplus
13021 int F77_DUMMY_MAIN() { return 1; }
13026 /* The GNU C library defines this for functions which it implements
13027 to always fail with ENOSYS. Some functions are actually named
13028 something starting with __ and the normal name is an alias. */
13029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041 (eval $ac_link) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 eval "$as_ac_var=yes"
13053 echo "$as_me: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 eval "$as_ac_var=no"
13057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13061 if test `eval echo '${'$as_ac_var'}'` = yes; then
13062 cat >>confdefs.h <<_ACEOF
13063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13067 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13068 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13069 { (exit 1); exit 1; }; }
13077 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13078 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13079 if test "${ac_cv_sys_largefile_source+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 ac_cv_sys_largefile_source=no
13084 cat >conftest.$ac_ext <<_ACEOF
13085 #line $LINENO "configure"
13086 #include "confdefs.h"
13088 #ifdef F77_DUMMY_MAIN
13089 # ifdef __cplusplus
13092 int F77_DUMMY_MAIN() { return 1; }
13102 rm -f conftest.$ac_objext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104 (eval $ac_compile) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -s conftest.$ac_objext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13116 echo "$as_me: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13119 rm -f conftest.$ac_objext conftest.$ac_ext
13120 cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13122 #include "confdefs.h"
13123 #define _LARGEFILE_SOURCE 1
13125 #ifdef F77_DUMMY_MAIN
13126 # ifdef __cplusplus
13129 int F77_DUMMY_MAIN() { return 1; }
13139 rm -f conftest.$ac_objext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13141 (eval $ac_compile) 2>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -s conftest.$ac_objext'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151 ac_cv_sys_largefile_source=1; break
13153 echo "$as_me: failed program was:" >&5
13154 cat conftest.$ac_ext >&5
13156 rm -f conftest.$ac_objext conftest.$ac_ext
13160 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13161 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13162 if test "$ac_cv_sys_largefile_source" != no; then
13164 cat >>confdefs.h <<_ACEOF
13165 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13171 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13172 # in glibc 2.1.3, but that breaks too many other things.
13173 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13174 echo "$as_me:$LINENO: checking for fseeko" >&5
13175 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13176 if test "${ac_cv_func_fseeko+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 cat >conftest.$ac_ext <<_ACEOF
13180 #line $LINENO "configure"
13181 #include "confdefs.h"
13183 #ifdef F77_DUMMY_MAIN
13184 # ifdef __cplusplus
13187 int F77_DUMMY_MAIN() { return 1; }
13192 return fseeko && fseeko (stdin, 0, 0);
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -s conftest$ac_exeext'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_cv_func_fseeko=yes
13211 echo "$as_me: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13213 ac_cv_func_fseeko=no
13215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13217 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13218 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13219 if test $ac_cv_func_fseeko = yes; then
13221 cat >>confdefs.h <<\_ACEOF
13222 #define HAVE_FSEEKO 1
13231 # For each platform, we need to know about any special compile and link
13232 # libraries, and whether the normal C function names are thread-safe.
13233 # See the comment at the top of src/port/thread.c for more information.
13235 if test "$enable_thread_safety" = yes; then
13236 if test "${ac_cv_header_pthread_h+set}" = set; then
13237 echo "$as_me:$LINENO: checking for pthread.h" >&5
13238 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13239 if test "${ac_cv_header_pthread_h+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13243 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13245 # Is the header compilable?
13246 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13247 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13248 cat >conftest.$ac_ext <<_ACEOF
13249 #line $LINENO "configure"
13250 #include "confdefs.h"
13251 $ac_includes_default
13252 #include <pthread.h>
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -s conftest.$ac_objext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 ac_header_compiler=yes
13268 echo "$as_me: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13270 ac_header_compiler=no
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13274 echo "${ECHO_T}$ac_header_compiler" >&6
13276 # Is the header present?
13277 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13278 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13279 cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13281 #include "confdefs.h"
13282 #include <pthread.h>
13284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13287 egrep -v '^ *\+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev/null; then
13292 if test -s conftest.err; then
13293 ac_cpp_err=$ac_c_preproc_warn_flag
13300 if test -z "$ac_cpp_err"; then
13301 ac_header_preproc=yes
13303 echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13305 ac_header_preproc=no
13307 rm -f conftest.err conftest.$ac_ext
13308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13309 echo "${ECHO_T}$ac_header_preproc" >&6
13311 # So? What about this header?
13312 case $ac_header_compiler:$ac_header_preproc in
13314 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13315 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13317 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13319 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13320 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13322 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13326 echo "$as_me:$LINENO: checking for pthread.h" >&5
13327 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13328 if test "${ac_cv_header_pthread_h+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 ac_cv_header_pthread_h=$ac_header_preproc
13333 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13334 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13337 if test $ac_cv_header_pthread_h = yes; then
13340 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13341 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13342 { (exit 1); exit 1; }; }
13347 if test "$THREAD_SUPPORT" != yes; then
13348 { { echo "$as_me:$LINENO: error:
13349 Cannot enable threads on your platform.
13350 Please report your platform threading info to the PostgreSQL mailing lists
13351 so it can be added to the next release. Report all compile flags, link flags,
13352 functions, or libraries required for threading support.
13353 See the comment at the top of src/port/thread.c for more information.
13355 echo "$as_me: error:
13356 Cannot enable threads on your platform.
13357 Please report your platform threading info to the PostgreSQL mailing lists
13358 so it can be added to the next release. Report all compile flags, link flags,
13359 functions, or libraries required for threading support.
13360 See the comment at the top of src/port/thread.c for more information.
13362 { (exit 1); exit 1; }; }
13365 # do not use values from template file
13375 # Check for re-entrant versions of certain functions
13377 # Include special flags if threads are enabled _and_ if required for
13378 # threading on this platform. Some platforms have *_r functions but
13379 # their natively named funcs are threadsafe, and should be used instead.
13381 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13382 # functions are marked "not found", which is perfect.
13384 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13387 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13388 LIBS="$LIBS $THREAD_LIBS"
13392 for ac_func in strerror_r getpwuid_r gethostbyname_r
13394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13395 echo "$as_me:$LINENO: checking for $ac_func" >&5
13396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13397 if eval "test \"\${$as_ac_var+set}\" = set"; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13402 #include "confdefs.h"
13403 /* System header to define __stub macros and hopefully few prototypes,
13404 which can conflict with char $ac_func (); below. */
13405 #include <assert.h>
13406 /* Override any gcc2 internal prototype to avoid an error. */
13410 /* We use char because int might match the return type of a gcc2
13411 builtin and then its argument prototype would still apply. */
13415 #ifdef F77_DUMMY_MAIN
13416 # ifdef __cplusplus
13419 int F77_DUMMY_MAIN() { return 1; }
13424 /* The GNU C library defines this for functions which it implements
13425 to always fail with ENOSYS. Some functions are actually named
13426 something starting with __ and the normal name is an alias. */
13427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439 (eval $ac_link) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -s conftest$ac_exeext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 eval "$as_ac_var=yes"
13451 echo "$as_me: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13453 eval "$as_ac_var=no"
13455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13459 if test `eval echo '${'$as_ac_var'}'` = yes; then
13460 cat >>confdefs.h <<_ACEOF
13461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13472 # This test makes sure that run tests work at all. Sometimes a shared
13473 # library is found by the linker, but the runtime linker can't find it.
13474 # This check should come after all modifications of compiler or linker
13475 # variables, and before any other run tests.
13476 echo "$as_me:$LINENO: checking test program" >&5
13477 echo $ECHO_N "checking test program... $ECHO_C" >&6
13478 if test "$cross_compiling" = yes; then
13479 echo "$as_me:$LINENO: result: cross-compiling" >&5
13480 echo "${ECHO_T}cross-compiling" >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13483 #line $LINENO "configure"
13484 #include "confdefs.h"
13485 int main() { return 0; }
13487 rm -f conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 echo "$as_me:$LINENO: result: ok" >&5
13499 echo "${ECHO_T}ok" >&6
13501 echo "$as_me: program exited with status $ac_status" >&5
13502 echo "$as_me: failed program was:" >&5
13503 cat conftest.$ac_ext >&5
13504 ( exit $ac_status )
13505 echo "$as_me:$LINENO: result: failed" >&5
13506 echo "${ECHO_T}failed" >&6
13507 { { echo "$as_me:$LINENO: error:
13508 *** Could not execute a simple test program. This may be a problem
13509 *** related to locating shared libraries. Check the file 'config.log'
13510 *** for the exact reason." >&5
13511 echo "$as_me: error:
13512 *** Could not execute a simple test program. This may be a problem
13513 *** related to locating shared libraries. Check the file 'config.log'
13514 *** for the exact reason." >&2;}
13515 { (exit 1); exit 1; }; }
13517 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13522 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13523 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13524 if test "${pgac_cv_type_long_int_64+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 if test "$cross_compiling" = yes; then
13528 # If cross-compiling, check the size reported by the compiler and
13529 # trust that the arithmetic works.
13530 cat >conftest.$ac_ext <<_ACEOF
13531 #line $LINENO "configure"
13532 #include "confdefs.h"
13534 #ifdef F77_DUMMY_MAIN
13535 # ifdef __cplusplus
13538 int F77_DUMMY_MAIN() { return 1; }
13543 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -s conftest.$ac_objext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 pgac_cv_type_long_int_64=yes
13564 echo "$as_me: failed program was:" >&5
13565 cat conftest.$ac_ext >&5
13566 pgac_cv_type_long_int_64=no
13568 rm -f conftest.$ac_objext conftest.$ac_ext
13570 cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13572 #include "confdefs.h"
13573 typedef long int int64;
13576 * These are globals to discourage the compiler from folding all the
13577 * arithmetic tests down to compile-time constants.
13579 int64 a = 20000001;
13580 int64 b = 40000005;
13582 int does_int64_work()
13586 if (sizeof(int64) != 8)
13587 return 0; /* definitely not the right size */
13589 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13597 exit(! does_int64_work());
13600 rm -f conftest$ac_exeext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13602 (eval $ac_link) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 pgac_cv_type_long_int_64=yes
13613 echo "$as_me: program exited with status $ac_status" >&5
13614 echo "$as_me: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13616 ( exit $ac_status )
13617 pgac_cv_type_long_int_64=no
13619 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13622 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13623 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13625 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13626 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_LONG_INT_64
13635 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13636 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13637 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13638 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 if test "$cross_compiling" = yes; then
13642 # If cross-compiling, check the size reported by the compiler and
13643 # trust that the arithmetic works.
13644 cat >conftest.$ac_ext <<_ACEOF
13645 #line $LINENO "configure"
13646 #include "confdefs.h"
13648 #ifdef F77_DUMMY_MAIN
13649 # ifdef __cplusplus
13652 int F77_DUMMY_MAIN() { return 1; }
13657 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 pgac_cv_type_long_long_int_64=yes
13678 echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 pgac_cv_type_long_long_int_64=no
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 #include "confdefs.h"
13687 typedef long long int int64;
13690 * These are globals to discourage the compiler from folding all the
13691 * arithmetic tests down to compile-time constants.
13693 int64 a = 20000001;
13694 int64 b = 40000005;
13696 int does_int64_work()
13700 if (sizeof(int64) != 8)
13701 return 0; /* definitely not the right size */
13703 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13711 exit(! does_int64_work());
13714 rm -f conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716 (eval $ac_link) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 pgac_cv_type_long_long_int_64=yes
13727 echo "$as_me: program exited with status $ac_status" >&5
13728 echo "$as_me: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 ( exit $ac_status )
13731 pgac_cv_type_long_long_int_64=no
13733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13736 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13737 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13739 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13740 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13742 cat >>confdefs.h <<\_ACEOF
13743 #define HAVE_LONG_LONG_INT_64
13752 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13753 cat >conftest.$ac_ext <<_ACEOF
13754 #line $LINENO "configure"
13755 #include "confdefs.h"
13757 #define INT64CONST(x) x##LL
13758 long long int foo = INT64CONST(0x1234567890123456);
13760 #ifdef F77_DUMMY_MAIN
13761 # ifdef __cplusplus
13764 int F77_DUMMY_MAIN() { return 1; }
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13787 cat >>confdefs.h <<\_ACEOF
13788 #define HAVE_LL_CONSTANTS 1
13792 echo "$as_me: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13795 rm -f conftest.$ac_objext conftest.$ac_ext
13799 # If we found "long int" is 64 bits, assume snprintf handles it. If
13800 # we found we need to use "long long int", better check. We cope with
13801 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13802 # neither works, fall back to our own snprintf emulation (which we
13805 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13806 if test $pgac_need_repl_snprintf = no; then
13807 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13808 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13809 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 for pgac_format in '%lld' '%qd' '%I64d'; do
13813 if test "$cross_compiling" = yes; then
13814 pgac_cv_snprintf_long_long_int_format=cross; break
13816 cat >conftest.$ac_ext <<_ACEOF
13817 #line $LINENO "configure"
13818 #include "confdefs.h"
13820 typedef long long int int64;
13821 #define INT64_FORMAT "$pgac_format"
13823 int64 a = 20000001;
13824 int64 b = 40000005;
13826 int does_int64_snprintf_work()
13831 if (sizeof(int64) != 8)
13832 return 0; /* doesn't look like the right size */
13835 snprintf(buf, 100, INT64_FORMAT, c);
13836 if (strcmp(buf, "800000140000005") != 0)
13837 return 0; /* either multiply or snprintf is busted */
13841 exit(! does_int64_snprintf_work());
13844 rm -f conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13857 echo "$as_me: program exited with status $ac_status" >&5
13858 echo "$as_me: failed program was:" >&5
13859 cat conftest.$ac_ext >&5
13861 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866 LONG_LONG_INT_FORMAT=''
13868 case $pgac_cv_snprintf_long_long_int_format in
13869 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13870 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13871 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13872 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13873 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13874 *) echo "$as_me:$LINENO: result: none" >&5
13875 echo "${ECHO_T}none" >&6;;
13877 if test "$LONG_LONG_INT_FORMAT" = ""; then
13878 # Force usage of our own snprintf, since system snprintf is broken
13879 pgac_need_repl_snprintf=yes
13880 LONG_LONG_INT_FORMAT='%lld'
13883 # Here if we previously decided we needed to use our own snprintf
13884 LONG_LONG_INT_FORMAT='%lld'
13886 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13888 # Here if we are not using 'long long int' at all
13889 INT64_FORMAT='"%ld"'
13893 cat >>confdefs.h <<_ACEOF
13894 #define INT64_FORMAT $INT64_FORMAT
13898 if test $pgac_need_repl_snprintf = yes; then
13899 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13902 # Need a #define for the size of Datum (unsigned long)
13903 echo "$as_me:$LINENO: checking for unsigned long" >&5
13904 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13905 if test "${ac_cv_type_unsigned_long+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 cat >conftest.$ac_ext <<_ACEOF
13909 #line $LINENO "configure"
13910 #include "confdefs.h"
13911 $ac_includes_default
13912 #ifdef F77_DUMMY_MAIN
13913 # ifdef __cplusplus
13916 int F77_DUMMY_MAIN() { return 1; }
13921 if ((unsigned long *) 0)
13923 if (sizeof (unsigned long))
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_cv_type_unsigned_long=yes
13943 echo "$as_me: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13945 ac_cv_type_unsigned_long=no
13947 rm -f conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13950 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13952 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13953 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13954 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 if test "$ac_cv_type_unsigned_long" = yes; then
13958 # The cast to unsigned long works around a bug in the HP C Compiler
13959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13961 # This bug is HP SR number 8606223364.
13962 if test "$cross_compiling" = yes; then
13963 # Depending upon the size, compute the lo and hi bounds.
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 #include "confdefs.h"
13967 $ac_includes_default
13968 #ifdef F77_DUMMY_MAIN
13969 # ifdef __cplusplus
13972 int F77_DUMMY_MAIN() { return 1; }
13977 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13984 rm -f conftest.$ac_objext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986 (eval $ac_compile) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13998 cat >conftest.$ac_ext <<_ACEOF
13999 #line $LINENO "configure"
14000 #include "confdefs.h"
14001 $ac_includes_default
14002 #ifdef F77_DUMMY_MAIN
14003 # ifdef __cplusplus
14006 int F77_DUMMY_MAIN() { return 1; }
14011 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_hi=$ac_mid; break
14032 echo "$as_me: failed program was:" >&5
14033 cat conftest.$ac_ext >&5
14034 ac_lo=`expr $ac_mid + 1`
14035 if test $ac_lo -le $ac_mid; then
14039 ac_mid=`expr 2 '*' $ac_mid + 1`
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14044 echo "$as_me: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14046 cat >conftest.$ac_ext <<_ACEOF
14047 #line $LINENO "configure"
14048 #include "confdefs.h"
14049 $ac_includes_default
14050 #ifdef F77_DUMMY_MAIN
14051 # ifdef __cplusplus
14054 int F77_DUMMY_MAIN() { return 1; }
14059 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14066 rm -f conftest.$ac_objext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068 (eval $ac_compile) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -s conftest.$ac_objext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14080 cat >conftest.$ac_ext <<_ACEOF
14081 #line $LINENO "configure"
14082 #include "confdefs.h"
14083 $ac_includes_default
14084 #ifdef F77_DUMMY_MAIN
14085 # ifdef __cplusplus
14088 int F77_DUMMY_MAIN() { return 1; }
14093 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14100 rm -f conftest.$ac_objext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_lo=$ac_mid; break
14114 echo "$as_me: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116 ac_hi=`expr '(' $ac_mid ')' - 1`
14117 if test $ac_mid -le $ac_hi; then
14121 ac_mid=`expr 2 '*' $ac_mid`
14123 rm -f conftest.$ac_objext conftest.$ac_ext
14126 echo "$as_me: failed program was:" >&5
14127 cat conftest.$ac_ext >&5
14130 rm -f conftest.$ac_objext conftest.$ac_ext
14132 rm -f conftest.$ac_objext conftest.$ac_ext
14133 # Binary search between lo and hi bounds.
14134 while test "x$ac_lo" != "x$ac_hi"; do
14135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14136 cat >conftest.$ac_ext <<_ACEOF
14137 #line $LINENO "configure"
14138 #include "confdefs.h"
14139 $ac_includes_default
14140 #ifdef F77_DUMMY_MAIN
14141 # ifdef __cplusplus
14144 int F77_DUMMY_MAIN() { return 1; }
14149 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -s conftest.$ac_objext'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14170 echo "$as_me: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14172 ac_lo=`expr '(' $ac_mid ')' + 1`
14174 rm -f conftest.$ac_objext conftest.$ac_ext
14177 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14178 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14179 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14180 { (exit 1); exit 1; }; } ;;
14183 if test "$cross_compiling" = yes; then
14184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14185 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14186 { (exit 1); exit 1; }; }
14188 cat >conftest.$ac_ext <<_ACEOF
14189 #line $LINENO "configure"
14190 #include "confdefs.h"
14191 $ac_includes_default
14192 long longval () { return (long) (sizeof (unsigned long)); }
14193 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14195 #include <stdlib.h>
14196 #ifdef F77_DUMMY_MAIN
14197 # ifdef __cplusplus
14200 int F77_DUMMY_MAIN() { return 1; }
14206 FILE *f = fopen ("conftest.val", "w");
14209 if (((long) (sizeof (unsigned long))) < 0)
14211 long i = longval ();
14212 if (i != ((long) (sizeof (unsigned long))))
14214 fprintf (f, "%ld\n", i);
14218 unsigned long i = ulongval ();
14219 if (i != ((long) (sizeof (unsigned long))))
14221 fprintf (f, "%lu\n", i);
14223 exit (ferror (f) || fclose (f) != 0);
14229 rm -f conftest$ac_exeext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14242 echo "$as_me: program exited with status $ac_status" >&5
14243 echo "$as_me: failed program was:" >&5
14244 cat conftest.$ac_ext >&5
14245 ( exit $ac_status )
14246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14247 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14248 { (exit 1); exit 1; }; }
14250 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14255 ac_cv_sizeof_unsigned_long=0
14258 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14259 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14260 cat >>confdefs.h <<_ACEOF
14261 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14266 # Determine memory alignment requirements for the basic C data types.
14268 echo "$as_me:$LINENO: checking for short" >&5
14269 echo $ECHO_N "checking for short... $ECHO_C" >&6
14270 if test "${ac_cv_type_short+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14275 #include "confdefs.h"
14276 $ac_includes_default
14277 #ifdef F77_DUMMY_MAIN
14278 # ifdef __cplusplus
14281 int F77_DUMMY_MAIN() { return 1; }
14288 if (sizeof (short))
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296 (eval $ac_compile) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_cv_type_short=yes
14308 echo "$as_me: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 ac_cv_type_short=no
14312 rm -f conftest.$ac_objext conftest.$ac_ext
14314 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14315 echo "${ECHO_T}$ac_cv_type_short" >&6
14317 echo "$as_me:$LINENO: checking alignment of short" >&5
14318 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14319 if test "${pgac_cv_alignof_short+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 if test "$ac_cv_type_short" = yes; then
14323 if test "$cross_compiling" = yes; then
14324 # Depending upon the size, compute the lo and hi bounds.
14325 cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14327 #include "confdefs.h"
14328 $ac_includes_default
14329 struct { char filler; short field; } pgac_struct;
14330 #ifdef F77_DUMMY_MAIN
14331 # ifdef __cplusplus
14334 int F77_DUMMY_MAIN() { return 1; }
14339 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14360 cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 #include "confdefs.h"
14363 $ac_includes_default
14364 struct { char filler; short field; } pgac_struct;
14365 #ifdef F77_DUMMY_MAIN
14366 # ifdef __cplusplus
14369 int F77_DUMMY_MAIN() { return 1; }
14374 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -s conftest.$ac_objext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_hi=$ac_mid; break
14395 echo "$as_me: failed program was:" >&5
14396 cat conftest.$ac_ext >&5
14397 ac_lo=`expr $ac_mid + 1`
14398 if test $ac_lo -le $ac_mid; then
14402 ac_mid=`expr 2 '*' $ac_mid + 1`
14404 rm -f conftest.$ac_objext conftest.$ac_ext
14407 echo "$as_me: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 cat >conftest.$ac_ext <<_ACEOF
14410 #line $LINENO "configure"
14411 #include "confdefs.h"
14412 $ac_includes_default
14413 struct { char filler; short field; } pgac_struct;
14414 #ifdef F77_DUMMY_MAIN
14415 # ifdef __cplusplus
14418 int F77_DUMMY_MAIN() { return 1; }
14423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -s conftest.$ac_objext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14444 cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 #include "confdefs.h"
14447 $ac_includes_default
14448 struct { char filler; short field; } pgac_struct;
14449 #ifdef F77_DUMMY_MAIN
14450 # ifdef __cplusplus
14453 int F77_DUMMY_MAIN() { return 1; }
14458 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -s conftest.$ac_objext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_lo=$ac_mid; break
14479 echo "$as_me: failed program was:" >&5
14480 cat conftest.$ac_ext >&5
14481 ac_hi=`expr '(' $ac_mid ')' - 1`
14482 if test $ac_mid -le $ac_hi; then
14486 ac_mid=`expr 2 '*' $ac_mid`
14488 rm -f conftest.$ac_objext conftest.$ac_ext
14491 echo "$as_me: failed program was:" >&5
14492 cat conftest.$ac_ext >&5
14495 rm -f conftest.$ac_objext conftest.$ac_ext
14497 rm -f conftest.$ac_objext conftest.$ac_ext
14498 # Binary search between lo and hi bounds.
14499 while test "x$ac_lo" != "x$ac_hi"; do
14500 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14501 cat >conftest.$ac_ext <<_ACEOF
14502 #line $LINENO "configure"
14503 #include "confdefs.h"
14504 $ac_includes_default
14505 struct { char filler; short field; } pgac_struct;
14506 #ifdef F77_DUMMY_MAIN
14507 # ifdef __cplusplus
14510 int F77_DUMMY_MAIN() { return 1; }
14515 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524 (eval $ac_compile) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14536 echo "$as_me: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14538 ac_lo=`expr '(' $ac_mid ')' + 1`
14540 rm -f conftest.$ac_objext conftest.$ac_ext
14543 ?*) pgac_cv_alignof_short=$ac_lo;;
14544 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14545 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14546 { (exit 1); exit 1; }; } ;;
14549 if test "$cross_compiling" = yes; then
14550 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14551 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14552 { (exit 1); exit 1; }; }
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 #include "confdefs.h"
14557 $ac_includes_default
14558 struct { char filler; short field; } pgac_struct;
14559 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14560 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14562 #include <stdlib.h>
14563 #ifdef F77_DUMMY_MAIN
14564 # ifdef __cplusplus
14567 int F77_DUMMY_MAIN() { return 1; }
14573 FILE *f = fopen ("conftest.val", "w");
14576 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14578 long i = longval ();
14579 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14581 fprintf (f, "%ld\n", i);
14585 unsigned long i = ulongval ();
14586 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14588 fprintf (f, "%lu\n", i);
14590 exit (ferror (f) || fclose (f) != 0);
14596 rm -f conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 pgac_cv_alignof_short=`cat conftest.val`
14609 echo "$as_me: program exited with status $ac_status" >&5
14610 echo "$as_me: failed program was:" >&5
14611 cat conftest.$ac_ext >&5
14612 ( exit $ac_status )
14613 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14614 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14615 { (exit 1); exit 1; }; }
14617 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14622 pgac_cv_alignof_short=0
14625 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14626 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14627 cat >>confdefs.h <<_ACEOF
14628 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14632 echo "$as_me:$LINENO: checking for int" >&5
14633 echo $ECHO_N "checking for int... $ECHO_C" >&6
14634 if test "${ac_cv_type_int+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 #include "confdefs.h"
14640 $ac_includes_default
14641 #ifdef F77_DUMMY_MAIN
14642 # ifdef __cplusplus
14645 int F77_DUMMY_MAIN() { return 1; }
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660 (eval $ac_compile) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14672 echo "$as_me: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14678 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14679 echo "${ECHO_T}$ac_cv_type_int" >&6
14681 echo "$as_me:$LINENO: checking alignment of int" >&5
14682 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14683 if test "${pgac_cv_alignof_int+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 if test "$ac_cv_type_int" = yes; then
14687 if test "$cross_compiling" = yes; then
14688 # Depending upon the size, compute the lo and hi bounds.
14689 cat >conftest.$ac_ext <<_ACEOF
14690 #line $LINENO "configure"
14691 #include "confdefs.h"
14692 $ac_includes_default
14693 struct { char filler; int field; } pgac_struct;
14694 #ifdef F77_DUMMY_MAIN
14695 # ifdef __cplusplus
14698 int F77_DUMMY_MAIN() { return 1; }
14703 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14724 cat >conftest.$ac_ext <<_ACEOF
14725 #line $LINENO "configure"
14726 #include "confdefs.h"
14727 $ac_includes_default
14728 struct { char filler; int field; } pgac_struct;
14729 #ifdef F77_DUMMY_MAIN
14730 # ifdef __cplusplus
14733 int F77_DUMMY_MAIN() { return 1; }
14738 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14745 rm -f conftest.$ac_objext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14747 (eval $ac_compile) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_hi=$ac_mid; break
14759 echo "$as_me: failed program was:" >&5
14760 cat conftest.$ac_ext >&5
14761 ac_lo=`expr $ac_mid + 1`
14762 if test $ac_lo -le $ac_mid; then
14766 ac_mid=`expr 2 '*' $ac_mid + 1`
14768 rm -f conftest.$ac_objext conftest.$ac_ext
14771 echo "$as_me: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 cat >conftest.$ac_ext <<_ACEOF
14774 #line $LINENO "configure"
14775 #include "confdefs.h"
14776 $ac_includes_default
14777 struct { char filler; int field; } pgac_struct;
14778 #ifdef F77_DUMMY_MAIN
14779 # ifdef __cplusplus
14782 int F77_DUMMY_MAIN() { return 1; }
14787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796 (eval $ac_compile) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -s conftest.$ac_objext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14808 cat >conftest.$ac_ext <<_ACEOF
14809 #line $LINENO "configure"
14810 #include "confdefs.h"
14811 $ac_includes_default
14812 struct { char filler; int field; } pgac_struct;
14813 #ifdef F77_DUMMY_MAIN
14814 # ifdef __cplusplus
14817 int F77_DUMMY_MAIN() { return 1; }
14822 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14829 rm -f conftest.$ac_objext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831 (eval $ac_compile) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_lo=$ac_mid; break
14843 echo "$as_me: failed program was:" >&5
14844 cat conftest.$ac_ext >&5
14845 ac_hi=`expr '(' $ac_mid ')' - 1`
14846 if test $ac_mid -le $ac_hi; then
14850 ac_mid=`expr 2 '*' $ac_mid`
14852 rm -f conftest.$ac_objext conftest.$ac_ext
14855 echo "$as_me: failed program was:" >&5
14856 cat conftest.$ac_ext >&5
14859 rm -f conftest.$ac_objext conftest.$ac_ext
14861 rm -f conftest.$ac_objext conftest.$ac_ext
14862 # Binary search between lo and hi bounds.
14863 while test "x$ac_lo" != "x$ac_hi"; do
14864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14865 cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 #include "confdefs.h"
14868 $ac_includes_default
14869 struct { char filler; int field; } pgac_struct;
14870 #ifdef F77_DUMMY_MAIN
14871 # ifdef __cplusplus
14874 int F77_DUMMY_MAIN() { return 1; }
14879 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888 (eval $ac_compile) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -s conftest.$ac_objext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14900 echo "$as_me: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14902 ac_lo=`expr '(' $ac_mid ')' + 1`
14904 rm -f conftest.$ac_objext conftest.$ac_ext
14907 ?*) pgac_cv_alignof_int=$ac_lo;;
14908 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14909 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14910 { (exit 1); exit 1; }; } ;;
14913 if test "$cross_compiling" = yes; then
14914 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14915 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14916 { (exit 1); exit 1; }; }
14918 cat >conftest.$ac_ext <<_ACEOF
14919 #line $LINENO "configure"
14920 #include "confdefs.h"
14921 $ac_includes_default
14922 struct { char filler; int field; } pgac_struct;
14923 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14924 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14926 #include <stdlib.h>
14927 #ifdef F77_DUMMY_MAIN
14928 # ifdef __cplusplus
14931 int F77_DUMMY_MAIN() { return 1; }
14937 FILE *f = fopen ("conftest.val", "w");
14940 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14942 long i = longval ();
14943 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14945 fprintf (f, "%ld\n", i);
14949 unsigned long i = ulongval ();
14950 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14952 fprintf (f, "%lu\n", i);
14954 exit (ferror (f) || fclose (f) != 0);
14960 rm -f conftest$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 pgac_cv_alignof_int=`cat conftest.val`
14973 echo "$as_me: program exited with status $ac_status" >&5
14974 echo "$as_me: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 ( exit $ac_status )
14977 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14978 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14979 { (exit 1); exit 1; }; }
14981 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14986 pgac_cv_alignof_int=0
14989 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14990 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14991 cat >>confdefs.h <<_ACEOF
14992 #define ALIGNOF_INT $pgac_cv_alignof_int
14996 echo "$as_me:$LINENO: checking for long" >&5
14997 echo $ECHO_N "checking for long... $ECHO_C" >&6
14998 if test "${ac_cv_type_long+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15003 #include "confdefs.h"
15004 $ac_includes_default
15005 #ifdef F77_DUMMY_MAIN
15006 # ifdef __cplusplus
15009 int F77_DUMMY_MAIN() { return 1; }
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -s conftest.$ac_objext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_type_long=yes
15036 echo "$as_me: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15040 rm -f conftest.$ac_objext conftest.$ac_ext
15042 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15043 echo "${ECHO_T}$ac_cv_type_long" >&6
15045 echo "$as_me:$LINENO: checking alignment of long" >&5
15046 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15047 if test "${pgac_cv_alignof_long+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 if test "$ac_cv_type_long" = yes; then
15051 if test "$cross_compiling" = yes; then
15052 # Depending upon the size, compute the lo and hi bounds.
15053 cat >conftest.$ac_ext <<_ACEOF
15054 #line $LINENO "configure"
15055 #include "confdefs.h"
15056 $ac_includes_default
15057 struct { char filler; long field; } pgac_struct;
15058 #ifdef F77_DUMMY_MAIN
15059 # ifdef __cplusplus
15062 int F77_DUMMY_MAIN() { return 1; }
15067 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15074 rm -f conftest.$ac_objext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076 (eval $ac_compile) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -s conftest.$ac_objext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15088 cat >conftest.$ac_ext <<_ACEOF
15089 #line $LINENO "configure"
15090 #include "confdefs.h"
15091 $ac_includes_default
15092 struct { char filler; long field; } pgac_struct;
15093 #ifdef F77_DUMMY_MAIN
15094 # ifdef __cplusplus
15097 int F77_DUMMY_MAIN() { return 1; }
15102 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_hi=$ac_mid; break
15123 echo "$as_me: failed program was:" >&5
15124 cat conftest.$ac_ext >&5
15125 ac_lo=`expr $ac_mid + 1`
15126 if test $ac_lo -le $ac_mid; then
15130 ac_mid=`expr 2 '*' $ac_mid + 1`
15132 rm -f conftest.$ac_objext conftest.$ac_ext
15135 echo "$as_me: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15137 cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 #include "confdefs.h"
15140 $ac_includes_default
15141 struct { char filler; long field; } pgac_struct;
15142 #ifdef F77_DUMMY_MAIN
15143 # ifdef __cplusplus
15146 int F77_DUMMY_MAIN() { return 1; }
15151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -s conftest.$ac_objext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15172 cat >conftest.$ac_ext <<_ACEOF
15173 #line $LINENO "configure"
15174 #include "confdefs.h"
15175 $ac_includes_default
15176 struct { char filler; long field; } pgac_struct;
15177 #ifdef F77_DUMMY_MAIN
15178 # ifdef __cplusplus
15181 int F77_DUMMY_MAIN() { return 1; }
15186 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15193 rm -f conftest.$ac_objext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15195 (eval $ac_compile) 2>&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -s conftest.$ac_objext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_lo=$ac_mid; break
15207 echo "$as_me: failed program was:" >&5
15208 cat conftest.$ac_ext >&5
15209 ac_hi=`expr '(' $ac_mid ')' - 1`
15210 if test $ac_mid -le $ac_hi; then
15214 ac_mid=`expr 2 '*' $ac_mid`
15216 rm -f conftest.$ac_objext conftest.$ac_ext
15219 echo "$as_me: failed program was:" >&5
15220 cat conftest.$ac_ext >&5
15223 rm -f conftest.$ac_objext conftest.$ac_ext
15225 rm -f conftest.$ac_objext conftest.$ac_ext
15226 # Binary search between lo and hi bounds.
15227 while test "x$ac_lo" != "x$ac_hi"; do
15228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15229 cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232 $ac_includes_default
15233 struct { char filler; long field; } pgac_struct;
15234 #ifdef F77_DUMMY_MAIN
15235 # ifdef __cplusplus
15238 int F77_DUMMY_MAIN() { return 1; }
15243 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15250 rm -f conftest.$ac_objext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15252 (eval $ac_compile) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -s conftest.$ac_objext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15264 echo "$as_me: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15266 ac_lo=`expr '(' $ac_mid ')' + 1`
15268 rm -f conftest.$ac_objext conftest.$ac_ext
15271 ?*) pgac_cv_alignof_long=$ac_lo;;
15272 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15273 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15274 { (exit 1); exit 1; }; } ;;
15277 if test "$cross_compiling" = yes; then
15278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15279 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15280 { (exit 1); exit 1; }; }
15282 cat >conftest.$ac_ext <<_ACEOF
15283 #line $LINENO "configure"
15284 #include "confdefs.h"
15285 $ac_includes_default
15286 struct { char filler; long field; } pgac_struct;
15287 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15288 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15290 #include <stdlib.h>
15291 #ifdef F77_DUMMY_MAIN
15292 # ifdef __cplusplus
15295 int F77_DUMMY_MAIN() { return 1; }
15301 FILE *f = fopen ("conftest.val", "w");
15304 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15306 long i = longval ();
15307 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15309 fprintf (f, "%ld\n", i);
15313 unsigned long i = ulongval ();
15314 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15316 fprintf (f, "%lu\n", i);
15318 exit (ferror (f) || fclose (f) != 0);
15324 rm -f conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326 (eval $ac_link) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 pgac_cv_alignof_long=`cat conftest.val`
15337 echo "$as_me: program exited with status $ac_status" >&5
15338 echo "$as_me: failed program was:" >&5
15339 cat conftest.$ac_ext >&5
15340 ( exit $ac_status )
15341 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15342 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15343 { (exit 1); exit 1; }; }
15345 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15350 pgac_cv_alignof_long=0
15353 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15354 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15355 cat >>confdefs.h <<_ACEOF
15356 #define ALIGNOF_LONG $pgac_cv_alignof_long
15360 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15361 echo "$as_me:$LINENO: checking for long long int" >&5
15362 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15363 if test "${ac_cv_type_long_long_int+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 cat >conftest.$ac_ext <<_ACEOF
15367 #line $LINENO "configure"
15368 #include "confdefs.h"
15369 $ac_includes_default
15370 #ifdef F77_DUMMY_MAIN
15371 # ifdef __cplusplus
15374 int F77_DUMMY_MAIN() { return 1; }
15379 if ((long long int *) 0)
15381 if (sizeof (long long int))
15387 rm -f conftest.$ac_objext
15388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389 (eval $ac_compile) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_cv_type_long_long_int=yes
15401 echo "$as_me: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 ac_cv_type_long_long_int=no
15405 rm -f conftest.$ac_objext conftest.$ac_ext
15407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15408 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15410 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15411 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15412 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 if test "$ac_cv_type_long_long_int" = yes; then
15416 if test "$cross_compiling" = yes; then
15417 # Depending upon the size, compute the lo and hi bounds.
15418 cat >conftest.$ac_ext <<_ACEOF
15419 #line $LINENO "configure"
15420 #include "confdefs.h"
15421 $ac_includes_default
15422 struct { char filler; long long int field; } pgac_struct;
15423 #ifdef F77_DUMMY_MAIN
15424 # ifdef __cplusplus
15427 int F77_DUMMY_MAIN() { return 1; }
15432 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15439 rm -f conftest.$ac_objext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441 (eval $ac_compile) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -s conftest.$ac_objext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15453 cat >conftest.$ac_ext <<_ACEOF
15454 #line $LINENO "configure"
15455 #include "confdefs.h"
15456 $ac_includes_default
15457 struct { char filler; long long int field; } pgac_struct;
15458 #ifdef F77_DUMMY_MAIN
15459 # ifdef __cplusplus
15462 int F77_DUMMY_MAIN() { return 1; }
15467 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15474 rm -f conftest.$ac_objext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15476 (eval $ac_compile) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_hi=$ac_mid; break
15488 echo "$as_me: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 ac_lo=`expr $ac_mid + 1`
15491 if test $ac_lo -le $ac_mid; then
15495 ac_mid=`expr 2 '*' $ac_mid + 1`
15497 rm -f conftest.$ac_objext conftest.$ac_ext
15500 echo "$as_me: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 cat >conftest.$ac_ext <<_ACEOF
15503 #line $LINENO "configure"
15504 #include "confdefs.h"
15505 $ac_includes_default
15506 struct { char filler; long long int field; } pgac_struct;
15507 #ifdef F77_DUMMY_MAIN
15508 # ifdef __cplusplus
15511 int F77_DUMMY_MAIN() { return 1; }
15516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15523 rm -f conftest.$ac_objext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15525 (eval $ac_compile) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
15529 { ac_try='test -s conftest.$ac_objext'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15537 cat >conftest.$ac_ext <<_ACEOF
15538 #line $LINENO "configure"
15539 #include "confdefs.h"
15540 $ac_includes_default
15541 struct { char filler; long long int field; } pgac_struct;
15542 #ifdef F77_DUMMY_MAIN
15543 # ifdef __cplusplus
15546 int F77_DUMMY_MAIN() { return 1; }
15551 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15558 rm -f conftest.$ac_objext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560 (eval $ac_compile) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -s conftest.$ac_objext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_lo=$ac_mid; break
15572 echo "$as_me: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 ac_hi=`expr '(' $ac_mid ')' - 1`
15575 if test $ac_mid -le $ac_hi; then
15579 ac_mid=`expr 2 '*' $ac_mid`
15581 rm -f conftest.$ac_objext conftest.$ac_ext
15584 echo "$as_me: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15588 rm -f conftest.$ac_objext conftest.$ac_ext
15590 rm -f conftest.$ac_objext conftest.$ac_ext
15591 # Binary search between lo and hi bounds.
15592 while test "x$ac_lo" != "x$ac_hi"; do
15593 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15594 cat >conftest.$ac_ext <<_ACEOF
15595 #line $LINENO "configure"
15596 #include "confdefs.h"
15597 $ac_includes_default
15598 struct { char filler; long long int field; } pgac_struct;
15599 #ifdef F77_DUMMY_MAIN
15600 # ifdef __cplusplus
15603 int F77_DUMMY_MAIN() { return 1; }
15608 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15615 rm -f conftest.$ac_objext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617 (eval $ac_compile) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15629 echo "$as_me: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 ac_lo=`expr '(' $ac_mid ')' + 1`
15633 rm -f conftest.$ac_objext conftest.$ac_ext
15636 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15637 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15638 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15639 { (exit 1); exit 1; }; } ;;
15642 if test "$cross_compiling" = yes; then
15643 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15644 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15645 { (exit 1); exit 1; }; }
15647 cat >conftest.$ac_ext <<_ACEOF
15648 #line $LINENO "configure"
15649 #include "confdefs.h"
15650 $ac_includes_default
15651 struct { char filler; long long int field; } pgac_struct;
15652 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15653 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15655 #include <stdlib.h>
15656 #ifdef F77_DUMMY_MAIN
15657 # ifdef __cplusplus
15660 int F77_DUMMY_MAIN() { return 1; }
15666 FILE *f = fopen ("conftest.val", "w");
15669 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15671 long i = longval ();
15672 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15674 fprintf (f, "%ld\n", i);
15678 unsigned long i = ulongval ();
15679 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15681 fprintf (f, "%lu\n", i);
15683 exit (ferror (f) || fclose (f) != 0);
15689 rm -f conftest$ac_exeext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691 (eval $ac_link) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 pgac_cv_alignof_long_long_int=`cat conftest.val`
15702 echo "$as_me: program exited with status $ac_status" >&5
15703 echo "$as_me: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 ( exit $ac_status )
15706 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15707 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15708 { (exit 1); exit 1; }; }
15710 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15715 pgac_cv_alignof_long_long_int=0
15718 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15719 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15720 cat >>confdefs.h <<_ACEOF
15721 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15726 echo "$as_me:$LINENO: checking for double" >&5
15727 echo $ECHO_N "checking for double... $ECHO_C" >&6
15728 if test "${ac_cv_type_double+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 cat >conftest.$ac_ext <<_ACEOF
15732 #line $LINENO "configure"
15733 #include "confdefs.h"
15734 $ac_includes_default
15735 #ifdef F77_DUMMY_MAIN
15736 # ifdef __cplusplus
15739 int F77_DUMMY_MAIN() { return 1; }
15746 if (sizeof (double))
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_cv_type_double=yes
15766 echo "$as_me: failed program was:" >&5
15767 cat conftest.$ac_ext >&5
15768 ac_cv_type_double=no
15770 rm -f conftest.$ac_objext conftest.$ac_ext
15772 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15773 echo "${ECHO_T}$ac_cv_type_double" >&6
15775 echo "$as_me:$LINENO: checking alignment of double" >&5
15776 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15777 if test "${pgac_cv_alignof_double+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 if test "$ac_cv_type_double" = yes; then
15781 if test "$cross_compiling" = yes; then
15782 # Depending upon the size, compute the lo and hi bounds.
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 #include "confdefs.h"
15786 $ac_includes_default
15787 struct { char filler; double field; } pgac_struct;
15788 #ifdef F77_DUMMY_MAIN
15789 # ifdef __cplusplus
15792 int F77_DUMMY_MAIN() { return 1; }
15797 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15804 rm -f conftest.$ac_objext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806 (eval $ac_compile) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -s conftest.$ac_objext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15818 cat >conftest.$ac_ext <<_ACEOF
15819 #line $LINENO "configure"
15820 #include "confdefs.h"
15821 $ac_includes_default
15822 struct { char filler; double field; } pgac_struct;
15823 #ifdef F77_DUMMY_MAIN
15824 # ifdef __cplusplus
15827 int F77_DUMMY_MAIN() { return 1; }
15832 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -s conftest.$ac_objext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851 ac_hi=$ac_mid; break
15853 echo "$as_me: failed program was:" >&5
15854 cat conftest.$ac_ext >&5
15855 ac_lo=`expr $ac_mid + 1`
15856 if test $ac_lo -le $ac_mid; then
15860 ac_mid=`expr 2 '*' $ac_mid + 1`
15862 rm -f conftest.$ac_objext conftest.$ac_ext
15865 echo "$as_me: failed program was:" >&5
15866 cat conftest.$ac_ext >&5
15867 cat >conftest.$ac_ext <<_ACEOF
15868 #line $LINENO "configure"
15869 #include "confdefs.h"
15870 $ac_includes_default
15871 struct { char filler; double field; } pgac_struct;
15872 #ifdef F77_DUMMY_MAIN
15873 # ifdef __cplusplus
15876 int F77_DUMMY_MAIN() { return 1; }
15881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -s conftest.$ac_objext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15902 cat >conftest.$ac_ext <<_ACEOF
15903 #line $LINENO "configure"
15904 #include "confdefs.h"
15905 $ac_includes_default
15906 struct { char filler; double field; } pgac_struct;
15907 #ifdef F77_DUMMY_MAIN
15908 # ifdef __cplusplus
15911 int F77_DUMMY_MAIN() { return 1; }
15916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15923 rm -f conftest.$ac_objext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925 (eval $ac_compile) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_lo=$ac_mid; break
15937 echo "$as_me: failed program was:" >&5
15938 cat conftest.$ac_ext >&5
15939 ac_hi=`expr '(' $ac_mid ')' - 1`
15940 if test $ac_mid -le $ac_hi; then
15944 ac_mid=`expr 2 '*' $ac_mid`
15946 rm -f conftest.$ac_objext conftest.$ac_ext
15949 echo "$as_me: failed program was:" >&5
15950 cat conftest.$ac_ext >&5
15953 rm -f conftest.$ac_objext conftest.$ac_ext
15955 rm -f conftest.$ac_objext conftest.$ac_ext
15956 # Binary search between lo and hi bounds.
15957 while test "x$ac_lo" != "x$ac_hi"; do
15958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15959 cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 #include "confdefs.h"
15962 $ac_includes_default
15963 struct { char filler; double field; } pgac_struct;
15964 #ifdef F77_DUMMY_MAIN
15965 # ifdef __cplusplus
15968 int F77_DUMMY_MAIN() { return 1; }
15973 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15980 rm -f conftest.$ac_objext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15982 (eval $ac_compile) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -s conftest.$ac_objext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15994 echo "$as_me: failed program was:" >&5
15995 cat conftest.$ac_ext >&5
15996 ac_lo=`expr '(' $ac_mid ')' + 1`
15998 rm -f conftest.$ac_objext conftest.$ac_ext
16001 ?*) pgac_cv_alignof_double=$ac_lo;;
16002 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16003 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16004 { (exit 1); exit 1; }; } ;;
16007 if test "$cross_compiling" = yes; then
16008 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16009 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16010 { (exit 1); exit 1; }; }
16012 cat >conftest.$ac_ext <<_ACEOF
16013 #line $LINENO "configure"
16014 #include "confdefs.h"
16015 $ac_includes_default
16016 struct { char filler; double field; } pgac_struct;
16017 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16018 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16020 #include <stdlib.h>
16021 #ifdef F77_DUMMY_MAIN
16022 # ifdef __cplusplus
16025 int F77_DUMMY_MAIN() { return 1; }
16031 FILE *f = fopen ("conftest.val", "w");
16034 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16036 long i = longval ();
16037 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16039 fprintf (f, "%ld\n", i);
16043 unsigned long i = ulongval ();
16044 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16046 fprintf (f, "%lu\n", i);
16048 exit (ferror (f) || fclose (f) != 0);
16054 rm -f conftest$ac_exeext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16056 (eval $ac_link) 2>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 pgac_cv_alignof_double=`cat conftest.val`
16067 echo "$as_me: program exited with status $ac_status" >&5
16068 echo "$as_me: failed program was:" >&5
16069 cat conftest.$ac_ext >&5
16070 ( exit $ac_status )
16071 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16072 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16073 { (exit 1); exit 1; }; }
16075 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16080 pgac_cv_alignof_double=0
16083 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16084 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16085 cat >>confdefs.h <<_ACEOF
16086 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16091 # Compute maximum alignment of any basic type.
16092 # We assume long's alignment is at least as strong as char, short, or int;
16093 # but we must check long long (if it exists) and double.
16095 MAX_ALIGNOF=$pgac_cv_alignof_long
16096 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16097 MAX_ALIGNOF=$pgac_cv_alignof_double
16099 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16100 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16103 cat >>confdefs.h <<_ACEOF
16104 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16109 # Some platforms predefine the types int8, int16, etc. Only check
16110 # a (hopefully) representative subset.
16111 echo "$as_me:$LINENO: checking for int8" >&5
16112 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16113 if test "${ac_cv_type_int8+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 cat >conftest.$ac_ext <<_ACEOF
16117 #line $LINENO "configure"
16118 #include "confdefs.h"
16120 #ifdef HAVE_SUPPORTDEFS_H
16121 #include <SupportDefs.h>
16124 #ifdef F77_DUMMY_MAIN
16125 # ifdef __cplusplus
16128 int F77_DUMMY_MAIN() { return 1; }
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_cv_type_int8=yes
16155 echo "$as_me: failed program was:" >&5
16156 cat conftest.$ac_ext >&5
16159 rm -f conftest.$ac_objext conftest.$ac_ext
16161 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16162 echo "${ECHO_T}$ac_cv_type_int8" >&6
16163 if test $ac_cv_type_int8 = yes; then
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_INT8 1
16171 echo "$as_me:$LINENO: checking for uint8" >&5
16172 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16173 if test "${ac_cv_type_uint8+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 cat >conftest.$ac_ext <<_ACEOF
16177 #line $LINENO "configure"
16178 #include "confdefs.h"
16180 #ifdef HAVE_SUPPORTDEFS_H
16181 #include <SupportDefs.h>
16184 #ifdef F77_DUMMY_MAIN
16185 # ifdef __cplusplus
16188 int F77_DUMMY_MAIN() { return 1; }
16195 if (sizeof (uint8))
16201 rm -f conftest.$ac_objext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16203 (eval $ac_compile) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -s conftest.$ac_objext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_type_uint8=yes
16215 echo "$as_me: failed program was:" >&5
16216 cat conftest.$ac_ext >&5
16217 ac_cv_type_uint8=no
16219 rm -f conftest.$ac_objext conftest.$ac_ext
16221 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16222 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16223 if test $ac_cv_type_uint8 = yes; then
16225 cat >>confdefs.h <<_ACEOF
16226 #define HAVE_UINT8 1
16231 echo "$as_me:$LINENO: checking for int64" >&5
16232 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16233 if test "${ac_cv_type_int64+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 cat >conftest.$ac_ext <<_ACEOF
16237 #line $LINENO "configure"
16238 #include "confdefs.h"
16240 #ifdef HAVE_SUPPORTDEFS_H
16241 #include <SupportDefs.h>
16244 #ifdef F77_DUMMY_MAIN
16245 # ifdef __cplusplus
16248 int F77_DUMMY_MAIN() { return 1; }
16255 if (sizeof (int64))
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -s conftest.$ac_objext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16273 ac_cv_type_int64=yes
16275 echo "$as_me: failed program was:" >&5
16276 cat conftest.$ac_ext >&5
16277 ac_cv_type_int64=no
16279 rm -f conftest.$ac_objext conftest.$ac_ext
16281 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16282 echo "${ECHO_T}$ac_cv_type_int64" >&6
16283 if test $ac_cv_type_int64 = yes; then
16285 cat >>confdefs.h <<_ACEOF
16286 #define HAVE_INT64 1
16291 echo "$as_me:$LINENO: checking for uint64" >&5
16292 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16293 if test "${ac_cv_type_uint64+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 cat >conftest.$ac_ext <<_ACEOF
16297 #line $LINENO "configure"
16298 #include "confdefs.h"
16300 #ifdef HAVE_SUPPORTDEFS_H
16301 #include <SupportDefs.h>
16304 #ifdef F77_DUMMY_MAIN
16305 # ifdef __cplusplus
16308 int F77_DUMMY_MAIN() { return 1; }
16315 if (sizeof (uint64))
16321 rm -f conftest.$ac_objext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323 (eval $ac_compile) 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -s conftest.$ac_objext'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_type_uint64=yes
16335 echo "$as_me: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16337 ac_cv_type_uint64=no
16339 rm -f conftest.$ac_objext conftest.$ac_ext
16341 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16342 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16343 if test $ac_cv_type_uint64 = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_UINT64 1
16353 # We also check for sig_atomic_t, which *should* be defined per ANSI
16354 # C, but is missing on some old platforms.
16355 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16356 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16357 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 cat >conftest.$ac_ext <<_ACEOF
16361 #line $LINENO "configure"
16362 #include "confdefs.h"
16363 #include <signal.h>
16365 #ifdef F77_DUMMY_MAIN
16366 # ifdef __cplusplus
16369 int F77_DUMMY_MAIN() { return 1; }
16374 if ((sig_atomic_t *) 0)
16376 if (sizeof (sig_atomic_t))
16382 rm -f conftest.$ac_objext
16383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16384 (eval $ac_compile) 2>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } &&
16388 { ac_try='test -s conftest.$ac_objext'
16389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16390 (eval $ac_try) 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; }; then
16394 ac_cv_type_sig_atomic_t=yes
16396 echo "$as_me: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16398 ac_cv_type_sig_atomic_t=no
16400 rm -f conftest.$ac_objext conftest.$ac_ext
16402 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16403 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16404 if test $ac_cv_type_sig_atomic_t = yes; then
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_SIG_ATOMIC_T 1
16415 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16416 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16417 if test "${pgac_cv_func_posix_signals+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 cat >conftest.$ac_ext <<_ACEOF
16421 #line $LINENO "configure"
16422 #include "confdefs.h"
16423 #include <signal.h>
16425 #ifdef F77_DUMMY_MAIN
16426 # ifdef __cplusplus
16429 int F77_DUMMY_MAIN() { return 1; }
16434 struct sigaction act, oact;
16435 sigemptyset(&act.sa_mask);
16436 act.sa_flags = SA_RESTART;
16437 sigaction(0, &act, &oact);
16442 rm -f conftest.$ac_objext conftest$ac_exeext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16444 (eval $ac_link) 2>&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -s conftest$ac_exeext'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 pgac_cv_func_posix_signals=yes
16456 echo "$as_me: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16458 pgac_cv_func_posix_signals=no
16460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16462 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16463 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16464 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16466 cat >>confdefs.h <<\_ACEOF
16467 #define HAVE_POSIX_SIGNALS
16471 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16473 if test $ac_cv_func_fseeko = yes; then
16474 # Check whether --enable-largefile or --disable-largefile was given.
16475 if test "${enable_largefile+set}" = set; then
16476 enableval="$enable_largefile"
16479 if test "$enable_largefile" != no; then
16481 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16482 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16483 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 ac_cv_sys_largefile_CC=no
16487 if test "$GCC" != yes; then
16490 # IRIX 6.2 and later do not support large files by default,
16491 # so use the C compiler's -n32 option if that helps.
16492 cat >conftest.$ac_ext <<_ACEOF
16493 #line $LINENO "configure"
16494 #include "confdefs.h"
16495 #include <sys/types.h>
16496 /* Check that off_t can represent 2**63 - 1 correctly.
16497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16498 since some C++ compilers masquerading as C compilers
16499 incorrectly reject 9223372036854775807. */
16500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16502 && LARGE_OFF_T % 2147483647 == 1)
16504 #ifdef F77_DUMMY_MAIN
16505 # ifdef __cplusplus
16508 int F77_DUMMY_MAIN() { return 1; }
16518 rm -f conftest.$ac_objext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16520 (eval $ac_compile) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16532 echo "$as_me: failed program was:" >&5
16533 cat conftest.$ac_ext >&5
16535 rm -f conftest.$ac_objext
16537 rm -f conftest.$ac_objext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_cv_sys_largefile_CC=' -n32'; break
16551 echo "$as_me: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16554 rm -f conftest.$ac_objext
16558 rm -f conftest.$ac_ext
16561 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16562 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16563 if test "$ac_cv_sys_largefile_CC" != no; then
16564 CC=$CC$ac_cv_sys_largefile_CC
16567 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16568 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 ac_cv_sys_file_offset_bits=no
16574 cat >conftest.$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16576 #include "confdefs.h"
16577 #include <sys/types.h>
16578 /* Check that off_t can represent 2**63 - 1 correctly.
16579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16580 since some C++ compilers masquerading as C compilers
16581 incorrectly reject 9223372036854775807. */
16582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16584 && LARGE_OFF_T % 2147483647 == 1)
16586 #ifdef F77_DUMMY_MAIN
16587 # ifdef __cplusplus
16590 int F77_DUMMY_MAIN() { return 1; }
16600 rm -f conftest.$ac_objext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16602 (eval $ac_compile) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16614 echo "$as_me: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16617 rm -f conftest.$ac_objext conftest.$ac_ext
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 #include "confdefs.h"
16621 #define _FILE_OFFSET_BITS 64
16622 #include <sys/types.h>
16623 /* Check that off_t can represent 2**63 - 1 correctly.
16624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16625 since some C++ compilers masquerading as C compilers
16626 incorrectly reject 9223372036854775807. */
16627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16629 && LARGE_OFF_T % 2147483647 == 1)
16631 #ifdef F77_DUMMY_MAIN
16632 # ifdef __cplusplus
16635 int F77_DUMMY_MAIN() { return 1; }
16645 rm -f conftest.$ac_objext
16646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16647 (eval $ac_compile) 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_cv_sys_file_offset_bits=64; break
16659 echo "$as_me: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16662 rm -f conftest.$ac_objext conftest.$ac_ext
16666 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16667 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16668 if test "$ac_cv_sys_file_offset_bits" != no; then
16670 cat >>confdefs.h <<_ACEOF
16671 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16676 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16677 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16678 if test "${ac_cv_sys_large_files+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 ac_cv_sys_large_files=no
16683 cat >conftest.$ac_ext <<_ACEOF
16684 #line $LINENO "configure"
16685 #include "confdefs.h"
16686 #include <sys/types.h>
16687 /* Check that off_t can represent 2**63 - 1 correctly.
16688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16689 since some C++ compilers masquerading as C compilers
16690 incorrectly reject 9223372036854775807. */
16691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16693 && LARGE_OFF_T % 2147483647 == 1)
16695 #ifdef F77_DUMMY_MAIN
16696 # ifdef __cplusplus
16699 int F77_DUMMY_MAIN() { return 1; }
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16723 echo "$as_me: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16726 rm -f conftest.$ac_objext conftest.$ac_ext
16727 cat >conftest.$ac_ext <<_ACEOF
16728 #line $LINENO "configure"
16729 #include "confdefs.h"
16730 #define _LARGE_FILES 1
16731 #include <sys/types.h>
16732 /* Check that off_t can represent 2**63 - 1 correctly.
16733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16734 since some C++ compilers masquerading as C compilers
16735 incorrectly reject 9223372036854775807. */
16736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16738 && LARGE_OFF_T % 2147483647 == 1)
16740 #ifdef F77_DUMMY_MAIN
16741 # ifdef __cplusplus
16744 int F77_DUMMY_MAIN() { return 1; }
16754 rm -f conftest.$ac_objext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16756 (eval $ac_compile) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -s conftest.$ac_objext'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_cv_sys_large_files=1; break
16768 echo "$as_me: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16771 rm -f conftest.$ac_objext conftest.$ac_ext
16775 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16776 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16777 if test "$ac_cv_sys_large_files" != no; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define _LARGE_FILES $ac_cv_sys_large_files
16790 # Select semaphore implementation type.
16791 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16793 cat >>confdefs.h <<\_ACEOF
16794 #define USE_NAMED_POSIX_SEMAPHORES 1
16797 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16799 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16801 cat >>confdefs.h <<\_ACEOF
16802 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16805 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16808 cat >>confdefs.h <<\_ACEOF
16809 #define USE_SYSV_SEMAPHORES 1
16812 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16817 # Select shared-memory implementation type.
16819 cat >>confdefs.h <<\_ACEOF
16820 #define USE_SYSV_SHARED_MEMORY 1
16823 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16826 if test "$enable_nls" = yes ; then
16828 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16829 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16830 if test "${ac_cv_search_gettext+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 ac_func_search_save_LIBS=$LIBS
16834 ac_cv_search_gettext=no
16835 cat >conftest.$ac_ext <<_ACEOF
16836 #line $LINENO "configure"
16837 #include "confdefs.h"
16839 /* Override any gcc2 internal prototype to avoid an error. */
16843 /* We use char because int might match the return type of a gcc2
16844 builtin and then its argument prototype would still apply. */
16846 #ifdef F77_DUMMY_MAIN
16847 # ifdef __cplusplus
16850 int F77_DUMMY_MAIN() { return 1; }
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862 (eval $ac_link) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -s conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_search_gettext="none required"
16874 echo "$as_me: failed program was:" >&5
16875 cat conftest.$ac_ext >&5
16877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16878 if test "$ac_cv_search_gettext" = no; then
16879 for ac_lib in intl; do
16880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16881 cat >conftest.$ac_ext <<_ACEOF
16882 #line $LINENO "configure"
16883 #include "confdefs.h"
16885 /* Override any gcc2 internal prototype to avoid an error. */
16889 /* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16892 #ifdef F77_DUMMY_MAIN
16893 # ifdef __cplusplus
16896 int F77_DUMMY_MAIN() { return 1; }
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908 (eval $ac_link) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -s conftest$ac_exeext'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_cv_search_gettext="-l$ac_lib"
16921 echo "$as_me: failed program was:" >&5
16922 cat conftest.$ac_ext >&5
16924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16927 LIBS=$ac_func_search_save_LIBS
16929 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16930 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16931 if test "$ac_cv_search_gettext" != no; then
16932 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16935 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16936 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16937 { (exit 1); exit 1; }; }
16940 if test "${ac_cv_header_libintl_h+set}" = set; then
16941 echo "$as_me:$LINENO: checking for libintl.h" >&5
16942 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16943 if test "${ac_cv_header_libintl_h+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16947 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16949 # Is the header compilable?
16950 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16951 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16952 cat >conftest.$ac_ext <<_ACEOF
16953 #line $LINENO "configure"
16954 #include "confdefs.h"
16955 $ac_includes_default
16956 #include <libintl.h>
16958 rm -f conftest.$ac_objext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16960 (eval $ac_compile) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_header_compiler=yes
16972 echo "$as_me: failed program was:" >&5
16973 cat conftest.$ac_ext >&5
16974 ac_header_compiler=no
16976 rm -f conftest.$ac_objext conftest.$ac_ext
16977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16978 echo "${ECHO_T}$ac_header_compiler" >&6
16980 # Is the header present?
16981 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16982 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16984 #line $LINENO "configure"
16985 #include "confdefs.h"
16986 #include <libintl.h>
16988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16991 egrep -v '^ *\+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null; then
16996 if test -s conftest.err; then
16997 ac_cpp_err=$ac_c_preproc_warn_flag
17004 if test -z "$ac_cpp_err"; then
17005 ac_header_preproc=yes
17007 echo "$as_me: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17009 ac_header_preproc=no
17011 rm -f conftest.err conftest.$ac_ext
17012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17013 echo "${ECHO_T}$ac_header_preproc" >&6
17015 # So? What about this header?
17016 case $ac_header_compiler:$ac_header_preproc in
17018 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17019 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17021 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17023 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17024 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17026 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17028 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17030 echo "$as_me:$LINENO: checking for libintl.h" >&5
17031 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17032 if test "${ac_cv_header_libintl_h+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 ac_cv_header_libintl_h=$ac_header_preproc
17037 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17038 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17041 if test $ac_cv_header_libintl_h = yes; then
17044 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17045 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17046 { (exit 1); exit 1; }; }
17050 for ac_prog in msgfmt
17052 # Extract the first word of "$ac_prog", so it can be a program name with args.
17053 set dummy $ac_prog; ac_word=$2
17054 echo "$as_me:$LINENO: checking for $ac_word" >&5
17055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17056 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 if test -n "$MSGFMT"; then
17060 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17066 test -z "$as_dir" && as_dir=.
17067 for ac_exec_ext in '' $ac_executable_extensions; do
17068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17069 ac_cv_prog_MSGFMT="$ac_prog"
17070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17078 MSGFMT=$ac_cv_prog_MSGFMT
17079 if test -n "$MSGFMT"; then
17080 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17081 echo "${ECHO_T}$MSGFMT" >&6
17083 echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6
17087 test -n "$MSGFMT" && break
17090 if test -z "$MSGFMT"; then
17091 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17092 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17093 { (exit 1); exit 1; }; }
17095 for ac_prog in msgmerge
17097 # Extract the first word of "$ac_prog", so it can be a program name with args.
17098 set dummy $ac_prog; ac_word=$2
17099 echo "$as_me:$LINENO: checking for $ac_word" >&5
17100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17101 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 if test -n "$MSGMERGE"; then
17105 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in $PATH
17111 test -z "$as_dir" && as_dir=.
17112 for ac_exec_ext in '' $ac_executable_extensions; do
17113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17114 ac_cv_prog_MSGMERGE="$ac_prog"
17115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17123 MSGMERGE=$ac_cv_prog_MSGMERGE
17124 if test -n "$MSGMERGE"; then
17125 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17126 echo "${ECHO_T}$MSGMERGE" >&6
17128 echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17132 test -n "$MSGMERGE" && break
17135 for ac_prog in xgettext
17137 # Extract the first word of "$ac_prog", so it can be a program name with args.
17138 set dummy $ac_prog; ac_word=$2
17139 echo "$as_me:$LINENO: checking for $ac_word" >&5
17140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17141 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 if test -n "$XGETTEXT"; then
17145 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17148 for as_dir in $PATH
17151 test -z "$as_dir" && as_dir=.
17152 for ac_exec_ext in '' $ac_executable_extensions; do
17153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17154 ac_cv_prog_XGETTEXT="$ac_prog"
17155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17163 XGETTEXT=$ac_cv_prog_XGETTEXT
17164 if test -n "$XGETTEXT"; then
17165 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17166 echo "${ECHO_T}$XGETTEXT" >&6
17168 echo "$as_me:$LINENO: result: no" >&5
17169 echo "${ECHO_T}no" >&6
17172 test -n "$XGETTEXT" && break
17176 # Note: share/locale is always the default, independent of $datadir
17177 localedir='${prefix}/share/locale'
17178 if test x"$prefix" = x"NONE"; then
17179 exp_localedir="$ac_default_prefix/share/locale"
17181 exp_localedir="$prefix/share/locale"
17186 cat >>confdefs.h <<_ACEOF
17187 #define LOCALEDIR "$exp_localedir"
17193 # Check for Tcl configuration script tclConfig.sh
17194 if test "$with_tcl" = yes; then
17195 for ac_prog in tclsh tcl
17197 # Extract the first word of "$ac_prog", so it can be a program name with args.
17198 set dummy $ac_prog; ac_word=$2
17199 echo "$as_me:$LINENO: checking for $ac_word" >&5
17200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17201 if test "${ac_cv_path_TCLSH+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210 for as_dir in $PATH
17213 test -z "$as_dir" && as_dir=.
17214 for ac_exec_ext in '' $ac_executable_extensions; do
17215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17216 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17226 TCLSH=$ac_cv_path_TCLSH
17228 if test -n "$TCLSH"; then
17229 echo "$as_me:$LINENO: result: $TCLSH" >&5
17230 echo "${ECHO_T}$TCLSH" >&6
17232 echo "$as_me:$LINENO: result: no" >&5
17233 echo "${ECHO_T}no" >&6
17236 test -n "$TCLSH" && break
17239 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17240 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17241 # Let user override test
17242 if test -z "$TCL_CONFIG_SH"; then
17243 pgac_test_dirs="$with_tclconfig"
17245 set X $pgac_test_dirs; shift
17246 if test $# -eq 0; then
17247 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17248 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17249 { (exit 1); exit 1; }; }
17250 set X `echo 'puts $auto_path' | $TCLSH`; shift
17254 if test -r "$pgac_dir/tclConfig.sh"; then
17255 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17261 if test -z "$TCL_CONFIG_SH"; then
17262 echo "$as_me:$LINENO: result: no" >&5
17263 echo "${ECHO_T}no" >&6
17264 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17265 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17266 { (exit 1); exit 1; }; }
17268 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17269 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17275 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17276 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17277 eval TCL_LIBS=\"$TCL_LIBS\"
17278 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17279 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17283 # Check for Tk configuration script tkConfig.sh
17284 if test "$with_tk" = yes; then
17285 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17286 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17287 # Let user override test
17288 if test -z "$TK_CONFIG_SH"; then
17289 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17291 set X $pgac_test_dirs; shift
17292 if test $# -eq 0; then
17293 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17294 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17295 { (exit 1); exit 1; }; }
17296 set X `echo 'puts $auto_path' | $TCLSH`; shift
17300 if test -r "$pgac_dir/tkConfig.sh"; then
17301 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17307 if test -z "$TK_CONFIG_SH"; then
17308 echo "$as_me:$LINENO: result: no" >&5
17309 echo "${ECHO_T}no" >&6
17310 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17311 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17312 { (exit 1); exit 1; }; }
17314 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17315 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17321 eval TK_LIBS=\"$TK_LIBS\"
17322 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17323 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17329 # Check for DocBook and tools
17331 for ac_prog in onsgmls nsgmls
17333 # Extract the first word of "$ac_prog", so it can be a program name with args.
17334 set dummy $ac_prog; ac_word=$2
17335 echo "$as_me:$LINENO: checking for $ac_word" >&5
17336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17337 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 if test -n "$NSGMLS"; then
17341 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17344 for as_dir in $PATH
17347 test -z "$as_dir" && as_dir=.
17348 for ac_exec_ext in '' $ac_executable_extensions; do
17349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17350 ac_cv_prog_NSGMLS="$ac_prog"
17351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17359 NSGMLS=$ac_cv_prog_NSGMLS
17360 if test -n "$NSGMLS"; then
17361 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17362 echo "${ECHO_T}$NSGMLS" >&6
17364 echo "$as_me:$LINENO: result: no" >&5
17365 echo "${ECHO_T}no" >&6
17368 test -n "$NSGMLS" && break
17371 for ac_prog in openjade jade
17373 # Extract the first word of "$ac_prog", so it can be a program name with args.
17374 set dummy $ac_prog; ac_word=$2
17375 echo "$as_me:$LINENO: checking for $ac_word" >&5
17376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17377 if test "${ac_cv_prog_JADE+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 if test -n "$JADE"; then
17381 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17384 for as_dir in $PATH
17387 test -z "$as_dir" && as_dir=.
17388 for ac_exec_ext in '' $ac_executable_extensions; do
17389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17390 ac_cv_prog_JADE="$ac_prog"
17391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17399 JADE=$ac_cv_prog_JADE
17400 if test -n "$JADE"; then
17401 echo "$as_me:$LINENO: result: $JADE" >&5
17402 echo "${ECHO_T}$JADE" >&6
17404 echo "$as_me:$LINENO: result: no" >&5
17405 echo "${ECHO_T}no" >&6
17408 test -n "$JADE" && break
17412 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17413 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17414 if test "${pgac_cv_check_docbook+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 cat >conftest.sgml <<EOF
17418 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17420 <title>test</title>
17422 <title>random</title>
17424 <title>testsect</title>
17431 pgac_cv_check_docbook=no
17433 if test -n "$NSGMLS"; then
17434 $NSGMLS -s conftest.sgml 1>&5 2>&1
17435 if test $? -eq 0; then
17436 pgac_cv_check_docbook=yes
17439 rm -f conftest.sgml
17441 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17442 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17444 have_docbook=$pgac_cv_check_docbook
17447 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17448 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17449 if test "${pgac_cv_path_stylesheets+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 if test -n "$DOCBOOKSTYLE"; then
17453 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17455 for pgac_prefix in /usr /usr/local /opt; do
17456 for pgac_infix in share lib; do
17457 for pgac_postfix in \
17458 sgml/stylesheets/nwalsh-modular \
17459 sgml/stylesheets/docbook \
17460 sgml/docbook/dsssl/modular \
17461 sgml/docbook/stylesheet/dsssl/modular \
17462 sgml/docbook/dsssl-stylesheets
17464 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17465 if test -r "$pgac_candidate/html/docbook.dsl" \
17466 && test -r "$pgac_candidate/print/docbook.dsl"
17468 pgac_cv_path_stylesheets=$pgac_candidate
17477 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17479 if test -n "$DOCBOOKSTYLE"; then
17480 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17481 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17483 echo "$as_me:$LINENO: result: no" >&5
17484 echo "${ECHO_T}no" >&6
17486 if test -n "$DOCBOOKSTYLE"; then
17487 for ac_prog in collateindex.pl
17489 # Extract the first word of "$ac_prog", so it can be a program name with args.
17490 set dummy $ac_prog; ac_word=$2
17491 echo "$as_me:$LINENO: checking for $ac_word" >&5
17492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17493 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 case $COLLATEINDEX in
17498 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17502 for as_dir in $DOCBOOKSTYLE/bin $PATH
17505 test -z "$as_dir" && as_dir=.
17506 for ac_exec_ext in '' $ac_executable_extensions; do
17507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17508 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17518 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17520 if test -n "$COLLATEINDEX"; then
17521 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17522 echo "${ECHO_T}$COLLATEINDEX" >&6
17524 echo "$as_me:$LINENO: result: no" >&5
17525 echo "${ECHO_T}no" >&6
17528 test -n "$COLLATEINDEX" && break
17532 for ac_prog in collateindex.pl
17534 # Extract the first word of "$ac_prog", so it can be a program name with args.
17535 set dummy $ac_prog; ac_word=$2
17536 echo "$as_me:$LINENO: checking for $ac_word" >&5
17537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17538 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 case $COLLATEINDEX in
17543 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17547 for as_dir in $PATH
17550 test -z "$as_dir" && as_dir=.
17551 for ac_exec_ext in '' $ac_executable_extensions; do
17552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17553 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17563 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17565 if test -n "$COLLATEINDEX"; then
17566 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17567 echo "${ECHO_T}$COLLATEINDEX" >&6
17569 echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6
17573 test -n "$COLLATEINDEX" && break
17577 for ac_prog in sgmlspl
17579 # Extract the first word of "$ac_prog", so it can be a program name with args.
17580 set dummy $ac_prog; ac_word=$2
17581 echo "$as_me:$LINENO: checking for $ac_word" >&5
17582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17583 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 if test -n "$SGMLSPL"; then
17587 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17590 for as_dir in $PATH
17593 test -z "$as_dir" && as_dir=.
17594 for ac_exec_ext in '' $ac_executable_extensions; do
17595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17596 ac_cv_prog_SGMLSPL="$ac_prog"
17597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17605 SGMLSPL=$ac_cv_prog_SGMLSPL
17606 if test -n "$SGMLSPL"; then
17607 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17608 echo "${ECHO_T}$SGMLSPL" >&6
17610 echo "$as_me:$LINENO: result: no" >&5
17611 echo "${ECHO_T}no" >&6
17614 test -n "$SGMLSPL" && break
17619 # prepare build tree if outside source tree
17620 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17621 # Note 2: /bin/pwd might be better than shell's built-in at getting
17622 # a symlink-free name.
17623 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17627 if test "$no_create" != yes; then
17628 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17629 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17630 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17631 || { { echo "$as_me:$LINENO: error: failed" >&5
17632 echo "$as_me: error: failed" >&2;}
17633 { (exit 1); exit 1; }; }
17634 echo "$as_me:$LINENO: result: done" >&5
17635 echo "${ECHO_T}done" >&6
17641 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17644 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}"
17647 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17650 cat >confcache <<\_ACEOF
17651 # This file is a shell script that caches the results of configure
17652 # tests run on this system so they can be shared between configure
17653 # scripts and configure runs, see configure's option --config-cache.
17654 # It is not useful on other systems. If it contains results you don't
17655 # want to keep, you may remove or edit it.
17657 # config.status only pays attention to the cache file if you give it
17658 # the --recheck option to rerun configure.
17660 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17661 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17662 # following values.
17666 # The following way of writing the cache mishandles newlines in values,
17667 # but we know of no workaround that is simple, portable, and efficient.
17668 # So, don't put newlines in cache variables' values.
17669 # Ultrix sh set writes to stderr and can't be redirected directly,
17670 # and sets the high bit in the cache file unless we assign to the vars.
17673 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17675 # `set' does not quote correctly, so add quotes (double-quote
17676 # substitution turns \\\\ into \\, and sed turns \\ into \).
17679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17682 # `set' quotes correctly as required by POSIX, so do not add quotes.
17684 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17691 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17693 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17695 if cmp -s $cache_file confcache; then :; else
17696 if test -w $cache_file; then
17697 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17698 cat confcache >$cache_file
17700 echo "not updating unwritable cache $cache_file"
17705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17706 # Let make expand exec_prefix.
17707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17709 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17710 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17711 # trailing colons and then remove the whole line if VPATH becomes empty
17712 # (actually we leave an empty line to preserve line numbers).
17713 if test "x$srcdir" = x.; then
17714 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17715 s/:*\$(srcdir):*/:/;
17716 s/:*\${srcdir}:*/:/;
17718 s/^\([^=]*=[ ]*\):*/\1/;
17724 DEFS=-DHAVE_CONFIG_H
17727 : ${CONFIG_STATUS=./config.status}
17728 ac_clean_files_save=$ac_clean_files
17729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17730 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17731 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17732 cat >$CONFIG_STATUS <<_ACEOF
17734 # Generated by $as_me.
17735 # Run this file to recreate the current configuration.
17736 # Compiler output produced by configure, useful for debugging
17737 # configure, is in config.log if it exists.
17740 SHELL=\${CONFIG_SHELL-$SHELL}
17743 cat >>$CONFIG_STATUS <<\_ACEOF
17745 ## --------------------- ##
17746 ## M4sh Initialization. ##
17747 ## --------------------- ##
17749 # Be Bourne compatible
17750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17753 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17758 # Support unset when possible.
17759 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17765 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17766 { $as_unset LANG || test "${LANG+set}" != set; } ||
17767 { LANG=C; export LANG; }
17768 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17769 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17770 { LC_ALL=C; export LC_ALL; }
17771 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17772 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17773 { LC_TIME=C; export LC_TIME; }
17774 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17775 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17776 { LC_CTYPE=C; export LC_CTYPE; }
17777 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17778 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17779 { LANGUAGE=C; export LANGUAGE; }
17780 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17781 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17782 { LC_COLLATE=C; export LC_COLLATE; }
17783 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17784 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17785 { LC_NUMERIC=C; export LC_NUMERIC; }
17786 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17787 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17788 { LC_MESSAGES=C; export LC_MESSAGES; }
17791 # Name of the executable.
17792 as_me=`(basename "$0") 2>/dev/null ||
17793 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17794 X"$0" : 'X\(//\)$' \| \
17795 X"$0" : 'X\(/\)$' \| \
17796 . : '\(.\)' 2>/dev/null ||
17798 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17799 /^X\/\(\/\/\)$/{ s//\1/; q; }
17800 /^X\/\(\/\).*/{ s//\1/; q; }
17803 # PATH needs CR, and LINENO needs CR and PATH.
17804 # Avoid depending upon Character Ranges.
17805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17808 as_cr_digits='0123456789'
17809 as_cr_alnum=$as_cr_Letters$as_cr_digits
17811 # The user is always right.
17812 if test "${PATH_SEPARATOR+set}" != set; then
17813 echo "#! /bin/sh" >conftest.sh
17814 echo "exit 0" >>conftest.sh
17815 chmod +x conftest.sh
17816 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17825 as_lineno_1=$LINENO
17826 as_lineno_2=$LINENO
17827 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17828 test "x$as_lineno_1" != "x$as_lineno_2" &&
17829 test "x$as_lineno_3" = "x$as_lineno_2" || {
17830 # Find who we are. Look in the path if we contain no path at all
17833 *[\\/]* ) as_myself=$0 ;;
17834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17835 for as_dir in $PATH
17838 test -z "$as_dir" && as_dir=.
17839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17844 # We did not find ourselves, most probably we were run as `sh COMMAND'
17845 # in which case we are not to be found in the path.
17846 if test "x$as_myself" = x; then
17849 if test ! -f "$as_myself"; then
17850 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17851 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17852 { (exit 1); exit 1; }; }
17854 case $CONFIG_SHELL in
17856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17857 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17860 test -z "$as_dir" && as_dir=.
17861 for as_base in sh bash ksh sh5; do
17864 if ("$as_dir/$as_base" -c '
17865 as_lineno_1=$LINENO
17866 as_lineno_2=$LINENO
17867 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17868 test "x$as_lineno_1" != "x$as_lineno_2" &&
17869 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17870 CONFIG_SHELL=$as_dir/$as_base
17871 export CONFIG_SHELL
17872 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17880 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17881 # uniformly replaced by the line number. The first 'sed' inserts a
17882 # line-number line before each line; the second 'sed' does the real
17883 # work. The second script uses 'N' to pair each line-number line
17884 # with the numbered line, and appends trailing '-' during
17885 # substitution so that $LINENO is not a special case at line end.
17886 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17887 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17888 sed '=' <$as_myself |
17893 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17896 s,^['$as_cr_digits']*\n,,
17897 ' >$as_me.lineno &&
17898 chmod +x $as_me.lineno ||
17899 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17900 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17901 { (exit 1); exit 1; }; }
17903 # Don't try to exec as it changes $[0], causing all sort of problems
17904 # (the dirname of $[0] is not the place where we might find the
17905 # original and so on. Autoconf is especially sensible to this).
17907 # Exit status is that of the last command.
17912 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17913 *c*,-n*) ECHO_N= ECHO_C='
17915 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17916 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17919 if expr a : '\(a\)' >/dev/null 2>&1; then
17925 rm -f conf$$ conf$$.exe conf$$.file
17927 if ln -s conf$$.file conf$$ 2>/dev/null; then
17928 # We could just check for DJGPP; but this test a) works b) is more generic
17929 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17930 if test -f conf$$.exe; then
17931 # Don't use ln at all; we don't have any links
17936 elif ln conf$$.file conf$$ 2>/dev/null; then
17941 rm -f conf$$ conf$$.exe conf$$.file
17943 as_executable_p="test -f"
17945 # Sed expression to map a string onto a valid CPP name.
17946 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17948 # Sed expression to map a string onto a valid variable name.
17949 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17953 # We need space, tab and new line, in precisely that order.
17959 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17963 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17964 # report actual input values of CONFIG_FILES etc. instead of their
17965 # values after options handling. Logging --version etc. is OK.
17969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17970 ## Running $as_me. ##
17975 This file was extended by PostgreSQL $as_me 7.5devel, which was
17976 generated by GNU Autoconf 2.53. Invocation command line was
17978 CONFIG_FILES = $CONFIG_FILES
17979 CONFIG_HEADERS = $CONFIG_HEADERS
17980 CONFIG_LINKS = $CONFIG_LINKS
17981 CONFIG_COMMANDS = $CONFIG_COMMANDS
17985 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17989 # Files that config.status was made for.
17990 if test -n "$ac_config_files"; then
17991 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17994 if test -n "$ac_config_headers"; then
17995 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17998 if test -n "$ac_config_links"; then
17999 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18002 if test -n "$ac_config_commands"; then
18003 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18006 cat >>$CONFIG_STATUS <<\_ACEOF
18009 \`$as_me' instantiates files from templates according to the
18010 current configuration.
18012 Usage: $0 [OPTIONS] [FILE]...
18014 -h, --help print this help, then exit
18015 -V, --version print version number, then exit
18016 -d, --debug don't remove temporary files
18017 --recheck update $as_me by reconfiguring in the same conditions
18018 --file=FILE[:TEMPLATE]
18019 instantiate the configuration file FILE
18020 --header=FILE[:TEMPLATE]
18021 instantiate the configuration header FILE
18023 Configuration files:
18026 Configuration headers:
18029 Configuration links:
18032 Report bugs to <bug-autoconf@gnu.org>."
18035 cat >>$CONFIG_STATUS <<_ACEOF
18037 PostgreSQL config.status 7.5devel
18038 configured by $0, generated by GNU Autoconf 2.53,
18039 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18041 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18042 Free Software Foundation, Inc.
18043 This config.status script is free software; the Free Software Foundation
18044 gives unlimited permission to copy, distribute and modify it."
18048 cat >>$CONFIG_STATUS <<\_ACEOF
18049 # If no file are specified by the user, then we need to provide default
18050 # value. By we need to know if files were specified by the user.
18056 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18057 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18059 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18063 *) # This is not an option, so the user has probably given explicit
18065 ac_need_defaults=false;;
18069 # Handling of the options.
18071 cat >>$CONFIG_STATUS <<_ACEOF
18072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18073 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18074 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18076 cat >>$CONFIG_STATUS <<\_ACEOF
18077 --version | --vers* | -V )
18078 echo "$ac_cs_version"; exit 0 ;;
18080 # Conflict between --help and --header
18081 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18082 Try \`$0 --help' for more information." >&5
18083 echo "$as_me: error: ambiguous option: $1
18084 Try \`$0 --help' for more information." >&2;}
18085 { (exit 1); exit 1; }; };;
18086 --help | --hel | -h )
18087 echo "$ac_cs_usage"; exit 0 ;;
18088 --debug | --d* | -d )
18090 --file | --fil | --fi | --f )
18092 CONFIG_FILES="$CONFIG_FILES $1"
18093 ac_need_defaults=false;;
18094 --header | --heade | --head | --hea )
18096 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18097 ac_need_defaults=false;;
18099 # This is an error.
18100 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18101 Try \`$0 --help' for more information." >&5
18102 echo "$as_me: error: unrecognized option: $1
18103 Try \`$0 --help' for more information." >&2;}
18104 { (exit 1); exit 1; }; } ;;
18106 *) ac_config_targets="$ac_config_targets $1" ;;
18118 cat >>$CONFIG_STATUS <<\_ACEOF
18119 for ac_config_target in $ac_config_targets
18121 case "$ac_config_target" in
18122 # Handling of arguments.
18123 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18124 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18125 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18126 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18127 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18128 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18129 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18130 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18131 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18132 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18133 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18134 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18135 { (exit 1); exit 1; }; };;
18139 # If the user did not use the arguments to specify the items to instantiate,
18140 # then the envvar interface is used. Set only those that are not.
18141 # We use the long form for the default assignment because of an extremely
18142 # bizarre bug on SunOS 4.1.3.
18143 if $ac_need_defaults; then
18144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18146 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18149 # Create a temporary directory, and hook for its removal unless debugging.
18152 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18153 trap '{ (exit 1); exit 1; }' 1 2 13 15
18156 # Create a (secure) tmp directory for tmp files.
18159 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18160 test -n "$tmp" && test -d "$tmp"
18163 tmp=$TMPDIR/cs$$-$RANDOM
18164 (umask 077 && mkdir $tmp)
18167 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18168 { (exit 1); exit 1; }
18173 cat >>$CONFIG_STATUS <<_ACEOF
18176 # CONFIG_FILES section.
18179 # No need to generate the scripts if there are no CONFIG_FILES.
18180 # This happens for instance when ./config.status config.h
18181 if test -n "\$CONFIG_FILES"; then
18182 # Protect against being on the right side of a sed subst in config.status.
18183 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18184 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18185 s,@SHELL@,$SHELL,;t t
18186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18192 s,@exec_prefix@,$exec_prefix,;t t
18193 s,@prefix@,$prefix,;t t
18194 s,@program_transform_name@,$program_transform_name,;t t
18195 s,@bindir@,$bindir,;t t
18196 s,@sbindir@,$sbindir,;t t
18197 s,@libexecdir@,$libexecdir,;t t
18198 s,@datadir@,$datadir,;t t
18199 s,@sysconfdir@,$sysconfdir,;t t
18200 s,@sharedstatedir@,$sharedstatedir,;t t
18201 s,@localstatedir@,$localstatedir,;t t
18202 s,@libdir@,$libdir,;t t
18203 s,@includedir@,$includedir,;t t
18204 s,@oldincludedir@,$oldincludedir,;t t
18205 s,@infodir@,$infodir,;t t
18206 s,@mandir@,$mandir,;t t
18207 s,@build_alias@,$build_alias,;t t
18208 s,@host_alias@,$host_alias,;t t
18209 s,@target_alias@,$target_alias,;t t
18210 s,@DEFS@,$DEFS,;t t
18211 s,@ECHO_C@,$ECHO_C,;t t
18212 s,@ECHO_N@,$ECHO_N,;t t
18213 s,@ECHO_T@,$ECHO_T,;t t
18214 s,@LIBS@,$LIBS,;t t
18215 s,@configure_args@,$configure_args,;t t
18216 s,@build@,$build,;t t
18217 s,@build_cpu@,$build_cpu,;t t
18218 s,@build_vendor@,$build_vendor,;t t
18219 s,@build_os@,$build_os,;t t
18220 s,@host@,$host,;t t
18221 s,@host_cpu@,$host_cpu,;t t
18222 s,@host_vendor@,$host_vendor,;t t
18223 s,@host_os@,$host_os,;t t
18224 s,@PORTNAME@,$PORTNAME,;t t
18226 s,@docdir@,$docdir,;t t
18227 s,@enable_nls@,$enable_nls,;t t
18228 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18229 s,@default_port@,$default_port,;t t
18230 s,@enable_shared@,$enable_shared,;t t
18231 s,@enable_rpath@,$enable_rpath,;t t
18232 s,@enable_debug@,$enable_debug,;t t
18234 s,@CFLAGS@,$CFLAGS,;t t
18235 s,@LDFLAGS@,$LDFLAGS,;t t
18236 s,@CPPFLAGS@,$CPPFLAGS,;t t
18237 s,@ac_ct_CC@,$ac_ct_CC,;t t
18238 s,@EXEEXT@,$EXEEXT,;t t
18239 s,@OBJEXT@,$OBJEXT,;t t
18242 s,@autodepend@,$autodepend,;t t
18243 s,@INCLUDES@,$INCLUDES,;t t
18244 s,@enable_thread_safety@,$enable_thread_safety,;t t
18245 s,@with_tcl@,$with_tcl,;t t
18246 s,@with_tk@,$with_tk,;t t
18247 s,@with_perl@,$with_perl,;t t
18248 s,@with_python@,$with_python,;t t
18250 s,@with_java@,$with_java,;t t
18251 s,@with_krb4@,$with_krb4,;t t
18252 s,@with_krb5@,$with_krb5,;t t
18253 s,@krb_srvtab@,$krb_srvtab,;t t
18254 s,@with_pam@,$with_pam,;t t
18255 s,@with_rendezvous@,$with_rendezvous,;t t
18256 s,@with_openssl@,$with_openssl,;t t
18257 s,@ELF_SYS@,$ELF_SYS,;t t
18259 s,@FLEX@,$FLEX,;t t
18260 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18261 s,@LN_S@,$LN_S,;t t
18263 s,@with_gnu_ld@,$with_gnu_ld,;t t
18264 s,@ld_R_works@,$ld_R_works,;t t
18265 s,@RANLIB@,$RANLIB,;t t
18266 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18267 s,@LORDER@,$LORDER,;t t
18269 s,@STRIP@,$STRIP,;t t
18270 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18271 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18272 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18273 s,@YACC@,$YACC,;t t
18274 s,@YFLAGS@,$YFLAGS,;t t
18275 s,@PERL@,$PERL,;t t
18276 s,@perl_archlibexp@,$perl_archlibexp,;t t
18277 s,@perl_privlibexp@,$perl_privlibexp,;t t
18278 s,@perl_useshrplib@,$perl_useshrplib,;t t
18279 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18280 s,@PYTHON@,$PYTHON,;t t
18281 s,@python_prefix@,$python_prefix,;t t
18282 s,@python_execprefix@,$python_execprefix,;t t
18283 s,@python_configdir@,$python_configdir,;t t
18284 s,@python_includespec@,$python_includespec,;t t
18285 s,@python_libspec@,$python_libspec,;t t
18286 s,@LIBOBJS@,$LIBOBJS,;t t
18287 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18288 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18289 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18290 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18291 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18292 s,@MSGFMT@,$MSGFMT,;t t
18293 s,@MSGMERGE@,$MSGMERGE,;t t
18294 s,@XGETTEXT@,$XGETTEXT,;t t
18295 s,@localedir@,$localedir,;t t
18296 s,@TCLSH@,$TCLSH,;t t
18297 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18298 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18299 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18300 s,@TCL_LIBS@,$TCL_LIBS,;t t
18301 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18302 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18303 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18304 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18305 s,@TK_LIBS@,$TK_LIBS,;t t
18306 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18307 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18308 s,@NSGMLS@,$NSGMLS,;t t
18309 s,@JADE@,$JADE,;t t
18310 s,@have_docbook@,$have_docbook,;t t
18311 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18312 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18313 s,@SGMLSPL@,$SGMLSPL,;t t
18314 s,@vpath_build@,$vpath_build,;t t
18319 cat >>$CONFIG_STATUS <<\_ACEOF
18320 # Split the substitutions into bite-sized pieces for seds with
18321 # small command number limits, like on Digital OSF/1 and HP-UX.
18322 ac_max_sed_lines=48
18323 ac_sed_frag=1 # Number of current file.
18324 ac_beg=1 # First line for current file.
18325 ac_end=$ac_max_sed_lines # Line after last line for current file.
18328 while $ac_more_lines; do
18329 if test $ac_beg -gt 1; then
18330 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18332 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18334 if test ! -s $tmp/subs.frag; then
18335 ac_more_lines=false
18337 # The purpose of the label and of the branching condition is to
18338 # speed up the sed processing (if there are no `@' at all, there
18339 # is no need to browse any of the substitutions).
18340 # These are the two extra sed commands mentioned above.
18342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18343 if test -z "$ac_sed_cmds"; then
18344 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18346 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18348 ac_sed_frag=`expr $ac_sed_frag + 1`
18350 ac_end=`expr $ac_end + $ac_max_sed_lines`
18353 if test -z "$ac_sed_cmds"; then
18356 fi # test -n "$CONFIG_FILES"
18359 cat >>$CONFIG_STATUS <<\_ACEOF
18360 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18361 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18363 - | *:- | *:-:* ) # input from stdin
18365 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18366 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18367 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18369 * ) ac_file_in=$ac_file.in ;;
18372 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18373 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18375 X"$ac_file" : 'X\(//\)[^/]' \| \
18376 X"$ac_file" : 'X\(//\)$' \| \
18377 X"$ac_file" : 'X\(/\)' \| \
18378 . : '\(.\)' 2>/dev/null ||
18380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18382 /^X\(\/\/\)$/{ s//\1/; q; }
18383 /^X\(\/\).*/{ s//\1/; q; }
18385 { case "$ac_dir" in
18386 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18390 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18391 case $as_mkdir_dir in
18392 # Skip DOS drivespec
18393 ?:) as_incr_dir=$as_mkdir_dir ;;
18395 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18396 test -d "$as_incr_dir" ||
18397 mkdir "$as_incr_dir" ||
18398 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18399 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18400 { (exit 1); exit 1; }; }
18407 if test "$ac_dir" != .; then
18408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18409 # A "../" for each directory in $ac_dir_suffix.
18410 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18412 ac_dir_suffix= ac_top_builddir=
18416 .) # No --srcdir option. We are building in place.
18418 if test -z "$ac_top_builddir"; then
18421 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18423 [\\/]* | ?:[\\/]* ) # Absolute path.
18424 ac_srcdir=$srcdir$ac_dir_suffix;
18425 ac_top_srcdir=$srcdir ;;
18426 *) # Relative path.
18427 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18428 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18430 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18432 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18433 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18434 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18435 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18439 if test x"$ac_file" != x-; then
18440 { echo "$as_me:$LINENO: creating $ac_file" >&5
18441 echo "$as_me: creating $ac_file" >&6;}
18444 # Let's still pretend it is `configure' which instantiates (i.e., don't
18445 # use $as_me), people would be surprised to read:
18446 # /* config.h. Generated by config.status. */
18447 if test x"$ac_file" = x-; then
18450 configure_input="$ac_file. "
18452 configure_input=$configure_input"Generated from `echo $ac_file_in |
18453 sed 's,.*/,,'` by configure."
18455 # First look for the input files in the build tree, otherwise in the
18457 ac_file_inputs=`IFS=:
18458 for f in $ac_file_in; do
18460 -) echo $tmp/stdin ;;
18462 # Absolute (can't be DOS-style, as IFS=:)
18463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18464 echo "$as_me: error: cannot find input file: $f" >&2;}
18465 { (exit 1); exit 1; }; }
18468 if test -f "$f"; then
18471 elif test -f "$srcdir/$f"; then
18476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18477 echo "$as_me: error: cannot find input file: $f" >&2;}
18478 { (exit 1); exit 1; }; }
18481 done` || { (exit 1); exit 1; }
18483 cat >>$CONFIG_STATUS <<_ACEOF
18487 cat >>$CONFIG_STATUS <<\_ACEOF
18489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18490 s,@configure_input@,$configure_input,;t t
18491 s,@srcdir@,$ac_srcdir,;t t
18492 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18493 s,@top_srcdir@,$ac_top_srcdir,;t t
18494 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18495 s,@builddir@,$ac_builddir,;t t
18496 s,@abs_builddir@,$ac_abs_builddir,;t t
18497 s,@top_builddir@,$ac_top_builddir,;t t
18498 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18499 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18501 if test x"$ac_file" != x-; then
18502 mv $tmp/out $ac_file
18510 cat >>$CONFIG_STATUS <<\_ACEOF
18513 # CONFIG_HEADER section.
18516 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18517 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18519 # ac_d sets the value in "#define NAME VALUE" lines.
18520 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18521 ac_dB='[ ].*$,\1#\2'
18524 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18525 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18526 ac_uB='$,\1#\2define\3'
18530 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18533 - | *:- | *:-:* ) # input from stdin
18535 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18537 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18539 * ) ac_file_in=$ac_file.in ;;
18542 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18543 echo "$as_me: creating $ac_file" >&6;}
18545 # First look for the input files in the build tree, otherwise in the
18547 ac_file_inputs=`IFS=:
18548 for f in $ac_file_in; do
18550 -) echo $tmp/stdin ;;
18552 # Absolute (can't be DOS-style, as IFS=:)
18553 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18554 echo "$as_me: error: cannot find input file: $f" >&2;}
18555 { (exit 1); exit 1; }; }
18558 if test -f "$f"; then
18561 elif test -f "$srcdir/$f"; then
18566 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18567 echo "$as_me: error: cannot find input file: $f" >&2;}
18568 { (exit 1); exit 1; }; }
18571 done` || { (exit 1); exit 1; }
18572 # Remove the trailing spaces.
18573 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18577 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18578 # `conftest.undefs', that substitutes the proper values into
18579 # config.h.in to produce config.h. The first handles `#define'
18580 # templates, and the second `#undef' templates.
18581 # And first: Protect against being on the right side of a sed subst in
18582 # config.status. Protect against being in an unquoted here document
18583 # in config.status.
18584 rm -f conftest.defines conftest.undefs
18585 # Using a here document instead of a string reduces the quoting nightmare.
18586 # Putting comments in sed scripts is not portable.
18588 # `end' is used to avoid that the second main sed command (meant for
18589 # 0-ary CPP macros) applies to n-ary macro definitions.
18590 # See the Autoconf documentation for `clear'.
18591 cat >confdef2sed.sed <<\_ACEOF
18596 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18598 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18601 # If some macros were called several times there might be several times
18602 # the same #defines, which is useless. Nevertheless, we may not want to
18603 # sort them, since we want the *last* AC-DEFINE to be honored.
18604 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18605 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18606 rm -f confdef2sed.sed
18608 # This sed command replaces #undef with comments. This is necessary, for
18609 # example, in the case of _POSIX_SOURCE, which is predefined and required
18610 # on some systems where configure will not decide to define it.
18611 cat >>conftest.undefs <<\_ACEOF
18612 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18615 # Break up conftest.defines because some shells have a limit on the size
18616 # of here documents, and old seds have small limits too (100 cmds).
18617 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18618 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18619 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18620 echo ' :' >>$CONFIG_STATUS
18621 rm -f conftest.tail
18622 while grep . conftest.defines >/dev/null
18624 # Write a limited-size here document to $tmp/defines.sed.
18625 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18626 # Speed up: don't consider the non `#define' lines.
18627 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18628 # Work around the forget-to-reset-the-flag bug.
18629 echo 't clr' >>$CONFIG_STATUS
18630 echo ': clr' >>$CONFIG_STATUS
18631 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18633 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18635 mv $tmp/out $tmp/in
18637 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18638 rm -f conftest.defines
18639 mv conftest.tail conftest.defines
18641 rm -f conftest.defines
18642 echo ' fi # egrep' >>$CONFIG_STATUS
18643 echo >>$CONFIG_STATUS
18645 # Break up conftest.undefs because some shells have a limit on the size
18646 # of here documents, and old seds have small limits too (100 cmds).
18647 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18648 rm -f conftest.tail
18649 while grep . conftest.undefs >/dev/null
18651 # Write a limited-size here document to $tmp/undefs.sed.
18652 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18653 # Speed up: don't consider the non `#undef'
18654 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18655 # Work around the forget-to-reset-the-flag bug.
18656 echo 't clr' >>$CONFIG_STATUS
18657 echo ': clr' >>$CONFIG_STATUS
18658 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18660 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18662 mv $tmp/out $tmp/in
18664 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18665 rm -f conftest.undefs
18666 mv conftest.tail conftest.undefs
18668 rm -f conftest.undefs
18670 cat >>$CONFIG_STATUS <<\_ACEOF
18671 # Let's still pretend it is `configure' which instantiates (i.e., don't
18672 # use $as_me), people would be surprised to read:
18673 # /* config.h. Generated by config.status. */
18674 if test x"$ac_file" = x-; then
18675 echo "/* Generated by configure. */" >$tmp/config.h
18677 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18679 cat $tmp/in >>$tmp/config.h
18681 if test x"$ac_file" != x-; then
18682 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18683 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18684 echo "$as_me: $ac_file is unchanged" >&6;}
18686 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18688 X"$ac_file" : 'X\(//\)[^/]' \| \
18689 X"$ac_file" : 'X\(//\)$' \| \
18690 X"$ac_file" : 'X\(/\)' \| \
18691 . : '\(.\)' 2>/dev/null ||
18693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18695 /^X\(\/\/\)$/{ s//\1/; q; }
18696 /^X\(\/\).*/{ s//\1/; q; }
18698 { case "$ac_dir" in
18699 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18703 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18704 case $as_mkdir_dir in
18705 # Skip DOS drivespec
18706 ?:) as_incr_dir=$as_mkdir_dir ;;
18708 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18709 test -d "$as_incr_dir" ||
18710 mkdir "$as_incr_dir" ||
18711 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18712 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18713 { (exit 1); exit 1; }; }
18719 mv $tmp/config.h $ac_file
18723 rm -f $tmp/config.h
18725 # Run the commands associated with the file.
18727 src/include/pg_config.h )
18728 # Update timestamp for pg_config.h (see Makefile.global)
18729 echo >src/include/stamp-h
18734 cat >>$CONFIG_STATUS <<\_ACEOF
18737 # CONFIG_LINKS section.
18740 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18741 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18742 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18744 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18745 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18747 if test ! -r $srcdir/$ac_source; then
18748 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18749 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18750 { (exit 1); exit 1; }; }
18754 # Make relative symlinks.
18755 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18756 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18757 X"$ac_dest" : 'X\(//\)[^/]' \| \
18758 X"$ac_dest" : 'X\(//\)$' \| \
18759 X"$ac_dest" : 'X\(/\)' \| \
18760 . : '\(.\)' 2>/dev/null ||
18762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18764 /^X\(\/\/\)$/{ s//\1/; q; }
18765 /^X\(\/\).*/{ s//\1/; q; }
18767 { case "$ac_dest_dir" in
18768 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18771 as_dummy="$ac_dest_dir"
18772 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18773 case $as_mkdir_dir in
18774 # Skip DOS drivespec
18775 ?:) as_incr_dir=$as_mkdir_dir ;;
18777 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18778 test -d "$as_incr_dir" ||
18779 mkdir "$as_incr_dir" ||
18780 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18781 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18782 { (exit 1); exit 1; }; }
18789 if test "$ac_dest_dir" != .; then
18790 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18791 # A "../" for each directory in $ac_dir_suffix.
18792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18794 ac_dir_suffix= ac_top_builddir=
18798 .) # No --srcdir option. We are building in place.
18800 if test -z "$ac_top_builddir"; then
18803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18805 [\\/]* | ?:[\\/]* ) # Absolute path.
18806 ac_srcdir=$srcdir$ac_dir_suffix;
18807 ac_top_srcdir=$srcdir ;;
18808 *) # Relative path.
18809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18812 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18814 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18815 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18816 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18817 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18821 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18822 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18825 # Make a symlink if possible; otherwise try a hard link.
18826 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18827 ln $srcdir/$ac_source $ac_dest ||
18828 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18829 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18830 { (exit 1); exit 1; }; }
18834 cat >>$CONFIG_STATUS <<\_ACEOF
18836 { (exit 0); exit 0; }
18838 chmod +x $CONFIG_STATUS
18839 ac_clean_files=$ac_clean_files_save
18842 # configure is writing to config.log, and then calls config.status.
18843 # config.status does its own redirection, appending to config.log.
18844 # Unfortunately, on DOS this fails, as config.log is still kept open
18845 # by configure, so config.status won't be able to write to it; its
18846 # output is simply discarded. So we exec the FD to /dev/null,
18847 # effectively closing config.log, so it can be properly (re)opened and
18848 # appended to by config.status. When coming back to configure, we
18849 # need to make the FD available again.
18850 if test "$no_create" != yes; then
18853 $SHELL $CONFIG_STATUS || ac_cs_success=false
18855 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18856 # would make configure fail if this is the last instruction.
18857 $ac_cs_success || { (exit 1); exit 1; }