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-krb4 build with Kerberos 4 support
868 --with-krb5 build with Kerberos 5 support
869 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
870 --with-pam build with PAM support
871 --with-rendezvous build with Rendezvous support
872 --with-openssl build with OpenSSL support
873 --without-readline do not use Readline
874 --without-zlib do not use Zlib
875 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
886 location of DocBook stylesheets
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 Report bugs to <pgsql-bugs@postgresql.org>.
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 ac_dir_suffix= ac_top_builddir=
911 .) # No --srcdir option. We are building in place.
913 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
927 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
928 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
929 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
930 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933 # Check for guested configure; otherwise get Cygnus style configure.
934 if test -f $ac_srcdir/configure.gnu; then
936 $SHELL $ac_srcdir/configure.gnu --help=recursive
937 elif test -f $ac_srcdir/configure; then
939 $SHELL $ac_srcdir/configure --help=recursive
940 elif test -f $ac_srcdir/configure.ac ||
941 test -f $ac_srcdir/configure.in; then
945 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 test -n "$ac_init_help" && exit 0
952 if $ac_init_version; then
954 PostgreSQL configure 7.5devel
955 generated by GNU Autoconf 2.53
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
962 Copyright 2003 PostgreSQL Global Development Group
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by PostgreSQL $as_me 7.5devel, which was
972 generated by GNU Autoconf 2.53. Invocation command line was
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Also quote any args containing shell meta-characters.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n ) continue ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038 case " $ac_configure_args " in
1039 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1040 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1043 # Get rid of the leading space.
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1056 ## ---------------- ##
1057 ## Cache variables. ##
1058 ## ---------------- ##
1061 # The following way of writing the cache mishandles newlines in values,
1064 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 if test -s confdefs.h; then
1084 sed "/^$/d" confdefs.h
1087 test "$ac_signal" != 0 &&
1088 echo "$as_me: caught signal $ac_signal"
1089 echo "$as_me: exit $exit_status"
1091 rm -f core core.* *.core &&
1092 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1095 for ac_signal in 1 2 13 15; do
1096 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1101 rm -rf conftest* confdefs.h
1102 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1105 # Predefined preprocessor variables.
1107 cat >>confdefs.h <<_ACEOF
1108 #define PACKAGE_NAME "$PACKAGE_NAME"
1112 cat >>confdefs.h <<_ACEOF
1113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1117 cat >>confdefs.h <<_ACEOF
1118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1122 cat >>confdefs.h <<_ACEOF
1123 #define PACKAGE_STRING "$PACKAGE_STRING"
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1132 # Let the site file select an alternate cache file if it wants to.
1133 # Prefer explicitly selected file to automatically selected ones.
1134 if test -z "$CONFIG_SITE"; then
1135 if test "x$prefix" != xNONE; then
1136 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1138 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1141 for ac_site_file in $CONFIG_SITE; do
1142 if test -r "$ac_site_file"; then
1143 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1144 echo "$as_me: loading site script $ac_site_file" >&6;}
1145 sed 's/^/| /' "$ac_site_file" >&5
1150 if test -r "$cache_file"; then
1151 # Some versions of bash will fail to source /dev/null (special
1152 # files actually), so we avoid doing that.
1153 if test -f "$cache_file"; then
1154 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1155 echo "$as_me: loading cache $cache_file" >&6;}
1157 [\\/]* | ?:[\\/]* ) . $cache_file;;
1158 *) . ./$cache_file;;
1162 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1163 echo "$as_me: creating cache $cache_file" >&6;}
1167 # Check that the precious variables saved in the cache have kept the same
1169 ac_cache_corrupted=false
1170 for ac_var in `(set) 2>&1 |
1171 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1173 eval ac_new_set=\$ac_env_${ac_var}_set
1174 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1175 eval ac_new_val="\$ac_env_${ac_var}_value"
1176 case $ac_old_set,$ac_new_set in
1178 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1179 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1180 ac_cache_corrupted=: ;;
1182 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1184 ac_cache_corrupted=: ;;
1187 if test "x$ac_old_val" != "x$ac_new_val"; then
1188 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1189 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1190 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1191 echo "$as_me: former value: $ac_old_val" >&2;}
1192 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1193 echo "$as_me: current value: $ac_new_val" >&2;}
1194 ac_cache_corrupted=:
1197 # Pass precious variables to config.status.
1198 if test "$ac_new_set" = set; then
1200 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1201 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1202 *) ac_arg=$ac_var=$ac_new_val ;;
1204 case " $ac_configure_args " in
1205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1206 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1210 if $ac_cache_corrupted; then
1211 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1212 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1213 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1214 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1215 { (exit 1); exit 1; }; }
1219 ac_cpp='$CPP $CPPFLAGS'
1220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254 for ac_dir in config $srcdir/config; do
1255 if test -f $ac_dir/install-sh; then
1257 ac_install_sh="$ac_aux_dir/install-sh -c"
1259 elif test -f $ac_dir/install.sh; then
1261 ac_install_sh="$ac_aux_dir/install.sh -c"
1263 elif test -f $ac_dir/shtool; then
1265 ac_install_sh="$ac_aux_dir/shtool install -c"
1269 if test -z "$ac_aux_dir"; then
1270 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1271 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1272 { (exit 1); exit 1; }; }
1274 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1275 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1276 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1279 configure_args=$ac_configure_args
1283 cat >>confdefs.h <<_ACEOF
1284 #define PG_VERSION "$PACKAGE_VERSION"
1288 # Make sure we can run config.sub.
1289 $ac_config_sub sun4 >/dev/null 2>&1 ||
1290 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1291 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1292 { (exit 1); exit 1; }; }
1294 echo "$as_me:$LINENO: checking build system type" >&5
1295 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1296 if test "${ac_cv_build+set}" = set; then
1297 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 ac_cv_build_alias=$build_alias
1300 test -z "$ac_cv_build_alias" &&
1301 ac_cv_build_alias=`$ac_config_guess`
1302 test -z "$ac_cv_build_alias" &&
1303 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1304 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1305 { (exit 1); exit 1; }; }
1306 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1307 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1313 echo "${ECHO_T}$ac_cv_build" >&6
1315 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo "$as_me:$LINENO: checking host system type" >&5
1321 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1322 if test "${ac_cv_host+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1325 ac_cv_host_alias=$host_alias
1326 test -z "$ac_cv_host_alias" &&
1327 ac_cv_host_alias=$ac_cv_build_alias
1328 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1329 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1330 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1331 { (exit 1); exit 1; }; }
1334 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1335 echo "${ECHO_T}$ac_cv_host" >&6
1337 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$as_me:$LINENO: checking which template to use" >&5
1345 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1350 # Check whether --with-template or --without-template was given.
1351 if test "${with_template+set}" = set; then
1352 withval="$with_template"
1356 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1357 echo "$as_me: error: argument required for --with-template option" >&2;}
1358 { (exit 1); exit 1; }; }
1361 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1362 echo "$as_me: error: argument required for --with-template option" >&2;}
1363 { (exit 1); exit 1; }; }
1368 list) echo; ls "$srcdir/src/template"; exit;;
1369 *) if test -f "$srcdir/src/template/$with_template" ; then
1372 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1373 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1374 { (exit 1); exit 1; }; }
1383 # --with-template not given
1386 aix*) template=aix ;;
1387 beos*) template=beos ;;
1388 bsdi*) template=bsdi ;;
1389 cygwin*) template=cygwin ;;
1390 darwin*) template=darwin ;;
1391 dgux*) template=dgux ;;
1392 freebsd*) template=freebsd ;;
1393 hpux*) template=hpux ;;
1394 irix*) template=irix5 ;;
1395 linux*) template=linux ;;
1396 mingw*) template=win32 ;;
1397 netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399 openbsd*) template=openbsd ;;
1400 osf*) template=osf ;;
1401 qnx*) template=qnx4 ;;
1402 sco*) template=sco ;;
1403 solaris*) template=solaris ;;
1404 sunos*) template=sunos4 ;;
1406 case $host_vendor in
1407 univel) template=univel ;;
1409 sysv4*) template=svr4 ;;
1410 sysv5*) template=unixware ;;
1411 ultrix*) template=ultrix4 ;;
1414 if test x"$template" = x"" ; then
1415 { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this. Include the above 'checking host system type...'
1424 *******************************************************************
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this. Include the above 'checking host system type...'
1435 *******************************************************************
1437 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1450 # Initialize default assumption that we do not need separate assembly code
1451 # for TAS (test-and-set). This can be overridden by the template file
1452 # when it's executed.
1459 ## Command line options
1463 # Installation directory for documentation
1468 # Check whether --with-docdir or --without-docdir was given.
1469 if test "${with_docdir+set}" = set; then
1470 withval="$with_docdir"
1474 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1475 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1476 { (exit 1); exit 1; }; }
1487 docdir='${prefix}/doc'
1494 # Add non-standard directories to the include path
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501 withval="$with_includes"
1505 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507 { (exit 1); exit 1; }; }
1510 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512 { (exit 1); exit 1; }; }
1524 # Add non-standard directories to the library search path
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531 withval="$with_libraries"
1535 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537 { (exit 1); exit 1; }; }
1540 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542 { (exit 1); exit 1; }; }
1545 LIBRARY_DIRS=$withval
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557 withval="$with_libs"
1561 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563 { (exit 1); exit 1; }; }
1566 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568 { (exit 1); exit 1; }; }
1571 LIBRARY_DIRS=$withval
1580 # 64-bit integer date/time storage (--enable-integer-datetimes)
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588 enableval="$enable_integer_datetimes"
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1602 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604 { (exit 1); exit 1; }; }
1609 enable_integer_datetimes=no
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1620 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1621 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1624 # Check whether --enable-nls or --disable-nls was given.
1625 if test "${enable_nls+set}" = set; then
1626 enableval="$enable_nls"
1637 WANTED_LANGUAGES=$enableval
1646 if test "$enable_nls" = yes; then
1648 cat >>confdefs.h <<\_ACEOF
1649 #define ENABLE_NLS 1
1654 echo "$as_me:$LINENO: result: $enable_nls" >&5
1655 echo "${ECHO_T}$enable_nls" >&6
1660 # Default port number (--with-pgport), default 5432
1662 echo "$as_me:$LINENO: checking for default port number" >&5
1663 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1667 # Check whether --with-pgport or --without-pgport was given.
1668 if test "${with_pgport+set}" = set; then
1669 withval="$with_pgport"
1673 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1674 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1675 { (exit 1); exit 1; }; }
1678 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1679 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1680 { (exit 1); exit 1; }; }
1683 default_port=$withval
1691 echo "$as_me:$LINENO: result: $default_port" >&5
1692 echo "${ECHO_T}$default_port" >&6
1693 # Need both of these because some places want an integer and some a string
1695 cat >>confdefs.h <<_ACEOF
1696 #define DEF_PGPORT ${default_port}
1700 cat >>confdefs.h <<_ACEOF
1701 #define DEF_PGPORT_STR "${default_port}"
1707 # Option to disable shared libraries
1711 # Check whether --enable-shared or --disable-shared was given.
1712 if test "${enable_shared+set}" = set; then
1713 enableval="$enable_shared"
1723 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1724 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1725 { (exit 1); exit 1; }; }
1737 # '-rpath'-like feature can be disabled
1741 # Check whether --enable-rpath or --disable-rpath was given.
1742 if test "${enable_rpath+set}" = set; then
1743 enableval="$enable_rpath"
1753 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1754 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1755 { (exit 1); exit 1; }; }
1771 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1772 if test "${enable_spinlocks+set}" = set; then
1773 enableval="$enable_spinlocks"
1783 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1784 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1785 { (exit 1); exit 1; }; }
1790 enable_spinlocks=yes
1796 # --enable-debug adds -g to compiler flags
1800 # Check whether --enable-debug or --disable-debug was given.
1801 if test "${enable_debug+set}" = set; then
1802 enableval="$enable_debug"
1812 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1813 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1814 { (exit 1); exit 1; }; }
1829 # For historical reasons you can also use --with-CC to specify the C compiler
1830 # to use, although the standard way to do this is to set the CC environment
1835 # Check whether --with-CC or --without-CC was given.
1836 if test "${with_CC+set}" = set; then
1841 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1842 echo "$as_me: error: argument required for --with-CC option" >&2;}
1843 { (exit 1); exit 1; }; }
1846 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1847 echo "$as_me: error: argument required for --with-CC option" >&2;}
1848 { (exit 1); exit 1; }; }
1859 aix) pgac_cc_list="gcc xlc";;
1860 irix) pgac_cc_list="cc";; # no gcc
1861 *) pgac_cc_list="gcc cc";;
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 if test -n "$ac_tool_prefix"; then
1870 for ac_prog in $pgac_cc_list
1872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1907 test -n "$CC" && break
1910 if test -z "$CC"; then
1912 for ac_prog in $pgac_cc_list
1914 # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="$ac_prog"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1949 test -n "$ac_ct_CC" && break
1956 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1957 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1958 { (exit 1); exit 1; }; }
1960 # Provide some information about the compiler.
1961 echo "$as_me:$LINENO:" \
1962 "checking for C compiler version" >&5
1963 ac_compiler=`set X $ac_compile; echo $2`
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1965 (eval $ac_compiler --version </dev/null >&5) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1970 (eval $ac_compiler -v </dev/null >&5) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1975 (eval $ac_compiler -V </dev/null >&5) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1980 cat >conftest.$ac_ext <<_ACEOF
1981 #line $LINENO "configure"
1982 #include "confdefs.h"
1984 #ifdef F77_DUMMY_MAIN
1988 int F77_DUMMY_MAIN() { return 1; }
1998 ac_clean_files_save=$ac_clean_files
1999 ac_clean_files="$ac_clean_files a.out a.exe"
2000 # Try to create an executable without -o first, disregard a.out.
2001 # It will help us diagnose broken compilers, and finding out an intuition
2003 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2004 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2005 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2006 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2007 (eval $ac_link_default) 2>&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; then
2011 # Find the output, starting from the most likely. This scheme is
2012 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2015 # Be careful to initialize this variable, since it used to be cached.
2016 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2018 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2019 ls a.out conftest 2>/dev/null;
2020 ls a.* conftest.* 2>/dev/null`; do
2022 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2023 a.out ) # We found the default executable, but exeext='' is most
2026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2034 echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2037 echo "$as_me: error: C compiler cannot create executables" >&2;}
2038 { (exit 77); exit 77; }; }
2041 ac_exeext=$ac_cv_exeext
2042 echo "$as_me:$LINENO: result: $ac_file" >&5
2043 echo "${ECHO_T}$ac_file" >&6
2045 # Check the compiler produces executables we can run. If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2048 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2049 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2050 # If not cross compiling, check that we can run a simple program.
2051 if test "$cross_compiling" != yes; then
2052 if { ac_try='./$ac_file'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2060 if test "$cross_compiling" = maybe; then
2063 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2064 If you meant to cross compile, use \`--host'." >&5
2065 echo "$as_me: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'." >&2;}
2067 { (exit 1); exit 1; }; }
2071 echo "$as_me:$LINENO: result: yes" >&5
2072 echo "${ECHO_T}yes" >&6
2074 rm -f a.out a.exe conftest$ac_cv_exeext
2075 ac_clean_files=$ac_clean_files_save
2076 # Check the compiler produces executables we can run. If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2079 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2080 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2081 echo "${ECHO_T}$cross_compiling" >&6
2083 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2084 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2086 (eval $ac_link) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; then
2090 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2091 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2092 # work properly (i.e., refer to `conftest.exe'), while it won't with
2094 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2096 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2097 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2105 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2106 { (exit 1); exit 1; }; }
2109 rm -f conftest$ac_cv_exeext
2110 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2111 echo "${ECHO_T}$ac_cv_exeext" >&6
2113 rm -f conftest.$ac_ext
2114 EXEEXT=$ac_cv_exeext
2116 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2117 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2118 if test "${ac_cv_objext+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2123 #include "confdefs.h"
2125 #ifdef F77_DUMMY_MAIN
2129 int F77_DUMMY_MAIN() { return 1; }
2139 rm -f conftest.o conftest.obj
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; then
2145 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2153 echo "$as_me: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2155 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2156 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2157 { (exit 1); exit 1; }; }
2160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2162 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2163 echo "${ECHO_T}$ac_cv_objext" >&6
2164 OBJEXT=$ac_cv_objext
2166 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 cat >conftest.$ac_ext <<_ACEOF
2172 #line $LINENO "configure"
2173 #include "confdefs.h"
2175 #ifdef F77_DUMMY_MAIN
2179 int F77_DUMMY_MAIN() { return 1; }
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2206 echo "$as_me: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2210 rm -f conftest.$ac_objext conftest.$ac_ext
2211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2214 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2215 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2216 GCC=`test $ac_compiler_gnu = yes && echo yes`
2217 ac_test_CFLAGS=${CFLAGS+set}
2218 ac_save_CFLAGS=$CFLAGS
2220 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2221 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2222 if test "${ac_cv_prog_cc_g+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2227 #include "confdefs.h"
2229 #ifdef F77_DUMMY_MAIN
2233 int F77_DUMMY_MAIN() { return 1; }
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2261 rm -f conftest.$ac_objext conftest.$ac_ext
2263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2264 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2265 if test "$ac_test_CFLAGS" = set; then
2266 CFLAGS=$ac_save_CFLAGS
2267 elif test $ac_cv_prog_cc_g = yes; then
2268 if test "$GCC" = yes; then
2274 if test "$GCC" = yes; then
2280 # Some people use a C++ compiler to compile C. Since we use `exit',
2281 # in C++ we need to declare it. In case someone uses the same compiler
2282 # for both compiling C and C++ we need to have the C++ compiler decide
2283 # the declaration of exit, since it's the most demanding environment.
2284 cat >conftest.$ac_ext <<_ACEOF
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 for ac_declaration in \
2303 '#include <stdlib.h>' \
2304 'extern "C" void std::exit (int) throw (); using std::exit;' \
2305 'extern "C" void std::exit (int); using std::exit;' \
2306 'extern "C" void exit (int) throw ();' \
2307 'extern "C" void exit (int);' \
2310 cat >conftest.$ac_ext <<_ACEOF
2311 #line $LINENO "configure"
2312 #include "confdefs.h"
2315 #ifdef F77_DUMMY_MAIN
2319 int F77_DUMMY_MAIN() { return 1; }
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 echo "$as_me: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2347 rm -f conftest.$ac_objext conftest.$ac_ext
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2352 #ifdef F77_DUMMY_MAIN
2356 int F77_DUMMY_MAIN() { return 1; }
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -s conftest.$ac_objext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2380 echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2386 if test -n "$ac_declaration"; then
2387 echo '#ifdef __cplusplus' >>confdefs.h
2388 echo $ac_declaration >>confdefs.h
2389 echo '#endif' >>confdefs.h
2393 echo "$as_me: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2396 rm -f conftest.$ac_objext conftest.$ac_ext
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409 . "$srcdir/src/template/$template" || exit
2411 # CFLAGS are selected so:
2412 # If the user specifies something in the environment, that is used.
2413 # else: If the template file set something, that is used.
2414 # else: If the compiler is GCC, then we use -O2.
2415 # else: If the compiler is something else, then we use -0.
2417 if test "$ac_env_CFLAGS_set" = set; then
2418 CFLAGS=$ac_env_CFLAGS_value
2419 elif test "${CFLAGS+set}" = set; then
2420 : # (keep what template set)
2421 elif test "$GCC" = yes; then
2424 # if the user selected debug mode, don't use -O
2425 if test "$enable_debug" != yes; then
2430 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2431 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2432 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2433 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 pgac_save_CFLAGS=$CFLAGS
2437 if test "$GCC" = yes; then
2438 pgac_try="-fno-strict-aliasing"
2440 # Maybe fill in later...
2444 for pgac_flag in $pgac_try; do
2445 CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2450 #ifdef F77_DUMMY_MAIN
2454 int F77_DUMMY_MAIN() { return 1; }
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2485 CFLAGS=$pgac_save_CFLAGS
2488 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2489 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2491 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2492 CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2495 # supply -g if --enable-debug
2496 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2500 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2501 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2503 # We already have this in Makefile.win32, but configure needs it too
2504 if test "$PORTNAME" = "win32"; then
2505 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2508 # Check if the compiler still works with the template settings
2509 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2510 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2512 cat >conftest.$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2514 #include "confdefs.h"
2516 #ifdef F77_DUMMY_MAIN
2520 int F77_DUMMY_MAIN() { return 1; }
2530 rm -f conftest.$ac_objext conftest$ac_exeext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2532 (eval $ac_link) 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -s conftest$ac_exeext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 echo "$as_me:$LINENO: result: yes" >&5
2543 echo "${ECHO_T}yes" >&6
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2549 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2550 echo "$as_me: error: cannot proceed" >&2;}
2551 { (exit 1); exit 1; }; }
2553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555 # Defend against gcc -ffast-math
2556 if test "$GCC" = yes; then
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 #include "confdefs.h"
2561 #ifdef F77_DUMMY_MAIN
2565 int F77_DUMMY_MAIN() { return 1; }
2570 #ifdef __FAST_MATH__
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 echo "$as_me: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2594 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2595 { (exit 1); exit 1; }; }
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2607 # On Suns, sometimes $CPP names a directory.
2608 if test -n "$CPP" && test -d "$CPP"; then
2611 if test -z "$CPP"; then
2612 if test "${ac_cv_prog_CPP+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 # Double quotes because CPP needs to be expanded
2616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2619 for ac_c_preproc_warn_flag in '' yes
2621 # Use a header file that comes with gcc, so configuring glibc
2622 # with a fresh cross-compiler works.
2623 # On the NeXT, cc -E runs the code through the compiler's parser,
2624 # not just through cpp. "Syntax error" is here to catch this case.
2625 cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2627 #include "confdefs.h"
2631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634 egrep -v '^ *\+' conftest.er1 >conftest.err
2636 cat conftest.err >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } >/dev/null; then
2639 if test -s conftest.err; then
2640 ac_cpp_err=$ac_c_preproc_warn_flag
2647 if test -z "$ac_cpp_err"; then
2650 echo "$as_me: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2652 # Broken: fails on valid input.
2655 rm -f conftest.err conftest.$ac_ext
2657 # OK, works on sane cases. Now check whether non-existent headers
2658 # can be detected and how.
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2661 #include "confdefs.h"
2662 #include <ac_nonexistent.h>
2664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2667 egrep -v '^ *\+' conftest.er1 >conftest.err
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } >/dev/null; then
2672 if test -s conftest.err; then
2673 ac_cpp_err=$ac_c_preproc_warn_flag
2680 if test -z "$ac_cpp_err"; then
2681 # Broken: success on invalid input.
2684 echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 # Passes both tests.
2690 rm -f conftest.err conftest.$ac_ext
2693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2694 rm -f conftest.err conftest.$ac_ext
2695 if $ac_preproc_ok; then
2707 echo "$as_me:$LINENO: result: $CPP" >&5
2708 echo "${ECHO_T}$CPP" >&6
2710 for ac_c_preproc_warn_flag in '' yes
2712 # Use a header file that comes with gcc, so configuring glibc
2713 # with a fresh cross-compiler works.
2714 # On the NeXT, cc -E runs the code through the compiler's parser,
2715 # not just through cpp. "Syntax error" is here to catch this case.
2716 cat >conftest.$ac_ext <<_ACEOF
2717 #line $LINENO "configure"
2718 #include "confdefs.h"
2722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2725 egrep -v '^ *\+' conftest.er1 >conftest.err
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } >/dev/null; then
2730 if test -s conftest.err; then
2731 ac_cpp_err=$ac_c_preproc_warn_flag
2738 if test -z "$ac_cpp_err"; then
2741 echo "$as_me: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 # Broken: fails on valid input.
2746 rm -f conftest.err conftest.$ac_ext
2748 # OK, works on sane cases. Now check whether non-existent headers
2749 # can be detected and how.
2750 cat >conftest.$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2752 #include "confdefs.h"
2753 #include <ac_nonexistent.h>
2755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2758 egrep -v '^ *\+' conftest.er1 >conftest.err
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } >/dev/null; then
2763 if test -s conftest.err; then
2764 ac_cpp_err=$ac_c_preproc_warn_flag
2771 if test -z "$ac_cpp_err"; then
2772 # Broken: success on invalid input.
2775 echo "$as_me: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 # Passes both tests.
2781 rm -f conftest.err conftest.$ac_ext
2784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2785 rm -f conftest.err conftest.$ac_ext
2786 if $ac_preproc_ok; then
2789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2790 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2791 { (exit 1); exit 1; }; }
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 # Create compiler version string
2803 if test x"$GCC" = x"yes" ; then
2804 cc_string="GCC `${CC} --version | sed q`"
2809 cat >>confdefs.h <<_ACEOF
2810 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2816 # Set up TAS assembly code if needed; the template file has now had its
2817 # chance to request this.
2819 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2822 if test "$need_tas" = yes ; then
2831 # Automatic dependency tracking
2835 # Check whether --enable-depend or --disable-depend was given.
2836 if test "${enable_depend+set}" = set; then
2837 enableval="$enable_depend"
2847 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2848 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2849 { (exit 1); exit 1; }; }
2862 # Enable assert checks
2866 # Check whether --enable-cassert or --disable-cassert was given.
2867 if test "${enable_cassert+set}" = set; then
2868 enableval="$enable_cassert"
2873 cat >>confdefs.h <<\_ACEOF
2874 #define USE_ASSERT_CHECKING 1
2882 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2883 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2884 { (exit 1); exit 1; }; }
2896 # Include directories
2900 # SRCH_INC comes from the template file
2901 for dir in $with_includes $SRCH_INC; do
2902 if test -d "$dir"; then
2903 INCLUDES="$INCLUDES -I$dir"
2905 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2906 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2914 # Library directories
2918 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2919 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2920 if test -d "$dir"; then
2921 LIBDIRS="$LIBDIRS -L$dir"
2923 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2924 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2930 # Enable thread-safe client libraries
2932 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2933 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2936 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2937 if test "${enable_thread_safety+set}" = set; then
2938 enableval="$enable_thread_safety"
2943 cat >>confdefs.h <<\_ACEOF
2944 #define ENABLE_THREAD_SAFETY 1
2952 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2953 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2954 { (exit 1); exit 1; }; }
2959 enable_thread_safety=no
2963 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2964 echo "${ECHO_T}$enable_thread_safety" >&6
2970 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2971 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2975 # Check whether --with-tcl or --without-tcl was given.
2976 if test "${with_tcl+set}" = set; then
2987 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2988 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2989 { (exit 1); exit 1; }; }
2998 echo "$as_me:$LINENO: result: $with_tcl" >&5
2999 echo "${ECHO_T}$with_tcl" >&6
3002 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
3003 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
3004 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
3005 if test "$with_tcl" = yes; then
3009 # Check whether --with-tk or --without-tk was given.
3010 if test "${with_tk+set}" = set; then
3021 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
3022 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
3023 { (exit 1); exit 1; }; }
3035 echo "$as_me:$LINENO: result: $with_tk" >&5
3036 echo "${ECHO_T}$with_tk" >&6
3040 # We see if the path to the Tcl/Tk configuration scripts is specified.
3041 # This will override the use of tclsh to find the paths to search.
3046 # Check whether --with-tclconfig or --without-tclconfig was given.
3047 if test "${with_tclconfig+set}" = set; then
3048 withval="$with_tclconfig"
3052 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3053 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3054 { (exit 1); exit 1; }; }
3057 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3058 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3059 { (exit 1); exit 1; }; }
3069 # We see if the path to the Tk configuration scripts is specified.
3070 # This will override the use of tclsh to find the paths to search.
3075 # Check whether --with-tkconfig or --without-tkconfig was given.
3076 if test "${with_tkconfig+set}" = set; then
3077 withval="$with_tkconfig"
3081 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3082 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3083 { (exit 1); exit 1; }; }
3086 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3087 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3088 { (exit 1); exit 1; }; }
3099 # Optionally build Perl modules (PL/Perl)
3101 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3102 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3106 # Check whether --with-perl or --without-perl was given.
3107 if test "${with_perl+set}" = set; then
3108 withval="$with_perl"
3118 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3119 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3120 { (exit 1); exit 1; }; }
3129 echo "$as_me:$LINENO: result: $with_perl" >&5
3130 echo "${ECHO_T}$with_perl" >&6
3134 # Optionally build Python modules (PL/Python)
3136 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3137 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3141 # Check whether --with-python or --without-python was given.
3142 if test "${with_python+set}" = set; then
3143 withval="$with_python"
3153 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3154 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3155 { (exit 1); exit 1; }; }
3164 echo "$as_me:$LINENO: result: $with_python" >&5
3165 echo "${ECHO_T}$with_python" >&6
3171 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3172 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3176 # Check whether --with-krb4 or --without-krb4 was given.
3177 if test "${with_krb4+set}" = set; then
3178 withval="$with_krb4"
3184 cat >>confdefs.h <<\_ACEOF
3188 krb_srvtab="/etc/srvtab"
3195 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3196 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3197 { (exit 1); exit 1; }; }
3206 echo "$as_me:$LINENO: result: $with_krb4" >&5
3207 echo "${ECHO_T}$with_krb4" >&6
3214 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3215 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3219 # Check whether --with-krb5 or --without-krb5 was given.
3220 if test "${with_krb5+set}" = set; then
3221 withval="$with_krb5"
3227 cat >>confdefs.h <<\_ACEOF
3231 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3238 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3239 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3240 { (exit 1); exit 1; }; }
3249 echo "$as_me:$LINENO: result: $with_krb5" >&5
3250 echo "${ECHO_T}$with_krb5" >&6
3254 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3255 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3256 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3257 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3258 { (exit 1); exit 1; }; }
3265 # Kerberos configuration parameters
3270 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3271 if test "${with_krb_srvnam+set}" = set; then
3272 withval="$with_krb_srvnam"
3276 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3277 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3278 { (exit 1); exit 1; }; }
3281 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3282 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3283 { (exit 1); exit 1; }; }
3291 with_krb_srvnam="postgres"
3295 cat >>confdefs.h <<_ACEOF
3296 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3304 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3305 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3309 # Check whether --with-pam or --without-pam was given.
3310 if test "${with_pam+set}" = set; then
3316 cat >>confdefs.h <<\_ACEOF
3325 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3326 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3327 { (exit 1); exit 1; }; }
3336 echo "$as_me:$LINENO: result: $with_pam" >&5
3337 echo "${ECHO_T}$with_pam" >&6
3344 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3345 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3349 # Check whether --with-rendezvous or --without-rendezvous was given.
3350 if test "${with_rendezvous+set}" = set; then
3351 withval="$with_rendezvous"
3356 cat >>confdefs.h <<\_ACEOF
3357 #define USE_RENDEZVOUS 1
3365 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3366 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3367 { (exit 1); exit 1; }; }
3376 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3377 echo "${ECHO_T}$with_rendezvous" >&6
3384 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3385 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3389 # Check whether --with-openssl or --without-openssl was given.
3390 if test "${with_openssl+set}" = set; then
3391 withval="$with_openssl"
3396 cat >>confdefs.h <<\_ACEOF
3405 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3406 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3407 { (exit 1); exit 1; }; }
3416 echo "$as_me:$LINENO: result: $with_openssl" >&5
3417 echo "${ECHO_T}$with_openssl" >&6
3427 # Check whether --with-readline or --without-readline was given.
3428 if test "${with_readline+set}" = set; then
3429 withval="$with_readline"
3439 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3440 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3441 { (exit 1); exit 1; }; }
3457 # Check whether --with-zlib or --without-zlib was given.
3458 if test "${with_zlib+set}" = set; then
3459 withval="$with_zlib"
3469 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3470 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3471 { (exit 1); exit 1; }; }
3485 # Assume system is ELF if it predefines __ELF__ as 1,
3486 # otherwise believe host_os based default.
3488 freebsd1*|freebsd2*) elf=no;;
3489 freebsd3*|freebsd4*) elf=yes;;
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 #include "confdefs.h"
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502 egrep "yes" >/dev/null 2>&1; then
3505 if test "X$elf" = "Xyes" ; then
3519 CPPFLAGS="$CPPFLAGS $INCLUDES"
3520 LDFLAGS="$LDFLAGS $LIBDIRS"
3522 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3523 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3524 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3525 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3528 for ac_prog in gawk mawk nawk awk
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 if test "${ac_cv_prog_AWK+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test -n "$AWK"; then
3538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_AWK="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 if test -n "$AWK"; then
3558 echo "$as_me:$LINENO: result: $AWK" >&5
3559 echo "${ECHO_T}$AWK" >&6
3561 echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3565 test -n "$AWK" && break
3568 echo "$as_me:$LINENO: checking for flex" >&5
3569 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3570 if test "${pgac_cv_path_flex+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 # Let the user override the test
3574 if test -n "$FLEX"; then
3575 pgac_cv_path_flex=$FLEX
3579 for pgac_dir in $PATH; do
3580 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3583 for pgac_prog in flex lex; do
3584 pgac_candidate="$pgac_dir/$pgac_prog"
3585 if test -f "$pgac_candidate" \
3586 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3588 echo '%%' > conftest.l
3589 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3590 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3591 pgac_broken_flex=$pgac_candidate
3595 pgac_cv_path_flex=$pgac_candidate
3603 : ${pgac_cv_path_flex=no}
3607 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3608 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3609 if test x"$pgac_cv_path_flex" = x"no"; then
3610 if test -n "$pgac_broken_flex"; then
3611 { echo "$as_me:$LINENO: WARNING:
3612 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3613 *** should get version 2.5.4 or later." >&5
3614 echo "$as_me: WARNING:
3615 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3616 *** should get version 2.5.4 or later." >&2;}
3619 { echo "$as_me:$LINENO: WARNING:
3620 *** Without Flex you will not be able to build PostgreSQL from CVS or
3621 *** change any of the scanner definition files. You can obtain Flex from
3622 *** a GNU mirror site. (If you are using the official distribution of
3623 *** PostgreSQL then you do not need to worry about this because the Flex
3624 *** output is pre-generated.)" >&5
3625 echo "$as_me: WARNING:
3626 *** Without Flex you will not be able to build PostgreSQL from CVS or
3627 *** change any of the scanner definition files. You can obtain Flex from
3628 *** a GNU mirror site. (If you are using the official distribution of
3629 *** PostgreSQL then you do not need to worry about this because the Flex
3630 *** output is pre-generated.)" >&2;}
3633 if test x"$pgac_cv_path_flex" = x"no"; then
3636 FLEX=$pgac_cv_path_flex
3642 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3645 if test "$LN_S" = "ln -s"; then
3646 echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3649 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3650 echo "${ECHO_T}no, using $LN_S" >&6
3654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3655 if test "${with_gnu_ld+set}" = set; then
3656 withval="$with_gnu_ld"
3657 test "$withval" = no || with_gnu_ld=yes
3662 if test "$GCC" = yes; then
3663 # Check if gcc -print-prog-name=ld gives a path.
3664 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3665 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3668 # gcc leaves a trailing carriage return which upsets mingw
3669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3674 # Accept absolute paths.
3675 [\\/]* | [A-Za-z]:[\\/]*)
3676 re_direlt='/[^/][^/]*/\.\./'
3677 # Canonicalize the path of ld
3678 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3679 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3680 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3682 test -z "$LD" && LD="$ac_prog"
3685 # If it fails, then pretend we aren't using GCC.
3689 # If it is relative, then search for the first ld in PATH.
3693 elif test "$with_gnu_ld" = yes; then
3694 echo "$as_me:$LINENO: checking for GNU ld" >&5
3695 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3697 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3698 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3700 if test "${ac_cv_path_LD+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 if test -z "$LD"; then
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3705 for ac_dir in $PATH; do
3706 test -z "$ac_dir" && ac_dir=.
3707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3708 ac_cv_path_LD="$ac_dir/$ac_prog"
3709 # Check to see if the program is GNU ld. I'd rather use --version,
3710 # but apparently some GNU ld's only accept -v.
3711 # Break only if it was the GNU/non-GNU ld that we prefer.
3712 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3713 test "$with_gnu_ld" != no && break
3715 test "$with_gnu_ld" != yes && break
3721 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3726 if test -n "$LD"; then
3727 echo "$as_me:$LINENO: result: $LD" >&5
3728 echo "${ECHO_T}$LD" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3733 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3734 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3735 { (exit 1); exit 1; }; }
3736 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3737 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3738 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3742 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3743 ac_cv_prog_gnu_ld=yes
3745 ac_cv_prog_gnu_ld=no
3748 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3749 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3750 with_gnu_ld=$ac_cv_prog_gnu_ld
3755 case $host_os in sysv5*)
3756 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3757 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3758 if test "${pgac_cv_prog_ld_R+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3763 cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 #include "confdefs.h"
3767 #ifdef F77_DUMMY_MAIN
3771 int F77_DUMMY_MAIN() { return 1; }
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 pgac_cv_prog_ld_R=yes
3795 echo "$as_me: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 pgac_cv_prog_ld_R=no
3799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3800 LDFLAGS=$pgac_save_LDFLAGS
3803 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3804 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3805 ld_R_works=$pgac_cv_prog_ld_R
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_RANLIB+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if test -n "$RANLIB"; then
3817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 RANLIB=$ac_cv_prog_RANLIB
3836 if test -n "$RANLIB"; then
3837 echo "$as_me:$LINENO: result: $RANLIB" >&5
3838 echo "${ECHO_T}$RANLIB" >&6
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3845 if test -z "$ac_cv_prog_RANLIB"; then
3846 ac_ct_RANLIB=$RANLIB
3847 # Extract the first word of "ranlib", so it can be a program name with args.
3848 set dummy ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if test -n "$ac_ct_RANLIB"; then
3855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_RANLIB="ranlib"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875 if test -n "$ac_ct_RANLIB"; then
3876 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3879 echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3883 RANLIB=$ac_ct_RANLIB
3885 RANLIB="$ac_cv_prog_RANLIB"
3888 for ac_prog in lorder
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894 if test "${ac_cv_prog_LORDER+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 if test -n "$LORDER"; then
3898 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_LORDER="$ac_prog"
3908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 LORDER=$ac_cv_prog_LORDER
3917 if test -n "$LORDER"; then
3918 echo "$as_me:$LINENO: result: $LORDER" >&5
3919 echo "${ECHO_T}$LORDER" >&6
3921 echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3925 test -n "$LORDER" && break
3928 # Extract the first word of "tar", so it can be a program name with args.
3929 set dummy tar; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_path_TAR+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 if test -n "$TAR"; then
3960 echo "$as_me:$LINENO: result: $TAR" >&5
3961 echo "${ECHO_T}$TAR" >&6
3963 echo "$as_me:$LINENO: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3968 if test -n "$ac_tool_prefix"; then
3969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}strip; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_STRIP+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$STRIP"; then
3977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 STRIP=$ac_cv_prog_STRIP
3996 if test -n "$STRIP"; then
3997 echo "$as_me:$LINENO: result: $STRIP" >&5
3998 echo "${ECHO_T}$STRIP" >&6
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4005 if test -z "$ac_cv_prog_STRIP"; then
4007 # Extract the first word of "strip", so it can be a program name with args.
4008 set dummy strip; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 if test -n "$ac_ct_STRIP"; then
4015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_ac_ct_STRIP="strip"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4035 if test -n "$ac_ct_STRIP"; then
4036 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4037 echo "${ECHO_T}$ac_ct_STRIP" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4045 STRIP="$ac_cv_prog_STRIP"
4049 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4050 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4051 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4052 STRIP_STATIC_LIB="$STRIP -x"
4053 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4054 echo "$as_me:$LINENO: result: yes" >&5
4055 echo "${ECHO_T}yes" >&6
4059 echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4066 for ac_prog in 'bison -y'
4068 # Extract the first word of "$ac_prog", so it can be a program name with args.
4069 set dummy $ac_prog; ac_word=$2
4070 echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4072 if test "${ac_cv_prog_YACC+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if test -n "$YACC"; then
4076 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085 ac_cv_prog_YACC="$ac_prog"
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 YACC=$ac_cv_prog_YACC
4095 if test -n "$YACC"; then
4096 echo "$as_me:$LINENO: result: $YACC" >&5
4097 echo "${ECHO_T}$YACC" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4103 test -n "$YACC" && break
4107 if test "$YACC"; then
4108 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4109 { echo "$as_me:$LINENO: WARNING:
4110 *** The installed version of Bison is too old. PostgreSQL needs
4111 *** Bison version 1.875 or later." >&5
4112 echo "$as_me: WARNING:
4113 *** The installed version of Bison is too old. PostgreSQL needs
4114 *** Bison version 1.875 or later." >&2;}
4118 if test -z "$YACC"; then
4119 { echo "$as_me:$LINENO: WARNING:
4120 *** Without Bison you will not be able to build PostgreSQL from CVS or
4121 *** change any of the parser definition files. You can obtain Bison from
4122 *** a GNU mirror site. (If you are using the official distribution of
4123 *** PostgreSQL then you do not need to worry about this because the Bison
4124 *** output is pre-generated.) To use a different yacc program (possible,
4125 *** but not recommended), set the environment variable YACC before running
4126 *** 'configure'." >&5
4127 echo "$as_me: WARNING:
4128 *** Without Bison you will not be able to build PostgreSQL from CVS or
4129 *** change any of the parser definition files. You can obtain Bison from
4130 *** a GNU mirror site. (If you are using the official distribution of
4131 *** PostgreSQL then you do not need to worry about this because the Bison
4132 *** output is pre-generated.) To use a different yacc program (possible,
4133 *** but not recommended), set the environment variable YACC before running
4134 *** 'configure'." >&2;}
4138 # Extract the first word of "perl", so it can be a program name with args.
4139 set dummy perl; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_PERL+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 PERL=$ac_cv_path_PERL
4169 if test -n "$PERL"; then
4170 echo "$as_me:$LINENO: result: $PERL" >&5
4171 echo "${ECHO_T}$PERL" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4177 if test "$with_perl" = yes; then
4179 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4180 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4181 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4182 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4183 echo "${ECHO_T}$perl_archlibexp" >&6
4184 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4185 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4186 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4187 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4188 echo "${ECHO_T}$perl_privlibexp" >&6
4189 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4190 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4191 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4192 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4193 echo "${ECHO_T}$perl_useshrplib" >&6
4195 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4196 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4197 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4198 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4199 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4200 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4201 echo "${ECHO_T}$perl_embed_ldflags" >&6
4204 if test "$with_python" = yes; then
4205 # Extract the first word of "python", so it can be a program name with args.
4206 set dummy python; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_path_PYTHON+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 PYTHON=$ac_cv_path_PYTHON
4236 if test -n "$PYTHON"; then
4237 echo "$as_me:$LINENO: result: $PYTHON" >&5
4238 echo "${ECHO_T}$PYTHON" >&6
4240 echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4244 if test x"$PYTHON" = x""; then
4245 { { echo "$as_me:$LINENO: error: Python not found" >&5
4246 echo "$as_me: error: Python not found" >&2;}
4247 { (exit 1); exit 1; }; }
4251 echo "$as_me:$LINENO: checking Python installation directories" >&5
4252 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4253 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4254 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4255 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4256 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4257 python_includespec="-I${python_prefix}/include/python${python_version}"
4258 if test "$python_prefix" != "$python_execprefix"; then
4259 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4262 # This should be enough of a message.
4263 if test "$python_prefix" != "$python_execprefix"; then
4264 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4265 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4267 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4268 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4272 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4273 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4275 if test ! -f "$python_configdir/Makefile"; then
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4279 echo "$as_me: error: Python Makefile not found" >&2;}
4280 { (exit 1); exit 1; }; }
4283 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4284 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4285 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4286 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4287 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4289 pgac_tab=" " # tab character
4290 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"`
4292 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4293 echo "${ECHO_T}${python_libspec}" >&6
4303 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4306 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4307 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4308 if test "${ac_cv_lib_bsd_main+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 ac_check_lib_save_LIBS=$LIBS
4313 cat >conftest.$ac_ext <<_ACEOF
4314 #line $LINENO "configure"
4315 #include "confdefs.h"
4318 #ifdef F77_DUMMY_MAIN
4322 int F77_DUMMY_MAIN() { return 1; }
4332 rm -f conftest.$ac_objext conftest$ac_exeext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334 (eval $ac_link) 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -s conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_lib_bsd_main=yes
4346 echo "$as_me: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 ac_cv_lib_bsd_main=no
4350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4351 LIBS=$ac_check_lib_save_LIBS
4353 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4354 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4355 if test $ac_cv_lib_bsd_main = yes; then
4356 cat >>confdefs.h <<_ACEOF
4357 #define HAVE_LIBBSD 1
4366 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4367 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4368 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_check_lib_save_LIBS=$LIBS
4373 cat >conftest.$ac_ext <<_ACEOF
4374 #line $LINENO "configure"
4375 #include "confdefs.h"
4377 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4383 char setproctitle ();
4384 #ifdef F77_DUMMY_MAIN
4388 int F77_DUMMY_MAIN() { return 1; }
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400 (eval $ac_link) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -s conftest$ac_exeext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_cv_lib_util_setproctitle=yes
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4414 ac_cv_lib_util_setproctitle=no
4416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4417 LIBS=$ac_check_lib_save_LIBS
4419 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4420 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4421 if test $ac_cv_lib_util_setproctitle = yes; then
4422 cat >>confdefs.h <<_ACEOF
4423 #define HAVE_LIBUTIL 1
4431 echo "$as_me:$LINENO: checking for main in -lm" >&5
4432 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4433 if test "${ac_cv_lib_m_main+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 ac_check_lib_save_LIBS=$LIBS
4438 cat >conftest.$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4440 #include "confdefs.h"
4443 #ifdef F77_DUMMY_MAIN
4447 int F77_DUMMY_MAIN() { return 1; }
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -s conftest$ac_exeext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_cv_lib_m_main=yes
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4479 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4480 if test $ac_cv_lib_m_main = yes; then
4481 cat >>confdefs.h <<_ACEOF
4490 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4491 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4492 if test "${ac_cv_lib_dl_main+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 ac_check_lib_save_LIBS=$LIBS
4497 cat >conftest.$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 #include "confdefs.h"
4502 #ifdef F77_DUMMY_MAIN
4506 int F77_DUMMY_MAIN() { return 1; }
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_lib_dl_main=yes
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 ac_cv_lib_dl_main=no
4534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4535 LIBS=$ac_check_lib_save_LIBS
4537 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4538 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4539 if test $ac_cv_lib_dl_main = yes; then
4540 cat >>confdefs.h <<_ACEOF
4541 #define HAVE_LIBDL 1
4549 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4550 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4551 if test "${ac_cv_lib_nsl_main+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_check_lib_save_LIBS=$LIBS
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4558 #include "confdefs.h"
4561 #ifdef F77_DUMMY_MAIN
4565 int F77_DUMMY_MAIN() { return 1; }
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_cv_lib_nsl_main=yes
4589 echo "$as_me: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 ac_cv_lib_nsl_main=no
4593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4596 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4597 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4598 if test $ac_cv_lib_nsl_main = yes; then
4599 cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBNSL 1
4608 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4609 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4610 if test "${ac_cv_lib_socket_main+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 ac_check_lib_save_LIBS=$LIBS
4614 LIBS="-lsocket $LIBS"
4615 cat >conftest.$ac_ext <<_ACEOF
4616 #line $LINENO "configure"
4617 #include "confdefs.h"
4620 #ifdef F77_DUMMY_MAIN
4624 int F77_DUMMY_MAIN() { return 1; }
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -s conftest$ac_exeext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_lib_socket_main=yes
4648 echo "$as_me: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4650 ac_cv_lib_socket_main=no
4652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4653 LIBS=$ac_check_lib_save_LIBS
4655 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4656 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4657 if test $ac_cv_lib_socket_main = yes; then
4658 cat >>confdefs.h <<_ACEOF
4659 #define HAVE_LIBSOCKET 1
4662 LIBS="-lsocket $LIBS"
4667 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4668 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4669 if test "${ac_cv_lib_ipc_main+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 ac_check_lib_save_LIBS=$LIBS
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 #include "confdefs.h"
4679 #ifdef F77_DUMMY_MAIN
4683 int F77_DUMMY_MAIN() { return 1; }
4693 rm -f conftest.$ac_objext conftest$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -s conftest$ac_exeext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_cv_lib_ipc_main=yes
4707 echo "$as_me: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4709 ac_cv_lib_ipc_main=no
4711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4712 LIBS=$ac_check_lib_save_LIBS
4714 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4715 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4716 if test $ac_cv_lib_ipc_main = yes; then
4717 cat >>confdefs.h <<_ACEOF
4718 #define HAVE_LIBIPC 1
4726 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4727 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4728 if test "${ac_cv_lib_IPC_main+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 ac_check_lib_save_LIBS=$LIBS
4733 cat >conftest.$ac_ext <<_ACEOF
4734 #line $LINENO "configure"
4735 #include "confdefs.h"
4738 #ifdef F77_DUMMY_MAIN
4742 int F77_DUMMY_MAIN() { return 1; }
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754 (eval $ac_link) 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } &&
4758 { ac_try='test -s conftest$ac_exeext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_lib_IPC_main=yes
4766 echo "$as_me: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4768 ac_cv_lib_IPC_main=no
4770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4771 LIBS=$ac_check_lib_save_LIBS
4773 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4774 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4775 if test $ac_cv_lib_IPC_main = yes; then
4776 cat >>confdefs.h <<_ACEOF
4777 #define HAVE_LIBIPC 1
4785 echo "$as_me:$LINENO: checking for main in -llc" >&5
4786 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4787 if test "${ac_cv_lib_lc_main+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 ac_check_lib_save_LIBS=$LIBS
4792 cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4794 #include "confdefs.h"
4797 #ifdef F77_DUMMY_MAIN
4801 int F77_DUMMY_MAIN() { return 1; }
4811 rm -f conftest.$ac_objext conftest$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -s conftest$ac_exeext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_lib_lc_main=yes
4825 echo "$as_me: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4827 ac_cv_lib_lc_main=no
4829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830 LIBS=$ac_check_lib_save_LIBS
4832 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4833 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4834 if test $ac_cv_lib_lc_main = yes; then
4835 cat >>confdefs.h <<_ACEOF
4836 #define HAVE_LIBLC 1
4844 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4845 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4846 if test "${ac_cv_lib_dld_main+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 ac_check_lib_save_LIBS=$LIBS
4851 cat >conftest.$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4853 #include "confdefs.h"
4856 #ifdef F77_DUMMY_MAIN
4860 int F77_DUMMY_MAIN() { return 1; }
4870 rm -f conftest.$ac_objext conftest$ac_exeext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872 (eval $ac_link) 2>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -s conftest$ac_exeext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_cv_lib_dld_main=yes
4884 echo "$as_me: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 ac_cv_lib_dld_main=no
4888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4889 LIBS=$ac_check_lib_save_LIBS
4891 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4892 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4893 if test $ac_cv_lib_dld_main = yes; then
4894 cat >>confdefs.h <<_ACEOF
4895 #define HAVE_LIBDLD 1
4903 echo "$as_me:$LINENO: checking for main in -lld" >&5
4904 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4905 if test "${ac_cv_lib_ld_main+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 ac_check_lib_save_LIBS=$LIBS
4910 cat >conftest.$ac_ext <<_ACEOF
4911 #line $LINENO "configure"
4912 #include "confdefs.h"
4915 #ifdef F77_DUMMY_MAIN
4919 int F77_DUMMY_MAIN() { return 1; }
4929 rm -f conftest.$ac_objext conftest$ac_exeext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4931 (eval $ac_link) 2>&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_lib_ld_main=yes
4943 echo "$as_me: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4945 ac_cv_lib_ld_main=no
4947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4948 LIBS=$ac_check_lib_save_LIBS
4950 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4951 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4952 if test $ac_cv_lib_ld_main = yes; then
4953 cat >>confdefs.h <<_ACEOF
4954 #define HAVE_LIBLD 1
4962 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4963 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4964 if test "${ac_cv_lib_compat_main+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 ac_check_lib_save_LIBS=$LIBS
4968 LIBS="-lcompat $LIBS"
4969 cat >conftest.$ac_ext <<_ACEOF
4970 #line $LINENO "configure"
4971 #include "confdefs.h"
4974 #ifdef F77_DUMMY_MAIN
4978 int F77_DUMMY_MAIN() { return 1; }
4988 rm -f conftest.$ac_objext conftest$ac_exeext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990 (eval $ac_link) 2>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest$ac_exeext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 ac_cv_lib_compat_main=yes
5002 echo "$as_me: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5004 ac_cv_lib_compat_main=no
5006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5007 LIBS=$ac_check_lib_save_LIBS
5009 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5010 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5011 if test $ac_cv_lib_compat_main = yes; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define HAVE_LIBCOMPAT 1
5016 LIBS="-lcompat $LIBS"
5021 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5022 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5023 if test "${ac_cv_lib_BSD_main+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_check_lib_save_LIBS=$LIBS
5028 cat >conftest.$ac_ext <<_ACEOF
5029 #line $LINENO "configure"
5030 #include "confdefs.h"
5033 #ifdef F77_DUMMY_MAIN
5037 int F77_DUMMY_MAIN() { return 1; }
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049 (eval $ac_link) 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } &&
5053 { ac_try='test -s conftest$ac_exeext'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5059 ac_cv_lib_BSD_main=yes
5061 echo "$as_me: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5063 ac_cv_lib_BSD_main=no
5065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5066 LIBS=$ac_check_lib_save_LIBS
5068 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5069 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5070 if test $ac_cv_lib_BSD_main = yes; then
5071 cat >>confdefs.h <<_ACEOF
5072 #define HAVE_LIBBSD 1
5080 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5081 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5082 if test "${ac_cv_lib_gen_main+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 ac_check_lib_save_LIBS=$LIBS
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5089 #include "confdefs.h"
5092 #ifdef F77_DUMMY_MAIN
5096 int F77_DUMMY_MAIN() { return 1; }
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_lib_gen_main=yes
5120 echo "$as_me: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 ac_cv_lib_gen_main=no
5124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5125 LIBS=$ac_check_lib_save_LIBS
5127 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5128 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5129 if test $ac_cv_lib_gen_main = yes; then
5130 cat >>confdefs.h <<_ACEOF
5131 #define HAVE_LIBGEN 1
5139 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5140 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5141 if test "${ac_cv_lib_PW_main+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_check_lib_save_LIBS=$LIBS
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 #include "confdefs.h"
5151 #ifdef F77_DUMMY_MAIN
5155 int F77_DUMMY_MAIN() { return 1; }
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167 (eval $ac_link) 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -s conftest$ac_exeext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_lib_PW_main=yes
5179 echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 ac_cv_lib_PW_main=no
5183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5184 LIBS=$ac_check_lib_save_LIBS
5186 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5187 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5188 if test $ac_cv_lib_PW_main = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LIBPW 1
5198 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5199 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5200 if test "${ac_cv_lib_resolv_main+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lresolv $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 #include "confdefs.h"
5210 #ifdef F77_DUMMY_MAIN
5214 int F77_DUMMY_MAIN() { return 1; }
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -s conftest$ac_exeext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 ac_cv_lib_resolv_main=yes
5238 echo "$as_me: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5240 ac_cv_lib_resolv_main=no
5242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243 LIBS=$ac_check_lib_save_LIBS
5245 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5246 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5247 if test $ac_cv_lib_resolv_main = yes; then
5248 cat >>confdefs.h <<_ACEOF
5249 #define HAVE_LIBRESOLV 1
5252 LIBS="-lresolv $LIBS"
5256 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5257 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5258 if test "${ac_cv_search_getopt_long+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 ac_func_search_save_LIBS=$LIBS
5262 ac_cv_search_getopt_long=no
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5267 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5273 char getopt_long ();
5274 #ifdef F77_DUMMY_MAIN
5278 int F77_DUMMY_MAIN() { return 1; }
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5290 (eval $ac_link) 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -s conftest$ac_exeext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_cv_search_getopt_long="none required"
5302 echo "$as_me: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5306 if test "$ac_cv_search_getopt_long" = no; then
5307 for ac_lib in getopt gnugetopt; do
5308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5309 cat >conftest.$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 #include "confdefs.h"
5313 /* Override any gcc2 internal prototype to avoid an error. */
5317 /* We use char because int might match the return type of a gcc2
5318 builtin and then its argument prototype would still apply. */
5319 char getopt_long ();
5320 #ifdef F77_DUMMY_MAIN
5324 int F77_DUMMY_MAIN() { return 1; }
5334 rm -f conftest.$ac_objext conftest$ac_exeext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest$ac_exeext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_search_getopt_long="-l$ac_lib"
5349 echo "$as_me: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_func_search_save_LIBS
5357 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5358 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5359 if test "$ac_cv_search_getopt_long" != no; then
5360 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5366 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5367 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5368 if test "${ac_cv_lib_unix_main+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_check_lib_save_LIBS=$LIBS
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 #include "confdefs.h"
5378 #ifdef F77_DUMMY_MAIN
5382 int F77_DUMMY_MAIN() { return 1; }
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394 (eval $ac_link) 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -s conftest$ac_exeext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_lib_unix_main=yes
5406 echo "$as_me: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5408 ac_cv_lib_unix_main=no
5410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5413 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5414 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5415 if test $ac_cv_lib_unix_main = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define HAVE_LIBUNIX 1
5424 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5425 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5426 if test "${ac_cv_search_crypt+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_func_search_save_LIBS=$LIBS
5430 ac_cv_search_crypt=no
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5433 #include "confdefs.h"
5435 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5442 #ifdef F77_DUMMY_MAIN
5446 int F77_DUMMY_MAIN() { return 1; }
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -s conftest$ac_exeext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_cv_search_crypt="none required"
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5474 if test "$ac_cv_search_crypt" = no; then
5475 for ac_lib in crypt; do
5476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 #include "confdefs.h"
5481 /* Override any gcc2 internal prototype to avoid an error. */
5485 /* We use char because int might match the return type of a gcc2
5486 builtin and then its argument prototype would still apply. */
5488 #ifdef F77_DUMMY_MAIN
5492 int F77_DUMMY_MAIN() { return 1; }
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5504 (eval $ac_link) 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -s conftest$ac_exeext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 ac_cv_search_crypt="-l$ac_lib"
5517 echo "$as_me: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5523 LIBS=$ac_func_search_save_LIBS
5525 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5526 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5527 if test "$ac_cv_search_crypt" != no; then
5528 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5533 if test "$PORTNAME" = "beos"
5536 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5537 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5538 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 ac_check_lib_save_LIBS=$LIBS
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 #include "confdefs.h"
5547 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */
5553 char __inet_ntoa ();
5554 #ifdef F77_DUMMY_MAIN
5558 int F77_DUMMY_MAIN() { return 1; }
5568 rm -f conftest.$ac_objext conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -s conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 ac_cv_lib_bind___inet_ntoa=yes
5582 echo "$as_me: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5584 ac_cv_lib_bind___inet_ntoa=no
5586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5587 LIBS=$ac_check_lib_save_LIBS
5589 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5590 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5591 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5592 cat >>confdefs.h <<_ACEOF
5593 #define HAVE_LIBBIND 1
5602 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5603 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5604 if test "${ac_cv_search_fdatasync+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 ac_func_search_save_LIBS=$LIBS
5608 ac_cv_search_fdatasync=no
5609 cat >conftest.$ac_ext <<_ACEOF
5610 #line $LINENO "configure"
5611 #include "confdefs.h"
5613 /* Override any gcc2 internal prototype to avoid an error. */
5617 /* We use char because int might match the return type of a gcc2
5618 builtin and then its argument prototype would still apply. */
5620 #ifdef F77_DUMMY_MAIN
5624 int F77_DUMMY_MAIN() { return 1; }
5634 rm -f conftest.$ac_objext conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -s conftest$ac_exeext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 ac_cv_search_fdatasync="none required"
5648 echo "$as_me: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5652 if test "$ac_cv_search_fdatasync" = no; then
5653 for ac_lib in rt posix4; do
5654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #line $LINENO "configure"
5657 #include "confdefs.h"
5659 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5666 #ifdef F77_DUMMY_MAIN
5670 int F77_DUMMY_MAIN() { return 1; }
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682 (eval $ac_link) 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_search_fdatasync="-l$ac_lib"
5695 echo "$as_me: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_func_search_save_LIBS
5703 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5704 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5705 if test "$ac_cv_search_fdatasync" != no; then
5706 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5712 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5713 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5714 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-lcygipc $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 #include "confdefs.h"
5723 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5730 #ifdef F77_DUMMY_MAIN
5734 int F77_DUMMY_MAIN() { return 1; }
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5746 (eval $ac_link) 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -s conftest$ac_exeext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_cv_lib_cygipc_shmget=yes
5758 echo "$as_me: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5760 ac_cv_lib_cygipc_shmget=no
5762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5765 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5766 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5767 if test $ac_cv_lib_cygipc_shmget = yes; then
5768 cat >>confdefs.h <<_ACEOF
5769 #define HAVE_LIBCYGIPC 1
5772 LIBS="-lcygipc $LIBS"
5777 if test "$PORTNAME" = "win32"
5780 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5781 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5782 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 ac_check_lib_save_LIBS=$LIBS
5786 LIBS="-lwsock32 $LIBS"
5787 cat >conftest.$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5789 #include "confdefs.h"
5792 #ifdef F77_DUMMY_MAIN
5796 int F77_DUMMY_MAIN() { return 1; }
5806 rm -f conftest.$ac_objext conftest$ac_exeext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5808 (eval $ac_link) 2>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -s conftest$ac_exeext'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5818 ac_cv_lib_wsock32_main=yes
5820 echo "$as_me: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5822 ac_cv_lib_wsock32_main=no
5824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825 LIBS=$ac_check_lib_save_LIBS
5827 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5828 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5829 if test $ac_cv_lib_wsock32_main = yes; then
5830 cat >>confdefs.h <<_ACEOF
5831 #define HAVE_LIBWSOCK32 1
5834 LIBS="-lwsock32 $LIBS"
5840 if test "$with_readline" = yes; then
5842 echo "$as_me:$LINENO: checking for readline" >&5
5843 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5845 if test "${pgac_cv_check_readline+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 pgac_cv_check_readline=no
5849 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5850 for pgac_rllib in -lreadline -ledit ; do
5851 pgac_save_LIBS=$LIBS
5852 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5853 cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5855 #include "confdefs.h"
5857 /* Override any gcc2 internal prototype to avoid an error. */
5861 /* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5864 #ifdef F77_DUMMY_MAIN
5868 int F77_DUMMY_MAIN() { return 1; }
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880 (eval $ac_link) 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -s conftest$ac_exeext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5891 # NetBSD and OpenBSD have a broken linker that does not
5892 # recognize dependent libraries
5893 case $host_os in netbsd* | openbsd* )
5896 *) pgac_lib=" -lcurses" ;;
5900 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5904 echo "$as_me: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5908 LIBS=$pgac_save_LIBS
5911 LIBS=$pgac_save_LIBS
5915 if test "$pgac_cv_check_readline" != no ; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_LIBREADLINE 1
5921 LIBS="$pgac_cv_check_readline $LIBS"
5922 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5923 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5925 echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5928 if test x"$pgac_cv_check_readline" = x"no"; then
5929 { { echo "$as_me:$LINENO: error: readline library not found
5930 If you have readline already installed, see config.log for details on the
5931 failure. It is possible the compiler isn't looking in the proper directory.
5932 Use --without-readline to disable readline support." >&5
5933 echo "$as_me: error: readline library not found
5934 If you have readline already installed, see config.log for details on the
5935 failure. It is possible the compiler isn't looking in the proper directory.
5936 Use --without-readline to disable readline support." >&2;}
5937 { (exit 1); exit 1; }; }
5941 if test "$with_zlib" = yes; then
5943 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5944 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5945 if test "${ac_cv_lib_z_inflate+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 ac_check_lib_save_LIBS=$LIBS
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5952 #include "confdefs.h"
5954 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5961 #ifdef F77_DUMMY_MAIN
5965 int F77_DUMMY_MAIN() { return 1; }
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest$ac_exeext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_lib_z_inflate=yes
5989 echo "$as_me: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 ac_cv_lib_z_inflate=no
5993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5994 LIBS=$ac_check_lib_save_LIBS
5996 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5997 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5998 if test $ac_cv_lib_z_inflate = yes; then
5999 cat >>confdefs.h <<_ACEOF
6006 { { echo "$as_me:$LINENO: error: zlib library not found
6007 If you have zlib already installed, see config.log for details on the
6008 failure. It is possible the compiler isn't looking in the proper directory.
6009 Use --without-zlib to disable zlib support." >&5
6010 echo "$as_me: error: zlib library not found
6011 If you have zlib already installed, see config.log for details on the
6012 failure. It is possible the compiler isn't looking in the proper directory.
6013 Use --without-zlib to disable zlib support." >&2;}
6014 { (exit 1); exit 1; }; }
6019 if test "$enable_spinlocks" = yes; then
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_SPINLOCKS 1
6026 { echo "$as_me:$LINENO: WARNING:
6027 *** Not using spinlocks will cause poor performance." >&5
6028 echo "$as_me: WARNING:
6029 *** Not using spinlocks will cause poor performance." >&2;}
6032 if test "$with_krb4" = yes ; then
6034 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6035 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6036 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 ac_check_lib_save_LIBS=$LIBS
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6043 #include "confdefs.h"
6045 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051 char des_encrypt ();
6052 #ifdef F77_DUMMY_MAIN
6056 int F77_DUMMY_MAIN() { return 1; }
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_lib_des_des_encrypt=yes
6080 echo "$as_me: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6082 ac_cv_lib_des_des_encrypt=no
6084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6087 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6088 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6089 if test $ac_cv_lib_des_des_encrypt = yes; then
6090 cat >>confdefs.h <<_ACEOF
6091 #define HAVE_LIBDES 1
6097 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6098 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6099 { (exit 1); exit 1; }; }
6103 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6104 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6105 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_check_lib_save_LIBS=$LIBS
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6112 #include "confdefs.h"
6114 /* Override any gcc2 internal prototype to avoid an error. */
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6120 char krb_sendauth ();
6121 #ifdef F77_DUMMY_MAIN
6125 int F77_DUMMY_MAIN() { return 1; }
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_lib_krb_krb_sendauth=yes
6149 echo "$as_me: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6151 ac_cv_lib_krb_krb_sendauth=no
6153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6154 LIBS=$ac_check_lib_save_LIBS
6156 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6157 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6158 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6159 cat >>confdefs.h <<_ACEOF
6160 #define HAVE_LIBKRB 1
6166 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6167 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6168 { (exit 1); exit 1; }; }
6172 for ac_func in gethostname
6174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6175 echo "$as_me:$LINENO: checking for $ac_func" >&5
6176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6177 if eval "test \"\${$as_ac_var+set}\" = set"; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6181 #line $LINENO "configure"
6182 #include "confdefs.h"
6183 /* System header to define __stub macros and hopefully few prototypes,
6184 which can conflict with char $ac_func (); below. */
6186 /* Override any gcc2 internal prototype to avoid an error. */
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6195 #ifdef F77_DUMMY_MAIN
6199 int F77_DUMMY_MAIN() { return 1; }
6204 /* The GNU C library defines this for functions which it implements
6205 to always fail with ENOSYS. Some functions are actually named
6206 something starting with __ and the normal name is an alias. */
6207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219 (eval $ac_link) 2>&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -s conftest$ac_exeext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 eval "$as_ac_var=yes"
6231 echo "$as_me: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 eval "$as_ac_var=no"
6235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6239 if test `eval echo '${'$as_ac_var'}'` = yes; then
6240 cat >>confdefs.h <<_ACEOF
6241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6245 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6252 if test "$with_krb5" = yes ; then
6253 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6254 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6255 if test "${ac_cv_search_com_err+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 ac_func_search_save_LIBS=$LIBS
6259 ac_cv_search_com_err=no
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line $LINENO "configure"
6262 #include "confdefs.h"
6264 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6271 #ifdef F77_DUMMY_MAIN
6275 int F77_DUMMY_MAIN() { return 1; }
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -s conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_search_com_err="none required"
6299 echo "$as_me: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6303 if test "$ac_cv_search_com_err" = no; then
6304 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6306 cat >conftest.$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 #include "confdefs.h"
6310 /* Override any gcc2 internal prototype to avoid an error. */
6314 /* We use char because int might match the return type of a gcc2
6315 builtin and then its argument prototype would still apply. */
6317 #ifdef F77_DUMMY_MAIN
6321 int F77_DUMMY_MAIN() { return 1; }
6331 rm -f conftest.$ac_objext conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -s conftest$ac_exeext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 ac_cv_search_com_err="-l$ac_lib"
6346 echo "$as_me: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6352 LIBS=$ac_func_search_save_LIBS
6354 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6355 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6356 if test "$ac_cv_search_com_err" != no; then
6357 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6360 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6361 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6362 { (exit 1); exit 1; }; }
6365 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6366 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6367 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_func_search_save_LIBS=$LIBS
6371 ac_cv_search_krb5_encrypt=no
6372 cat >conftest.$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 #include "confdefs.h"
6376 /* Override any gcc2 internal prototype to avoid an error. */
6380 /* We use char because int might match the return type of a gcc2
6381 builtin and then its argument prototype would still apply. */
6382 char krb5_encrypt ();
6383 #ifdef F77_DUMMY_MAIN
6387 int F77_DUMMY_MAIN() { return 1; }
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_search_krb5_encrypt="none required"
6411 echo "$as_me: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6415 if test "$ac_cv_search_krb5_encrypt" = no; then
6416 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6418 cat >conftest.$ac_ext <<_ACEOF
6419 #line $LINENO "configure"
6420 #include "confdefs.h"
6422 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6428 char krb5_encrypt ();
6429 #ifdef F77_DUMMY_MAIN
6433 int F77_DUMMY_MAIN() { return 1; }
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 ac_cv_search_krb5_encrypt="-l$ac_lib"
6458 echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6464 LIBS=$ac_func_search_save_LIBS
6466 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6467 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6468 if test "$ac_cv_search_krb5_encrypt" != no; then
6469 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6472 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6473 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6474 { (exit 1); exit 1; }; }
6477 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6478 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6479 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 ac_func_search_save_LIBS=$LIBS
6483 ac_cv_search_krb5_sendauth=no
6484 cat >conftest.$ac_ext <<_ACEOF
6485 #line $LINENO "configure"
6486 #include "confdefs.h"
6488 /* Override any gcc2 internal prototype to avoid an error. */
6492 /* We use char because int might match the return type of a gcc2
6493 builtin and then its argument prototype would still apply. */
6494 char krb5_sendauth ();
6495 #ifdef F77_DUMMY_MAIN
6499 int F77_DUMMY_MAIN() { return 1; }
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_search_krb5_sendauth="none required"
6523 echo "$as_me: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6527 if test "$ac_cv_search_krb5_sendauth" = no; then
6528 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6530 cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6532 #include "confdefs.h"
6534 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6540 char krb5_sendauth ();
6541 #ifdef F77_DUMMY_MAIN
6545 int F77_DUMMY_MAIN() { return 1; }
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -s conftest$ac_exeext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 ac_cv_search_krb5_sendauth="-l$ac_lib"
6570 echo "$as_me: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6576 LIBS=$ac_func_search_save_LIBS
6578 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6579 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6580 if test "$ac_cv_search_krb5_sendauth" != no; then
6581 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6584 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6585 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6586 { (exit 1); exit 1; }; }
6591 if test "$with_openssl" = yes ; then
6593 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6594 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6595 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_check_lib_save_LIBS=$LIBS
6599 LIBS="-lcrypto $LIBS"
6600 cat >conftest.$ac_ext <<_ACEOF
6601 #line $LINENO "configure"
6602 #include "confdefs.h"
6604 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6610 char CRYPTO_new_ex_data ();
6611 #ifdef F77_DUMMY_MAIN
6615 int F77_DUMMY_MAIN() { return 1; }
6620 CRYPTO_new_ex_data ();
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627 (eval $ac_link) 2>&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -s conftest$ac_exeext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6639 echo "$as_me: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6641 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6644 LIBS=$ac_check_lib_save_LIBS
6646 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6647 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6648 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6649 cat >>confdefs.h <<_ACEOF
6650 #define HAVE_LIBCRYPTO 1
6653 LIBS="-lcrypto $LIBS"
6656 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6657 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6658 { (exit 1); exit 1; }; }
6662 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6663 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6664 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 ac_check_lib_save_LIBS=$LIBS
6669 cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 #include "confdefs.h"
6673 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6679 char SSL_library_init ();
6680 #ifdef F77_DUMMY_MAIN
6684 int F77_DUMMY_MAIN() { return 1; }
6689 SSL_library_init ();
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -s conftest$ac_exeext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_lib_ssl_SSL_library_init=yes
6708 echo "$as_me: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6710 ac_cv_lib_ssl_SSL_library_init=no
6712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6713 LIBS=$ac_check_lib_save_LIBS
6715 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6716 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6717 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6718 cat >>confdefs.h <<_ACEOF
6719 #define HAVE_LIBSSL 1
6725 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6726 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6727 { (exit 1); exit 1; }; }
6732 if test "$with_pam" = yes ; then
6734 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6735 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6736 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_check_lib_save_LIBS=$LIBS
6741 cat >conftest.$ac_ext <<_ACEOF
6742 #line $LINENO "configure"
6743 #include "confdefs.h"
6745 /* Override any gcc2 internal prototype to avoid an error. */
6749 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */
6752 #ifdef F77_DUMMY_MAIN
6756 int F77_DUMMY_MAIN() { return 1; }
6766 rm -f conftest.$ac_objext conftest$ac_exeext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6768 (eval $ac_link) 2>&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_lib_pam_pam_start=yes
6780 echo "$as_me: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 ac_cv_lib_pam_pam_start=no
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6787 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6788 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6789 if test $ac_cv_lib_pam_pam_start = yes; then
6790 cat >>confdefs.h <<_ACEOF
6791 #define HAVE_LIBPAM 1
6797 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6798 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6799 { (exit 1); exit 1; }; }
6809 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6811 if test "${ac_cv_header_stdc+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 cat >conftest.$ac_ext <<_ACEOF
6815 #line $LINENO "configure"
6816 #include "confdefs.h"
6823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6826 egrep -v '^ *\+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null; then
6831 if test -s conftest.err; then
6832 ac_cpp_err=$ac_c_preproc_warn_flag
6839 if test -z "$ac_cpp_err"; then
6840 ac_cv_header_stdc=yes
6842 echo "$as_me: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6844 ac_cv_header_stdc=no
6846 rm -f conftest.err conftest.$ac_ext
6848 if test $ac_cv_header_stdc = yes; then
6849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6850 cat >conftest.$ac_ext <<_ACEOF
6851 #line $LINENO "configure"
6852 #include "confdefs.h"
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 egrep "memchr" >/dev/null 2>&1; then
6860 ac_cv_header_stdc=no
6866 if test $ac_cv_header_stdc = yes; then
6867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6868 cat >conftest.$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875 egrep "free" >/dev/null 2>&1; then
6878 ac_cv_header_stdc=no
6884 if test $ac_cv_header_stdc = yes; then
6885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6886 if test "$cross_compiling" = yes; then
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6893 #if ((' ' & 0x0FF) == 0x020)
6894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6897 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6898 || ('j' <= (c) && (c) <= 'r') \
6899 || ('s' <= (c) && (c) <= 'z'))
6900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6908 for (i = 0; i < 256; i++)
6909 if (XOR (islower (i), ISLOWER (i))
6910 || toupper (i) != TOUPPER (i))
6915 rm -f conftest$ac_exeext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917 (eval $ac_link) 2>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && { ac_try='./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
6928 echo "$as_me: program exited with status $ac_status" >&5
6929 echo "$as_me: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 ac_cv_header_stdc=no
6934 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6938 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6939 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6940 if test $ac_cv_header_stdc = yes; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define STDC_HEADERS 1
6948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959 inttypes.h stdint.h unistd.h
6961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.$ac_ext <<_ACEOF
6968 #line $LINENO "configure"
6969 #include "confdefs.h"
6970 $ac_includes_default
6972 #include <$ac_header>
6974 rm -f conftest.$ac_objext
6975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976 (eval $ac_compile) 2>&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 eval "$as_ac_Header=yes"
6988 echo "$as_me: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6990 eval "$as_ac_Header=no"
6992 rm -f conftest.$ac_objext conftest.$ac_ext
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6997 cat >>confdefs.h <<_ACEOF
6998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027 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
7029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7031 echo "$as_me:$LINENO: checking for $ac_header" >&5
7032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7039 # Is the header compilable?
7040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7042 cat >conftest.$ac_ext <<_ACEOF
7043 #line $LINENO "configure"
7044 #include "confdefs.h"
7045 $ac_includes_default
7046 #include <$ac_header>
7048 rm -f conftest.$ac_objext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050 (eval $ac_compile) 2>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -s conftest.$ac_objext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_header_compiler=yes
7062 echo "$as_me: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7064 ac_header_compiler=no
7066 rm -f conftest.$ac_objext conftest.$ac_ext
7067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7068 echo "${ECHO_T}$ac_header_compiler" >&6
7070 # Is the header present?
7071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7075 #include "confdefs.h"
7076 #include <$ac_header>
7078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7081 egrep -v '^ *\+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } >/dev/null; then
7086 if test -s conftest.err; then
7087 ac_cpp_err=$ac_c_preproc_warn_flag
7094 if test -z "$ac_cpp_err"; then
7095 ac_header_preproc=yes
7097 echo "$as_me: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 ac_header_preproc=no
7101 rm -f conftest.err conftest.$ac_ext
7102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7103 echo "${ECHO_T}$ac_header_preproc" >&6
7105 # So? What about this header?
7106 case $ac_header_compiler:$ac_header_preproc in
7108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 eval "$as_ac_Header=$ac_header_preproc"
7127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7132 cat >>confdefs.h <<_ACEOF
7133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7141 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7142 # netinet/in.h is included first.
7144 for ac_header in netinet/in.h
7146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148 echo "$as_me:$LINENO: checking for $ac_header" >&5
7149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7156 # Is the header compilable?
7157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7159 cat >conftest.$ac_ext <<_ACEOF
7160 #line $LINENO "configure"
7161 #include "confdefs.h"
7162 $ac_includes_default
7163 #include <$ac_header>
7165 rm -f conftest.$ac_objext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167 (eval $ac_compile) 2>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -s conftest.$ac_objext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_header_compiler=yes
7179 echo "$as_me: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 ac_header_compiler=no
7183 rm -f conftest.$ac_objext conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185 echo "${ECHO_T}$ac_header_compiler" >&6
7187 # Is the header present?
7188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 #include <$ac_header>
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7198 egrep -v '^ *\+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev/null; then
7203 if test -s conftest.err; then
7204 ac_cpp_err=$ac_c_preproc_warn_flag
7211 if test -z "$ac_cpp_err"; then
7212 ac_header_preproc=yes
7214 echo "$as_me: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 ac_header_preproc=no
7218 rm -f conftest.err conftest.$ac_ext
7219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7220 echo "${ECHO_T}$ac_header_preproc" >&6
7222 # So? What about this header?
7223 case $ac_header_compiler:$ac_header_preproc in
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7237 echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 eval "$as_ac_Header=$ac_header_preproc"
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258 for ac_header in netinet/tcp.h
7260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7261 echo "$as_me:$LINENO: checking for $ac_header" >&5
7262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 #include "confdefs.h"
7269 $ac_includes_default
7270 #ifdef HAVE_NETINET_IN_H
7271 #include <netinet/in.h>
7275 #include <$ac_header>
7277 rm -f conftest.$ac_objext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279 (eval $ac_compile) 2>&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -s conftest.$ac_objext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 eval "$as_ac_Header=yes"
7291 echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 eval "$as_ac_Header=no"
7295 rm -f conftest.$ac_objext conftest.$ac_ext
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7300 cat >>confdefs.h <<_ACEOF
7301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7309 if test "$with_readline" = yes; then
7311 for ac_header in readline/readline.h
7313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7315 echo "$as_me:$LINENO: checking for $ac_header" >&5
7316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7323 # Is the header compilable?
7324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7327 #line $LINENO "configure"
7328 #include "confdefs.h"
7329 $ac_includes_default
7330 #include <$ac_header>
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334 (eval $ac_compile) 2>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 ac_header_compiler=yes
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7348 ac_header_compiler=no
7350 rm -f conftest.$ac_objext conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7352 echo "${ECHO_T}$ac_header_compiler" >&6
7354 # Is the header present?
7355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7358 #line $LINENO "configure"
7359 #include "confdefs.h"
7360 #include <$ac_header>
7362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7365 egrep -v '^ *\+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } >/dev/null; then
7370 if test -s conftest.err; then
7371 ac_cpp_err=$ac_c_preproc_warn_flag
7378 if test -z "$ac_cpp_err"; then
7379 ac_header_preproc=yes
7381 echo "$as_me: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7383 ac_header_preproc=no
7385 rm -f conftest.err conftest.$ac_ext
7386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7387 echo "${ECHO_T}$ac_header_preproc" >&6
7389 # So? What about this header?
7390 case $ac_header_compiler:$ac_header_preproc in
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7404 echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 eval "$as_ac_Header=$ac_header_preproc"
7411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7416 cat >>confdefs.h <<_ACEOF
7417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7422 for ac_header in editline/readline.h
7424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426 echo "$as_me:$LINENO: checking for $ac_header" >&5
7427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7434 # Is the header compilable?
7435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line $LINENO "configure"
7439 #include "confdefs.h"
7440 $ac_includes_default
7441 #include <$ac_header>
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } &&
7449 { ac_try='test -s conftest.$ac_objext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_header_compiler=yes
7457 echo "$as_me: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 ac_header_compiler=no
7461 rm -f conftest.$ac_objext conftest.$ac_ext
7462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7463 echo "${ECHO_T}$ac_header_compiler" >&6
7465 # Is the header present?
7466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 #include "confdefs.h"
7471 #include <$ac_header>
7473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7476 egrep -v '^ *\+' conftest.er1 >conftest.err
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } >/dev/null; then
7481 if test -s conftest.err; then
7482 ac_cpp_err=$ac_c_preproc_warn_flag
7489 if test -z "$ac_cpp_err"; then
7490 ac_header_preproc=yes
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 ac_header_preproc=no
7496 rm -f conftest.err conftest.$ac_ext
7497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7498 echo "${ECHO_T}$ac_header_preproc" >&6
7500 # So? What about this header?
7501 case $ac_header_compiler:$ac_header_preproc in
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7515 echo "$as_me:$LINENO: checking for $ac_header" >&5
7516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 eval "$as_ac_Header=$ac_header_preproc"
7522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7527 cat >>confdefs.h <<_ACEOF
7528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7533 for ac_header in readline.h
7535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7537 echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7545 # Is the header compilable?
7546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7549 #line $LINENO "configure"
7550 #include "confdefs.h"
7551 $ac_includes_default
7552 #include <$ac_header>
7554 rm -f conftest.$ac_objext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_header_compiler=yes
7568 echo "$as_me: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 ac_header_compiler=no
7572 rm -f conftest.$ac_objext conftest.$ac_ext
7573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7574 echo "${ECHO_T}$ac_header_compiler" >&6
7576 # Is the header present?
7577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7582 #include <$ac_header>
7584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7587 egrep -v '^ *\+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } >/dev/null; then
7592 if test -s conftest.err; then
7593 ac_cpp_err=$ac_c_preproc_warn_flag
7600 if test -z "$ac_cpp_err"; then
7601 ac_header_preproc=yes
7603 echo "$as_me: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7605 ac_header_preproc=no
7607 rm -f conftest.err conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7609 echo "${ECHO_T}$ac_header_preproc" >&6
7611 # So? What about this header?
7612 case $ac_header_compiler:$ac_header_preproc in
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7626 echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 eval "$as_ac_Header=$ac_header_preproc"
7633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638 cat >>confdefs.h <<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7643 { { echo "$as_me:$LINENO: error: readline header not found
7644 If you have readline already installed, see config.log for details on the
7645 failure. It is possible the compiler isn't looking in the proper directory.
7646 Use --without-readline to disable readline support." >&5
7647 echo "$as_me: error: readline header not found
7648 If you have readline already installed, see config.log for details on the
7649 failure. It is possible the compiler isn't looking in the proper directory.
7650 Use --without-readline to disable readline support." >&2;}
7651 { (exit 1); exit 1; }; }
7665 for ac_header in readline/history.h
7667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7669 echo "$as_me:$LINENO: checking for $ac_header" >&5
7670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7677 # Is the header compilable?
7678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7680 cat >conftest.$ac_ext <<_ACEOF
7681 #line $LINENO "configure"
7682 #include "confdefs.h"
7683 $ac_includes_default
7684 #include <$ac_header>
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -s conftest.$ac_objext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 ac_header_compiler=yes
7700 echo "$as_me: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7702 ac_header_compiler=no
7704 rm -f conftest.$ac_objext conftest.$ac_ext
7705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7706 echo "${ECHO_T}$ac_header_compiler" >&6
7708 # Is the header present?
7709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7713 #include "confdefs.h"
7714 #include <$ac_header>
7716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7719 egrep -v '^ *\+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7732 if test -z "$ac_cpp_err"; then
7733 ac_header_preproc=yes
7735 echo "$as_me: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 ac_header_preproc=no
7739 rm -f conftest.err conftest.$ac_ext
7740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7741 echo "${ECHO_T}$ac_header_preproc" >&6
7743 # So? What about this header?
7744 case $ac_header_compiler:$ac_header_preproc in
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 eval "$as_ac_Header=$ac_header_preproc"
7765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770 cat >>confdefs.h <<_ACEOF
7771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7776 for ac_header in editline/history.h
7778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780 echo "$as_me:$LINENO: checking for $ac_header" >&5
7781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7788 # Is the header compilable?
7789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7791 cat >conftest.$ac_ext <<_ACEOF
7792 #line $LINENO "configure"
7793 #include "confdefs.h"
7794 $ac_includes_default
7795 #include <$ac_header>
7797 rm -f conftest.$ac_objext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } &&
7803 { ac_try='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_header_compiler=yes
7811 echo "$as_me: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 ac_header_compiler=no
7815 rm -f conftest.$ac_objext conftest.$ac_ext
7816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7817 echo "${ECHO_T}$ac_header_compiler" >&6
7819 # Is the header present?
7820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7824 #include "confdefs.h"
7825 #include <$ac_header>
7827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7830 egrep -v '^ *\+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } >/dev/null; then
7835 if test -s conftest.err; then
7836 ac_cpp_err=$ac_c_preproc_warn_flag
7843 if test -z "$ac_cpp_err"; then
7844 ac_header_preproc=yes
7846 echo "$as_me: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 ac_header_preproc=no
7850 rm -f conftest.err conftest.$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7852 echo "${ECHO_T}$ac_header_preproc" >&6
7854 # So? What about this header?
7855 case $ac_header_compiler:$ac_header_preproc in
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7869 echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 eval "$as_ac_Header=$ac_header_preproc"
7876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7881 cat >>confdefs.h <<_ACEOF
7882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 for ac_header in history.h
7889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7891 echo "$as_me:$LINENO: checking for $ac_header" >&5
7892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7899 # Is the header compilable?
7900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7903 #line $LINENO "configure"
7904 #include "confdefs.h"
7905 $ac_includes_default
7906 #include <$ac_header>
7908 rm -f conftest.$ac_objext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910 (eval $ac_compile) 2>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_header_compiler=yes
7922 echo "$as_me: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7924 ac_header_compiler=no
7926 rm -f conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7928 echo "${ECHO_T}$ac_header_compiler" >&6
7930 # Is the header present?
7931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 #include "confdefs.h"
7936 #include <$ac_header>
7938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7941 egrep -v '^ *\+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } >/dev/null; then
7946 if test -s conftest.err; then
7947 ac_cpp_err=$ac_c_preproc_warn_flag
7954 if test -z "$ac_cpp_err"; then
7955 ac_header_preproc=yes
7957 echo "$as_me: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 ac_header_preproc=no
7961 rm -f conftest.err conftest.$ac_ext
7962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7963 echo "${ECHO_T}$ac_header_preproc" >&6
7965 # So? What about this header?
7966 case $ac_header_compiler:$ac_header_preproc in
7968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7980 echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 eval "$as_ac_Header=$ac_header_preproc"
7987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7992 cat >>confdefs.h <<_ACEOF
7993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7997 { { echo "$as_me:$LINENO: error: history header not found
7998 If you have readline already installed, see config.log for details on the
7999 failure. It is possible the compiler isn't looking in the proper directory.
8000 Use --without-readline to disable readline support." >&5
8001 echo "$as_me: error: history header not found
8002 If you have readline already installed, see config.log for details on the
8003 failure. It is possible the compiler isn't looking in the proper directory.
8004 Use --without-readline to disable readline support." >&2;}
8005 { (exit 1); exit 1; }; }
8020 if test "$with_zlib" = yes; then
8021 if test "${ac_cv_header_zlib_h+set}" = set; then
8022 echo "$as_me:$LINENO: checking for zlib.h" >&5
8023 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8024 if test "${ac_cv_header_zlib_h+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8028 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8030 # Is the header compilable?
8031 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8032 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 $ac_includes_default
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_header_compiler=yes
8053 echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 ac_header_compiler=no
8057 rm -f conftest.$ac_objext conftest.$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8059 echo "${ECHO_T}$ac_header_compiler" >&6
8061 # Is the header present?
8062 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8063 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8072 egrep -v '^ *\+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } >/dev/null; then
8077 if test -s conftest.err; then
8078 ac_cpp_err=$ac_c_preproc_warn_flag
8085 if test -z "$ac_cpp_err"; then
8086 ac_header_preproc=yes
8088 echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 ac_header_preproc=no
8092 rm -f conftest.err conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094 echo "${ECHO_T}$ac_header_preproc" >&6
8096 # So? What about this header?
8097 case $ac_header_compiler:$ac_header_preproc in
8099 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8100 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8102 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8104 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8105 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8107 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8109 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8111 echo "$as_me:$LINENO: checking for zlib.h" >&5
8112 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8113 if test "${ac_cv_header_zlib_h+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 ac_cv_header_zlib_h=$ac_header_preproc
8118 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8122 if test $ac_cv_header_zlib_h = yes; then
8125 { { echo "$as_me:$LINENO: error: zlib header not found
8126 If you have zlib already installed, see config.log for details on the
8127 failure. It is possible the compiler isn't looking in the proper directory.
8128 Use --without-zlib to disable zlib support." >&5
8129 echo "$as_me: error: zlib header not found
8130 If you have zlib already installed, see config.log for details on the
8131 failure. It is possible the compiler isn't looking in the proper directory.
8132 Use --without-zlib to disable zlib support." >&2;}
8133 { (exit 1); exit 1; }; }
8139 if test "$with_krb4" = yes ; then
8140 if test "${ac_cv_header_krb_h+set}" = set; then
8141 echo "$as_me:$LINENO: checking for krb.h" >&5
8142 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8143 if test "${ac_cv_header_krb_h+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8147 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8149 # Is the header compilable?
8150 echo "$as_me:$LINENO: checking krb.h usability" >&5
8151 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line $LINENO "configure"
8154 #include "confdefs.h"
8155 $ac_includes_default
8158 rm -f conftest.$ac_objext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -s conftest.$ac_objext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_header_compiler=yes
8172 echo "$as_me: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8174 ac_header_compiler=no
8176 rm -f conftest.$ac_objext conftest.$ac_ext
8177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8178 echo "${ECHO_T}$ac_header_compiler" >&6
8180 # Is the header present?
8181 echo "$as_me:$LINENO: checking krb.h presence" >&5
8182 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8183 cat >conftest.$ac_ext <<_ACEOF
8184 #line $LINENO "configure"
8185 #include "confdefs.h"
8188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8191 egrep -v '^ *\+' conftest.er1 >conftest.err
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } >/dev/null; then
8196 if test -s conftest.err; then
8197 ac_cpp_err=$ac_c_preproc_warn_flag
8204 if test -z "$ac_cpp_err"; then
8205 ac_header_preproc=yes
8207 echo "$as_me: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 ac_header_preproc=no
8211 rm -f conftest.err conftest.$ac_ext
8212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8213 echo "${ECHO_T}$ac_header_preproc" >&6
8215 # So? What about this header?
8216 case $ac_header_compiler:$ac_header_preproc in
8218 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8219 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8221 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8223 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8224 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8225 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8226 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8228 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8230 echo "$as_me:$LINENO: checking for krb.h" >&5
8231 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8232 if test "${ac_cv_header_krb_h+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 ac_cv_header_krb_h=$ac_header_preproc
8237 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8238 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8241 if test $ac_cv_header_krb_h = yes; then
8244 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8245 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8246 { (exit 1); exit 1; }; }
8252 if test "$with_krb5" = yes ; then
8253 if test "${ac_cv_header_krb5_h+set}" = set; then
8254 echo "$as_me:$LINENO: checking for krb5.h" >&5
8255 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8256 if test "${ac_cv_header_krb5_h+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8260 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8262 # Is the header compilable?
8263 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8264 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8267 #include "confdefs.h"
8268 $ac_includes_default
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_header_compiler=yes
8285 echo "$as_me: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 ac_header_compiler=no
8289 rm -f conftest.$ac_objext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8291 echo "${ECHO_T}$ac_header_compiler" >&6
8293 # Is the header present?
8294 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8295 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8296 cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8298 #include "confdefs.h"
8301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8304 egrep -v '^ *\+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } >/dev/null; then
8309 if test -s conftest.err; then
8310 ac_cpp_err=$ac_c_preproc_warn_flag
8317 if test -z "$ac_cpp_err"; then
8318 ac_header_preproc=yes
8320 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 ac_header_preproc=no
8324 rm -f conftest.err conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8326 echo "${ECHO_T}$ac_header_preproc" >&6
8328 # So? What about this header?
8329 case $ac_header_compiler:$ac_header_preproc in
8331 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8332 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8334 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8336 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8337 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8338 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8339 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8340 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8341 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8343 echo "$as_me:$LINENO: checking for krb5.h" >&5
8344 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8345 if test "${ac_cv_header_krb5_h+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 ac_cv_header_krb5_h=$ac_header_preproc
8350 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8351 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8354 if test $ac_cv_header_krb5_h = yes; then
8357 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8358 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8359 { (exit 1); exit 1; }; }
8363 if test "${ac_cv_header_com_err_h+set}" = set; then
8364 echo "$as_me:$LINENO: checking for com_err.h" >&5
8365 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8366 if test "${ac_cv_header_com_err_h+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8370 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8372 # Is the header compilable?
8373 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8374 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 $ac_includes_default
8379 #include <com_err.h>
8381 rm -f conftest.$ac_objext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383 (eval $ac_compile) 2>&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 ac_header_compiler=yes
8395 echo "$as_me: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 ac_header_compiler=no
8399 rm -f conftest.$ac_objext conftest.$ac_ext
8400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8401 echo "${ECHO_T}$ac_header_compiler" >&6
8403 # Is the header present?
8404 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8405 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8406 cat >conftest.$ac_ext <<_ACEOF
8407 #line $LINENO "configure"
8408 #include "confdefs.h"
8409 #include <com_err.h>
8411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8414 egrep -v '^ *\+' conftest.er1 >conftest.err
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } >/dev/null; then
8419 if test -s conftest.err; then
8420 ac_cpp_err=$ac_c_preproc_warn_flag
8427 if test -z "$ac_cpp_err"; then
8428 ac_header_preproc=yes
8430 echo "$as_me: failed program was:" >&5
8431 cat conftest.$ac_ext >&5
8432 ac_header_preproc=no
8434 rm -f conftest.err conftest.$ac_ext
8435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8436 echo "${ECHO_T}$ac_header_preproc" >&6
8438 # So? What about this header?
8439 case $ac_header_compiler:$ac_header_preproc in
8441 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8442 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8443 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8444 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8446 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8451 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8453 echo "$as_me:$LINENO: checking for com_err.h" >&5
8454 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8455 if test "${ac_cv_header_com_err_h+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 ac_cv_header_com_err_h=$ac_header_preproc
8460 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8461 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8464 if test $ac_cv_header_com_err_h = yes; then
8467 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8468 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8469 { (exit 1); exit 1; }; }
8475 if test "$with_openssl" = yes ; then
8476 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8477 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8478 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8479 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8483 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8485 # Is the header compilable?
8486 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8487 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8489 #line $LINENO "configure"
8490 #include "confdefs.h"
8491 $ac_includes_default
8492 #include <openssl/ssl.h>
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_header_compiler=yes
8508 echo "$as_me: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8510 ac_header_compiler=no
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514 echo "${ECHO_T}$ac_header_compiler" >&6
8516 # Is the header present?
8517 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8518 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 #include "confdefs.h"
8522 #include <openssl/ssl.h>
8524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8527 egrep -v '^ *\+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } >/dev/null; then
8532 if test -s conftest.err; then
8533 ac_cpp_err=$ac_c_preproc_warn_flag
8540 if test -z "$ac_cpp_err"; then
8541 ac_header_preproc=yes
8543 echo "$as_me: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8545 ac_header_preproc=no
8547 rm -f conftest.err conftest.$ac_ext
8548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8549 echo "${ECHO_T}$ac_header_preproc" >&6
8551 # So? What about this header?
8552 case $ac_header_compiler:$ac_header_preproc in
8554 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8555 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8556 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8557 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8559 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8564 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8566 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8567 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8568 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8573 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8574 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8577 if test $ac_cv_header_openssl_ssl_h = yes; then
8580 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8581 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8582 { (exit 1); exit 1; }; }
8586 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8587 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8588 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8589 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8593 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8595 # Is the header compilable?
8596 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8597 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8600 #include "confdefs.h"
8601 $ac_includes_default
8602 #include <openssl/err.h>
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -s conftest.$ac_objext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_header_compiler=yes
8618 echo "$as_me: failed program was:" >&5
8619 cat conftest.$ac_ext >&5
8620 ac_header_compiler=no
8622 rm -f conftest.$ac_objext conftest.$ac_ext
8623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8624 echo "${ECHO_T}$ac_header_compiler" >&6
8626 # Is the header present?
8627 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8628 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8632 #include <openssl/err.h>
8634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8637 egrep -v '^ *\+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } >/dev/null; then
8642 if test -s conftest.err; then
8643 ac_cpp_err=$ac_c_preproc_warn_flag
8650 if test -z "$ac_cpp_err"; then
8651 ac_header_preproc=yes
8653 echo "$as_me: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8655 ac_header_preproc=no
8657 rm -f conftest.err conftest.$ac_ext
8658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8659 echo "${ECHO_T}$ac_header_preproc" >&6
8661 # So? What about this header?
8662 case $ac_header_compiler:$ac_header_preproc in
8664 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8665 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8667 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8669 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8670 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8672 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8674 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8676 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8677 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8678 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 ac_cv_header_openssl_err_h=$ac_header_preproc
8683 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8684 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8687 if test $ac_cv_header_openssl_err_h = yes; then
8690 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8691 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8692 { (exit 1); exit 1; }; }
8698 if test "$with_pam" = yes ; then
8700 for ac_header in security/pam_appl.h
8702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8704 echo "$as_me:$LINENO: checking for $ac_header" >&5
8705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8712 # Is the header compilable?
8713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8716 #line $LINENO "configure"
8717 #include "confdefs.h"
8718 $ac_includes_default
8719 #include <$ac_header>
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_header_compiler=yes
8735 echo "$as_me: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8737 ac_header_compiler=no
8739 rm -f conftest.$ac_objext conftest.$ac_ext
8740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8741 echo "${ECHO_T}$ac_header_compiler" >&6
8743 # Is the header present?
8744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8748 #include "confdefs.h"
8749 #include <$ac_header>
8751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8754 egrep -v '^ *\+' conftest.er1 >conftest.err
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } >/dev/null; then
8759 if test -s conftest.err; then
8760 ac_cpp_err=$ac_c_preproc_warn_flag
8767 if test -z "$ac_cpp_err"; then
8768 ac_header_preproc=yes
8770 echo "$as_me: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 ac_header_preproc=no
8774 rm -f conftest.err conftest.$ac_ext
8775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8776 echo "${ECHO_T}$ac_header_preproc" >&6
8778 # So? What about this header?
8779 case $ac_header_compiler:$ac_header_preproc in
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8793 echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 eval "$as_ac_Header=$ac_header_preproc"
8800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8805 cat >>confdefs.h <<_ACEOF
8806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8811 for ac_header in pam/pam_appl.h
8813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815 echo "$as_me:$LINENO: checking for $ac_header" >&5
8816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8823 # Is the header compilable?
8824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8826 cat >conftest.$ac_ext <<_ACEOF
8827 #line $LINENO "configure"
8828 #include "confdefs.h"
8829 $ac_includes_default
8830 #include <$ac_header>
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834 (eval $ac_compile) 2>&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -s conftest.$ac_objext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_header_compiler=yes
8846 echo "$as_me: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 ac_header_compiler=no
8850 rm -f conftest.$ac_objext conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8852 echo "${ECHO_T}$ac_header_compiler" >&6
8854 # Is the header present?
8855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8859 #include "confdefs.h"
8860 #include <$ac_header>
8862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8865 egrep -v '^ *\+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } >/dev/null; then
8870 if test -s conftest.err; then
8871 ac_cpp_err=$ac_c_preproc_warn_flag
8878 if test -z "$ac_cpp_err"; then
8879 ac_header_preproc=yes
8881 echo "$as_me: failed program was:" >&5
8882 cat conftest.$ac_ext >&5
8883 ac_header_preproc=no
8885 rm -f conftest.err conftest.$ac_ext
8886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8887 echo "${ECHO_T}$ac_header_preproc" >&6
8889 # So? What about this header?
8890 case $ac_header_compiler:$ac_header_preproc in
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8904 echo "$as_me:$LINENO: checking for $ac_header" >&5
8905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 eval "$as_ac_Header=$ac_header_preproc"
8911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8916 cat >>confdefs.h <<_ACEOF
8917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8921 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8922 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8923 { (exit 1); exit 1; }; }
8934 if test "$with_rendezvous" = yes ; then
8935 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8936 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8937 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8938 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8942 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8944 # Is the header compilable?
8945 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8946 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 #include "confdefs.h"
8950 $ac_includes_default
8951 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -s conftest.$ac_objext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 ac_header_compiler=yes
8967 echo "$as_me: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 ac_header_compiler=no
8971 rm -f conftest.$ac_objext conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8973 echo "${ECHO_T}$ac_header_compiler" >&6
8975 # Is the header present?
8976 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8977 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8978 cat >conftest.$ac_ext <<_ACEOF
8979 #line $LINENO "configure"
8980 #include "confdefs.h"
8981 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8986 egrep -v '^ *\+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } >/dev/null; then
8991 if test -s conftest.err; then
8992 ac_cpp_err=$ac_c_preproc_warn_flag
8999 if test -z "$ac_cpp_err"; then
9000 ac_header_preproc=yes
9002 echo "$as_me: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 ac_header_preproc=no
9006 rm -f conftest.err conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9008 echo "${ECHO_T}$ac_header_preproc" >&6
9010 # So? What about this header?
9011 case $ac_header_compiler:$ac_header_preproc in
9013 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9014 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9016 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9018 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9019 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9020 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9021 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9023 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9025 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9026 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9027 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9032 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9033 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9036 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9039 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9040 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9041 { (exit 1); exit 1; }; }
9049 ## Types, structures, compiler characteristics
9053 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9054 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9055 if test "${ac_cv_c_const+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 #include "confdefs.h"
9062 #ifdef F77_DUMMY_MAIN
9066 int F77_DUMMY_MAIN() { return 1; }
9071 /* FIXME: Include the comments suggested by Paul. */
9073 /* Ultrix mips cc rejects this. */
9074 typedef int charset[2];
9076 /* SunOS 4.1.1 cc rejects this. */
9077 char const *const *ccp;
9079 /* NEC SVR4.0.2 mips cc rejects this. */
9080 struct point {int x, y;};
9081 static struct point const zero = {0,0};
9082 /* AIX XL C 1.02.0.0 rejects this.
9083 It does not let you subtract one const X* pointer from another in
9084 an arm of an if-expression whose if-part is not a constant
9086 const char *g = "string";
9087 ccp = &g + (g ? g-g : 0);
9088 /* HPUX 7.0 cc rejects these. */
9091 ccp = (char const *const *) p;
9092 { /* SCO 3.2v4 cc rejects this. */
9094 char const *s = 0 ? (char *) 0 : (char const *) 0;
9098 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9100 const int *foo = &x[0];
9103 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9104 typedef const int *iptr;
9108 { /* AIX XL C 1.02.0.0 rejects this saying
9109 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9110 struct s { int j; const int *ap[3]; };
9111 struct s *b; b->j = 5;
9113 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124 (eval $ac_compile) 2>&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -s conftest.$ac_objext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9136 echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9140 rm -f conftest.$ac_objext conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9143 echo "${ECHO_T}$ac_cv_c_const" >&6
9144 if test $ac_cv_c_const = no; then
9146 cat >>confdefs.h <<\_ACEOF
9152 echo "$as_me:$LINENO: checking for inline" >&5
9153 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9154 if test "${ac_cv_c_inline+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 for ac_kw in inline __inline__ __inline; do
9159 cat >conftest.$ac_ext <<_ACEOF
9160 #line $LINENO "configure"
9161 #include "confdefs.h"
9164 static $ac_kw foo_t static_foo () {return 0; }
9165 $ac_kw int foo () {return 0; }
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171 (eval $ac_compile) 2>&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -s conftest.$ac_objext'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 ac_cv_c_inline=$ac_kw; break
9183 echo "$as_me: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9186 rm -f conftest.$ac_objext conftest.$ac_ext
9190 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9191 echo "${ECHO_T}$ac_cv_c_inline" >&6
9192 case $ac_cv_c_inline in
9195 cat >>confdefs.h <<\_ACEOF
9199 *) cat >>confdefs.h <<_ACEOF
9200 #define inline $ac_cv_c_inline
9205 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9206 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9207 if test "${ac_cv_c_stringize+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9212 #include "confdefs.h"
9215 char *s = x(teststring);
9217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9218 egrep "#teststring" >/dev/null 2>&1; then
9219 ac_cv_c_stringize=no
9221 ac_cv_c_stringize=yes
9226 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9227 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9228 if test $ac_cv_c_stringize = yes; then
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_STRINGIZE 1
9236 echo "$as_me:$LINENO: checking for signed types" >&5
9237 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9238 if test "${pgac_cv_c_signed+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9242 #line $LINENO "configure"
9243 #include "confdefs.h"
9245 #ifdef F77_DUMMY_MAIN
9249 int F77_DUMMY_MAIN() { return 1; }
9254 signed char c; signed short s; signed int i;
9259 rm -f conftest.$ac_objext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261 (eval $ac_compile) 2>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 pgac_cv_c_signed=yes
9273 echo "$as_me: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9277 rm -f conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9280 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9281 if test x"$pgac_cv_c_signed" = xno ; then
9283 cat >>confdefs.h <<\_ACEOF
9288 echo "$as_me:$LINENO: checking for working volatile" >&5
9289 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9290 if test "${ac_cv_c_volatile+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 cat >conftest.$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9295 #include "confdefs.h"
9297 #ifdef F77_DUMMY_MAIN
9301 int F77_DUMMY_MAIN() { return 1; }
9313 rm -f conftest.$ac_objext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315 (eval $ac_compile) 2>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -s conftest.$ac_objext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_c_volatile=yes
9327 echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9331 rm -f conftest.$ac_objext conftest.$ac_ext
9333 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9334 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9335 if test $ac_cv_c_volatile = no; then
9337 cat >>confdefs.h <<\_ACEOF
9343 echo "$as_me:$LINENO: checking for __func__" >&5
9344 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9345 if test "${pgac_cv_funcname_func_support+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 #include "confdefs.h"
9352 #ifdef F77_DUMMY_MAIN
9356 int F77_DUMMY_MAIN() { return 1; }
9361 printf("%s\n", __func__);
9366 rm -f conftest.$ac_objext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368 (eval $ac_compile) 2>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -s conftest.$ac_objext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 pgac_cv_funcname_func_support=yes
9380 echo "$as_me: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9382 pgac_cv_funcname_func_support=no
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9387 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9388 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9390 cat >>confdefs.h <<\_ACEOF
9391 #define HAVE_FUNCNAME__FUNC 1
9395 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9396 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9397 if test "${pgac_cv_funcname_function_support+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 cat >conftest.$ac_ext <<_ACEOF
9401 #line $LINENO "configure"
9402 #include "confdefs.h"
9404 #ifdef F77_DUMMY_MAIN
9408 int F77_DUMMY_MAIN() { return 1; }
9413 printf("%s\n", __FUNCTION__);
9418 rm -f conftest.$ac_objext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420 (eval $ac_compile) 2>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try='test -s conftest.$ac_objext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 pgac_cv_funcname_function_support=yes
9432 echo "$as_me: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 pgac_cv_funcname_function_support=no
9436 rm -f conftest.$ac_objext conftest.$ac_ext
9438 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9439 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9440 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9442 cat >>confdefs.h <<\_ACEOF
9443 #define HAVE_FUNCNAME__FUNCTION 1
9448 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9449 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9450 if test "${ac_cv_struct_tm+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 cat >conftest.$ac_ext <<_ACEOF
9454 #line $LINENO "configure"
9455 #include "confdefs.h"
9456 #include <sys/types.h>
9459 #ifdef F77_DUMMY_MAIN
9463 int F77_DUMMY_MAIN() { return 1; }
9468 struct tm *tp; tp->tm_sec;
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -s conftest.$ac_objext'
9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; }; then
9485 ac_cv_struct_tm=time.h
9487 echo "$as_me: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9489 ac_cv_struct_tm=sys/time.h
9491 rm -f conftest.$ac_objext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9494 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9495 if test $ac_cv_struct_tm = sys/time.h; then
9497 cat >>confdefs.h <<\_ACEOF
9498 #define TM_IN_SYS_TIME 1
9503 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9504 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9505 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9511 #include <sys/types.h>
9512 #include <$ac_cv_struct_tm>
9515 #ifdef F77_DUMMY_MAIN
9519 int F77_DUMMY_MAIN() { return 1; }
9524 static struct tm ac_aggr;
9525 if (ac_aggr.tm_zone)
9531 rm -f conftest.$ac_objext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533 (eval $ac_compile) 2>&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } &&
9537 { ac_try='test -s conftest.$ac_objext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_member_struct_tm_tm_zone=yes
9545 echo "$as_me: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 ac_cv_member_struct_tm_tm_zone=no
9549 rm -f conftest.$ac_objext conftest.$ac_ext
9551 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9552 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9553 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9555 cat >>confdefs.h <<_ACEOF
9556 #define HAVE_STRUCT_TM_TM_ZONE 1
9562 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9564 cat >>confdefs.h <<\_ACEOF
9565 #define HAVE_TM_ZONE 1
9569 echo "$as_me:$LINENO: checking for tzname" >&5
9570 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9571 if test "${ac_cv_var_tzname+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 #include "confdefs.h"
9578 #ifndef tzname /* For SGI. */
9579 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9582 #ifdef F77_DUMMY_MAIN
9586 int F77_DUMMY_MAIN() { return 1; }
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -s conftest$ac_exeext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 ac_cv_var_tzname=yes
9610 echo "$as_me: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9616 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9617 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9618 if test $ac_cv_var_tzname = yes; then
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_TZNAME 1
9626 echo "$as_me:$LINENO: checking for union semun" >&5
9627 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9628 if test "${ac_cv_type_union_semun+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 cat >conftest.$ac_ext <<_ACEOF
9632 #line $LINENO "configure"
9633 #include "confdefs.h"
9634 #include <sys/types.h>
9635 #include <sys/ipc.h>
9636 #include <sys/sem.h>
9638 #ifdef F77_DUMMY_MAIN
9642 int F77_DUMMY_MAIN() { return 1; }
9647 if ((union semun *) 0)
9649 if (sizeof (union semun))
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_cv_type_union_semun=yes
9669 echo "$as_me: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 ac_cv_type_union_semun=no
9673 rm -f conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9676 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9677 if test $ac_cv_type_union_semun = yes; then
9679 cat >>confdefs.h <<_ACEOF
9680 #define HAVE_UNION_SEMUN 1
9686 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9687 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9688 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 cat >conftest.$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9693 #include "confdefs.h"
9694 #include <sys/types.h>
9695 #ifdef HAVE_SYS_UN_H
9700 #ifdef F77_DUMMY_MAIN
9704 int F77_DUMMY_MAIN() { return 1; }
9709 if ((struct sockaddr_un *) 0)
9711 if (sizeof (struct sockaddr_un))
9717 rm -f conftest.$ac_objext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9719 (eval $ac_compile) 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -s conftest.$ac_objext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_type_struct_sockaddr_un=yes
9731 echo "$as_me: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 ac_cv_type_struct_sockaddr_un=no
9735 rm -f conftest.$ac_objext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9738 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9739 if test $ac_cv_type_struct_sockaddr_un = yes; then
9741 cat >>confdefs.h <<_ACEOF
9742 #define HAVE_STRUCT_SOCKADDR_UN 1
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_UNIX_SOCKETS 1
9752 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9753 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9754 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 cat >conftest.$ac_ext <<_ACEOF
9758 #line $LINENO "configure"
9759 #include "confdefs.h"
9760 #include <sys/types.h>
9761 #ifdef HAVE_SYS_SOCKET_H
9762 #include <sys/socket.h>
9766 #ifdef F77_DUMMY_MAIN
9770 int F77_DUMMY_MAIN() { return 1; }
9775 if ((struct sockaddr_storage *) 0)
9777 if (sizeof (struct sockaddr_storage))
9783 rm -f conftest.$ac_objext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9785 (eval $ac_compile) 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -s conftest.$ac_objext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_type_struct_sockaddr_storage=yes
9797 echo "$as_me: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 ac_cv_type_struct_sockaddr_storage=no
9801 rm -f conftest.$ac_objext conftest.$ac_ext
9803 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9804 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9805 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9807 cat >>confdefs.h <<_ACEOF
9808 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9814 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9815 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9816 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9822 #include <sys/types.h>
9823 #ifdef HAVE_SYS_SOCKET_H
9824 #include <sys/socket.h>
9828 #ifdef F77_DUMMY_MAIN
9832 int F77_DUMMY_MAIN() { return 1; }
9837 static struct sockaddr_storage ac_aggr;
9838 if (ac_aggr.ss_family)
9844 rm -f conftest.$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846 (eval $ac_compile) 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -s conftest.$ac_objext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9858 echo "$as_me: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9860 ac_cv_member_struct_sockaddr_storage_ss_family=no
9862 rm -f conftest.$ac_objext conftest.$ac_ext
9864 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9865 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9866 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9868 cat >>confdefs.h <<_ACEOF
9869 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9874 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9875 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9876 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 cat >conftest.$ac_ext <<_ACEOF
9880 #line $LINENO "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9883 #ifdef HAVE_SYS_SOCKET_H
9884 #include <sys/socket.h>
9888 #ifdef F77_DUMMY_MAIN
9892 int F77_DUMMY_MAIN() { return 1; }
9897 static struct sockaddr_storage ac_aggr;
9898 if (ac_aggr.__ss_family)
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9918 echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_cv_member_struct_sockaddr_storage___ss_family=no
9922 rm -f conftest.$ac_objext conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9925 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9926 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9934 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9935 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9936 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 #include "confdefs.h"
9942 #include <sys/types.h>
9943 #ifdef HAVE_SYS_SOCKET_H
9944 #include <sys/socket.h>
9948 #ifdef F77_DUMMY_MAIN
9952 int F77_DUMMY_MAIN() { return 1; }
9957 static struct sockaddr_storage ac_aggr;
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -s conftest.$ac_objext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_member_struct_sockaddr_storage_ss_len=yes
9978 echo "$as_me: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 ac_cv_member_struct_sockaddr_storage_ss_len=no
9982 rm -f conftest.$ac_objext conftest.$ac_ext
9984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9985 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9986 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9994 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9995 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9996 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 cat >conftest.$ac_ext <<_ACEOF
10000 #line $LINENO "configure"
10001 #include "confdefs.h"
10002 #include <sys/types.h>
10003 #ifdef HAVE_SYS_SOCKET_H
10004 #include <sys/socket.h>
10008 #ifdef F77_DUMMY_MAIN
10009 # ifdef __cplusplus
10012 int F77_DUMMY_MAIN() { return 1; }
10017 static struct sockaddr_storage ac_aggr;
10018 if (ac_aggr.__ss_len)
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026 (eval $ac_compile) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10038 echo "$as_me: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 ac_cv_member_struct_sockaddr_storage___ss_len=no
10042 rm -f conftest.$ac_objext conftest.$ac_ext
10044 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10045 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10046 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10048 cat >>confdefs.h <<_ACEOF
10049 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10054 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10055 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10056 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 cat >conftest.$ac_ext <<_ACEOF
10060 #line $LINENO "configure"
10061 #include "confdefs.h"
10062 #include <sys/types.h>
10063 #ifdef HAVE_SYS_SOCKET_H
10064 #include <sys/socket.h>
10068 #ifdef F77_DUMMY_MAIN
10069 # ifdef __cplusplus
10072 int F77_DUMMY_MAIN() { return 1; }
10077 static struct sockaddr ac_aggr;
10078 if (ac_aggr.sa_len)
10084 rm -f conftest.$ac_objext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086 (eval $ac_compile) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -s conftest.$ac_objext'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_member_struct_sockaddr_sa_len=yes
10098 echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 ac_cv_member_struct_sockaddr_sa_len=no
10102 rm -f conftest.$ac_objext conftest.$ac_ext
10104 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10105 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10106 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10108 cat >>confdefs.h <<_ACEOF
10109 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10115 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10116 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10117 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 cat >conftest.$ac_ext <<_ACEOF
10121 #line $LINENO "configure"
10122 #include "confdefs.h"
10123 #include <sys/types.h>
10124 #include <sys/socket.h>
10128 #ifdef F77_DUMMY_MAIN
10129 # ifdef __cplusplus
10132 int F77_DUMMY_MAIN() { return 1; }
10137 if ((struct addrinfo *) 0)
10139 if (sizeof (struct addrinfo))
10145 rm -f conftest.$ac_objext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147 (eval $ac_compile) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_type_struct_addrinfo=yes
10159 echo "$as_me: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 ac_cv_type_struct_addrinfo=no
10163 rm -f conftest.$ac_objext conftest.$ac_ext
10165 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10166 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10167 if test $ac_cv_type_struct_addrinfo = yes; then
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_STRUCT_ADDRINFO 1
10177 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10178 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10179 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 #include "confdefs.h"
10185 #include <sys/param.h>
10186 #include <sys/types.h>
10187 #include <sys/socket.h>
10188 #include <sys/ucred.h>
10190 #ifdef F77_DUMMY_MAIN
10191 # ifdef __cplusplus
10194 int F77_DUMMY_MAIN() { return 1; }
10199 if ((struct cmsgcred *) 0)
10201 if (sizeof (struct cmsgcred))
10207 rm -f conftest.$ac_objext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209 (eval $ac_compile) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -s conftest.$ac_objext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_type_struct_cmsgcred=yes
10221 echo "$as_me: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 ac_cv_type_struct_cmsgcred=no
10225 rm -f conftest.$ac_objext conftest.$ac_ext
10227 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10228 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10229 if test $ac_cv_type_struct_cmsgcred = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_STRUCT_CMSGCRED 1
10237 echo "$as_me:$LINENO: checking for struct fcred" >&5
10238 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10239 if test "${ac_cv_type_struct_fcred+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10245 #include <sys/param.h>
10246 #include <sys/types.h>
10247 #include <sys/socket.h>
10248 #include <sys/ucred.h>
10250 #ifdef F77_DUMMY_MAIN
10251 # ifdef __cplusplus
10254 int F77_DUMMY_MAIN() { return 1; }
10259 if ((struct fcred *) 0)
10261 if (sizeof (struct fcred))
10267 rm -f conftest.$ac_objext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269 (eval $ac_compile) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_type_struct_fcred=yes
10281 echo "$as_me: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 ac_cv_type_struct_fcred=no
10285 rm -f conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10288 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10289 if test $ac_cv_type_struct_fcred = yes; then
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_STRUCT_FCRED 1
10297 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10298 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10299 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10304 #include "confdefs.h"
10305 #include <sys/param.h>
10306 #include <sys/types.h>
10307 #include <sys/socket.h>
10308 #include <sys/ucred.h>
10310 #ifdef F77_DUMMY_MAIN
10311 # ifdef __cplusplus
10314 int F77_DUMMY_MAIN() { return 1; }
10319 if ((struct sockcred *) 0)
10321 if (sizeof (struct sockcred))
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_type_struct_sockcred=yes
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 ac_cv_type_struct_sockcred=no
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10347 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10348 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10349 if test $ac_cv_type_struct_sockcred = yes; then
10351 cat >>confdefs.h <<_ACEOF
10352 #define HAVE_STRUCT_SOCKCRED 1
10359 echo "$as_me:$LINENO: checking for struct option" >&5
10360 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10361 if test "${ac_cv_type_struct_option+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 cat >conftest.$ac_ext <<_ACEOF
10365 #line $LINENO "configure"
10366 #include "confdefs.h"
10367 #ifdef HAVE_GETOPT_H
10368 #include <getopt.h>
10371 #ifdef F77_DUMMY_MAIN
10372 # ifdef __cplusplus
10375 int F77_DUMMY_MAIN() { return 1; }
10380 if ((struct option *) 0)
10382 if (sizeof (struct option))
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try='test -s conftest.$ac_objext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_cv_type_struct_option=yes
10402 echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 ac_cv_type_struct_option=no
10406 rm -f conftest.$ac_objext conftest.$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10409 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10410 if test $ac_cv_type_struct_option = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_STRUCT_OPTION 1
10420 if test "$with_zlib" = yes; then
10421 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10422 # did not). While we could work around the lack of z_streamp, it
10423 # seems unwise to encourage people to use such old zlib versions...
10424 echo "$as_me:$LINENO: checking for z_streamp" >&5
10425 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10426 if test "${ac_cv_type_z_streamp+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10431 #include "confdefs.h"
10434 #ifdef F77_DUMMY_MAIN
10435 # ifdef __cplusplus
10438 int F77_DUMMY_MAIN() { return 1; }
10443 if ((z_streamp *) 0)
10445 if (sizeof (z_streamp))
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453 (eval $ac_compile) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -s conftest.$ac_objext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_type_z_streamp=yes
10465 echo "$as_me: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 ac_cv_type_z_streamp=no
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10471 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10472 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10473 if test $ac_cv_type_z_streamp = yes; then
10476 { { echo "$as_me:$LINENO: error: zlib version is too old
10477 Use --without-zlib to disable zlib support." >&5
10478 echo "$as_me: error: zlib version is too old
10479 Use --without-zlib to disable zlib support." >&2;}
10480 { (exit 1); exit 1; }; }
10485 if test "$with_krb5" = yes; then
10486 # Check for differences between MIT and Heimdal (KTH) releases
10487 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10488 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10489 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 #include "confdefs.h"
10497 #ifdef F77_DUMMY_MAIN
10498 # ifdef __cplusplus
10501 int F77_DUMMY_MAIN() { return 1; }
10506 static krb5_ticket ac_aggr;
10507 if (ac_aggr.enc_part2)
10513 rm -f conftest.$ac_objext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515 (eval $ac_compile) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -s conftest.$ac_objext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_member_krb5_ticket_enc_part2=yes
10527 echo "$as_me: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10529 ac_cv_member_krb5_ticket_enc_part2=no
10531 rm -f conftest.$ac_objext conftest.$ac_ext
10533 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10534 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10535 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10537 cat >>confdefs.h <<_ACEOF
10538 #define HAVE_KRB5_TICKET_ENC_PART2 1
10543 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10544 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10545 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10550 #include "confdefs.h"
10553 #ifdef F77_DUMMY_MAIN
10554 # ifdef __cplusplus
10557 int F77_DUMMY_MAIN() { return 1; }
10562 static krb5_ticket ac_aggr;
10563 if (ac_aggr.client)
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest.$ac_objext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 ac_cv_member_krb5_ticket_client=yes
10583 echo "$as_me: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 ac_cv_member_krb5_ticket_client=no
10587 rm -f conftest.$ac_objext conftest.$ac_ext
10589 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10590 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10591 if test $ac_cv_member_krb5_ticket_client = yes; then
10593 cat >>confdefs.h <<_ACEOF
10594 #define HAVE_KRB5_TICKET_CLIENT 1
10599 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10600 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10601 { (exit 1); exit 1; }; }
10606 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10607 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10608 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10613 #include "confdefs.h"
10616 #ifdef F77_DUMMY_MAIN
10617 # ifdef __cplusplus
10620 int F77_DUMMY_MAIN() { return 1; }
10625 static krb5_error ac_aggr;
10626 if (ac_aggr.text.data)
10632 rm -f conftest.$ac_objext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634 (eval $ac_compile) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -s conftest.$ac_objext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_cv_member_krb5_error_text_data=yes
10646 echo "$as_me: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 ac_cv_member_krb5_error_text_data=no
10650 rm -f conftest.$ac_objext conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10653 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10654 if test $ac_cv_member_krb5_error_text_data = yes; then
10656 cat >>confdefs.h <<_ACEOF
10657 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10662 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10663 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10664 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 cat >conftest.$ac_ext <<_ACEOF
10668 #line $LINENO "configure"
10669 #include "confdefs.h"
10672 #ifdef F77_DUMMY_MAIN
10673 # ifdef __cplusplus
10676 int F77_DUMMY_MAIN() { return 1; }
10681 static krb5_error ac_aggr;
10682 if (ac_aggr.e_data)
10688 rm -f conftest.$ac_objext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690 (eval $ac_compile) 2>&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try='test -s conftest.$ac_objext'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
10700 ac_cv_member_krb5_error_e_data=yes
10702 echo "$as_me: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 ac_cv_member_krb5_error_e_data=no
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10708 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10709 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10710 if test $ac_cv_member_krb5_error_e_data = yes; then
10712 cat >>confdefs.h <<_ACEOF
10713 #define HAVE_KRB5_ERROR_E_DATA 1
10718 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10719 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10720 { (exit 1); exit 1; }; }
10729 ## Functions, global variables
10732 echo "$as_me:$LINENO: checking for int timezone" >&5
10733 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10734 if test "${pgac_cv_var_int_timezone+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10739 #include "confdefs.h"
10742 #ifdef F77_DUMMY_MAIN
10743 # ifdef __cplusplus
10746 int F77_DUMMY_MAIN() { return 1; }
10751 res = timezone / 60;
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -s conftest$ac_exeext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 pgac_cv_var_int_timezone=yes
10770 echo "$as_me: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 pgac_cv_var_int_timezone=no
10774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10777 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10778 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_INT_TIMEZONE
10785 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10786 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10787 if test "${ac_cv_func_accept_return+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 if test "${ac_cv_func_accept_arg1+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 if test "${ac_cv_func_accept_arg2+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 if test "${ac_cv_func_accept_arg3+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10800 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10801 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10802 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10803 cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10805 #include "confdefs.h"
10806 #ifdef HAVE_SYS_TYPES_H
10807 #include <sys/types.h>
10809 #ifdef HAVE_SYS_SOCKET_H
10810 #include <sys/socket.h>
10812 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10813 #ifdef F77_DUMMY_MAIN
10814 # ifdef __cplusplus
10817 int F77_DUMMY_MAIN() { return 1; }
10827 rm -f conftest.$ac_objext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829 (eval $ac_compile) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_not_found=no; break 4
10841 echo "$as_me: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10845 rm -f conftest.$ac_objext conftest.$ac_ext
10850 if test "$ac_not_found" = yes; then
10851 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10852 echo "$as_me: error: could not determine argument types" >&2;}
10853 { (exit 1); exit 1; }; }
10855 if test "$ac_cv_func_accept_arg3" = "void"; then
10856 ac_cv_func_accept_arg3=int
10866 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
10867 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10869 cat >>confdefs.h <<_ACEOF
10870 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10874 cat >>confdefs.h <<_ACEOF
10875 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10879 cat >>confdefs.h <<_ACEOF
10880 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10884 cat >>confdefs.h <<_ACEOF
10885 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10889 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10890 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10891 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10895 #line $LINENO "configure"
10896 #include "confdefs.h"
10897 #include <sys/time.h>
10898 #ifdef F77_DUMMY_MAIN
10899 # ifdef __cplusplus
10902 int F77_DUMMY_MAIN() { return 1; }
10907 struct timeval *tp;
10908 struct timezone *tzp;
10909 gettimeofday(tp,tzp);
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916 (eval $ac_compile) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -s conftest.$ac_objext'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 pgac_cv_func_gettimeofday_1arg=no
10928 echo "$as_me: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10930 pgac_cv_func_gettimeofday_1arg=yes
10932 rm -f conftest.$ac_objext conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10935 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10936 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10938 cat >>confdefs.h <<\_ACEOF
10939 #define GETTIMEOFDAY_1ARG
10946 # SunOS doesn't handle negative byte comparisons properly with +/- return
10947 echo "$as_me:$LINENO: checking for working memcmp" >&5
10948 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10949 if test "${ac_cv_func_memcmp_working+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 if test "$cross_compiling" = yes; then
10953 ac_cv_func_memcmp_working=no
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10959 #ifdef F77_DUMMY_MAIN
10960 # ifdef __cplusplus
10963 int F77_DUMMY_MAIN() { return 1; }
10969 /* Some versions of memcmp are not 8-bit clean. */
10970 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10971 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10974 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10975 or more and with at least one buffer not starting on a 4-byte boundary.
10976 William Lewis provided this test program. */
10981 for (i = 0; i < 4; i++)
10985 strcpy (a, "--------01111111");
10986 strcpy (b, "--------10000000");
10987 if (memcmp (a, b, 16) >= 0)
10997 rm -f conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999 (eval $ac_link) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_func_memcmp_working=yes
11010 echo "$as_me: program exited with status $ac_status" >&5
11011 echo "$as_me: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 ( exit $ac_status )
11014 ac_cv_func_memcmp_working=no
11016 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11019 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11020 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11021 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11040 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 echo "$as_me:$LINENO: checking for $ac_func" >&5
11044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11045 if eval "test \"\${$as_ac_var+set}\" = set"; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11051 /* System header to define __stub macros and hopefully few prototypes,
11052 which can conflict with char $ac_func (); below. */
11053 #include <assert.h>
11054 /* Override any gcc2 internal prototype to avoid an error. */
11058 /* We use char because int might match the return type of a gcc2
11059 builtin and then its argument prototype would still apply. */
11063 #ifdef F77_DUMMY_MAIN
11064 # ifdef __cplusplus
11067 int F77_DUMMY_MAIN() { return 1; }
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 eval "$as_ac_var=yes"
11099 echo "$as_me: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11101 eval "$as_ac_var=no"
11103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11116 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11117 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11118 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11123 #include "confdefs.h"
11124 #include <unistd.h>
11126 #ifdef F77_DUMMY_MAIN
11127 # ifdef __cplusplus
11130 int F77_DUMMY_MAIN() { return 1; }
11136 char *p = (char *) fdatasync;
11143 rm -f conftest.$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145 (eval $ac_compile) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_have_decl_fdatasync=yes
11157 echo "$as_me: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 ac_cv_have_decl_fdatasync=no
11161 rm -f conftest.$ac_objext conftest.$ac_ext
11163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11164 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11165 if test $ac_cv_have_decl_fdatasync = yes; then
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_DECL_FDATASYNC 1
11173 cat >>confdefs.h <<_ACEOF
11174 #define HAVE_DECL_FDATASYNC 0
11183 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11184 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11185 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cat >conftest.$ac_ext <<_ACEOF
11189 #line $LINENO "configure"
11190 #include "confdefs.h"
11191 $ac_includes_default
11192 #include <netinet/in.h>
11194 #ifdef F77_DUMMY_MAIN
11195 # ifdef __cplusplus
11198 int F77_DUMMY_MAIN() { return 1; }
11203 if ((struct sockaddr_in6 *) 0)
11205 if (sizeof (struct sockaddr_in6))
11211 rm -f conftest.$ac_objext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213 (eval $ac_compile) 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -s conftest.$ac_objext'
11218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219 (eval $ac_try) 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
11223 ac_cv_type_struct_sockaddr_in6=yes
11225 echo "$as_me: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11227 ac_cv_type_struct_sockaddr_in6=no
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11231 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11232 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11233 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11234 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11235 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11236 if test "${ac_cv_func_inet_ntop+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11241 #include "confdefs.h"
11242 /* System header to define __stub macros and hopefully few prototypes,
11243 which can conflict with char inet_ntop (); below. */
11244 #include <assert.h>
11245 /* Override any gcc2 internal prototype to avoid an error. */
11249 /* We use char because int might match the return type of a gcc2
11250 builtin and then its argument prototype would still apply. */
11254 #ifdef F77_DUMMY_MAIN
11255 # ifdef __cplusplus
11258 int F77_DUMMY_MAIN() { return 1; }
11263 /* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -s conftest$ac_exeext'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_cv_func_inet_ntop=yes
11290 echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 ac_cv_func_inet_ntop=no
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11296 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11297 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11298 if test $ac_cv_func_inet_ntop = yes; then
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_IPV6 1
11311 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11312 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11313 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 #include "confdefs.h"
11319 #include <machine/vmparam.h>
11320 #include <sys/exec.h>
11322 #ifdef F77_DUMMY_MAIN
11323 # ifdef __cplusplus
11326 int F77_DUMMY_MAIN() { return 1; }
11331 PS_STRINGS->ps_nargvstr = 1;
11332 PS_STRINGS->ps_argvstr = "foo";
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11339 (eval $ac_link) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -s conftest$ac_exeext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 pgac_cv_var_PS_STRINGS=yes
11351 echo "$as_me: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11353 pgac_cv_var_PS_STRINGS=no
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11357 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11358 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11359 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11361 cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_PS_STRINGS
11368 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11369 # is missing. Yes, there are machines that have only one. We may
11370 # also decide to use snprintf.c if snprintf() is present but does not
11371 # have working "long long int" support -- see below.
11373 pgac_need_repl_snprintf=no
11375 for ac_func in snprintf
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11380 if eval "test \"\${$as_ac_var+set}\" = set"; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below. */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11398 #ifdef F77_DUMMY_MAIN
11399 # ifdef __cplusplus
11402 int F77_DUMMY_MAIN() { return 1; }
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 eval "$as_ac_var=yes"
11434 echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11448 pgac_need_repl_snprintf=yes
11453 for ac_func in vsnprintf
11455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11456 echo "$as_me:$LINENO: checking for $ac_func" >&5
11457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11458 if eval "test \"\${$as_ac_var+set}\" = set"; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 #include "confdefs.h"
11464 /* System header to define __stub macros and hopefully few prototypes,
11465 which can conflict with char $ac_func (); below. */
11466 #include <assert.h>
11467 /* Override any gcc2 internal prototype to avoid an error. */
11471 /* We use char because int might match the return type of a gcc2
11472 builtin and then its argument prototype would still apply. */
11476 #ifdef F77_DUMMY_MAIN
11477 # ifdef __cplusplus
11480 int F77_DUMMY_MAIN() { return 1; }
11485 /* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11500 (eval $ac_link) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "$as_ac_var=yes"
11512 echo "$as_me: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 eval "$as_ac_var=no"
11516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11520 if test `eval echo '${'$as_ac_var'}'` = yes; then
11521 cat >>confdefs.h <<_ACEOF
11522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11526 pgac_need_repl_snprintf=yes
11532 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11533 # include/c.h will provide declarations. Note this is a separate test
11534 # from whether the functions exist in the C library --- there are
11535 # systems that have the functions but don't bother to declare them :-(
11537 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11538 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11539 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 cat >conftest.$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11545 $ac_includes_default
11546 #ifdef F77_DUMMY_MAIN
11547 # ifdef __cplusplus
11550 int F77_DUMMY_MAIN() { return 1; }
11556 char *p = (char *) snprintf;
11563 rm -f conftest.$ac_objext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_have_decl_snprintf=yes
11577 echo "$as_me: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 ac_cv_have_decl_snprintf=no
11581 rm -f conftest.$ac_objext conftest.$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11584 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11585 if test $ac_cv_have_decl_snprintf = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define HAVE_DECL_SNPRINTF 1
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_DECL_SNPRINTF 0
11599 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11600 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11601 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 cat >conftest.$ac_ext <<_ACEOF
11605 #line $LINENO "configure"
11606 #include "confdefs.h"
11607 $ac_includes_default
11608 #ifdef F77_DUMMY_MAIN
11609 # ifdef __cplusplus
11612 int F77_DUMMY_MAIN() { return 1; }
11618 char *p = (char *) vsnprintf;
11625 rm -f conftest.$ac_objext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627 (eval $ac_compile) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_have_decl_vsnprintf=yes
11639 echo "$as_me: failed program was:" >&5
11640 cat conftest.$ac_ext >&5
11641 ac_cv_have_decl_vsnprintf=no
11643 rm -f conftest.$ac_objext conftest.$ac_ext
11645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11646 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11647 if test $ac_cv_have_decl_vsnprintf = yes; then
11649 cat >>confdefs.h <<_ACEOF
11650 #define HAVE_DECL_VSNPRINTF 1
11655 cat >>confdefs.h <<_ACEOF
11656 #define HAVE_DECL_VSNPRINTF 0
11665 # do this one the hard way in case isinf() is a macro
11666 echo "$as_me:$LINENO: checking for isinf" >&5
11667 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11668 if test "${ac_cv_func_isinf+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 cat >conftest.$ac_ext <<_ACEOF
11672 #line $LINENO "configure"
11673 #include "confdefs.h"
11676 #ifdef F77_DUMMY_MAIN
11677 # ifdef __cplusplus
11680 int F77_DUMMY_MAIN() { return 1; }
11685 double x = 0.0; int res = isinf(x);
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11692 (eval $ac_link) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -s conftest$ac_exeext'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 ac_cv_func_isinf=yes
11704 echo "$as_me: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 ac_cv_func_isinf=no
11708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11710 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11711 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11713 if test $ac_cv_func_isinf = yes ; then
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_ISINF 1
11720 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11721 # Look for a way to implement a substitute for isinf()
11726 for ac_func in fpclass fp_class fp_class_d class
11728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11729 echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11731 if eval "test \"\${$as_ac_var+set}\" = set"; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 cat >conftest.$ac_ext <<_ACEOF
11735 #line $LINENO "configure"
11736 #include "confdefs.h"
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func (); below. */
11739 #include <assert.h>
11740 /* Override any gcc2 internal prototype to avoid an error. */
11744 /* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11749 #ifdef F77_DUMMY_MAIN
11750 # ifdef __cplusplus
11753 int F77_DUMMY_MAIN() { return 1; }
11758 /* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773 (eval $ac_link) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -s conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 eval "$as_ac_var=yes"
11785 echo "$as_me: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 eval "$as_ac_var=no"
11789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11793 if test `eval echo '${'$as_ac_var'}'` = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11816 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11819 echo "$as_me:$LINENO: checking for $ac_func" >&5
11820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11821 if eval "test \"\${$as_ac_var+set}\" = set"; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11825 #line $LINENO "configure"
11826 #include "confdefs.h"
11827 /* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char $ac_func (); below. */
11829 #include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error. */
11834 /* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11839 #ifdef F77_DUMMY_MAIN
11840 # ifdef __cplusplus
11843 int F77_DUMMY_MAIN() { return 1; }
11848 /* The GNU C library defines this for functions which it implements
11849 to always fail with ENOSYS. Some functions are actually named
11850 something starting with __ and the normal name is an alias. */
11851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863 (eval $ac_link) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 eval "$as_ac_var=yes"
11875 echo "$as_me: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11877 eval "$as_ac_var=no"
11879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11883 if test `eval echo '${'$as_ac_var'}'` = yes; then
11884 cat >>confdefs.h <<_ACEOF
11885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11895 # system's version of getaddrinfo(), if any, may be used only if we found
11896 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11897 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11899 for ac_func in getaddrinfo
11901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 echo "$as_me:$LINENO: checking for $ac_func" >&5
11903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11904 if eval "test \"\${$as_ac_var+set}\" = set"; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11908 #line $LINENO "configure"
11909 #include "confdefs.h"
11910 /* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below. */
11912 #include <assert.h>
11913 /* Override any gcc2 internal prototype to avoid an error. */
11917 /* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11922 #ifdef F77_DUMMY_MAIN
11923 # ifdef __cplusplus
11926 int F77_DUMMY_MAIN() { return 1; }
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 eval "$as_ac_var=yes"
11958 echo "$as_me: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 eval "$as_ac_var=no"
11962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11972 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11978 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11981 # similarly, use system's getopt_long() only if system provides struct option.
11982 if test x"$ac_cv_type_struct_option" = xyes ; then
11984 for ac_func in getopt_long
11986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11989 if eval "test \"\${$as_ac_var+set}\" = set"; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11994 #include "confdefs.h"
11995 /* System header to define __stub macros and hopefully few prototypes,
11996 which can conflict with char $ac_func (); below. */
11997 #include <assert.h>
11998 /* Override any gcc2 internal prototype to avoid an error. */
12002 /* We use char because int might match the return type of a gcc2
12003 builtin and then its argument prototype would still apply. */
12007 #ifdef F77_DUMMY_MAIN
12008 # ifdef __cplusplus
12011 int F77_DUMMY_MAIN() { return 1; }
12016 /* The GNU C library defines this for functions which it implements
12017 to always fail with ENOSYS. Some functions are actually named
12018 something starting with __ and the normal name is an alias. */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 eval "$as_ac_var=yes"
12043 echo "$as_me: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12045 eval "$as_ac_var=no"
12047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12051 if test `eval echo '${'$as_ac_var'}'` = yes; then
12052 cat >>confdefs.h <<_ACEOF
12053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12057 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12063 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12066 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12067 # We override the previous test that said fseeko/ftello didn't exist
12068 # OS tests are also done in include/c.h and port/fseeko.c
12069 case $host_os in bsdi*|netbsd*)
12070 ac_cv_func_fseeko=yes
12073 # Solaris has a very slow qsort in certain cases, so we replace it.
12074 case $host_os in solaris*)
12075 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12078 # Win32 can't to rename or unlink on an open file
12079 case $host_os in mingw*)
12080 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12081 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12082 LIBOBJS="$LIBOBJS pipe.$ac_objext"
12083 LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
12086 case $host_os in mingw*|cygwin*)
12087 LIBOBJS="$LIBOBJS dirmod.$ac_objext" ;;
12090 if test "$with_readline" = yes; then
12091 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12092 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12094 #line $LINENO "configure"
12095 #include "confdefs.h"
12097 #ifdef HAVE_READLINE_READLINE_H
12098 # include <readline/readline.h>
12099 #elif defined(HAVE_READLINE_H)
12100 # include <readline.h>
12103 #ifdef F77_DUMMY_MAIN
12104 # ifdef __cplusplus
12107 int F77_DUMMY_MAIN() { return 1; }
12112 rl_completion_append_character = 'x';
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119 (eval $ac_link) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6
12132 cat >>confdefs.h <<\_ACEOF
12133 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12137 echo "$as_me: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12145 for ac_func in rl_completion_matches rl_filename_completion_function
12147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12148 echo "$as_me:$LINENO: checking for $ac_func" >&5
12149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12150 if eval "test \"\${$as_ac_var+set}\" = set"; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #line $LINENO "configure"
12155 #include "confdefs.h"
12156 /* System header to define __stub macros and hopefully few prototypes,
12157 which can conflict with char $ac_func (); below. */
12158 #include <assert.h>
12159 /* Override any gcc2 internal prototype to avoid an error. */
12163 /* We use char because int might match the return type of a gcc2
12164 builtin and then its argument prototype would still apply. */
12168 #ifdef F77_DUMMY_MAIN
12169 # ifdef __cplusplus
12172 int F77_DUMMY_MAIN() { return 1; }
12177 /* The GNU C library defines this for functions which it implements
12178 to always fail with ENOSYS. Some functions are actually named
12179 something starting with __ and the normal name is an alias. */
12180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -s conftest$ac_exeext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 eval "$as_ac_var=yes"
12204 echo "$as_me: failed program was:" >&5
12205 cat conftest.$ac_ext >&5
12206 eval "$as_ac_var=no"
12208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12212 if test `eval echo '${'$as_ac_var'}'` = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12221 for ac_func in replace_history_entry
12223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224 echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12226 if eval "test \"\${$as_ac_var+set}\" = set"; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12230 #line $LINENO "configure"
12231 #include "confdefs.h"
12232 /* System header to define __stub macros and hopefully few prototypes,
12233 which can conflict with char $ac_func (); below. */
12234 #include <assert.h>
12235 /* Override any gcc2 internal prototype to avoid an error. */
12239 /* We use char because int might match the return type of a gcc2
12240 builtin and then its argument prototype would still apply. */
12244 #ifdef F77_DUMMY_MAIN
12245 # ifdef __cplusplus
12248 int F77_DUMMY_MAIN() { return 1; }
12253 /* The GNU C library defines this for functions which it implements
12254 to always fail with ENOSYS. Some functions are actually named
12255 something starting with __ and the normal name is an alias. */
12256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 eval "$as_ac_var=yes"
12280 echo "$as_me: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12282 eval "$as_ac_var=no"
12284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12288 if test `eval echo '${'$as_ac_var'}'` = yes; then
12289 cat >>confdefs.h <<_ACEOF
12290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12299 echo "$as_me:$LINENO: checking for finite" >&5
12300 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12301 cat >conftest.$ac_ext <<_ACEOF
12302 #line $LINENO "configure"
12303 #include "confdefs.h"
12305 #ifdef F77_DUMMY_MAIN
12306 # ifdef __cplusplus
12309 int F77_DUMMY_MAIN() { return 1; }
12314 int dummy=finite(1.0);
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -s conftest$ac_exeext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12332 cat >>confdefs.h <<\_ACEOF
12333 #define HAVE_FINITE 1
12336 echo "$as_me:$LINENO: result: yes" >&5
12337 echo "${ECHO_T}yes" >&6
12339 echo "$as_me: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 echo "$as_me:$LINENO: result: no" >&5
12342 echo "${ECHO_T}no" >&6
12344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12346 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12347 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12350 #include "confdefs.h"
12351 #include <setjmp.h>
12352 #ifdef F77_DUMMY_MAIN
12353 # ifdef __cplusplus
12356 int F77_DUMMY_MAIN() { return 1; }
12361 sigjmp_buf x; sigsetjmp(x, 1);
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -s conftest$ac_exeext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAVE_SIGSETJMP 1
12383 echo "$as_me:$LINENO: result: yes" >&5
12384 echo "${ECHO_T}yes" >&6
12386 echo "$as_me: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 echo "$as_me:$LINENO: result: no" >&5
12389 echo "${ECHO_T}no" >&6
12391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12393 echo "$as_me:$LINENO: checking for syslog" >&5
12394 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12395 if test "${ac_cv_func_syslog+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12400 #include "confdefs.h"
12401 /* System header to define __stub macros and hopefully few prototypes,
12402 which can conflict with char syslog (); below. */
12403 #include <assert.h>
12404 /* Override any gcc2 internal prototype to avoid an error. */
12408 /* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12413 #ifdef F77_DUMMY_MAIN
12414 # ifdef __cplusplus
12417 int F77_DUMMY_MAIN() { return 1; }
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined (__stub_syslog) || defined (__stub___syslog)
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -s conftest$ac_exeext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_func_syslog=yes
12449 echo "$as_me: failed program was:" >&5
12450 cat conftest.$ac_ext >&5
12451 ac_cv_func_syslog=no
12453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12456 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12457 if test $ac_cv_func_syslog = yes; then
12458 if test "${ac_cv_header_syslog_h+set}" = set; then
12459 echo "$as_me:$LINENO: checking for syslog.h" >&5
12460 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12461 if test "${ac_cv_header_syslog_h+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12465 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12467 # Is the header compilable?
12468 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12469 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12470 cat >conftest.$ac_ext <<_ACEOF
12471 #line $LINENO "configure"
12472 #include "confdefs.h"
12473 $ac_includes_default
12474 #include <syslog.h>
12476 rm -f conftest.$ac_objext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_header_compiler=yes
12490 echo "$as_me: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12492 ac_header_compiler=no
12494 rm -f conftest.$ac_objext conftest.$ac_ext
12495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12496 echo "${ECHO_T}$ac_header_compiler" >&6
12498 # Is the header present?
12499 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12500 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12502 #line $LINENO "configure"
12503 #include "confdefs.h"
12504 #include <syslog.h>
12506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12509 egrep -v '^ *\+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } >/dev/null; then
12514 if test -s conftest.err; then
12515 ac_cpp_err=$ac_c_preproc_warn_flag
12522 if test -z "$ac_cpp_err"; then
12523 ac_header_preproc=yes
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 ac_header_preproc=no
12529 rm -f conftest.err conftest.$ac_ext
12530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12531 echo "${ECHO_T}$ac_header_preproc" >&6
12533 # So? What about this header?
12534 case $ac_header_compiler:$ac_header_preproc in
12536 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12537 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12539 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12541 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12542 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12544 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12546 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12548 echo "$as_me:$LINENO: checking for syslog.h" >&5
12549 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12550 if test "${ac_cv_header_syslog_h+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 ac_cv_header_syslog_h=$ac_header_preproc
12555 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12556 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12559 if test $ac_cv_header_syslog_h = yes; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_SYSLOG 1
12571 echo "$as_me:$LINENO: checking for optreset" >&5
12572 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12573 if test "${pgac_cv_var_int_optreset+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 cat >conftest.$ac_ext <<_ACEOF
12577 #line $LINENO "configure"
12578 #include "confdefs.h"
12579 #include <unistd.h>
12580 #ifdef F77_DUMMY_MAIN
12581 # ifdef __cplusplus
12584 int F77_DUMMY_MAIN() { return 1; }
12589 extern int optreset; optreset = 1;
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 pgac_cv_var_int_optreset=yes
12608 echo "$as_me: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12610 pgac_cv_var_int_optreset=no
12612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12614 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12615 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12616 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12618 cat >>confdefs.h <<\_ACEOF
12619 #define HAVE_INT_OPTRESET 1
12626 for ac_func in strtoll strtoq
12628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12629 echo "$as_me:$LINENO: checking for $ac_func" >&5
12630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12631 if eval "test \"\${$as_ac_var+set}\" = set"; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 cat >conftest.$ac_ext <<_ACEOF
12635 #line $LINENO "configure"
12636 #include "confdefs.h"
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below. */
12639 #include <assert.h>
12640 /* Override any gcc2 internal prototype to avoid an error. */
12644 /* We use char because int might match the return type of a gcc2
12645 builtin and then its argument prototype would still apply. */
12649 #ifdef F77_DUMMY_MAIN
12650 # ifdef __cplusplus
12653 int F77_DUMMY_MAIN() { return 1; }
12658 /* The GNU C library defines this for functions which it implements
12659 to always fail with ENOSYS. Some functions are actually named
12660 something starting with __ and the normal name is an alias. */
12661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12671 rm -f conftest.$ac_objext conftest$ac_exeext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673 (eval $ac_link) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -s conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12685 echo "$as_me: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 eval "$as_ac_var=no"
12689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12693 if test `eval echo '${'$as_ac_var'}'` = yes; then
12694 cat >>confdefs.h <<_ACEOF
12695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12703 for ac_func in strtoull strtouq
12705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706 echo "$as_me:$LINENO: checking for $ac_func" >&5
12707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12708 if eval "test \"\${$as_ac_var+set}\" = set"; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12713 #include "confdefs.h"
12714 /* System header to define __stub macros and hopefully few prototypes,
12715 which can conflict with char $ac_func (); below. */
12716 #include <assert.h>
12717 /* Override any gcc2 internal prototype to avoid an error. */
12721 /* We use char because int might match the return type of a gcc2
12722 builtin and then its argument prototype would still apply. */
12726 #ifdef F77_DUMMY_MAIN
12727 # ifdef __cplusplus
12730 int F77_DUMMY_MAIN() { return 1; }
12735 /* The GNU C library defines this for functions which it implements
12736 to always fail with ENOSYS. Some functions are actually named
12737 something starting with __ and the normal name is an alias. */
12738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest$ac_exeext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 eval "$as_ac_var=yes"
12762 echo "$as_me: failed program was:" >&5
12763 cat conftest.$ac_ext >&5
12764 eval "$as_ac_var=no"
12766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12770 if test `eval echo '${'$as_ac_var'}'` = yes; then
12771 cat >>confdefs.h <<_ACEOF
12772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12779 # Check for one of atexit() or on_exit()
12781 for ac_func in atexit
12783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12784 echo "$as_me:$LINENO: checking for $ac_func" >&5
12785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12786 if eval "test \"\${$as_ac_var+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12790 #line $LINENO "configure"
12791 #include "confdefs.h"
12792 /* System header to define __stub macros and hopefully few prototypes,
12793 which can conflict with char $ac_func (); below. */
12794 #include <assert.h>
12795 /* Override any gcc2 internal prototype to avoid an error. */
12799 /* We use char because int might match the return type of a gcc2
12800 builtin and then its argument prototype would still apply. */
12804 #ifdef F77_DUMMY_MAIN
12805 # ifdef __cplusplus
12808 int F77_DUMMY_MAIN() { return 1; }
12813 /* The GNU C library defines this for functions which it implements
12814 to always fail with ENOSYS. Some functions are actually named
12815 something starting with __ and the normal name is an alias. */
12816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12828 (eval $ac_link) 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -s conftest$ac_exeext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 eval "$as_ac_var=yes"
12840 echo "$as_me: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12842 eval "$as_ac_var=no"
12844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12848 if test `eval echo '${'$as_ac_var'}'` = yes; then
12849 cat >>confdefs.h <<_ACEOF
12850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12855 for ac_func in on_exit
12857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12858 echo "$as_me:$LINENO: checking for $ac_func" >&5
12859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12860 if eval "test \"\${$as_ac_var+set}\" = set"; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 cat >conftest.$ac_ext <<_ACEOF
12864 #line $LINENO "configure"
12865 #include "confdefs.h"
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char $ac_func (); below. */
12868 #include <assert.h>
12869 /* Override any gcc2 internal prototype to avoid an error. */
12873 /* We use char because int might match the return type of a gcc2
12874 builtin and then its argument prototype would still apply. */
12878 #ifdef F77_DUMMY_MAIN
12879 # ifdef __cplusplus
12882 int F77_DUMMY_MAIN() { return 1; }
12887 /* The GNU C library defines this for functions which it implements
12888 to always fail with ENOSYS. Some functions are actually named
12889 something starting with __ and the normal name is an alias. */
12890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 eval "$as_ac_var=yes"
12914 echo "$as_me: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12916 eval "$as_ac_var=no"
12918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12922 if test `eval echo '${'$as_ac_var'}'` = yes; then
12923 cat >>confdefs.h <<_ACEOF
12924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12928 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12929 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12930 { (exit 1); exit 1; }; }
12938 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12939 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12940 if test "${ac_cv_sys_largefile_source+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 ac_cv_sys_largefile_source=no
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 #include "confdefs.h"
12949 #ifdef F77_DUMMY_MAIN
12950 # ifdef __cplusplus
12953 int F77_DUMMY_MAIN() { return 1; }
12963 rm -f conftest.$ac_objext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -s conftest.$ac_objext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12977 echo "$as_me: failed program was:" >&5
12978 cat conftest.$ac_ext >&5
12980 rm -f conftest.$ac_objext conftest.$ac_ext
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12983 #include "confdefs.h"
12984 #define _LARGEFILE_SOURCE 1
12986 #ifdef F77_DUMMY_MAIN
12987 # ifdef __cplusplus
12990 int F77_DUMMY_MAIN() { return 1; }
13000 rm -f conftest.$ac_objext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002 (eval $ac_compile) 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -s conftest.$ac_objext'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_sys_largefile_source=1; break
13014 echo "$as_me: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13017 rm -f conftest.$ac_objext conftest.$ac_ext
13021 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13022 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13023 if test "$ac_cv_sys_largefile_source" != no; then
13025 cat >>confdefs.h <<_ACEOF
13026 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13032 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13033 # in glibc 2.1.3, but that breaks too many other things.
13034 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13035 echo "$as_me:$LINENO: checking for fseeko" >&5
13036 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13037 if test "${ac_cv_func_fseeko+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13041 #line $LINENO "configure"
13042 #include "confdefs.h"
13044 #ifdef F77_DUMMY_MAIN
13045 # ifdef __cplusplus
13048 int F77_DUMMY_MAIN() { return 1; }
13053 return fseeko && fseeko (stdin, 0, 0);
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060 (eval $ac_link) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -s conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_func_fseeko=yes
13072 echo "$as_me: failed program was:" >&5
13073 cat conftest.$ac_ext >&5
13074 ac_cv_func_fseeko=no
13076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13078 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13079 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13080 if test $ac_cv_func_fseeko = yes; then
13082 cat >>confdefs.h <<\_ACEOF
13083 #define HAVE_FSEEKO 1
13092 # For each platform, we need to know about any special compile and link
13093 # libraries, and whether the normal C function names are thread-safe.
13094 # See the comment at the top of src/port/thread.c for more information.
13096 if test "$enable_thread_safety" = yes; then
13097 if test "${ac_cv_header_pthread_h+set}" = set; then
13098 echo "$as_me:$LINENO: checking for pthread.h" >&5
13099 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13100 if test "${ac_cv_header_pthread_h+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13104 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13106 # Is the header compilable?
13107 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13108 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13109 cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 #include "confdefs.h"
13112 $ac_includes_default
13113 #include <pthread.h>
13115 rm -f conftest.$ac_objext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13117 (eval $ac_compile) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -s conftest.$ac_objext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_header_compiler=yes
13129 echo "$as_me: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 ac_header_compiler=no
13133 rm -f conftest.$ac_objext conftest.$ac_ext
13134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13135 echo "${ECHO_T}$ac_header_compiler" >&6
13137 # Is the header present?
13138 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13139 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13140 cat >conftest.$ac_ext <<_ACEOF
13141 #line $LINENO "configure"
13142 #include "confdefs.h"
13143 #include <pthread.h>
13145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13148 egrep -v '^ *\+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev/null; then
13153 if test -s conftest.err; then
13154 ac_cpp_err=$ac_c_preproc_warn_flag
13161 if test -z "$ac_cpp_err"; then
13162 ac_header_preproc=yes
13164 echo "$as_me: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 ac_header_preproc=no
13168 rm -f conftest.err conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13170 echo "${ECHO_T}$ac_header_preproc" >&6
13172 # So? What about this header?
13173 case $ac_header_compiler:$ac_header_preproc in
13175 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13176 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13178 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13180 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13181 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13183 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13185 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13187 echo "$as_me:$LINENO: checking for pthread.h" >&5
13188 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13189 if test "${ac_cv_header_pthread_h+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 ac_cv_header_pthread_h=$ac_header_preproc
13194 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13195 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13198 if test $ac_cv_header_pthread_h = yes; then
13201 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13202 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13203 { (exit 1); exit 1; }; }
13208 if test "$THREAD_SUPPORT" != yes; then
13209 { { echo "$as_me:$LINENO: error:
13210 Cannot enable threads on your platform.
13211 Please report your platform threading info to the PostgreSQL mailing lists
13212 so it can be added to the next release. Report all compile flags, link flags,
13213 functions, or libraries required for threading support.
13214 See the comment at the top of src/port/thread.c for more information.
13216 echo "$as_me: error:
13217 Cannot enable threads on your platform.
13218 Please report your platform threading info to the PostgreSQL mailing lists
13219 so it can be added to the next release. Report all compile flags, link flags,
13220 functions, or libraries required for threading support.
13221 See the comment at the top of src/port/thread.c for more information.
13223 { (exit 1); exit 1; }; }
13227 # Check for re-entrant versions of certain functions
13229 # Include special flags if threads are enabled _and_ if required for
13230 # threading on this platform. Some platforms have *_r functions but
13231 # their natively named funcs are thread-safe too.
13233 # One trick here is that if we don't call AC_CHECK_FUNCS; the
13234 # functions are marked "not found", which is perfect.
13236 if test "$enable_thread_safety" = yes -a "$STRERROR_THREADSAFE" = yes ; then
13238 cat >>confdefs.h <<\_ACEOF
13239 #define STRERROR_THREADSAFE 1
13243 if test "$enable_thread_safety" = yes -a "$GETPWUID_THREADSAFE" = yes ; then
13245 cat >>confdefs.h <<\_ACEOF
13246 #define GETPWUID_THREADSAFE 1
13250 if test "$enable_thread_safety" = yes -a "$GETHOSTBYNAME_THREADSAFE" = yes ; then
13252 cat >>confdefs.h <<\_ACEOF
13253 #define GETHOSTBYNAME_THREADSAFE 1
13258 # Check for *_r functions
13261 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13262 LIBS="$LIBS $THREAD_LIBS"
13266 for ac_func in strerror_r getpwuid_r gethostbyname_r
13268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13269 echo "$as_me:$LINENO: checking for $ac_func" >&5
13270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13271 if eval "test \"\${$as_ac_var+set}\" = set"; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 cat >conftest.$ac_ext <<_ACEOF
13275 #line $LINENO "configure"
13276 #include "confdefs.h"
13277 /* System header to define __stub macros and hopefully few prototypes,
13278 which can conflict with char $ac_func (); below. */
13279 #include <assert.h>
13280 /* Override any gcc2 internal prototype to avoid an error. */
13284 /* We use char because int might match the return type of a gcc2
13285 builtin and then its argument prototype would still apply. */
13289 #ifdef F77_DUMMY_MAIN
13290 # ifdef __cplusplus
13293 int F77_DUMMY_MAIN() { return 1; }
13298 /* The GNU C library defines this for functions which it implements
13299 to always fail with ENOSYS. Some functions are actually named
13300 something starting with __ and the normal name is an alias. */
13301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311 rm -f conftest.$ac_objext conftest$ac_exeext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -s conftest$ac_exeext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 eval "$as_ac_var=yes"
13325 echo "$as_me: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 eval "$as_ac_var=no"
13329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13333 if test `eval echo '${'$as_ac_var'}'` = yes; then
13334 cat >>confdefs.h <<_ACEOF
13335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13345 # do not use values from template file
13355 # This test makes sure that run tests work at all. Sometimes a shared
13356 # library is found by the linker, but the runtime linker can't find it.
13357 # This check should come after all modifications of compiler or linker
13358 # variables, and before any other run tests.
13359 echo "$as_me:$LINENO: checking test program" >&5
13360 echo $ECHO_N "checking test program... $ECHO_C" >&6
13361 if test "$cross_compiling" = yes; then
13362 echo "$as_me:$LINENO: result: cross-compiling" >&5
13363 echo "${ECHO_T}cross-compiling" >&6
13365 cat >conftest.$ac_ext <<_ACEOF
13366 #line $LINENO "configure"
13367 #include "confdefs.h"
13368 int main() { return 0; }
13370 rm -f conftest$ac_exeext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13372 (eval $ac_link) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 echo "$as_me:$LINENO: result: ok" >&5
13382 echo "${ECHO_T}ok" >&6
13384 echo "$as_me: program exited with status $ac_status" >&5
13385 echo "$as_me: failed program was:" >&5
13386 cat conftest.$ac_ext >&5
13387 ( exit $ac_status )
13388 echo "$as_me:$LINENO: result: failed" >&5
13389 echo "${ECHO_T}failed" >&6
13390 { { echo "$as_me:$LINENO: error:
13391 *** Could not execute a simple test program. This may be a problem
13392 *** related to locating shared libraries. Check the file 'config.log'
13393 *** for the exact reason." >&5
13394 echo "$as_me: error:
13395 *** Could not execute a simple test program. This may be a problem
13396 *** related to locating shared libraries. Check the file 'config.log'
13397 *** for the exact reason." >&2;}
13398 { (exit 1); exit 1; }; }
13400 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13405 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13406 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13407 if test "${pgac_cv_type_long_int_64+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 if test "$cross_compiling" = yes; then
13411 # If cross-compiling, check the size reported by the compiler and
13412 # trust that the arithmetic works.
13413 cat >conftest.$ac_ext <<_ACEOF
13414 #line $LINENO "configure"
13415 #include "confdefs.h"
13417 #ifdef F77_DUMMY_MAIN
13418 # ifdef __cplusplus
13421 int F77_DUMMY_MAIN() { return 1; }
13426 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 pgac_cv_type_long_int_64=yes
13447 echo "$as_me: failed program was:" >&5
13448 cat conftest.$ac_ext >&5
13449 pgac_cv_type_long_int_64=no
13451 rm -f conftest.$ac_objext conftest.$ac_ext
13453 cat >conftest.$ac_ext <<_ACEOF
13454 #line $LINENO "configure"
13455 #include "confdefs.h"
13456 typedef long int int64;
13459 * These are globals to discourage the compiler from folding all the
13460 * arithmetic tests down to compile-time constants.
13462 int64 a = 20000001;
13463 int64 b = 40000005;
13465 int does_int64_work()
13469 if (sizeof(int64) != 8)
13470 return 0; /* definitely not the right size */
13472 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13480 exit(! does_int64_work());
13483 rm -f conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485 (eval $ac_link) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 pgac_cv_type_long_int_64=yes
13496 echo "$as_me: program exited with status $ac_status" >&5
13497 echo "$as_me: failed program was:" >&5
13498 cat conftest.$ac_ext >&5
13499 ( exit $ac_status )
13500 pgac_cv_type_long_int_64=no
13502 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13505 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13506 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13508 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13509 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_LONG_INT_64
13518 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13519 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13520 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13521 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 if test "$cross_compiling" = yes; then
13525 # If cross-compiling, check the size reported by the compiler and
13526 # trust that the arithmetic works.
13527 cat >conftest.$ac_ext <<_ACEOF
13528 #line $LINENO "configure"
13529 #include "confdefs.h"
13531 #ifdef F77_DUMMY_MAIN
13532 # ifdef __cplusplus
13535 int F77_DUMMY_MAIN() { return 1; }
13540 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13547 rm -f conftest.$ac_objext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549 (eval $ac_compile) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try='test -s conftest.$ac_objext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 pgac_cv_type_long_long_int_64=yes
13561 echo "$as_me: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 pgac_cv_type_long_long_int_64=no
13565 rm -f conftest.$ac_objext conftest.$ac_ext
13567 cat >conftest.$ac_ext <<_ACEOF
13568 #line $LINENO "configure"
13569 #include "confdefs.h"
13570 typedef long long int int64;
13573 * These are globals to discourage the compiler from folding all the
13574 * arithmetic tests down to compile-time constants.
13576 int64 a = 20000001;
13577 int64 b = 40000005;
13579 int does_int64_work()
13583 if (sizeof(int64) != 8)
13584 return 0; /* definitely not the right size */
13586 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13594 exit(! does_int64_work());
13597 rm -f conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 pgac_cv_type_long_long_int_64=yes
13610 echo "$as_me: program exited with status $ac_status" >&5
13611 echo "$as_me: failed program was:" >&5
13612 cat conftest.$ac_ext >&5
13613 ( exit $ac_status )
13614 pgac_cv_type_long_long_int_64=no
13616 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13619 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13620 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13622 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13623 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13625 cat >>confdefs.h <<\_ACEOF
13626 #define HAVE_LONG_LONG_INT_64
13635 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13636 cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13640 #define INT64CONST(x) x##LL
13641 long long int foo = INT64CONST(0x1234567890123456);
13643 #ifdef F77_DUMMY_MAIN
13644 # ifdef __cplusplus
13647 int F77_DUMMY_MAIN() { return 1; }
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -s conftest.$ac_objext'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13670 cat >>confdefs.h <<\_ACEOF
13671 #define HAVE_LL_CONSTANTS 1
13675 echo "$as_me: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13678 rm -f conftest.$ac_objext conftest.$ac_ext
13682 # If we found "long int" is 64 bits, assume snprintf handles it. If
13683 # we found we need to use "long long int", better check. We cope with
13684 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13685 # work, fall back to our own snprintf emulation (which we know uses %lld).
13687 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13688 if test $pgac_need_repl_snprintf = no; then
13689 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13690 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13691 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 for pgac_format in '%lld' '%qd' '%I64d'; do
13695 if test "$cross_compiling" = yes; then
13696 pgac_cv_snprintf_long_long_int_format=cross; break
13698 cat >conftest.$ac_ext <<_ACEOF
13699 #line $LINENO "configure"
13700 #include "confdefs.h"
13702 typedef long long int int64;
13703 #define INT64_FORMAT "$pgac_format"
13705 int64 a = 20000001;
13706 int64 b = 40000005;
13708 int does_int64_snprintf_work()
13713 if (sizeof(int64) != 8)
13714 return 0; /* doesn't look like the right size */
13717 snprintf(buf, 100, INT64_FORMAT, c);
13718 if (strcmp(buf, "800000140000005") != 0)
13719 return 0; /* either multiply or snprintf is busted */
13723 exit(! does_int64_snprintf_work());
13726 rm -f conftest$ac_exeext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13728 (eval $ac_link) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13739 echo "$as_me: program exited with status $ac_status" >&5
13740 echo "$as_me: failed program was:" >&5
13741 cat conftest.$ac_ext >&5
13743 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13748 LONG_LONG_INT_FORMAT=''
13750 case $pgac_cv_snprintf_long_long_int_format in
13751 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13752 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13753 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13754 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13755 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13756 *) echo "$as_me:$LINENO: result: none" >&5
13757 echo "${ECHO_T}none" >&6;;
13759 if test "$LONG_LONG_INT_FORMAT" = ""; then
13760 # Force usage of our own snprintf, since system snprintf is broken
13761 pgac_need_repl_snprintf=yes
13762 LONG_LONG_INT_FORMAT='%lld'
13765 # Here if we previously decided we needed to use our own snprintf
13766 LONG_LONG_INT_FORMAT='%lld'
13768 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
13769 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13770 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
13772 # Here if we are not using 'long long int' at all
13773 INT64_FORMAT='"%ld"'
13774 UINT64_FORMAT='"%lu"'
13778 cat >>confdefs.h <<_ACEOF
13779 #define INT64_FORMAT $INT64_FORMAT
13784 cat >>confdefs.h <<_ACEOF
13785 #define UINT64_FORMAT $UINT64_FORMAT
13789 if test $pgac_need_repl_snprintf = yes; then
13790 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13793 # Need a #define for the size of Datum (unsigned long)
13794 echo "$as_me:$LINENO: checking for unsigned long" >&5
13795 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13796 if test "${ac_cv_type_unsigned_long+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13801 #include "confdefs.h"
13802 $ac_includes_default
13803 #ifdef F77_DUMMY_MAIN
13804 # ifdef __cplusplus
13807 int F77_DUMMY_MAIN() { return 1; }
13812 if ((unsigned long *) 0)
13814 if (sizeof (unsigned long))
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 ac_cv_type_unsigned_long=yes
13834 echo "$as_me: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13836 ac_cv_type_unsigned_long=no
13838 rm -f conftest.$ac_objext conftest.$ac_ext
13840 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13841 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13843 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13844 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13845 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 if test "$ac_cv_type_unsigned_long" = yes; then
13849 # The cast to unsigned long works around a bug in the HP C Compiler
13850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13852 # This bug is HP SR number 8606223364.
13853 if test "$cross_compiling" = yes; then
13854 # Depending upon the size, compute the lo and hi bounds.
13855 cat >conftest.$ac_ext <<_ACEOF
13856 #line $LINENO "configure"
13857 #include "confdefs.h"
13858 $ac_includes_default
13859 #ifdef F77_DUMMY_MAIN
13860 # ifdef __cplusplus
13863 int F77_DUMMY_MAIN() { return 1; }
13868 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13875 rm -f conftest.$ac_objext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877 (eval $ac_compile) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -s conftest.$ac_objext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13889 cat >conftest.$ac_ext <<_ACEOF
13890 #line $LINENO "configure"
13891 #include "confdefs.h"
13892 $ac_includes_default
13893 #ifdef F77_DUMMY_MAIN
13894 # ifdef __cplusplus
13897 int F77_DUMMY_MAIN() { return 1; }
13902 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13909 rm -f conftest.$ac_objext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13911 (eval $ac_compile) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -s conftest.$ac_objext'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
13921 ac_hi=$ac_mid; break
13923 echo "$as_me: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13925 ac_lo=`expr $ac_mid + 1`
13926 if test $ac_lo -le $ac_mid; then
13930 ac_mid=`expr 2 '*' $ac_mid + 1`
13932 rm -f conftest.$ac_objext conftest.$ac_ext
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 cat >conftest.$ac_ext <<_ACEOF
13938 #line $LINENO "configure"
13939 #include "confdefs.h"
13940 $ac_includes_default
13941 #ifdef F77_DUMMY_MAIN
13942 # ifdef __cplusplus
13945 int F77_DUMMY_MAIN() { return 1; }
13950 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13957 rm -f conftest.$ac_objext
13958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13959 (eval $ac_compile) 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try='test -s conftest.$ac_objext'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13971 cat >conftest.$ac_ext <<_ACEOF
13972 #line $LINENO "configure"
13973 #include "confdefs.h"
13974 $ac_includes_default
13975 #ifdef F77_DUMMY_MAIN
13976 # ifdef __cplusplus
13979 int F77_DUMMY_MAIN() { return 1; }
13984 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993 (eval $ac_compile) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_lo=$ac_mid; break
14005 echo "$as_me: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14007 ac_hi=`expr '(' $ac_mid ')' - 1`
14008 if test $ac_mid -le $ac_hi; then
14012 ac_mid=`expr 2 '*' $ac_mid`
14014 rm -f conftest.$ac_objext conftest.$ac_ext
14017 echo "$as_me: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14021 rm -f conftest.$ac_objext conftest.$ac_ext
14023 rm -f conftest.$ac_objext conftest.$ac_ext
14024 # Binary search between lo and hi bounds.
14025 while test "x$ac_lo" != "x$ac_hi"; do
14026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14027 cat >conftest.$ac_ext <<_ACEOF
14028 #line $LINENO "configure"
14029 #include "confdefs.h"
14030 $ac_includes_default
14031 #ifdef F77_DUMMY_MAIN
14032 # ifdef __cplusplus
14035 int F77_DUMMY_MAIN() { return 1; }
14040 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14047 rm -f conftest.$ac_objext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049 (eval $ac_compile) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14061 echo "$as_me: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14063 ac_lo=`expr '(' $ac_mid ')' + 1`
14065 rm -f conftest.$ac_objext conftest.$ac_ext
14068 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14069 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14070 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14071 { (exit 1); exit 1; }; } ;;
14074 if test "$cross_compiling" = yes; then
14075 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14076 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14077 { (exit 1); exit 1; }; }
14079 cat >conftest.$ac_ext <<_ACEOF
14080 #line $LINENO "configure"
14081 #include "confdefs.h"
14082 $ac_includes_default
14083 long longval () { return (long) (sizeof (unsigned long)); }
14084 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14086 #include <stdlib.h>
14087 #ifdef F77_DUMMY_MAIN
14088 # ifdef __cplusplus
14091 int F77_DUMMY_MAIN() { return 1; }
14097 FILE *f = fopen ("conftest.val", "w");
14100 if (((long) (sizeof (unsigned long))) < 0)
14102 long i = longval ();
14103 if (i != ((long) (sizeof (unsigned long))))
14105 fprintf (f, "%ld\n", i);
14109 unsigned long i = ulongval ();
14110 if (i != ((long) (sizeof (unsigned long))))
14112 fprintf (f, "%lu\n", i);
14114 exit (ferror (f) || fclose (f) != 0);
14120 rm -f conftest$ac_exeext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14122 (eval $ac_link) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14133 echo "$as_me: program exited with status $ac_status" >&5
14134 echo "$as_me: failed program was:" >&5
14135 cat conftest.$ac_ext >&5
14136 ( exit $ac_status )
14137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14138 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14139 { (exit 1); exit 1; }; }
14141 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14146 ac_cv_sizeof_unsigned_long=0
14149 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14150 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14151 cat >>confdefs.h <<_ACEOF
14152 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14157 # Determine memory alignment requirements for the basic C data types.
14159 echo "$as_me:$LINENO: checking for short" >&5
14160 echo $ECHO_N "checking for short... $ECHO_C" >&6
14161 if test "${ac_cv_type_short+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 cat >conftest.$ac_ext <<_ACEOF
14165 #line $LINENO "configure"
14166 #include "confdefs.h"
14167 $ac_includes_default
14168 #ifdef F77_DUMMY_MAIN
14169 # ifdef __cplusplus
14172 int F77_DUMMY_MAIN() { return 1; }
14179 if (sizeof (short))
14185 rm -f conftest.$ac_objext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14187 (eval $ac_compile) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -s conftest.$ac_objext'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 ac_cv_type_short=yes
14199 echo "$as_me: failed program was:" >&5
14200 cat conftest.$ac_ext >&5
14201 ac_cv_type_short=no
14203 rm -f conftest.$ac_objext conftest.$ac_ext
14205 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14206 echo "${ECHO_T}$ac_cv_type_short" >&6
14208 echo "$as_me:$LINENO: checking alignment of short" >&5
14209 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14210 if test "${pgac_cv_alignof_short+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 if test "$ac_cv_type_short" = yes; then
14214 if test "$cross_compiling" = yes; then
14215 # Depending upon the size, compute the lo and hi bounds.
14216 cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14218 #include "confdefs.h"
14219 $ac_includes_default
14220 struct { char filler; short field; } pgac_struct;
14221 #ifdef F77_DUMMY_MAIN
14222 # ifdef __cplusplus
14225 int F77_DUMMY_MAIN() { return 1; }
14230 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239 (eval $ac_compile) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } &&
14243 { ac_try='test -s conftest.$ac_objext'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14251 cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 #include "confdefs.h"
14254 $ac_includes_default
14255 struct { char filler; short field; } pgac_struct;
14256 #ifdef F77_DUMMY_MAIN
14257 # ifdef __cplusplus
14260 int F77_DUMMY_MAIN() { return 1; }
14265 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14272 rm -f conftest.$ac_objext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_hi=$ac_mid; break
14286 echo "$as_me: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 ac_lo=`expr $ac_mid + 1`
14289 if test $ac_lo -le $ac_mid; then
14293 ac_mid=`expr 2 '*' $ac_mid + 1`
14295 rm -f conftest.$ac_objext conftest.$ac_ext
14298 echo "$as_me: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 cat >conftest.$ac_ext <<_ACEOF
14301 #line $LINENO "configure"
14302 #include "confdefs.h"
14303 $ac_includes_default
14304 struct { char filler; short field; } pgac_struct;
14305 #ifdef F77_DUMMY_MAIN
14306 # ifdef __cplusplus
14309 int F77_DUMMY_MAIN() { return 1; }
14314 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 #include "confdefs.h"
14338 $ac_includes_default
14339 struct { char filler; short field; } pgac_struct;
14340 #ifdef F77_DUMMY_MAIN
14341 # ifdef __cplusplus
14344 int F77_DUMMY_MAIN() { return 1; }
14349 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -s conftest.$ac_objext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_lo=$ac_mid; break
14370 echo "$as_me: failed program was:" >&5
14371 cat conftest.$ac_ext >&5
14372 ac_hi=`expr '(' $ac_mid ')' - 1`
14373 if test $ac_mid -le $ac_hi; then
14377 ac_mid=`expr 2 '*' $ac_mid`
14379 rm -f conftest.$ac_objext conftest.$ac_ext
14382 echo "$as_me: failed program was:" >&5
14383 cat conftest.$ac_ext >&5
14386 rm -f conftest.$ac_objext conftest.$ac_ext
14388 rm -f conftest.$ac_objext conftest.$ac_ext
14389 # Binary search between lo and hi bounds.
14390 while test "x$ac_lo" != "x$ac_hi"; do
14391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14392 cat >conftest.$ac_ext <<_ACEOF
14393 #line $LINENO "configure"
14394 #include "confdefs.h"
14395 $ac_includes_default
14396 struct { char filler; short field; } pgac_struct;
14397 #ifdef F77_DUMMY_MAIN
14398 # ifdef __cplusplus
14401 int F77_DUMMY_MAIN() { return 1; }
14406 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14413 rm -f conftest.$ac_objext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14427 echo "$as_me: failed program was:" >&5
14428 cat conftest.$ac_ext >&5
14429 ac_lo=`expr '(' $ac_mid ')' + 1`
14431 rm -f conftest.$ac_objext conftest.$ac_ext
14434 ?*) pgac_cv_alignof_short=$ac_lo;;
14435 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14436 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14437 { (exit 1); exit 1; }; } ;;
14440 if test "$cross_compiling" = yes; then
14441 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14442 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14443 { (exit 1); exit 1; }; }
14445 cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 #include "confdefs.h"
14448 $ac_includes_default
14449 struct { char filler; short field; } pgac_struct;
14450 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14451 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14453 #include <stdlib.h>
14454 #ifdef F77_DUMMY_MAIN
14455 # ifdef __cplusplus
14458 int F77_DUMMY_MAIN() { return 1; }
14464 FILE *f = fopen ("conftest.val", "w");
14467 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14469 long i = longval ();
14470 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14472 fprintf (f, "%ld\n", i);
14476 unsigned long i = ulongval ();
14477 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14479 fprintf (f, "%lu\n", i);
14481 exit (ferror (f) || fclose (f) != 0);
14487 rm -f conftest$ac_exeext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489 (eval $ac_link) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 pgac_cv_alignof_short=`cat conftest.val`
14500 echo "$as_me: program exited with status $ac_status" >&5
14501 echo "$as_me: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14503 ( exit $ac_status )
14504 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14505 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14506 { (exit 1); exit 1; }; }
14508 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14513 pgac_cv_alignof_short=0
14516 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14517 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14518 cat >>confdefs.h <<_ACEOF
14519 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14523 echo "$as_me:$LINENO: checking for int" >&5
14524 echo $ECHO_N "checking for int... $ECHO_C" >&6
14525 if test "${ac_cv_type_int+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 cat >conftest.$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14530 #include "confdefs.h"
14531 $ac_includes_default
14532 #ifdef F77_DUMMY_MAIN
14533 # ifdef __cplusplus
14536 int F77_DUMMY_MAIN() { return 1; }
14549 rm -f conftest.$ac_objext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551 (eval $ac_compile) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14563 echo "$as_me: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14567 rm -f conftest.$ac_objext conftest.$ac_ext
14569 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14570 echo "${ECHO_T}$ac_cv_type_int" >&6
14572 echo "$as_me:$LINENO: checking alignment of int" >&5
14573 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14574 if test "${pgac_cv_alignof_int+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 if test "$ac_cv_type_int" = yes; then
14578 if test "$cross_compiling" = yes; then
14579 # Depending upon the size, compute the lo and hi bounds.
14580 cat >conftest.$ac_ext <<_ACEOF
14581 #line $LINENO "configure"
14582 #include "confdefs.h"
14583 $ac_includes_default
14584 struct { char filler; int field; } pgac_struct;
14585 #ifdef F77_DUMMY_MAIN
14586 # ifdef __cplusplus
14589 int F77_DUMMY_MAIN() { return 1; }
14594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603 (eval $ac_compile) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14615 cat >conftest.$ac_ext <<_ACEOF
14616 #line $LINENO "configure"
14617 #include "confdefs.h"
14618 $ac_includes_default
14619 struct { char filler; int field; } pgac_struct;
14620 #ifdef F77_DUMMY_MAIN
14621 # ifdef __cplusplus
14624 int F77_DUMMY_MAIN() { return 1; }
14629 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14636 rm -f conftest.$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -s conftest.$ac_objext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_hi=$ac_mid; break
14650 echo "$as_me: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14652 ac_lo=`expr $ac_mid + 1`
14653 if test $ac_lo -le $ac_mid; then
14657 ac_mid=`expr 2 '*' $ac_mid + 1`
14659 rm -f conftest.$ac_objext conftest.$ac_ext
14662 echo "$as_me: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 cat >conftest.$ac_ext <<_ACEOF
14665 #line $LINENO "configure"
14666 #include "confdefs.h"
14667 $ac_includes_default
14668 struct { char filler; int field; } pgac_struct;
14669 #ifdef F77_DUMMY_MAIN
14670 # ifdef __cplusplus
14673 int F77_DUMMY_MAIN() { return 1; }
14678 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687 (eval $ac_compile) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14699 cat >conftest.$ac_ext <<_ACEOF
14700 #line $LINENO "configure"
14701 #include "confdefs.h"
14702 $ac_includes_default
14703 struct { char filler; int field; } pgac_struct;
14704 #ifdef F77_DUMMY_MAIN
14705 # ifdef __cplusplus
14708 int F77_DUMMY_MAIN() { return 1; }
14713 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_lo=$ac_mid; break
14734 echo "$as_me: failed program was:" >&5
14735 cat conftest.$ac_ext >&5
14736 ac_hi=`expr '(' $ac_mid ')' - 1`
14737 if test $ac_mid -le $ac_hi; then
14741 ac_mid=`expr 2 '*' $ac_mid`
14743 rm -f conftest.$ac_objext conftest.$ac_ext
14746 echo "$as_me: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14750 rm -f conftest.$ac_objext conftest.$ac_ext
14752 rm -f conftest.$ac_objext conftest.$ac_ext
14753 # Binary search between lo and hi bounds.
14754 while test "x$ac_lo" != "x$ac_hi"; do
14755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14756 cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14759 $ac_includes_default
14760 struct { char filler; int field; } pgac_struct;
14761 #ifdef F77_DUMMY_MAIN
14762 # ifdef __cplusplus
14765 int F77_DUMMY_MAIN() { return 1; }
14770 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14777 rm -f conftest.$ac_objext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14779 (eval $ac_compile) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14791 echo "$as_me: failed program was:" >&5
14792 cat conftest.$ac_ext >&5
14793 ac_lo=`expr '(' $ac_mid ')' + 1`
14795 rm -f conftest.$ac_objext conftest.$ac_ext
14798 ?*) pgac_cv_alignof_int=$ac_lo;;
14799 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14800 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14801 { (exit 1); exit 1; }; } ;;
14804 if test "$cross_compiling" = yes; then
14805 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14806 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14807 { (exit 1); exit 1; }; }
14809 cat >conftest.$ac_ext <<_ACEOF
14810 #line $LINENO "configure"
14811 #include "confdefs.h"
14812 $ac_includes_default
14813 struct { char filler; int field; } pgac_struct;
14814 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14815 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14817 #include <stdlib.h>
14818 #ifdef F77_DUMMY_MAIN
14819 # ifdef __cplusplus
14822 int F77_DUMMY_MAIN() { return 1; }
14828 FILE *f = fopen ("conftest.val", "w");
14831 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14833 long i = longval ();
14834 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14836 fprintf (f, "%ld\n", i);
14840 unsigned long i = ulongval ();
14841 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14843 fprintf (f, "%lu\n", i);
14845 exit (ferror (f) || fclose (f) != 0);
14851 rm -f conftest$ac_exeext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14853 (eval $ac_link) 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 pgac_cv_alignof_int=`cat conftest.val`
14864 echo "$as_me: program exited with status $ac_status" >&5
14865 echo "$as_me: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 ( exit $ac_status )
14868 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14869 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14870 { (exit 1); exit 1; }; }
14872 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14877 pgac_cv_alignof_int=0
14880 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14881 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14882 cat >>confdefs.h <<_ACEOF
14883 #define ALIGNOF_INT $pgac_cv_alignof_int
14887 echo "$as_me:$LINENO: checking for long" >&5
14888 echo $ECHO_N "checking for long... $ECHO_C" >&6
14889 if test "${ac_cv_type_long+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 cat >conftest.$ac_ext <<_ACEOF
14893 #line $LINENO "configure"
14894 #include "confdefs.h"
14895 $ac_includes_default
14896 #ifdef F77_DUMMY_MAIN
14897 # ifdef __cplusplus
14900 int F77_DUMMY_MAIN() { return 1; }
14913 rm -f conftest.$ac_objext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14915 (eval $ac_compile) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -s conftest.$ac_objext'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 ac_cv_type_long=yes
14927 echo "$as_me: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14931 rm -f conftest.$ac_objext conftest.$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14934 echo "${ECHO_T}$ac_cv_type_long" >&6
14936 echo "$as_me:$LINENO: checking alignment of long" >&5
14937 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14938 if test "${pgac_cv_alignof_long+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 if test "$ac_cv_type_long" = yes; then
14942 if test "$cross_compiling" = yes; then
14943 # Depending upon the size, compute the lo and hi bounds.
14944 cat >conftest.$ac_ext <<_ACEOF
14945 #line $LINENO "configure"
14946 #include "confdefs.h"
14947 $ac_includes_default
14948 struct { char filler; long field; } pgac_struct;
14949 #ifdef F77_DUMMY_MAIN
14950 # ifdef __cplusplus
14953 int F77_DUMMY_MAIN() { return 1; }
14958 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -s conftest.$ac_objext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14979 cat >conftest.$ac_ext <<_ACEOF
14980 #line $LINENO "configure"
14981 #include "confdefs.h"
14982 $ac_includes_default
14983 struct { char filler; long field; } pgac_struct;
14984 #ifdef F77_DUMMY_MAIN
14985 # ifdef __cplusplus
14988 int F77_DUMMY_MAIN() { return 1; }
14993 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002 (eval $ac_compile) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_hi=$ac_mid; break
15014 echo "$as_me: failed program was:" >&5
15015 cat conftest.$ac_ext >&5
15016 ac_lo=`expr $ac_mid + 1`
15017 if test $ac_lo -le $ac_mid; then
15021 ac_mid=`expr 2 '*' $ac_mid + 1`
15023 rm -f conftest.$ac_objext conftest.$ac_ext
15026 echo "$as_me: failed program was:" >&5
15027 cat conftest.$ac_ext >&5
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15030 #include "confdefs.h"
15031 $ac_includes_default
15032 struct { char filler; long field; } pgac_struct;
15033 #ifdef F77_DUMMY_MAIN
15034 # ifdef __cplusplus
15037 int F77_DUMMY_MAIN() { return 1; }
15042 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15063 cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15065 #include "confdefs.h"
15066 $ac_includes_default
15067 struct { char filler; long field; } pgac_struct;
15068 #ifdef F77_DUMMY_MAIN
15069 # ifdef __cplusplus
15072 int F77_DUMMY_MAIN() { return 1; }
15077 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15084 rm -f conftest.$ac_objext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15086 (eval $ac_compile) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_lo=$ac_mid; break
15098 echo "$as_me: failed program was:" >&5
15099 cat conftest.$ac_ext >&5
15100 ac_hi=`expr '(' $ac_mid ')' - 1`
15101 if test $ac_mid -le $ac_hi; then
15105 ac_mid=`expr 2 '*' $ac_mid`
15107 rm -f conftest.$ac_objext conftest.$ac_ext
15110 echo "$as_me: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15114 rm -f conftest.$ac_objext conftest.$ac_ext
15116 rm -f conftest.$ac_objext conftest.$ac_ext
15117 # Binary search between lo and hi bounds.
15118 while test "x$ac_lo" != "x$ac_hi"; do
15119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15120 cat >conftest.$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15122 #include "confdefs.h"
15123 $ac_includes_default
15124 struct { char filler; long field; } pgac_struct;
15125 #ifdef F77_DUMMY_MAIN
15126 # ifdef __cplusplus
15129 int F77_DUMMY_MAIN() { return 1; }
15134 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15141 rm -f conftest.$ac_objext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15143 (eval $ac_compile) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -s conftest.$ac_objext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15155 echo "$as_me: failed program was:" >&5
15156 cat conftest.$ac_ext >&5
15157 ac_lo=`expr '(' $ac_mid ')' + 1`
15159 rm -f conftest.$ac_objext conftest.$ac_ext
15162 ?*) pgac_cv_alignof_long=$ac_lo;;
15163 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15164 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15165 { (exit 1); exit 1; }; } ;;
15168 if test "$cross_compiling" = yes; then
15169 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15170 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15171 { (exit 1); exit 1; }; }
15173 cat >conftest.$ac_ext <<_ACEOF
15174 #line $LINENO "configure"
15175 #include "confdefs.h"
15176 $ac_includes_default
15177 struct { char filler; long field; } pgac_struct;
15178 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15179 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15181 #include <stdlib.h>
15182 #ifdef F77_DUMMY_MAIN
15183 # ifdef __cplusplus
15186 int F77_DUMMY_MAIN() { return 1; }
15192 FILE *f = fopen ("conftest.val", "w");
15195 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15197 long i = longval ();
15198 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15200 fprintf (f, "%ld\n", i);
15204 unsigned long i = ulongval ();
15205 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15207 fprintf (f, "%lu\n", i);
15209 exit (ferror (f) || fclose (f) != 0);
15215 rm -f conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 pgac_cv_alignof_long=`cat conftest.val`
15228 echo "$as_me: program exited with status $ac_status" >&5
15229 echo "$as_me: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15231 ( exit $ac_status )
15232 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15233 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15234 { (exit 1); exit 1; }; }
15236 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15241 pgac_cv_alignof_long=0
15244 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15245 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15246 cat >>confdefs.h <<_ACEOF
15247 #define ALIGNOF_LONG $pgac_cv_alignof_long
15251 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15252 echo "$as_me:$LINENO: checking for long long int" >&5
15253 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15254 if test "${ac_cv_type_long_long_int+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 cat >conftest.$ac_ext <<_ACEOF
15258 #line $LINENO "configure"
15259 #include "confdefs.h"
15260 $ac_includes_default
15261 #ifdef F77_DUMMY_MAIN
15262 # ifdef __cplusplus
15265 int F77_DUMMY_MAIN() { return 1; }
15270 if ((long long int *) 0)
15272 if (sizeof (long long int))
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 ac_cv_type_long_long_int=yes
15292 echo "$as_me: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 ac_cv_type_long_long_int=no
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15298 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15299 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15301 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15302 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15303 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 if test "$ac_cv_type_long_long_int" = yes; then
15307 if test "$cross_compiling" = yes; then
15308 # Depending upon the size, compute the lo and hi bounds.
15309 cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15311 #include "confdefs.h"
15312 $ac_includes_default
15313 struct { char filler; long long int field; } pgac_struct;
15314 #ifdef F77_DUMMY_MAIN
15315 # ifdef __cplusplus
15318 int F77_DUMMY_MAIN() { return 1; }
15323 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15330 rm -f conftest.$ac_objext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15332 (eval $ac_compile) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15344 cat >conftest.$ac_ext <<_ACEOF
15345 #line $LINENO "configure"
15346 #include "confdefs.h"
15347 $ac_includes_default
15348 struct { char filler; long long int field; } pgac_struct;
15349 #ifdef F77_DUMMY_MAIN
15350 # ifdef __cplusplus
15353 int F77_DUMMY_MAIN() { return 1; }
15358 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15365 rm -f conftest.$ac_objext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367 (eval $ac_compile) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try='test -s conftest.$ac_objext'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15377 ac_hi=$ac_mid; break
15379 echo "$as_me: failed program was:" >&5
15380 cat conftest.$ac_ext >&5
15381 ac_lo=`expr $ac_mid + 1`
15382 if test $ac_lo -le $ac_mid; then
15386 ac_mid=`expr 2 '*' $ac_mid + 1`
15388 rm -f conftest.$ac_objext conftest.$ac_ext
15391 echo "$as_me: failed program was:" >&5
15392 cat conftest.$ac_ext >&5
15393 cat >conftest.$ac_ext <<_ACEOF
15394 #line $LINENO "configure"
15395 #include "confdefs.h"
15396 $ac_includes_default
15397 struct { char filler; long long int field; } pgac_struct;
15398 #ifdef F77_DUMMY_MAIN
15399 # ifdef __cplusplus
15402 int F77_DUMMY_MAIN() { return 1; }
15407 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -s conftest.$ac_objext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15428 cat >conftest.$ac_ext <<_ACEOF
15429 #line $LINENO "configure"
15430 #include "confdefs.h"
15431 $ac_includes_default
15432 struct { char filler; long long int field; } pgac_struct;
15433 #ifdef F77_DUMMY_MAIN
15434 # ifdef __cplusplus
15437 int F77_DUMMY_MAIN() { return 1; }
15442 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15449 rm -f conftest.$ac_objext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451 (eval $ac_compile) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -s conftest.$ac_objext'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_lo=$ac_mid; break
15463 echo "$as_me: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15465 ac_hi=`expr '(' $ac_mid ')' - 1`
15466 if test $ac_mid -le $ac_hi; then
15470 ac_mid=`expr 2 '*' $ac_mid`
15472 rm -f conftest.$ac_objext conftest.$ac_ext
15475 echo "$as_me: failed program was:" >&5
15476 cat conftest.$ac_ext >&5
15479 rm -f conftest.$ac_objext conftest.$ac_ext
15481 rm -f conftest.$ac_objext conftest.$ac_ext
15482 # Binary search between lo and hi bounds.
15483 while test "x$ac_lo" != "x$ac_hi"; do
15484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15485 cat >conftest.$ac_ext <<_ACEOF
15486 #line $LINENO "configure"
15487 #include "confdefs.h"
15488 $ac_includes_default
15489 struct { char filler; long long int field; } pgac_struct;
15490 #ifdef F77_DUMMY_MAIN
15491 # ifdef __cplusplus
15494 int F77_DUMMY_MAIN() { return 1; }
15499 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15506 rm -f conftest.$ac_objext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15520 echo "$as_me: failed program was:" >&5
15521 cat conftest.$ac_ext >&5
15522 ac_lo=`expr '(' $ac_mid ')' + 1`
15524 rm -f conftest.$ac_objext conftest.$ac_ext
15527 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15528 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15529 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15530 { (exit 1); exit 1; }; } ;;
15533 if test "$cross_compiling" = yes; then
15534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15535 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15536 { (exit 1); exit 1; }; }
15538 cat >conftest.$ac_ext <<_ACEOF
15539 #line $LINENO "configure"
15540 #include "confdefs.h"
15541 $ac_includes_default
15542 struct { char filler; long long int field; } pgac_struct;
15543 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15544 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15546 #include <stdlib.h>
15547 #ifdef F77_DUMMY_MAIN
15548 # ifdef __cplusplus
15551 int F77_DUMMY_MAIN() { return 1; }
15557 FILE *f = fopen ("conftest.val", "w");
15560 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15562 long i = longval ();
15563 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15565 fprintf (f, "%ld\n", i);
15569 unsigned long i = ulongval ();
15570 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15572 fprintf (f, "%lu\n", i);
15574 exit (ferror (f) || fclose (f) != 0);
15580 rm -f conftest$ac_exeext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15582 (eval $ac_link) 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 pgac_cv_alignof_long_long_int=`cat conftest.val`
15593 echo "$as_me: program exited with status $ac_status" >&5
15594 echo "$as_me: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 ( exit $ac_status )
15597 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15598 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15599 { (exit 1); exit 1; }; }
15601 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15606 pgac_cv_alignof_long_long_int=0
15609 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15610 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15611 cat >>confdefs.h <<_ACEOF
15612 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15617 echo "$as_me:$LINENO: checking for double" >&5
15618 echo $ECHO_N "checking for double... $ECHO_C" >&6
15619 if test "${ac_cv_type_double+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15623 #line $LINENO "configure"
15624 #include "confdefs.h"
15625 $ac_includes_default
15626 #ifdef F77_DUMMY_MAIN
15627 # ifdef __cplusplus
15630 int F77_DUMMY_MAIN() { return 1; }
15637 if (sizeof (double))
15643 rm -f conftest.$ac_objext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15645 (eval $ac_compile) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -s conftest.$ac_objext'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 ac_cv_type_double=yes
15657 echo "$as_me: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15659 ac_cv_type_double=no
15661 rm -f conftest.$ac_objext conftest.$ac_ext
15663 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15664 echo "${ECHO_T}$ac_cv_type_double" >&6
15666 echo "$as_me:$LINENO: checking alignment of double" >&5
15667 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15668 if test "${pgac_cv_alignof_double+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 if test "$ac_cv_type_double" = yes; then
15672 if test "$cross_compiling" = yes; then
15673 # Depending upon the size, compute the lo and hi bounds.
15674 cat >conftest.$ac_ext <<_ACEOF
15675 #line $LINENO "configure"
15676 #include "confdefs.h"
15677 $ac_includes_default
15678 struct { char filler; double field; } pgac_struct;
15679 #ifdef F77_DUMMY_MAIN
15680 # ifdef __cplusplus
15683 int F77_DUMMY_MAIN() { return 1; }
15688 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15709 cat >conftest.$ac_ext <<_ACEOF
15710 #line $LINENO "configure"
15711 #include "confdefs.h"
15712 $ac_includes_default
15713 struct { char filler; double field; } pgac_struct;
15714 #ifdef F77_DUMMY_MAIN
15715 # ifdef __cplusplus
15718 int F77_DUMMY_MAIN() { return 1; }
15723 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_hi=$ac_mid; break
15744 echo "$as_me: failed program was:" >&5
15745 cat conftest.$ac_ext >&5
15746 ac_lo=`expr $ac_mid + 1`
15747 if test $ac_lo -le $ac_mid; then
15751 ac_mid=`expr 2 '*' $ac_mid + 1`
15753 rm -f conftest.$ac_objext conftest.$ac_ext
15756 echo "$as_me: failed program was:" >&5
15757 cat conftest.$ac_ext >&5
15758 cat >conftest.$ac_ext <<_ACEOF
15759 #line $LINENO "configure"
15760 #include "confdefs.h"
15761 $ac_includes_default
15762 struct { char filler; double field; } pgac_struct;
15763 #ifdef F77_DUMMY_MAIN
15764 # ifdef __cplusplus
15767 int F77_DUMMY_MAIN() { return 1; }
15772 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15779 rm -f conftest.$ac_objext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15781 (eval $ac_compile) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -s conftest.$ac_objext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15793 cat >conftest.$ac_ext <<_ACEOF
15794 #line $LINENO "configure"
15795 #include "confdefs.h"
15796 $ac_includes_default
15797 struct { char filler; double field; } pgac_struct;
15798 #ifdef F77_DUMMY_MAIN
15799 # ifdef __cplusplus
15802 int F77_DUMMY_MAIN() { return 1; }
15807 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
15820 { ac_try='test -s conftest.$ac_objext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 ac_lo=$ac_mid; break
15828 echo "$as_me: failed program was:" >&5
15829 cat conftest.$ac_ext >&5
15830 ac_hi=`expr '(' $ac_mid ')' - 1`
15831 if test $ac_mid -le $ac_hi; then
15835 ac_mid=`expr 2 '*' $ac_mid`
15837 rm -f conftest.$ac_objext conftest.$ac_ext
15840 echo "$as_me: failed program was:" >&5
15841 cat conftest.$ac_ext >&5
15844 rm -f conftest.$ac_objext conftest.$ac_ext
15846 rm -f conftest.$ac_objext conftest.$ac_ext
15847 # Binary search between lo and hi bounds.
15848 while test "x$ac_lo" != "x$ac_hi"; do
15849 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15850 cat >conftest.$ac_ext <<_ACEOF
15851 #line $LINENO "configure"
15852 #include "confdefs.h"
15853 $ac_includes_default
15854 struct { char filler; double field; } pgac_struct;
15855 #ifdef F77_DUMMY_MAIN
15856 # ifdef __cplusplus
15859 int F77_DUMMY_MAIN() { return 1; }
15864 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15871 rm -f conftest.$ac_objext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15873 (eval $ac_compile) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
15877 { ac_try='test -s conftest.$ac_objext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15885 echo "$as_me: failed program was:" >&5
15886 cat conftest.$ac_ext >&5
15887 ac_lo=`expr '(' $ac_mid ')' + 1`
15889 rm -f conftest.$ac_objext conftest.$ac_ext
15892 ?*) pgac_cv_alignof_double=$ac_lo;;
15893 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15894 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15895 { (exit 1); exit 1; }; } ;;
15898 if test "$cross_compiling" = yes; then
15899 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15900 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15901 { (exit 1); exit 1; }; }
15903 cat >conftest.$ac_ext <<_ACEOF
15904 #line $LINENO "configure"
15905 #include "confdefs.h"
15906 $ac_includes_default
15907 struct { char filler; double field; } pgac_struct;
15908 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15909 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15911 #include <stdlib.h>
15912 #ifdef F77_DUMMY_MAIN
15913 # ifdef __cplusplus
15916 int F77_DUMMY_MAIN() { return 1; }
15922 FILE *f = fopen ("conftest.val", "w");
15925 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15927 long i = longval ();
15928 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15930 fprintf (f, "%ld\n", i);
15934 unsigned long i = ulongval ();
15935 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15937 fprintf (f, "%lu\n", i);
15939 exit (ferror (f) || fclose (f) != 0);
15945 rm -f conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 pgac_cv_alignof_double=`cat conftest.val`
15958 echo "$as_me: program exited with status $ac_status" >&5
15959 echo "$as_me: failed program was:" >&5
15960 cat conftest.$ac_ext >&5
15961 ( exit $ac_status )
15962 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15963 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15964 { (exit 1); exit 1; }; }
15966 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15971 pgac_cv_alignof_double=0
15974 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15975 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15976 cat >>confdefs.h <<_ACEOF
15977 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15982 # Compute maximum alignment of any basic type.
15983 # We assume long's alignment is at least as strong as char, short, or int;
15984 # but we must check long long (if it exists) and double.
15986 MAX_ALIGNOF=$pgac_cv_alignof_long
15987 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15988 MAX_ALIGNOF=$pgac_cv_alignof_double
15990 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15991 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15994 cat >>confdefs.h <<_ACEOF
15995 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16000 # Some platforms predefine the types int8, int16, etc. Only check
16001 # a (hopefully) representative subset.
16002 echo "$as_me:$LINENO: checking for int8" >&5
16003 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16004 if test "${ac_cv_type_int8+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 cat >conftest.$ac_ext <<_ACEOF
16008 #line $LINENO "configure"
16009 #include "confdefs.h"
16011 #ifdef HAVE_SUPPORTDEFS_H
16012 #include <SupportDefs.h>
16015 #ifdef F77_DUMMY_MAIN
16016 # ifdef __cplusplus
16019 int F77_DUMMY_MAIN() { return 1; }
16032 rm -f conftest.$ac_objext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16034 (eval $ac_compile) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_type_int8=yes
16046 echo "$as_me: failed program was:" >&5
16047 cat conftest.$ac_ext >&5
16050 rm -f conftest.$ac_objext conftest.$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16053 echo "${ECHO_T}$ac_cv_type_int8" >&6
16054 if test $ac_cv_type_int8 = yes; then
16056 cat >>confdefs.h <<_ACEOF
16057 #define HAVE_INT8 1
16062 echo "$as_me:$LINENO: checking for uint8" >&5
16063 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16064 if test "${ac_cv_type_uint8+set}" = set; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 cat >conftest.$ac_ext <<_ACEOF
16068 #line $LINENO "configure"
16069 #include "confdefs.h"
16071 #ifdef HAVE_SUPPORTDEFS_H
16072 #include <SupportDefs.h>
16075 #ifdef F77_DUMMY_MAIN
16076 # ifdef __cplusplus
16079 int F77_DUMMY_MAIN() { return 1; }
16086 if (sizeof (uint8))
16092 rm -f conftest.$ac_objext
16093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094 (eval $ac_compile) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ac_cv_type_uint8=yes
16106 echo "$as_me: failed program was:" >&5
16107 cat conftest.$ac_ext >&5
16108 ac_cv_type_uint8=no
16110 rm -f conftest.$ac_objext conftest.$ac_ext
16112 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16113 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16114 if test $ac_cv_type_uint8 = yes; then
16116 cat >>confdefs.h <<_ACEOF
16117 #define HAVE_UINT8 1
16122 echo "$as_me:$LINENO: checking for int64" >&5
16123 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16124 if test "${ac_cv_type_int64+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 cat >conftest.$ac_ext <<_ACEOF
16128 #line $LINENO "configure"
16129 #include "confdefs.h"
16131 #ifdef HAVE_SUPPORTDEFS_H
16132 #include <SupportDefs.h>
16135 #ifdef F77_DUMMY_MAIN
16136 # ifdef __cplusplus
16139 int F77_DUMMY_MAIN() { return 1; }
16146 if (sizeof (int64))
16152 rm -f conftest.$ac_objext
16153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16154 (eval $ac_compile) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try='test -s conftest.$ac_objext'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 ac_cv_type_int64=yes
16166 echo "$as_me: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 ac_cv_type_int64=no
16170 rm -f conftest.$ac_objext conftest.$ac_ext
16172 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16173 echo "${ECHO_T}$ac_cv_type_int64" >&6
16174 if test $ac_cv_type_int64 = yes; then
16176 cat >>confdefs.h <<_ACEOF
16177 #define HAVE_INT64 1
16182 echo "$as_me:$LINENO: checking for uint64" >&5
16183 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16184 if test "${ac_cv_type_uint64+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 cat >conftest.$ac_ext <<_ACEOF
16188 #line $LINENO "configure"
16189 #include "confdefs.h"
16191 #ifdef HAVE_SUPPORTDEFS_H
16192 #include <SupportDefs.h>
16195 #ifdef F77_DUMMY_MAIN
16196 # ifdef __cplusplus
16199 int F77_DUMMY_MAIN() { return 1; }
16206 if (sizeof (uint64))
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_cv_type_uint64=yes
16226 echo "$as_me: failed program was:" >&5
16227 cat conftest.$ac_ext >&5
16228 ac_cv_type_uint64=no
16230 rm -f conftest.$ac_objext conftest.$ac_ext
16232 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16233 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16234 if test $ac_cv_type_uint64 = yes; then
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_UINT64 1
16244 # We also check for sig_atomic_t, which *should* be defined per ANSI
16245 # C, but is missing on some old platforms.
16246 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16247 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16248 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 cat >conftest.$ac_ext <<_ACEOF
16252 #line $LINENO "configure"
16253 #include "confdefs.h"
16254 #include <signal.h>
16256 #ifdef F77_DUMMY_MAIN
16257 # ifdef __cplusplus
16260 int F77_DUMMY_MAIN() { return 1; }
16265 if ((sig_atomic_t *) 0)
16267 if (sizeof (sig_atomic_t))
16273 rm -f conftest.$ac_objext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16275 (eval $ac_compile) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_cv_type_sig_atomic_t=yes
16287 echo "$as_me: failed program was:" >&5
16288 cat conftest.$ac_ext >&5
16289 ac_cv_type_sig_atomic_t=no
16291 rm -f conftest.$ac_objext conftest.$ac_ext
16293 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16294 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16295 if test $ac_cv_type_sig_atomic_t = yes; then
16297 cat >>confdefs.h <<_ACEOF
16298 #define HAVE_SIG_ATOMIC_T 1
16306 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16307 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16308 if test "${pgac_cv_func_posix_signals+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 cat >conftest.$ac_ext <<_ACEOF
16312 #line $LINENO "configure"
16313 #include "confdefs.h"
16314 #include <signal.h>
16316 #ifdef F77_DUMMY_MAIN
16317 # ifdef __cplusplus
16320 int F77_DUMMY_MAIN() { return 1; }
16325 struct sigaction act, oact;
16326 sigemptyset(&act.sa_mask);
16327 act.sa_flags = SA_RESTART;
16328 sigaction(0, &act, &oact);
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335 (eval $ac_link) 2>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -s conftest$ac_exeext'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 pgac_cv_func_posix_signals=yes
16347 echo "$as_me: failed program was:" >&5
16348 cat conftest.$ac_ext >&5
16349 pgac_cv_func_posix_signals=no
16351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16353 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16354 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16355 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16357 cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_POSIX_SIGNALS
16362 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16364 if test $ac_cv_func_fseeko = yes; then
16365 # Check whether --enable-largefile or --disable-largefile was given.
16366 if test "${enable_largefile+set}" = set; then
16367 enableval="$enable_largefile"
16370 if test "$enable_largefile" != no; then
16372 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16373 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16374 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 ac_cv_sys_largefile_CC=no
16378 if test "$GCC" != yes; then
16381 # IRIX 6.2 and later do not support large files by default,
16382 # so use the C compiler's -n32 option if that helps.
16383 cat >conftest.$ac_ext <<_ACEOF
16384 #line $LINENO "configure"
16385 #include "confdefs.h"
16386 #include <sys/types.h>
16387 /* Check that off_t can represent 2**63 - 1 correctly.
16388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16389 since some C++ compilers masquerading as C compilers
16390 incorrectly reject 9223372036854775807. */
16391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16393 && LARGE_OFF_T % 2147483647 == 1)
16395 #ifdef F77_DUMMY_MAIN
16396 # ifdef __cplusplus
16399 int F77_DUMMY_MAIN() { return 1; }
16409 rm -f conftest.$ac_objext
16410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16411 (eval $ac_compile) 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16423 echo "$as_me: failed program was:" >&5
16424 cat conftest.$ac_ext >&5
16426 rm -f conftest.$ac_objext
16428 rm -f conftest.$ac_objext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -s conftest.$ac_objext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_cv_sys_largefile_CC=' -n32'; break
16442 echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16445 rm -f conftest.$ac_objext
16449 rm -f conftest.$ac_ext
16452 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16453 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16454 if test "$ac_cv_sys_largefile_CC" != no; then
16455 CC=$CC$ac_cv_sys_largefile_CC
16458 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16459 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16460 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 ac_cv_sys_file_offset_bits=no
16465 cat >conftest.$ac_ext <<_ACEOF
16466 #line $LINENO "configure"
16467 #include "confdefs.h"
16468 #include <sys/types.h>
16469 /* Check that off_t can represent 2**63 - 1 correctly.
16470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16471 since some C++ compilers masquerading as C compilers
16472 incorrectly reject 9223372036854775807. */
16473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16475 && LARGE_OFF_T % 2147483647 == 1)
16477 #ifdef F77_DUMMY_MAIN
16478 # ifdef __cplusplus
16481 int F77_DUMMY_MAIN() { return 1; }
16491 rm -f conftest.$ac_objext
16492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16493 (eval $ac_compile) 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try='test -s conftest.$ac_objext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16505 echo "$as_me: failed program was:" >&5
16506 cat conftest.$ac_ext >&5
16508 rm -f conftest.$ac_objext conftest.$ac_ext
16509 cat >conftest.$ac_ext <<_ACEOF
16510 #line $LINENO "configure"
16511 #include "confdefs.h"
16512 #define _FILE_OFFSET_BITS 64
16513 #include <sys/types.h>
16514 /* Check that off_t can represent 2**63 - 1 correctly.
16515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16516 since some C++ compilers masquerading as C compilers
16517 incorrectly reject 9223372036854775807. */
16518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16520 && LARGE_OFF_T % 2147483647 == 1)
16522 #ifdef F77_DUMMY_MAIN
16523 # ifdef __cplusplus
16526 int F77_DUMMY_MAIN() { return 1; }
16536 rm -f conftest.$ac_objext
16537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16538 (eval $ac_compile) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -s conftest.$ac_objext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_cv_sys_file_offset_bits=64; break
16550 echo "$as_me: failed program was:" >&5
16551 cat conftest.$ac_ext >&5
16553 rm -f conftest.$ac_objext conftest.$ac_ext
16557 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16558 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16559 if test "$ac_cv_sys_file_offset_bits" != no; then
16561 cat >>confdefs.h <<_ACEOF
16562 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16567 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16568 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16569 if test "${ac_cv_sys_large_files+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 ac_cv_sys_large_files=no
16574 cat >conftest.$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16576 #include "confdefs.h"
16577 #include <sys/types.h>
16578 /* Check that off_t can represent 2**63 - 1 correctly.
16579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16580 since some C++ compilers masquerading as C compilers
16581 incorrectly reject 9223372036854775807. */
16582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16584 && LARGE_OFF_T % 2147483647 == 1)
16586 #ifdef F77_DUMMY_MAIN
16587 # ifdef __cplusplus
16590 int F77_DUMMY_MAIN() { return 1; }
16600 rm -f conftest.$ac_objext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16602 (eval $ac_compile) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16614 echo "$as_me: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16617 rm -f conftest.$ac_objext conftest.$ac_ext
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 #include "confdefs.h"
16621 #define _LARGE_FILES 1
16622 #include <sys/types.h>
16623 /* Check that off_t can represent 2**63 - 1 correctly.
16624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16625 since some C++ compilers masquerading as C compilers
16626 incorrectly reject 9223372036854775807. */
16627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16629 && LARGE_OFF_T % 2147483647 == 1)
16631 #ifdef F77_DUMMY_MAIN
16632 # ifdef __cplusplus
16635 int F77_DUMMY_MAIN() { return 1; }
16645 rm -f conftest.$ac_objext
16646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16647 (eval $ac_compile) 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_cv_sys_large_files=1; break
16659 echo "$as_me: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16662 rm -f conftest.$ac_objext conftest.$ac_ext
16666 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16667 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16668 if test "$ac_cv_sys_large_files" != no; then
16670 cat >>confdefs.h <<_ACEOF
16671 #define _LARGE_FILES $ac_cv_sys_large_files
16681 # Select semaphore implementation type.
16682 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16684 cat >>confdefs.h <<\_ACEOF
16685 #define USE_NAMED_POSIX_SEMAPHORES 1
16688 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16690 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16692 cat >>confdefs.h <<\_ACEOF
16693 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16696 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16699 cat >>confdefs.h <<\_ACEOF
16700 #define USE_SYSV_SEMAPHORES 1
16703 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16708 # Select shared-memory implementation type.
16710 cat >>confdefs.h <<\_ACEOF
16711 #define USE_SYSV_SHARED_MEMORY 1
16714 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16717 if test "$enable_nls" = yes ; then
16719 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16720 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16721 if test "${ac_cv_search_gettext+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 ac_func_search_save_LIBS=$LIBS
16725 ac_cv_search_gettext=no
16726 cat >conftest.$ac_ext <<_ACEOF
16727 #line $LINENO "configure"
16728 #include "confdefs.h"
16730 /* Override any gcc2 internal prototype to avoid an error. */
16734 /* We use char because int might match the return type of a gcc2
16735 builtin and then its argument prototype would still apply. */
16737 #ifdef F77_DUMMY_MAIN
16738 # ifdef __cplusplus
16741 int F77_DUMMY_MAIN() { return 1; }
16751 rm -f conftest.$ac_objext conftest$ac_exeext
16752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16753 (eval $ac_link) 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -s conftest$ac_exeext'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_search_gettext="none required"
16765 echo "$as_me: failed program was:" >&5
16766 cat conftest.$ac_ext >&5
16768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16769 if test "$ac_cv_search_gettext" = no; then
16770 for ac_lib in intl; do
16771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16772 cat >conftest.$ac_ext <<_ACEOF
16773 #line $LINENO "configure"
16774 #include "confdefs.h"
16776 /* Override any gcc2 internal prototype to avoid an error. */
16780 /* We use char because int might match the return type of a gcc2
16781 builtin and then its argument prototype would still apply. */
16783 #ifdef F77_DUMMY_MAIN
16784 # ifdef __cplusplus
16787 int F77_DUMMY_MAIN() { return 1; }
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16799 (eval $ac_link) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -s conftest$ac_exeext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_search_gettext="-l$ac_lib"
16812 echo "$as_me: failed program was:" >&5
16813 cat conftest.$ac_ext >&5
16815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16818 LIBS=$ac_func_search_save_LIBS
16820 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16821 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16822 if test "$ac_cv_search_gettext" != no; then
16823 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16826 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16827 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16828 { (exit 1); exit 1; }; }
16831 if test "${ac_cv_header_libintl_h+set}" = set; then
16832 echo "$as_me:$LINENO: checking for libintl.h" >&5
16833 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16834 if test "${ac_cv_header_libintl_h+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16838 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16840 # Is the header compilable?
16841 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16842 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16843 cat >conftest.$ac_ext <<_ACEOF
16844 #line $LINENO "configure"
16845 #include "confdefs.h"
16846 $ac_includes_default
16847 #include <libintl.h>
16849 rm -f conftest.$ac_objext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851 (eval $ac_compile) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_header_compiler=yes
16863 echo "$as_me: failed program was:" >&5
16864 cat conftest.$ac_ext >&5
16865 ac_header_compiler=no
16867 rm -f conftest.$ac_objext conftest.$ac_ext
16868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16869 echo "${ECHO_T}$ac_header_compiler" >&6
16871 # Is the header present?
16872 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16873 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16874 cat >conftest.$ac_ext <<_ACEOF
16875 #line $LINENO "configure"
16876 #include "confdefs.h"
16877 #include <libintl.h>
16879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16882 egrep -v '^ *\+' conftest.er1 >conftest.err
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } >/dev/null; then
16887 if test -s conftest.err; then
16888 ac_cpp_err=$ac_c_preproc_warn_flag
16895 if test -z "$ac_cpp_err"; then
16896 ac_header_preproc=yes
16898 echo "$as_me: failed program was:" >&5
16899 cat conftest.$ac_ext >&5
16900 ac_header_preproc=no
16902 rm -f conftest.err conftest.$ac_ext
16903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16904 echo "${ECHO_T}$ac_header_preproc" >&6
16906 # So? What about this header?
16907 case $ac_header_compiler:$ac_header_preproc in
16909 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16910 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16912 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16914 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16915 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16917 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16919 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16921 echo "$as_me:$LINENO: checking for libintl.h" >&5
16922 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16923 if test "${ac_cv_header_libintl_h+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 ac_cv_header_libintl_h=$ac_header_preproc
16928 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16929 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16932 if test $ac_cv_header_libintl_h = yes; then
16935 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16936 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16937 { (exit 1); exit 1; }; }
16941 for ac_prog in msgfmt
16943 # Extract the first word of "$ac_prog", so it can be a program name with args.
16944 set dummy $ac_prog; ac_word=$2
16945 echo "$as_me:$LINENO: checking for $ac_word" >&5
16946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16947 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 if test -n "$MSGFMT"; then
16951 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16957 test -z "$as_dir" && as_dir=.
16958 for ac_exec_ext in '' $ac_executable_extensions; do
16959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16960 ac_cv_prog_MSGFMT="$ac_prog"
16961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16969 MSGFMT=$ac_cv_prog_MSGFMT
16970 if test -n "$MSGFMT"; then
16971 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16972 echo "${ECHO_T}$MSGFMT" >&6
16974 echo "$as_me:$LINENO: result: no" >&5
16975 echo "${ECHO_T}no" >&6
16978 test -n "$MSGFMT" && break
16981 if test -z "$MSGFMT"; then
16982 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16983 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16984 { (exit 1); exit 1; }; }
16986 for ac_prog in msgmerge
16988 # Extract the first word of "$ac_prog", so it can be a program name with args.
16989 set dummy $ac_prog; ac_word=$2
16990 echo "$as_me:$LINENO: checking for $ac_word" >&5
16991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16992 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 if test -n "$MSGMERGE"; then
16996 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16999 for as_dir in $PATH
17002 test -z "$as_dir" && as_dir=.
17003 for ac_exec_ext in '' $ac_executable_extensions; do
17004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17005 ac_cv_prog_MSGMERGE="$ac_prog"
17006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17014 MSGMERGE=$ac_cv_prog_MSGMERGE
17015 if test -n "$MSGMERGE"; then
17016 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17017 echo "${ECHO_T}$MSGMERGE" >&6
17019 echo "$as_me:$LINENO: result: no" >&5
17020 echo "${ECHO_T}no" >&6
17023 test -n "$MSGMERGE" && break
17026 for ac_prog in xgettext
17028 # Extract the first word of "$ac_prog", so it can be a program name with args.
17029 set dummy $ac_prog; ac_word=$2
17030 echo "$as_me:$LINENO: checking for $ac_word" >&5
17031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17032 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 if test -n "$XGETTEXT"; then
17036 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17039 for as_dir in $PATH
17042 test -z "$as_dir" && as_dir=.
17043 for ac_exec_ext in '' $ac_executable_extensions; do
17044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17045 ac_cv_prog_XGETTEXT="$ac_prog"
17046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17054 XGETTEXT=$ac_cv_prog_XGETTEXT
17055 if test -n "$XGETTEXT"; then
17056 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17057 echo "${ECHO_T}$XGETTEXT" >&6
17059 echo "$as_me:$LINENO: result: no" >&5
17060 echo "${ECHO_T}no" >&6
17063 test -n "$XGETTEXT" && break
17067 # Note: share/locale is always the default, independent of $datadir
17068 localedir='${prefix}/share/locale'
17069 if test x"$prefix" = x"NONE"; then
17070 exp_localedir="$ac_default_prefix/share/locale"
17072 exp_localedir="$prefix/share/locale"
17077 cat >>confdefs.h <<_ACEOF
17078 #define LOCALEDIR "$exp_localedir"
17084 # Check for Tcl configuration script tclConfig.sh
17085 if test "$with_tcl" = yes; then
17086 for ac_prog in tclsh tcl
17088 # Extract the first word of "$ac_prog", so it can be a program name with args.
17089 set dummy $ac_prog; ac_word=$2
17090 echo "$as_me:$LINENO: checking for $ac_word" >&5
17091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17092 if test "${ac_cv_path_TCLSH+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17101 for as_dir in $PATH
17104 test -z "$as_dir" && as_dir=.
17105 for ac_exec_ext in '' $ac_executable_extensions; do
17106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17107 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17117 TCLSH=$ac_cv_path_TCLSH
17119 if test -n "$TCLSH"; then
17120 echo "$as_me:$LINENO: result: $TCLSH" >&5
17121 echo "${ECHO_T}$TCLSH" >&6
17123 echo "$as_me:$LINENO: result: no" >&5
17124 echo "${ECHO_T}no" >&6
17127 test -n "$TCLSH" && break
17130 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17131 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17132 # Let user override test
17133 if test -z "$TCL_CONFIG_SH"; then
17134 pgac_test_dirs="$with_tclconfig"
17136 set X $pgac_test_dirs; shift
17137 if test $# -eq 0; then
17138 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17139 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17140 { (exit 1); exit 1; }; }
17141 set X `echo 'puts $auto_path' | $TCLSH`; shift
17145 if test -r "$pgac_dir/tclConfig.sh"; then
17146 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17152 if test -z "$TCL_CONFIG_SH"; then
17153 echo "$as_me:$LINENO: result: no" >&5
17154 echo "${ECHO_T}no" >&6
17155 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17156 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17157 { (exit 1); exit 1; }; }
17159 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17160 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17166 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17167 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17168 eval TCL_LIBS=\"$TCL_LIBS\"
17169 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17170 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17174 # Check for Tk configuration script tkConfig.sh
17175 if test "$with_tk" = yes; then
17176 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17177 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17178 # Let user override test
17179 if test -z "$TK_CONFIG_SH"; then
17180 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17182 set X $pgac_test_dirs; shift
17183 if test $# -eq 0; then
17184 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17185 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17186 { (exit 1); exit 1; }; }
17187 set X `echo 'puts $auto_path' | $TCLSH`; shift
17191 if test -r "$pgac_dir/tkConfig.sh"; then
17192 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17198 if test -z "$TK_CONFIG_SH"; then
17199 echo "$as_me:$LINENO: result: no" >&5
17200 echo "${ECHO_T}no" >&6
17201 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17202 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17203 { (exit 1); exit 1; }; }
17205 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17206 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17212 eval TK_LIBS=\"$TK_LIBS\"
17213 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17214 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17220 # Check for DocBook and tools
17222 for ac_prog in onsgmls nsgmls
17224 # Extract the first word of "$ac_prog", so it can be a program name with args.
17225 set dummy $ac_prog; ac_word=$2
17226 echo "$as_me:$LINENO: checking for $ac_word" >&5
17227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17228 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 if test -n "$NSGMLS"; then
17232 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17235 for as_dir in $PATH
17238 test -z "$as_dir" && as_dir=.
17239 for ac_exec_ext in '' $ac_executable_extensions; do
17240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17241 ac_cv_prog_NSGMLS="$ac_prog"
17242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17250 NSGMLS=$ac_cv_prog_NSGMLS
17251 if test -n "$NSGMLS"; then
17252 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17253 echo "${ECHO_T}$NSGMLS" >&6
17255 echo "$as_me:$LINENO: result: no" >&5
17256 echo "${ECHO_T}no" >&6
17259 test -n "$NSGMLS" && break
17262 for ac_prog in openjade jade
17264 # Extract the first word of "$ac_prog", so it can be a program name with args.
17265 set dummy $ac_prog; ac_word=$2
17266 echo "$as_me:$LINENO: checking for $ac_word" >&5
17267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17268 if test "${ac_cv_prog_JADE+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 if test -n "$JADE"; then
17272 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17275 for as_dir in $PATH
17278 test -z "$as_dir" && as_dir=.
17279 for ac_exec_ext in '' $ac_executable_extensions; do
17280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17281 ac_cv_prog_JADE="$ac_prog"
17282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17290 JADE=$ac_cv_prog_JADE
17291 if test -n "$JADE"; then
17292 echo "$as_me:$LINENO: result: $JADE" >&5
17293 echo "${ECHO_T}$JADE" >&6
17295 echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6
17299 test -n "$JADE" && break
17303 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17304 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17305 if test "${pgac_cv_check_docbook+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 cat >conftest.sgml <<EOF
17309 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17311 <title>test</title>
17313 <title>random</title>
17315 <title>testsect</title>
17322 pgac_cv_check_docbook=no
17324 if test -n "$NSGMLS"; then
17325 $NSGMLS -s conftest.sgml 1>&5 2>&1
17326 if test $? -eq 0; then
17327 pgac_cv_check_docbook=yes
17330 rm -f conftest.sgml
17332 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17333 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17335 have_docbook=$pgac_cv_check_docbook
17338 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17339 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17340 if test "${pgac_cv_path_stylesheets+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 if test -n "$DOCBOOKSTYLE"; then
17344 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17346 for pgac_prefix in /usr /usr/local /opt; do
17347 for pgac_infix in share lib; do
17348 for pgac_postfix in \
17349 sgml/stylesheets/nwalsh-modular \
17350 sgml/stylesheets/docbook \
17351 sgml/docbook-dsssl \
17352 sgml/docbook/dsssl/modular \
17353 sgml/docbook/stylesheet/dsssl/modular \
17354 sgml/docbook/dsssl-stylesheets
17356 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17357 if test -r "$pgac_candidate/html/docbook.dsl" \
17358 && test -r "$pgac_candidate/print/docbook.dsl"
17360 pgac_cv_path_stylesheets=$pgac_candidate
17369 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17371 if test -n "$DOCBOOKSTYLE"; then
17372 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17373 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17375 echo "$as_me:$LINENO: result: no" >&5
17376 echo "${ECHO_T}no" >&6
17378 if test -n "$DOCBOOKSTYLE"; then
17379 for ac_prog in collateindex.pl
17381 # Extract the first word of "$ac_prog", so it can be a program name with args.
17382 set dummy $ac_prog; ac_word=$2
17383 echo "$as_me:$LINENO: checking for $ac_word" >&5
17384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17385 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 case $COLLATEINDEX in
17390 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17394 for as_dir in $DOCBOOKSTYLE/bin $PATH
17397 test -z "$as_dir" && as_dir=.
17398 for ac_exec_ext in '' $ac_executable_extensions; do
17399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17400 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17410 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17412 if test -n "$COLLATEINDEX"; then
17413 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17414 echo "${ECHO_T}$COLLATEINDEX" >&6
17416 echo "$as_me:$LINENO: result: no" >&5
17417 echo "${ECHO_T}no" >&6
17420 test -n "$COLLATEINDEX" && break
17424 for ac_prog in collateindex.pl
17426 # Extract the first word of "$ac_prog", so it can be a program name with args.
17427 set dummy $ac_prog; ac_word=$2
17428 echo "$as_me:$LINENO: checking for $ac_word" >&5
17429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17430 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 case $COLLATEINDEX in
17435 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439 for as_dir in $PATH
17442 test -z "$as_dir" && as_dir=.
17443 for ac_exec_ext in '' $ac_executable_extensions; do
17444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17445 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17455 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17457 if test -n "$COLLATEINDEX"; then
17458 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17459 echo "${ECHO_T}$COLLATEINDEX" >&6
17461 echo "$as_me:$LINENO: result: no" >&5
17462 echo "${ECHO_T}no" >&6
17465 test -n "$COLLATEINDEX" && break
17469 for ac_prog in sgmlspl
17471 # Extract the first word of "$ac_prog", so it can be a program name with args.
17472 set dummy $ac_prog; ac_word=$2
17473 echo "$as_me:$LINENO: checking for $ac_word" >&5
17474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17475 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 if test -n "$SGMLSPL"; then
17479 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17482 for as_dir in $PATH
17485 test -z "$as_dir" && as_dir=.
17486 for ac_exec_ext in '' $ac_executable_extensions; do
17487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17488 ac_cv_prog_SGMLSPL="$ac_prog"
17489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17497 SGMLSPL=$ac_cv_prog_SGMLSPL
17498 if test -n "$SGMLSPL"; then
17499 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17500 echo "${ECHO_T}$SGMLSPL" >&6
17502 echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6
17506 test -n "$SGMLSPL" && break
17511 # prepare build tree if outside source tree
17512 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17513 # Note 2: /bin/pwd might be better than shell's built-in at getting
17514 # a symlink-free name.
17515 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17519 if test "$no_create" != yes; then
17520 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17521 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17522 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17523 || { { echo "$as_me:$LINENO: error: failed" >&5
17524 echo "$as_me: error: failed" >&2;}
17525 { (exit 1); exit 1; }; }
17526 echo "$as_me:$LINENO: result: done" >&5
17527 echo "${ECHO_T}done" >&6
17533 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17536 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}"
17539 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17542 cat >confcache <<\_ACEOF
17543 # This file is a shell script that caches the results of configure
17544 # tests run on this system so they can be shared between configure
17545 # scripts and configure runs, see configure's option --config-cache.
17546 # It is not useful on other systems. If it contains results you don't
17547 # want to keep, you may remove or edit it.
17549 # config.status only pays attention to the cache file if you give it
17550 # the --recheck option to rerun configure.
17552 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17554 # following values.
17558 # The following way of writing the cache mishandles newlines in values,
17559 # but we know of no workaround that is simple, portable, and efficient.
17560 # So, don't put newlines in cache variables' values.
17561 # Ultrix sh set writes to stderr and can't be redirected directly,
17562 # and sets the high bit in the cache file unless we assign to the vars.
17565 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17567 # `set' does not quote correctly, so add quotes (double-quote
17568 # substitution turns \\\\ into \\, and sed turns \\ into \).
17571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17574 # `set' quotes correctly as required by POSIX, so do not add quotes.
17576 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17585 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17587 if cmp -s $cache_file confcache; then :; else
17588 if test -w $cache_file; then
17589 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17590 cat confcache >$cache_file
17592 echo "not updating unwritable cache $cache_file"
17597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17598 # Let make expand exec_prefix.
17599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17603 # trailing colons and then remove the whole line if VPATH becomes empty
17604 # (actually we leave an empty line to preserve line numbers).
17605 if test "x$srcdir" = x.; then
17606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17607 s/:*\$(srcdir):*/:/;
17608 s/:*\${srcdir}:*/:/;
17610 s/^\([^=]*=[ ]*\):*/\1/;
17616 DEFS=-DHAVE_CONFIG_H
17619 : ${CONFIG_STATUS=./config.status}
17620 ac_clean_files_save=$ac_clean_files
17621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17622 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17623 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17624 cat >$CONFIG_STATUS <<_ACEOF
17626 # Generated by $as_me.
17627 # Run this file to recreate the current configuration.
17628 # Compiler output produced by configure, useful for debugging
17629 # configure, is in config.log if it exists.
17632 SHELL=\${CONFIG_SHELL-$SHELL}
17635 cat >>$CONFIG_STATUS <<\_ACEOF
17637 ## --------------------- ##
17638 ## M4sh Initialization. ##
17639 ## --------------------- ##
17641 # Be Bourne compatible
17642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17645 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17650 # Support unset when possible.
17651 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17657 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17658 { $as_unset LANG || test "${LANG+set}" != set; } ||
17659 { LANG=C; export LANG; }
17660 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17661 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17662 { LC_ALL=C; export LC_ALL; }
17663 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17664 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17665 { LC_TIME=C; export LC_TIME; }
17666 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17667 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17668 { LC_CTYPE=C; export LC_CTYPE; }
17669 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17670 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17671 { LANGUAGE=C; export LANGUAGE; }
17672 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17673 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17674 { LC_COLLATE=C; export LC_COLLATE; }
17675 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17676 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17677 { LC_NUMERIC=C; export LC_NUMERIC; }
17678 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17679 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17680 { LC_MESSAGES=C; export LC_MESSAGES; }
17683 # Name of the executable.
17684 as_me=`(basename "$0") 2>/dev/null ||
17685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17686 X"$0" : 'X\(//\)$' \| \
17687 X"$0" : 'X\(/\)$' \| \
17688 . : '\(.\)' 2>/dev/null ||
17690 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17691 /^X\/\(\/\/\)$/{ s//\1/; q; }
17692 /^X\/\(\/\).*/{ s//\1/; q; }
17695 # PATH needs CR, and LINENO needs CR and PATH.
17696 # Avoid depending upon Character Ranges.
17697 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17698 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17699 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17700 as_cr_digits='0123456789'
17701 as_cr_alnum=$as_cr_Letters$as_cr_digits
17703 # The user is always right.
17704 if test "${PATH_SEPARATOR+set}" != set; then
17705 echo "#! /bin/sh" >conftest.sh
17706 echo "exit 0" >>conftest.sh
17707 chmod +x conftest.sh
17708 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17717 as_lineno_1=$LINENO
17718 as_lineno_2=$LINENO
17719 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17720 test "x$as_lineno_1" != "x$as_lineno_2" &&
17721 test "x$as_lineno_3" = "x$as_lineno_2" || {
17722 # Find who we are. Look in the path if we contain no path at all
17725 *[\\/]* ) as_myself=$0 ;;
17726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17727 for as_dir in $PATH
17730 test -z "$as_dir" && as_dir=.
17731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17736 # We did not find ourselves, most probably we were run as `sh COMMAND'
17737 # in which case we are not to be found in the path.
17738 if test "x$as_myself" = x; then
17741 if test ! -f "$as_myself"; then
17742 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17743 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17744 { (exit 1); exit 1; }; }
17746 case $CONFIG_SHELL in
17748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17752 test -z "$as_dir" && as_dir=.
17753 for as_base in sh bash ksh sh5; do
17756 if ("$as_dir/$as_base" -c '
17757 as_lineno_1=$LINENO
17758 as_lineno_2=$LINENO
17759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17760 test "x$as_lineno_1" != "x$as_lineno_2" &&
17761 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17762 CONFIG_SHELL=$as_dir/$as_base
17763 export CONFIG_SHELL
17764 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17772 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17773 # uniformly replaced by the line number. The first 'sed' inserts a
17774 # line-number line before each line; the second 'sed' does the real
17775 # work. The second script uses 'N' to pair each line-number line
17776 # with the numbered line, and appends trailing '-' during
17777 # substitution so that $LINENO is not a special case at line end.
17778 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17779 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17780 sed '=' <$as_myself |
17785 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17788 s,^['$as_cr_digits']*\n,,
17789 ' >$as_me.lineno &&
17790 chmod +x $as_me.lineno ||
17791 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17792 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17793 { (exit 1); exit 1; }; }
17795 # Don't try to exec as it changes $[0], causing all sort of problems
17796 # (the dirname of $[0] is not the place where we might find the
17797 # original and so on. Autoconf is especially sensible to this).
17799 # Exit status is that of the last command.
17804 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17805 *c*,-n*) ECHO_N= ECHO_C='
17807 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17808 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17811 if expr a : '\(a\)' >/dev/null 2>&1; then
17817 rm -f conf$$ conf$$.exe conf$$.file
17819 if ln -s conf$$.file conf$$ 2>/dev/null; then
17820 # We could just check for DJGPP; but this test a) works b) is more generic
17821 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17822 if test -f conf$$.exe; then
17823 # Don't use ln at all; we don't have any links
17828 elif ln conf$$.file conf$$ 2>/dev/null; then
17833 rm -f conf$$ conf$$.exe conf$$.file
17835 as_executable_p="test -f"
17837 # Sed expression to map a string onto a valid CPP name.
17838 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17840 # Sed expression to map a string onto a valid variable name.
17841 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17845 # We need space, tab and new line, in precisely that order.
17851 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17855 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17856 # report actual input values of CONFIG_FILES etc. instead of their
17857 # values after options handling. Logging --version etc. is OK.
17861 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17862 ## Running $as_me. ##
17867 This file was extended by PostgreSQL $as_me 7.5devel, which was
17868 generated by GNU Autoconf 2.53. Invocation command line was
17870 CONFIG_FILES = $CONFIG_FILES
17871 CONFIG_HEADERS = $CONFIG_HEADERS
17872 CONFIG_LINKS = $CONFIG_LINKS
17873 CONFIG_COMMANDS = $CONFIG_COMMANDS
17877 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17881 # Files that config.status was made for.
17882 if test -n "$ac_config_files"; then
17883 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17886 if test -n "$ac_config_headers"; then
17887 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17890 if test -n "$ac_config_links"; then
17891 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17894 if test -n "$ac_config_commands"; then
17895 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17898 cat >>$CONFIG_STATUS <<\_ACEOF
17901 \`$as_me' instantiates files from templates according to the
17902 current configuration.
17904 Usage: $0 [OPTIONS] [FILE]...
17906 -h, --help print this help, then exit
17907 -V, --version print version number, then exit
17908 -d, --debug don't remove temporary files
17909 --recheck update $as_me by reconfiguring in the same conditions
17910 --file=FILE[:TEMPLATE]
17911 instantiate the configuration file FILE
17912 --header=FILE[:TEMPLATE]
17913 instantiate the configuration header FILE
17915 Configuration files:
17918 Configuration headers:
17921 Configuration links:
17924 Report bugs to <bug-autoconf@gnu.org>."
17927 cat >>$CONFIG_STATUS <<_ACEOF
17929 PostgreSQL config.status 7.5devel
17930 configured by $0, generated by GNU Autoconf 2.53,
17931 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17933 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17934 Free Software Foundation, Inc.
17935 This config.status script is free software; the Free Software Foundation
17936 gives unlimited permission to copy, distribute and modify it."
17940 cat >>$CONFIG_STATUS <<\_ACEOF
17941 # If no file are specified by the user, then we need to provide default
17942 # value. By we need to know if files were specified by the user.
17948 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17949 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17951 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17955 *) # This is not an option, so the user has probably given explicit
17957 ac_need_defaults=false;;
17961 # Handling of the options.
17963 cat >>$CONFIG_STATUS <<_ACEOF
17964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17965 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17966 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17968 cat >>$CONFIG_STATUS <<\_ACEOF
17969 --version | --vers* | -V )
17970 echo "$ac_cs_version"; exit 0 ;;
17972 # Conflict between --help and --header
17973 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17974 Try \`$0 --help' for more information." >&5
17975 echo "$as_me: error: ambiguous option: $1
17976 Try \`$0 --help' for more information." >&2;}
17977 { (exit 1); exit 1; }; };;
17978 --help | --hel | -h )
17979 echo "$ac_cs_usage"; exit 0 ;;
17980 --debug | --d* | -d )
17982 --file | --fil | --fi | --f )
17984 CONFIG_FILES="$CONFIG_FILES $1"
17985 ac_need_defaults=false;;
17986 --header | --heade | --head | --hea )
17988 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17989 ac_need_defaults=false;;
17991 # This is an error.
17992 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17993 Try \`$0 --help' for more information." >&5
17994 echo "$as_me: error: unrecognized option: $1
17995 Try \`$0 --help' for more information." >&2;}
17996 { (exit 1); exit 1; }; } ;;
17998 *) ac_config_targets="$ac_config_targets $1" ;;
18010 cat >>$CONFIG_STATUS <<\_ACEOF
18011 for ac_config_target in $ac_config_targets
18013 case "$ac_config_target" in
18014 # Handling of arguments.
18015 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18016 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18017 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18018 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18019 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18020 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18021 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18022 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18023 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18024 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18025 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18026 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18027 { (exit 1); exit 1; }; };;
18031 # If the user did not use the arguments to specify the items to instantiate,
18032 # then the envvar interface is used. Set only those that are not.
18033 # We use the long form for the default assignment because of an extremely
18034 # bizarre bug on SunOS 4.1.3.
18035 if $ac_need_defaults; then
18036 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18037 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18038 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18041 # Create a temporary directory, and hook for its removal unless debugging.
18044 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18045 trap '{ (exit 1); exit 1; }' 1 2 13 15
18048 # Create a (secure) tmp directory for tmp files.
18051 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18052 test -n "$tmp" && test -d "$tmp"
18055 tmp=$TMPDIR/cs$$-$RANDOM
18056 (umask 077 && mkdir $tmp)
18059 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18060 { (exit 1); exit 1; }
18065 cat >>$CONFIG_STATUS <<_ACEOF
18068 # CONFIG_FILES section.
18071 # No need to generate the scripts if there are no CONFIG_FILES.
18072 # This happens for instance when ./config.status config.h
18073 if test -n "\$CONFIG_FILES"; then
18074 # Protect against being on the right side of a sed subst in config.status.
18075 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18076 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18077 s,@SHELL@,$SHELL,;t t
18078 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18079 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18080 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18081 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18082 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18083 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18084 s,@exec_prefix@,$exec_prefix,;t t
18085 s,@prefix@,$prefix,;t t
18086 s,@program_transform_name@,$program_transform_name,;t t
18087 s,@bindir@,$bindir,;t t
18088 s,@sbindir@,$sbindir,;t t
18089 s,@libexecdir@,$libexecdir,;t t
18090 s,@datadir@,$datadir,;t t
18091 s,@sysconfdir@,$sysconfdir,;t t
18092 s,@sharedstatedir@,$sharedstatedir,;t t
18093 s,@localstatedir@,$localstatedir,;t t
18094 s,@libdir@,$libdir,;t t
18095 s,@includedir@,$includedir,;t t
18096 s,@oldincludedir@,$oldincludedir,;t t
18097 s,@infodir@,$infodir,;t t
18098 s,@mandir@,$mandir,;t t
18099 s,@build_alias@,$build_alias,;t t
18100 s,@host_alias@,$host_alias,;t t
18101 s,@target_alias@,$target_alias,;t t
18102 s,@DEFS@,$DEFS,;t t
18103 s,@ECHO_C@,$ECHO_C,;t t
18104 s,@ECHO_N@,$ECHO_N,;t t
18105 s,@ECHO_T@,$ECHO_T,;t t
18106 s,@LIBS@,$LIBS,;t t
18107 s,@configure_args@,$configure_args,;t t
18108 s,@build@,$build,;t t
18109 s,@build_cpu@,$build_cpu,;t t
18110 s,@build_vendor@,$build_vendor,;t t
18111 s,@build_os@,$build_os,;t t
18112 s,@host@,$host,;t t
18113 s,@host_cpu@,$host_cpu,;t t
18114 s,@host_vendor@,$host_vendor,;t t
18115 s,@host_os@,$host_os,;t t
18116 s,@PORTNAME@,$PORTNAME,;t t
18117 s,@docdir@,$docdir,;t t
18118 s,@enable_nls@,$enable_nls,;t t
18119 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18120 s,@default_port@,$default_port,;t t
18121 s,@enable_shared@,$enable_shared,;t t
18122 s,@enable_rpath@,$enable_rpath,;t t
18123 s,@enable_debug@,$enable_debug,;t t
18125 s,@CFLAGS@,$CFLAGS,;t t
18126 s,@LDFLAGS@,$LDFLAGS,;t t
18127 s,@CPPFLAGS@,$CPPFLAGS,;t t
18128 s,@ac_ct_CC@,$ac_ct_CC,;t t
18129 s,@EXEEXT@,$EXEEXT,;t t
18130 s,@OBJEXT@,$OBJEXT,;t t
18134 s,@autodepend@,$autodepend,;t t
18135 s,@INCLUDES@,$INCLUDES,;t t
18136 s,@enable_thread_safety@,$enable_thread_safety,;t t
18137 s,@with_tcl@,$with_tcl,;t t
18138 s,@with_tk@,$with_tk,;t t
18139 s,@with_perl@,$with_perl,;t t
18140 s,@with_python@,$with_python,;t t
18141 s,@with_krb4@,$with_krb4,;t t
18142 s,@with_krb5@,$with_krb5,;t t
18143 s,@krb_srvtab@,$krb_srvtab,;t t
18144 s,@with_pam@,$with_pam,;t t
18145 s,@with_rendezvous@,$with_rendezvous,;t t
18146 s,@with_openssl@,$with_openssl,;t t
18147 s,@ELF_SYS@,$ELF_SYS,;t t
18149 s,@FLEX@,$FLEX,;t t
18150 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18151 s,@LN_S@,$LN_S,;t t
18153 s,@with_gnu_ld@,$with_gnu_ld,;t t
18154 s,@ld_R_works@,$ld_R_works,;t t
18155 s,@RANLIB@,$RANLIB,;t t
18156 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18157 s,@LORDER@,$LORDER,;t t
18159 s,@STRIP@,$STRIP,;t t
18160 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18161 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18162 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18163 s,@YACC@,$YACC,;t t
18164 s,@YFLAGS@,$YFLAGS,;t t
18165 s,@PERL@,$PERL,;t t
18166 s,@perl_archlibexp@,$perl_archlibexp,;t t
18167 s,@perl_privlibexp@,$perl_privlibexp,;t t
18168 s,@perl_useshrplib@,$perl_useshrplib,;t t
18169 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18170 s,@PYTHON@,$PYTHON,;t t
18171 s,@python_prefix@,$python_prefix,;t t
18172 s,@python_execprefix@,$python_execprefix,;t t
18173 s,@python_configdir@,$python_configdir,;t t
18174 s,@python_includespec@,$python_includespec,;t t
18175 s,@python_libspec@,$python_libspec,;t t
18176 s,@LIBOBJS@,$LIBOBJS,;t t
18177 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18178 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18179 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18180 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18181 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18182 s,@MSGFMT@,$MSGFMT,;t t
18183 s,@MSGMERGE@,$MSGMERGE,;t t
18184 s,@XGETTEXT@,$XGETTEXT,;t t
18185 s,@localedir@,$localedir,;t t
18186 s,@TCLSH@,$TCLSH,;t t
18187 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18188 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18189 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18190 s,@TCL_LIBS@,$TCL_LIBS,;t t
18191 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18192 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18193 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18194 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18195 s,@TK_LIBS@,$TK_LIBS,;t t
18196 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18197 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18198 s,@NSGMLS@,$NSGMLS,;t t
18199 s,@JADE@,$JADE,;t t
18200 s,@have_docbook@,$have_docbook,;t t
18201 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18202 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18203 s,@SGMLSPL@,$SGMLSPL,;t t
18204 s,@vpath_build@,$vpath_build,;t t
18209 cat >>$CONFIG_STATUS <<\_ACEOF
18210 # Split the substitutions into bite-sized pieces for seds with
18211 # small command number limits, like on Digital OSF/1 and HP-UX.
18212 ac_max_sed_lines=48
18213 ac_sed_frag=1 # Number of current file.
18214 ac_beg=1 # First line for current file.
18215 ac_end=$ac_max_sed_lines # Line after last line for current file.
18218 while $ac_more_lines; do
18219 if test $ac_beg -gt 1; then
18220 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18222 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18224 if test ! -s $tmp/subs.frag; then
18225 ac_more_lines=false
18227 # The purpose of the label and of the branching condition is to
18228 # speed up the sed processing (if there are no `@' at all, there
18229 # is no need to browse any of the substitutions).
18230 # These are the two extra sed commands mentioned above.
18232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18233 if test -z "$ac_sed_cmds"; then
18234 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18236 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18238 ac_sed_frag=`expr $ac_sed_frag + 1`
18240 ac_end=`expr $ac_end + $ac_max_sed_lines`
18243 if test -z "$ac_sed_cmds"; then
18246 fi # test -n "$CONFIG_FILES"
18249 cat >>$CONFIG_STATUS <<\_ACEOF
18250 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18253 - | *:- | *:-:* ) # input from stdin
18255 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18257 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18259 * ) ac_file_in=$ac_file.in ;;
18262 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18263 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18265 X"$ac_file" : 'X\(//\)[^/]' \| \
18266 X"$ac_file" : 'X\(//\)$' \| \
18267 X"$ac_file" : 'X\(/\)' \| \
18268 . : '\(.\)' 2>/dev/null ||
18270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18272 /^X\(\/\/\)$/{ s//\1/; q; }
18273 /^X\(\/\).*/{ s//\1/; q; }
18275 { case "$ac_dir" in
18276 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18280 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18281 case $as_mkdir_dir in
18282 # Skip DOS drivespec
18283 ?:) as_incr_dir=$as_mkdir_dir ;;
18285 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18286 test -d "$as_incr_dir" ||
18287 mkdir "$as_incr_dir" ||
18288 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18289 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18290 { (exit 1); exit 1; }; }
18297 if test "$ac_dir" != .; then
18298 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18299 # A "../" for each directory in $ac_dir_suffix.
18300 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18302 ac_dir_suffix= ac_top_builddir=
18306 .) # No --srcdir option. We are building in place.
18308 if test -z "$ac_top_builddir"; then
18311 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18313 [\\/]* | ?:[\\/]* ) # Absolute path.
18314 ac_srcdir=$srcdir$ac_dir_suffix;
18315 ac_top_srcdir=$srcdir ;;
18316 *) # Relative path.
18317 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18318 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18320 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18322 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18323 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18324 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18325 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18329 if test x"$ac_file" != x-; then
18330 { echo "$as_me:$LINENO: creating $ac_file" >&5
18331 echo "$as_me: creating $ac_file" >&6;}
18334 # Let's still pretend it is `configure' which instantiates (i.e., don't
18335 # use $as_me), people would be surprised to read:
18336 # /* config.h. Generated by config.status. */
18337 if test x"$ac_file" = x-; then
18340 configure_input="$ac_file. "
18342 configure_input=$configure_input"Generated from `echo $ac_file_in |
18343 sed 's,.*/,,'` by configure."
18345 # First look for the input files in the build tree, otherwise in the
18347 ac_file_inputs=`IFS=:
18348 for f in $ac_file_in; do
18350 -) echo $tmp/stdin ;;
18352 # Absolute (can't be DOS-style, as IFS=:)
18353 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18354 echo "$as_me: error: cannot find input file: $f" >&2;}
18355 { (exit 1); exit 1; }; }
18358 if test -f "$f"; then
18361 elif test -f "$srcdir/$f"; then
18366 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18367 echo "$as_me: error: cannot find input file: $f" >&2;}
18368 { (exit 1); exit 1; }; }
18371 done` || { (exit 1); exit 1; }
18373 cat >>$CONFIG_STATUS <<_ACEOF
18377 cat >>$CONFIG_STATUS <<\_ACEOF
18379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18380 s,@configure_input@,$configure_input,;t t
18381 s,@srcdir@,$ac_srcdir,;t t
18382 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18383 s,@top_srcdir@,$ac_top_srcdir,;t t
18384 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18385 s,@builddir@,$ac_builddir,;t t
18386 s,@abs_builddir@,$ac_abs_builddir,;t t
18387 s,@top_builddir@,$ac_top_builddir,;t t
18388 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18389 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18391 if test x"$ac_file" != x-; then
18392 mv $tmp/out $ac_file
18400 cat >>$CONFIG_STATUS <<\_ACEOF
18403 # CONFIG_HEADER section.
18406 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18407 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18409 # ac_d sets the value in "#define NAME VALUE" lines.
18410 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18411 ac_dB='[ ].*$,\1#\2'
18414 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18415 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18416 ac_uB='$,\1#\2define\3'
18420 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18421 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18423 - | *:- | *:-:* ) # input from stdin
18425 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18427 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18429 * ) ac_file_in=$ac_file.in ;;
18432 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18433 echo "$as_me: creating $ac_file" >&6;}
18435 # First look for the input files in the build tree, otherwise in the
18437 ac_file_inputs=`IFS=:
18438 for f in $ac_file_in; do
18440 -) echo $tmp/stdin ;;
18442 # Absolute (can't be DOS-style, as IFS=:)
18443 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18444 echo "$as_me: error: cannot find input file: $f" >&2;}
18445 { (exit 1); exit 1; }; }
18448 if test -f "$f"; then
18451 elif test -f "$srcdir/$f"; then
18456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18457 echo "$as_me: error: cannot find input file: $f" >&2;}
18458 { (exit 1); exit 1; }; }
18461 done` || { (exit 1); exit 1; }
18462 # Remove the trailing spaces.
18463 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18467 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18468 # `conftest.undefs', that substitutes the proper values into
18469 # config.h.in to produce config.h. The first handles `#define'
18470 # templates, and the second `#undef' templates.
18471 # And first: Protect against being on the right side of a sed subst in
18472 # config.status. Protect against being in an unquoted here document
18473 # in config.status.
18474 rm -f conftest.defines conftest.undefs
18475 # Using a here document instead of a string reduces the quoting nightmare.
18476 # Putting comments in sed scripts is not portable.
18478 # `end' is used to avoid that the second main sed command (meant for
18479 # 0-ary CPP macros) applies to n-ary macro definitions.
18480 # See the Autoconf documentation for `clear'.
18481 cat >confdef2sed.sed <<\_ACEOF
18486 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18488 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18491 # If some macros were called several times there might be several times
18492 # the same #defines, which is useless. Nevertheless, we may not want to
18493 # sort them, since we want the *last* AC-DEFINE to be honored.
18494 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18495 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18496 rm -f confdef2sed.sed
18498 # This sed command replaces #undef with comments. This is necessary, for
18499 # example, in the case of _POSIX_SOURCE, which is predefined and required
18500 # on some systems where configure will not decide to define it.
18501 cat >>conftest.undefs <<\_ACEOF
18502 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18505 # Break up conftest.defines because some shells have a limit on the size
18506 # of here documents, and old seds have small limits too (100 cmds).
18507 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18508 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18509 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18510 echo ' :' >>$CONFIG_STATUS
18511 rm -f conftest.tail
18512 while grep . conftest.defines >/dev/null
18514 # Write a limited-size here document to $tmp/defines.sed.
18515 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18516 # Speed up: don't consider the non `#define' lines.
18517 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18518 # Work around the forget-to-reset-the-flag bug.
18519 echo 't clr' >>$CONFIG_STATUS
18520 echo ': clr' >>$CONFIG_STATUS
18521 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18523 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18525 mv $tmp/out $tmp/in
18527 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18528 rm -f conftest.defines
18529 mv conftest.tail conftest.defines
18531 rm -f conftest.defines
18532 echo ' fi # egrep' >>$CONFIG_STATUS
18533 echo >>$CONFIG_STATUS
18535 # Break up conftest.undefs because some shells have a limit on the size
18536 # of here documents, and old seds have small limits too (100 cmds).
18537 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18538 rm -f conftest.tail
18539 while grep . conftest.undefs >/dev/null
18541 # Write a limited-size here document to $tmp/undefs.sed.
18542 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18543 # Speed up: don't consider the non `#undef'
18544 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18545 # Work around the forget-to-reset-the-flag bug.
18546 echo 't clr' >>$CONFIG_STATUS
18547 echo ': clr' >>$CONFIG_STATUS
18548 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18550 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18552 mv $tmp/out $tmp/in
18554 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18555 rm -f conftest.undefs
18556 mv conftest.tail conftest.undefs
18558 rm -f conftest.undefs
18560 cat >>$CONFIG_STATUS <<\_ACEOF
18561 # Let's still pretend it is `configure' which instantiates (i.e., don't
18562 # use $as_me), people would be surprised to read:
18563 # /* config.h. Generated by config.status. */
18564 if test x"$ac_file" = x-; then
18565 echo "/* Generated by configure. */" >$tmp/config.h
18567 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18569 cat $tmp/in >>$tmp/config.h
18571 if test x"$ac_file" != x-; then
18572 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18573 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18574 echo "$as_me: $ac_file is unchanged" >&6;}
18576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18578 X"$ac_file" : 'X\(//\)[^/]' \| \
18579 X"$ac_file" : 'X\(//\)$' \| \
18580 X"$ac_file" : 'X\(/\)' \| \
18581 . : '\(.\)' 2>/dev/null ||
18583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18585 /^X\(\/\/\)$/{ s//\1/; q; }
18586 /^X\(\/\).*/{ s//\1/; q; }
18588 { case "$ac_dir" in
18589 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18593 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18594 case $as_mkdir_dir in
18595 # Skip DOS drivespec
18596 ?:) as_incr_dir=$as_mkdir_dir ;;
18598 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18599 test -d "$as_incr_dir" ||
18600 mkdir "$as_incr_dir" ||
18601 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18602 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18603 { (exit 1); exit 1; }; }
18609 mv $tmp/config.h $ac_file
18613 rm -f $tmp/config.h
18615 # Run the commands associated with the file.
18617 src/include/pg_config.h )
18618 # Update timestamp for pg_config.h (see Makefile.global)
18619 echo >src/include/stamp-h
18624 cat >>$CONFIG_STATUS <<\_ACEOF
18627 # CONFIG_LINKS section.
18630 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18631 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18632 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18634 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18635 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18637 if test ! -r $srcdir/$ac_source; then
18638 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18639 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18640 { (exit 1); exit 1; }; }
18644 # Make relative symlinks.
18645 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18646 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18647 X"$ac_dest" : 'X\(//\)[^/]' \| \
18648 X"$ac_dest" : 'X\(//\)$' \| \
18649 X"$ac_dest" : 'X\(/\)' \| \
18650 . : '\(.\)' 2>/dev/null ||
18652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18654 /^X\(\/\/\)$/{ s//\1/; q; }
18655 /^X\(\/\).*/{ s//\1/; q; }
18657 { case "$ac_dest_dir" in
18658 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18661 as_dummy="$ac_dest_dir"
18662 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18663 case $as_mkdir_dir in
18664 # Skip DOS drivespec
18665 ?:) as_incr_dir=$as_mkdir_dir ;;
18667 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18668 test -d "$as_incr_dir" ||
18669 mkdir "$as_incr_dir" ||
18670 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18671 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18672 { (exit 1); exit 1; }; }
18679 if test "$ac_dest_dir" != .; then
18680 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18681 # A "../" for each directory in $ac_dir_suffix.
18682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18684 ac_dir_suffix= ac_top_builddir=
18688 .) # No --srcdir option. We are building in place.
18690 if test -z "$ac_top_builddir"; then
18693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18695 [\\/]* | ?:[\\/]* ) # Absolute path.
18696 ac_srcdir=$srcdir$ac_dir_suffix;
18697 ac_top_srcdir=$srcdir ;;
18698 *) # Relative path.
18699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18702 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18704 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18705 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18706 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18707 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18711 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18712 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18715 # Make a symlink if possible; otherwise try a hard link.
18716 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18717 ln $srcdir/$ac_source $ac_dest ||
18718 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18719 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18720 { (exit 1); exit 1; }; }
18724 cat >>$CONFIG_STATUS <<\_ACEOF
18726 { (exit 0); exit 0; }
18728 chmod +x $CONFIG_STATUS
18729 ac_clean_files=$ac_clean_files_save
18732 # configure is writing to config.log, and then calls config.status.
18733 # config.status does its own redirection, appending to config.log.
18734 # Unfortunately, on DOS this fails, as config.log is still kept open
18735 # by configure, so config.status won't be able to write to it; its
18736 # output is simply discarded. So we exec the FD to /dev/null,
18737 # effectively closing config.log, so it can be properly (re)opened and
18738 # appended to by config.status. When coming back to configure, we
18739 # need to make the FD available again.
18740 if test "$no_create" != yes; then
18743 $SHELL $CONFIG_STATUS || ac_cs_success=false
18745 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18746 # would make configure fail if this is the last instruction.
18747 $ac_cs_success || { (exit 1); exit 1; }