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 # Initialize default assumption that we do not need separate assembly code
1452 # for TAS (test-and-set). This can be overridden by the template file
1453 # when it's executed.
1460 ## Command line options
1464 # Installation directory for documentation
1469 # Check whether --with-docdir or --without-docdir was given.
1470 if test "${with_docdir+set}" = set; then
1471 withval="$with_docdir"
1475 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1476 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1477 { (exit 1); exit 1; }; }
1488 docdir='${prefix}/doc'
1495 # Add non-standard directories to the include path
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502 withval="$with_includes"
1506 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508 { (exit 1); exit 1; }; }
1511 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513 { (exit 1); exit 1; }; }
1525 # Add non-standard directories to the library search path
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532 withval="$with_libraries"
1536 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538 { (exit 1); exit 1; }; }
1541 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543 { (exit 1); exit 1; }; }
1546 LIBRARY_DIRS=$withval
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558 withval="$with_libs"
1562 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564 { (exit 1); exit 1; }; }
1567 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569 { (exit 1); exit 1; }; }
1572 LIBRARY_DIRS=$withval
1581 # 64-bit integer date/time storage (--enable-integer-datetimes)
1583 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1584 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1587 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1588 if test "${enable_integer_datetimes+set}" = set; then
1589 enableval="$enable_integer_datetimes"
1594 cat >>confdefs.h <<\_ACEOF
1595 #define USE_INTEGER_DATETIMES 1
1603 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1604 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1605 { (exit 1); exit 1; }; }
1610 enable_integer_datetimes=no
1614 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1615 echo "${ECHO_T}$enable_integer_datetimes" >&6
1621 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1622 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1625 # Check whether --enable-nls or --disable-nls was given.
1626 if test "${enable_nls+set}" = set; then
1627 enableval="$enable_nls"
1638 WANTED_LANGUAGES=$enableval
1647 if test "$enable_nls" = yes; then
1649 cat >>confdefs.h <<\_ACEOF
1650 #define ENABLE_NLS 1
1655 echo "$as_me:$LINENO: result: $enable_nls" >&5
1656 echo "${ECHO_T}$enable_nls" >&6
1661 # Default port number (--with-pgport), default 5432
1663 echo "$as_me:$LINENO: checking for default port number" >&5
1664 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1668 # Check whether --with-pgport or --without-pgport was given.
1669 if test "${with_pgport+set}" = set; then
1670 withval="$with_pgport"
1674 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1675 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1676 { (exit 1); exit 1; }; }
1679 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1680 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1681 { (exit 1); exit 1; }; }
1684 default_port=$withval
1692 echo "$as_me:$LINENO: result: $default_port" >&5
1693 echo "${ECHO_T}$default_port" >&6
1694 # Need both of these because some places want an integer and some a string
1696 cat >>confdefs.h <<_ACEOF
1697 #define DEF_PGPORT ${default_port}
1701 cat >>confdefs.h <<_ACEOF
1702 #define DEF_PGPORT_STR "${default_port}"
1708 # Option to disable shared libraries
1712 # Check whether --enable-shared or --disable-shared was given.
1713 if test "${enable_shared+set}" = set; then
1714 enableval="$enable_shared"
1724 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1725 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1726 { (exit 1); exit 1; }; }
1738 # '-rpath'-like feature can be disabled
1742 # Check whether --enable-rpath or --disable-rpath was given.
1743 if test "${enable_rpath+set}" = set; then
1744 enableval="$enable_rpath"
1754 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1755 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1756 { (exit 1); exit 1; }; }
1772 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1773 if test "${enable_spinlocks+set}" = set; then
1774 enableval="$enable_spinlocks"
1784 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1785 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1786 { (exit 1); exit 1; }; }
1791 enable_spinlocks=yes
1797 # --enable-debug adds -g to compiler flags
1801 # Check whether --enable-debug or --disable-debug was given.
1802 if test "${enable_debug+set}" = set; then
1803 enableval="$enable_debug"
1813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1814 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1815 { (exit 1); exit 1; }; }
1830 # For historical reasons you can also use --with-CC to specify the C compiler
1831 # to use, although the standard way to do this is to set the CC environment
1836 # Check whether --with-CC or --without-CC was given.
1837 if test "${with_CC+set}" = set; then
1842 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1843 echo "$as_me: error: argument required for --with-CC option" >&2;}
1844 { (exit 1); exit 1; }; }
1847 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1848 echo "$as_me: error: argument required for --with-CC option" >&2;}
1849 { (exit 1); exit 1; }; }
1860 aix) pgac_cc_list="gcc xlc";;
1861 irix) pgac_cc_list="cc";; # no gcc
1862 *) pgac_cc_list="gcc cc";;
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871 for ac_prog in $pgac_cc_list
1873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 if test -n "$CC"; then
1901 echo "$as_me:$LINENO: result: $CC" >&5
1902 echo "${ECHO_T}$CC" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$CC" && break
1911 if test -z "$CC"; then
1913 for ac_prog in $pgac_cc_list
1915 # Extract the first word of "$ac_prog", so it can be a program name with args.
1916 set dummy $ac_prog; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$ac_ct_CC"; then
1923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_ac_ct_CC="$ac_prog"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 echo "${ECHO_T}$ac_ct_CC" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1950 test -n "$ac_ct_CC" && break
1957 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1958 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1959 { (exit 1); exit 1; }; }
1961 # Provide some information about the compiler.
1962 echo "$as_me:$LINENO:" \
1963 "checking for C compiler version" >&5
1964 ac_compiler=`set X $ac_compile; echo $2`
1965 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1966 (eval $ac_compiler --version </dev/null >&5) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1971 (eval $ac_compiler -v </dev/null >&5) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1976 (eval $ac_compiler -V </dev/null >&5) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1981 cat >conftest.$ac_ext <<_ACEOF
1982 #line $LINENO "configure"
1983 #include "confdefs.h"
1985 #ifdef F77_DUMMY_MAIN
1989 int F77_DUMMY_MAIN() { return 1; }
1999 ac_clean_files_save=$ac_clean_files
2000 ac_clean_files="$ac_clean_files a.out a.exe"
2001 # Try to create an executable without -o first, disregard a.out.
2002 # It will help us diagnose broken compilers, and finding out an intuition
2004 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2005 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2006 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008 (eval $ac_link_default) 2>&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 # Find the output, starting from the most likely. This scheme is
2013 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2016 # Be careful to initialize this variable, since it used to be cached.
2017 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2019 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2020 ls a.out conftest 2>/dev/null;
2021 ls a.* conftest.* 2>/dev/null`; do
2023 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2024 a.out ) # We found the default executable, but exeext='' is most
2027 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2028 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2038 echo "$as_me: error: C compiler cannot create executables" >&2;}
2039 { (exit 77); exit 77; }; }
2042 ac_exeext=$ac_cv_exeext
2043 echo "$as_me:$LINENO: result: $ac_file" >&5
2044 echo "${ECHO_T}$ac_file" >&6
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051 # If not cross compiling, check that we can run a simple program.
2052 if test "$cross_compiling" != yes; then
2053 if { ac_try='./$ac_file'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 if test "$cross_compiling" = maybe; then
2064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'." >&5
2066 echo "$as_me: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'." >&2;}
2068 { (exit 1); exit 1; }; }
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2075 rm -f a.out a.exe conftest$ac_cv_exeext
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run. If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087 (eval $ac_link) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2095 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2097 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2098 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2106 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2107 { (exit 1); exit 1; }; }
2110 rm -f conftest$ac_cv_exeext
2111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2112 echo "${ECHO_T}$ac_cv_exeext" >&6
2114 rm -f conftest.$ac_ext
2115 EXEEXT=$ac_cv_exeext
2117 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2118 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2119 if test "${ac_cv_objext+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 #include "confdefs.h"
2126 #ifdef F77_DUMMY_MAIN
2130 int F77_DUMMY_MAIN() { return 1; }
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2154 echo "$as_me: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2157 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2158 { (exit 1); exit 1; }; }
2161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2163 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2164 echo "${ECHO_T}$ac_cv_objext" >&6
2165 OBJEXT=$ac_cv_objext
2167 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 #include "confdefs.h"
2176 #ifdef F77_DUMMY_MAIN
2180 int F77_DUMMY_MAIN() { return 1; }
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2207 echo "$as_me: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2211 rm -f conftest.$ac_objext conftest.$ac_ext
2212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2215 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2216 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2217 GCC=`test $ac_compiler_gnu = yes && echo yes`
2218 ac_test_CFLAGS=${CFLAGS+set}
2219 ac_save_CFLAGS=$CFLAGS
2221 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2222 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2223 if test "${ac_cv_prog_cc_g+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 #include "confdefs.h"
2230 #ifdef F77_DUMMY_MAIN
2234 int F77_DUMMY_MAIN() { return 1; }
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2258 echo "$as_me: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2266 if test "$ac_test_CFLAGS" = set; then
2267 CFLAGS=$ac_save_CFLAGS
2268 elif test $ac_cv_prog_cc_g = yes; then
2269 if test "$GCC" = yes; then
2275 if test "$GCC" = yes; then
2281 # Some people use a C++ compiler to compile C. Since we use `exit',
2282 # in C++ we need to declare it. In case someone uses the same compiler
2283 # for both compiling C and C++ we need to have the C++ compiler decide
2284 # the declaration of exit, since it's the most demanding environment.
2285 cat >conftest.$ac_ext <<_ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 for ac_declaration in \
2304 '#include <stdlib.h>' \
2305 'extern "C" void std::exit (int) throw (); using std::exit;' \
2306 'extern "C" void std::exit (int); using std::exit;' \
2307 'extern "C" void exit (int) throw ();' \
2308 'extern "C" void exit (int);' \
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 #include "confdefs.h"
2316 #ifdef F77_DUMMY_MAIN
2320 int F77_DUMMY_MAIN() { return 1; }
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2344 echo "$as_me: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2348 rm -f conftest.$ac_objext conftest.$ac_ext
2349 cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2351 #include "confdefs.h"
2353 #ifdef F77_DUMMY_MAIN
2357 int F77_DUMMY_MAIN() { return 1; }
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369 (eval $ac_compile) 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2387 if test -n "$ac_declaration"; then
2388 echo '#ifdef __cplusplus' >>confdefs.h
2389 echo $ac_declaration >>confdefs.h
2390 echo '#endif' >>confdefs.h
2394 echo "$as_me: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2397 rm -f conftest.$ac_objext conftest.$ac_ext
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 . "$srcdir/src/template/$template" || exit
2412 # CFLAGS are selected so:
2413 # If the user specifies something in the environment, that is used.
2414 # else: If the template file set something, that is used.
2415 # else: If the compiler is GCC, then we use -O2.
2416 # else: If the compiler is something else, then we use -0.
2418 if test "$ac_env_CFLAGS_set" = set; then
2419 CFLAGS=$ac_env_CFLAGS_value
2420 elif test "${CFLAGS+set}" = set; then
2421 : # (keep what template set)
2422 elif test "$GCC" = yes; then
2425 # if the user selected debug mode, don't use -O
2426 if test "$enable_debug" != yes; then
2431 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2432 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2433 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2434 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 pgac_save_CFLAGS=$CFLAGS
2438 if test "$GCC" = yes; then
2439 pgac_try="-fno-strict-aliasing"
2441 # Maybe fill in later...
2445 for pgac_flag in $pgac_try; do
2446 CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 #include "confdefs.h"
2451 #ifdef F77_DUMMY_MAIN
2455 int F77_DUMMY_MAIN() { return 1; }
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2480 echo "$as_me: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2486 CFLAGS=$pgac_save_CFLAGS
2489 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2490 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2492 if test "$ac_env_CFLAGS_set" != set; then
2493 CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2496 # supply -g if --enable-debug
2497 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2501 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2502 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2504 # We already have this in Makefile.win32, but configure needs it too
2505 if test "$PORTNAME" = "win32"; then
2506 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2509 # Check if the compiler still works with the template settings
2510 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2511 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2513 cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2515 #include "confdefs.h"
2517 #ifdef F77_DUMMY_MAIN
2521 int F77_DUMMY_MAIN() { return 1; }
2531 rm -f conftest.$ac_objext conftest$ac_exeext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -s conftest$ac_exeext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 echo "$as_me:$LINENO: result: yes" >&5
2544 echo "${ECHO_T}yes" >&6
2546 echo "$as_me: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2550 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2551 echo "$as_me: error: cannot proceed" >&2;}
2552 { (exit 1); exit 1; }; }
2554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2556 # Defend against gcc -ffast-math
2557 if test "$GCC" = yes; then
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2562 #ifdef F77_DUMMY_MAIN
2566 int F77_DUMMY_MAIN() { return 1; }
2571 #ifdef __FAST_MATH__
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 echo "$as_me: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2594 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2595 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2596 { (exit 1); exit 1; }; }
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2608 # On Suns, sometimes $CPP names a directory.
2609 if test -n "$CPP" && test -d "$CPP"; then
2612 if test -z "$CPP"; then
2613 if test "${ac_cv_prog_CPP+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 # Double quotes because CPP needs to be expanded
2617 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2620 for ac_c_preproc_warn_flag in '' yes
2622 # Use a header file that comes with gcc, so configuring glibc
2623 # with a fresh cross-compiler works.
2624 # On the NeXT, cc -E runs the code through the compiler's parser,
2625 # not just through cpp. "Syntax error" is here to catch this case.
2626 cat >conftest.$ac_ext <<_ACEOF
2627 #line $LINENO "configure"
2628 #include "confdefs.h"
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2635 egrep -v '^ *\+' conftest.er1 >conftest.err
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2648 if test -z "$ac_cpp_err"; then
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 # Broken: fails on valid input.
2656 rm -f conftest.err conftest.$ac_ext
2658 # OK, works on sane cases. Now check whether non-existent headers
2659 # can be detected and how.
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #line $LINENO "configure"
2662 #include "confdefs.h"
2663 #include <ac_nonexistent.h>
2665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2668 egrep -v '^ *\+' conftest.er1 >conftest.err
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } >/dev/null; then
2673 if test -s conftest.err; then
2674 ac_cpp_err=$ac_c_preproc_warn_flag
2681 if test -z "$ac_cpp_err"; then
2682 # Broken: success on invalid input.
2685 echo "$as_me: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 # Passes both tests.
2691 rm -f conftest.err conftest.$ac_ext
2694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2695 rm -f conftest.err conftest.$ac_ext
2696 if $ac_preproc_ok; then
2708 echo "$as_me:$LINENO: result: $CPP" >&5
2709 echo "${ECHO_T}$CPP" >&6
2711 for ac_c_preproc_warn_flag in '' yes
2713 # Use a header file that comes with gcc, so configuring glibc
2714 # with a fresh cross-compiler works.
2715 # On the NeXT, cc -E runs the code through the compiler's parser,
2716 # not just through cpp. "Syntax error" is here to catch this case.
2717 cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 #include "confdefs.h"
2723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2726 egrep -v '^ *\+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } >/dev/null; then
2731 if test -s conftest.err; then
2732 ac_cpp_err=$ac_c_preproc_warn_flag
2739 if test -z "$ac_cpp_err"; then
2742 echo "$as_me: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 # Broken: fails on valid input.
2747 rm -f conftest.err conftest.$ac_ext
2749 # OK, works on sane cases. Now check whether non-existent headers
2750 # can be detected and how.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 #include <ac_nonexistent.h>
2756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2759 egrep -v '^ *\+' conftest.er1 >conftest.err
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } >/dev/null; then
2764 if test -s conftest.err; then
2765 ac_cpp_err=$ac_c_preproc_warn_flag
2772 if test -z "$ac_cpp_err"; then
2773 # Broken: success on invalid input.
2776 echo "$as_me: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2778 # Passes both tests.
2782 rm -f conftest.err conftest.$ac_ext
2785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2786 rm -f conftest.err conftest.$ac_ext
2787 if $ac_preproc_ok; then
2790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2792 { (exit 1); exit 1; }; }
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 # Create compiler version string
2804 if test x"$GCC" = x"yes" ; then
2805 cc_string="GCC `${CC} --version | sed q`"
2810 cat >>confdefs.h <<_ACEOF
2811 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2817 # Set up TAS assembly code if needed; the template file has now had its
2818 # chance to request this.
2820 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2823 if test "$need_tas" = yes ; then
2832 # Automatic dependency tracking
2836 # Check whether --enable-depend or --disable-depend was given.
2837 if test "${enable_depend+set}" = set; then
2838 enableval="$enable_depend"
2848 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2849 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2850 { (exit 1); exit 1; }; }
2863 # Enable assert checks
2867 # Check whether --enable-cassert or --disable-cassert was given.
2868 if test "${enable_cassert+set}" = set; then
2869 enableval="$enable_cassert"
2874 cat >>confdefs.h <<\_ACEOF
2875 #define USE_ASSERT_CHECKING 1
2883 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2884 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2885 { (exit 1); exit 1; }; }
2897 # Include directories
2901 # SRCH_INC comes from the template file
2902 for dir in $with_includes $SRCH_INC; do
2903 if test -d "$dir"; then
2904 INCLUDES="$INCLUDES -I$dir"
2906 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2907 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2915 # Library directories
2919 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2920 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2921 if test -d "$dir"; then
2922 LIBDIRS="$LIBDIRS -L$dir"
2924 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2925 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2931 # Enable thread-safe client libraries
2933 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2934 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2937 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2938 if test "${enable_thread_safety+set}" = set; then
2939 enableval="$enable_thread_safety"
2944 cat >>confdefs.h <<\_ACEOF
2945 #define ENABLE_THREAD_SAFETY 1
2953 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2954 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2955 { (exit 1); exit 1; }; }
2960 enable_thread_safety=no
2964 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2965 echo "${ECHO_T}$enable_thread_safety" >&6
2971 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2972 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2976 # Check whether --with-tcl or --without-tcl was given.
2977 if test "${with_tcl+set}" = set; then
2988 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2989 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2990 { (exit 1); exit 1; }; }
2999 echo "$as_me:$LINENO: result: $with_tcl" >&5
3000 echo "${ECHO_T}$with_tcl" >&6
3003 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
3004 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
3005 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
3006 if test "$with_tcl" = yes; then
3010 # Check whether --with-tk or --without-tk was given.
3011 if test "${with_tk+set}" = set; then
3022 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
3023 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
3024 { (exit 1); exit 1; }; }
3036 echo "$as_me:$LINENO: result: $with_tk" >&5
3037 echo "${ECHO_T}$with_tk" >&6
3041 # We see if the path to the Tcl/Tk configuration scripts is specified.
3042 # This will override the use of tclsh to find the paths to search.
3047 # Check whether --with-tclconfig or --without-tclconfig was given.
3048 if test "${with_tclconfig+set}" = set; then
3049 withval="$with_tclconfig"
3053 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3054 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3055 { (exit 1); exit 1; }; }
3058 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3059 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3060 { (exit 1); exit 1; }; }
3070 # We see if the path to the Tk configuration scripts is specified.
3071 # This will override the use of tclsh to find the paths to search.
3076 # Check whether --with-tkconfig or --without-tkconfig was given.
3077 if test "${with_tkconfig+set}" = set; then
3078 withval="$with_tkconfig"
3082 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3083 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3084 { (exit 1); exit 1; }; }
3087 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3088 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3089 { (exit 1); exit 1; }; }
3100 # Optionally build Perl modules (PL/Perl)
3102 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3103 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3107 # Check whether --with-perl or --without-perl was given.
3108 if test "${with_perl+set}" = set; then
3109 withval="$with_perl"
3119 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3120 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3121 { (exit 1); exit 1; }; }
3130 echo "$as_me:$LINENO: result: $with_perl" >&5
3131 echo "${ECHO_T}$with_perl" >&6
3135 # Optionally build Python modules (PL/Python)
3137 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3138 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3142 # Check whether --with-python or --without-python was given.
3143 if test "${with_python+set}" = set; then
3144 withval="$with_python"
3154 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3155 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3156 { (exit 1); exit 1; }; }
3165 echo "$as_me:$LINENO: result: $with_python" >&5
3166 echo "${ECHO_T}$with_python" >&6
3170 # Optionally build the Java/JDBC tools
3172 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3173 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3177 # Check whether --with-java or --without-java was given.
3178 if test "${with_java+set}" = set; then
3179 withval="$with_java"
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3186 for ac_prog in jakarta-ant ant ant.sh ant.bat
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192 if test "${ac_cv_path_ANT+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 if test -n "$ANT"; then
3220 echo "$as_me:$LINENO: result: $ANT" >&5
3221 echo "${ECHO_T}$ANT" >&6
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3227 test -n "$ANT" && break
3231 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3232 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3233 if test "${pgac_cv_prog_ant_works+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 cat > conftest.java << EOF
3238 public class conftest {
3239 int testmethod(int a, int b) {
3245 cat > conftest.xml << EOF
3246 <project name="conftest" default="conftest">
3247 <target name="conftest">
3248 <javac srcdir="." includes="conftest.java">
3254 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3255 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3256 (eval $pgac_cmd) 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }
3261 if test $? = 0 && test -f ./conftest.class ; then
3262 pgac_cv_prog_ant_works=yes
3264 echo "configure: failed java program was:" >&5
3265 cat conftest.java >&5
3266 echo "configure: failed build file was:" >&5
3267 cat conftest.xml >&5
3268 pgac_cv_prog_ant_works=no
3271 rm -f conftest* core core.* *.core
3274 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3275 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3277 if test "$pgac_cv_prog_ant_works" != yes; then
3278 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3279 echo "$as_me: error: ant does not work" >&2;}
3280 { (exit 1); exit 1; }; }
3284 if test -z "$ANT"; then
3285 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3286 If you have Ant already installed, see config.log for details on the failure." >&5
3287 echo "$as_me: error: Ant is required to build Java components
3288 If you have Ant already installed, see config.log for details on the failure." >&2;}
3289 { (exit 1); exit 1; }; }
3291 if "$ANT" -version | egrep -i 'ant version' | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3292 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3293 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3294 { (exit 1); exit 1; }; }
3298 echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3302 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3303 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3304 { (exit 1); exit 1; }; }
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3319 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3320 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3324 # Check whether --with-krb4 or --without-krb4 was given.
3325 if test "${with_krb4+set}" = set; then
3326 withval="$with_krb4"
3332 cat >>confdefs.h <<\_ACEOF
3336 krb_srvtab="/etc/srvtab"
3343 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3344 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3345 { (exit 1); exit 1; }; }
3354 echo "$as_me:$LINENO: result: $with_krb4" >&5
3355 echo "${ECHO_T}$with_krb4" >&6
3362 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3363 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3367 # Check whether --with-krb5 or --without-krb5 was given.
3368 if test "${with_krb5+set}" = set; then
3369 withval="$with_krb5"
3375 cat >>confdefs.h <<\_ACEOF
3379 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3386 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3387 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3388 { (exit 1); exit 1; }; }
3397 echo "$as_me:$LINENO: result: $with_krb5" >&5
3398 echo "${ECHO_T}$with_krb5" >&6
3402 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3403 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3404 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3405 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3406 { (exit 1); exit 1; }; }
3413 # Kerberos configuration parameters
3418 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3419 if test "${with_krb_srvnam+set}" = set; then
3420 withval="$with_krb_srvnam"
3424 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3425 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3426 { (exit 1); exit 1; }; }
3429 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3430 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3431 { (exit 1); exit 1; }; }
3439 with_krb_srvnam="postgres"
3443 cat >>confdefs.h <<_ACEOF
3444 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3452 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3453 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3457 # Check whether --with-pam or --without-pam was given.
3458 if test "${with_pam+set}" = set; then
3464 cat >>confdefs.h <<\_ACEOF
3473 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3474 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3475 { (exit 1); exit 1; }; }
3484 echo "$as_me:$LINENO: result: $with_pam" >&5
3485 echo "${ECHO_T}$with_pam" >&6
3492 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3493 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3497 # Check whether --with-rendezvous or --without-rendezvous was given.
3498 if test "${with_rendezvous+set}" = set; then
3499 withval="$with_rendezvous"
3504 cat >>confdefs.h <<\_ACEOF
3505 #define USE_RENDEZVOUS 1
3513 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3514 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3515 { (exit 1); exit 1; }; }
3524 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3525 echo "${ECHO_T}$with_rendezvous" >&6
3532 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3533 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3537 # Check whether --with-openssl or --without-openssl was given.
3538 if test "${with_openssl+set}" = set; then
3539 withval="$with_openssl"
3544 cat >>confdefs.h <<\_ACEOF
3553 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3554 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3555 { (exit 1); exit 1; }; }
3564 echo "$as_me:$LINENO: result: $with_openssl" >&5
3565 echo "${ECHO_T}$with_openssl" >&6
3575 # Check whether --with-readline or --without-readline was given.
3576 if test "${with_readline+set}" = set; then
3577 withval="$with_readline"
3587 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3588 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3589 { (exit 1); exit 1; }; }
3605 # Check whether --with-zlib or --without-zlib was given.
3606 if test "${with_zlib+set}" = set; then
3607 withval="$with_zlib"
3617 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3618 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3619 { (exit 1); exit 1; }; }
3633 # Assume system is ELF if it predefines __ELF__ as 1,
3634 # otherwise believe host_os based default.
3636 freebsd1*|freebsd2*) elf=no;;
3637 freebsd3*|freebsd4*) elf=yes;;
3641 cat >conftest.$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3643 #include "confdefs.h"
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 egrep "yes" >/dev/null 2>&1; then
3653 if test "X$elf" = "Xyes" ; then
3667 CPPFLAGS="$CPPFLAGS $INCLUDES"
3668 LDFLAGS="$LDFLAGS $LIBDIRS"
3670 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3671 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3672 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3673 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3676 for ac_prog in gawk mawk nawk awk
3678 # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_AWK+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 if test -n "$AWK"; then
3686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_AWK="$ac_prog"
3696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 if test -n "$AWK"; then
3706 echo "$as_me:$LINENO: result: $AWK" >&5
3707 echo "${ECHO_T}$AWK" >&6
3709 echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3713 test -n "$AWK" && break
3716 echo "$as_me:$LINENO: checking for flex" >&5
3717 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3718 if test "${pgac_cv_path_flex+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 # Let the user override the test
3722 if test -n "$FLEX"; then
3723 pgac_cv_path_flex=$FLEX
3727 for pgac_dir in $PATH; do
3728 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3731 for pgac_prog in flex lex; do
3732 pgac_candidate="$pgac_dir/$pgac_prog"
3733 if test -f "$pgac_candidate" \
3734 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3736 echo '%%' > conftest.l
3737 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3738 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3739 pgac_broken_flex=$pgac_candidate
3743 pgac_cv_path_flex=$pgac_candidate
3751 : ${pgac_cv_path_flex=no}
3755 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3756 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3757 if test x"$pgac_cv_path_flex" = x"no"; then
3758 if test -n "$pgac_broken_flex"; then
3759 { echo "$as_me:$LINENO: WARNING:
3760 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3761 *** should get version 2.5.4 or later." >&5
3762 echo "$as_me: WARNING:
3763 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3764 *** should get version 2.5.4 or later." >&2;}
3767 { echo "$as_me:$LINENO: WARNING:
3768 *** Without Flex you will not be able to build PostgreSQL from CVS or
3769 *** change any of the scanner definition files. You can obtain Flex from
3770 *** a GNU mirror site. (If you are using the official distribution of
3771 *** PostgreSQL then you do not need to worry about this because the Flex
3772 *** output is pre-generated.)" >&5
3773 echo "$as_me: WARNING:
3774 *** Without Flex you will not be able to build PostgreSQL from CVS or
3775 *** change any of the scanner definition files. You can obtain Flex from
3776 *** a GNU mirror site. (If you are using the official distribution of
3777 *** PostgreSQL then you do not need to worry about this because the Flex
3778 *** output is pre-generated.)" >&2;}
3781 if test x"$pgac_cv_path_flex" = x"no"; then
3784 FLEX=$pgac_cv_path_flex
3790 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3793 if test "$LN_S" = "ln -s"; then
3794 echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6
3797 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798 echo "${ECHO_T}no, using $LN_S" >&6
3802 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3803 if test "${with_gnu_ld+set}" = set; then
3804 withval="$with_gnu_ld"
3805 test "$withval" = no || with_gnu_ld=yes
3810 if test "$GCC" = yes; then
3811 # Check if gcc -print-prog-name=ld gives a path.
3812 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3816 # gcc leaves a trailing carriage return which upsets mingw
3817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3822 # Accept absolute paths.
3823 [\\/]* | [A-Za-z]:[\\/]*)
3824 re_direlt='/[^/][^/]*/\.\./'
3825 # Canonicalize the path of ld
3826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3830 test -z "$LD" && LD="$ac_prog"
3833 # If it fails, then pretend we aren't using GCC.
3837 # If it is relative, then search for the first ld in PATH.
3841 elif test "$with_gnu_ld" = yes; then
3842 echo "$as_me:$LINENO: checking for GNU ld" >&5
3843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3845 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3848 if test "${ac_cv_path_LD+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 if test -z "$LD"; then
3852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3853 for ac_dir in $PATH; do
3854 test -z "$ac_dir" && ac_dir=.
3855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3856 ac_cv_path_LD="$ac_dir/$ac_prog"
3857 # Check to see if the program is GNU ld. I'd rather use --version,
3858 # but apparently some GNU ld's only accept -v.
3859 # Break only if it was the GNU/non-GNU ld that we prefer.
3860 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3861 test "$with_gnu_ld" != no && break
3863 test "$with_gnu_ld" != yes && break
3869 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3874 if test -n "$LD"; then
3875 echo "$as_me:$LINENO: result: $LD" >&5
3876 echo "${ECHO_T}$LD" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3881 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3882 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3883 { (exit 1); exit 1; }; }
3884 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3885 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3886 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3890 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3891 ac_cv_prog_gnu_ld=yes
3893 ac_cv_prog_gnu_ld=no
3896 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3897 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3898 with_gnu_ld=$ac_cv_prog_gnu_ld
3903 case $host_os in sysv5*)
3904 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3905 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3906 if test "${pgac_cv_prog_ld_R+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3911 cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3915 #ifdef F77_DUMMY_MAIN
3919 int F77_DUMMY_MAIN() { return 1; }
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -s conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 pgac_cv_prog_ld_R=yes
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 pgac_cv_prog_ld_R=no
3947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3948 LDFLAGS=$pgac_save_LDFLAGS
3951 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3952 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3953 ld_R_works=$pgac_cv_prog_ld_R
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_RANLIB+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$RANLIB"; then
3965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 RANLIB=$ac_cv_prog_RANLIB
3984 if test -n "$RANLIB"; then
3985 echo "$as_me:$LINENO: result: $RANLIB" >&5
3986 echo "${ECHO_T}$RANLIB" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3993 if test -z "$ac_cv_prog_RANLIB"; then
3994 ac_ct_RANLIB=$RANLIB
3995 # Extract the first word of "ranlib", so it can be a program name with args.
3996 set dummy ranlib; ac_word=$2
3997 echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -n "$ac_ct_RANLIB"; then
4003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_RANLIB="ranlib"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023 if test -n "$ac_ct_RANLIB"; then
4024 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4025 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4027 echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4031 RANLIB=$ac_ct_RANLIB
4033 RANLIB="$ac_cv_prog_RANLIB"
4036 for ac_prog in lorder
4038 # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy $ac_prog; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_LORDER+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test -n "$LORDER"; then
4046 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_LORDER="$ac_prog"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 LORDER=$ac_cv_prog_LORDER
4065 if test -n "$LORDER"; then
4066 echo "$as_me:$LINENO: result: $LORDER" >&5
4067 echo "${ECHO_T}$LORDER" >&6
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4073 test -n "$LORDER" && break
4076 # Extract the first word of "tar", so it can be a program name with args.
4077 set dummy tar; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_path_TAR+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 if test -n "$TAR"; then
4108 echo "$as_me:$LINENO: result: $TAR" >&5
4109 echo "${ECHO_T}$TAR" >&6
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_STRIP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$STRIP"; then
4125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 STRIP=$ac_cv_prog_STRIP
4144 if test -n "$STRIP"; then
4145 echo "$as_me:$LINENO: result: $STRIP" >&5
4146 echo "${ECHO_T}$STRIP" >&6
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4153 if test -z "$ac_cv_prog_STRIP"; then
4155 # Extract the first word of "strip", so it can be a program name with args.
4156 set dummy strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if test -n "$ac_ct_STRIP"; then
4163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_ac_ct_STRIP="strip"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4183 if test -n "$ac_ct_STRIP"; then
4184 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4185 echo "${ECHO_T}$ac_ct_STRIP" >&6
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4193 STRIP="$ac_cv_prog_STRIP"
4197 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4198 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4199 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4200 STRIP_STATIC_LIB="$STRIP -x"
4201 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4202 echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4214 for ac_prog in 'bison -y'
4216 # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_YACC+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test -n "$YACC"; then
4224 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_YACC="$ac_prog"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 YACC=$ac_cv_prog_YACC
4243 if test -n "$YACC"; then
4244 echo "$as_me:$LINENO: result: $YACC" >&5
4245 echo "${ECHO_T}$YACC" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4251 test -n "$YACC" && break
4255 if test "$YACC"; then
4256 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4257 { echo "$as_me:$LINENO: WARNING:
4258 *** The installed version of Bison is too old. PostgreSQL needs
4259 *** Bison version 1.875 or later." >&5
4260 echo "$as_me: WARNING:
4261 *** The installed version of Bison is too old. PostgreSQL needs
4262 *** Bison version 1.875 or later." >&2;}
4266 if test -z "$YACC"; then
4267 { echo "$as_me:$LINENO: WARNING:
4268 *** Without Bison you will not be able to build PostgreSQL from CVS or
4269 *** change any of the parser definition files. You can obtain Bison from
4270 *** a GNU mirror site. (If you are using the official distribution of
4271 *** PostgreSQL then you do not need to worry about this because the Bison
4272 *** output is pre-generated.) To use a different yacc program (possible,
4273 *** but not recommended), set the environment variable YACC before running
4274 *** 'configure'." >&5
4275 echo "$as_me: WARNING:
4276 *** Without Bison you will not be able to build PostgreSQL from CVS or
4277 *** change any of the parser definition files. You can obtain Bison from
4278 *** a GNU mirror site. (If you are using the official distribution of
4279 *** PostgreSQL then you do not need to worry about this because the Bison
4280 *** output is pre-generated.) To use a different yacc program (possible,
4281 *** but not recommended), set the environment variable YACC before running
4282 *** 'configure'." >&2;}
4286 # Extract the first word of "perl", so it can be a program name with args.
4287 set dummy perl; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_PERL+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 PERL=$ac_cv_path_PERL
4317 if test -n "$PERL"; then
4318 echo "$as_me:$LINENO: result: $PERL" >&5
4319 echo "${ECHO_T}$PERL" >&6
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4325 if test "$with_perl" = yes; then
4327 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4328 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4329 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4330 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4331 echo "${ECHO_T}$perl_archlibexp" >&6
4332 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4333 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4334 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4335 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4336 echo "${ECHO_T}$perl_privlibexp" >&6
4337 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4338 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4339 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4340 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4341 echo "${ECHO_T}$perl_useshrplib" >&6
4343 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4344 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4345 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4346 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4347 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4348 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4349 echo "${ECHO_T}$perl_embed_ldflags" >&6
4352 if test "$with_python" = yes; then
4353 # Extract the first word of "python", so it can be a program name with args.
4354 set dummy python; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_path_PYTHON+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 PYTHON=$ac_cv_path_PYTHON
4384 if test -n "$PYTHON"; then
4385 echo "$as_me:$LINENO: result: $PYTHON" >&5
4386 echo "${ECHO_T}$PYTHON" >&6
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4392 if test x"$PYTHON" = x""; then
4393 { { echo "$as_me:$LINENO: error: Python not found" >&5
4394 echo "$as_me: error: Python not found" >&2;}
4395 { (exit 1); exit 1; }; }
4399 echo "$as_me:$LINENO: checking Python installation directories" >&5
4400 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4401 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4402 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4403 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4404 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4405 python_includespec="-I${python_prefix}/include/python${python_version}"
4406 if test "$python_prefix" != "$python_execprefix"; then
4407 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4410 # This should be enough of a message.
4411 if test "$python_prefix" != "$python_execprefix"; then
4412 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4413 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4415 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4416 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4420 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4421 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4423 if test ! -f "$python_configdir/Makefile"; then
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4427 echo "$as_me: error: Python Makefile not found" >&2;}
4428 { (exit 1); exit 1; }; }
4431 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4432 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4433 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4434 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4435 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4437 pgac_tab=" " # tab character
4438 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"`
4440 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4441 echo "${ECHO_T}${python_libspec}" >&6
4451 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4454 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4455 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4456 if test "${ac_cv_lib_bsd_main+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 ac_check_lib_save_LIBS=$LIBS
4461 cat >conftest.$ac_ext <<_ACEOF
4462 #line $LINENO "configure"
4463 #include "confdefs.h"
4466 #ifdef F77_DUMMY_MAIN
4470 int F77_DUMMY_MAIN() { return 1; }
4480 rm -f conftest.$ac_objext conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest$ac_exeext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_lib_bsd_main=yes
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 ac_cv_lib_bsd_main=no
4498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4502 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4503 if test $ac_cv_lib_bsd_main = yes; then
4504 cat >>confdefs.h <<_ACEOF
4505 #define HAVE_LIBBSD 1
4514 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4515 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4516 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_check_lib_save_LIBS=$LIBS
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531 char setproctitle ();
4532 #ifdef F77_DUMMY_MAIN
4536 int F77_DUMMY_MAIN() { return 1; }
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_cv_lib_util_setproctitle=yes
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 ac_cv_lib_util_setproctitle=no
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 LIBS=$ac_check_lib_save_LIBS
4567 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4568 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4569 if test $ac_cv_lib_util_setproctitle = yes; then
4570 cat >>confdefs.h <<_ACEOF
4571 #define HAVE_LIBUTIL 1
4579 echo "$as_me:$LINENO: checking for main in -lm" >&5
4580 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4581 if test "${ac_cv_lib_m_main+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 ac_check_lib_save_LIBS=$LIBS
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 #include "confdefs.h"
4591 #ifdef F77_DUMMY_MAIN
4595 int F77_DUMMY_MAIN() { return 1; }
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_lib_m_main=yes
4619 echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4626 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4627 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4628 if test $ac_cv_lib_m_main = yes; then
4629 cat >>confdefs.h <<_ACEOF
4638 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4639 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4640 if test "${ac_cv_lib_dl_main+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 ac_check_lib_save_LIBS=$LIBS
4645 cat >conftest.$ac_ext <<_ACEOF
4646 #line $LINENO "configure"
4647 #include "confdefs.h"
4650 #ifdef F77_DUMMY_MAIN
4654 int F77_DUMMY_MAIN() { return 1; }
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_cv_lib_dl_main=yes
4678 echo "$as_me: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 ac_cv_lib_dl_main=no
4682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4683 LIBS=$ac_check_lib_save_LIBS
4685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4686 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4687 if test $ac_cv_lib_dl_main = yes; then
4688 cat >>confdefs.h <<_ACEOF
4689 #define HAVE_LIBDL 1
4697 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4698 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4699 if test "${ac_cv_lib_nsl_main+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_check_lib_save_LIBS=$LIBS
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 #include "confdefs.h"
4709 #ifdef F77_DUMMY_MAIN
4713 int F77_DUMMY_MAIN() { return 1; }
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -s conftest$ac_exeext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_lib_nsl_main=yes
4737 echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 ac_cv_lib_nsl_main=no
4741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4742 LIBS=$ac_check_lib_save_LIBS
4744 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4745 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4746 if test $ac_cv_lib_nsl_main = yes; then
4747 cat >>confdefs.h <<_ACEOF
4748 #define HAVE_LIBNSL 1
4756 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4757 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4758 if test "${ac_cv_lib_socket_main+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 ac_check_lib_save_LIBS=$LIBS
4762 LIBS="-lsocket $LIBS"
4763 cat >conftest.$ac_ext <<_ACEOF
4764 #line $LINENO "configure"
4765 #include "confdefs.h"
4768 #ifdef F77_DUMMY_MAIN
4772 int F77_DUMMY_MAIN() { return 1; }
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest$ac_exeext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_lib_socket_main=yes
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_cv_lib_socket_main=no
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4801 LIBS=$ac_check_lib_save_LIBS
4803 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4804 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4805 if test $ac_cv_lib_socket_main = yes; then
4806 cat >>confdefs.h <<_ACEOF
4807 #define HAVE_LIBSOCKET 1
4810 LIBS="-lsocket $LIBS"
4815 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4816 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4817 if test "${ac_cv_lib_ipc_main+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_check_lib_save_LIBS=$LIBS
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4827 #ifdef F77_DUMMY_MAIN
4831 int F77_DUMMY_MAIN() { return 1; }
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843 (eval $ac_link) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_lib_ipc_main=yes
4855 echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 ac_cv_lib_ipc_main=no
4859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860 LIBS=$ac_check_lib_save_LIBS
4862 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4863 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4864 if test $ac_cv_lib_ipc_main = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define HAVE_LIBIPC 1
4874 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4875 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4876 if test "${ac_cv_lib_IPC_main+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_check_lib_save_LIBS=$LIBS
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 #include "confdefs.h"
4886 #ifdef F77_DUMMY_MAIN
4890 int F77_DUMMY_MAIN() { return 1; }
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -s conftest$ac_exeext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_lib_IPC_main=yes
4914 echo "$as_me: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 ac_cv_lib_IPC_main=no
4918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4919 LIBS=$ac_check_lib_save_LIBS
4921 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4922 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4923 if test $ac_cv_lib_IPC_main = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925 #define HAVE_LIBIPC 1
4933 echo "$as_me:$LINENO: checking for main in -llc" >&5
4934 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4935 if test "${ac_cv_lib_lc_main+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 ac_check_lib_save_LIBS=$LIBS
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 #include "confdefs.h"
4945 #ifdef F77_DUMMY_MAIN
4949 int F77_DUMMY_MAIN() { return 1; }
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_lc_main=yes
4973 echo "$as_me: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 ac_cv_lib_lc_main=no
4977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4978 LIBS=$ac_check_lib_save_LIBS
4980 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4981 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4982 if test $ac_cv_lib_lc_main = yes; then
4983 cat >>confdefs.h <<_ACEOF
4984 #define HAVE_LIBLC 1
4992 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4993 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4994 if test "${ac_cv_lib_dld_main+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 ac_check_lib_save_LIBS=$LIBS
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5004 #ifdef F77_DUMMY_MAIN
5008 int F77_DUMMY_MAIN() { return 1; }
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_lib_dld_main=yes
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 ac_cv_lib_dld_main=no
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5037 LIBS=$ac_check_lib_save_LIBS
5039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5040 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5041 if test $ac_cv_lib_dld_main = yes; then
5042 cat >>confdefs.h <<_ACEOF
5043 #define HAVE_LIBDLD 1
5051 echo "$as_me:$LINENO: checking for main in -lld" >&5
5052 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5053 if test "${ac_cv_lib_ld_main+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 ac_check_lib_save_LIBS=$LIBS
5058 cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 #include "confdefs.h"
5063 #ifdef F77_DUMMY_MAIN
5067 int F77_DUMMY_MAIN() { return 1; }
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079 (eval $ac_link) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_lib_ld_main=yes
5091 echo "$as_me: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 ac_cv_lib_ld_main=no
5095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5099 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5100 if test $ac_cv_lib_ld_main = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define HAVE_LIBLD 1
5110 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5111 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5112 if test "${ac_cv_lib_compat_main+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 ac_check_lib_save_LIBS=$LIBS
5116 LIBS="-lcompat $LIBS"
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5122 #ifdef F77_DUMMY_MAIN
5126 int F77_DUMMY_MAIN() { return 1; }
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_lib_compat_main=yes
5150 echo "$as_me: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5152 ac_cv_lib_compat_main=no
5154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155 LIBS=$ac_check_lib_save_LIBS
5157 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5158 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5159 if test $ac_cv_lib_compat_main = yes; then
5160 cat >>confdefs.h <<_ACEOF
5161 #define HAVE_LIBCOMPAT 1
5164 LIBS="-lcompat $LIBS"
5169 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5170 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5171 if test "${ac_cv_lib_BSD_main+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_check_lib_save_LIBS=$LIBS
5176 cat >conftest.$ac_ext <<_ACEOF
5177 #line $LINENO "configure"
5178 #include "confdefs.h"
5181 #ifdef F77_DUMMY_MAIN
5185 int F77_DUMMY_MAIN() { return 1; }
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197 (eval $ac_link) 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_lib_BSD_main=yes
5209 echo "$as_me: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 ac_cv_lib_BSD_main=no
5213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5217 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5218 if test $ac_cv_lib_BSD_main = yes; then
5219 cat >>confdefs.h <<_ACEOF
5220 #define HAVE_LIBBSD 1
5228 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5229 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5230 if test "${ac_cv_lib_gen_main+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_check_lib_save_LIBS=$LIBS
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 #include "confdefs.h"
5240 #ifdef F77_DUMMY_MAIN
5244 int F77_DUMMY_MAIN() { return 1; }
5254 rm -f conftest.$ac_objext conftest$ac_exeext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256 (eval $ac_link) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -s conftest$ac_exeext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_lib_gen_main=yes
5268 echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 ac_cv_lib_gen_main=no
5272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5275 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5276 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5277 if test $ac_cv_lib_gen_main = yes; then
5278 cat >>confdefs.h <<_ACEOF
5279 #define HAVE_LIBGEN 1
5287 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5288 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5289 if test "${ac_cv_lib_PW_main+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 ac_check_lib_save_LIBS=$LIBS
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 #include "confdefs.h"
5299 #ifdef F77_DUMMY_MAIN
5303 int F77_DUMMY_MAIN() { return 1; }
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest$ac_exeext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_lib_PW_main=yes
5327 echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 ac_cv_lib_PW_main=no
5331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 LIBS=$ac_check_lib_save_LIBS
5334 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5335 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5336 if test $ac_cv_lib_PW_main = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_LIBPW 1
5346 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5347 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5348 if test "${ac_cv_lib_resolv_main+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 ac_check_lib_save_LIBS=$LIBS
5352 LIBS="-lresolv $LIBS"
5353 cat >conftest.$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5355 #include "confdefs.h"
5358 #ifdef F77_DUMMY_MAIN
5362 int F77_DUMMY_MAIN() { return 1; }
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374 (eval $ac_link) 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_lib_resolv_main=yes
5386 echo "$as_me: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 ac_cv_lib_resolv_main=no
5390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5391 LIBS=$ac_check_lib_save_LIBS
5393 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5394 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5395 if test $ac_cv_lib_resolv_main = yes; then
5396 cat >>confdefs.h <<_ACEOF
5397 #define HAVE_LIBRESOLV 1
5400 LIBS="-lresolv $LIBS"
5404 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5405 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5406 if test "${ac_cv_search_getopt_long+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_func_search_save_LIBS=$LIBS
5410 ac_cv_search_getopt_long=no
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5421 char getopt_long ();
5422 #ifdef F77_DUMMY_MAIN
5426 int F77_DUMMY_MAIN() { return 1; }
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_search_getopt_long="none required"
5450 echo "$as_me: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5454 if test "$ac_cv_search_getopt_long" = no; then
5455 for ac_lib in getopt gnugetopt; do
5456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5457 cat >conftest.$ac_ext <<_ACEOF
5458 #line $LINENO "configure"
5459 #include "confdefs.h"
5461 /* Override any gcc2 internal prototype to avoid an error. */
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
5467 char getopt_long ();
5468 #ifdef F77_DUMMY_MAIN
5472 int F77_DUMMY_MAIN() { return 1; }
5482 rm -f conftest.$ac_objext conftest$ac_exeext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484 (eval $ac_link) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -s conftest$ac_exeext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_cv_search_getopt_long="-l$ac_lib"
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_func_search_save_LIBS
5505 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5506 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5507 if test "$ac_cv_search_getopt_long" != no; then
5508 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5514 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5515 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5516 if test "${ac_cv_lib_unix_main+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_check_lib_save_LIBS=$LIBS
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 #include "confdefs.h"
5526 #ifdef F77_DUMMY_MAIN
5530 int F77_DUMMY_MAIN() { return 1; }
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_lib_unix_main=yes
5554 echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 ac_cv_lib_unix_main=no
5558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5562 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5563 if test $ac_cv_lib_unix_main = yes; then
5564 cat >>confdefs.h <<_ACEOF
5565 #define HAVE_LIBUNIX 1
5572 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5573 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5574 if test "${ac_cv_search_crypt+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 ac_func_search_save_LIBS=$LIBS
5578 ac_cv_search_crypt=no
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 #include "confdefs.h"
5583 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5590 #ifdef F77_DUMMY_MAIN
5594 int F77_DUMMY_MAIN() { return 1; }
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_search_crypt="none required"
5618 echo "$as_me: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 if test "$ac_cv_search_crypt" = no; then
5623 for ac_lib in crypt; do
5624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5625 cat >conftest.$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5627 #include "confdefs.h"
5629 /* Override any gcc2 internal prototype to avoid an error. */
5633 /* We use char because int might match the return type of a gcc2
5634 builtin and then its argument prototype would still apply. */
5636 #ifdef F77_DUMMY_MAIN
5640 int F77_DUMMY_MAIN() { return 1; }
5650 rm -f conftest.$ac_objext conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -s conftest$ac_exeext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 ac_cv_search_crypt="-l$ac_lib"
5665 echo "$as_me: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5671 LIBS=$ac_func_search_save_LIBS
5673 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5674 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5675 if test "$ac_cv_search_crypt" != no; then
5676 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5681 if test "$PORTNAME" = "beos"
5684 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5685 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5686 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 ac_check_lib_save_LIBS=$LIBS
5691 cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 #include "confdefs.h"
5695 /* Override any gcc2 internal prototype to avoid an error. */
5699 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */
5701 char __inet_ntoa ();
5702 #ifdef F77_DUMMY_MAIN
5706 int F77_DUMMY_MAIN() { return 1; }
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718 (eval $ac_link) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try='test -s conftest$ac_exeext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_cv_lib_bind___inet_ntoa=yes
5730 echo "$as_me: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 ac_cv_lib_bind___inet_ntoa=no
5734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5735 LIBS=$ac_check_lib_save_LIBS
5737 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5738 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5739 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define HAVE_LIBBIND 1
5750 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5751 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5752 if test "${ac_cv_search_fdatasync+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_func_search_save_LIBS=$LIBS
5756 ac_cv_search_fdatasync=no
5757 cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5761 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5768 #ifdef F77_DUMMY_MAIN
5772 int F77_DUMMY_MAIN() { return 1; }
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_search_fdatasync="none required"
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 if test "$ac_cv_search_fdatasync" = no; then
5801 for ac_lib in rt posix4; do
5802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 #include "confdefs.h"
5807 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5814 #ifdef F77_DUMMY_MAIN
5818 int F77_DUMMY_MAIN() { return 1; }
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830 (eval $ac_link) 2>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -s conftest$ac_exeext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_cv_search_fdatasync="-l$ac_lib"
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5849 LIBS=$ac_func_search_save_LIBS
5851 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5852 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5853 if test "$ac_cv_search_fdatasync" != no; then
5854 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5860 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5861 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5862 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 ac_check_lib_save_LIBS=$LIBS
5866 LIBS="-lcygipc $LIBS"
5867 cat >conftest.$ac_ext <<_ACEOF
5868 #line $LINENO "configure"
5869 #include "confdefs.h"
5871 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5878 #ifdef F77_DUMMY_MAIN
5882 int F77_DUMMY_MAIN() { return 1; }
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894 (eval $ac_link) 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -s conftest$ac_exeext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_lib_cygipc_shmget=yes
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_lib_cygipc_shmget=no
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5914 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5915 if test $ac_cv_lib_cygipc_shmget = yes; then
5916 cat >>confdefs.h <<_ACEOF
5917 #define HAVE_LIBCYGIPC 1
5920 LIBS="-lcygipc $LIBS"
5925 if test "$PORTNAME" = "win32"
5928 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5929 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5930 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_check_lib_save_LIBS=$LIBS
5934 LIBS="-lwsock32 $LIBS"
5935 cat >conftest.$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 #include "confdefs.h"
5940 #ifdef F77_DUMMY_MAIN
5944 int F77_DUMMY_MAIN() { return 1; }
5954 rm -f conftest.$ac_objext conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956 (eval $ac_link) 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -s conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_lib_wsock32_main=yes
5968 echo "$as_me: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5970 ac_cv_lib_wsock32_main=no
5972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5973 LIBS=$ac_check_lib_save_LIBS
5975 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5976 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5977 if test $ac_cv_lib_wsock32_main = yes; then
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE_LIBWSOCK32 1
5982 LIBS="-lwsock32 $LIBS"
5988 if test "$with_readline" = yes; then
5990 echo "$as_me:$LINENO: checking for readline" >&5
5991 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5993 if test "${pgac_cv_check_readline+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 pgac_cv_check_readline=no
5997 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5998 for pgac_rllib in -lreadline -ledit ; do
5999 pgac_save_LIBS=$LIBS
6000 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6001 cat >conftest.$ac_ext <<_ACEOF
6002 #line $LINENO "configure"
6003 #include "confdefs.h"
6005 /* Override any gcc2 internal prototype to avoid an error. */
6009 /* We use char because int might match the return type of a gcc2
6010 builtin and then its argument prototype would still apply. */
6012 #ifdef F77_DUMMY_MAIN
6016 int F77_DUMMY_MAIN() { return 1; }
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028 (eval $ac_link) 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -s conftest$ac_exeext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6039 # NetBSD and OpenBSD have a broken linker that does not
6040 # recognize dependent libraries
6041 case $host_os in netbsd* | openbsd* )
6044 *) pgac_lib=" -lcurses" ;;
6048 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6052 echo "$as_me: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$pgac_save_LIBS
6059 LIBS=$pgac_save_LIBS
6063 if test "$pgac_cv_check_readline" != no ; then
6065 cat >>confdefs.h <<\_ACEOF
6066 #define HAVE_LIBREADLINE 1
6069 LIBS="$pgac_cv_check_readline $LIBS"
6070 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6071 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6073 echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6
6076 if test x"$pgac_cv_check_readline" = x"no"; then
6077 { { echo "$as_me:$LINENO: 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." >&5
6081 echo "$as_me: error: readline library not found
6082 If you have readline already installed, see config.log for details on the
6083 failure. It is possible the compiler isn't looking in the proper directory.
6084 Use --without-readline to disable readline support." >&2;}
6085 { (exit 1); exit 1; }; }
6089 if test "$with_zlib" = yes; then
6091 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6092 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6093 if test "${ac_cv_lib_z_inflate+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_check_lib_save_LIBS=$LIBS
6098 cat >conftest.$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 #include "confdefs.h"
6102 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6109 #ifdef F77_DUMMY_MAIN
6113 int F77_DUMMY_MAIN() { return 1; }
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -s conftest$ac_exeext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_lib_z_inflate=yes
6137 echo "$as_me: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6139 ac_cv_lib_z_inflate=no
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142 LIBS=$ac_check_lib_save_LIBS
6144 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6145 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6146 if test $ac_cv_lib_z_inflate = yes; then
6147 cat >>confdefs.h <<_ACEOF
6154 { { echo "$as_me:$LINENO: 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." >&5
6158 echo "$as_me: error: zlib library not found
6159 If you have zlib already installed, see config.log for details on the
6160 failure. It is possible the compiler isn't looking in the proper directory.
6161 Use --without-zlib to disable zlib support." >&2;}
6162 { (exit 1); exit 1; }; }
6167 if test "$enable_spinlocks" = yes; then
6169 cat >>confdefs.h <<\_ACEOF
6170 #define HAVE_SPINLOCKS 1
6174 { echo "$as_me:$LINENO: WARNING:
6175 *** Not using spinlocks will cause poor performance." >&5
6176 echo "$as_me: WARNING:
6177 *** Not using spinlocks will cause poor performance." >&2;}
6180 if test "$with_krb4" = yes ; then
6182 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6183 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6184 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 ac_check_lib_save_LIBS=$LIBS
6189 cat >conftest.$ac_ext <<_ACEOF
6190 #line $LINENO "configure"
6191 #include "confdefs.h"
6193 /* Override any gcc2 internal prototype to avoid an error. */
6197 /* We use char because int might match the return type of a gcc2
6198 builtin and then its argument prototype would still apply. */
6199 char des_encrypt ();
6200 #ifdef F77_DUMMY_MAIN
6204 int F77_DUMMY_MAIN() { return 1; }
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_lib_des_des_encrypt=yes
6228 echo "$as_me: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6230 ac_cv_lib_des_des_encrypt=no
6232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6233 LIBS=$ac_check_lib_save_LIBS
6235 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6236 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6237 if test $ac_cv_lib_des_des_encrypt = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define HAVE_LIBDES 1
6245 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6246 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6247 { (exit 1); exit 1; }; }
6251 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6252 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6253 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 ac_check_lib_save_LIBS=$LIBS
6258 cat >conftest.$ac_ext <<_ACEOF
6259 #line $LINENO "configure"
6260 #include "confdefs.h"
6262 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6268 char krb_sendauth ();
6269 #ifdef F77_DUMMY_MAIN
6273 int F77_DUMMY_MAIN() { return 1; }
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_lib_krb_krb_sendauth=yes
6297 echo "$as_me: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 ac_cv_lib_krb_krb_sendauth=no
6301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302 LIBS=$ac_check_lib_save_LIBS
6304 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6305 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6306 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define HAVE_LIBKRB 1
6314 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6315 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6316 { (exit 1); exit 1; }; }
6320 for ac_func in gethostname
6322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6323 echo "$as_me:$LINENO: checking for $ac_func" >&5
6324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_var+set}\" = set"; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func (); below. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6343 #ifdef F77_DUMMY_MAIN
6347 int F77_DUMMY_MAIN() { return 1; }
6352 /* The GNU C library defines this for functions which it implements
6353 to always fail with ENOSYS. Some functions are actually named
6354 something starting with __ and the normal name is an alias. */
6355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6365 rm -f conftest.$ac_objext conftest$ac_exeext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367 (eval $ac_link) 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 eval "$as_ac_var=yes"
6379 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 eval "$as_ac_var=no"
6383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6387 if test `eval echo '${'$as_ac_var'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6393 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6400 if test "$with_krb5" = yes ; then
6401 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6402 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6403 if test "${ac_cv_search_com_err+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_func_search_save_LIBS=$LIBS
6407 ac_cv_search_com_err=no
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6410 #include "confdefs.h"
6412 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6419 #ifdef F77_DUMMY_MAIN
6423 int F77_DUMMY_MAIN() { return 1; }
6433 rm -f conftest.$ac_objext conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_search_com_err="none required"
6447 echo "$as_me: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6451 if test "$ac_cv_search_com_err" = no; then
6452 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6454 cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 #include "confdefs.h"
6458 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6465 #ifdef F77_DUMMY_MAIN
6469 int F77_DUMMY_MAIN() { return 1; }
6479 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_search_com_err="-l$ac_lib"
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 LIBS=$ac_func_search_save_LIBS
6502 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6503 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6504 if test "$ac_cv_search_com_err" != no; then
6505 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6508 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6509 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6510 { (exit 1); exit 1; }; }
6513 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6514 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6515 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_func_search_save_LIBS=$LIBS
6519 ac_cv_search_krb5_encrypt=no
6520 cat >conftest.$ac_ext <<_ACEOF
6521 #line $LINENO "configure"
6522 #include "confdefs.h"
6524 /* Override any gcc2 internal prototype to avoid an error. */
6528 /* We use char because int might match the return type of a gcc2
6529 builtin and then its argument prototype would still apply. */
6530 char krb5_encrypt ();
6531 #ifdef F77_DUMMY_MAIN
6535 int F77_DUMMY_MAIN() { return 1; }
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest$ac_exeext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_search_krb5_encrypt="none required"
6559 echo "$as_me: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6563 if test "$ac_cv_search_krb5_encrypt" = no; then
6564 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char krb5_encrypt ();
6577 #ifdef F77_DUMMY_MAIN
6581 int F77_DUMMY_MAIN() { return 1; }
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -s conftest$ac_exeext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 ac_cv_search_krb5_encrypt="-l$ac_lib"
6606 echo "$as_me: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6612 LIBS=$ac_func_search_save_LIBS
6614 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6615 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6616 if test "$ac_cv_search_krb5_encrypt" != no; then
6617 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6620 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6621 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6622 { (exit 1); exit 1; }; }
6625 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6626 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6627 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_func_search_save_LIBS=$LIBS
6631 ac_cv_search_krb5_sendauth=no
6632 cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 #include "confdefs.h"
6636 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6642 char krb5_sendauth ();
6643 #ifdef F77_DUMMY_MAIN
6647 int F77_DUMMY_MAIN() { return 1; }
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_search_krb5_sendauth="none required"
6671 echo "$as_me: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 if test "$ac_cv_search_krb5_sendauth" = no; then
6676 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6678 cat >conftest.$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6682 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6688 char krb5_sendauth ();
6689 #ifdef F77_DUMMY_MAIN
6693 int F77_DUMMY_MAIN() { return 1; }
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_search_krb5_sendauth="-l$ac_lib"
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_func_search_save_LIBS
6726 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6727 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6728 if test "$ac_cv_search_krb5_sendauth" != no; then
6729 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6732 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6733 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6734 { (exit 1); exit 1; }; }
6739 if test "$with_openssl" = yes ; then
6741 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6742 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6743 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 ac_check_lib_save_LIBS=$LIBS
6747 LIBS="-lcrypto $LIBS"
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line $LINENO "configure"
6750 #include "confdefs.h"
6752 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6758 char CRYPTO_new_ex_data ();
6759 #ifdef F77_DUMMY_MAIN
6763 int F77_DUMMY_MAIN() { return 1; }
6768 CRYPTO_new_ex_data ();
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6787 echo "$as_me: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 LIBS=$ac_check_lib_save_LIBS
6794 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6795 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6796 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_LIBCRYPTO 1
6801 LIBS="-lcrypto $LIBS"
6804 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6805 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6806 { (exit 1); exit 1; }; }
6810 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6811 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6812 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_check_lib_save_LIBS=$LIBS
6817 cat >conftest.$ac_ext <<_ACEOF
6818 #line $LINENO "configure"
6819 #include "confdefs.h"
6821 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6827 char SSL_library_init ();
6828 #ifdef F77_DUMMY_MAIN
6832 int F77_DUMMY_MAIN() { return 1; }
6837 SSL_library_init ();
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844 (eval $ac_link) 2>&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -s conftest$ac_exeext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_lib_ssl_SSL_library_init=yes
6856 echo "$as_me: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 ac_cv_lib_ssl_SSL_library_init=no
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_check_lib_save_LIBS
6863 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6864 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6865 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define HAVE_LIBSSL 1
6873 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6874 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6875 { (exit 1); exit 1; }; }
6880 if test "$with_pam" = yes ; then
6882 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6883 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6884 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_check_lib_save_LIBS=$LIBS
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6893 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6900 #ifdef F77_DUMMY_MAIN
6904 int F77_DUMMY_MAIN() { return 1; }
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916 (eval $ac_link) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest$ac_exeext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_lib_pam_pam_start=yes
6928 echo "$as_me: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 ac_cv_lib_pam_pam_start=no
6932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6935 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6936 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6937 if test $ac_cv_lib_pam_pam_start = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define HAVE_LIBPAM 1
6945 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6946 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6947 { (exit 1); exit 1; }; }
6957 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6959 if test "${ac_cv_header_stdc+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 cat >conftest.$ac_ext <<_ACEOF
6963 #line $LINENO "configure"
6964 #include "confdefs.h"
6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6974 egrep -v '^ *\+' conftest.er1 >conftest.err
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } >/dev/null; then
6979 if test -s conftest.err; then
6980 ac_cpp_err=$ac_c_preproc_warn_flag
6987 if test -z "$ac_cpp_err"; then
6988 ac_cv_header_stdc=yes
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 ac_cv_header_stdc=no
6994 rm -f conftest.err conftest.$ac_ext
6996 if test $ac_cv_header_stdc = yes; then
6997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6998 cat >conftest.$ac_ext <<_ACEOF
6999 #line $LINENO "configure"
7000 #include "confdefs.h"
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 egrep "memchr" >/dev/null 2>&1; then
7008 ac_cv_header_stdc=no
7014 if test $ac_cv_header_stdc = yes; then
7015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7016 cat >conftest.$ac_ext <<_ACEOF
7017 #line $LINENO "configure"
7018 #include "confdefs.h"
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 egrep "free" >/dev/null 2>&1; then
7026 ac_cv_header_stdc=no
7032 if test $ac_cv_header_stdc = yes; then
7033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7034 if test "$cross_compiling" = yes; then
7037 cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 #include "confdefs.h"
7041 #if ((' ' & 0x0FF) == 0x020)
7042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7045 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7046 || ('j' <= (c) && (c) <= 'r') \
7047 || ('s' <= (c) && (c) <= 'z'))
7048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7056 for (i = 0; i < 256; i++)
7057 if (XOR (islower (i), ISLOWER (i))
7058 || toupper (i) != TOUPPER (i))
7063 rm -f conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7076 echo "$as_me: program exited with status $ac_status" >&5
7077 echo "$as_me: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7080 ac_cv_header_stdc=no
7082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7086 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7087 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7088 if test $ac_cv_header_stdc = yes; then
7090 cat >>confdefs.h <<\_ACEOF
7091 #define STDC_HEADERS 1
7096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7107 inttypes.h stdint.h unistd.h
7109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110 echo "$as_me:$LINENO: checking for $ac_header" >&5
7111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 #include "confdefs.h"
7118 $ac_includes_default
7120 #include <$ac_header>
7122 rm -f conftest.$ac_objext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124 (eval $ac_compile) 2>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 eval "$as_ac_Header=yes"
7136 echo "$as_me: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7138 eval "$as_ac_Header=no"
7140 rm -f conftest.$ac_objext conftest.$ac_ext
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7145 cat >>confdefs.h <<_ACEOF
7146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7175 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
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179 echo "$as_me:$LINENO: checking for $ac_header" >&5
7180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7187 # Is the header compilable?
7188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 $ac_includes_default
7194 #include <$ac_header>
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_header_compiler=yes
7210 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 ac_header_compiler=no
7214 rm -f conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7216 echo "${ECHO_T}$ac_header_compiler" >&6
7218 # Is the header present?
7219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224 #include <$ac_header>
7226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7229 egrep -v '^ *\+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } >/dev/null; then
7234 if test -s conftest.err; then
7235 ac_cpp_err=$ac_c_preproc_warn_flag
7242 if test -z "$ac_cpp_err"; then
7243 ac_header_preproc=yes
7245 echo "$as_me: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 ac_header_preproc=no
7249 rm -f conftest.err conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7251 echo "${ECHO_T}$ac_header_preproc" >&6
7253 # So? What about this header?
7254 case $ac_header_compiler:$ac_header_preproc in
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 eval "$as_ac_Header=$ac_header_preproc"
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7290 # netinet/in.h is included first.
7292 for ac_header in netinet/in.h
7294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296 echo "$as_me:$LINENO: checking for $ac_header" >&5
7297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7304 # Is the header compilable?
7305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line $LINENO "configure"
7309 #include "confdefs.h"
7310 $ac_includes_default
7311 #include <$ac_header>
7313 rm -f conftest.$ac_objext
7314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -s conftest.$ac_objext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 ac_header_compiler=yes
7327 echo "$as_me: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 ac_header_compiler=no
7331 rm -f conftest.$ac_objext conftest.$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7333 echo "${ECHO_T}$ac_header_compiler" >&6
7335 # Is the header present?
7336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7338 cat >conftest.$ac_ext <<_ACEOF
7339 #line $LINENO "configure"
7340 #include "confdefs.h"
7341 #include <$ac_header>
7343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7346 egrep -v '^ *\+' conftest.er1 >conftest.err
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } >/dev/null; then
7351 if test -s conftest.err; then
7352 ac_cpp_err=$ac_c_preproc_warn_flag
7359 if test -z "$ac_cpp_err"; then
7360 ac_header_preproc=yes
7362 echo "$as_me: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 ac_header_preproc=no
7366 rm -f conftest.err conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7368 echo "${ECHO_T}$ac_header_preproc" >&6
7370 # So? What about this header?
7371 case $ac_header_compiler:$ac_header_preproc in
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7385 echo "$as_me:$LINENO: checking for $ac_header" >&5
7386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 eval "$as_ac_Header=$ac_header_preproc"
7392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397 cat >>confdefs.h <<_ACEOF
7398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7406 for ac_header in netinet/tcp.h
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 $ac_includes_default
7418 #ifdef HAVE_NETINET_IN_H
7419 #include <netinet/in.h>
7423 #include <$ac_header>
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 eval "$as_ac_Header=yes"
7439 echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 eval "$as_ac_Header=no"
7443 rm -f conftest.$ac_objext conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448 cat >>confdefs.h <<_ACEOF
7449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 if test "$with_readline" = yes; then
7459 for ac_header in readline/readline.h
7461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7463 echo "$as_me:$LINENO: checking for $ac_header" >&5
7464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7471 # Is the header compilable?
7472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7474 cat >conftest.$ac_ext <<_ACEOF
7475 #line $LINENO "configure"
7476 #include "confdefs.h"
7477 $ac_includes_default
7478 #include <$ac_header>
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -s conftest.$ac_objext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_header_compiler=yes
7494 echo "$as_me: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7496 ac_header_compiler=no
7498 rm -f conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7500 echo "${ECHO_T}$ac_header_compiler" >&6
7502 # Is the header present?
7503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 #include "confdefs.h"
7508 #include <$ac_header>
7510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7513 egrep -v '^ *\+' conftest.er1 >conftest.err
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } >/dev/null; then
7518 if test -s conftest.err; then
7519 ac_cpp_err=$ac_c_preproc_warn_flag
7526 if test -z "$ac_cpp_err"; then
7527 ac_header_preproc=yes
7529 echo "$as_me: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 ac_header_preproc=no
7533 rm -f conftest.err conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6
7537 # So? What about this header?
7538 case $ac_header_compiler:$ac_header_preproc in
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7552 echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 eval "$as_ac_Header=$ac_header_preproc"
7559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7564 cat >>confdefs.h <<_ACEOF
7565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7570 for ac_header in editline/readline.h
7572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7574 echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7582 # Is the header compilable?
7583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7585 cat >conftest.$ac_ext <<_ACEOF
7586 #line $LINENO "configure"
7587 #include "confdefs.h"
7588 $ac_includes_default
7589 #include <$ac_header>
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_header_compiler=yes
7605 echo "$as_me: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 ac_header_compiler=no
7609 rm -f conftest.$ac_objext conftest.$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6
7613 # Is the header present?
7614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line $LINENO "configure"
7618 #include "confdefs.h"
7619 #include <$ac_header>
7621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7624 egrep -v '^ *\+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } >/dev/null; then
7629 if test -s conftest.err; then
7630 ac_cpp_err=$ac_c_preproc_warn_flag
7637 if test -z "$ac_cpp_err"; then
7638 ac_header_preproc=yes
7640 echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 ac_header_preproc=no
7644 rm -f conftest.err conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7646 echo "${ECHO_T}$ac_header_preproc" >&6
7648 # So? What about this header?
7649 case $ac_header_compiler:$ac_header_preproc in
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7663 echo "$as_me:$LINENO: checking for $ac_header" >&5
7664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 eval "$as_ac_Header=$ac_header_preproc"
7670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681 for ac_header in readline.h
7683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7685 echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7693 # Is the header compilable?
7694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7699 $ac_includes_default
7700 #include <$ac_header>
7702 rm -f conftest.$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 ac_header_compiler=yes
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 ac_header_compiler=no
7720 rm -f conftest.$ac_objext conftest.$ac_ext
7721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7722 echo "${ECHO_T}$ac_header_compiler" >&6
7724 # Is the header present?
7725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 #include "confdefs.h"
7730 #include <$ac_header>
7732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7735 egrep -v '^ *\+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } >/dev/null; then
7740 if test -s conftest.err; then
7741 ac_cpp_err=$ac_c_preproc_warn_flag
7748 if test -z "$ac_cpp_err"; then
7749 ac_header_preproc=yes
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 ac_header_preproc=no
7755 rm -f conftest.err conftest.$ac_ext
7756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7757 echo "${ECHO_T}$ac_header_preproc" >&6
7759 # So? What about this header?
7760 case $ac_header_compiler:$ac_header_preproc in
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7774 echo "$as_me:$LINENO: checking for $ac_header" >&5
7775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 eval "$as_ac_Header=$ac_header_preproc"
7781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7786 cat >>confdefs.h <<_ACEOF
7787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791 { { echo "$as_me:$LINENO: 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." >&5
7795 echo "$as_me: error: readline header not found
7796 If you have readline already installed, see config.log for details on the
7797 failure. It is possible the compiler isn't looking in the proper directory.
7798 Use --without-readline to disable readline support." >&2;}
7799 { (exit 1); exit 1; }; }
7813 for ac_header in readline/history.h
7815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7817 echo "$as_me:$LINENO: checking for $ac_header" >&5
7818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7825 # Is the header compilable?
7826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 #include "confdefs.h"
7831 $ac_includes_default
7832 #include <$ac_header>
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7848 echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 ac_header_compiler=no
7852 rm -f conftest.$ac_objext conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7854 echo "${ECHO_T}$ac_header_compiler" >&6
7856 # Is the header present?
7857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7859 cat >conftest.$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7861 #include "confdefs.h"
7862 #include <$ac_header>
7864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7867 egrep -v '^ *\+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } >/dev/null; then
7872 if test -s conftest.err; then
7873 ac_cpp_err=$ac_c_preproc_warn_flag
7880 if test -z "$ac_cpp_err"; then
7881 ac_header_preproc=yes
7883 echo "$as_me: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 ac_header_preproc=no
7887 rm -f conftest.err conftest.$ac_ext
7888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7889 echo "${ECHO_T}$ac_header_preproc" >&6
7891 # So? What about this header?
7892 case $ac_header_compiler:$ac_header_preproc in
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7906 echo "$as_me:$LINENO: checking for $ac_header" >&5
7907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 eval "$as_ac_Header=$ac_header_preproc"
7913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7918 cat >>confdefs.h <<_ACEOF
7919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7924 for ac_header in editline/history.h
7926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7928 echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7936 # Is the header compilable?
7937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 #include "confdefs.h"
7942 $ac_includes_default
7943 #include <$ac_header>
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_header_compiler=yes
7959 echo "$as_me: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 ac_header_compiler=no
7963 rm -f conftest.$ac_objext conftest.$ac_ext
7964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7965 echo "${ECHO_T}$ac_header_compiler" >&6
7967 # Is the header present?
7968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7971 #line $LINENO "configure"
7972 #include "confdefs.h"
7973 #include <$ac_header>
7975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7978 egrep -v '^ *\+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } >/dev/null; then
7983 if test -s conftest.err; then
7984 ac_cpp_err=$ac_c_preproc_warn_flag
7991 if test -z "$ac_cpp_err"; then
7992 ac_header_preproc=yes
7994 echo "$as_me: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7996 ac_header_preproc=no
7998 rm -f conftest.err conftest.$ac_ext
7999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8000 echo "${ECHO_T}$ac_header_preproc" >&6
8002 # So? What about this header?
8003 case $ac_header_compiler:$ac_header_preproc in
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8017 echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 eval "$as_ac_Header=$ac_header_preproc"
8024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8029 cat >>confdefs.h <<_ACEOF
8030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035 for ac_header in history.h
8037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8039 echo "$as_me:$LINENO: checking for $ac_header" >&5
8040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8047 # Is the header compilable?
8048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 #include "confdefs.h"
8053 $ac_includes_default
8054 #include <$ac_header>
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -s conftest.$ac_objext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_header_compiler=yes
8070 echo "$as_me: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8072 ac_header_compiler=no
8074 rm -f conftest.$ac_objext conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8076 echo "${ECHO_T}$ac_header_compiler" >&6
8078 # Is the header present?
8079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 #include "confdefs.h"
8084 #include <$ac_header>
8086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8089 egrep -v '^ *\+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } >/dev/null; then
8094 if test -s conftest.err; then
8095 ac_cpp_err=$ac_c_preproc_warn_flag
8102 if test -z "$ac_cpp_err"; then
8103 ac_header_preproc=yes
8105 echo "$as_me: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8107 ac_header_preproc=no
8109 rm -f conftest.err conftest.$ac_ext
8110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8111 echo "${ECHO_T}$ac_header_preproc" >&6
8113 # So? What about this header?
8114 case $ac_header_compiler:$ac_header_preproc in
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8128 echo "$as_me:$LINENO: checking for $ac_header" >&5
8129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 eval "$as_ac_Header=$ac_header_preproc"
8135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8145 { { echo "$as_me:$LINENO: 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." >&5
8149 echo "$as_me: error: history header not found
8150 If you have readline already installed, see config.log for details on the
8151 failure. It is possible the compiler isn't looking in the proper directory.
8152 Use --without-readline to disable readline support." >&2;}
8153 { (exit 1); exit 1; }; }
8168 if test "$with_zlib" = yes; then
8169 if test "${ac_cv_header_zlib_h+set}" = set; then
8170 echo "$as_me:$LINENO: checking for zlib.h" >&5
8171 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8172 if test "${ac_cv_header_zlib_h+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8176 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8178 # Is the header compilable?
8179 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8180 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8183 #include "confdefs.h"
8184 $ac_includes_default
8187 rm -f conftest.$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189 (eval $ac_compile) 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_header_compiler=yes
8201 echo "$as_me: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8203 ac_header_compiler=no
8205 rm -f conftest.$ac_objext conftest.$ac_ext
8206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8207 echo "${ECHO_T}$ac_header_compiler" >&6
8209 # Is the header present?
8210 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8211 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8214 #include "confdefs.h"
8217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8220 egrep -v '^ *\+' conftest.er1 >conftest.err
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } >/dev/null; then
8225 if test -s conftest.err; then
8226 ac_cpp_err=$ac_c_preproc_warn_flag
8233 if test -z "$ac_cpp_err"; then
8234 ac_header_preproc=yes
8236 echo "$as_me: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8238 ac_header_preproc=no
8240 rm -f conftest.err conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8242 echo "${ECHO_T}$ac_header_preproc" >&6
8244 # So? What about this header?
8245 case $ac_header_compiler:$ac_header_preproc in
8247 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8248 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8250 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8252 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8253 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8254 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8255 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8257 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8259 echo "$as_me:$LINENO: checking for zlib.h" >&5
8260 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_zlib_h+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_cv_header_zlib_h=$ac_header_preproc
8266 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8267 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8270 if test $ac_cv_header_zlib_h = yes; then
8273 { { echo "$as_me:$LINENO: 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." >&5
8277 echo "$as_me: error: zlib header not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure. It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&2;}
8281 { (exit 1); exit 1; }; }
8287 if test "$with_krb4" = yes ; then
8288 if test "${ac_cv_header_krb_h+set}" = set; then
8289 echo "$as_me:$LINENO: checking for krb.h" >&5
8290 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8291 if test "${ac_cv_header_krb_h+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8295 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8297 # Is the header compilable?
8298 echo "$as_me:$LINENO: checking krb.h usability" >&5
8299 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8302 #include "confdefs.h"
8303 $ac_includes_default
8306 rm -f conftest.$ac_objext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8308 (eval $ac_compile) 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_header_compiler=yes
8320 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 ac_header_compiler=no
8324 rm -f conftest.$ac_objext conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8326 echo "${ECHO_T}$ac_header_compiler" >&6
8328 # Is the header present?
8329 echo "$as_me:$LINENO: checking krb.h presence" >&5
8330 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8331 cat >conftest.$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8333 #include "confdefs.h"
8336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8339 egrep -v '^ *\+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } >/dev/null; then
8344 if test -s conftest.err; then
8345 ac_cpp_err=$ac_c_preproc_warn_flag
8352 if test -z "$ac_cpp_err"; then
8353 ac_header_preproc=yes
8355 echo "$as_me: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8357 ac_header_preproc=no
8359 rm -f conftest.err conftest.$ac_ext
8360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8361 echo "${ECHO_T}$ac_header_preproc" >&6
8363 # So? What about this header?
8364 case $ac_header_compiler:$ac_header_preproc in
8366 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8367 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8369 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8371 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8372 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8374 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8375 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8376 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8378 echo "$as_me:$LINENO: checking for krb.h" >&5
8379 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8380 if test "${ac_cv_header_krb_h+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 ac_cv_header_krb_h=$ac_header_preproc
8385 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8386 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8389 if test $ac_cv_header_krb_h = yes; then
8392 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8393 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8394 { (exit 1); exit 1; }; }
8400 if test "$with_krb5" = yes ; then
8401 if test "${ac_cv_header_krb5_h+set}" = set; then
8402 echo "$as_me:$LINENO: checking for krb5.h" >&5
8403 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8404 if test "${ac_cv_header_krb5_h+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8408 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8410 # Is the header compilable?
8411 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8412 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8413 cat >conftest.$ac_ext <<_ACEOF
8414 #line $LINENO "configure"
8415 #include "confdefs.h"
8416 $ac_includes_default
8419 rm -f conftest.$ac_objext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8421 (eval $ac_compile) 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -s conftest.$ac_objext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_header_compiler=yes
8433 echo "$as_me: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8435 ac_header_compiler=no
8437 rm -f conftest.$ac_objext conftest.$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6
8441 # Is the header present?
8442 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8443 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8445 #line $LINENO "configure"
8446 #include "confdefs.h"
8449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8452 egrep -v '^ *\+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } >/dev/null; then
8457 if test -s conftest.err; then
8458 ac_cpp_err=$ac_c_preproc_warn_flag
8465 if test -z "$ac_cpp_err"; then
8466 ac_header_preproc=yes
8468 echo "$as_me: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 ac_header_preproc=no
8472 rm -f conftest.err conftest.$ac_ext
8473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8474 echo "${ECHO_T}$ac_header_preproc" >&6
8476 # So? What about this header?
8477 case $ac_header_compiler:$ac_header_preproc in
8479 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8480 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8482 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8484 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8485 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8487 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8491 echo "$as_me:$LINENO: checking for krb5.h" >&5
8492 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8493 if test "${ac_cv_header_krb5_h+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 ac_cv_header_krb5_h=$ac_header_preproc
8498 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8499 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8502 if test $ac_cv_header_krb5_h = yes; then
8505 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8506 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8507 { (exit 1); exit 1; }; }
8511 if test "${ac_cv_header_com_err_h+set}" = set; then
8512 echo "$as_me:$LINENO: checking for com_err.h" >&5
8513 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8514 if test "${ac_cv_header_com_err_h+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8518 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8520 # Is the header compilable?
8521 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8522 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8525 #include "confdefs.h"
8526 $ac_includes_default
8527 #include <com_err.h>
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -s conftest.$ac_objext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_header_compiler=yes
8543 echo "$as_me: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8545 ac_header_compiler=no
8547 rm -f conftest.$ac_objext conftest.$ac_ext
8548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8549 echo "${ECHO_T}$ac_header_compiler" >&6
8551 # Is the header present?
8552 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8553 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8554 cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8556 #include "confdefs.h"
8557 #include <com_err.h>
8559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8562 egrep -v '^ *\+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } >/dev/null; then
8567 if test -s conftest.err; then
8568 ac_cpp_err=$ac_c_preproc_warn_flag
8575 if test -z "$ac_cpp_err"; then
8576 ac_header_preproc=yes
8578 echo "$as_me: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8580 ac_header_preproc=no
8582 rm -f conftest.err conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8584 echo "${ECHO_T}$ac_header_preproc" >&6
8586 # So? What about this header?
8587 case $ac_header_compiler:$ac_header_preproc in
8589 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8590 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8594 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8595 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8597 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8599 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8601 echo "$as_me:$LINENO: checking for com_err.h" >&5
8602 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8603 if test "${ac_cv_header_com_err_h+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 ac_cv_header_com_err_h=$ac_header_preproc
8608 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8609 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8612 if test $ac_cv_header_com_err_h = yes; then
8615 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8616 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8617 { (exit 1); exit 1; }; }
8623 if test "$with_openssl" = yes ; then
8624 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8625 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8626 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8627 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8631 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8633 # Is the header compilable?
8634 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8635 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8636 cat >conftest.$ac_ext <<_ACEOF
8637 #line $LINENO "configure"
8638 #include "confdefs.h"
8639 $ac_includes_default
8640 #include <openssl/ssl.h>
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler=yes
8656 echo "$as_me: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 ac_header_compiler=no
8660 rm -f conftest.$ac_objext conftest.$ac_ext
8661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8662 echo "${ECHO_T}$ac_header_compiler" >&6
8664 # Is the header present?
8665 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8666 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8670 #include <openssl/ssl.h>
8672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8675 egrep -v '^ *\+' conftest.er1 >conftest.err
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } >/dev/null; then
8680 if test -s conftest.err; then
8681 ac_cpp_err=$ac_c_preproc_warn_flag
8688 if test -z "$ac_cpp_err"; then
8689 ac_header_preproc=yes
8691 echo "$as_me: failed program was:" >&5
8692 cat conftest.$ac_ext >&5
8693 ac_header_preproc=no
8695 rm -f conftest.err conftest.$ac_ext
8696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8697 echo "${ECHO_T}$ac_header_preproc" >&6
8699 # So? What about this header?
8700 case $ac_header_compiler:$ac_header_preproc in
8702 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8703 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8705 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8707 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8708 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8710 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8714 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8715 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8716 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8721 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8722 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8725 if test $ac_cv_header_openssl_ssl_h = yes; then
8728 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8729 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8730 { (exit 1); exit 1; }; }
8734 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8735 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8736 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8737 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8741 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8743 # Is the header compilable?
8744 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8745 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8748 #include "confdefs.h"
8749 $ac_includes_default
8750 #include <openssl/err.h>
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_header_compiler=yes
8766 echo "$as_me: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 ac_header_compiler=no
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8772 echo "${ECHO_T}$ac_header_compiler" >&6
8774 # Is the header present?
8775 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8776 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8778 #line $LINENO "configure"
8779 #include "confdefs.h"
8780 #include <openssl/err.h>
8782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8785 egrep -v '^ *\+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } >/dev/null; then
8790 if test -s conftest.err; then
8791 ac_cpp_err=$ac_c_preproc_warn_flag
8798 if test -z "$ac_cpp_err"; then
8799 ac_header_preproc=yes
8801 echo "$as_me: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8803 ac_header_preproc=no
8805 rm -f conftest.err conftest.$ac_ext
8806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8807 echo "${ECHO_T}$ac_header_preproc" >&6
8809 # So? What about this header?
8810 case $ac_header_compiler:$ac_header_preproc in
8812 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8813 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8815 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8817 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8818 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8820 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8824 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8825 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8826 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_cv_header_openssl_err_h=$ac_header_preproc
8831 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8832 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8835 if test $ac_cv_header_openssl_err_h = yes; then
8838 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8839 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8840 { (exit 1); exit 1; }; }
8846 if test "$with_pam" = yes ; then
8848 for ac_header in security/pam_appl.h
8850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo "$as_me:$LINENO: checking for $ac_header" >&5
8853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8860 # Is the header compilable?
8861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8864 #line $LINENO "configure"
8865 #include "confdefs.h"
8866 $ac_includes_default
8867 #include <$ac_header>
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_header_compiler=yes
8883 echo "$as_me: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 ac_header_compiler=no
8887 rm -f conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8889 echo "${ECHO_T}$ac_header_compiler" >&6
8891 # Is the header present?
8892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8896 #include "confdefs.h"
8897 #include <$ac_header>
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8902 egrep -v '^ *\+' conftest.er1 >conftest.err
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } >/dev/null; then
8907 if test -s conftest.err; then
8908 ac_cpp_err=$ac_c_preproc_warn_flag
8915 if test -z "$ac_cpp_err"; then
8916 ac_header_preproc=yes
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 ac_header_preproc=no
8922 rm -f conftest.err conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8924 echo "${ECHO_T}$ac_header_preproc" >&6
8926 # So? What about this header?
8927 case $ac_header_compiler:$ac_header_preproc in
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8941 echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 eval "$as_ac_Header=$ac_header_preproc"
8948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8953 cat >>confdefs.h <<_ACEOF
8954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8959 for ac_header in pam/pam_appl.h
8961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963 echo "$as_me:$LINENO: checking for $ac_header" >&5
8964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8971 # Is the header compilable?
8972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8975 #line $LINENO "configure"
8976 #include "confdefs.h"
8977 $ac_includes_default
8978 #include <$ac_header>
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_header_compiler=yes
8994 echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 ac_header_compiler=no
8998 rm -f conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000 echo "${ECHO_T}$ac_header_compiler" >&6
9002 # Is the header present?
9003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 #include "confdefs.h"
9008 #include <$ac_header>
9010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9013 egrep -v '^ *\+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } >/dev/null; then
9018 if test -s conftest.err; then
9019 ac_cpp_err=$ac_c_preproc_warn_flag
9026 if test -z "$ac_cpp_err"; then
9027 ac_header_preproc=yes
9029 echo "$as_me: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9031 ac_header_preproc=no
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9037 # So? What about this header?
9038 case $ac_header_compiler:$ac_header_preproc in
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 eval "$as_ac_Header=$ac_header_preproc"
9059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9069 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9070 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9071 { (exit 1); exit 1; }; }
9082 if test "$with_rendezvous" = yes ; then
9083 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9084 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9085 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9086 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9090 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9092 # Is the header compilable?
9093 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9094 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9097 #include "confdefs.h"
9098 $ac_includes_default
9099 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_header_compiler=yes
9115 echo "$as_me: failed program was:" >&5
9116 cat conftest.$ac_ext >&5
9117 ac_header_compiler=no
9119 rm -f conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121 echo "${ECHO_T}$ac_header_compiler" >&6
9123 # Is the header present?
9124 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9125 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9127 #line $LINENO "configure"
9128 #include "confdefs.h"
9129 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9134 egrep -v '^ *\+' conftest.er1 >conftest.err
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } >/dev/null; then
9139 if test -s conftest.err; then
9140 ac_cpp_err=$ac_c_preproc_warn_flag
9147 if test -z "$ac_cpp_err"; then
9148 ac_header_preproc=yes
9150 echo "$as_me: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9152 ac_header_preproc=no
9154 rm -f conftest.err conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9156 echo "${ECHO_T}$ac_header_preproc" >&6
9158 # So? What about this header?
9159 case $ac_header_compiler:$ac_header_preproc in
9161 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9162 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9173 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9174 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9175 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9180 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9181 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9184 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9187 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9188 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9189 { (exit 1); exit 1; }; }
9197 ## Types, structures, compiler characteristics
9201 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9203 if test "${ac_cv_c_const+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 cat >conftest.$ac_ext <<_ACEOF
9207 #line $LINENO "configure"
9208 #include "confdefs.h"
9210 #ifdef F77_DUMMY_MAIN
9214 int F77_DUMMY_MAIN() { return 1; }
9219 /* FIXME: Include the comments suggested by Paul. */
9221 /* Ultrix mips cc rejects this. */
9222 typedef int charset[2];
9224 /* SunOS 4.1.1 cc rejects this. */
9225 char const *const *ccp;
9227 /* NEC SVR4.0.2 mips cc rejects this. */
9228 struct point {int x, y;};
9229 static struct point const zero = {0,0};
9230 /* AIX XL C 1.02.0.0 rejects this.
9231 It does not let you subtract one const X* pointer from another in
9232 an arm of an if-expression whose if-part is not a constant
9234 const char *g = "string";
9235 ccp = &g + (g ? g-g : 0);
9236 /* HPUX 7.0 cc rejects these. */
9239 ccp = (char const *const *) p;
9240 { /* SCO 3.2v4 cc rejects this. */
9242 char const *s = 0 ? (char *) 0 : (char const *) 0;
9246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9248 const int *foo = &x[0];
9251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9252 typedef const int *iptr;
9256 { /* AIX XL C 1.02.0.0 rejects this saying
9257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9258 struct s { int j; const int *ap[3]; };
9259 struct s *b; b->j = 5;
9261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9270 rm -f conftest.$ac_objext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9272 (eval $ac_compile) 2>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -s conftest.$ac_objext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9284 echo "$as_me: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9288 rm -f conftest.$ac_objext conftest.$ac_ext
9290 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9291 echo "${ECHO_T}$ac_cv_c_const" >&6
9292 if test $ac_cv_c_const = no; then
9294 cat >>confdefs.h <<\_ACEOF
9300 echo "$as_me:$LINENO: checking for inline" >&5
9301 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9302 if test "${ac_cv_c_inline+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 for ac_kw in inline __inline__ __inline; do
9307 cat >conftest.$ac_ext <<_ACEOF
9308 #line $LINENO "configure"
9309 #include "confdefs.h"
9312 static $ac_kw foo_t static_foo () {return 0; }
9313 $ac_kw int foo () {return 0; }
9317 rm -f conftest.$ac_objext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9319 (eval $ac_compile) 2>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_c_inline=$ac_kw; break
9331 echo "$as_me: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 rm -f conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9339 echo "${ECHO_T}$ac_cv_c_inline" >&6
9340 case $ac_cv_c_inline in
9343 cat >>confdefs.h <<\_ACEOF
9347 *) cat >>confdefs.h <<_ACEOF
9348 #define inline $ac_cv_c_inline
9353 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9354 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9355 if test "${ac_cv_c_stringize+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 #include "confdefs.h"
9363 char *s = x(teststring);
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 egrep "#teststring" >/dev/null 2>&1; then
9367 ac_cv_c_stringize=no
9369 ac_cv_c_stringize=yes
9374 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9375 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9376 if test $ac_cv_c_stringize = yes; then
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_STRINGIZE 1
9384 echo "$as_me:$LINENO: checking for signed types" >&5
9385 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9386 if test "${pgac_cv_c_signed+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9391 #include "confdefs.h"
9393 #ifdef F77_DUMMY_MAIN
9397 int F77_DUMMY_MAIN() { return 1; }
9402 signed char c; signed short s; signed int i;
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409 (eval $ac_compile) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest.$ac_objext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 pgac_cv_c_signed=yes
9421 echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9428 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9429 if test x"$pgac_cv_c_signed" = xno ; then
9431 cat >>confdefs.h <<\_ACEOF
9436 echo "$as_me:$LINENO: checking for working volatile" >&5
9437 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9438 if test "${ac_cv_c_volatile+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9443 #include "confdefs.h"
9445 #ifdef F77_DUMMY_MAIN
9449 int F77_DUMMY_MAIN() { return 1; }
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -s conftest.$ac_objext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_cv_c_volatile=yes
9475 echo "$as_me: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9479 rm -f conftest.$ac_objext conftest.$ac_ext
9481 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9482 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9483 if test $ac_cv_c_volatile = no; then
9485 cat >>confdefs.h <<\_ACEOF
9491 echo "$as_me:$LINENO: checking for __func__" >&5
9492 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9493 if test "${pgac_cv_funcname_func_support+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9498 #include "confdefs.h"
9500 #ifdef F77_DUMMY_MAIN
9504 int F77_DUMMY_MAIN() { return 1; }
9509 printf("%s\n", __func__);
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -s conftest.$ac_objext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 pgac_cv_funcname_func_support=yes
9528 echo "$as_me: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 pgac_cv_funcname_func_support=no
9532 rm -f conftest.$ac_objext conftest.$ac_ext
9534 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9535 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9536 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_FUNCNAME__FUNC 1
9543 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9544 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9545 if test "${pgac_cv_funcname_function_support+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 #include "confdefs.h"
9552 #ifdef F77_DUMMY_MAIN
9556 int F77_DUMMY_MAIN() { return 1; }
9561 printf("%s\n", __FUNCTION__);
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568 (eval $ac_compile) 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 pgac_cv_funcname_function_support=yes
9580 echo "$as_me: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 pgac_cv_funcname_function_support=no
9584 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9587 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9588 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_FUNCNAME__FUNCTION 1
9596 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9597 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9598 if test "${ac_cv_struct_tm+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9604 #include <sys/types.h>
9607 #ifdef F77_DUMMY_MAIN
9611 int F77_DUMMY_MAIN() { return 1; }
9616 struct tm *tp; tp->tm_sec;
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_struct_tm=time.h
9635 echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 ac_cv_struct_tm=sys/time.h
9639 rm -f conftest.$ac_objext conftest.$ac_ext
9641 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9642 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9643 if test $ac_cv_struct_tm = sys/time.h; then
9645 cat >>confdefs.h <<\_ACEOF
9646 #define TM_IN_SYS_TIME 1
9651 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9652 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9653 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 #include <sys/types.h>
9660 #include <$ac_cv_struct_tm>
9663 #ifdef F77_DUMMY_MAIN
9667 int F77_DUMMY_MAIN() { return 1; }
9672 static struct tm ac_aggr;
9673 if (ac_aggr.tm_zone)
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681 (eval $ac_compile) 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_member_struct_tm_tm_zone=yes
9693 echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 ac_cv_member_struct_tm_tm_zone=no
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9700 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9701 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_STRUCT_TM_TM_ZONE 1
9710 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_TM_ZONE 1
9717 echo "$as_me:$LINENO: checking for tzname" >&5
9718 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9719 if test "${ac_cv_var_tzname+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 #include "confdefs.h"
9726 #ifndef tzname /* For SGI. */
9727 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9730 #ifdef F77_DUMMY_MAIN
9734 int F77_DUMMY_MAIN() { return 1; }
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_var_tzname=yes
9758 echo "$as_me: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9765 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9766 if test $ac_cv_var_tzname = yes; then
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_TZNAME 1
9774 echo "$as_me:$LINENO: checking for union semun" >&5
9775 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9776 if test "${ac_cv_type_union_semun+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 #include "confdefs.h"
9782 #include <sys/types.h>
9783 #include <sys/ipc.h>
9784 #include <sys/sem.h>
9786 #ifdef F77_DUMMY_MAIN
9790 int F77_DUMMY_MAIN() { return 1; }
9795 if ((union semun *) 0)
9797 if (sizeof (union semun))
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805 (eval $ac_compile) 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_type_union_semun=yes
9817 echo "$as_me: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9819 ac_cv_type_union_semun=no
9821 rm -f conftest.$ac_objext conftest.$ac_ext
9823 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9824 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9825 if test $ac_cv_type_union_semun = yes; then
9827 cat >>confdefs.h <<_ACEOF
9828 #define HAVE_UNION_SEMUN 1
9834 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9835 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9836 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 cat >conftest.$ac_ext <<_ACEOF
9840 #line $LINENO "configure"
9841 #include "confdefs.h"
9842 #include <sys/types.h>
9843 #ifdef HAVE_SYS_UN_H
9848 #ifdef F77_DUMMY_MAIN
9852 int F77_DUMMY_MAIN() { return 1; }
9857 if ((struct sockaddr_un *) 0)
9859 if (sizeof (struct sockaddr_un))
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_type_struct_sockaddr_un=yes
9879 echo "$as_me: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9881 ac_cv_type_struct_sockaddr_un=no
9883 rm -f conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9886 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9887 if test $ac_cv_type_struct_sockaddr_un = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_STRUCT_SOCKADDR_UN 1
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_UNIX_SOCKETS 1
9900 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9901 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9902 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 #include "confdefs.h"
9908 #include <sys/types.h>
9909 #ifdef HAVE_SYS_SOCKET_H
9910 #include <sys/socket.h>
9914 #ifdef F77_DUMMY_MAIN
9918 int F77_DUMMY_MAIN() { return 1; }
9923 if ((struct sockaddr_storage *) 0)
9925 if (sizeof (struct sockaddr_storage))
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_type_struct_sockaddr_storage=yes
9945 echo "$as_me: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 ac_cv_type_struct_sockaddr_storage=no
9949 rm -f conftest.$ac_objext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9952 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9953 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9962 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9963 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9964 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 cat >conftest.$ac_ext <<_ACEOF
9968 #line $LINENO "configure"
9969 #include "confdefs.h"
9970 #include <sys/types.h>
9971 #ifdef HAVE_SYS_SOCKET_H
9972 #include <sys/socket.h>
9976 #ifdef F77_DUMMY_MAIN
9980 int F77_DUMMY_MAIN() { return 1; }
9985 static struct sockaddr_storage ac_aggr;
9986 if (ac_aggr.ss_family)
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_member_struct_sockaddr_storage_ss_family=yes
10006 echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 ac_cv_member_struct_sockaddr_storage_ss_family=no
10010 rm -f conftest.$ac_objext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10013 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10014 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10022 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10023 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10024 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_SOCKET_H
10032 #include <sys/socket.h>
10036 #ifdef F77_DUMMY_MAIN
10037 # ifdef __cplusplus
10040 int F77_DUMMY_MAIN() { return 1; }
10045 static struct sockaddr_storage ac_aggr;
10046 if (ac_aggr.__ss_family)
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest.$ac_objext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10066 echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_member_struct_sockaddr_storage___ss_family=no
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10073 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10074 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10082 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10083 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10084 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10091 #ifdef HAVE_SYS_SOCKET_H
10092 #include <sys/socket.h>
10096 #ifdef F77_DUMMY_MAIN
10097 # ifdef __cplusplus
10100 int F77_DUMMY_MAIN() { return 1; }
10105 static struct sockaddr_storage ac_aggr;
10106 if (ac_aggr.ss_len)
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest.$ac_objext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10126 echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_member_struct_sockaddr_storage_ss_len=no
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10133 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10134 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10142 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10143 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10144 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <sys/types.h>
10151 #ifdef HAVE_SYS_SOCKET_H
10152 #include <sys/socket.h>
10156 #ifdef F77_DUMMY_MAIN
10157 # ifdef __cplusplus
10160 int F77_DUMMY_MAIN() { return 1; }
10165 static struct sockaddr_storage ac_aggr;
10166 if (ac_aggr.__ss_len)
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_member_struct_sockaddr_storage___ss_len=no
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10193 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10194 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10202 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10203 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10204 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <sys/types.h>
10211 #ifdef HAVE_SYS_SOCKET_H
10212 #include <sys/socket.h>
10216 #ifdef F77_DUMMY_MAIN
10217 # ifdef __cplusplus
10220 int F77_DUMMY_MAIN() { return 1; }
10225 static struct sockaddr ac_aggr;
10226 if (ac_aggr.sa_len)
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_member_struct_sockaddr_sa_len=yes
10246 echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_member_struct_sockaddr_sa_len=no
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10253 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10254 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10263 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10264 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10265 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10270 #include "confdefs.h"
10271 #include <sys/types.h>
10272 #include <sys/socket.h>
10276 #ifdef F77_DUMMY_MAIN
10277 # ifdef __cplusplus
10280 int F77_DUMMY_MAIN() { return 1; }
10285 if ((struct addrinfo *) 0)
10287 if (sizeof (struct addrinfo))
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_type_struct_addrinfo=yes
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ac_cv_type_struct_addrinfo=no
10311 rm -f conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10314 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10315 if test $ac_cv_type_struct_addrinfo = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318 #define HAVE_STRUCT_ADDRINFO 1
10325 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10326 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10327 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333 #include <sys/param.h>
10334 #include <sys/types.h>
10335 #include <sys/socket.h>
10336 #include <sys/ucred.h>
10338 #ifdef F77_DUMMY_MAIN
10339 # ifdef __cplusplus
10342 int F77_DUMMY_MAIN() { return 1; }
10347 if ((struct cmsgcred *) 0)
10349 if (sizeof (struct cmsgcred))
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_cv_type_struct_cmsgcred=yes
10369 echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 ac_cv_type_struct_cmsgcred=no
10373 rm -f conftest.$ac_objext conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10376 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10377 if test $ac_cv_type_struct_cmsgcred = yes; then
10379 cat >>confdefs.h <<_ACEOF
10380 #define HAVE_STRUCT_CMSGCRED 1
10385 echo "$as_me:$LINENO: checking for struct fcred" >&5
10386 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10387 if test "${ac_cv_type_struct_fcred+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 #include "confdefs.h"
10393 #include <sys/param.h>
10394 #include <sys/types.h>
10395 #include <sys/socket.h>
10396 #include <sys/ucred.h>
10398 #ifdef F77_DUMMY_MAIN
10399 # ifdef __cplusplus
10402 int F77_DUMMY_MAIN() { return 1; }
10407 if ((struct fcred *) 0)
10409 if (sizeof (struct fcred))
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417 (eval $ac_compile) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_cv_type_struct_fcred=yes
10429 echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 ac_cv_type_struct_fcred=no
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10435 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10436 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10437 if test $ac_cv_type_struct_fcred = yes; then
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_FCRED 1
10445 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10446 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10447 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 #include "confdefs.h"
10453 #include <sys/param.h>
10454 #include <sys/types.h>
10455 #include <sys/socket.h>
10456 #include <sys/ucred.h>
10458 #ifdef F77_DUMMY_MAIN
10459 # ifdef __cplusplus
10462 int F77_DUMMY_MAIN() { return 1; }
10467 if ((struct sockcred *) 0)
10469 if (sizeof (struct sockcred))
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_type_struct_sockcred=yes
10489 echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 ac_cv_type_struct_sockcred=no
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10496 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10497 if test $ac_cv_type_struct_sockcred = yes; then
10499 cat >>confdefs.h <<_ACEOF
10500 #define HAVE_STRUCT_SOCKCRED 1
10507 echo "$as_me:$LINENO: checking for struct option" >&5
10508 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10509 if test "${ac_cv_type_struct_option+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 #include "confdefs.h"
10515 #ifdef HAVE_GETOPT_H
10516 #include <getopt.h>
10519 #ifdef F77_DUMMY_MAIN
10520 # ifdef __cplusplus
10523 int F77_DUMMY_MAIN() { return 1; }
10528 if ((struct option *) 0)
10530 if (sizeof (struct option))
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_type_struct_option=yes
10550 echo "$as_me: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 ac_cv_type_struct_option=no
10554 rm -f conftest.$ac_objext conftest.$ac_ext
10556 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10557 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10558 if test $ac_cv_type_struct_option = yes; then
10560 cat >>confdefs.h <<_ACEOF
10561 #define HAVE_STRUCT_OPTION 1
10568 if test "$with_zlib" = yes; then
10569 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10570 # did not). While we could work around the lack of z_streamp, it
10571 # seems unwise to encourage people to use such old zlib versions...
10572 echo "$as_me:$LINENO: checking for z_streamp" >&5
10573 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10574 if test "${ac_cv_type_z_streamp+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10582 #ifdef F77_DUMMY_MAIN
10583 # ifdef __cplusplus
10586 int F77_DUMMY_MAIN() { return 1; }
10591 if ((z_streamp *) 0)
10593 if (sizeof (z_streamp))
10599 rm -f conftest.$ac_objext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_type_z_streamp=yes
10613 echo "$as_me: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 ac_cv_type_z_streamp=no
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10620 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10621 if test $ac_cv_type_z_streamp = yes; then
10624 { { echo "$as_me:$LINENO: error: zlib version is too old
10625 Use --without-zlib to disable zlib support." >&5
10626 echo "$as_me: error: zlib version is too old
10627 Use --without-zlib to disable zlib support." >&2;}
10628 { (exit 1); exit 1; }; }
10633 if test "$with_krb5" = yes; then
10634 # Check for differences between MIT and Heimdal (KTH) releases
10635 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10636 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10637 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 #include "confdefs.h"
10645 #ifdef F77_DUMMY_MAIN
10646 # ifdef __cplusplus
10649 int F77_DUMMY_MAIN() { return 1; }
10654 static krb5_ticket ac_aggr;
10655 if (ac_aggr.enc_part2)
10661 rm -f conftest.$ac_objext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663 (eval $ac_compile) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -s conftest.$ac_objext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_member_krb5_ticket_enc_part2=yes
10675 echo "$as_me: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10677 ac_cv_member_krb5_ticket_enc_part2=no
10679 rm -f conftest.$ac_objext conftest.$ac_ext
10681 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10682 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10683 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_KRB5_TICKET_ENC_PART2 1
10691 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10692 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10693 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10698 #include "confdefs.h"
10701 #ifdef F77_DUMMY_MAIN
10702 # ifdef __cplusplus
10705 int F77_DUMMY_MAIN() { return 1; }
10710 static krb5_ticket ac_aggr;
10711 if (ac_aggr.client)
10717 rm -f conftest.$ac_objext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719 (eval $ac_compile) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_member_krb5_ticket_client=yes
10731 echo "$as_me: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 ac_cv_member_krb5_ticket_client=no
10735 rm -f conftest.$ac_objext conftest.$ac_ext
10737 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10738 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10739 if test $ac_cv_member_krb5_ticket_client = yes; then
10741 cat >>confdefs.h <<_ACEOF
10742 #define HAVE_KRB5_TICKET_CLIENT 1
10747 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10748 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10749 { (exit 1); exit 1; }; }
10754 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10755 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10756 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 #include "confdefs.h"
10764 #ifdef F77_DUMMY_MAIN
10765 # ifdef __cplusplus
10768 int F77_DUMMY_MAIN() { return 1; }
10773 static krb5_error ac_aggr;
10774 if (ac_aggr.text.data)
10780 rm -f conftest.$ac_objext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_member_krb5_error_text_data=yes
10794 echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_cv_member_krb5_error_text_data=no
10798 rm -f conftest.$ac_objext conftest.$ac_ext
10800 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10801 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10802 if test $ac_cv_member_krb5_error_text_data = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10810 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10811 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10812 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 #include "confdefs.h"
10820 #ifdef F77_DUMMY_MAIN
10821 # ifdef __cplusplus
10824 int F77_DUMMY_MAIN() { return 1; }
10829 static krb5_error ac_aggr;
10830 if (ac_aggr.e_data)
10836 rm -f conftest.$ac_objext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10838 (eval $ac_compile) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest.$ac_objext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_member_krb5_error_e_data=yes
10850 echo "$as_me: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 ac_cv_member_krb5_error_e_data=no
10854 rm -f conftest.$ac_objext conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10857 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10858 if test $ac_cv_member_krb5_error_e_data = yes; then
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_KRB5_ERROR_E_DATA 1
10866 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10867 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10868 { (exit 1); exit 1; }; }
10877 ## Functions, global variables
10880 echo "$as_me:$LINENO: checking for int timezone" >&5
10881 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10882 if test "${pgac_cv_var_int_timezone+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 cat >conftest.$ac_ext <<_ACEOF
10886 #line $LINENO "configure"
10887 #include "confdefs.h"
10890 #ifdef F77_DUMMY_MAIN
10891 # ifdef __cplusplus
10894 int F77_DUMMY_MAIN() { return 1; }
10899 res = timezone / 60;
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10906 (eval $ac_link) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 pgac_cv_var_int_timezone=yes
10918 echo "$as_me: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 pgac_cv_var_int_timezone=no
10922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10925 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10926 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10928 cat >>confdefs.h <<\_ACEOF
10929 #define HAVE_INT_TIMEZONE
10933 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10934 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10935 if test "${ac_cv_func_accept_return+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 if test "${ac_cv_func_accept_arg1+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 if test "${ac_cv_func_accept_arg2+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 if test "${ac_cv_func_accept_arg3+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10948 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10949 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10950 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10953 #include "confdefs.h"
10954 #ifdef HAVE_SYS_TYPES_H
10955 #include <sys/types.h>
10957 #ifdef HAVE_SYS_SOCKET_H
10958 #include <sys/socket.h>
10960 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10961 #ifdef F77_DUMMY_MAIN
10962 # ifdef __cplusplus
10965 int F77_DUMMY_MAIN() { return 1; }
10975 rm -f conftest.$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -s conftest.$ac_objext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_not_found=no; break 4
10989 echo "$as_me: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10998 if test "$ac_not_found" = yes; then
10999 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11000 echo "$as_me: error: could not determine argument types" >&2;}
11001 { (exit 1); exit 1; }; }
11003 if test "$ac_cv_func_accept_arg3" = "void"; then
11004 ac_cv_func_accept_arg3=int
11014 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
11015 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11017 cat >>confdefs.h <<_ACEOF
11018 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11022 cat >>confdefs.h <<_ACEOF
11023 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11027 cat >>confdefs.h <<_ACEOF
11028 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11032 cat >>confdefs.h <<_ACEOF
11033 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11037 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11038 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11039 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11043 #line $LINENO "configure"
11044 #include "confdefs.h"
11045 #include <sys/time.h>
11046 #ifdef F77_DUMMY_MAIN
11047 # ifdef __cplusplus
11050 int F77_DUMMY_MAIN() { return 1; }
11055 struct timeval *tp;
11056 struct timezone *tzp;
11057 gettimeofday(tp,tzp);
11062 rm -f conftest.$ac_objext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064 (eval $ac_compile) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest.$ac_objext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 pgac_cv_func_gettimeofday_1arg=no
11076 echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 pgac_cv_func_gettimeofday_1arg=yes
11080 rm -f conftest.$ac_objext conftest.$ac_ext
11082 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11083 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11084 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define GETTIMEOFDAY_1ARG
11094 # SunOS doesn't handle negative byte comparisons properly with +/- return
11095 echo "$as_me:$LINENO: checking for working memcmp" >&5
11096 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11097 if test "${ac_cv_func_memcmp_working+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 if test "$cross_compiling" = yes; then
11101 ac_cv_func_memcmp_working=no
11103 cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 #include "confdefs.h"
11107 #ifdef F77_DUMMY_MAIN
11108 # ifdef __cplusplus
11111 int F77_DUMMY_MAIN() { return 1; }
11117 /* Some versions of memcmp are not 8-bit clean. */
11118 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11119 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11122 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11123 or more and with at least one buffer not starting on a 4-byte boundary.
11124 William Lewis provided this test program. */
11129 for (i = 0; i < 4; i++)
11133 strcpy (a, "--------01111111");
11134 strcpy (b, "--------10000000");
11135 if (memcmp (a, b, 16) >= 0)
11145 rm -f conftest$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11156 ac_cv_func_memcmp_working=yes
11158 echo "$as_me: program exited with status $ac_status" >&5
11159 echo "$as_me: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 ( exit $ac_status )
11162 ac_cv_func_memcmp_working=no
11164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11167 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11168 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11169 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11188 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191 echo "$as_me:$LINENO: checking for $ac_func" >&5
11192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11193 if eval "test \"\${$as_ac_var+set}\" = set"; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11197 #line $LINENO "configure"
11198 #include "confdefs.h"
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func (); below. */
11201 #include <assert.h>
11202 /* Override any gcc2 internal prototype to avoid an error. */
11206 /* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11211 #ifdef F77_DUMMY_MAIN
11212 # ifdef __cplusplus
11215 int F77_DUMMY_MAIN() { return 1; }
11220 /* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 eval "$as_ac_var=yes"
11247 echo "$as_me: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 eval "$as_ac_var=no"
11251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11265 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11266 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 cat >conftest.$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11271 #include "confdefs.h"
11272 #include <unistd.h>
11274 #ifdef F77_DUMMY_MAIN
11275 # ifdef __cplusplus
11278 int F77_DUMMY_MAIN() { return 1; }
11284 char *p = (char *) fdatasync;
11291 rm -f conftest.$ac_objext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11293 (eval $ac_compile) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_cv_have_decl_fdatasync=yes
11305 echo "$as_me: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11307 ac_cv_have_decl_fdatasync=no
11309 rm -f conftest.$ac_objext conftest.$ac_ext
11311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11312 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11313 if test $ac_cv_have_decl_fdatasync = yes; then
11315 cat >>confdefs.h <<_ACEOF
11316 #define HAVE_DECL_FDATASYNC 1
11321 cat >>confdefs.h <<_ACEOF
11322 #define HAVE_DECL_FDATASYNC 0
11331 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11332 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11333 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 #include "confdefs.h"
11339 $ac_includes_default
11340 #include <netinet/in.h>
11342 #ifdef F77_DUMMY_MAIN
11343 # ifdef __cplusplus
11346 int F77_DUMMY_MAIN() { return 1; }
11351 if ((struct sockaddr_in6 *) 0)
11353 if (sizeof (struct sockaddr_in6))
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -s conftest.$ac_objext'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_type_struct_sockaddr_in6=yes
11373 echo "$as_me: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 ac_cv_type_struct_sockaddr_in6=no
11377 rm -f conftest.$ac_objext conftest.$ac_ext
11379 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11380 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11381 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11382 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11383 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11384 if test "${ac_cv_func_inet_ntop+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11388 #line $LINENO "configure"
11389 #include "confdefs.h"
11390 /* System header to define __stub macros and hopefully few prototypes,
11391 which can conflict with char inet_ntop (); below. */
11392 #include <assert.h>
11393 /* Override any gcc2 internal prototype to avoid an error. */
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11402 #ifdef F77_DUMMY_MAIN
11403 # ifdef __cplusplus
11406 int F77_DUMMY_MAIN() { return 1; }
11411 /* The GNU C library defines this for functions which it implements
11412 to always fail with ENOSYS. Some functions are actually named
11413 something starting with __ and the normal name is an alias. */
11414 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_func_inet_ntop=yes
11438 echo "$as_me: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11440 ac_cv_func_inet_ntop=no
11442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11445 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11446 if test $ac_cv_func_inet_ntop = yes; then
11448 cat >>confdefs.h <<\_ACEOF
11449 #define HAVE_IPV6 1
11459 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11460 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11461 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line $LINENO "configure"
11466 #include "confdefs.h"
11467 #include <machine/vmparam.h>
11468 #include <sys/exec.h>
11470 #ifdef F77_DUMMY_MAIN
11471 # ifdef __cplusplus
11474 int F77_DUMMY_MAIN() { return 1; }
11479 PS_STRINGS->ps_nargvstr = 1;
11480 PS_STRINGS->ps_argvstr = "foo";
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 pgac_cv_var_PS_STRINGS=yes
11499 echo "$as_me: failed program was:" >&5
11500 cat conftest.$ac_ext >&5
11501 pgac_cv_var_PS_STRINGS=no
11503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11506 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11507 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11509 cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_PS_STRINGS
11516 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11517 # is missing. Yes, there are machines that have only one. We may
11518 # also decide to use snprintf.c if snprintf() is present but does not
11519 # have working "long long int" support -- see below.
11521 pgac_need_repl_snprintf=no
11523 for ac_func in snprintf
11525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11526 echo "$as_me:$LINENO: checking for $ac_func" >&5
11527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11528 if eval "test \"\${$as_ac_var+set}\" = set"; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11532 #line $LINENO "configure"
11533 #include "confdefs.h"
11534 /* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char $ac_func (); below. */
11536 #include <assert.h>
11537 /* Override any gcc2 internal prototype to avoid an error. */
11541 /* We use char because int might match the return type of a gcc2
11542 builtin and then its argument prototype would still apply. */
11546 #ifdef F77_DUMMY_MAIN
11547 # ifdef __cplusplus
11550 int F77_DUMMY_MAIN() { return 1; }
11555 /* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -s conftest$ac_exeext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 eval "$as_ac_var=yes"
11582 echo "$as_me: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 eval "$as_ac_var=no"
11586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11596 pgac_need_repl_snprintf=yes
11601 for ac_func in vsnprintf
11603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604 echo "$as_me:$LINENO: checking for $ac_func" >&5
11605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11606 if eval "test \"\${$as_ac_var+set}\" = set"; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 #include "confdefs.h"
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func (); below. */
11614 #include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error. */
11619 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
11624 #ifdef F77_DUMMY_MAIN
11625 # ifdef __cplusplus
11628 int F77_DUMMY_MAIN() { return 1; }
11633 /* The GNU C library defines this for functions which it implements
11634 to always fail with ENOSYS. Some functions are actually named
11635 something starting with __ and the normal name is an alias. */
11636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 eval "$as_ac_var=no"
11664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11674 pgac_need_repl_snprintf=yes
11680 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11681 # include/c.h will provide declarations. Note this is a separate test
11682 # from whether the functions exist in the C library --- there are
11683 # systems that have the functions but don't bother to declare them :-(
11685 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11686 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11687 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11691 #line $LINENO "configure"
11692 #include "confdefs.h"
11693 $ac_includes_default
11694 #ifdef F77_DUMMY_MAIN
11695 # ifdef __cplusplus
11698 int F77_DUMMY_MAIN() { return 1; }
11704 char *p = (char *) snprintf;
11711 rm -f conftest.$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_cv_have_decl_snprintf=yes
11725 echo "$as_me: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11727 ac_cv_have_decl_snprintf=no
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11732 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11733 if test $ac_cv_have_decl_snprintf = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_DECL_SNPRINTF 1
11741 cat >>confdefs.h <<_ACEOF
11742 #define HAVE_DECL_SNPRINTF 0
11747 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11748 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11749 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11754 #include "confdefs.h"
11755 $ac_includes_default
11756 #ifdef F77_DUMMY_MAIN
11757 # ifdef __cplusplus
11760 int F77_DUMMY_MAIN() { return 1; }
11766 char *p = (char *) vsnprintf;
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_have_decl_vsnprintf=yes
11787 echo "$as_me: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 ac_cv_have_decl_vsnprintf=no
11791 rm -f conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11794 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11795 if test $ac_cv_have_decl_vsnprintf = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define HAVE_DECL_VSNPRINTF 1
11803 cat >>confdefs.h <<_ACEOF
11804 #define HAVE_DECL_VSNPRINTF 0
11813 # do this one the hard way in case isinf() is a macro
11814 echo "$as_me:$LINENO: checking for isinf" >&5
11815 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11816 if test "${ac_cv_func_isinf+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11821 #include "confdefs.h"
11824 #ifdef F77_DUMMY_MAIN
11825 # ifdef __cplusplus
11828 int F77_DUMMY_MAIN() { return 1; }
11833 double x = 0.0; int res = isinf(x);
11838 rm -f conftest.$ac_objext conftest$ac_exeext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_cv_func_isinf=yes
11852 echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 ac_cv_func_isinf=no
11856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11858 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11859 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11861 if test $ac_cv_func_isinf = yes ; then
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_ISINF 1
11868 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11869 # Look for a way to implement a substitute for isinf()
11874 for ac_func in fpclass fp_class fp_class_d class
11876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11879 if eval "test \"\${$as_ac_var+set}\" = set"; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 #include "confdefs.h"
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func (); below. */
11887 #include <assert.h>
11888 /* Override any gcc2 internal prototype to avoid an error. */
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11897 #ifdef F77_DUMMY_MAIN
11898 # ifdef __cplusplus
11901 int F77_DUMMY_MAIN() { return 1; }
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 eval "$as_ac_var=yes"
11933 echo "$as_me: failed program was:" >&5
11934 cat conftest.$ac_ext >&5
11935 eval "$as_ac_var=no"
11937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11941 if test `eval echo '${'$as_ac_var'}'` = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11964 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11967 echo "$as_me:$LINENO: checking for $ac_func" >&5
11968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11969 if eval "test \"\${$as_ac_var+set}\" = set"; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11975 /* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below. */
11977 #include <assert.h>
11978 /* Override any gcc2 internal prototype to avoid an error. */
11982 /* We use char because int might match the return type of a gcc2
11983 builtin and then its argument prototype would still apply. */
11987 #ifdef F77_DUMMY_MAIN
11988 # ifdef __cplusplus
11991 int F77_DUMMY_MAIN() { return 1; }
11996 /* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032 cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12043 # system's version of getaddrinfo(), if any, may be used only if we found
12044 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12045 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12047 for ac_func in getaddrinfo
12049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12050 echo "$as_me:$LINENO: checking for $ac_func" >&5
12051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12052 if eval "test \"\${$as_ac_var+set}\" = set"; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 cat >conftest.$ac_ext <<_ACEOF
12056 #line $LINENO "configure"
12057 #include "confdefs.h"
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below. */
12060 #include <assert.h>
12061 /* Override any gcc2 internal prototype to avoid an error. */
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12070 #ifdef F77_DUMMY_MAIN
12071 # ifdef __cplusplus
12074 int F77_DUMMY_MAIN() { return 1; }
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 eval "$as_ac_var=yes"
12106 echo "$as_me: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 eval "$as_ac_var=no"
12110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12114 if test `eval echo '${'$as_ac_var'}'` = yes; then
12115 cat >>confdefs.h <<_ACEOF
12116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12126 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12129 # similarly, use system's getopt_long() only if system provides struct option.
12130 if test x"$ac_cv_type_struct_option" = xyes ; then
12132 for ac_func in getopt_long
12134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12135 echo "$as_me:$LINENO: checking for $ac_func" >&5
12136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12137 if eval "test \"\${$as_ac_var+set}\" = set"; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12141 #line $LINENO "configure"
12142 #include "confdefs.h"
12143 /* System header to define __stub macros and hopefully few prototypes,
12144 which can conflict with char $ac_func (); below. */
12145 #include <assert.h>
12146 /* Override any gcc2 internal prototype to avoid an error. */
12150 /* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12155 #ifdef F77_DUMMY_MAIN
12156 # ifdef __cplusplus
12159 int F77_DUMMY_MAIN() { return 1; }
12164 /* The GNU C library defines this for functions which it implements
12165 to always fail with ENOSYS. Some functions are actually named
12166 something starting with __ and the normal name is an alias. */
12167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 eval "$as_ac_var=yes"
12191 echo "$as_me: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12193 eval "$as_ac_var=no"
12195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12199 if test `eval echo '${'$as_ac_var'}'` = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12211 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12214 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12215 # We override the previous test that said fseeko/ftello didn't exist
12216 # OS tests are also done in include/c.h and port/fseeko.c
12217 case $host_os in bsdi*|netbsd*)
12218 ac_cv_func_fseeko=yes
12221 # Solaris has a very slow qsort in certain cases, so we replace it.
12222 case $host_os in solaris*)
12223 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12226 # Win32 can't to rename or unlink on an open file
12227 case $host_os in mingw*)
12228 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12229 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12230 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12231 LIBOBJS="$LIBOBJS pipe.$ac_objext" ;;
12234 if test "$with_readline" = yes; then
12235 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12236 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12237 cat >conftest.$ac_ext <<_ACEOF
12238 #line $LINENO "configure"
12239 #include "confdefs.h"
12241 #ifdef HAVE_READLINE_READLINE_H
12242 # include <readline/readline.h>
12243 #elif defined(HAVE_READLINE_H)
12244 # include <readline.h>
12247 #ifdef F77_DUMMY_MAIN
12248 # ifdef __cplusplus
12251 int F77_DUMMY_MAIN() { return 1; }
12256 rl_completion_append_character = 'x';
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 echo "$as_me:$LINENO: result: yes" >&5
12274 echo "${ECHO_T}yes" >&6
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12281 echo "$as_me: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12283 echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12289 for ac_func in rl_completion_matches rl_filename_completion_function
12291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292 echo "$as_me:$LINENO: checking for $ac_func" >&5
12293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294 if eval "test \"\${$as_ac_var+set}\" = set"; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 cat >conftest.$ac_ext <<_ACEOF
12298 #line $LINENO "configure"
12299 #include "confdefs.h"
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char $ac_func (); below. */
12302 #include <assert.h>
12303 /* Override any gcc2 internal prototype to avoid an error. */
12307 /* We use char because int might match the return type of a gcc2
12308 builtin and then its argument prototype would still apply. */
12312 #ifdef F77_DUMMY_MAIN
12313 # ifdef __cplusplus
12316 int F77_DUMMY_MAIN() { return 1; }
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 eval "$as_ac_var=yes"
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 eval "$as_ac_var=no"
12352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12356 if test `eval echo '${'$as_ac_var'}'` = yes; then
12357 cat >>confdefs.h <<_ACEOF
12358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12365 for ac_func in replace_history_entry
12367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12368 echo "$as_me:$LINENO: checking for $ac_func" >&5
12369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12370 if eval "test \"\${$as_ac_var+set}\" = set"; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12374 #line $LINENO "configure"
12375 #include "confdefs.h"
12376 /* System header to define __stub macros and hopefully few prototypes,
12377 which can conflict with char $ac_func (); below. */
12378 #include <assert.h>
12379 /* Override any gcc2 internal prototype to avoid an error. */
12383 /* We use char because int might match the return type of a gcc2
12384 builtin and then its argument prototype would still apply. */
12388 #ifdef F77_DUMMY_MAIN
12389 # ifdef __cplusplus
12392 int F77_DUMMY_MAIN() { return 1; }
12397 /* The GNU C library defines this for functions which it implements
12398 to always fail with ENOSYS. Some functions are actually named
12399 something starting with __ and the normal name is an alias. */
12400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412 (eval $ac_link) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 eval "$as_ac_var=yes"
12424 echo "$as_me: failed program was:" >&5
12425 cat conftest.$ac_ext >&5
12426 eval "$as_ac_var=no"
12428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12432 if test `eval echo '${'$as_ac_var'}'` = yes; then
12433 cat >>confdefs.h <<_ACEOF
12434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443 echo "$as_me:$LINENO: checking for finite" >&5
12444 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12445 cat >conftest.$ac_ext <<_ACEOF
12446 #line $LINENO "configure"
12447 #include "confdefs.h"
12449 #ifdef F77_DUMMY_MAIN
12450 # ifdef __cplusplus
12453 int F77_DUMMY_MAIN() { return 1; }
12458 int dummy=finite(1.0);
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest$ac_exeext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_FINITE 1
12480 echo "$as_me:$LINENO: result: yes" >&5
12481 echo "${ECHO_T}yes" >&6
12483 echo "$as_me: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 echo "$as_me:$LINENO: result: no" >&5
12486 echo "${ECHO_T}no" >&6
12488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12490 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12491 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12494 #include "confdefs.h"
12495 #include <setjmp.h>
12496 #ifdef F77_DUMMY_MAIN
12497 # ifdef __cplusplus
12500 int F77_DUMMY_MAIN() { return 1; }
12505 sigjmp_buf x; sigsetjmp(x, 1);
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -s conftest$ac_exeext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_SIGSETJMP 1
12527 echo "$as_me:$LINENO: result: yes" >&5
12528 echo "${ECHO_T}yes" >&6
12530 echo "$as_me: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 echo "$as_me:$LINENO: result: no" >&5
12533 echo "${ECHO_T}no" >&6
12535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12537 echo "$as_me:$LINENO: checking for syslog" >&5
12538 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12539 if test "${ac_cv_func_syslog+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 cat >conftest.$ac_ext <<_ACEOF
12543 #line $LINENO "configure"
12544 #include "confdefs.h"
12545 /* System header to define __stub macros and hopefully few prototypes,
12546 which can conflict with char syslog (); below. */
12547 #include <assert.h>
12548 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12557 #ifdef F77_DUMMY_MAIN
12558 # ifdef __cplusplus
12561 int F77_DUMMY_MAIN() { return 1; }
12566 /* The GNU C library defines this for functions which it implements
12567 to always fail with ENOSYS. Some functions are actually named
12568 something starting with __ and the normal name is an alias. */
12569 #if defined (__stub_syslog) || defined (__stub___syslog)
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581 (eval $ac_link) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_cv_func_syslog=yes
12593 echo "$as_me: failed program was:" >&5
12594 cat conftest.$ac_ext >&5
12595 ac_cv_func_syslog=no
12597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12599 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12600 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12601 if test $ac_cv_func_syslog = yes; then
12602 if test "${ac_cv_header_syslog_h+set}" = set; then
12603 echo "$as_me:$LINENO: checking for syslog.h" >&5
12604 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12605 if test "${ac_cv_header_syslog_h+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12609 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12611 # Is the header compilable?
12612 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12613 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12614 cat >conftest.$ac_ext <<_ACEOF
12615 #line $LINENO "configure"
12616 #include "confdefs.h"
12617 $ac_includes_default
12618 #include <syslog.h>
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622 (eval $ac_compile) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
12626 { ac_try='test -s conftest.$ac_objext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_header_compiler=yes
12634 echo "$as_me: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12636 ac_header_compiler=no
12638 rm -f conftest.$ac_objext conftest.$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12640 echo "${ECHO_T}$ac_header_compiler" >&6
12642 # Is the header present?
12643 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12644 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12645 cat >conftest.$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12647 #include "confdefs.h"
12648 #include <syslog.h>
12650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12653 egrep -v '^ *\+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } >/dev/null; then
12658 if test -s conftest.err; then
12659 ac_cpp_err=$ac_c_preproc_warn_flag
12666 if test -z "$ac_cpp_err"; then
12667 ac_header_preproc=yes
12669 echo "$as_me: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12671 ac_header_preproc=no
12673 rm -f conftest.err conftest.$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12677 # So? What about this header?
12678 case $ac_header_compiler:$ac_header_preproc in
12680 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12683 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12685 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12690 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12692 echo "$as_me:$LINENO: checking for syslog.h" >&5
12693 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12694 if test "${ac_cv_header_syslog_h+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 ac_cv_header_syslog_h=$ac_header_preproc
12699 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12700 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12703 if test $ac_cv_header_syslog_h = yes; then
12705 cat >>confdefs.h <<\_ACEOF
12706 #define HAVE_SYSLOG 1
12715 echo "$as_me:$LINENO: checking for optreset" >&5
12716 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12717 if test "${pgac_cv_var_int_optreset+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 cat >conftest.$ac_ext <<_ACEOF
12721 #line $LINENO "configure"
12722 #include "confdefs.h"
12723 #include <unistd.h>
12724 #ifdef F77_DUMMY_MAIN
12725 # ifdef __cplusplus
12728 int F77_DUMMY_MAIN() { return 1; }
12733 extern int optreset; optreset = 1;
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 pgac_cv_var_int_optreset=yes
12752 echo "$as_me: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 pgac_cv_var_int_optreset=no
12756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12758 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12759 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12760 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12762 cat >>confdefs.h <<\_ACEOF
12763 #define HAVE_INT_OPTRESET 1
12770 for ac_func in strtoll strtoq
12772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12773 echo "$as_me:$LINENO: checking for $ac_func" >&5
12774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12775 if eval "test \"\${$as_ac_var+set}\" = set"; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 cat >conftest.$ac_ext <<_ACEOF
12779 #line $LINENO "configure"
12780 #include "confdefs.h"
12781 /* System header to define __stub macros and hopefully few prototypes,
12782 which can conflict with char $ac_func (); below. */
12783 #include <assert.h>
12784 /* Override any gcc2 internal prototype to avoid an error. */
12788 /* We use char because int might match the return type of a gcc2
12789 builtin and then its argument prototype would still apply. */
12793 #ifdef F77_DUMMY_MAIN
12794 # ifdef __cplusplus
12797 int F77_DUMMY_MAIN() { return 1; }
12802 /* The GNU C library defines this for functions which it implements
12803 to always fail with ENOSYS. Some functions are actually named
12804 something starting with __ and the normal name is an alias. */
12805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -s conftest$ac_exeext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 eval "$as_ac_var=yes"
12829 echo "$as_me: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 eval "$as_ac_var=no"
12833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12837 if test `eval echo '${'$as_ac_var'}'` = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847 for ac_func in strtoull strtouq
12849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12850 echo "$as_me:$LINENO: checking for $ac_func" >&5
12851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12852 if eval "test \"\${$as_ac_var+set}\" = set"; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 cat >conftest.$ac_ext <<_ACEOF
12856 #line $LINENO "configure"
12857 #include "confdefs.h"
12858 /* System header to define __stub macros and hopefully few prototypes,
12859 which can conflict with char $ac_func (); below. */
12860 #include <assert.h>
12861 /* Override any gcc2 internal prototype to avoid an error. */
12865 /* We use char because int might match the return type of a gcc2
12866 builtin and then its argument prototype would still apply. */
12870 #ifdef F77_DUMMY_MAIN
12871 # ifdef __cplusplus
12874 int F77_DUMMY_MAIN() { return 1; }
12879 /* The GNU C library defines this for functions which it implements
12880 to always fail with ENOSYS. Some functions are actually named
12881 something starting with __ and the normal name is an alias. */
12882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12894 (eval $ac_link) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -s conftest$ac_exeext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 eval "$as_ac_var=yes"
12906 echo "$as_me: failed program was:" >&5
12907 cat conftest.$ac_ext >&5
12908 eval "$as_ac_var=no"
12910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12914 if test `eval echo '${'$as_ac_var'}'` = yes; then
12915 cat >>confdefs.h <<_ACEOF
12916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12923 # Check for one of atexit() or on_exit()
12925 for ac_func in atexit
12927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928 echo "$as_me:$LINENO: checking for $ac_func" >&5
12929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12930 if eval "test \"\${$as_ac_var+set}\" = set"; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 cat >conftest.$ac_ext <<_ACEOF
12934 #line $LINENO "configure"
12935 #include "confdefs.h"
12936 /* System header to define __stub macros and hopefully few prototypes,
12937 which can conflict with char $ac_func (); below. */
12938 #include <assert.h>
12939 /* Override any gcc2 internal prototype to avoid an error. */
12943 /* We use char because int might match the return type of a gcc2
12944 builtin and then its argument prototype would still apply. */
12948 #ifdef F77_DUMMY_MAIN
12949 # ifdef __cplusplus
12952 int F77_DUMMY_MAIN() { return 1; }
12957 /* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972 (eval $ac_link) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -s conftest$ac_exeext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 eval "$as_ac_var=yes"
12984 echo "$as_me: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12986 eval "$as_ac_var=no"
12988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12992 if test `eval echo '${'$as_ac_var'}'` = yes; then
12993 cat >>confdefs.h <<_ACEOF
12994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12999 for ac_func in on_exit
13001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13002 echo "$as_me:$LINENO: checking for $ac_func" >&5
13003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13004 if eval "test \"\${$as_ac_var+set}\" = set"; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 cat >conftest.$ac_ext <<_ACEOF
13008 #line $LINENO "configure"
13009 #include "confdefs.h"
13010 /* System header to define __stub macros and hopefully few prototypes,
13011 which can conflict with char $ac_func (); below. */
13012 #include <assert.h>
13013 /* Override any gcc2 internal prototype to avoid an error. */
13017 /* We use char because int might match the return type of a gcc2
13018 builtin and then its argument prototype would still apply. */
13022 #ifdef F77_DUMMY_MAIN
13023 # ifdef __cplusplus
13026 int F77_DUMMY_MAIN() { return 1; }
13031 /* The GNU C library defines this for functions which it implements
13032 to always fail with ENOSYS. Some functions are actually named
13033 something starting with __ and the normal name is an alias. */
13034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13046 (eval $ac_link) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -s conftest$ac_exeext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 eval "$as_ac_var=yes"
13058 echo "$as_me: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13060 eval "$as_ac_var=no"
13062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13066 if test `eval echo '${'$as_ac_var'}'` = yes; then
13067 cat >>confdefs.h <<_ACEOF
13068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13072 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13073 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13074 { (exit 1); exit 1; }; }
13082 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13083 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13084 if test "${ac_cv_sys_largefile_source+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 ac_cv_sys_largefile_source=no
13089 cat >conftest.$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13091 #include "confdefs.h"
13093 #ifdef F77_DUMMY_MAIN
13094 # ifdef __cplusplus
13097 int F77_DUMMY_MAIN() { return 1; }
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109 (eval $ac_compile) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13121 echo "$as_me: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13124 rm -f conftest.$ac_objext conftest.$ac_ext
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13127 #include "confdefs.h"
13128 #define _LARGEFILE_SOURCE 1
13130 #ifdef F77_DUMMY_MAIN
13131 # ifdef __cplusplus
13134 int F77_DUMMY_MAIN() { return 1; }
13144 rm -f conftest.$ac_objext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146 (eval $ac_compile) 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
13150 { ac_try='test -s conftest.$ac_objext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_sys_largefile_source=1; break
13158 echo "$as_me: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13161 rm -f conftest.$ac_objext conftest.$ac_ext
13165 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13166 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13167 if test "$ac_cv_sys_largefile_source" != no; then
13169 cat >>confdefs.h <<_ACEOF
13170 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13176 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13177 # in glibc 2.1.3, but that breaks too many other things.
13178 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13179 echo "$as_me:$LINENO: checking for fseeko" >&5
13180 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13181 if test "${ac_cv_func_fseeko+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 cat >conftest.$ac_ext <<_ACEOF
13185 #line $LINENO "configure"
13186 #include "confdefs.h"
13188 #ifdef F77_DUMMY_MAIN
13189 # ifdef __cplusplus
13192 int F77_DUMMY_MAIN() { return 1; }
13197 return fseeko && fseeko (stdin, 0, 0);
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_cv_func_fseeko=yes
13216 echo "$as_me: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13218 ac_cv_func_fseeko=no
13220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13222 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13223 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13224 if test $ac_cv_func_fseeko = yes; then
13226 cat >>confdefs.h <<\_ACEOF
13227 #define HAVE_FSEEKO 1
13236 # For each platform, we need to know about any special compile and link
13237 # libraries, and whether the normal C function names are thread-safe.
13238 # See the comment at the top of src/port/thread.c for more information.
13240 if test "$enable_thread_safety" = yes; then
13241 if test "${ac_cv_header_pthread_h+set}" = set; then
13242 echo "$as_me:$LINENO: checking for pthread.h" >&5
13243 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13244 if test "${ac_cv_header_pthread_h+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13248 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13250 # Is the header compilable?
13251 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13252 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13254 #line $LINENO "configure"
13255 #include "confdefs.h"
13256 $ac_includes_default
13257 #include <pthread.h>
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_header_compiler=yes
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 ac_header_compiler=no
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6
13281 # Is the header present?
13282 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13283 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 #include <pthread.h>
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13292 egrep -v '^ *\+' conftest.er1 >conftest.err
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev/null; then
13297 if test -s conftest.err; then
13298 ac_cpp_err=$ac_c_preproc_warn_flag
13305 if test -z "$ac_cpp_err"; then
13306 ac_header_preproc=yes
13308 echo "$as_me: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13310 ac_header_preproc=no
13312 rm -f conftest.err conftest.$ac_ext
13313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13314 echo "${ECHO_T}$ac_header_preproc" >&6
13316 # So? What about this header?
13317 case $ac_header_compiler:$ac_header_preproc in
13319 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13320 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13322 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13324 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13329 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13331 echo "$as_me:$LINENO: checking for pthread.h" >&5
13332 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13333 if test "${ac_cv_header_pthread_h+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 ac_cv_header_pthread_h=$ac_header_preproc
13338 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13339 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13342 if test $ac_cv_header_pthread_h = yes; then
13345 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13346 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13347 { (exit 1); exit 1; }; }
13352 if test "$THREAD_SUPPORT" != yes; then
13353 { { echo "$as_me:$LINENO: error:
13354 Cannot enable threads on your platform.
13355 Please report your platform threading info to the PostgreSQL mailing lists
13356 so it can be added to the next release. Report all compile flags, link flags,
13357 functions, or libraries required for threading support.
13358 See the comment at the top of src/port/thread.c for more information.
13360 echo "$as_me: error:
13361 Cannot enable threads on your platform.
13362 Please report your platform threading info to the PostgreSQL mailing lists
13363 so it can be added to the next release. Report all compile flags, link flags,
13364 functions, or libraries required for threading support.
13365 See the comment at the top of src/port/thread.c for more information.
13367 { (exit 1); exit 1; }; }
13370 # do not use values from template file
13380 # Check for re-entrant versions of certain functions
13382 # Include special flags if threads are enabled _and_ if required for
13383 # threading on this platform. Some platforms have *_r functions but
13384 # their natively named funcs are threadsafe, and should be used instead.
13386 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13387 # functions are marked "not found", which is perfect.
13389 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13392 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13393 LIBS="$LIBS $THREAD_LIBS"
13397 for ac_func in strerror_r getpwuid_r gethostbyname_r
13399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_func" >&5
13401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_var+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13406 #line $LINENO "configure"
13407 #include "confdefs.h"
13408 /* System header to define __stub macros and hopefully few prototypes,
13409 which can conflict with char $ac_func (); below. */
13410 #include <assert.h>
13411 /* Override any gcc2 internal prototype to avoid an error. */
13415 /* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13420 #ifdef F77_DUMMY_MAIN
13421 # ifdef __cplusplus
13424 int F77_DUMMY_MAIN() { return 1; }
13429 /* The GNU C library defines this for functions which it implements
13430 to always fail with ENOSYS. Some functions are actually named
13431 something starting with __ and the normal name is an alias. */
13432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444 (eval $ac_link) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -s conftest$ac_exeext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 eval "$as_ac_var=yes"
13456 echo "$as_me: failed program was:" >&5
13457 cat conftest.$ac_ext >&5
13458 eval "$as_ac_var=no"
13460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13464 if test `eval echo '${'$as_ac_var'}'` = yes; then
13465 cat >>confdefs.h <<_ACEOF
13466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477 # This test makes sure that run tests work at all. Sometimes a shared
13478 # library is found by the linker, but the runtime linker can't find it.
13479 # This check should come after all modifications of compiler or linker
13480 # variables, and before any other run tests.
13481 echo "$as_me:$LINENO: checking test program" >&5
13482 echo $ECHO_N "checking test program... $ECHO_C" >&6
13483 if test "$cross_compiling" = yes; then
13484 echo "$as_me:$LINENO: result: cross-compiling" >&5
13485 echo "${ECHO_T}cross-compiling" >&6
13487 cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 #include "confdefs.h"
13490 int main() { return 0; }
13492 rm -f conftest$ac_exeext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13494 (eval $ac_link) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 echo "$as_me:$LINENO: result: ok" >&5
13504 echo "${ECHO_T}ok" >&6
13506 echo "$as_me: program exited with status $ac_status" >&5
13507 echo "$as_me: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 ( exit $ac_status )
13510 echo "$as_me:$LINENO: result: failed" >&5
13511 echo "${ECHO_T}failed" >&6
13512 { { echo "$as_me:$LINENO: error:
13513 *** Could not execute a simple test program. This may be a problem
13514 *** related to locating shared libraries. Check the file 'config.log'
13515 *** for the exact reason." >&5
13516 echo "$as_me: error:
13517 *** Could not execute a simple test program. This may be a problem
13518 *** related to locating shared libraries. Check the file 'config.log'
13519 *** for the exact reason." >&2;}
13520 { (exit 1); exit 1; }; }
13522 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13527 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13528 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13529 if test "${pgac_cv_type_long_int_64+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 if test "$cross_compiling" = yes; then
13533 # If cross-compiling, check the size reported by the compiler and
13534 # trust that the arithmetic works.
13535 cat >conftest.$ac_ext <<_ACEOF
13536 #line $LINENO "configure"
13537 #include "confdefs.h"
13539 #ifdef F77_DUMMY_MAIN
13540 # ifdef __cplusplus
13543 int F77_DUMMY_MAIN() { return 1; }
13548 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13555 rm -f conftest.$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557 (eval $ac_compile) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 pgac_cv_type_long_int_64=yes
13569 echo "$as_me: failed program was:" >&5
13570 cat conftest.$ac_ext >&5
13571 pgac_cv_type_long_int_64=no
13573 rm -f conftest.$ac_objext conftest.$ac_ext
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 #include "confdefs.h"
13578 typedef long int int64;
13581 * These are globals to discourage the compiler from folding all the
13582 * arithmetic tests down to compile-time constants.
13584 int64 a = 20000001;
13585 int64 b = 40000005;
13587 int does_int64_work()
13591 if (sizeof(int64) != 8)
13592 return 0; /* definitely not the right size */
13594 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13602 exit(! does_int64_work());
13605 rm -f conftest$ac_exeext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13607 (eval $ac_link) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 pgac_cv_type_long_int_64=yes
13618 echo "$as_me: program exited with status $ac_status" >&5
13619 echo "$as_me: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13621 ( exit $ac_status )
13622 pgac_cv_type_long_int_64=no
13624 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13628 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13630 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13631 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13633 cat >>confdefs.h <<\_ACEOF
13634 #define HAVE_LONG_INT_64
13640 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13641 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13642 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13643 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 if test "$cross_compiling" = yes; then
13647 # If cross-compiling, check the size reported by the compiler and
13648 # trust that the arithmetic works.
13649 cat >conftest.$ac_ext <<_ACEOF
13650 #line $LINENO "configure"
13651 #include "confdefs.h"
13653 #ifdef F77_DUMMY_MAIN
13654 # ifdef __cplusplus
13657 int F77_DUMMY_MAIN() { return 1; }
13662 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 pgac_cv_type_long_long_int_64=yes
13683 echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 pgac_cv_type_long_long_int_64=no
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13689 cat >conftest.$ac_ext <<_ACEOF
13690 #line $LINENO "configure"
13691 #include "confdefs.h"
13692 typedef long long int int64;
13695 * These are globals to discourage the compiler from folding all the
13696 * arithmetic tests down to compile-time constants.
13698 int64 a = 20000001;
13699 int64 b = 40000005;
13701 int does_int64_work()
13705 if (sizeof(int64) != 8)
13706 return 0; /* definitely not the right size */
13708 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13716 exit(! does_int64_work());
13719 rm -f conftest$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 pgac_cv_type_long_long_int_64=yes
13732 echo "$as_me: program exited with status $ac_status" >&5
13733 echo "$as_me: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 ( exit $ac_status )
13736 pgac_cv_type_long_long_int_64=no
13738 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13741 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13742 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13744 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13745 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HAVE_LONG_LONG_INT_64
13757 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13758 cat >conftest.$ac_ext <<_ACEOF
13759 #line $LINENO "configure"
13760 #include "confdefs.h"
13762 #define INT64CONST(x) x##LL
13763 long long int foo = INT64CONST(0x1234567890123456);
13765 #ifdef F77_DUMMY_MAIN
13766 # ifdef __cplusplus
13769 int F77_DUMMY_MAIN() { return 1; }
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781 (eval $ac_compile) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -s conftest.$ac_objext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13792 cat >>confdefs.h <<\_ACEOF
13793 #define HAVE_LL_CONSTANTS 1
13797 echo "$as_me: failed program was:" >&5
13798 cat conftest.$ac_ext >&5
13800 rm -f conftest.$ac_objext conftest.$ac_ext
13804 # If we found "long int" is 64 bits, assume snprintf handles it. If
13805 # we found we need to use "long long int", better check. We cope with
13806 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13807 # neither works, fall back to our own snprintf emulation (which we
13810 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13811 if test $pgac_need_repl_snprintf = no; then
13812 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13813 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13814 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 for pgac_format in '%lld' '%qd' '%I64d'; do
13818 if test "$cross_compiling" = yes; then
13819 pgac_cv_snprintf_long_long_int_format=cross; break
13821 cat >conftest.$ac_ext <<_ACEOF
13822 #line $LINENO "configure"
13823 #include "confdefs.h"
13825 typedef long long int int64;
13826 #define INT64_FORMAT "$pgac_format"
13828 int64 a = 20000001;
13829 int64 b = 40000005;
13831 int does_int64_snprintf_work()
13836 if (sizeof(int64) != 8)
13837 return 0; /* doesn't look like the right size */
13840 snprintf(buf, 100, INT64_FORMAT, c);
13841 if (strcmp(buf, "800000140000005") != 0)
13842 return 0; /* either multiply or snprintf is busted */
13846 exit(! does_int64_snprintf_work());
13849 rm -f conftest$ac_exeext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851 (eval $ac_link) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13862 echo "$as_me: program exited with status $ac_status" >&5
13863 echo "$as_me: failed program was:" >&5
13864 cat conftest.$ac_ext >&5
13866 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13871 LONG_LONG_INT_FORMAT=''
13873 case $pgac_cv_snprintf_long_long_int_format in
13874 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13875 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13876 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13877 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13878 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13879 *) echo "$as_me:$LINENO: result: none" >&5
13880 echo "${ECHO_T}none" >&6;;
13882 if test "$LONG_LONG_INT_FORMAT" = ""; then
13883 # Force usage of our own snprintf, since system snprintf is broken
13884 pgac_need_repl_snprintf=yes
13885 LONG_LONG_INT_FORMAT='%lld'
13888 # Here if we previously decided we needed to use our own snprintf
13889 LONG_LONG_INT_FORMAT='%lld'
13891 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13893 # Here if we are not using 'long long int' at all
13894 INT64_FORMAT='"%ld"'
13898 cat >>confdefs.h <<_ACEOF
13899 #define INT64_FORMAT $INT64_FORMAT
13903 if test $pgac_need_repl_snprintf = yes; then
13904 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13907 # Need a #define for the size of Datum (unsigned long)
13908 echo "$as_me:$LINENO: checking for unsigned long" >&5
13909 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13910 if test "${ac_cv_type_unsigned_long+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 #include "confdefs.h"
13916 $ac_includes_default
13917 #ifdef F77_DUMMY_MAIN
13918 # ifdef __cplusplus
13921 int F77_DUMMY_MAIN() { return 1; }
13926 if ((unsigned long *) 0)
13928 if (sizeof (unsigned long))
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_type_unsigned_long=yes
13948 echo "$as_me: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13950 ac_cv_type_unsigned_long=no
13952 rm -f conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13955 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13957 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13958 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13959 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 if test "$ac_cv_type_unsigned_long" = yes; then
13963 # The cast to unsigned long works around a bug in the HP C Compiler
13964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13966 # This bug is HP SR number 8606223364.
13967 if test "$cross_compiling" = yes; then
13968 # Depending upon the size, compute the lo and hi bounds.
13969 cat >conftest.$ac_ext <<_ACEOF
13970 #line $LINENO "configure"
13971 #include "confdefs.h"
13972 $ac_includes_default
13973 #ifdef F77_DUMMY_MAIN
13974 # ifdef __cplusplus
13977 int F77_DUMMY_MAIN() { return 1; }
13982 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13989 rm -f conftest.$ac_objext
13990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991 (eval $ac_compile) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -s conftest.$ac_objext'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14003 cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14005 #include "confdefs.h"
14006 $ac_includes_default
14007 #ifdef F77_DUMMY_MAIN
14008 # ifdef __cplusplus
14011 int F77_DUMMY_MAIN() { return 1; }
14016 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -s conftest.$ac_objext'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14035 ac_hi=$ac_mid; break
14037 echo "$as_me: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 ac_lo=`expr $ac_mid + 1`
14040 if test $ac_lo -le $ac_mid; then
14044 ac_mid=`expr 2 '*' $ac_mid + 1`
14046 rm -f conftest.$ac_objext conftest.$ac_ext
14049 echo "$as_me: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14051 cat >conftest.$ac_ext <<_ACEOF
14052 #line $LINENO "configure"
14053 #include "confdefs.h"
14054 $ac_includes_default
14055 #ifdef F77_DUMMY_MAIN
14056 # ifdef __cplusplus
14059 int F77_DUMMY_MAIN() { return 1; }
14064 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14071 rm -f conftest.$ac_objext
14072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14085 cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 #include "confdefs.h"
14088 $ac_includes_default
14089 #ifdef F77_DUMMY_MAIN
14090 # ifdef __cplusplus
14093 int F77_DUMMY_MAIN() { return 1; }
14098 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_lo=$ac_mid; break
14119 echo "$as_me: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14121 ac_hi=`expr '(' $ac_mid ')' - 1`
14122 if test $ac_mid -le $ac_hi; then
14126 ac_mid=`expr 2 '*' $ac_mid`
14128 rm -f conftest.$ac_objext conftest.$ac_ext
14131 echo "$as_me: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138 # Binary search between lo and hi bounds.
14139 while test "x$ac_lo" != "x$ac_hi"; do
14140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14141 cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 #include "confdefs.h"
14144 $ac_includes_default
14145 #ifdef F77_DUMMY_MAIN
14146 # ifdef __cplusplus
14149 int F77_DUMMY_MAIN() { return 1; }
14154 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14175 echo "$as_me: failed program was:" >&5
14176 cat conftest.$ac_ext >&5
14177 ac_lo=`expr '(' $ac_mid ')' + 1`
14179 rm -f conftest.$ac_objext conftest.$ac_ext
14182 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14184 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14185 { (exit 1); exit 1; }; } ;;
14188 if test "$cross_compiling" = yes; then
14189 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14190 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14191 { (exit 1); exit 1; }; }
14193 cat >conftest.$ac_ext <<_ACEOF
14194 #line $LINENO "configure"
14195 #include "confdefs.h"
14196 $ac_includes_default
14197 long longval () { return (long) (sizeof (unsigned long)); }
14198 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14200 #include <stdlib.h>
14201 #ifdef F77_DUMMY_MAIN
14202 # ifdef __cplusplus
14205 int F77_DUMMY_MAIN() { return 1; }
14211 FILE *f = fopen ("conftest.val", "w");
14214 if (((long) (sizeof (unsigned long))) < 0)
14216 long i = longval ();
14217 if (i != ((long) (sizeof (unsigned long))))
14219 fprintf (f, "%ld\n", i);
14223 unsigned long i = ulongval ();
14224 if (i != ((long) (sizeof (unsigned long))))
14226 fprintf (f, "%lu\n", i);
14228 exit (ferror (f) || fclose (f) != 0);
14234 rm -f conftest$ac_exeext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14236 (eval $ac_link) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14247 echo "$as_me: program exited with status $ac_status" >&5
14248 echo "$as_me: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14250 ( exit $ac_status )
14251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14252 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14253 { (exit 1); exit 1; }; }
14255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14260 ac_cv_sizeof_unsigned_long=0
14263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14264 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14265 cat >>confdefs.h <<_ACEOF
14266 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14271 # Determine memory alignment requirements for the basic C data types.
14273 echo "$as_me:$LINENO: checking for short" >&5
14274 echo $ECHO_N "checking for short... $ECHO_C" >&6
14275 if test "${ac_cv_type_short+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 cat >conftest.$ac_ext <<_ACEOF
14279 #line $LINENO "configure"
14280 #include "confdefs.h"
14281 $ac_includes_default
14282 #ifdef F77_DUMMY_MAIN
14283 # ifdef __cplusplus
14286 int F77_DUMMY_MAIN() { return 1; }
14293 if (sizeof (short))
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -s conftest.$ac_objext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_type_short=yes
14313 echo "$as_me: failed program was:" >&5
14314 cat conftest.$ac_ext >&5
14315 ac_cv_type_short=no
14317 rm -f conftest.$ac_objext conftest.$ac_ext
14319 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14320 echo "${ECHO_T}$ac_cv_type_short" >&6
14322 echo "$as_me:$LINENO: checking alignment of short" >&5
14323 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14324 if test "${pgac_cv_alignof_short+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 if test "$ac_cv_type_short" = yes; then
14328 if test "$cross_compiling" = yes; then
14329 # Depending upon the size, compute the lo and hi bounds.
14330 cat >conftest.$ac_ext <<_ACEOF
14331 #line $LINENO "configure"
14332 #include "confdefs.h"
14333 $ac_includes_default
14334 struct { char filler; short field; } pgac_struct;
14335 #ifdef F77_DUMMY_MAIN
14336 # ifdef __cplusplus
14339 int F77_DUMMY_MAIN() { return 1; }
14344 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353 (eval $ac_compile) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14365 cat >conftest.$ac_ext <<_ACEOF
14366 #line $LINENO "configure"
14367 #include "confdefs.h"
14368 $ac_includes_default
14369 struct { char filler; short field; } pgac_struct;
14370 #ifdef F77_DUMMY_MAIN
14371 # ifdef __cplusplus
14374 int F77_DUMMY_MAIN() { return 1; }
14379 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388 (eval $ac_compile) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_hi=$ac_mid; break
14400 echo "$as_me: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 ac_lo=`expr $ac_mid + 1`
14403 if test $ac_lo -le $ac_mid; then
14407 ac_mid=`expr 2 '*' $ac_mid + 1`
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14412 echo "$as_me: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14414 cat >conftest.$ac_ext <<_ACEOF
14415 #line $LINENO "configure"
14416 #include "confdefs.h"
14417 $ac_includes_default
14418 struct { char filler; short field; } pgac_struct;
14419 #ifdef F77_DUMMY_MAIN
14420 # ifdef __cplusplus
14423 int F77_DUMMY_MAIN() { return 1; }
14428 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14435 rm -f conftest.$ac_objext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437 (eval $ac_compile) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 #include "confdefs.h"
14452 $ac_includes_default
14453 struct { char filler; short field; } pgac_struct;
14454 #ifdef F77_DUMMY_MAIN
14455 # ifdef __cplusplus
14458 int F77_DUMMY_MAIN() { return 1; }
14463 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14470 rm -f conftest.$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_lo=$ac_mid; break
14484 echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 ac_hi=`expr '(' $ac_mid ')' - 1`
14487 if test $ac_mid -le $ac_hi; then
14491 ac_mid=`expr 2 '*' $ac_mid`
14493 rm -f conftest.$ac_objext conftest.$ac_ext
14496 echo "$as_me: failed program was:" >&5
14497 cat conftest.$ac_ext >&5
14500 rm -f conftest.$ac_objext conftest.$ac_ext
14502 rm -f conftest.$ac_objext conftest.$ac_ext
14503 # Binary search between lo and hi bounds.
14504 while test "x$ac_lo" != "x$ac_hi"; do
14505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14506 cat >conftest.$ac_ext <<_ACEOF
14507 #line $LINENO "configure"
14508 #include "confdefs.h"
14509 $ac_includes_default
14510 struct { char filler; short field; } pgac_struct;
14511 #ifdef F77_DUMMY_MAIN
14512 # ifdef __cplusplus
14515 int F77_DUMMY_MAIN() { return 1; }
14520 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14527 rm -f conftest.$ac_objext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529 (eval $ac_compile) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14541 echo "$as_me: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 ac_lo=`expr '(' $ac_mid ')' + 1`
14545 rm -f conftest.$ac_objext conftest.$ac_ext
14548 ?*) pgac_cv_alignof_short=$ac_lo;;
14549 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14550 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14551 { (exit 1); exit 1; }; } ;;
14554 if test "$cross_compiling" = yes; then
14555 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14556 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14557 { (exit 1); exit 1; }; }
14559 cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 #include "confdefs.h"
14562 $ac_includes_default
14563 struct { char filler; short field; } pgac_struct;
14564 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14565 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14567 #include <stdlib.h>
14568 #ifdef F77_DUMMY_MAIN
14569 # ifdef __cplusplus
14572 int F77_DUMMY_MAIN() { return 1; }
14578 FILE *f = fopen ("conftest.val", "w");
14581 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14583 long i = longval ();
14584 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14586 fprintf (f, "%ld\n", i);
14590 unsigned long i = ulongval ();
14591 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14593 fprintf (f, "%lu\n", i);
14595 exit (ferror (f) || fclose (f) != 0);
14601 rm -f conftest$ac_exeext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14603 (eval $ac_link) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 pgac_cv_alignof_short=`cat conftest.val`
14614 echo "$as_me: program exited with status $ac_status" >&5
14615 echo "$as_me: failed program was:" >&5
14616 cat conftest.$ac_ext >&5
14617 ( exit $ac_status )
14618 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14619 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14620 { (exit 1); exit 1; }; }
14622 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14627 pgac_cv_alignof_short=0
14630 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14631 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14632 cat >>confdefs.h <<_ACEOF
14633 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14637 echo "$as_me:$LINENO: checking for int" >&5
14638 echo $ECHO_N "checking for int... $ECHO_C" >&6
14639 if test "${ac_cv_type_int+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 #include "confdefs.h"
14645 $ac_includes_default
14646 #ifdef F77_DUMMY_MAIN
14647 # ifdef __cplusplus
14650 int F77_DUMMY_MAIN() { return 1; }
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -s conftest.$ac_objext'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14677 echo "$as_me: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14681 rm -f conftest.$ac_objext conftest.$ac_ext
14683 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14684 echo "${ECHO_T}$ac_cv_type_int" >&6
14686 echo "$as_me:$LINENO: checking alignment of int" >&5
14687 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14688 if test "${pgac_cv_alignof_int+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 if test "$ac_cv_type_int" = yes; then
14692 if test "$cross_compiling" = yes; then
14693 # Depending upon the size, compute the lo and hi bounds.
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; int field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 # ifdef __cplusplus
14703 int F77_DUMMY_MAIN() { return 1; }
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14729 cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 #include "confdefs.h"
14732 $ac_includes_default
14733 struct { char filler; int field; } pgac_struct;
14734 #ifdef F77_DUMMY_MAIN
14735 # ifdef __cplusplus
14738 int F77_DUMMY_MAIN() { return 1; }
14743 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_hi=$ac_mid; break
14764 echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 ac_lo=`expr $ac_mid + 1`
14767 if test $ac_lo -le $ac_mid; then
14771 ac_mid=`expr 2 '*' $ac_mid + 1`
14773 rm -f conftest.$ac_objext conftest.$ac_ext
14776 echo "$as_me: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 #include "confdefs.h"
14781 $ac_includes_default
14782 struct { char filler; int field; } pgac_struct;
14783 #ifdef F77_DUMMY_MAIN
14784 # ifdef __cplusplus
14787 int F77_DUMMY_MAIN() { return 1; }
14792 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14813 cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 #include "confdefs.h"
14816 $ac_includes_default
14817 struct { char filler; int field; } pgac_struct;
14818 #ifdef F77_DUMMY_MAIN
14819 # ifdef __cplusplus
14822 int F77_DUMMY_MAIN() { return 1; }
14827 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_lo=$ac_mid; break
14848 echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 ac_hi=`expr '(' $ac_mid ')' - 1`
14851 if test $ac_mid -le $ac_hi; then
14855 ac_mid=`expr 2 '*' $ac_mid`
14857 rm -f conftest.$ac_objext conftest.$ac_ext
14860 echo "$as_me: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14864 rm -f conftest.$ac_objext conftest.$ac_ext
14866 rm -f conftest.$ac_objext conftest.$ac_ext
14867 # Binary search between lo and hi bounds.
14868 while test "x$ac_lo" != "x$ac_hi"; do
14869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14870 cat >conftest.$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14872 #include "confdefs.h"
14873 $ac_includes_default
14874 struct { char filler; int field; } pgac_struct;
14875 #ifdef F77_DUMMY_MAIN
14876 # ifdef __cplusplus
14879 int F77_DUMMY_MAIN() { return 1; }
14884 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893 (eval $ac_compile) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14905 echo "$as_me: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14907 ac_lo=`expr '(' $ac_mid ')' + 1`
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14912 ?*) pgac_cv_alignof_int=$ac_lo;;
14913 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14914 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14915 { (exit 1); exit 1; }; } ;;
14918 if test "$cross_compiling" = yes; then
14919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14920 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14921 { (exit 1); exit 1; }; }
14923 cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 #include "confdefs.h"
14926 $ac_includes_default
14927 struct { char filler; int field; } pgac_struct;
14928 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14929 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14931 #include <stdlib.h>
14932 #ifdef F77_DUMMY_MAIN
14933 # ifdef __cplusplus
14936 int F77_DUMMY_MAIN() { return 1; }
14942 FILE *f = fopen ("conftest.val", "w");
14945 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14947 long i = longval ();
14948 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14950 fprintf (f, "%ld\n", i);
14954 unsigned long i = ulongval ();
14955 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14957 fprintf (f, "%lu\n", i);
14959 exit (ferror (f) || fclose (f) != 0);
14965 rm -f conftest$ac_exeext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967 (eval $ac_link) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 pgac_cv_alignof_int=`cat conftest.val`
14978 echo "$as_me: program exited with status $ac_status" >&5
14979 echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 ( exit $ac_status )
14982 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14983 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14984 { (exit 1); exit 1; }; }
14986 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14991 pgac_cv_alignof_int=0
14994 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14995 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14996 cat >>confdefs.h <<_ACEOF
14997 #define ALIGNOF_INT $pgac_cv_alignof_int
15001 echo "$as_me:$LINENO: checking for long" >&5
15002 echo $ECHO_N "checking for long... $ECHO_C" >&6
15003 if test "${ac_cv_type_long+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15007 #line $LINENO "configure"
15008 #include "confdefs.h"
15009 $ac_includes_default
15010 #ifdef F77_DUMMY_MAIN
15011 # ifdef __cplusplus
15014 int F77_DUMMY_MAIN() { return 1; }
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_type_long=yes
15041 echo "$as_me: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15045 rm -f conftest.$ac_objext conftest.$ac_ext
15047 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15048 echo "${ECHO_T}$ac_cv_type_long" >&6
15050 echo "$as_me:$LINENO: checking alignment of long" >&5
15051 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15052 if test "${pgac_cv_alignof_long+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 if test "$ac_cv_type_long" = yes; then
15056 if test "$cross_compiling" = yes; then
15057 # Depending upon the size, compute the lo and hi bounds.
15058 cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15061 $ac_includes_default
15062 struct { char filler; long field; } pgac_struct;
15063 #ifdef F77_DUMMY_MAIN
15064 # ifdef __cplusplus
15067 int F77_DUMMY_MAIN() { return 1; }
15072 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15079 rm -f conftest.$ac_objext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15081 (eval $ac_compile) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -s conftest.$ac_objext'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15093 cat >conftest.$ac_ext <<_ACEOF
15094 #line $LINENO "configure"
15095 #include "confdefs.h"
15096 $ac_includes_default
15097 struct { char filler; long field; } pgac_struct;
15098 #ifdef F77_DUMMY_MAIN
15099 # ifdef __cplusplus
15102 int F77_DUMMY_MAIN() { return 1; }
15107 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15114 rm -f conftest.$ac_objext
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
15120 { ac_try='test -s conftest.$ac_objext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 ac_hi=$ac_mid; break
15128 echo "$as_me: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15130 ac_lo=`expr $ac_mid + 1`
15131 if test $ac_lo -le $ac_mid; then
15135 ac_mid=`expr 2 '*' $ac_mid + 1`
15137 rm -f conftest.$ac_objext conftest.$ac_ext
15140 echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 cat >conftest.$ac_ext <<_ACEOF
15143 #line $LINENO "configure"
15144 #include "confdefs.h"
15145 $ac_includes_default
15146 struct { char filler; long field; } pgac_struct;
15147 #ifdef F77_DUMMY_MAIN
15148 # ifdef __cplusplus
15151 int F77_DUMMY_MAIN() { return 1; }
15156 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165 (eval $ac_compile) 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15177 cat >conftest.$ac_ext <<_ACEOF
15178 #line $LINENO "configure"
15179 #include "confdefs.h"
15180 $ac_includes_default
15181 struct { char filler; long field; } pgac_struct;
15182 #ifdef F77_DUMMY_MAIN
15183 # ifdef __cplusplus
15186 int F77_DUMMY_MAIN() { return 1; }
15191 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15198 rm -f conftest.$ac_objext
15199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200 (eval $ac_compile) 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try='test -s conftest.$ac_objext'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_lo=$ac_mid; break
15212 echo "$as_me: failed program was:" >&5
15213 cat conftest.$ac_ext >&5
15214 ac_hi=`expr '(' $ac_mid ')' - 1`
15215 if test $ac_mid -le $ac_hi; then
15219 ac_mid=`expr 2 '*' $ac_mid`
15221 rm -f conftest.$ac_objext conftest.$ac_ext
15224 echo "$as_me: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15228 rm -f conftest.$ac_objext conftest.$ac_ext
15230 rm -f conftest.$ac_objext conftest.$ac_ext
15231 # Binary search between lo and hi bounds.
15232 while test "x$ac_lo" != "x$ac_hi"; do
15233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15234 cat >conftest.$ac_ext <<_ACEOF
15235 #line $LINENO "configure"
15236 #include "confdefs.h"
15237 $ac_includes_default
15238 struct { char filler; long field; } pgac_struct;
15239 #ifdef F77_DUMMY_MAIN
15240 # ifdef __cplusplus
15243 int F77_DUMMY_MAIN() { return 1; }
15248 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257 (eval $ac_compile) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -s conftest.$ac_objext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15269 echo "$as_me: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15271 ac_lo=`expr '(' $ac_mid ')' + 1`
15273 rm -f conftest.$ac_objext conftest.$ac_ext
15276 ?*) pgac_cv_alignof_long=$ac_lo;;
15277 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15278 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15279 { (exit 1); exit 1; }; } ;;
15282 if test "$cross_compiling" = yes; then
15283 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15284 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15285 { (exit 1); exit 1; }; }
15287 cat >conftest.$ac_ext <<_ACEOF
15288 #line $LINENO "configure"
15289 #include "confdefs.h"
15290 $ac_includes_default
15291 struct { char filler; long field; } pgac_struct;
15292 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15293 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15295 #include <stdlib.h>
15296 #ifdef F77_DUMMY_MAIN
15297 # ifdef __cplusplus
15300 int F77_DUMMY_MAIN() { return 1; }
15306 FILE *f = fopen ("conftest.val", "w");
15309 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15311 long i = longval ();
15312 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15314 fprintf (f, "%ld\n", i);
15318 unsigned long i = ulongval ();
15319 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15321 fprintf (f, "%lu\n", i);
15323 exit (ferror (f) || fclose (f) != 0);
15329 rm -f conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 pgac_cv_alignof_long=`cat conftest.val`
15342 echo "$as_me: program exited with status $ac_status" >&5
15343 echo "$as_me: failed program was:" >&5
15344 cat conftest.$ac_ext >&5
15345 ( exit $ac_status )
15346 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15347 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15348 { (exit 1); exit 1; }; }
15350 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15355 pgac_cv_alignof_long=0
15358 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15359 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15360 cat >>confdefs.h <<_ACEOF
15361 #define ALIGNOF_LONG $pgac_cv_alignof_long
15365 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15366 echo "$as_me:$LINENO: checking for long long int" >&5
15367 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15368 if test "${ac_cv_type_long_long_int+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 cat >conftest.$ac_ext <<_ACEOF
15372 #line $LINENO "configure"
15373 #include "confdefs.h"
15374 $ac_includes_default
15375 #ifdef F77_DUMMY_MAIN
15376 # ifdef __cplusplus
15379 int F77_DUMMY_MAIN() { return 1; }
15384 if ((long long int *) 0)
15386 if (sizeof (long long int))
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_cv_type_long_long_int=yes
15406 echo "$as_me: failed program was:" >&5
15407 cat conftest.$ac_ext >&5
15408 ac_cv_type_long_long_int=no
15410 rm -f conftest.$ac_objext conftest.$ac_ext
15412 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15413 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15415 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15416 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15417 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 if test "$ac_cv_type_long_long_int" = yes; then
15421 if test "$cross_compiling" = yes; then
15422 # Depending upon the size, compute the lo and hi bounds.
15423 cat >conftest.$ac_ext <<_ACEOF
15424 #line $LINENO "configure"
15425 #include "confdefs.h"
15426 $ac_includes_default
15427 struct { char filler; long long int field; } pgac_struct;
15428 #ifdef F77_DUMMY_MAIN
15429 # ifdef __cplusplus
15432 int F77_DUMMY_MAIN() { return 1; }
15437 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446 (eval $ac_compile) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15458 cat >conftest.$ac_ext <<_ACEOF
15459 #line $LINENO "configure"
15460 #include "confdefs.h"
15461 $ac_includes_default
15462 struct { char filler; long long int field; } pgac_struct;
15463 #ifdef F77_DUMMY_MAIN
15464 # ifdef __cplusplus
15467 int F77_DUMMY_MAIN() { return 1; }
15472 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_hi=$ac_mid; break
15493 echo "$as_me: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15495 ac_lo=`expr $ac_mid + 1`
15496 if test $ac_lo -le $ac_mid; then
15500 ac_mid=`expr 2 '*' $ac_mid + 1`
15502 rm -f conftest.$ac_objext conftest.$ac_ext
15505 echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 cat >conftest.$ac_ext <<_ACEOF
15508 #line $LINENO "configure"
15509 #include "confdefs.h"
15510 $ac_includes_default
15511 struct { char filler; long long int field; } pgac_struct;
15512 #ifdef F77_DUMMY_MAIN
15513 # ifdef __cplusplus
15516 int F77_DUMMY_MAIN() { return 1; }
15521 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15528 rm -f conftest.$ac_objext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15530 (eval $ac_compile) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -s conftest.$ac_objext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15542 cat >conftest.$ac_ext <<_ACEOF
15543 #line $LINENO "configure"
15544 #include "confdefs.h"
15545 $ac_includes_default
15546 struct { char filler; long long int field; } pgac_struct;
15547 #ifdef F77_DUMMY_MAIN
15548 # ifdef __cplusplus
15551 int F77_DUMMY_MAIN() { return 1; }
15556 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15563 rm -f conftest.$ac_objext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15565 (eval $ac_compile) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 ac_lo=$ac_mid; break
15577 echo "$as_me: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15579 ac_hi=`expr '(' $ac_mid ')' - 1`
15580 if test $ac_mid -le $ac_hi; then
15584 ac_mid=`expr 2 '*' $ac_mid`
15586 rm -f conftest.$ac_objext conftest.$ac_ext
15589 echo "$as_me: failed program was:" >&5
15590 cat conftest.$ac_ext >&5
15593 rm -f conftest.$ac_objext conftest.$ac_ext
15595 rm -f conftest.$ac_objext conftest.$ac_ext
15596 # Binary search between lo and hi bounds.
15597 while test "x$ac_lo" != "x$ac_hi"; do
15598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15599 cat >conftest.$ac_ext <<_ACEOF
15600 #line $LINENO "configure"
15601 #include "confdefs.h"
15602 $ac_includes_default
15603 struct { char filler; long long int field; } pgac_struct;
15604 #ifdef F77_DUMMY_MAIN
15605 # ifdef __cplusplus
15608 int F77_DUMMY_MAIN() { return 1; }
15613 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15620 rm -f conftest.$ac_objext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15622 (eval $ac_compile) 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15634 echo "$as_me: failed program was:" >&5
15635 cat conftest.$ac_ext >&5
15636 ac_lo=`expr '(' $ac_mid ')' + 1`
15638 rm -f conftest.$ac_objext conftest.$ac_ext
15641 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15642 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15643 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15644 { (exit 1); exit 1; }; } ;;
15647 if test "$cross_compiling" = yes; then
15648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15649 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15650 { (exit 1); exit 1; }; }
15652 cat >conftest.$ac_ext <<_ACEOF
15653 #line $LINENO "configure"
15654 #include "confdefs.h"
15655 $ac_includes_default
15656 struct { char filler; long long int field; } pgac_struct;
15657 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15658 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15660 #include <stdlib.h>
15661 #ifdef F77_DUMMY_MAIN
15662 # ifdef __cplusplus
15665 int F77_DUMMY_MAIN() { return 1; }
15671 FILE *f = fopen ("conftest.val", "w");
15674 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15676 long i = longval ();
15677 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15679 fprintf (f, "%ld\n", i);
15683 unsigned long i = ulongval ();
15684 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15686 fprintf (f, "%lu\n", i);
15688 exit (ferror (f) || fclose (f) != 0);
15694 rm -f conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 pgac_cv_alignof_long_long_int=`cat conftest.val`
15707 echo "$as_me: program exited with status $ac_status" >&5
15708 echo "$as_me: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 ( exit $ac_status )
15711 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15712 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15713 { (exit 1); exit 1; }; }
15715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15720 pgac_cv_alignof_long_long_int=0
15723 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15724 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15725 cat >>confdefs.h <<_ACEOF
15726 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15731 echo "$as_me:$LINENO: checking for double" >&5
15732 echo $ECHO_N "checking for double... $ECHO_C" >&6
15733 if test "${ac_cv_type_double+set}" = set; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 cat >conftest.$ac_ext <<_ACEOF
15737 #line $LINENO "configure"
15738 #include "confdefs.h"
15739 $ac_includes_default
15740 #ifdef F77_DUMMY_MAIN
15741 # ifdef __cplusplus
15744 int F77_DUMMY_MAIN() { return 1; }
15751 if (sizeof (double))
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_cv_type_double=yes
15771 echo "$as_me: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 ac_cv_type_double=no
15775 rm -f conftest.$ac_objext conftest.$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15778 echo "${ECHO_T}$ac_cv_type_double" >&6
15780 echo "$as_me:$LINENO: checking alignment of double" >&5
15781 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15782 if test "${pgac_cv_alignof_double+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 if test "$ac_cv_type_double" = yes; then
15786 if test "$cross_compiling" = yes; then
15787 # Depending upon the size, compute the lo and hi bounds.
15788 cat >conftest.$ac_ext <<_ACEOF
15789 #line $LINENO "configure"
15790 #include "confdefs.h"
15791 $ac_includes_default
15792 struct { char filler; double field; } pgac_struct;
15793 #ifdef F77_DUMMY_MAIN
15794 # ifdef __cplusplus
15797 int F77_DUMMY_MAIN() { return 1; }
15802 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15809 rm -f conftest.$ac_objext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15811 (eval $ac_compile) 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
15815 { ac_try='test -s conftest.$ac_objext'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15823 cat >conftest.$ac_ext <<_ACEOF
15824 #line $LINENO "configure"
15825 #include "confdefs.h"
15826 $ac_includes_default
15827 struct { char filler; double field; } pgac_struct;
15828 #ifdef F77_DUMMY_MAIN
15829 # ifdef __cplusplus
15832 int F77_DUMMY_MAIN() { return 1; }
15837 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -s conftest.$ac_objext'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_hi=$ac_mid; break
15858 echo "$as_me: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15860 ac_lo=`expr $ac_mid + 1`
15861 if test $ac_lo -le $ac_mid; then
15865 ac_mid=`expr 2 '*' $ac_mid + 1`
15867 rm -f conftest.$ac_objext conftest.$ac_ext
15870 echo "$as_me: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 cat >conftest.$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15874 #include "confdefs.h"
15875 $ac_includes_default
15876 struct { char filler; double field; } pgac_struct;
15877 #ifdef F77_DUMMY_MAIN
15878 # ifdef __cplusplus
15881 int F77_DUMMY_MAIN() { return 1; }
15886 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895 (eval $ac_compile) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -s conftest.$ac_objext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15907 cat >conftest.$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15909 #include "confdefs.h"
15910 $ac_includes_default
15911 struct { char filler; double field; } pgac_struct;
15912 #ifdef F77_DUMMY_MAIN
15913 # ifdef __cplusplus
15916 int F77_DUMMY_MAIN() { return 1; }
15921 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15928 rm -f conftest.$ac_objext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930 (eval $ac_compile) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_lo=$ac_mid; break
15942 echo "$as_me: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15944 ac_hi=`expr '(' $ac_mid ')' - 1`
15945 if test $ac_mid -le $ac_hi; then
15949 ac_mid=`expr 2 '*' $ac_mid`
15951 rm -f conftest.$ac_objext conftest.$ac_ext
15954 echo "$as_me: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15958 rm -f conftest.$ac_objext conftest.$ac_ext
15960 rm -f conftest.$ac_objext conftest.$ac_ext
15961 # Binary search between lo and hi bounds.
15962 while test "x$ac_lo" != "x$ac_hi"; do
15963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15964 cat >conftest.$ac_ext <<_ACEOF
15965 #line $LINENO "configure"
15966 #include "confdefs.h"
15967 $ac_includes_default
15968 struct { char filler; double field; } pgac_struct;
15969 #ifdef F77_DUMMY_MAIN
15970 # ifdef __cplusplus
15973 int F77_DUMMY_MAIN() { return 1; }
15978 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15999 echo "$as_me: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 ac_lo=`expr '(' $ac_mid ')' + 1`
16003 rm -f conftest.$ac_objext conftest.$ac_ext
16006 ?*) pgac_cv_alignof_double=$ac_lo;;
16007 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16008 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16009 { (exit 1); exit 1; }; } ;;
16012 if test "$cross_compiling" = yes; then
16013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16014 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16015 { (exit 1); exit 1; }; }
16017 cat >conftest.$ac_ext <<_ACEOF
16018 #line $LINENO "configure"
16019 #include "confdefs.h"
16020 $ac_includes_default
16021 struct { char filler; double field; } pgac_struct;
16022 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16023 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16025 #include <stdlib.h>
16026 #ifdef F77_DUMMY_MAIN
16027 # ifdef __cplusplus
16030 int F77_DUMMY_MAIN() { return 1; }
16036 FILE *f = fopen ("conftest.val", "w");
16039 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16041 long i = longval ();
16042 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16044 fprintf (f, "%ld\n", i);
16048 unsigned long i = ulongval ();
16049 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16051 fprintf (f, "%lu\n", i);
16053 exit (ferror (f) || fclose (f) != 0);
16059 rm -f conftest$ac_exeext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16061 (eval $ac_link) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 pgac_cv_alignof_double=`cat conftest.val`
16072 echo "$as_me: program exited with status $ac_status" >&5
16073 echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 ( exit $ac_status )
16076 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16077 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16078 { (exit 1); exit 1; }; }
16080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16085 pgac_cv_alignof_double=0
16088 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16089 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16090 cat >>confdefs.h <<_ACEOF
16091 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16096 # Compute maximum alignment of any basic type.
16097 # We assume long's alignment is at least as strong as char, short, or int;
16098 # but we must check long long (if it exists) and double.
16100 MAX_ALIGNOF=$pgac_cv_alignof_long
16101 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16102 MAX_ALIGNOF=$pgac_cv_alignof_double
16104 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16105 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16108 cat >>confdefs.h <<_ACEOF
16109 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16114 # Some platforms predefine the types int8, int16, etc. Only check
16115 # a (hopefully) representative subset.
16116 echo "$as_me:$LINENO: checking for int8" >&5
16117 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16118 if test "${ac_cv_type_int8+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 cat >conftest.$ac_ext <<_ACEOF
16122 #line $LINENO "configure"
16123 #include "confdefs.h"
16125 #ifdef HAVE_SUPPORTDEFS_H
16126 #include <SupportDefs.h>
16129 #ifdef F77_DUMMY_MAIN
16130 # ifdef __cplusplus
16133 int F77_DUMMY_MAIN() { return 1; }
16146 rm -f conftest.$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148 (eval $ac_compile) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_cv_type_int8=yes
16160 echo "$as_me: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
16164 rm -f conftest.$ac_objext conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16167 echo "${ECHO_T}$ac_cv_type_int8" >&6
16168 if test $ac_cv_type_int8 = yes; then
16170 cat >>confdefs.h <<_ACEOF
16171 #define HAVE_INT8 1
16176 echo "$as_me:$LINENO: checking for uint8" >&5
16177 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16178 if test "${ac_cv_type_uint8+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16182 #line $LINENO "configure"
16183 #include "confdefs.h"
16185 #ifdef HAVE_SUPPORTDEFS_H
16186 #include <SupportDefs.h>
16189 #ifdef F77_DUMMY_MAIN
16190 # ifdef __cplusplus
16193 int F77_DUMMY_MAIN() { return 1; }
16200 if (sizeof (uint8))
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208 (eval $ac_compile) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -s conftest.$ac_objext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_cv_type_uint8=yes
16220 echo "$as_me: failed program was:" >&5
16221 cat conftest.$ac_ext >&5
16222 ac_cv_type_uint8=no
16224 rm -f conftest.$ac_objext conftest.$ac_ext
16226 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16227 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16228 if test $ac_cv_type_uint8 = yes; then
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE_UINT8 1
16236 echo "$as_me:$LINENO: checking for int64" >&5
16237 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16238 if test "${ac_cv_type_int64+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 cat >conftest.$ac_ext <<_ACEOF
16242 #line $LINENO "configure"
16243 #include "confdefs.h"
16245 #ifdef HAVE_SUPPORTDEFS_H
16246 #include <SupportDefs.h>
16249 #ifdef F77_DUMMY_MAIN
16250 # ifdef __cplusplus
16253 int F77_DUMMY_MAIN() { return 1; }
16260 if (sizeof (int64))
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -s conftest.$ac_objext'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }; then
16278 ac_cv_type_int64=yes
16280 echo "$as_me: failed program was:" >&5
16281 cat conftest.$ac_ext >&5
16282 ac_cv_type_int64=no
16284 rm -f conftest.$ac_objext conftest.$ac_ext
16286 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16287 echo "${ECHO_T}$ac_cv_type_int64" >&6
16288 if test $ac_cv_type_int64 = yes; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_INT64 1
16296 echo "$as_me:$LINENO: checking for uint64" >&5
16297 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16298 if test "${ac_cv_type_uint64+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 cat >conftest.$ac_ext <<_ACEOF
16302 #line $LINENO "configure"
16303 #include "confdefs.h"
16305 #ifdef HAVE_SUPPORTDEFS_H
16306 #include <SupportDefs.h>
16309 #ifdef F77_DUMMY_MAIN
16310 # ifdef __cplusplus
16313 int F77_DUMMY_MAIN() { return 1; }
16320 if (sizeof (uint64))
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ac_cv_type_uint64=yes
16340 echo "$as_me: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 ac_cv_type_uint64=no
16344 rm -f conftest.$ac_objext conftest.$ac_ext
16346 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16347 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16348 if test $ac_cv_type_uint64 = yes; then
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_UINT64 1
16358 # We also check for sig_atomic_t, which *should* be defined per ANSI
16359 # C, but is missing on some old platforms.
16360 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16361 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16362 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 cat >conftest.$ac_ext <<_ACEOF
16366 #line $LINENO "configure"
16367 #include "confdefs.h"
16368 #include <signal.h>
16370 #ifdef F77_DUMMY_MAIN
16371 # ifdef __cplusplus
16374 int F77_DUMMY_MAIN() { return 1; }
16379 if ((sig_atomic_t *) 0)
16381 if (sizeof (sig_atomic_t))
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try='test -s conftest.$ac_objext'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 ac_cv_type_sig_atomic_t=yes
16401 echo "$as_me: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16403 ac_cv_type_sig_atomic_t=no
16405 rm -f conftest.$ac_objext conftest.$ac_ext
16407 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16408 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16409 if test $ac_cv_type_sig_atomic_t = yes; then
16411 cat >>confdefs.h <<_ACEOF
16412 #define HAVE_SIG_ATOMIC_T 1
16420 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16421 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16422 if test "${pgac_cv_func_posix_signals+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 cat >conftest.$ac_ext <<_ACEOF
16426 #line $LINENO "configure"
16427 #include "confdefs.h"
16428 #include <signal.h>
16430 #ifdef F77_DUMMY_MAIN
16431 # ifdef __cplusplus
16434 int F77_DUMMY_MAIN() { return 1; }
16439 struct sigaction act, oact;
16440 sigemptyset(&act.sa_mask);
16441 act.sa_flags = SA_RESTART;
16442 sigaction(0, &act, &oact);
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -s conftest$ac_exeext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 pgac_cv_func_posix_signals=yes
16461 echo "$as_me: failed program was:" >&5
16462 cat conftest.$ac_ext >&5
16463 pgac_cv_func_posix_signals=no
16465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16467 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16468 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16469 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE_POSIX_SIGNALS
16476 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16478 if test $ac_cv_func_fseeko = yes; then
16479 # Check whether --enable-largefile or --disable-largefile was given.
16480 if test "${enable_largefile+set}" = set; then
16481 enableval="$enable_largefile"
16484 if test "$enable_largefile" != no; then
16486 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16487 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16488 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 ac_cv_sys_largefile_CC=no
16492 if test "$GCC" != yes; then
16495 # IRIX 6.2 and later do not support large files by default,
16496 # so use the C compiler's -n32 option if that helps.
16497 cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16499 #include "confdefs.h"
16500 #include <sys/types.h>
16501 /* Check that off_t can represent 2**63 - 1 correctly.
16502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16503 since some C++ compilers masquerading as C compilers
16504 incorrectly reject 9223372036854775807. */
16505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16507 && LARGE_OFF_T % 2147483647 == 1)
16509 #ifdef F77_DUMMY_MAIN
16510 # ifdef __cplusplus
16513 int F77_DUMMY_MAIN() { return 1; }
16523 rm -f conftest.$ac_objext
16524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16525 (eval $ac_compile) 2>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -s conftest.$ac_objext'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16537 echo "$as_me: failed program was:" >&5
16538 cat conftest.$ac_ext >&5
16540 rm -f conftest.$ac_objext
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_sys_largefile_CC=' -n32'; break
16556 echo "$as_me: failed program was:" >&5
16557 cat conftest.$ac_ext >&5
16559 rm -f conftest.$ac_objext
16563 rm -f conftest.$ac_ext
16566 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16567 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16568 if test "$ac_cv_sys_largefile_CC" != no; then
16569 CC=$CC$ac_cv_sys_largefile_CC
16572 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16573 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16574 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 ac_cv_sys_file_offset_bits=no
16579 cat >conftest.$ac_ext <<_ACEOF
16580 #line $LINENO "configure"
16581 #include "confdefs.h"
16582 #include <sys/types.h>
16583 /* Check that off_t can represent 2**63 - 1 correctly.
16584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16585 since some C++ compilers masquerading as C compilers
16586 incorrectly reject 9223372036854775807. */
16587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16589 && LARGE_OFF_T % 2147483647 == 1)
16591 #ifdef F77_DUMMY_MAIN
16592 # ifdef __cplusplus
16595 int F77_DUMMY_MAIN() { return 1; }
16605 rm -f conftest.$ac_objext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16607 (eval $ac_compile) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -s conftest.$ac_objext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16619 echo "$as_me: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16622 rm -f conftest.$ac_objext conftest.$ac_ext
16623 cat >conftest.$ac_ext <<_ACEOF
16624 #line $LINENO "configure"
16625 #include "confdefs.h"
16626 #define _FILE_OFFSET_BITS 64
16627 #include <sys/types.h>
16628 /* Check that off_t can represent 2**63 - 1 correctly.
16629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16630 since some C++ compilers masquerading as C compilers
16631 incorrectly reject 9223372036854775807. */
16632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16634 && LARGE_OFF_T % 2147483647 == 1)
16636 #ifdef F77_DUMMY_MAIN
16637 # ifdef __cplusplus
16640 int F77_DUMMY_MAIN() { return 1; }
16650 rm -f conftest.$ac_objext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_cv_sys_file_offset_bits=64; break
16664 echo "$as_me: failed program was:" >&5
16665 cat conftest.$ac_ext >&5
16667 rm -f conftest.$ac_objext conftest.$ac_ext
16671 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16672 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16673 if test "$ac_cv_sys_file_offset_bits" != no; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16681 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16682 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16683 if test "${ac_cv_sys_large_files+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 ac_cv_sys_large_files=no
16688 cat >conftest.$ac_ext <<_ACEOF
16689 #line $LINENO "configure"
16690 #include "confdefs.h"
16691 #include <sys/types.h>
16692 /* Check that off_t can represent 2**63 - 1 correctly.
16693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16694 since some C++ compilers masquerading as C compilers
16695 incorrectly reject 9223372036854775807. */
16696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16698 && LARGE_OFF_T % 2147483647 == 1)
16700 #ifdef F77_DUMMY_MAIN
16701 # ifdef __cplusplus
16704 int F77_DUMMY_MAIN() { return 1; }
16714 rm -f conftest.$ac_objext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716 (eval $ac_compile) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -s conftest.$ac_objext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16728 echo "$as_me: failed program was:" >&5
16729 cat conftest.$ac_ext >&5
16731 rm -f conftest.$ac_objext conftest.$ac_ext
16732 cat >conftest.$ac_ext <<_ACEOF
16733 #line $LINENO "configure"
16734 #include "confdefs.h"
16735 #define _LARGE_FILES 1
16736 #include <sys/types.h>
16737 /* Check that off_t can represent 2**63 - 1 correctly.
16738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16739 since some C++ compilers masquerading as C compilers
16740 incorrectly reject 9223372036854775807. */
16741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16743 && LARGE_OFF_T % 2147483647 == 1)
16745 #ifdef F77_DUMMY_MAIN
16746 # ifdef __cplusplus
16749 int F77_DUMMY_MAIN() { return 1; }
16759 rm -f conftest.$ac_objext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16761 (eval $ac_compile) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
16765 { ac_try='test -s conftest.$ac_objext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_cv_sys_large_files=1; break
16773 echo "$as_me: failed program was:" >&5
16774 cat conftest.$ac_ext >&5
16776 rm -f conftest.$ac_objext conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16781 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16782 if test "$ac_cv_sys_large_files" != no; then
16784 cat >>confdefs.h <<_ACEOF
16785 #define _LARGE_FILES $ac_cv_sys_large_files
16795 # Select semaphore implementation type.
16796 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16798 cat >>confdefs.h <<\_ACEOF
16799 #define USE_NAMED_POSIX_SEMAPHORES 1
16802 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16804 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16806 cat >>confdefs.h <<\_ACEOF
16807 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16810 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16813 cat >>confdefs.h <<\_ACEOF
16814 #define USE_SYSV_SEMAPHORES 1
16817 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16822 # Select shared-memory implementation type.
16824 cat >>confdefs.h <<\_ACEOF
16825 #define USE_SYSV_SHARED_MEMORY 1
16828 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16831 if test "$enable_nls" = yes ; then
16833 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16834 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16835 if test "${ac_cv_search_gettext+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 ac_func_search_save_LIBS=$LIBS
16839 ac_cv_search_gettext=no
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line $LINENO "configure"
16842 #include "confdefs.h"
16844 /* Override any gcc2 internal prototype to avoid an error. */
16848 /* We use char because int might match the return type of a gcc2
16849 builtin and then its argument prototype would still apply. */
16851 #ifdef F77_DUMMY_MAIN
16852 # ifdef __cplusplus
16855 int F77_DUMMY_MAIN() { return 1; }
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867 (eval $ac_link) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -s conftest$ac_exeext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_cv_search_gettext="none required"
16879 echo "$as_me: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16883 if test "$ac_cv_search_gettext" = no; then
16884 for ac_lib in intl; do
16885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16886 cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 #include "confdefs.h"
16890 /* Override any gcc2 internal prototype to avoid an error. */
16894 /* We use char because int might match the return type of a gcc2
16895 builtin and then its argument prototype would still apply. */
16897 #ifdef F77_DUMMY_MAIN
16898 # ifdef __cplusplus
16901 int F77_DUMMY_MAIN() { return 1; }
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_search_gettext="-l$ac_lib"
16926 echo "$as_me: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16932 LIBS=$ac_func_search_save_LIBS
16934 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16935 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16936 if test "$ac_cv_search_gettext" != no; then
16937 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16940 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16941 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16942 { (exit 1); exit 1; }; }
16945 if test "${ac_cv_header_libintl_h+set}" = set; then
16946 echo "$as_me:$LINENO: checking for libintl.h" >&5
16947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16948 if test "${ac_cv_header_libintl_h+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16952 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16954 # Is the header compilable?
16955 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16956 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16958 #line $LINENO "configure"
16959 #include "confdefs.h"
16960 $ac_includes_default
16961 #include <libintl.h>
16963 rm -f conftest.$ac_objext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16965 (eval $ac_compile) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_header_compiler=yes
16977 echo "$as_me: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16979 ac_header_compiler=no
16981 rm -f conftest.$ac_objext conftest.$ac_ext
16982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16983 echo "${ECHO_T}$ac_header_compiler" >&6
16985 # Is the header present?
16986 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16987 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16988 cat >conftest.$ac_ext <<_ACEOF
16989 #line $LINENO "configure"
16990 #include "confdefs.h"
16991 #include <libintl.h>
16993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16996 egrep -v '^ *\+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null; then
17001 if test -s conftest.err; then
17002 ac_cpp_err=$ac_c_preproc_warn_flag
17009 if test -z "$ac_cpp_err"; then
17010 ac_header_preproc=yes
17012 echo "$as_me: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17014 ac_header_preproc=no
17016 rm -f conftest.err conftest.$ac_ext
17017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17018 echo "${ECHO_T}$ac_header_preproc" >&6
17020 # So? What about this header?
17021 case $ac_header_compiler:$ac_header_preproc in
17023 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17024 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17026 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17028 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17033 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17035 echo "$as_me:$LINENO: checking for libintl.h" >&5
17036 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17037 if test "${ac_cv_header_libintl_h+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 ac_cv_header_libintl_h=$ac_header_preproc
17042 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17043 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17046 if test $ac_cv_header_libintl_h = yes; then
17049 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17050 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17051 { (exit 1); exit 1; }; }
17055 for ac_prog in msgfmt
17057 # Extract the first word of "$ac_prog", so it can be a program name with args.
17058 set dummy $ac_prog; ac_word=$2
17059 echo "$as_me:$LINENO: checking for $ac_word" >&5
17060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17061 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 if test -n "$MSGFMT"; then
17065 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068 for as_dir in $PATH
17071 test -z "$as_dir" && as_dir=.
17072 for ac_exec_ext in '' $ac_executable_extensions; do
17073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17074 ac_cv_prog_MSGFMT="$ac_prog"
17075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17083 MSGFMT=$ac_cv_prog_MSGFMT
17084 if test -n "$MSGFMT"; then
17085 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17086 echo "${ECHO_T}$MSGFMT" >&6
17088 echo "$as_me:$LINENO: result: no" >&5
17089 echo "${ECHO_T}no" >&6
17092 test -n "$MSGFMT" && break
17095 if test -z "$MSGFMT"; then
17096 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17097 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17098 { (exit 1); exit 1; }; }
17100 for ac_prog in msgmerge
17102 # Extract the first word of "$ac_prog", so it can be a program name with args.
17103 set dummy $ac_prog; ac_word=$2
17104 echo "$as_me:$LINENO: checking for $ac_word" >&5
17105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17106 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 if test -n "$MSGMERGE"; then
17110 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17113 for as_dir in $PATH
17116 test -z "$as_dir" && as_dir=.
17117 for ac_exec_ext in '' $ac_executable_extensions; do
17118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17119 ac_cv_prog_MSGMERGE="$ac_prog"
17120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17128 MSGMERGE=$ac_cv_prog_MSGMERGE
17129 if test -n "$MSGMERGE"; then
17130 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17131 echo "${ECHO_T}$MSGMERGE" >&6
17133 echo "$as_me:$LINENO: result: no" >&5
17134 echo "${ECHO_T}no" >&6
17137 test -n "$MSGMERGE" && break
17140 for ac_prog in xgettext
17142 # Extract the first word of "$ac_prog", so it can be a program name with args.
17143 set dummy $ac_prog; ac_word=$2
17144 echo "$as_me:$LINENO: checking for $ac_word" >&5
17145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17146 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 if test -n "$XGETTEXT"; then
17150 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17156 test -z "$as_dir" && as_dir=.
17157 for ac_exec_ext in '' $ac_executable_extensions; do
17158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17159 ac_cv_prog_XGETTEXT="$ac_prog"
17160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17168 XGETTEXT=$ac_cv_prog_XGETTEXT
17169 if test -n "$XGETTEXT"; then
17170 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17171 echo "${ECHO_T}$XGETTEXT" >&6
17173 echo "$as_me:$LINENO: result: no" >&5
17174 echo "${ECHO_T}no" >&6
17177 test -n "$XGETTEXT" && break
17181 # Note: share/locale is always the default, independent of $datadir
17182 localedir='${prefix}/share/locale'
17183 if test x"$prefix" = x"NONE"; then
17184 exp_localedir="$ac_default_prefix/share/locale"
17186 exp_localedir="$prefix/share/locale"
17191 cat >>confdefs.h <<_ACEOF
17192 #define LOCALEDIR "$exp_localedir"
17198 # Check for Tcl configuration script tclConfig.sh
17199 if test "$with_tcl" = yes; then
17200 for ac_prog in tclsh tcl
17202 # Extract the first word of "$ac_prog", so it can be a program name with args.
17203 set dummy $ac_prog; ac_word=$2
17204 echo "$as_me:$LINENO: checking for $ac_word" >&5
17205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17206 if test "${ac_cv_path_TCLSH+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17215 for as_dir in $PATH
17218 test -z "$as_dir" && as_dir=.
17219 for ac_exec_ext in '' $ac_executable_extensions; do
17220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17221 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17231 TCLSH=$ac_cv_path_TCLSH
17233 if test -n "$TCLSH"; then
17234 echo "$as_me:$LINENO: result: $TCLSH" >&5
17235 echo "${ECHO_T}$TCLSH" >&6
17237 echo "$as_me:$LINENO: result: no" >&5
17238 echo "${ECHO_T}no" >&6
17241 test -n "$TCLSH" && break
17244 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17245 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17246 # Let user override test
17247 if test -z "$TCL_CONFIG_SH"; then
17248 pgac_test_dirs="$with_tclconfig"
17250 set X $pgac_test_dirs; shift
17251 if test $# -eq 0; then
17252 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17253 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17254 { (exit 1); exit 1; }; }
17255 set X `echo 'puts $auto_path' | $TCLSH`; shift
17259 if test -r "$pgac_dir/tclConfig.sh"; then
17260 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17266 if test -z "$TCL_CONFIG_SH"; then
17267 echo "$as_me:$LINENO: result: no" >&5
17268 echo "${ECHO_T}no" >&6
17269 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17270 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17271 { (exit 1); exit 1; }; }
17273 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17274 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17280 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17281 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17282 eval TCL_LIBS=\"$TCL_LIBS\"
17283 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17284 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17288 # Check for Tk configuration script tkConfig.sh
17289 if test "$with_tk" = yes; then
17290 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17291 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17292 # Let user override test
17293 if test -z "$TK_CONFIG_SH"; then
17294 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17296 set X $pgac_test_dirs; shift
17297 if test $# -eq 0; then
17298 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17299 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17300 { (exit 1); exit 1; }; }
17301 set X `echo 'puts $auto_path' | $TCLSH`; shift
17305 if test -r "$pgac_dir/tkConfig.sh"; then
17306 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17312 if test -z "$TK_CONFIG_SH"; then
17313 echo "$as_me:$LINENO: result: no" >&5
17314 echo "${ECHO_T}no" >&6
17315 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17316 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17317 { (exit 1); exit 1; }; }
17319 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17320 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17326 eval TK_LIBS=\"$TK_LIBS\"
17327 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17328 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17334 # Check for DocBook and tools
17336 for ac_prog in onsgmls nsgmls
17338 # Extract the first word of "$ac_prog", so it can be a program name with args.
17339 set dummy $ac_prog; ac_word=$2
17340 echo "$as_me:$LINENO: checking for $ac_word" >&5
17341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17342 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 if test -n "$NSGMLS"; then
17346 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17349 for as_dir in $PATH
17352 test -z "$as_dir" && as_dir=.
17353 for ac_exec_ext in '' $ac_executable_extensions; do
17354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17355 ac_cv_prog_NSGMLS="$ac_prog"
17356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17364 NSGMLS=$ac_cv_prog_NSGMLS
17365 if test -n "$NSGMLS"; then
17366 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17367 echo "${ECHO_T}$NSGMLS" >&6
17369 echo "$as_me:$LINENO: result: no" >&5
17370 echo "${ECHO_T}no" >&6
17373 test -n "$NSGMLS" && break
17376 for ac_prog in openjade jade
17378 # Extract the first word of "$ac_prog", so it can be a program name with args.
17379 set dummy $ac_prog; ac_word=$2
17380 echo "$as_me:$LINENO: checking for $ac_word" >&5
17381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17382 if test "${ac_cv_prog_JADE+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 if test -n "$JADE"; then
17386 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389 for as_dir in $PATH
17392 test -z "$as_dir" && as_dir=.
17393 for ac_exec_ext in '' $ac_executable_extensions; do
17394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17395 ac_cv_prog_JADE="$ac_prog"
17396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17404 JADE=$ac_cv_prog_JADE
17405 if test -n "$JADE"; then
17406 echo "$as_me:$LINENO: result: $JADE" >&5
17407 echo "${ECHO_T}$JADE" >&6
17409 echo "$as_me:$LINENO: result: no" >&5
17410 echo "${ECHO_T}no" >&6
17413 test -n "$JADE" && break
17417 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17418 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17419 if test "${pgac_cv_check_docbook+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 cat >conftest.sgml <<EOF
17423 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17425 <title>test</title>
17427 <title>random</title>
17429 <title>testsect</title>
17436 pgac_cv_check_docbook=no
17438 if test -n "$NSGMLS"; then
17439 $NSGMLS -s conftest.sgml 1>&5 2>&1
17440 if test $? -eq 0; then
17441 pgac_cv_check_docbook=yes
17444 rm -f conftest.sgml
17446 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17447 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17449 have_docbook=$pgac_cv_check_docbook
17452 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17453 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17454 if test "${pgac_cv_path_stylesheets+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 if test -n "$DOCBOOKSTYLE"; then
17458 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17460 for pgac_prefix in /usr /usr/local /opt; do
17461 for pgac_infix in share lib; do
17462 for pgac_postfix in \
17463 sgml/stylesheets/nwalsh-modular \
17464 sgml/stylesheets/docbook \
17465 sgml/docbook-dsssl \
17466 sgml/docbook/dsssl/modular \
17467 sgml/docbook/stylesheet/dsssl/modular \
17468 sgml/docbook/dsssl-stylesheets
17470 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17471 if test -r "$pgac_candidate/html/docbook.dsl" \
17472 && test -r "$pgac_candidate/print/docbook.dsl"
17474 pgac_cv_path_stylesheets=$pgac_candidate
17483 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17485 if test -n "$DOCBOOKSTYLE"; then
17486 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17487 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17489 echo "$as_me:$LINENO: result: no" >&5
17490 echo "${ECHO_T}no" >&6
17492 if test -n "$DOCBOOKSTYLE"; then
17493 for ac_prog in collateindex.pl
17495 # Extract the first word of "$ac_prog", so it can be a program name with args.
17496 set dummy $ac_prog; ac_word=$2
17497 echo "$as_me:$LINENO: checking for $ac_word" >&5
17498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17499 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 case $COLLATEINDEX in
17504 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17508 for as_dir in $DOCBOOKSTYLE/bin $PATH
17511 test -z "$as_dir" && as_dir=.
17512 for ac_exec_ext in '' $ac_executable_extensions; do
17513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17514 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17524 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17526 if test -n "$COLLATEINDEX"; then
17527 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17528 echo "${ECHO_T}$COLLATEINDEX" >&6
17530 echo "$as_me:$LINENO: result: no" >&5
17531 echo "${ECHO_T}no" >&6
17534 test -n "$COLLATEINDEX" && break
17538 for ac_prog in collateindex.pl
17540 # Extract the first word of "$ac_prog", so it can be a program name with args.
17541 set dummy $ac_prog; ac_word=$2
17542 echo "$as_me:$LINENO: checking for $ac_word" >&5
17543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17544 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 case $COLLATEINDEX in
17549 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17553 for as_dir in $PATH
17556 test -z "$as_dir" && as_dir=.
17557 for ac_exec_ext in '' $ac_executable_extensions; do
17558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17559 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17569 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17571 if test -n "$COLLATEINDEX"; then
17572 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17573 echo "${ECHO_T}$COLLATEINDEX" >&6
17575 echo "$as_me:$LINENO: result: no" >&5
17576 echo "${ECHO_T}no" >&6
17579 test -n "$COLLATEINDEX" && break
17583 for ac_prog in sgmlspl
17585 # Extract the first word of "$ac_prog", so it can be a program name with args.
17586 set dummy $ac_prog; ac_word=$2
17587 echo "$as_me:$LINENO: checking for $ac_word" >&5
17588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17589 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 if test -n "$SGMLSPL"; then
17593 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17596 for as_dir in $PATH
17599 test -z "$as_dir" && as_dir=.
17600 for ac_exec_ext in '' $ac_executable_extensions; do
17601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17602 ac_cv_prog_SGMLSPL="$ac_prog"
17603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17611 SGMLSPL=$ac_cv_prog_SGMLSPL
17612 if test -n "$SGMLSPL"; then
17613 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17614 echo "${ECHO_T}$SGMLSPL" >&6
17616 echo "$as_me:$LINENO: result: no" >&5
17617 echo "${ECHO_T}no" >&6
17620 test -n "$SGMLSPL" && break
17625 # prepare build tree if outside source tree
17626 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17627 # Note 2: /bin/pwd might be better than shell's built-in at getting
17628 # a symlink-free name.
17629 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17633 if test "$no_create" != yes; then
17634 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17635 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17636 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17637 || { { echo "$as_me:$LINENO: error: failed" >&5
17638 echo "$as_me: error: failed" >&2;}
17639 { (exit 1); exit 1; }; }
17640 echo "$as_me:$LINENO: result: done" >&5
17641 echo "${ECHO_T}done" >&6
17647 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17650 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}"
17653 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17656 cat >confcache <<\_ACEOF
17657 # This file is a shell script that caches the results of configure
17658 # tests run on this system so they can be shared between configure
17659 # scripts and configure runs, see configure's option --config-cache.
17660 # It is not useful on other systems. If it contains results you don't
17661 # want to keep, you may remove or edit it.
17663 # config.status only pays attention to the cache file if you give it
17664 # the --recheck option to rerun configure.
17666 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17668 # following values.
17672 # The following way of writing the cache mishandles newlines in values,
17673 # but we know of no workaround that is simple, portable, and efficient.
17674 # So, don't put newlines in cache variables' values.
17675 # Ultrix sh set writes to stderr and can't be redirected directly,
17676 # and sets the high bit in the cache file unless we assign to the vars.
17679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17681 # `set' does not quote correctly, so add quotes (double-quote
17682 # substitution turns \\\\ into \\, and sed turns \\ into \).
17685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17688 # `set' quotes correctly as required by POSIX, so do not add quotes.
17690 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17699 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17701 if cmp -s $cache_file confcache; then :; else
17702 if test -w $cache_file; then
17703 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17704 cat confcache >$cache_file
17706 echo "not updating unwritable cache $cache_file"
17711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17712 # Let make expand exec_prefix.
17713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17715 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17716 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17717 # trailing colons and then remove the whole line if VPATH becomes empty
17718 # (actually we leave an empty line to preserve line numbers).
17719 if test "x$srcdir" = x.; then
17720 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17721 s/:*\$(srcdir):*/:/;
17722 s/:*\${srcdir}:*/:/;
17724 s/^\([^=]*=[ ]*\):*/\1/;
17730 DEFS=-DHAVE_CONFIG_H
17733 : ${CONFIG_STATUS=./config.status}
17734 ac_clean_files_save=$ac_clean_files
17735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17738 cat >$CONFIG_STATUS <<_ACEOF
17740 # Generated by $as_me.
17741 # Run this file to recreate the current configuration.
17742 # Compiler output produced by configure, useful for debugging
17743 # configure, is in config.log if it exists.
17746 SHELL=\${CONFIG_SHELL-$SHELL}
17749 cat >>$CONFIG_STATUS <<\_ACEOF
17751 ## --------------------- ##
17752 ## M4sh Initialization. ##
17753 ## --------------------- ##
17755 # Be Bourne compatible
17756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17759 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17764 # Support unset when possible.
17765 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17771 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17772 { $as_unset LANG || test "${LANG+set}" != set; } ||
17773 { LANG=C; export LANG; }
17774 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17775 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17776 { LC_ALL=C; export LC_ALL; }
17777 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17778 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17779 { LC_TIME=C; export LC_TIME; }
17780 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17781 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17782 { LC_CTYPE=C; export LC_CTYPE; }
17783 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17784 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17785 { LANGUAGE=C; export LANGUAGE; }
17786 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17787 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17788 { LC_COLLATE=C; export LC_COLLATE; }
17789 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17790 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17791 { LC_NUMERIC=C; export LC_NUMERIC; }
17792 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17793 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17794 { LC_MESSAGES=C; export LC_MESSAGES; }
17797 # Name of the executable.
17798 as_me=`(basename "$0") 2>/dev/null ||
17799 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17800 X"$0" : 'X\(//\)$' \| \
17801 X"$0" : 'X\(/\)$' \| \
17802 . : '\(.\)' 2>/dev/null ||
17804 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17805 /^X\/\(\/\/\)$/{ s//\1/; q; }
17806 /^X\/\(\/\).*/{ s//\1/; q; }
17809 # PATH needs CR, and LINENO needs CR and PATH.
17810 # Avoid depending upon Character Ranges.
17811 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17812 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17813 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17814 as_cr_digits='0123456789'
17815 as_cr_alnum=$as_cr_Letters$as_cr_digits
17817 # The user is always right.
17818 if test "${PATH_SEPARATOR+set}" != set; then
17819 echo "#! /bin/sh" >conftest.sh
17820 echo "exit 0" >>conftest.sh
17821 chmod +x conftest.sh
17822 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17831 as_lineno_1=$LINENO
17832 as_lineno_2=$LINENO
17833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17834 test "x$as_lineno_1" != "x$as_lineno_2" &&
17835 test "x$as_lineno_3" = "x$as_lineno_2" || {
17836 # Find who we are. Look in the path if we contain no path at all
17839 *[\\/]* ) as_myself=$0 ;;
17840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17841 for as_dir in $PATH
17844 test -z "$as_dir" && as_dir=.
17845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17850 # We did not find ourselves, most probably we were run as `sh COMMAND'
17851 # in which case we are not to be found in the path.
17852 if test "x$as_myself" = x; then
17855 if test ! -f "$as_myself"; then
17856 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17857 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17858 { (exit 1); exit 1; }; }
17860 case $CONFIG_SHELL in
17862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17863 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17866 test -z "$as_dir" && as_dir=.
17867 for as_base in sh bash ksh sh5; do
17870 if ("$as_dir/$as_base" -c '
17871 as_lineno_1=$LINENO
17872 as_lineno_2=$LINENO
17873 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17874 test "x$as_lineno_1" != "x$as_lineno_2" &&
17875 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17876 CONFIG_SHELL=$as_dir/$as_base
17877 export CONFIG_SHELL
17878 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17886 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17887 # uniformly replaced by the line number. The first 'sed' inserts a
17888 # line-number line before each line; the second 'sed' does the real
17889 # work. The second script uses 'N' to pair each line-number line
17890 # with the numbered line, and appends trailing '-' during
17891 # substitution so that $LINENO is not a special case at line end.
17892 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17893 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17894 sed '=' <$as_myself |
17899 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17902 s,^['$as_cr_digits']*\n,,
17903 ' >$as_me.lineno &&
17904 chmod +x $as_me.lineno ||
17905 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17906 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17907 { (exit 1); exit 1; }; }
17909 # Don't try to exec as it changes $[0], causing all sort of problems
17910 # (the dirname of $[0] is not the place where we might find the
17911 # original and so on. Autoconf is especially sensible to this).
17913 # Exit status is that of the last command.
17918 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17919 *c*,-n*) ECHO_N= ECHO_C='
17921 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17922 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17925 if expr a : '\(a\)' >/dev/null 2>&1; then
17931 rm -f conf$$ conf$$.exe conf$$.file
17933 if ln -s conf$$.file conf$$ 2>/dev/null; then
17934 # We could just check for DJGPP; but this test a) works b) is more generic
17935 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17936 if test -f conf$$.exe; then
17937 # Don't use ln at all; we don't have any links
17942 elif ln conf$$.file conf$$ 2>/dev/null; then
17947 rm -f conf$$ conf$$.exe conf$$.file
17949 as_executable_p="test -f"
17951 # Sed expression to map a string onto a valid CPP name.
17952 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17954 # Sed expression to map a string onto a valid variable name.
17955 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17959 # We need space, tab and new line, in precisely that order.
17965 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17969 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17970 # report actual input values of CONFIG_FILES etc. instead of their
17971 # values after options handling. Logging --version etc. is OK.
17975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17976 ## Running $as_me. ##
17981 This file was extended by PostgreSQL $as_me 7.5devel, which was
17982 generated by GNU Autoconf 2.53. Invocation command line was
17984 CONFIG_FILES = $CONFIG_FILES
17985 CONFIG_HEADERS = $CONFIG_HEADERS
17986 CONFIG_LINKS = $CONFIG_LINKS
17987 CONFIG_COMMANDS = $CONFIG_COMMANDS
17991 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17995 # Files that config.status was made for.
17996 if test -n "$ac_config_files"; then
17997 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18000 if test -n "$ac_config_headers"; then
18001 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18004 if test -n "$ac_config_links"; then
18005 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18008 if test -n "$ac_config_commands"; then
18009 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18012 cat >>$CONFIG_STATUS <<\_ACEOF
18015 \`$as_me' instantiates files from templates according to the
18016 current configuration.
18018 Usage: $0 [OPTIONS] [FILE]...
18020 -h, --help print this help, then exit
18021 -V, --version print version number, then exit
18022 -d, --debug don't remove temporary files
18023 --recheck update $as_me by reconfiguring in the same conditions
18024 --file=FILE[:TEMPLATE]
18025 instantiate the configuration file FILE
18026 --header=FILE[:TEMPLATE]
18027 instantiate the configuration header FILE
18029 Configuration files:
18032 Configuration headers:
18035 Configuration links:
18038 Report bugs to <bug-autoconf@gnu.org>."
18041 cat >>$CONFIG_STATUS <<_ACEOF
18043 PostgreSQL config.status 7.5devel
18044 configured by $0, generated by GNU Autoconf 2.53,
18045 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18047 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18048 Free Software Foundation, Inc.
18049 This config.status script is free software; the Free Software Foundation
18050 gives unlimited permission to copy, distribute and modify it."
18054 cat >>$CONFIG_STATUS <<\_ACEOF
18055 # If no file are specified by the user, then we need to provide default
18056 # value. By we need to know if files were specified by the user.
18062 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18063 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18065 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18069 *) # This is not an option, so the user has probably given explicit
18071 ac_need_defaults=false;;
18075 # Handling of the options.
18077 cat >>$CONFIG_STATUS <<_ACEOF
18078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18079 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18080 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18082 cat >>$CONFIG_STATUS <<\_ACEOF
18083 --version | --vers* | -V )
18084 echo "$ac_cs_version"; exit 0 ;;
18086 # Conflict between --help and --header
18087 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18088 Try \`$0 --help' for more information." >&5
18089 echo "$as_me: error: ambiguous option: $1
18090 Try \`$0 --help' for more information." >&2;}
18091 { (exit 1); exit 1; }; };;
18092 --help | --hel | -h )
18093 echo "$ac_cs_usage"; exit 0 ;;
18094 --debug | --d* | -d )
18096 --file | --fil | --fi | --f )
18098 CONFIG_FILES="$CONFIG_FILES $1"
18099 ac_need_defaults=false;;
18100 --header | --heade | --head | --hea )
18102 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18103 ac_need_defaults=false;;
18105 # This is an error.
18106 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18107 Try \`$0 --help' for more information." >&5
18108 echo "$as_me: error: unrecognized option: $1
18109 Try \`$0 --help' for more information." >&2;}
18110 { (exit 1); exit 1; }; } ;;
18112 *) ac_config_targets="$ac_config_targets $1" ;;
18124 cat >>$CONFIG_STATUS <<\_ACEOF
18125 for ac_config_target in $ac_config_targets
18127 case "$ac_config_target" in
18128 # Handling of arguments.
18129 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18130 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18131 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18132 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18133 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18134 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18135 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18136 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18137 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18138 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18141 { (exit 1); exit 1; }; };;
18145 # If the user did not use the arguments to specify the items to instantiate,
18146 # then the envvar interface is used. Set only those that are not.
18147 # We use the long form for the default assignment because of an extremely
18148 # bizarre bug on SunOS 4.1.3.
18149 if $ac_need_defaults; then
18150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18152 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18155 # Create a temporary directory, and hook for its removal unless debugging.
18158 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18159 trap '{ (exit 1); exit 1; }' 1 2 13 15
18162 # Create a (secure) tmp directory for tmp files.
18165 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18166 test -n "$tmp" && test -d "$tmp"
18169 tmp=$TMPDIR/cs$$-$RANDOM
18170 (umask 077 && mkdir $tmp)
18173 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18174 { (exit 1); exit 1; }
18179 cat >>$CONFIG_STATUS <<_ACEOF
18182 # CONFIG_FILES section.
18185 # No need to generate the scripts if there are no CONFIG_FILES.
18186 # This happens for instance when ./config.status config.h
18187 if test -n "\$CONFIG_FILES"; then
18188 # Protect against being on the right side of a sed subst in config.status.
18189 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18190 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18191 s,@SHELL@,$SHELL,;t t
18192 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18193 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18194 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18195 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18196 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18197 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18198 s,@exec_prefix@,$exec_prefix,;t t
18199 s,@prefix@,$prefix,;t t
18200 s,@program_transform_name@,$program_transform_name,;t t
18201 s,@bindir@,$bindir,;t t
18202 s,@sbindir@,$sbindir,;t t
18203 s,@libexecdir@,$libexecdir,;t t
18204 s,@datadir@,$datadir,;t t
18205 s,@sysconfdir@,$sysconfdir,;t t
18206 s,@sharedstatedir@,$sharedstatedir,;t t
18207 s,@localstatedir@,$localstatedir,;t t
18208 s,@libdir@,$libdir,;t t
18209 s,@includedir@,$includedir,;t t
18210 s,@oldincludedir@,$oldincludedir,;t t
18211 s,@infodir@,$infodir,;t t
18212 s,@mandir@,$mandir,;t t
18213 s,@build_alias@,$build_alias,;t t
18214 s,@host_alias@,$host_alias,;t t
18215 s,@target_alias@,$target_alias,;t t
18216 s,@DEFS@,$DEFS,;t t
18217 s,@ECHO_C@,$ECHO_C,;t t
18218 s,@ECHO_N@,$ECHO_N,;t t
18219 s,@ECHO_T@,$ECHO_T,;t t
18220 s,@LIBS@,$LIBS,;t t
18221 s,@configure_args@,$configure_args,;t t
18222 s,@build@,$build,;t t
18223 s,@build_cpu@,$build_cpu,;t t
18224 s,@build_vendor@,$build_vendor,;t t
18225 s,@build_os@,$build_os,;t t
18226 s,@host@,$host,;t t
18227 s,@host_cpu@,$host_cpu,;t t
18228 s,@host_vendor@,$host_vendor,;t t
18229 s,@host_os@,$host_os,;t t
18230 s,@PORTNAME@,$PORTNAME,;t t
18231 s,@docdir@,$docdir,;t t
18232 s,@enable_nls@,$enable_nls,;t t
18233 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18234 s,@default_port@,$default_port,;t t
18235 s,@enable_shared@,$enable_shared,;t t
18236 s,@enable_rpath@,$enable_rpath,;t t
18237 s,@enable_debug@,$enable_debug,;t t
18239 s,@CFLAGS@,$CFLAGS,;t t
18240 s,@LDFLAGS@,$LDFLAGS,;t t
18241 s,@CPPFLAGS@,$CPPFLAGS,;t t
18242 s,@ac_ct_CC@,$ac_ct_CC,;t t
18243 s,@EXEEXT@,$EXEEXT,;t t
18244 s,@OBJEXT@,$OBJEXT,;t t
18248 s,@autodepend@,$autodepend,;t t
18249 s,@INCLUDES@,$INCLUDES,;t t
18250 s,@enable_thread_safety@,$enable_thread_safety,;t t
18251 s,@with_tcl@,$with_tcl,;t t
18252 s,@with_tk@,$with_tk,;t t
18253 s,@with_perl@,$with_perl,;t t
18254 s,@with_python@,$with_python,;t t
18256 s,@with_java@,$with_java,;t t
18257 s,@with_krb4@,$with_krb4,;t t
18258 s,@with_krb5@,$with_krb5,;t t
18259 s,@krb_srvtab@,$krb_srvtab,;t t
18260 s,@with_pam@,$with_pam,;t t
18261 s,@with_rendezvous@,$with_rendezvous,;t t
18262 s,@with_openssl@,$with_openssl,;t t
18263 s,@ELF_SYS@,$ELF_SYS,;t t
18265 s,@FLEX@,$FLEX,;t t
18266 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18267 s,@LN_S@,$LN_S,;t t
18269 s,@with_gnu_ld@,$with_gnu_ld,;t t
18270 s,@ld_R_works@,$ld_R_works,;t t
18271 s,@RANLIB@,$RANLIB,;t t
18272 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18273 s,@LORDER@,$LORDER,;t t
18275 s,@STRIP@,$STRIP,;t t
18276 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18277 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18278 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18279 s,@YACC@,$YACC,;t t
18280 s,@YFLAGS@,$YFLAGS,;t t
18281 s,@PERL@,$PERL,;t t
18282 s,@perl_archlibexp@,$perl_archlibexp,;t t
18283 s,@perl_privlibexp@,$perl_privlibexp,;t t
18284 s,@perl_useshrplib@,$perl_useshrplib,;t t
18285 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18286 s,@PYTHON@,$PYTHON,;t t
18287 s,@python_prefix@,$python_prefix,;t t
18288 s,@python_execprefix@,$python_execprefix,;t t
18289 s,@python_configdir@,$python_configdir,;t t
18290 s,@python_includespec@,$python_includespec,;t t
18291 s,@python_libspec@,$python_libspec,;t t
18292 s,@LIBOBJS@,$LIBOBJS,;t t
18293 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18294 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18295 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18296 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18297 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18298 s,@MSGFMT@,$MSGFMT,;t t
18299 s,@MSGMERGE@,$MSGMERGE,;t t
18300 s,@XGETTEXT@,$XGETTEXT,;t t
18301 s,@localedir@,$localedir,;t t
18302 s,@TCLSH@,$TCLSH,;t t
18303 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18304 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18305 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18306 s,@TCL_LIBS@,$TCL_LIBS,;t t
18307 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18308 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18309 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18310 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18311 s,@TK_LIBS@,$TK_LIBS,;t t
18312 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18313 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18314 s,@NSGMLS@,$NSGMLS,;t t
18315 s,@JADE@,$JADE,;t t
18316 s,@have_docbook@,$have_docbook,;t t
18317 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18318 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18319 s,@SGMLSPL@,$SGMLSPL,;t t
18320 s,@vpath_build@,$vpath_build,;t t
18325 cat >>$CONFIG_STATUS <<\_ACEOF
18326 # Split the substitutions into bite-sized pieces for seds with
18327 # small command number limits, like on Digital OSF/1 and HP-UX.
18328 ac_max_sed_lines=48
18329 ac_sed_frag=1 # Number of current file.
18330 ac_beg=1 # First line for current file.
18331 ac_end=$ac_max_sed_lines # Line after last line for current file.
18334 while $ac_more_lines; do
18335 if test $ac_beg -gt 1; then
18336 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18338 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18340 if test ! -s $tmp/subs.frag; then
18341 ac_more_lines=false
18343 # The purpose of the label and of the branching condition is to
18344 # speed up the sed processing (if there are no `@' at all, there
18345 # is no need to browse any of the substitutions).
18346 # These are the two extra sed commands mentioned above.
18348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18349 if test -z "$ac_sed_cmds"; then
18350 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18352 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18354 ac_sed_frag=`expr $ac_sed_frag + 1`
18356 ac_end=`expr $ac_end + $ac_max_sed_lines`
18359 if test -z "$ac_sed_cmds"; then
18362 fi # test -n "$CONFIG_FILES"
18365 cat >>$CONFIG_STATUS <<\_ACEOF
18366 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18369 - | *:- | *:-:* ) # input from stdin
18371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18375 * ) ac_file_in=$ac_file.in ;;
18378 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18379 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381 X"$ac_file" : 'X\(//\)[^/]' \| \
18382 X"$ac_file" : 'X\(//\)$' \| \
18383 X"$ac_file" : 'X\(/\)' \| \
18384 . : '\(.\)' 2>/dev/null ||
18386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18388 /^X\(\/\/\)$/{ s//\1/; q; }
18389 /^X\(\/\).*/{ s//\1/; q; }
18391 { case "$ac_dir" in
18392 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18396 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18397 case $as_mkdir_dir in
18398 # Skip DOS drivespec
18399 ?:) as_incr_dir=$as_mkdir_dir ;;
18401 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18402 test -d "$as_incr_dir" ||
18403 mkdir "$as_incr_dir" ||
18404 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18405 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18406 { (exit 1); exit 1; }; }
18413 if test "$ac_dir" != .; then
18414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18415 # A "../" for each directory in $ac_dir_suffix.
18416 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18418 ac_dir_suffix= ac_top_builddir=
18422 .) # No --srcdir option. We are building in place.
18424 if test -z "$ac_top_builddir"; then
18427 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18429 [\\/]* | ?:[\\/]* ) # Absolute path.
18430 ac_srcdir=$srcdir$ac_dir_suffix;
18431 ac_top_srcdir=$srcdir ;;
18432 *) # Relative path.
18433 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18434 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18436 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18438 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18439 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18440 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18441 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18445 if test x"$ac_file" != x-; then
18446 { echo "$as_me:$LINENO: creating $ac_file" >&5
18447 echo "$as_me: creating $ac_file" >&6;}
18450 # Let's still pretend it is `configure' which instantiates (i.e., don't
18451 # use $as_me), people would be surprised to read:
18452 # /* config.h. Generated by config.status. */
18453 if test x"$ac_file" = x-; then
18456 configure_input="$ac_file. "
18458 configure_input=$configure_input"Generated from `echo $ac_file_in |
18459 sed 's,.*/,,'` by configure."
18461 # First look for the input files in the build tree, otherwise in the
18463 ac_file_inputs=`IFS=:
18464 for f in $ac_file_in; do
18466 -) echo $tmp/stdin ;;
18468 # Absolute (can't be DOS-style, as IFS=:)
18469 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18470 echo "$as_me: error: cannot find input file: $f" >&2;}
18471 { (exit 1); exit 1; }; }
18474 if test -f "$f"; then
18477 elif test -f "$srcdir/$f"; then
18482 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18483 echo "$as_me: error: cannot find input file: $f" >&2;}
18484 { (exit 1); exit 1; }; }
18487 done` || { (exit 1); exit 1; }
18489 cat >>$CONFIG_STATUS <<_ACEOF
18493 cat >>$CONFIG_STATUS <<\_ACEOF
18495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18496 s,@configure_input@,$configure_input,;t t
18497 s,@srcdir@,$ac_srcdir,;t t
18498 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18499 s,@top_srcdir@,$ac_top_srcdir,;t t
18500 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18501 s,@builddir@,$ac_builddir,;t t
18502 s,@abs_builddir@,$ac_abs_builddir,;t t
18503 s,@top_builddir@,$ac_top_builddir,;t t
18504 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18505 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18507 if test x"$ac_file" != x-; then
18508 mv $tmp/out $ac_file
18516 cat >>$CONFIG_STATUS <<\_ACEOF
18519 # CONFIG_HEADER section.
18522 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18523 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18525 # ac_d sets the value in "#define NAME VALUE" lines.
18526 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18527 ac_dB='[ ].*$,\1#\2'
18530 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18531 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18532 ac_uB='$,\1#\2define\3'
18536 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18539 - | *:- | *:-:* ) # input from stdin
18541 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18542 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18543 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18544 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18545 * ) ac_file_in=$ac_file.in ;;
18548 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18549 echo "$as_me: creating $ac_file" >&6;}
18551 # First look for the input files in the build tree, otherwise in the
18553 ac_file_inputs=`IFS=:
18554 for f in $ac_file_in; do
18556 -) echo $tmp/stdin ;;
18558 # Absolute (can't be DOS-style, as IFS=:)
18559 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18560 echo "$as_me: error: cannot find input file: $f" >&2;}
18561 { (exit 1); exit 1; }; }
18564 if test -f "$f"; then
18567 elif test -f "$srcdir/$f"; then
18572 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18573 echo "$as_me: error: cannot find input file: $f" >&2;}
18574 { (exit 1); exit 1; }; }
18577 done` || { (exit 1); exit 1; }
18578 # Remove the trailing spaces.
18579 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18583 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18584 # `conftest.undefs', that substitutes the proper values into
18585 # config.h.in to produce config.h. The first handles `#define'
18586 # templates, and the second `#undef' templates.
18587 # And first: Protect against being on the right side of a sed subst in
18588 # config.status. Protect against being in an unquoted here document
18589 # in config.status.
18590 rm -f conftest.defines conftest.undefs
18591 # Using a here document instead of a string reduces the quoting nightmare.
18592 # Putting comments in sed scripts is not portable.
18594 # `end' is used to avoid that the second main sed command (meant for
18595 # 0-ary CPP macros) applies to n-ary macro definitions.
18596 # See the Autoconf documentation for `clear'.
18597 cat >confdef2sed.sed <<\_ACEOF
18602 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18604 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18607 # If some macros were called several times there might be several times
18608 # the same #defines, which is useless. Nevertheless, we may not want to
18609 # sort them, since we want the *last* AC-DEFINE to be honored.
18610 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18611 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18612 rm -f confdef2sed.sed
18614 # This sed command replaces #undef with comments. This is necessary, for
18615 # example, in the case of _POSIX_SOURCE, which is predefined and required
18616 # on some systems where configure will not decide to define it.
18617 cat >>conftest.undefs <<\_ACEOF
18618 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18621 # Break up conftest.defines because some shells have a limit on the size
18622 # of here documents, and old seds have small limits too (100 cmds).
18623 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18624 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18625 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18626 echo ' :' >>$CONFIG_STATUS
18627 rm -f conftest.tail
18628 while grep . conftest.defines >/dev/null
18630 # Write a limited-size here document to $tmp/defines.sed.
18631 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18632 # Speed up: don't consider the non `#define' lines.
18633 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18634 # Work around the forget-to-reset-the-flag bug.
18635 echo 't clr' >>$CONFIG_STATUS
18636 echo ': clr' >>$CONFIG_STATUS
18637 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18639 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18641 mv $tmp/out $tmp/in
18643 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18644 rm -f conftest.defines
18645 mv conftest.tail conftest.defines
18647 rm -f conftest.defines
18648 echo ' fi # egrep' >>$CONFIG_STATUS
18649 echo >>$CONFIG_STATUS
18651 # Break up conftest.undefs because some shells have a limit on the size
18652 # of here documents, and old seds have small limits too (100 cmds).
18653 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18654 rm -f conftest.tail
18655 while grep . conftest.undefs >/dev/null
18657 # Write a limited-size here document to $tmp/undefs.sed.
18658 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18659 # Speed up: don't consider the non `#undef'
18660 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18661 # Work around the forget-to-reset-the-flag bug.
18662 echo 't clr' >>$CONFIG_STATUS
18663 echo ': clr' >>$CONFIG_STATUS
18664 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18666 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18668 mv $tmp/out $tmp/in
18670 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18671 rm -f conftest.undefs
18672 mv conftest.tail conftest.undefs
18674 rm -f conftest.undefs
18676 cat >>$CONFIG_STATUS <<\_ACEOF
18677 # Let's still pretend it is `configure' which instantiates (i.e., don't
18678 # use $as_me), people would be surprised to read:
18679 # /* config.h. Generated by config.status. */
18680 if test x"$ac_file" = x-; then
18681 echo "/* Generated by configure. */" >$tmp/config.h
18683 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18685 cat $tmp/in >>$tmp/config.h
18687 if test x"$ac_file" != x-; then
18688 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18689 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18690 echo "$as_me: $ac_file is unchanged" >&6;}
18692 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18694 X"$ac_file" : 'X\(//\)[^/]' \| \
18695 X"$ac_file" : 'X\(//\)$' \| \
18696 X"$ac_file" : 'X\(/\)' \| \
18697 . : '\(.\)' 2>/dev/null ||
18699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18701 /^X\(\/\/\)$/{ s//\1/; q; }
18702 /^X\(\/\).*/{ s//\1/; q; }
18704 { case "$ac_dir" in
18705 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18709 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18710 case $as_mkdir_dir in
18711 # Skip DOS drivespec
18712 ?:) as_incr_dir=$as_mkdir_dir ;;
18714 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18715 test -d "$as_incr_dir" ||
18716 mkdir "$as_incr_dir" ||
18717 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18718 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18719 { (exit 1); exit 1; }; }
18725 mv $tmp/config.h $ac_file
18729 rm -f $tmp/config.h
18731 # Run the commands associated with the file.
18733 src/include/pg_config.h )
18734 # Update timestamp for pg_config.h (see Makefile.global)
18735 echo >src/include/stamp-h
18740 cat >>$CONFIG_STATUS <<\_ACEOF
18743 # CONFIG_LINKS section.
18746 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18747 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18748 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18750 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18751 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18753 if test ! -r $srcdir/$ac_source; then
18754 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18755 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18756 { (exit 1); exit 1; }; }
18760 # Make relative symlinks.
18761 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18762 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18763 X"$ac_dest" : 'X\(//\)[^/]' \| \
18764 X"$ac_dest" : 'X\(//\)$' \| \
18765 X"$ac_dest" : 'X\(/\)' \| \
18766 . : '\(.\)' 2>/dev/null ||
18768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18770 /^X\(\/\/\)$/{ s//\1/; q; }
18771 /^X\(\/\).*/{ s//\1/; q; }
18773 { case "$ac_dest_dir" in
18774 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18777 as_dummy="$ac_dest_dir"
18778 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18779 case $as_mkdir_dir in
18780 # Skip DOS drivespec
18781 ?:) as_incr_dir=$as_mkdir_dir ;;
18783 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18784 test -d "$as_incr_dir" ||
18785 mkdir "$as_incr_dir" ||
18786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18787 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18788 { (exit 1); exit 1; }; }
18795 if test "$ac_dest_dir" != .; then
18796 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18797 # A "../" for each directory in $ac_dir_suffix.
18798 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18800 ac_dir_suffix= ac_top_builddir=
18804 .) # No --srcdir option. We are building in place.
18806 if test -z "$ac_top_builddir"; then
18809 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18811 [\\/]* | ?:[\\/]* ) # Absolute path.
18812 ac_srcdir=$srcdir$ac_dir_suffix;
18813 ac_top_srcdir=$srcdir ;;
18814 *) # Relative path.
18815 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18816 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18818 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18820 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18821 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18822 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18823 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18827 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18828 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18831 # Make a symlink if possible; otherwise try a hard link.
18832 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18833 ln $srcdir/$ac_source $ac_dest ||
18834 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18835 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18836 { (exit 1); exit 1; }; }
18840 cat >>$CONFIG_STATUS <<\_ACEOF
18842 { (exit 0); exit 0; }
18844 chmod +x $CONFIG_STATUS
18845 ac_clean_files=$ac_clean_files_save
18848 # configure is writing to config.log, and then calls config.status.
18849 # config.status does its own redirection, appending to config.log.
18850 # Unfortunately, on DOS this fails, as config.log is still kept open
18851 # by configure, so config.status won't be able to write to it; its
18852 # output is simply discarded. So we exec the FD to /dev/null,
18853 # effectively closing config.log, so it can be properly (re)opened and
18854 # appended to by config.status. When coming back to configure, we
18855 # need to make the FD available again.
18856 if test "$no_create" != yes; then
18859 $SHELL $CONFIG_STATUS || ac_cs_success=false
18861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18862 # would make configure fail if this is the last instruction.
18863 $ac_cs_success || { (exit 1); exit 1; }