2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4beta5.
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.4beta5'
262 PACKAGE_STRING='PostgreSQL 7.4beta5'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4beta5 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.4beta5:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --disable-spinlocks do not use Spinlocks
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --enable-thread-safety make client libraries thread-safe
849 --disable-largefile omit support for large files
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-includes=DIRS look for additional header files in DIRS
856 --with-libraries=DIRS look for additional libraries in DIRS
857 --with-libs=DIRS alternative spelling of --with-libraries
858 --with-pgport=PORTNUM change default port number 5432
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python modules (PL/Python)
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-rendezvous build with Rendezvous support
871 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-gnu-ld assume the C compiler uses GNU ld default=no
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 location of DocBook stylesheets
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <pgsql-bugs@postgresql.org>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 PostgreSQL configure 7.4beta5
954 generated by GNU Autoconf 2.53
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
961 Copyright 2003 PostgreSQL Global Development Group
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by PostgreSQL $as_me 7.4beta5, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 for ac_dir in config $srcdir/config; do
1257 if test -f $ac_dir/install-sh; then
1259 ac_install_sh="$ac_aux_dir/install-sh -c"
1261 elif test -f $ac_dir/install.sh; then
1263 ac_install_sh="$ac_aux_dir/install.sh -c"
1265 elif test -f $ac_dir/shtool; then
1267 ac_install_sh="$ac_aux_dir/shtool install -c"
1271 if test -z "$ac_aux_dir"; then
1272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274 { (exit 1); exit 1; }; }
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1281 configure_args=$ac_configure_args
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294 { (exit 1); exit 1; }; }
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303 ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307 { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329 ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354 withval="$with_template"
1358 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360 { (exit 1); exit 1; }; }
1363 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365 { (exit 1); exit 1; }; }
1370 list) echo; ls "$srcdir/src/template"; exit;;
1371 *) if test -f "$srcdir/src/template/$with_template" ; then
1374 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376 { (exit 1); exit 1; }; }
1385 # --with-template not given
1388 aix*) template=aix ;;
1389 beos*) template=beos ;;
1390 bsdi*) template=bsdi ;;
1391 cygwin*) template=cygwin ;;
1392 darwin*) template=darwin ;;
1393 dgux*) template=dgux ;;
1394 freebsd*) template=freebsd ;;
1395 hpux*) template=hpux ;;
1396 irix*) template=irix5 ;;
1397 linux*) template=linux ;;
1398 mingw*) template=win32 ;;
1399 netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401 openbsd*) template=openbsd ;;
1402 osf*) template=osf ;;
1403 qnx*) template=qnx4 ;;
1404 sco*) template=sco ;;
1405 solaris*) template=solaris ;;
1406 sunos*) template=sunos4 ;;
1408 case $host_vendor in
1409 univel) template=univel ;;
1411 sysv4*) template=svr4 ;;
1412 sysv5*) template=unixware ;;
1413 ultrix*) template=ultrix4 ;;
1416 if test x"$template" = x"" ; then
1417 { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this. Include the above 'checking host system type...'
1426 *******************************************************************
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this. Include the above 'checking host system type...'
1437 *******************************************************************
1439 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1452 # Pick right test-and-set (TAS) code. Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1456 hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;;
1457 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1459 *) need_tas=no; tas_file=dummy.s ;;
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1464 if test "$need_tas" = yes ; then
1472 ## Command line options
1477 # Add non-standard directories to the include path
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484 withval="$with_includes"
1488 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490 { (exit 1); exit 1; }; }
1493 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495 { (exit 1); exit 1; }; }
1507 # Add non-standard directories to the library search path
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514 withval="$with_libraries"
1518 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520 { (exit 1); exit 1; }; }
1523 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525 { (exit 1); exit 1; }; }
1528 LIBRARY_DIRS=$withval
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540 withval="$with_libs"
1544 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546 { (exit 1); exit 1; }; }
1549 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551 { (exit 1); exit 1; }; }
1554 LIBRARY_DIRS=$withval
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571 enableval="$enable_integer_datetimes"
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1585 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587 { (exit 1); exit 1; }; }
1592 enable_integer_datetimes=no
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1603 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1604 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1607 # Check whether --enable-nls or --disable-nls was given.
1608 if test "${enable_nls+set}" = set; then
1609 enableval="$enable_nls"
1620 WANTED_LANGUAGES=$enableval
1629 if test "$enable_nls" = yes; then
1631 cat >>confdefs.h <<\_ACEOF
1632 #define ENABLE_NLS 1
1637 echo "$as_me:$LINENO: result: $enable_nls" >&5
1638 echo "${ECHO_T}$enable_nls" >&6
1643 # Default port number (--with-pgport), default 5432
1645 echo "$as_me:$LINENO: checking for default port number" >&5
1646 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1650 # Check whether --with-pgport or --without-pgport was given.
1651 if test "${with_pgport+set}" = set; then
1652 withval="$with_pgport"
1656 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1657 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1658 { (exit 1); exit 1; }; }
1661 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1662 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1663 { (exit 1); exit 1; }; }
1666 default_port=$withval
1674 echo "$as_me:$LINENO: result: $default_port" >&5
1675 echo "${ECHO_T}$default_port" >&6
1676 # Need both of these because some places want an integer and some a string
1678 cat >>confdefs.h <<_ACEOF
1679 #define DEF_PGPORT ${default_port}
1683 cat >>confdefs.h <<_ACEOF
1684 #define DEF_PGPORT_STR "${default_port}"
1690 # Option to disable shared libraries
1694 # Check whether --enable-shared or --disable-shared was given.
1695 if test "${enable_shared+set}" = set; then
1696 enableval="$enable_shared"
1706 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1707 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1708 { (exit 1); exit 1; }; }
1720 # '-rpath'-like feature can be disabled
1724 # Check whether --enable-rpath or --disable-rpath was given.
1725 if test "${enable_rpath+set}" = set; then
1726 enableval="$enable_rpath"
1736 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1737 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1738 { (exit 1); exit 1; }; }
1754 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1755 if test "${enable_spinlocks+set}" = set; then
1756 enableval="$enable_spinlocks"
1766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1767 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1768 { (exit 1); exit 1; }; }
1773 enable_spinlocks=yes
1779 # --enable-debug adds -g to compiler flags
1783 # Check whether --enable-debug or --disable-debug was given.
1784 if test "${enable_debug+set}" = set; then
1785 enableval="$enable_debug"
1795 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1796 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1797 { (exit 1); exit 1; }; }
1812 # For historical reasons you can also use --with-CC to specify the C compiler
1813 # to use, although the standard way to do this is to set the CC environment
1818 # Check whether --with-CC or --without-CC was given.
1819 if test "${with_CC+set}" = set; then
1824 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1825 echo "$as_me: error: argument required for --with-CC option" >&2;}
1826 { (exit 1); exit 1; }; }
1829 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1830 echo "$as_me: error: argument required for --with-CC option" >&2;}
1831 { (exit 1); exit 1; }; }
1842 aix) pgac_cc_list="gcc xlc";;
1843 irix) pgac_cc_list="cc";; # no gcc
1844 *) pgac_cc_list="gcc cc";;
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852 if test -n "$ac_tool_prefix"; then
1853 for ac_prog in $pgac_cc_list
1855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 if test -n "$CC"; then
1883 echo "$as_me:$LINENO: result: $CC" >&5
1884 echo "${ECHO_T}$CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1890 test -n "$CC" && break
1893 if test -z "$CC"; then
1895 for ac_prog in $pgac_cc_list
1897 # Extract the first word of "$ac_prog", so it can be a program name with args.
1898 set dummy $ac_prog; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$ac_ct_CC"; then
1905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_ac_ct_CC="$ac_prog"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1924 if test -n "$ac_ct_CC"; then
1925 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1926 echo "${ECHO_T}$ac_ct_CC" >&6
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1932 test -n "$ac_ct_CC" && break
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1941 { (exit 1); exit 1; }; }
1943 # Provide some information about the compiler.
1944 echo "$as_me:$LINENO:" \
1945 "checking for C compiler version" >&5
1946 ac_compiler=`set X $ac_compile; echo $2`
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1948 (eval $ac_compiler --version </dev/null >&5) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1953 (eval $ac_compiler -v </dev/null >&5) 2>&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1958 (eval $ac_compiler -V </dev/null >&5) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line $LINENO "configure"
1965 #include "confdefs.h"
1967 #ifdef F77_DUMMY_MAIN
1971 int F77_DUMMY_MAIN() { return 1; }
1981 ac_clean_files_save=$ac_clean_files
1982 ac_clean_files="$ac_clean_files a.out a.exe"
1983 # Try to create an executable without -o first, disregard a.out.
1984 # It will help us diagnose broken compilers, and finding out an intuition
1986 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1987 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1989 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1990 (eval $ac_link_default) 2>&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; then
1994 # Find the output, starting from the most likely. This scheme is
1995 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1998 # Be careful to initialize this variable, since it used to be cached.
1999 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2001 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2002 ls a.out conftest 2>/dev/null;
2003 ls a.* conftest.* 2>/dev/null`; do
2005 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2006 a.out ) # We found the default executable, but exeext='' is most
2009 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2010 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2017 echo "$as_me: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2020 echo "$as_me: error: C compiler cannot create executables" >&2;}
2021 { (exit 77); exit 77; }; }
2024 ac_exeext=$ac_cv_exeext
2025 echo "$as_me:$LINENO: result: $ac_file" >&5
2026 echo "${ECHO_T}$ac_file" >&6
2028 # Check the compiler produces executables we can run. If not, either
2029 # the compiler is broken, or we cross compile.
2030 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033 # If not cross compiling, check that we can run a simple program.
2034 if test "$cross_compiling" != yes; then
2035 if { ac_try='./$ac_file'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 if test "$cross_compiling" = maybe; then
2046 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'." >&5
2048 echo "$as_me: error: cannot run C compiled programs.
2049 If you meant to cross compile, use \`--host'." >&2;}
2050 { (exit 1); exit 1; }; }
2054 echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6
2057 rm -f a.out a.exe conftest$ac_cv_exeext
2058 ac_clean_files=$ac_clean_files_save
2059 # Check the compiler produces executables we can run. If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2062 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2063 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2064 echo "${ECHO_T}$cross_compiling" >&6
2066 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2067 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2069 (eval $ac_link) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2075 # work properly (i.e., refer to `conftest.exe'), while it won't with
2077 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2079 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2088 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2089 { (exit 1); exit 1; }; }
2092 rm -f conftest$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2094 echo "${ECHO_T}$ac_cv_exeext" >&6
2096 rm -f conftest.$ac_ext
2097 EXEEXT=$ac_cv_exeext
2099 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2100 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2101 if test "${ac_cv_objext+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 cat >conftest.$ac_ext <<_ACEOF
2105 #line $LINENO "configure"
2106 #include "confdefs.h"
2108 #ifdef F77_DUMMY_MAIN
2112 int F77_DUMMY_MAIN() { return 1; }
2122 rm -f conftest.o conftest.obj
2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2136 echo "$as_me: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2139 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2140 { (exit 1); exit 1; }; }
2143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146 echo "${ECHO_T}$ac_cv_objext" >&6
2147 OBJEXT=$ac_cv_objext
2149 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #line $LINENO "configure"
2156 #include "confdefs.h"
2158 #ifdef F77_DUMMY_MAIN
2162 int F77_DUMMY_MAIN() { return 1; }
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2189 echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2193 rm -f conftest.$ac_objext conftest.$ac_ext
2194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2199 GCC=`test $ac_compiler_gnu = yes && echo yes`
2200 ac_test_CFLAGS=${CFLAGS+set}
2201 ac_save_CFLAGS=$CFLAGS
2203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2205 if test "${ac_cv_prog_cc_g+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 cat >conftest.$ac_ext <<_ACEOF
2209 #line $LINENO "configure"
2210 #include "confdefs.h"
2212 #ifdef F77_DUMMY_MAIN
2216 int F77_DUMMY_MAIN() { return 1; }
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2240 echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2244 rm -f conftest.$ac_objext conftest.$ac_ext
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2247 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2248 if test "$ac_test_CFLAGS" = set; then
2249 CFLAGS=$ac_save_CFLAGS
2250 elif test $ac_cv_prog_cc_g = yes; then
2251 if test "$GCC" = yes; then
2257 if test "$GCC" = yes; then
2263 # Some people use a C++ compiler to compile C. Since we use `exit',
2264 # in C++ we need to declare it. In case someone uses the same compiler
2265 # for both compiling C and C++ we need to have the C++ compiler decide
2266 # the declaration of exit, since it's the most demanding environment.
2267 cat >conftest.$ac_ext <<_ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 for ac_declaration in \
2286 '#include <stdlib.h>' \
2287 'extern "C" void std::exit (int) throw (); using std::exit;' \
2288 'extern "C" void std::exit (int); using std::exit;' \
2289 'extern "C" void exit (int) throw ();' \
2290 'extern "C" void exit (int);' \
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 #include "confdefs.h"
2298 #ifdef F77_DUMMY_MAIN
2302 int F77_DUMMY_MAIN() { return 1; }
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -s conftest.$ac_objext'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; }; then
2326 echo "$as_me: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2333 #include "confdefs.h"
2335 #ifdef F77_DUMMY_MAIN
2339 int F77_DUMMY_MAIN() { return 1; }
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2369 if test -n "$ac_declaration"; then
2370 echo '#ifdef __cplusplus' >>confdefs.h
2371 echo $ac_declaration >>confdefs.h
2372 echo '#endif' >>confdefs.h
2376 echo "$as_me: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 . "$srcdir/src/template/$template" || exit
2392 # The template may have supplied a default setting for CFLAGS.
2393 # Override this if CFLAGS was set in the original environment.
2394 if test "$ac_env_CFLAGS_set" = set; then
2395 CFLAGS=$ac_env_CFLAGS_value
2397 # autoconf already set the default CFLAGS for gcc to be -O2, but we
2398 # need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2399 if test "$GCC" = yes; then
2400 CFLAGS="$CFLAGS -fno-strict-aliasing"
2403 # supply -g if --enable-debug
2404 if test "$enable_debug" = yes -a "$ac_cv_prog_cc_g" = yes; then
2407 # default to -O rather than empty CFLAGS; this path will not be taken for
2408 # gcc (since autoconf supplies -O2), nor if --enable-debug (because -O -g
2409 # doesn't work on most non-gcc compilers), nor if the template provided
2411 if test "$ac_env_CFLAGS_set" != set -a x"$CFLAGS" = x""; then
2414 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2415 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2417 # We already have this in Makefile.win32, but configure needs it too
2418 if test "$PORTNAME" = "win32"
2420 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2423 # Check if the compiler still works with the template settings
2424 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2425 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2427 cat >conftest.$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2429 #include "confdefs.h"
2431 #ifdef F77_DUMMY_MAIN
2435 int F77_DUMMY_MAIN() { return 1; }
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -s conftest$ac_exeext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 echo "$as_me:$LINENO: result: yes" >&5
2458 echo "${ECHO_T}yes" >&6
2460 echo "$as_me: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2462 echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2464 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2465 echo "$as_me: error: cannot proceed" >&2;}
2466 { (exit 1); exit 1; }; }
2468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2470 # Defend against gcc -ffast-math
2471 if test "$GCC" = yes; then
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line $LINENO "configure"
2474 #include "confdefs.h"
2476 #ifdef F77_DUMMY_MAIN
2480 int F77_DUMMY_MAIN() { return 1; }
2485 #ifdef __FAST_MATH__
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2506 echo "$as_me: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2509 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2510 { (exit 1); exit 1; }; }
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2522 # On Suns, sometimes $CPP names a directory.
2523 if test -n "$CPP" && test -d "$CPP"; then
2526 if test -z "$CPP"; then
2527 if test "${ac_cv_prog_CPP+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 # Double quotes because CPP needs to be expanded
2531 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2534 for ac_c_preproc_warn_flag in '' yes
2536 # Use a header file that comes with gcc, so configuring glibc
2537 # with a fresh cross-compiler works.
2538 # On the NeXT, cc -E runs the code through the compiler's parser,
2539 # not just through cpp. "Syntax error" is here to catch this case.
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2542 #include "confdefs.h"
2546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2549 egrep -v '^ *\+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } >/dev/null; then
2554 if test -s conftest.err; then
2555 ac_cpp_err=$ac_c_preproc_warn_flag
2562 if test -z "$ac_cpp_err"; then
2565 echo "$as_me: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 # Broken: fails on valid input.
2570 rm -f conftest.err conftest.$ac_ext
2572 # OK, works on sane cases. Now check whether non-existent headers
2573 # can be detected and how.
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 #include "confdefs.h"
2577 #include <ac_nonexistent.h>
2579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2582 egrep -v '^ *\+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } >/dev/null; then
2587 if test -s conftest.err; then
2588 ac_cpp_err=$ac_c_preproc_warn_flag
2595 if test -z "$ac_cpp_err"; then
2596 # Broken: success on invalid input.
2599 echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 # Passes both tests.
2605 rm -f conftest.err conftest.$ac_ext
2608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2609 rm -f conftest.err conftest.$ac_ext
2610 if $ac_preproc_ok; then
2622 echo "$as_me:$LINENO: result: $CPP" >&5
2623 echo "${ECHO_T}$CPP" >&6
2625 for ac_c_preproc_warn_flag in '' yes
2627 # Use a header file that comes with gcc, so configuring glibc
2628 # with a fresh cross-compiler works.
2629 # On the NeXT, cc -E runs the code through the compiler's parser,
2630 # not just through cpp. "Syntax error" is here to catch this case.
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 #include "confdefs.h"
2637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2640 egrep -v '^ *\+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } >/dev/null; then
2645 if test -s conftest.err; then
2646 ac_cpp_err=$ac_c_preproc_warn_flag
2653 if test -z "$ac_cpp_err"; then
2656 echo "$as_me: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2658 # Broken: fails on valid input.
2661 rm -f conftest.err conftest.$ac_ext
2663 # OK, works on sane cases. Now check whether non-existent headers
2664 # can be detected and how.
2665 cat >conftest.$ac_ext <<_ACEOF
2666 #line $LINENO "configure"
2667 #include "confdefs.h"
2668 #include <ac_nonexistent.h>
2670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2673 egrep -v '^ *\+' conftest.er1 >conftest.err
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } >/dev/null; then
2678 if test -s conftest.err; then
2679 ac_cpp_err=$ac_c_preproc_warn_flag
2686 if test -z "$ac_cpp_err"; then
2687 # Broken: success on invalid input.
2690 echo "$as_me: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 # Passes both tests.
2696 rm -f conftest.err conftest.$ac_ext
2699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2700 rm -f conftest.err conftest.$ac_ext
2701 if $ac_preproc_ok; then
2704 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2705 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2706 { (exit 1); exit 1; }; }
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 # Create compiler version string
2718 if test x"$GCC" = x"yes" ; then
2719 cc_string="GCC `${CC} --version | sed q`"
2724 cat >>confdefs.h <<_ACEOF
2725 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2731 # Automatic dependency tracking
2735 # Check whether --enable-depend or --disable-depend was given.
2736 if test "${enable_depend+set}" = set; then
2737 enableval="$enable_depend"
2747 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2748 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2749 { (exit 1); exit 1; }; }
2762 # Enable assert checks
2766 # Check whether --enable-cassert or --disable-cassert was given.
2767 if test "${enable_cassert+set}" = set; then
2768 enableval="$enable_cassert"
2773 cat >>confdefs.h <<\_ACEOF
2774 #define USE_ASSERT_CHECKING 1
2782 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2783 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2784 { (exit 1); exit 1; }; }
2796 # Include directories
2800 # SRCH_INC comes from the template file
2801 for dir in $with_includes $SRCH_INC; do
2802 if test -d "$dir"; then
2803 INCLUDES="$INCLUDES -I$dir"
2805 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2806 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2814 # Library directories
2818 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2819 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2820 if test -d "$dir"; then
2821 LIBDIRS="$LIBDIRS -L$dir"
2823 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2824 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2830 # Enable thread-safe client libraries
2832 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2833 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2836 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2837 if test "${enable_thread_safety+set}" = set; then
2838 enableval="$enable_thread_safety"
2843 cat >>confdefs.h <<\_ACEOF
2844 #define USE_THREADS 1
2852 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2853 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2854 { (exit 1); exit 1; }; }
2859 enable_thread_safety=no
2863 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2864 echo "${ECHO_T}$enable_thread_safety" >&6
2870 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2871 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2875 # Check whether --with-tcl or --without-tcl was given.
2876 if test "${with_tcl+set}" = set; then
2887 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2888 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2889 { (exit 1); exit 1; }; }
2898 echo "$as_me:$LINENO: result: $with_tcl" >&5
2899 echo "${ECHO_T}$with_tcl" >&6
2902 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2903 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2904 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2905 if test "$with_tcl" = yes; then
2909 # Check whether --with-tk or --without-tk was given.
2910 if test "${with_tk+set}" = set; then
2921 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2922 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2923 { (exit 1); exit 1; }; }
2935 echo "$as_me:$LINENO: result: $with_tk" >&5
2936 echo "${ECHO_T}$with_tk" >&6
2940 # We see if the path to the Tcl/Tk configuration scripts is specified.
2941 # This will override the use of tclsh to find the paths to search.
2946 # Check whether --with-tclconfig or --without-tclconfig was given.
2947 if test "${with_tclconfig+set}" = set; then
2948 withval="$with_tclconfig"
2952 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2953 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2954 { (exit 1); exit 1; }; }
2957 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2958 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2959 { (exit 1); exit 1; }; }
2969 # We see if the path to the Tk configuration scripts is specified.
2970 # This will override the use of tclsh to find the paths to search.
2975 # Check whether --with-tkconfig or --without-tkconfig was given.
2976 if test "${with_tkconfig+set}" = set; then
2977 withval="$with_tkconfig"
2981 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2982 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2983 { (exit 1); exit 1; }; }
2986 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2987 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2988 { (exit 1); exit 1; }; }
2999 # Optionally build Perl modules (PL/Perl)
3001 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3002 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3006 # Check whether --with-perl or --without-perl was given.
3007 if test "${with_perl+set}" = set; then
3008 withval="$with_perl"
3018 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3019 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3020 { (exit 1); exit 1; }; }
3029 echo "$as_me:$LINENO: result: $with_perl" >&5
3030 echo "${ECHO_T}$with_perl" >&6
3034 # Optionally build Python modules (PL/Python)
3036 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3037 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3041 # Check whether --with-python or --without-python was given.
3042 if test "${with_python+set}" = set; then
3043 withval="$with_python"
3053 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3054 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3055 { (exit 1); exit 1; }; }
3064 echo "$as_me:$LINENO: result: $with_python" >&5
3065 echo "${ECHO_T}$with_python" >&6
3069 # Optionally build the Java/JDBC tools
3071 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3072 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3076 # Check whether --with-java or --without-java was given.
3077 if test "${with_java+set}" = set; then
3078 withval="$with_java"
3082 echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3085 for ac_prog in jakarta-ant ant ant.sh ant.bat
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091 if test "${ac_cv_path_ANT+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 if test -n "$ANT"; then
3119 echo "$as_me:$LINENO: result: $ANT" >&5
3120 echo "${ECHO_T}$ANT" >&6
3122 echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6
3126 test -n "$ANT" && break
3130 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3131 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3132 if test "${pgac_cv_prog_ant_works+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 cat > conftest.java << EOF
3137 public class conftest {
3138 int testmethod(int a, int b) {
3144 cat > conftest.xml << EOF
3145 <project name="conftest" default="conftest">
3146 <target name="conftest">
3147 <javac srcdir="." includes="conftest.java">
3153 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3154 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3155 (eval $pgac_cmd) 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3160 if test $? = 0 && test -f ./conftest.class ; then
3161 pgac_cv_prog_ant_works=yes
3163 echo "configure: failed java program was:" >&5
3164 cat conftest.java >&5
3165 echo "configure: failed build file was:" >&5
3166 cat conftest.xml >&5
3167 pgac_cv_prog_ant_works=no
3170 rm -f conftest* core core.* *.core
3173 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3174 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3176 if test "$pgac_cv_prog_ant_works" != yes; then
3177 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3178 echo "$as_me: error: ant does not work" >&2;}
3179 { (exit 1); exit 1; }; }
3183 if test -z "$ANT"; then
3184 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3185 If you have Ant already installed, see config.log for details on the failure." >&5
3186 echo "$as_me: error: Ant is required to build Java components
3187 If you have Ant already installed, see config.log for details on the failure." >&2;}
3188 { (exit 1); exit 1; }; }
3190 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3191 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3192 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3193 { (exit 1); exit 1; }; }
3197 echo "$as_me:$LINENO: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3201 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3202 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3203 { (exit 1); exit 1; }; }
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3219 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3220 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3224 # Check whether --with-krb4 or --without-krb4 was given.
3225 if test "${with_krb4+set}" = set; then
3226 withval="$with_krb4"
3230 krb4_prefix=/usr/athena
3237 krb4_prefix=$withval
3246 if test "$with_krb4" = yes; then
3248 echo "$as_me:$LINENO: result: yes" >&5
3249 echo "${ECHO_T}yes" >&6
3251 cat >>confdefs.h <<\_ACEOF
3256 if test -d "$krb4_prefix/include"; then
3257 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3259 if test -d "$krb4_prefix/lib"; then
3260 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3263 krb_srvtab="/etc/srvtab"
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3277 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3278 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3282 # Check whether --with-krb5 or --without-krb5 was given.
3283 if test "${with_krb5+set}" = set; then
3284 withval="$with_krb5"
3288 krb5_prefix=/usr/athena
3295 krb5_prefix=$withval
3304 if test "$with_krb5" = yes; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3309 cat >>confdefs.h <<\_ACEOF
3314 if test -d "$krb5_prefix/include"; then
3315 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3317 if test -d "$krb5_prefix/lib"; then
3318 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3321 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3324 echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3332 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3333 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3334 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3335 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3336 { (exit 1); exit 1; }; }
3343 # Kerberos configuration parameters
3348 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3349 if test "${with_krb_srvnam+set}" = set; then
3350 withval="$with_krb_srvnam"
3354 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3355 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3356 { (exit 1); exit 1; }; }
3359 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3360 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3361 { (exit 1); exit 1; }; }
3369 with_krb_srvnam="postgres"
3373 cat >>confdefs.h <<_ACEOF
3374 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3382 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3383 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3387 # Check whether --with-pam or --without-pam was given.
3388 if test "${with_pam+set}" = set; then
3394 cat >>confdefs.h <<\_ACEOF
3403 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3404 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3405 { (exit 1); exit 1; }; }
3414 echo "$as_me:$LINENO: result: $with_pam" >&5
3415 echo "${ECHO_T}$with_pam" >&6
3422 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3423 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3427 # Check whether --with-rendezvous or --without-rendezvous was given.
3428 if test "${with_rendezvous+set}" = set; then
3429 withval="$with_rendezvous"
3434 cat >>confdefs.h <<\_ACEOF
3435 #define USE_RENDEZVOUS 1
3443 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3444 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3445 { (exit 1); exit 1; }; }
3454 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3455 echo "${ECHO_T}$with_rendezvous" >&6
3465 # Check whether --with-openssl or --without-openssl was given.
3466 if test "${with_openssl+set}" = set; then
3467 withval="$with_openssl"
3471 openssl_prefix=/usr/local/ssl
3478 openssl_prefix=$withval
3487 if test "$with_openssl" = yes; then
3489 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3490 echo "${ECHO_T}building with OpenSSL support" >&6
3492 cat >>confdefs.h <<\_ACEOF
3497 if test -d "${openssl_prefix}/include" ; then
3498 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3500 if test -d "${openssl_prefix}/lib" ; then
3501 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3516 # Check whether --with-readline or --without-readline was given.
3517 if test "${with_readline+set}" = set; then
3518 withval="$with_readline"
3528 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3529 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3530 { (exit 1); exit 1; }; }
3546 # Check whether --with-zlib or --without-zlib was given.
3547 if test "${with_zlib+set}" = set; then
3548 withval="$with_zlib"
3558 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3559 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3560 { (exit 1); exit 1; }; }
3574 # Assume system is ELF if it predefines __ELF__ as 1,
3575 # otherwise believe host_os based default.
3577 freebsd1*|freebsd2*) elf=no;;
3578 freebsd3*|freebsd4*) elf=yes;;
3582 cat >conftest.$ac_ext <<_ACEOF
3583 #line $LINENO "configure"
3584 #include "confdefs.h"
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 egrep "yes" >/dev/null 2>&1; then
3594 if test "X$elf" = "Xyes" ; then
3608 CPPFLAGS="$CPPFLAGS $INCLUDES"
3609 LDFLAGS="$LDFLAGS $LIBDIRS"
3611 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3612 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3613 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3614 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3617 for ac_prog in gawk mawk nawk awk
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_prog_AWK+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test -n "$AWK"; then
3627 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_AWK="$ac_prog"
3637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test -n "$AWK"; then
3647 echo "$as_me:$LINENO: result: $AWK" >&5
3648 echo "${ECHO_T}$AWK" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 test -n "$AWK" && break
3657 echo "$as_me:$LINENO: checking for flex" >&5
3658 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3659 if test "${pgac_cv_path_flex+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 # Let the user override the test
3663 if test -n "$FLEX"; then
3664 pgac_cv_path_flex=$FLEX
3668 for pgac_dir in $PATH; do
3669 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3672 for pgac_prog in flex lex; do
3673 pgac_candidate="$pgac_dir/$pgac_prog"
3674 if test -f "$pgac_candidate" \
3675 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3677 echo '%%' > conftest.l
3678 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3679 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3680 pgac_broken_flex=$pgac_candidate
3684 pgac_cv_path_flex=$pgac_candidate
3692 : ${pgac_cv_path_flex=no}
3696 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3697 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3698 if test x"$pgac_cv_path_flex" = x"no"; then
3699 if test -n "$pgac_broken_flex"; then
3700 { echo "$as_me:$LINENO: WARNING:
3701 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3702 *** should get version 2.5.4 or later." >&5
3703 echo "$as_me: WARNING:
3704 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3705 *** should get version 2.5.4 or later." >&2;}
3708 { echo "$as_me:$LINENO: WARNING:
3709 *** Without Flex you will not be able to build PostgreSQL from CVS or
3710 *** change any of the scanner definition files. You can obtain Flex from
3711 *** a GNU mirror site. (If you are using the official distribution of
3712 *** PostgreSQL then you do not need to worry about this because the Flex
3713 *** output is pre-generated.)" >&5
3714 echo "$as_me: WARNING:
3715 *** Without Flex you will not be able to build PostgreSQL from CVS or
3716 *** change any of the scanner definition files. You can obtain Flex from
3717 *** a GNU mirror site. (If you are using the official distribution of
3718 *** PostgreSQL then you do not need to worry about this because the Flex
3719 *** output is pre-generated.)" >&2;}
3722 if test x"$pgac_cv_path_flex" = x"no"; then
3725 FLEX=$pgac_cv_path_flex
3731 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3732 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3734 if test "$LN_S" = "ln -s"; then
3735 echo "$as_me:$LINENO: result: yes" >&5
3736 echo "${ECHO_T}yes" >&6
3738 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3739 echo "${ECHO_T}no, using $LN_S" >&6
3743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3744 if test "${with_gnu_ld+set}" = set; then
3745 withval="$with_gnu_ld"
3746 test "$withval" = no || with_gnu_ld=yes
3751 if test "$GCC" = yes; then
3752 # Check if gcc -print-prog-name=ld gives a path.
3753 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3757 # gcc leaves a trailing carriage return which upsets mingw
3758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3763 # Accept absolute paths.
3764 [\\/]* | [A-Za-z]:[\\/]*)
3765 re_direlt='/[^/][^/]*/\.\./'
3766 # Canonicalize the path of ld
3767 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3769 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3771 test -z "$LD" && LD="$ac_prog"
3774 # If it fails, then pretend we aren't using GCC.
3778 # If it is relative, then search for the first ld in PATH.
3782 elif test "$with_gnu_ld" = yes; then
3783 echo "$as_me:$LINENO: checking for GNU ld" >&5
3784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3786 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3789 if test "${ac_cv_path_LD+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -z "$LD"; then
3793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3794 for ac_dir in $PATH; do
3795 test -z "$ac_dir" && ac_dir=.
3796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3797 ac_cv_path_LD="$ac_dir/$ac_prog"
3798 # Check to see if the program is GNU ld. I'd rather use --version,
3799 # but apparently some GNU ld's only accept -v.
3800 # Break only if it was the GNU/non-GNU ld that we prefer.
3801 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3802 test "$with_gnu_ld" != no && break
3804 test "$with_gnu_ld" != yes && break
3810 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3815 if test -n "$LD"; then
3816 echo "$as_me:$LINENO: result: $LD" >&5
3817 echo "${ECHO_T}$LD" >&6
3819 echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3824 { (exit 1); exit 1; }; }
3825 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3827 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3831 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3832 ac_cv_prog_gnu_ld=yes
3834 ac_cv_prog_gnu_ld=no
3837 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3838 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3839 with_gnu_ld=$ac_cv_prog_gnu_ld
3844 case $host_os in sysv5*)
3845 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3846 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3847 if test "${pgac_cv_prog_ld_R+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #line $LINENO "configure"
3854 #include "confdefs.h"
3856 #ifdef F77_DUMMY_MAIN
3860 int F77_DUMMY_MAIN() { return 1; }
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -s conftest$ac_exeext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 pgac_cv_prog_ld_R=yes
3884 echo "$as_me: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 pgac_cv_prog_ld_R=no
3888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3889 LDFLAGS=$pgac_save_LDFLAGS
3892 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3893 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3894 ld_R_works=$pgac_cv_prog_ld_R
3897 if test -n "$ac_tool_prefix"; then
3898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_prog_RANLIB+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 if test -n "$RANLIB"; then
3906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 RANLIB=$ac_cv_prog_RANLIB
3925 if test -n "$RANLIB"; then
3926 echo "$as_me:$LINENO: result: $RANLIB" >&5
3927 echo "${ECHO_T}$RANLIB" >&6
3929 echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6
3934 if test -z "$ac_cv_prog_RANLIB"; then
3935 ac_ct_RANLIB=$RANLIB
3936 # Extract the first word of "ranlib", so it can be a program name with args.
3937 set dummy ranlib; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 if test -n "$ac_ct_RANLIB"; then
3944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_RANLIB="ranlib"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3964 if test -n "$ac_ct_RANLIB"; then
3965 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3966 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3968 echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3972 RANLIB=$ac_ct_RANLIB
3974 RANLIB="$ac_cv_prog_RANLIB"
3977 for ac_prog in lorder
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_LORDER+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if test -n "$LORDER"; then
3987 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_LORDER="$ac_prog"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 LORDER=$ac_cv_prog_LORDER
4006 if test -n "$LORDER"; then
4007 echo "$as_me:$LINENO: result: $LORDER" >&5
4008 echo "${ECHO_T}$LORDER" >&6
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4014 test -n "$LORDER" && break
4017 # Extract the first word of "tar", so it can be a program name with args.
4018 set dummy tar; ac_word=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_path_TAR+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 if test -n "$TAR"; then
4049 echo "$as_me:$LINENO: result: $TAR" >&5
4050 echo "${ECHO_T}$TAR" >&6
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}strip; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_STRIP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if test -n "$STRIP"; then
4066 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 STRIP=$ac_cv_prog_STRIP
4085 if test -n "$STRIP"; then
4086 echo "$as_me:$LINENO: result: $STRIP" >&5
4087 echo "${ECHO_T}$STRIP" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 if test -z "$ac_cv_prog_STRIP"; then
4096 # Extract the first word of "strip", so it can be a program name with args.
4097 set dummy strip; ac_word=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if test -n "$ac_ct_STRIP"; then
4104 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_ac_ct_STRIP="strip"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4123 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4124 if test -n "$ac_ct_STRIP"; then
4125 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4126 echo "${ECHO_T}$ac_ct_STRIP" >&6
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4134 STRIP="$ac_cv_prog_STRIP"
4138 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4139 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4140 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4141 STRIP_STATIC_LIB="$STRIP -x"
4142 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4143 echo "$as_me:$LINENO: result: yes" >&5
4144 echo "${ECHO_T}yes" >&6
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4155 for ac_prog in 'bison -y'
4157 # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_YACC+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 if test -n "$YACC"; then
4165 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_YACC="$ac_prog"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 YACC=$ac_cv_prog_YACC
4184 if test -n "$YACC"; then
4185 echo "$as_me:$LINENO: result: $YACC" >&5
4186 echo "${ECHO_T}$YACC" >&6
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4192 test -n "$YACC" && break
4196 if test "$YACC"; then
4197 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4198 { echo "$as_me:$LINENO: WARNING:
4199 *** The installed version of Bison is too old. PostgreSQL needs
4200 *** Bison version 1.875 or later." >&5
4201 echo "$as_me: WARNING:
4202 *** The installed version of Bison is too old. PostgreSQL needs
4203 *** Bison version 1.875 or later." >&2;}
4207 if test -z "$YACC"; then
4208 { echo "$as_me:$LINENO: WARNING:
4209 *** Without Bison you will not be able to build PostgreSQL from CVS or
4210 *** change any of the parser definition files. You can obtain Bison from
4211 *** a GNU mirror site. (If you are using the official distribution of
4212 *** PostgreSQL then you do not need to worry about this because the Bison
4213 *** output is pre-generated.) To use a different yacc program (possible,
4214 *** but not recommended), set the environment variable YACC before running
4215 *** 'configure'." >&5
4216 echo "$as_me: WARNING:
4217 *** Without Bison you will not be able to build PostgreSQL from CVS or
4218 *** change any of the parser definition files. You can obtain Bison from
4219 *** a GNU mirror site. (If you are using the official distribution of
4220 *** PostgreSQL then you do not need to worry about this because the Bison
4221 *** output is pre-generated.) To use a different yacc program (possible,
4222 *** but not recommended), set the environment variable YACC before running
4223 *** 'configure'." >&2;}
4227 # Extract the first word of "perl", so it can be a program name with args.
4228 set dummy perl; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_path_PERL+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 PERL=$ac_cv_path_PERL
4258 if test -n "$PERL"; then
4259 echo "$as_me:$LINENO: result: $PERL" >&5
4260 echo "${ECHO_T}$PERL" >&6
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4266 if test "$with_perl" = yes; then
4268 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4269 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4270 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4271 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4272 echo "${ECHO_T}$perl_archlibexp" >&6
4273 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4274 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4275 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4276 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4277 echo "${ECHO_T}$perl_privlibexp" >&6
4278 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4279 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4280 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4281 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4282 echo "${ECHO_T}$perl_useshrplib" >&6
4284 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4285 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4286 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4287 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4288 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4289 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4290 echo "${ECHO_T}$perl_embed_ldflags" >&6
4293 if test "$with_python" = yes; then
4294 # Extract the first word of "python", so it can be a program name with args.
4295 set dummy python; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_path_PYTHON+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 PYTHON=$ac_cv_path_PYTHON
4325 if test -n "$PYTHON"; then
4326 echo "$as_me:$LINENO: result: $PYTHON" >&5
4327 echo "${ECHO_T}$PYTHON" >&6
4329 echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4333 if test x"$PYTHON" = x""; then
4334 { { echo "$as_me:$LINENO: error: Python not found" >&5
4335 echo "$as_me: error: Python not found" >&2;}
4336 { (exit 1); exit 1; }; }
4340 echo "$as_me:$LINENO: checking Python installation directories" >&5
4341 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4342 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4343 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4344 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4345 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4346 python_includespec="-I${python_prefix}/include/python${python_version}"
4347 if test "$python_prefix" != "$python_execprefix"; then
4348 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4351 # This should be enough of a message.
4352 if test "$python_prefix" != "$python_execprefix"; then
4353 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4354 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4356 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4357 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4361 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4362 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4364 if test ! -f "$python_configdir/Makefile"; then
4365 echo "$as_me:$LINENO: result: no" >&5
4366 echo "${ECHO_T}no" >&6
4367 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4368 echo "$as_me: error: Python Makefile not found" >&2;}
4369 { (exit 1); exit 1; }; }
4372 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4373 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4374 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4375 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4376 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4378 pgac_tab=" " # tab character
4379 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"`
4381 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4382 echo "${ECHO_T}${python_libspec}" >&6
4392 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4395 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4396 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4397 if test "${ac_cv_lib_bsd_main+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 ac_check_lib_save_LIBS=$LIBS
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 #include "confdefs.h"
4407 #ifdef F77_DUMMY_MAIN
4411 int F77_DUMMY_MAIN() { return 1; }
4421 rm -f conftest.$ac_objext conftest$ac_exeext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4423 (eval $ac_link) 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -s conftest$ac_exeext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_lib_bsd_main=yes
4435 echo "$as_me: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4437 ac_cv_lib_bsd_main=no
4439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4440 LIBS=$ac_check_lib_save_LIBS
4442 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4443 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4444 if test $ac_cv_lib_bsd_main = yes; then
4445 cat >>confdefs.h <<_ACEOF
4446 #define HAVE_LIBBSD 1
4455 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4456 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4457 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 ac_check_lib_save_LIBS=$LIBS
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 #include "confdefs.h"
4466 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4472 char setproctitle ();
4473 #ifdef F77_DUMMY_MAIN
4477 int F77_DUMMY_MAIN() { return 1; }
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_lib_util_setproctitle=yes
4501 echo "$as_me: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4503 ac_cv_lib_util_setproctitle=no
4505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4506 LIBS=$ac_check_lib_save_LIBS
4508 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4509 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4510 if test $ac_cv_lib_util_setproctitle = yes; then
4511 cat >>confdefs.h <<_ACEOF
4512 #define HAVE_LIBUTIL 1
4520 echo "$as_me:$LINENO: checking for main in -lm" >&5
4521 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4522 if test "${ac_cv_lib_m_main+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 ac_check_lib_save_LIBS=$LIBS
4527 cat >conftest.$ac_ext <<_ACEOF
4528 #line $LINENO "configure"
4529 #include "confdefs.h"
4532 #ifdef F77_DUMMY_MAIN
4536 int F77_DUMMY_MAIN() { return 1; }
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_cv_lib_m_main=yes
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 LIBS=$ac_check_lib_save_LIBS
4567 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4568 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4569 if test $ac_cv_lib_m_main = yes; then
4570 cat >>confdefs.h <<_ACEOF
4579 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4580 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4581 if test "${ac_cv_lib_dl_main+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 ac_check_lib_save_LIBS=$LIBS
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 #include "confdefs.h"
4591 #ifdef F77_DUMMY_MAIN
4595 int F77_DUMMY_MAIN() { return 1; }
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_lib_dl_main=yes
4619 echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 ac_cv_lib_dl_main=no
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4626 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4627 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4628 if test $ac_cv_lib_dl_main = yes; then
4629 cat >>confdefs.h <<_ACEOF
4630 #define HAVE_LIBDL 1
4638 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4639 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4640 if test "${ac_cv_lib_nsl_main+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 ac_check_lib_save_LIBS=$LIBS
4645 cat >conftest.$ac_ext <<_ACEOF
4646 #line $LINENO "configure"
4647 #include "confdefs.h"
4650 #ifdef F77_DUMMY_MAIN
4654 int F77_DUMMY_MAIN() { return 1; }
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_cv_lib_nsl_main=yes
4678 echo "$as_me: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 ac_cv_lib_nsl_main=no
4682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4683 LIBS=$ac_check_lib_save_LIBS
4685 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4686 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4687 if test $ac_cv_lib_nsl_main = yes; then
4688 cat >>confdefs.h <<_ACEOF
4689 #define HAVE_LIBNSL 1
4697 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4698 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4699 if test "${ac_cv_lib_socket_main+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_check_lib_save_LIBS=$LIBS
4703 LIBS="-lsocket $LIBS"
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 #include "confdefs.h"
4709 #ifdef F77_DUMMY_MAIN
4713 int F77_DUMMY_MAIN() { return 1; }
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -s conftest$ac_exeext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_lib_socket_main=yes
4737 echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 ac_cv_lib_socket_main=no
4741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4742 LIBS=$ac_check_lib_save_LIBS
4744 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4745 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4746 if test $ac_cv_lib_socket_main = yes; then
4747 cat >>confdefs.h <<_ACEOF
4748 #define HAVE_LIBSOCKET 1
4751 LIBS="-lsocket $LIBS"
4756 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4757 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4758 if test "${ac_cv_lib_ipc_main+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 ac_check_lib_save_LIBS=$LIBS
4763 cat >conftest.$ac_ext <<_ACEOF
4764 #line $LINENO "configure"
4765 #include "confdefs.h"
4768 #ifdef F77_DUMMY_MAIN
4772 int F77_DUMMY_MAIN() { return 1; }
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest$ac_exeext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_lib_ipc_main=yes
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_cv_lib_ipc_main=no
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4801 LIBS=$ac_check_lib_save_LIBS
4803 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4804 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4805 if test $ac_cv_lib_ipc_main = yes; then
4806 cat >>confdefs.h <<_ACEOF
4807 #define HAVE_LIBIPC 1
4815 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4816 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4817 if test "${ac_cv_lib_IPC_main+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_check_lib_save_LIBS=$LIBS
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4827 #ifdef F77_DUMMY_MAIN
4831 int F77_DUMMY_MAIN() { return 1; }
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843 (eval $ac_link) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_lib_IPC_main=yes
4855 echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 ac_cv_lib_IPC_main=no
4859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860 LIBS=$ac_check_lib_save_LIBS
4862 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4863 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4864 if test $ac_cv_lib_IPC_main = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define HAVE_LIBIPC 1
4874 echo "$as_me:$LINENO: checking for main in -llc" >&5
4875 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4876 if test "${ac_cv_lib_lc_main+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_check_lib_save_LIBS=$LIBS
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 #include "confdefs.h"
4886 #ifdef F77_DUMMY_MAIN
4890 int F77_DUMMY_MAIN() { return 1; }
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -s conftest$ac_exeext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_lib_lc_main=yes
4914 echo "$as_me: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 ac_cv_lib_lc_main=no
4918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4919 LIBS=$ac_check_lib_save_LIBS
4921 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4922 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4923 if test $ac_cv_lib_lc_main = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925 #define HAVE_LIBLC 1
4933 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4934 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4935 if test "${ac_cv_lib_dld_main+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 ac_check_lib_save_LIBS=$LIBS
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 #include "confdefs.h"
4945 #ifdef F77_DUMMY_MAIN
4949 int F77_DUMMY_MAIN() { return 1; }
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_dld_main=yes
4973 echo "$as_me: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 ac_cv_lib_dld_main=no
4977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4978 LIBS=$ac_check_lib_save_LIBS
4980 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4981 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4982 if test $ac_cv_lib_dld_main = yes; then
4983 cat >>confdefs.h <<_ACEOF
4984 #define HAVE_LIBDLD 1
4992 echo "$as_me:$LINENO: checking for main in -lld" >&5
4993 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4994 if test "${ac_cv_lib_ld_main+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 ac_check_lib_save_LIBS=$LIBS
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5004 #ifdef F77_DUMMY_MAIN
5008 int F77_DUMMY_MAIN() { return 1; }
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_lib_ld_main=yes
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 ac_cv_lib_ld_main=no
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5037 LIBS=$ac_check_lib_save_LIBS
5039 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5040 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5041 if test $ac_cv_lib_ld_main = yes; then
5042 cat >>confdefs.h <<_ACEOF
5043 #define HAVE_LIBLD 1
5051 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5052 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5053 if test "${ac_cv_lib_compat_main+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 ac_check_lib_save_LIBS=$LIBS
5057 LIBS="-lcompat $LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 #include "confdefs.h"
5063 #ifdef F77_DUMMY_MAIN
5067 int F77_DUMMY_MAIN() { return 1; }
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079 (eval $ac_link) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_lib_compat_main=yes
5091 echo "$as_me: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 ac_cv_lib_compat_main=no
5095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5099 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5100 if test $ac_cv_lib_compat_main = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define HAVE_LIBCOMPAT 1
5105 LIBS="-lcompat $LIBS"
5110 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5111 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5112 if test "${ac_cv_lib_BSD_main+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 ac_check_lib_save_LIBS=$LIBS
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5122 #ifdef F77_DUMMY_MAIN
5126 int F77_DUMMY_MAIN() { return 1; }
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_lib_BSD_main=yes
5150 echo "$as_me: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5152 ac_cv_lib_BSD_main=no
5154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155 LIBS=$ac_check_lib_save_LIBS
5157 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5158 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5159 if test $ac_cv_lib_BSD_main = yes; then
5160 cat >>confdefs.h <<_ACEOF
5161 #define HAVE_LIBBSD 1
5169 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5170 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5171 if test "${ac_cv_lib_gen_main+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_check_lib_save_LIBS=$LIBS
5176 cat >conftest.$ac_ext <<_ACEOF
5177 #line $LINENO "configure"
5178 #include "confdefs.h"
5181 #ifdef F77_DUMMY_MAIN
5185 int F77_DUMMY_MAIN() { return 1; }
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197 (eval $ac_link) 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_lib_gen_main=yes
5209 echo "$as_me: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 ac_cv_lib_gen_main=no
5213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5217 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5218 if test $ac_cv_lib_gen_main = yes; then
5219 cat >>confdefs.h <<_ACEOF
5220 #define HAVE_LIBGEN 1
5228 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5229 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5230 if test "${ac_cv_lib_PW_main+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_check_lib_save_LIBS=$LIBS
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 #include "confdefs.h"
5240 #ifdef F77_DUMMY_MAIN
5244 int F77_DUMMY_MAIN() { return 1; }
5254 rm -f conftest.$ac_objext conftest$ac_exeext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256 (eval $ac_link) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -s conftest$ac_exeext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_lib_PW_main=yes
5268 echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 ac_cv_lib_PW_main=no
5272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5275 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5276 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5277 if test $ac_cv_lib_PW_main = yes; then
5278 cat >>confdefs.h <<_ACEOF
5279 #define HAVE_LIBPW 1
5287 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5288 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5289 if test "${ac_cv_lib_resolv_main+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 ac_check_lib_save_LIBS=$LIBS
5293 LIBS="-lresolv $LIBS"
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 #include "confdefs.h"
5299 #ifdef F77_DUMMY_MAIN
5303 int F77_DUMMY_MAIN() { return 1; }
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest$ac_exeext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_lib_resolv_main=yes
5327 echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 ac_cv_lib_resolv_main=no
5331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 LIBS=$ac_check_lib_save_LIBS
5334 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5335 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5336 if test $ac_cv_lib_resolv_main = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_LIBRESOLV 1
5341 LIBS="-lresolv $LIBS"
5345 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5346 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5347 if test "${ac_cv_search_getopt_long+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 ac_func_search_save_LIBS=$LIBS
5351 ac_cv_search_getopt_long=no
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5354 #include "confdefs.h"
5356 /* Override any gcc2 internal prototype to avoid an error. */
5360 /* We use char because int might match the return type of a gcc2
5361 builtin and then its argument prototype would still apply. */
5362 char getopt_long ();
5363 #ifdef F77_DUMMY_MAIN
5367 int F77_DUMMY_MAIN() { return 1; }
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest$ac_exeext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_search_getopt_long="none required"
5391 echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 if test "$ac_cv_search_getopt_long" = no; then
5396 for ac_lib in getopt gnugetopt; do
5397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 #include "confdefs.h"
5402 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5408 char getopt_long ();
5409 #ifdef F77_DUMMY_MAIN
5413 int F77_DUMMY_MAIN() { return 1; }
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -s conftest$ac_exeext'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 ac_cv_search_getopt_long="-l$ac_lib"
5438 echo "$as_me: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5444 LIBS=$ac_func_search_save_LIBS
5446 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5447 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5448 if test "$ac_cv_search_getopt_long" != no; then
5449 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5455 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5456 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5457 if test "${ac_cv_lib_unix_main+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_check_lib_save_LIBS=$LIBS
5462 cat >conftest.$ac_ext <<_ACEOF
5463 #line $LINENO "configure"
5464 #include "confdefs.h"
5467 #ifdef F77_DUMMY_MAIN
5471 int F77_DUMMY_MAIN() { return 1; }
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_lib_unix_main=yes
5495 echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 ac_cv_lib_unix_main=no
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5502 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5503 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5504 if test $ac_cv_lib_unix_main = yes; then
5505 cat >>confdefs.h <<_ACEOF
5506 #define HAVE_LIBUNIX 1
5513 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5514 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5515 if test "${ac_cv_search_crypt+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 ac_func_search_save_LIBS=$LIBS
5519 ac_cv_search_crypt=no
5520 cat >conftest.$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5522 #include "confdefs.h"
5524 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5531 #ifdef F77_DUMMY_MAIN
5535 int F77_DUMMY_MAIN() { return 1; }
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_search_crypt="none required"
5559 echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 if test "$ac_cv_search_crypt" = no; then
5564 for ac_lib in crypt; do
5565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5566 cat >conftest.$ac_ext <<_ACEOF
5567 #line $LINENO "configure"
5568 #include "confdefs.h"
5570 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5577 #ifdef F77_DUMMY_MAIN
5581 int F77_DUMMY_MAIN() { return 1; }
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -s conftest$ac_exeext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_search_crypt="-l$ac_lib"
5606 echo "$as_me: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612 LIBS=$ac_func_search_save_LIBS
5614 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5615 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5616 if test "$ac_cv_search_crypt" != no; then
5617 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5622 if test "$PORTNAME" = "beos"
5625 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5626 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5627 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 ac_check_lib_save_LIBS=$LIBS
5632 cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5634 #include "confdefs.h"
5636 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5642 char __inet_ntoa ();
5643 #ifdef F77_DUMMY_MAIN
5647 int F77_DUMMY_MAIN() { return 1; }
5657 rm -f conftest.$ac_objext conftest$ac_exeext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659 (eval $ac_link) 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -s conftest$ac_exeext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_lib_bind___inet_ntoa=yes
5671 echo "$as_me: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 ac_cv_lib_bind___inet_ntoa=no
5675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5676 LIBS=$ac_check_lib_save_LIBS
5678 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5679 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5680 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define HAVE_LIBBIND 1
5691 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5692 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5693 if test "${ac_cv_search_fdatasync+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 ac_func_search_save_LIBS=$LIBS
5697 ac_cv_search_fdatasync=no
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line $LINENO "configure"
5700 #include "confdefs.h"
5702 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5709 #ifdef F77_DUMMY_MAIN
5713 int F77_DUMMY_MAIN() { return 1; }
5723 rm -f conftest.$ac_objext conftest$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } &&
5729 { ac_try='test -s conftest$ac_exeext'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5735 ac_cv_search_fdatasync="none required"
5737 echo "$as_me: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741 if test "$ac_cv_search_fdatasync" = no; then
5742 for ac_lib in rt posix4; do
5743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5744 cat >conftest.$ac_ext <<_ACEOF
5745 #line $LINENO "configure"
5746 #include "confdefs.h"
5748 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5755 #ifdef F77_DUMMY_MAIN
5759 int F77_DUMMY_MAIN() { return 1; }
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest$ac_exeext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_search_fdatasync="-l$ac_lib"
5784 echo "$as_me: failed program was:" >&5
5785 cat conftest.$ac_ext >&5
5787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5790 LIBS=$ac_func_search_save_LIBS
5792 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5793 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5794 if test "$ac_cv_search_fdatasync" != no; then
5795 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5801 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5802 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5803 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_check_lib_save_LIBS=$LIBS
5807 LIBS="-lcygipc $LIBS"
5808 cat >conftest.$ac_ext <<_ACEOF
5809 #line $LINENO "configure"
5810 #include "confdefs.h"
5812 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5819 #ifdef F77_DUMMY_MAIN
5823 int F77_DUMMY_MAIN() { return 1; }
5833 rm -f conftest.$ac_objext conftest$ac_exeext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5835 (eval $ac_link) 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -s conftest$ac_exeext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 ac_cv_lib_cygipc_shmget=yes
5847 echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 ac_cv_lib_cygipc_shmget=no
5851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5852 LIBS=$ac_check_lib_save_LIBS
5854 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5855 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5856 if test $ac_cv_lib_cygipc_shmget = yes; then
5857 cat >>confdefs.h <<_ACEOF
5858 #define HAVE_LIBCYGIPC 1
5861 LIBS="-lcygipc $LIBS"
5866 if test "$PORTNAME" = "win32"
5869 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5870 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5871 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 ac_check_lib_save_LIBS=$LIBS
5875 LIBS="-lwsock32 $LIBS"
5876 cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 #include "confdefs.h"
5881 #ifdef F77_DUMMY_MAIN
5885 int F77_DUMMY_MAIN() { return 1; }
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897 (eval $ac_link) 2>&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -s conftest$ac_exeext'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 ac_cv_lib_wsock32_main=yes
5909 echo "$as_me: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 ac_cv_lib_wsock32_main=no
5913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5914 LIBS=$ac_check_lib_save_LIBS
5916 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5917 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5918 if test $ac_cv_lib_wsock32_main = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_LIBWSOCK32 1
5923 LIBS="-lwsock32 $LIBS"
5929 if test "$with_readline" = yes; then
5931 echo "$as_me:$LINENO: checking for readline" >&5
5932 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5934 if test "${pgac_cv_check_readline+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 pgac_cv_check_readline=no
5938 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5939 for pgac_rllib in -lreadline -ledit ; do
5940 pgac_save_LIBS=$LIBS
5941 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5942 cat >conftest.$ac_ext <<_ACEOF
5943 #line $LINENO "configure"
5944 #include "confdefs.h"
5946 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5953 #ifdef F77_DUMMY_MAIN
5957 int F77_DUMMY_MAIN() { return 1; }
5967 rm -f conftest.$ac_objext conftest$ac_exeext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969 (eval $ac_link) 2>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -s conftest$ac_exeext'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5980 # NetBSD and OpenBSD have a broken linker that does not
5981 # recognize dependent libraries
5982 case $host_os in netbsd* | openbsd* )
5985 *) pgac_lib=" -lcurses" ;;
5989 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5993 echo "$as_me: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$pgac_save_LIBS
6000 LIBS=$pgac_save_LIBS
6004 if test "$pgac_cv_check_readline" != no ; then
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_LIBREADLINE 1
6010 LIBS="$pgac_cv_check_readline $LIBS"
6011 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6012 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6017 if test x"$pgac_cv_check_readline" = x"no"; then
6018 { { echo "$as_me:$LINENO: error: readline library not found
6019 If you have readline already installed, see config.log for details on the
6020 failure. It is possible the compiler isn't looking in the proper directory.
6021 Use --without-readline to disable readline support." >&5
6022 echo "$as_me: error: readline library not found
6023 If you have readline already installed, see config.log for details on the
6024 failure. It is possible the compiler isn't looking in the proper directory.
6025 Use --without-readline to disable readline support." >&2;}
6026 { (exit 1); exit 1; }; }
6030 if test "$with_zlib" = yes; then
6032 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6033 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6034 if test "${ac_cv_lib_z_inflate+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 ac_check_lib_save_LIBS=$LIBS
6039 cat >conftest.$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6041 #include "confdefs.h"
6043 /* Override any gcc2 internal prototype to avoid an error. */
6047 /* We use char because int might match the return type of a gcc2
6048 builtin and then its argument prototype would still apply. */
6050 #ifdef F77_DUMMY_MAIN
6054 int F77_DUMMY_MAIN() { return 1; }
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6066 (eval $ac_link) 2>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_lib_z_inflate=yes
6078 echo "$as_me: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 ac_cv_lib_z_inflate=no
6082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6083 LIBS=$ac_check_lib_save_LIBS
6085 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6086 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6087 if test $ac_cv_lib_z_inflate = yes; then
6088 cat >>confdefs.h <<_ACEOF
6095 { { echo "$as_me:$LINENO: error: zlib library not found
6096 If you have zlib already installed, see config.log for details on the
6097 failure. It is possible the compiler isn't looking in the proper directory.
6098 Use --without-zlib to disable zlib support." >&5
6099 echo "$as_me: error: zlib library not found
6100 If you have zlib already installed, see config.log for details on the
6101 failure. It is possible the compiler isn't looking in the proper directory.
6102 Use --without-zlib to disable zlib support." >&2;}
6103 { (exit 1); exit 1; }; }
6108 if test "$enable_spinlocks" = yes; then
6110 cat >>confdefs.h <<\_ACEOF
6111 #define HAVE_SPINLOCKS 1
6115 { echo "$as_me:$LINENO: WARNING:
6116 *** Not using spinlocks will cause poor performance." >&5
6117 echo "$as_me: WARNING:
6118 *** Not using spinlocks will cause poor performance." >&2;}
6121 if test "$with_krb4" = yes ; then
6123 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6124 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6125 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 ac_check_lib_save_LIBS=$LIBS
6130 cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 #include "confdefs.h"
6134 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6140 char des_encrypt ();
6141 #ifdef F77_DUMMY_MAIN
6145 int F77_DUMMY_MAIN() { return 1; }
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -s conftest$ac_exeext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_cv_lib_des_des_encrypt=yes
6169 echo "$as_me: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 ac_cv_lib_des_des_encrypt=no
6173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6174 LIBS=$ac_check_lib_save_LIBS
6176 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6177 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6178 if test $ac_cv_lib_des_des_encrypt = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define HAVE_LIBDES 1
6186 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6187 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6188 { (exit 1); exit 1; }; }
6192 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6193 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6194 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 ac_check_lib_save_LIBS=$LIBS
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 #include "confdefs.h"
6203 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6209 char krb_sendauth ();
6210 #ifdef F77_DUMMY_MAIN
6214 int F77_DUMMY_MAIN() { return 1; }
6224 rm -f conftest.$ac_objext conftest$ac_exeext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226 (eval $ac_link) 2>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -s conftest$ac_exeext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_cv_lib_krb_krb_sendauth=yes
6238 echo "$as_me: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 ac_cv_lib_krb_krb_sendauth=no
6242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6245 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6246 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6247 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define HAVE_LIBKRB 1
6255 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6256 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6257 { (exit 1); exit 1; }; }
6261 for ac_func in gethostname
6263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6264 echo "$as_me:$LINENO: checking for $ac_func" >&5
6265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6266 if eval "test \"\${$as_ac_var+set}\" = set"; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273 which can conflict with char $ac_func (); below. */
6275 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6284 #ifdef F77_DUMMY_MAIN
6288 int F77_DUMMY_MAIN() { return 1; }
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6306 rm -f conftest.$ac_objext conftest$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -s conftest$ac_exeext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 eval "$as_ac_var=yes"
6320 echo "$as_me: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6322 eval "$as_ac_var=no"
6324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6328 if test `eval echo '${'$as_ac_var'}'` = yes; then
6329 cat >>confdefs.h <<_ACEOF
6330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6334 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6341 if test "$with_krb5" = yes ; then
6342 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6343 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6344 if test "${ac_cv_search_com_err+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 ac_func_search_save_LIBS=$LIBS
6348 ac_cv_search_com_err=no
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6360 #ifdef F77_DUMMY_MAIN
6364 int F77_DUMMY_MAIN() { return 1; }
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_search_com_err="none required"
6388 echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6392 if test "$ac_cv_search_com_err" = no; then
6393 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 #include "confdefs.h"
6399 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6406 #ifdef F77_DUMMY_MAIN
6410 int F77_DUMMY_MAIN() { return 1; }
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422 (eval $ac_link) 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -s conftest$ac_exeext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_cv_search_com_err="-l$ac_lib"
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 LIBS=$ac_func_search_save_LIBS
6443 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6444 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6445 if test "$ac_cv_search_com_err" != no; then
6446 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6449 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6450 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6451 { (exit 1); exit 1; }; }
6454 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6455 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6456 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_func_search_save_LIBS=$LIBS
6460 ac_cv_search_krb5_encrypt=no
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 #include "confdefs.h"
6465 /* Override any gcc2 internal prototype to avoid an error. */
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6471 char krb5_encrypt ();
6472 #ifdef F77_DUMMY_MAIN
6476 int F77_DUMMY_MAIN() { return 1; }
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -s conftest$ac_exeext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 ac_cv_search_krb5_encrypt="none required"
6500 echo "$as_me: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6504 if test "$ac_cv_search_krb5_encrypt" = no; then
6505 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6507 cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6509 #include "confdefs.h"
6511 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517 char krb5_encrypt ();
6518 #ifdef F77_DUMMY_MAIN
6522 int F77_DUMMY_MAIN() { return 1; }
6532 rm -f conftest.$ac_objext conftest$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534 (eval $ac_link) 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -s conftest$ac_exeext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_search_krb5_encrypt="-l$ac_lib"
6547 echo "$as_me: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6553 LIBS=$ac_func_search_save_LIBS
6555 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6556 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6557 if test "$ac_cv_search_krb5_encrypt" != no; then
6558 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6561 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6562 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6563 { (exit 1); exit 1; }; }
6566 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6567 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6568 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_func_search_save_LIBS=$LIBS
6572 ac_cv_search_krb5_sendauth=no
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6583 char krb5_sendauth ();
6584 #ifdef F77_DUMMY_MAIN
6588 int F77_DUMMY_MAIN() { return 1; }
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_cv_search_krb5_sendauth="none required"
6612 echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6616 if test "$ac_cv_search_krb5_sendauth" = no; then
6617 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6619 cat >conftest.$ac_ext <<_ACEOF
6620 #line $LINENO "configure"
6621 #include "confdefs.h"
6623 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629 char krb5_sendauth ();
6630 #ifdef F77_DUMMY_MAIN
6634 int F77_DUMMY_MAIN() { return 1; }
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646 (eval $ac_link) 2>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -s conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_cv_search_krb5_sendauth="-l$ac_lib"
6659 echo "$as_me: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6665 LIBS=$ac_func_search_save_LIBS
6667 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6668 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6669 if test "$ac_cv_search_krb5_sendauth" != no; then
6670 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6673 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6674 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6675 { (exit 1); exit 1; }; }
6680 if test "$with_openssl" = yes ; then
6682 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6683 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6684 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_check_lib_save_LIBS=$LIBS
6688 LIBS="-lcrypto $LIBS"
6689 cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6699 char CRYPTO_new_ex_data ();
6700 #ifdef F77_DUMMY_MAIN
6704 int F77_DUMMY_MAIN() { return 1; }
6709 CRYPTO_new_ex_data ();
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -s conftest$ac_exeext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6728 echo "$as_me: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6733 LIBS=$ac_check_lib_save_LIBS
6735 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6736 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6737 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6738 cat >>confdefs.h <<_ACEOF
6739 #define HAVE_LIBCRYPTO 1
6742 LIBS="-lcrypto $LIBS"
6745 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6746 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6747 { (exit 1); exit 1; }; }
6751 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6752 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6753 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_check_lib_save_LIBS=$LIBS
6758 cat >conftest.$ac_ext <<_ACEOF
6759 #line $LINENO "configure"
6760 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */
6766 /* We use char because int might match the return type of a gcc2
6767 builtin and then its argument prototype would still apply. */
6768 char SSL_library_init ();
6769 #ifdef F77_DUMMY_MAIN
6773 int F77_DUMMY_MAIN() { return 1; }
6778 SSL_library_init ();
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_lib_ssl_SSL_library_init=yes
6797 echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 ac_cv_lib_ssl_SSL_library_init=no
6801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6802 LIBS=$ac_check_lib_save_LIBS
6804 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6805 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6806 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_LIBSSL 1
6814 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6815 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6816 { (exit 1); exit 1; }; }
6821 if test "$with_pam" = yes ; then
6823 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6824 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6825 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 ac_check_lib_save_LIBS=$LIBS
6830 cat >conftest.$ac_ext <<_ACEOF
6831 #line $LINENO "configure"
6832 #include "confdefs.h"
6834 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6841 #ifdef F77_DUMMY_MAIN
6845 int F77_DUMMY_MAIN() { return 1; }
6855 rm -f conftest.$ac_objext conftest$ac_exeext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6857 (eval $ac_link) 2>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -s conftest$ac_exeext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 ac_cv_lib_pam_pam_start=yes
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 ac_cv_lib_pam_pam_start=no
6873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6874 LIBS=$ac_check_lib_save_LIBS
6876 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6877 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6878 if test $ac_cv_lib_pam_pam_start = yes; then
6879 cat >>confdefs.h <<_ACEOF
6880 #define HAVE_LIBPAM 1
6886 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6887 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6888 { (exit 1); exit 1; }; }
6898 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6899 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6900 if test "${ac_cv_header_stdc+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 cat >conftest.$ac_ext <<_ACEOF
6904 #line $LINENO "configure"
6905 #include "confdefs.h"
6912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6915 egrep -v '^ *\+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } >/dev/null; then
6920 if test -s conftest.err; then
6921 ac_cpp_err=$ac_c_preproc_warn_flag
6928 if test -z "$ac_cpp_err"; then
6929 ac_cv_header_stdc=yes
6931 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6933 ac_cv_header_stdc=no
6935 rm -f conftest.err conftest.$ac_ext
6937 if test $ac_cv_header_stdc = yes; then
6938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6939 cat >conftest.$ac_ext <<_ACEOF
6940 #line $LINENO "configure"
6941 #include "confdefs.h"
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946 egrep "memchr" >/dev/null 2>&1; then
6949 ac_cv_header_stdc=no
6955 if test $ac_cv_header_stdc = yes; then
6956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6957 cat >conftest.$ac_ext <<_ACEOF
6958 #line $LINENO "configure"
6959 #include "confdefs.h"
6963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6964 egrep "free" >/dev/null 2>&1; then
6967 ac_cv_header_stdc=no
6973 if test $ac_cv_header_stdc = yes; then
6974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6975 if test "$cross_compiling" = yes; then
6978 cat >conftest.$ac_ext <<_ACEOF
6979 #line $LINENO "configure"
6980 #include "confdefs.h"
6982 #if ((' ' & 0x0FF) == 0x020)
6983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6987 || ('j' <= (c) && (c) <= 'r') \
6988 || ('s' <= (c) && (c) <= 'z'))
6989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6997 for (i = 0; i < 256; i++)
6998 if (XOR (islower (i), ISLOWER (i))
6999 || toupper (i) != TOUPPER (i))
7004 rm -f conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7017 echo "$as_me: program exited with status $ac_status" >&5
7018 echo "$as_me: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 ac_cv_header_stdc=no
7023 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7027 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7028 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7029 if test $ac_cv_header_stdc = yes; then
7031 cat >>confdefs.h <<\_ACEOF
7032 #define STDC_HEADERS 1
7037 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7048 inttypes.h stdint.h unistd.h
7050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7051 echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7057 #line $LINENO "configure"
7058 #include "confdefs.h"
7059 $ac_includes_default
7061 #include <$ac_header>
7063 rm -f conftest.$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 eval "$as_ac_Header=yes"
7077 echo "$as_me: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7079 eval "$as_ac_Header=no"
7081 rm -f conftest.$ac_objext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7086 cat >>confdefs.h <<_ACEOF
7087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7116 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
7118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128 # Is the header compilable?
7129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7131 cat >conftest.$ac_ext <<_ACEOF
7132 #line $LINENO "configure"
7133 #include "confdefs.h"
7134 $ac_includes_default
7135 #include <$ac_header>
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 ac_header_compiler=yes
7151 echo "$as_me: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7153 ac_header_compiler=no
7155 rm -f conftest.$ac_objext conftest.$ac_ext
7156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7157 echo "${ECHO_T}$ac_header_compiler" >&6
7159 # Is the header present?
7160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7162 cat >conftest.$ac_ext <<_ACEOF
7163 #line $LINENO "configure"
7164 #include "confdefs.h"
7165 #include <$ac_header>
7167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7170 egrep -v '^ *\+' conftest.er1 >conftest.err
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } >/dev/null; then
7175 if test -s conftest.err; then
7176 ac_cpp_err=$ac_c_preproc_warn_flag
7183 if test -z "$ac_cpp_err"; then
7184 ac_header_preproc=yes
7186 echo "$as_me: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7188 ac_header_preproc=no
7190 rm -f conftest.err conftest.$ac_ext
7191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7192 echo "${ECHO_T}$ac_header_preproc" >&6
7194 # So? What about this header?
7195 case $ac_header_compiler:$ac_header_preproc in
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7209 echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 eval "$as_ac_Header=$ac_header_preproc"
7216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221 cat >>confdefs.h <<_ACEOF
7222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7231 # netinet/in.h is included first.
7233 for ac_header in netinet/in.h
7235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245 # Is the header compilable?
7246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7248 cat >conftest.$ac_ext <<_ACEOF
7249 #line $LINENO "configure"
7250 #include "confdefs.h"
7251 $ac_includes_default
7252 #include <$ac_header>
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_header_compiler=yes
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_header_compiler=no
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7274 echo "${ECHO_T}$ac_header_compiler" >&6
7276 # Is the header present?
7277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7279 cat >conftest.$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 #include "confdefs.h"
7282 #include <$ac_header>
7284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7287 egrep -v '^ *\+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } >/dev/null; then
7292 if test -s conftest.err; then
7293 ac_cpp_err=$ac_c_preproc_warn_flag
7300 if test -z "$ac_cpp_err"; then
7301 ac_header_preproc=yes
7303 echo "$as_me: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7305 ac_header_preproc=no
7307 rm -f conftest.err conftest.$ac_ext
7308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7309 echo "${ECHO_T}$ac_header_preproc" >&6
7311 # So? What about this header?
7312 case $ac_header_compiler:$ac_header_preproc in
7314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7326 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 eval "$as_ac_Header=$ac_header_preproc"
7333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7338 cat >>confdefs.h <<_ACEOF
7339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7347 for ac_header in netinet/tcp.h
7349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7350 echo "$as_me:$LINENO: checking for $ac_header" >&5
7351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 #include "confdefs.h"
7358 $ac_includes_default
7359 #ifdef HAVE_NETINET_IN_H
7360 #include <netinet/in.h>
7364 #include <$ac_header>
7366 rm -f conftest.$ac_objext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368 (eval $ac_compile) 2>&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 eval "$as_ac_Header=yes"
7380 echo "$as_me: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7382 eval "$as_ac_Header=no"
7384 rm -f conftest.$ac_objext conftest.$ac_ext
7386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7389 cat >>confdefs.h <<_ACEOF
7390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7398 if test "$with_readline" = yes; then
7400 for ac_header in readline/readline.h
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412 # Is the header compilable?
7413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line $LINENO "configure"
7417 #include "confdefs.h"
7418 $ac_includes_default
7419 #include <$ac_header>
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_header_compiler=yes
7435 echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 ac_header_compiler=no
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6
7443 # Is the header present?
7444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7446 cat >conftest.$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7448 #include "confdefs.h"
7449 #include <$ac_header>
7451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7454 egrep -v '^ *\+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } >/dev/null; then
7459 if test -s conftest.err; then
7460 ac_cpp_err=$ac_c_preproc_warn_flag
7467 if test -z "$ac_cpp_err"; then
7468 ac_header_preproc=yes
7470 echo "$as_me: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7472 ac_header_preproc=no
7474 rm -f conftest.err conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7476 echo "${ECHO_T}$ac_header_preproc" >&6
7478 # So? What about this header?
7479 case $ac_header_compiler:$ac_header_preproc in
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7493 echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 eval "$as_ac_Header=$ac_header_preproc"
7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7505 cat >>confdefs.h <<_ACEOF
7506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7511 for ac_header in editline/readline.h
7513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7523 # Is the header compilable?
7524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7526 cat >conftest.$ac_ext <<_ACEOF
7527 #line $LINENO "configure"
7528 #include "confdefs.h"
7529 $ac_includes_default
7530 #include <$ac_header>
7532 rm -f conftest.$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -s conftest.$ac_objext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_header_compiler=yes
7546 echo "$as_me: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7548 ac_header_compiler=no
7550 rm -f conftest.$ac_objext conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7552 echo "${ECHO_T}$ac_header_compiler" >&6
7554 # Is the header present?
7555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7558 #line $LINENO "configure"
7559 #include "confdefs.h"
7560 #include <$ac_header>
7562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7565 egrep -v '^ *\+' conftest.er1 >conftest.err
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } >/dev/null; then
7570 if test -s conftest.err; then
7571 ac_cpp_err=$ac_c_preproc_warn_flag
7578 if test -z "$ac_cpp_err"; then
7579 ac_header_preproc=yes
7581 echo "$as_me: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7583 ac_header_preproc=no
7585 rm -f conftest.err conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7587 echo "${ECHO_T}$ac_header_preproc" >&6
7589 # So? What about this header?
7590 case $ac_header_compiler:$ac_header_preproc in
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7604 echo "$as_me:$LINENO: checking for $ac_header" >&5
7605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 eval "$as_ac_Header=$ac_header_preproc"
7611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7616 cat >>confdefs.h <<_ACEOF
7617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7622 for ac_header in readline.h
7624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7634 # Is the header compilable?
7635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line $LINENO "configure"
7639 #include "confdefs.h"
7640 $ac_includes_default
7641 #include <$ac_header>
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_header_compiler=yes
7657 echo "$as_me: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7659 ac_header_compiler=no
7661 rm -f conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7663 echo "${ECHO_T}$ac_header_compiler" >&6
7665 # Is the header present?
7666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7669 #line $LINENO "configure"
7670 #include "confdefs.h"
7671 #include <$ac_header>
7673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7676 egrep -v '^ *\+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } >/dev/null; then
7681 if test -s conftest.err; then
7682 ac_cpp_err=$ac_c_preproc_warn_flag
7689 if test -z "$ac_cpp_err"; then
7690 ac_header_preproc=yes
7692 echo "$as_me: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 ac_header_preproc=no
7696 rm -f conftest.err conftest.$ac_ext
7697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7698 echo "${ECHO_T}$ac_header_preproc" >&6
7700 # So? What about this header?
7701 case $ac_header_compiler:$ac_header_preproc in
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7715 echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 eval "$as_ac_Header=$ac_header_preproc"
7722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7732 { { echo "$as_me:$LINENO: error: readline header not found
7733 If you have readline already installed, see config.log for details on the
7734 failure. It is possible the compiler isn't looking in the proper directory.
7735 Use --without-readline to disable readline support." >&5
7736 echo "$as_me: error: readline header not found
7737 If you have readline already installed, see config.log for details on the
7738 failure. It is possible the compiler isn't looking in the proper directory.
7739 Use --without-readline to disable readline support." >&2;}
7740 { (exit 1); exit 1; }; }
7754 for ac_header in readline/history.h
7756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7766 # Is the header compilable?
7767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $ac_includes_default
7773 #include <$ac_header>
7775 rm -f conftest.$ac_objext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777 (eval $ac_compile) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -s conftest.$ac_objext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 ac_header_compiler=yes
7789 echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ac_header_compiler=no
7793 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7803 #include <$ac_header>
7805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7808 egrep -v '^ *\+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } >/dev/null; then
7813 if test -s conftest.err; then
7814 ac_cpp_err=$ac_c_preproc_warn_flag
7821 if test -z "$ac_cpp_err"; then
7822 ac_header_preproc=yes
7824 echo "$as_me: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7826 ac_header_preproc=no
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7832 # So? What about this header?
7833 case $ac_header_compiler:$ac_header_preproc in
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7847 echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 eval "$as_ac_Header=$ac_header_preproc"
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7859 cat >>confdefs.h <<_ACEOF
7860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7865 for ac_header in editline/history.h
7867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7877 # Is the header compilable?
7878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7882 #include "confdefs.h"
7883 $ac_includes_default
7884 #include <$ac_header>
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -s conftest.$ac_objext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_header_compiler=yes
7900 echo "$as_me: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7902 ac_header_compiler=no
7904 rm -f conftest.$ac_objext conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7906 echo "${ECHO_T}$ac_header_compiler" >&6
7908 # Is the header present?
7909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7911 cat >conftest.$ac_ext <<_ACEOF
7912 #line $LINENO "configure"
7913 #include "confdefs.h"
7914 #include <$ac_header>
7916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7919 egrep -v '^ *\+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } >/dev/null; then
7924 if test -s conftest.err; then
7925 ac_cpp_err=$ac_c_preproc_warn_flag
7932 if test -z "$ac_cpp_err"; then
7933 ac_header_preproc=yes
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 ac_header_preproc=no
7939 rm -f conftest.err conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7941 echo "${ECHO_T}$ac_header_preproc" >&6
7943 # So? What about this header?
7944 case $ac_header_compiler:$ac_header_preproc in
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7958 echo "$as_me:$LINENO: checking for $ac_header" >&5
7959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 eval "$as_ac_Header=$ac_header_preproc"
7965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7970 cat >>confdefs.h <<_ACEOF
7971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7976 for ac_header in history.h
7978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7988 # Is the header compilable?
7989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 #include "confdefs.h"
7994 $ac_includes_default
7995 #include <$ac_header>
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999 (eval $ac_compile) 2>&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -s conftest.$ac_objext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8009 ac_header_compiler=yes
8011 echo "$as_me: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 ac_header_compiler=no
8015 rm -f conftest.$ac_objext conftest.$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8017 echo "${ECHO_T}$ac_header_compiler" >&6
8019 # Is the header present?
8020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8022 cat >conftest.$ac_ext <<_ACEOF
8023 #line $LINENO "configure"
8024 #include "confdefs.h"
8025 #include <$ac_header>
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8030 egrep -v '^ *\+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null; then
8035 if test -s conftest.err; then
8036 ac_cpp_err=$ac_c_preproc_warn_flag
8043 if test -z "$ac_cpp_err"; then
8044 ac_header_preproc=yes
8046 echo "$as_me: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 ac_header_preproc=no
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8054 # So? What about this header?
8055 case $ac_header_compiler:$ac_header_preproc in
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8069 echo "$as_me:$LINENO: checking for $ac_header" >&5
8070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 eval "$as_ac_Header=$ac_header_preproc"
8076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8081 cat >>confdefs.h <<_ACEOF
8082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086 { { echo "$as_me:$LINENO: error: history header not found
8087 If you have readline already installed, see config.log for details on the
8088 failure. It is possible the compiler isn't looking in the proper directory.
8089 Use --without-readline to disable readline support." >&5
8090 echo "$as_me: error: history header not found
8091 If you have readline already installed, see config.log for details on the
8092 failure. It is possible the compiler isn't looking in the proper directory.
8093 Use --without-readline to disable readline support." >&2;}
8094 { (exit 1); exit 1; }; }
8109 if test "$with_zlib" = yes; then
8110 if test "${ac_cv_header_zlib_h+set}" = set; then
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 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8117 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8119 # Is the header compilable?
8120 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8121 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line $LINENO "configure"
8124 #include "confdefs.h"
8125 $ac_includes_default
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_header_compiler=yes
8142 echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 ac_header_compiler=no
8146 rm -f conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8148 echo "${ECHO_T}$ac_header_compiler" >&6
8150 # Is the header present?
8151 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8152 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8155 #include "confdefs.h"
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8161 egrep -v '^ *\+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8174 if test -z "$ac_cpp_err"; then
8175 ac_header_preproc=yes
8177 echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 ac_header_preproc=no
8181 rm -f conftest.err conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183 echo "${ECHO_T}$ac_header_preproc" >&6
8185 # So? What about this header?
8186 case $ac_header_compiler:$ac_header_preproc in
8188 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8189 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8193 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8194 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8196 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8200 echo "$as_me:$LINENO: checking for zlib.h" >&5
8201 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8202 if test "${ac_cv_header_zlib_h+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 ac_cv_header_zlib_h=$ac_header_preproc
8207 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8208 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8211 if test $ac_cv_header_zlib_h = yes; then
8214 { { echo "$as_me:$LINENO: error: zlib header not found
8215 If you have zlib already installed, see config.log for details on the
8216 failure. It is possible the compiler isn't looking in the proper directory.
8217 Use --without-zlib to disable zlib support." >&5
8218 echo "$as_me: error: zlib header not found
8219 If you have zlib already installed, see config.log for details on the
8220 failure. It is possible the compiler isn't looking in the proper directory.
8221 Use --without-zlib to disable zlib support." >&2;}
8222 { (exit 1); exit 1; }; }
8228 if test "$with_krb4" = yes ; then
8229 if test "${ac_cv_header_krb_h+set}" = set; then
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 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8236 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8238 # Is the header compilable?
8239 echo "$as_me:$LINENO: checking krb.h usability" >&5
8240 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 #include "confdefs.h"
8244 $ac_includes_default
8247 rm -f conftest.$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 ac_header_compiler=yes
8261 echo "$as_me: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8263 ac_header_compiler=no
8265 rm -f conftest.$ac_objext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8267 echo "${ECHO_T}$ac_header_compiler" >&6
8269 # Is the header present?
8270 echo "$as_me:$LINENO: checking krb.h presence" >&5
8271 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8274 #include "confdefs.h"
8277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8280 egrep -v '^ *\+' conftest.er1 >conftest.err
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } >/dev/null; then
8285 if test -s conftest.err; then
8286 ac_cpp_err=$ac_c_preproc_warn_flag
8293 if test -z "$ac_cpp_err"; then
8294 ac_header_preproc=yes
8296 echo "$as_me: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8298 ac_header_preproc=no
8300 rm -f conftest.err conftest.$ac_ext
8301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8302 echo "${ECHO_T}$ac_header_preproc" >&6
8304 # So? What about this header?
8305 case $ac_header_compiler:$ac_header_preproc in
8307 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8308 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8309 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8310 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8312 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8313 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8314 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8315 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8316 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8317 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8319 echo "$as_me:$LINENO: checking for krb.h" >&5
8320 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8321 if test "${ac_cv_header_krb_h+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 ac_cv_header_krb_h=$ac_header_preproc
8326 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8327 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8330 if test $ac_cv_header_krb_h = yes; then
8333 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8334 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8335 { (exit 1); exit 1; }; }
8341 if test "$with_krb5" = yes ; then
8342 if test "${ac_cv_header_krb5_h+set}" = set; then
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 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8349 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8351 # Is the header compilable?
8352 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8353 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line $LINENO "configure"
8356 #include "confdefs.h"
8357 $ac_includes_default
8360 rm -f conftest.$ac_objext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -s conftest.$ac_objext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_header_compiler=yes
8374 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 ac_header_compiler=no
8378 rm -f conftest.$ac_objext conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8380 echo "${ECHO_T}$ac_header_compiler" >&6
8382 # Is the header present?
8383 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8384 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8385 cat >conftest.$ac_ext <<_ACEOF
8386 #line $LINENO "configure"
8387 #include "confdefs.h"
8390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8393 egrep -v '^ *\+' conftest.er1 >conftest.err
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } >/dev/null; then
8398 if test -s conftest.err; then
8399 ac_cpp_err=$ac_c_preproc_warn_flag
8406 if test -z "$ac_cpp_err"; then
8407 ac_header_preproc=yes
8409 echo "$as_me: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 ac_header_preproc=no
8413 rm -f conftest.err conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8415 echo "${ECHO_T}$ac_header_preproc" >&6
8417 # So? What about this header?
8418 case $ac_header_compiler:$ac_header_preproc in
8420 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8421 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8423 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8425 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8426 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8428 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8430 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8432 echo "$as_me:$LINENO: checking for krb5.h" >&5
8433 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8434 if test "${ac_cv_header_krb5_h+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 ac_cv_header_krb5_h=$ac_header_preproc
8439 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8440 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8443 if test $ac_cv_header_krb5_h = yes; then
8446 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8447 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8448 { (exit 1); exit 1; }; }
8452 if test "${ac_cv_header_com_err_h+set}" = set; then
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 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8461 # Is the header compilable?
8462 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8463 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 #include "confdefs.h"
8467 $ac_includes_default
8468 #include <com_err.h>
8470 rm -f conftest.$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -s conftest.$ac_objext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_header_compiler=yes
8484 echo "$as_me: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 ac_header_compiler=no
8488 rm -f conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8490 echo "${ECHO_T}$ac_header_compiler" >&6
8492 # Is the header present?
8493 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8494 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 #include "confdefs.h"
8498 #include <com_err.h>
8500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503 egrep -v '^ *\+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } >/dev/null; then
8508 if test -s conftest.err; then
8509 ac_cpp_err=$ac_c_preproc_warn_flag
8516 if test -z "$ac_cpp_err"; then
8517 ac_header_preproc=yes
8519 echo "$as_me: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8521 ac_header_preproc=no
8523 rm -f conftest.err conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8525 echo "${ECHO_T}$ac_header_preproc" >&6
8527 # So? What about this header?
8528 case $ac_header_compiler:$ac_header_preproc in
8530 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8531 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8533 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8535 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8542 echo "$as_me:$LINENO: checking for com_err.h" >&5
8543 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8544 if test "${ac_cv_header_com_err_h+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_cv_header_com_err_h=$ac_header_preproc
8549 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8550 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8553 if test $ac_cv_header_com_err_h = yes; then
8556 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8557 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8558 { (exit 1); exit 1; }; }
8564 if test "$with_openssl" = yes ; then
8565 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
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 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8572 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8574 # Is the header compilable?
8575 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8576 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8578 #line $LINENO "configure"
8579 #include "confdefs.h"
8580 $ac_includes_default
8581 #include <openssl/ssl.h>
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -s conftest.$ac_objext'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8595 ac_header_compiler=yes
8597 echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 ac_header_compiler=no
8601 rm -f conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8607 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8609 #line $LINENO "configure"
8610 #include "confdefs.h"
8611 #include <openssl/ssl.h>
8613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8616 egrep -v '^ *\+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } >/dev/null; then
8621 if test -s conftest.err; then
8622 ac_cpp_err=$ac_c_preproc_warn_flag
8629 if test -z "$ac_cpp_err"; then
8630 ac_header_preproc=yes
8632 echo "$as_me: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 ac_header_preproc=no
8636 rm -f conftest.err conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8638 echo "${ECHO_T}$ac_header_preproc" >&6
8640 # So? What about this header?
8641 case $ac_header_compiler:$ac_header_preproc in
8643 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8644 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8648 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8649 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8651 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8653 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8655 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8656 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8657 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8662 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8663 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8666 if test $ac_cv_header_openssl_ssl_h = yes; then
8669 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8670 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8671 { (exit 1); exit 1; }; }
8675 if test "${ac_cv_header_openssl_err_h+set}" = set; then
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 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8682 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8684 # Is the header compilable?
8685 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8686 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 #include "confdefs.h"
8690 $ac_includes_default
8691 #include <openssl/err.h>
8693 rm -f conftest.$ac_objext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -s conftest.$ac_objext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_header_compiler=yes
8707 echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8709 ac_header_compiler=no
8711 rm -f conftest.$ac_objext conftest.$ac_ext
8712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713 echo "${ECHO_T}$ac_header_compiler" >&6
8715 # Is the header present?
8716 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8717 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8718 cat >conftest.$ac_ext <<_ACEOF
8719 #line $LINENO "configure"
8720 #include "confdefs.h"
8721 #include <openssl/err.h>
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8726 egrep -v '^ *\+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } >/dev/null; then
8731 if test -s conftest.err; then
8732 ac_cpp_err=$ac_c_preproc_warn_flag
8739 if test -z "$ac_cpp_err"; then
8740 ac_header_preproc=yes
8742 echo "$as_me: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 ac_header_preproc=no
8746 rm -f conftest.err conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 echo "${ECHO_T}$ac_header_preproc" >&6
8750 # So? What about this header?
8751 case $ac_header_compiler:$ac_header_preproc in
8753 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8754 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8758 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8759 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8761 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8765 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8766 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8767 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_cv_header_openssl_err_h=$ac_header_preproc
8772 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8776 if test $ac_cv_header_openssl_err_h = yes; then
8779 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8780 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8781 { (exit 1); exit 1; }; }
8787 if test "$with_pam" = yes ; then
8789 for ac_header in security/pam_appl.h
8791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8801 # Is the header compilable?
8802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8806 #include "confdefs.h"
8807 $ac_includes_default
8808 #include <$ac_header>
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812 (eval $ac_compile) 2>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -s conftest.$ac_objext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_header_compiler=yes
8824 echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_header_compiler=no
8828 rm -f conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 #include <$ac_header>
8840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8843 egrep -v '^ *\+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } >/dev/null; then
8848 if test -s conftest.err; then
8849 ac_cpp_err=$ac_c_preproc_warn_flag
8856 if test -z "$ac_cpp_err"; then
8857 ac_header_preproc=yes
8859 echo "$as_me: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8861 ac_header_preproc=no
8863 rm -f conftest.err conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6
8867 # So? What about this header?
8868 case $ac_header_compiler:$ac_header_preproc in
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 eval "$as_ac_Header=$ac_header_preproc"
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8900 for ac_header in pam/pam_appl.h
8902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912 # Is the header compilable?
8913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line $LINENO "configure"
8917 #include "confdefs.h"
8918 $ac_includes_default
8919 #include <$ac_header>
8921 rm -f conftest.$ac_objext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8923 (eval $ac_compile) 2>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -s conftest.$ac_objext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_header_compiler=yes
8935 echo "$as_me: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8937 ac_header_compiler=no
8939 rm -f conftest.$ac_objext conftest.$ac_ext
8940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8941 echo "${ECHO_T}$ac_header_compiler" >&6
8943 # Is the header present?
8944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8947 #line $LINENO "configure"
8948 #include "confdefs.h"
8949 #include <$ac_header>
8951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8954 egrep -v '^ *\+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } >/dev/null; then
8959 if test -s conftest.err; then
8960 ac_cpp_err=$ac_c_preproc_warn_flag
8967 if test -z "$ac_cpp_err"; then
8968 ac_header_preproc=yes
8970 echo "$as_me: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 ac_header_preproc=no
8974 rm -f conftest.err conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8976 echo "${ECHO_T}$ac_header_preproc" >&6
8978 # So? What about this header?
8979 case $ac_header_compiler:$ac_header_preproc in
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8993 echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 eval "$as_ac_Header=$ac_header_preproc"
9000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9005 cat >>confdefs.h <<_ACEOF
9006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9010 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9011 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9012 { (exit 1); exit 1; }; }
9023 if test "$with_rendezvous" = yes ; then
9024 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
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 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9031 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9033 # Is the header compilable?
9034 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9035 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9038 #include "confdefs.h"
9039 $ac_includes_default
9040 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9042 rm -f conftest.$ac_objext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9044 (eval $ac_compile) 2>&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -s conftest.$ac_objext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_header_compiler=yes
9056 echo "$as_me: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9058 ac_header_compiler=no
9060 rm -f conftest.$ac_objext conftest.$ac_ext
9061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9062 echo "${ECHO_T}$ac_header_compiler" >&6
9064 # Is the header present?
9065 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9066 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9067 cat >conftest.$ac_ext <<_ACEOF
9068 #line $LINENO "configure"
9069 #include "confdefs.h"
9070 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9075 egrep -v '^ *\+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } >/dev/null; then
9080 if test -s conftest.err; then
9081 ac_cpp_err=$ac_c_preproc_warn_flag
9088 if test -z "$ac_cpp_err"; then
9089 ac_header_preproc=yes
9091 echo "$as_me: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9093 ac_header_preproc=no
9095 rm -f conftest.err conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9097 echo "${ECHO_T}$ac_header_preproc" >&6
9099 # So? What about this header?
9100 case $ac_header_compiler:$ac_header_preproc in
9102 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9103 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9105 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9107 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9108 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9109 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9110 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9112 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9114 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9115 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9116 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9121 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9122 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9125 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9128 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9129 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9130 { (exit 1); exit 1; }; }
9138 ## Types, structures, compiler characteristics
9142 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9143 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9144 if test "${ac_cv_c_const+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9148 #line $LINENO "configure"
9149 #include "confdefs.h"
9151 #ifdef F77_DUMMY_MAIN
9155 int F77_DUMMY_MAIN() { return 1; }
9160 /* FIXME: Include the comments suggested by Paul. */
9162 /* Ultrix mips cc rejects this. */
9163 typedef int charset[2];
9165 /* SunOS 4.1.1 cc rejects this. */
9166 char const *const *ccp;
9168 /* NEC SVR4.0.2 mips cc rejects this. */
9169 struct point {int x, y;};
9170 static struct point const zero = {0,0};
9171 /* AIX XL C 1.02.0.0 rejects this.
9172 It does not let you subtract one const X* pointer from another in
9173 an arm of an if-expression whose if-part is not a constant
9175 const char *g = "string";
9176 ccp = &g + (g ? g-g : 0);
9177 /* HPUX 7.0 cc rejects these. */
9180 ccp = (char const *const *) p;
9181 { /* SCO 3.2v4 cc rejects this. */
9183 char const *s = 0 ? (char *) 0 : (char const *) 0;
9187 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9189 const int *foo = &x[0];
9192 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9193 typedef const int *iptr;
9197 { /* AIX XL C 1.02.0.0 rejects this saying
9198 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9199 struct s { int j; const int *ap[3]; };
9200 struct s *b; b->j = 5;
9202 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -s conftest.$ac_objext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9225 echo "$as_me: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9229 rm -f conftest.$ac_objext conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9232 echo "${ECHO_T}$ac_cv_c_const" >&6
9233 if test $ac_cv_c_const = no; then
9235 cat >>confdefs.h <<\_ACEOF
9241 echo "$as_me:$LINENO: checking for inline" >&5
9242 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9243 if test "${ac_cv_c_inline+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 for ac_kw in inline __inline__ __inline; do
9248 cat >conftest.$ac_ext <<_ACEOF
9249 #line $LINENO "configure"
9250 #include "confdefs.h"
9252 static $ac_kw int static_foo () {return 0; }
9253 $ac_kw int foo () {return 0; }
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -s conftest.$ac_objext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 ac_cv_c_inline=$ac_kw; break
9271 echo "$as_me: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9278 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9279 echo "${ECHO_T}$ac_cv_c_inline" >&6
9280 case $ac_cv_c_inline in
9283 cat >>confdefs.h <<\_ACEOF
9287 *) cat >>confdefs.h <<_ACEOF
9288 #define inline $ac_cv_c_inline
9293 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9294 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9295 if test "${ac_cv_c_stringize+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9303 char *s = x(teststring);
9305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9306 egrep "#teststring" >/dev/null 2>&1; then
9307 ac_cv_c_stringize=no
9309 ac_cv_c_stringize=yes
9314 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9315 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9316 if test $ac_cv_c_stringize = yes; then
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_STRINGIZE 1
9324 echo "$as_me:$LINENO: checking for signed types" >&5
9325 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9326 if test "${pgac_cv_c_signed+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9331 #include "confdefs.h"
9333 #ifdef F77_DUMMY_MAIN
9337 int F77_DUMMY_MAIN() { return 1; }
9342 signed char c; signed short s; signed int i;
9347 rm -f conftest.$ac_objext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9349 (eval $ac_compile) 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -s conftest.$ac_objext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 pgac_cv_c_signed=yes
9361 echo "$as_me: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9365 rm -f conftest.$ac_objext conftest.$ac_ext
9367 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9368 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9369 if test x"$pgac_cv_c_signed" = xno ; then
9371 cat >>confdefs.h <<\_ACEOF
9376 echo "$as_me:$LINENO: checking for working volatile" >&5
9377 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9378 if test "${ac_cv_c_volatile+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 cat >conftest.$ac_ext <<_ACEOF
9382 #line $LINENO "configure"
9383 #include "confdefs.h"
9385 #ifdef F77_DUMMY_MAIN
9389 int F77_DUMMY_MAIN() { return 1; }
9401 rm -f conftest.$ac_objext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9403 (eval $ac_compile) 2>&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -s conftest.$ac_objext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_c_volatile=yes
9415 echo "$as_me: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9419 rm -f conftest.$ac_objext conftest.$ac_ext
9421 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9422 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9423 if test $ac_cv_c_volatile = no; then
9425 cat >>confdefs.h <<\_ACEOF
9431 echo "$as_me:$LINENO: checking for __func__" >&5
9432 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9433 if test "${pgac_cv_funcname_func_support+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9438 #include "confdefs.h"
9440 #ifdef F77_DUMMY_MAIN
9444 int F77_DUMMY_MAIN() { return 1; }
9449 printf("%s\n", __func__);
9454 rm -f conftest.$ac_objext
9455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456 (eval $ac_compile) 2>&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 pgac_cv_funcname_func_support=yes
9468 echo "$as_me: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 pgac_cv_funcname_func_support=no
9472 rm -f conftest.$ac_objext conftest.$ac_ext
9474 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9475 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9476 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9478 cat >>confdefs.h <<\_ACEOF
9479 #define HAVE_FUNCNAME__FUNC 1
9483 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9484 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9485 if test "${pgac_cv_funcname_function_support+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9489 #line $LINENO "configure"
9490 #include "confdefs.h"
9492 #ifdef F77_DUMMY_MAIN
9496 int F77_DUMMY_MAIN() { return 1; }
9501 printf("%s\n", __FUNCTION__);
9506 rm -f conftest.$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 pgac_cv_funcname_function_support=yes
9520 echo "$as_me: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 pgac_cv_funcname_function_support=no
9524 rm -f conftest.$ac_objext conftest.$ac_ext
9526 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9527 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9528 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9530 cat >>confdefs.h <<\_ACEOF
9531 #define HAVE_FUNCNAME__FUNCTION 1
9536 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9537 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9538 if test "${ac_cv_struct_tm+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9542 #line $LINENO "configure"
9543 #include "confdefs.h"
9544 #include <sys/types.h>
9547 #ifdef F77_DUMMY_MAIN
9551 int F77_DUMMY_MAIN() { return 1; }
9556 struct tm *tp; tp->tm_sec;
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try='test -s conftest.$ac_objext'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; }; then
9573 ac_cv_struct_tm=time.h
9575 echo "$as_me: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9577 ac_cv_struct_tm=sys/time.h
9579 rm -f conftest.$ac_objext conftest.$ac_ext
9581 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9582 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9583 if test $ac_cv_struct_tm = sys/time.h; then
9585 cat >>confdefs.h <<\_ACEOF
9586 #define TM_IN_SYS_TIME 1
9591 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9592 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9593 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 cat >conftest.$ac_ext <<_ACEOF
9597 #line $LINENO "configure"
9598 #include "confdefs.h"
9599 #include <sys/types.h>
9600 #include <$ac_cv_struct_tm>
9603 #ifdef F77_DUMMY_MAIN
9607 int F77_DUMMY_MAIN() { return 1; }
9612 static struct tm ac_aggr;
9613 if (ac_aggr.tm_zone)
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_member_struct_tm_tm_zone=yes
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 ac_cv_member_struct_tm_tm_zone=no
9637 rm -f conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9640 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9641 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define HAVE_STRUCT_TM_TM_ZONE 1
9650 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9652 cat >>confdefs.h <<\_ACEOF
9653 #define HAVE_TM_ZONE 1
9657 echo "$as_me:$LINENO: checking for tzname" >&5
9658 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9659 if test "${ac_cv_var_tzname+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 cat >conftest.$ac_ext <<_ACEOF
9663 #line $LINENO "configure"
9664 #include "confdefs.h"
9666 #ifndef tzname /* For SGI. */
9667 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9670 #ifdef F77_DUMMY_MAIN
9674 int F77_DUMMY_MAIN() { return 1; }
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_var_tzname=yes
9698 echo "$as_me: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9705 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9706 if test $ac_cv_var_tzname = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_TZNAME 1
9714 echo "$as_me:$LINENO: checking for union semun" >&5
9715 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9716 if test "${ac_cv_type_union_semun+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 cat >conftest.$ac_ext <<_ACEOF
9720 #line $LINENO "configure"
9721 #include "confdefs.h"
9722 #include <sys/types.h>
9723 #include <sys/ipc.h>
9724 #include <sys/sem.h>
9726 #ifdef F77_DUMMY_MAIN
9730 int F77_DUMMY_MAIN() { return 1; }
9735 if ((union semun *) 0)
9737 if (sizeof (union semun))
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_type_union_semun=yes
9757 echo "$as_me: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 ac_cv_type_union_semun=no
9761 rm -f conftest.$ac_objext conftest.$ac_ext
9763 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9764 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9765 if test $ac_cv_type_union_semun = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768 #define HAVE_UNION_SEMUN 1
9774 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9775 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9776 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 #include "confdefs.h"
9782 #include <sys/types.h>
9783 #ifdef HAVE_SYS_UN_H
9788 #ifdef F77_DUMMY_MAIN
9792 int F77_DUMMY_MAIN() { return 1; }
9797 if ((struct sockaddr_un *) 0)
9799 if (sizeof (struct sockaddr_un))
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807 (eval $ac_compile) 2>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try='test -s conftest.$ac_objext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_cv_type_struct_sockaddr_un=yes
9819 echo "$as_me: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 ac_cv_type_struct_sockaddr_un=no
9823 rm -f conftest.$ac_objext conftest.$ac_ext
9825 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9826 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9827 if test $ac_cv_type_struct_sockaddr_un = yes; then
9829 cat >>confdefs.h <<_ACEOF
9830 #define HAVE_STRUCT_SOCKADDR_UN 1
9834 cat >>confdefs.h <<\_ACEOF
9835 #define HAVE_UNIX_SOCKETS 1
9840 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9841 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9842 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9847 #include "confdefs.h"
9848 #include <sys/types.h>
9849 #ifdef HAVE_SYS_SOCKET_H
9850 #include <sys/socket.h>
9854 #ifdef F77_DUMMY_MAIN
9858 int F77_DUMMY_MAIN() { return 1; }
9863 if ((struct sockaddr_storage *) 0)
9865 if (sizeof (struct sockaddr_storage))
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873 (eval $ac_compile) 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_type_struct_sockaddr_storage=yes
9885 echo "$as_me: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 ac_cv_type_struct_sockaddr_storage=no
9889 rm -f conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9892 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9893 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9895 cat >>confdefs.h <<_ACEOF
9896 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9902 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9903 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9904 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 #include "confdefs.h"
9910 #include <sys/types.h>
9911 #ifdef HAVE_SYS_SOCKET_H
9912 #include <sys/socket.h>
9916 #ifdef F77_DUMMY_MAIN
9920 int F77_DUMMY_MAIN() { return 1; }
9925 static struct sockaddr_storage ac_aggr;
9926 if (ac_aggr.ss_family)
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -s conftest.$ac_objext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9946 echo "$as_me: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 ac_cv_member_struct_sockaddr_storage_ss_family=no
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9953 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9954 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9962 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9963 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9964 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 cat >conftest.$ac_ext <<_ACEOF
9968 #line $LINENO "configure"
9969 #include "confdefs.h"
9970 #include <sys/types.h>
9971 #ifdef HAVE_SYS_SOCKET_H
9972 #include <sys/socket.h>
9976 #ifdef F77_DUMMY_MAIN
9980 int F77_DUMMY_MAIN() { return 1; }
9985 static struct sockaddr_storage ac_aggr;
9986 if (ac_aggr.__ss_family)
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10006 echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 ac_cv_member_struct_sockaddr_storage___ss_family=no
10010 rm -f conftest.$ac_objext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10013 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10014 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10022 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10023 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10024 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_SOCKET_H
10032 #include <sys/socket.h>
10036 #ifdef F77_DUMMY_MAIN
10037 # ifdef __cplusplus
10040 int F77_DUMMY_MAIN() { return 1; }
10045 static struct sockaddr_storage ac_aggr;
10046 if (ac_aggr.ss_len)
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest.$ac_objext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10066 echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_member_struct_sockaddr_storage_ss_len=no
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10073 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10074 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10082 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10083 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10084 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10091 #ifdef HAVE_SYS_SOCKET_H
10092 #include <sys/socket.h>
10096 #ifdef F77_DUMMY_MAIN
10097 # ifdef __cplusplus
10100 int F77_DUMMY_MAIN() { return 1; }
10105 static struct sockaddr_storage ac_aggr;
10106 if (ac_aggr.__ss_len)
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest.$ac_objext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10126 echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_member_struct_sockaddr_storage___ss_len=no
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10133 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10134 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10142 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10143 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10144 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <sys/types.h>
10151 #ifdef HAVE_SYS_SOCKET_H
10152 #include <sys/socket.h>
10156 #ifdef F77_DUMMY_MAIN
10157 # ifdef __cplusplus
10160 int F77_DUMMY_MAIN() { return 1; }
10165 static struct sockaddr ac_aggr;
10166 if (ac_aggr.sa_len)
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_member_struct_sockaddr_sa_len=yes
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_member_struct_sockaddr_sa_len=no
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10193 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10194 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10203 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10204 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10205 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 cat >conftest.$ac_ext <<_ACEOF
10209 #line $LINENO "configure"
10210 #include "confdefs.h"
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10216 #ifdef F77_DUMMY_MAIN
10217 # ifdef __cplusplus
10220 int F77_DUMMY_MAIN() { return 1; }
10225 if ((struct addrinfo *) 0)
10227 if (sizeof (struct addrinfo))
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -s conftest.$ac_objext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_type_struct_addrinfo=yes
10247 echo "$as_me: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 ac_cv_type_struct_addrinfo=no
10251 rm -f conftest.$ac_objext conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10254 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10255 if test $ac_cv_type_struct_addrinfo = yes; then
10257 cat >>confdefs.h <<_ACEOF
10258 #define HAVE_STRUCT_ADDRINFO 1
10265 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10266 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10267 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10272 #include "confdefs.h"
10273 #include <sys/param.h>
10274 #include <sys/types.h>
10275 #include <sys/socket.h>
10276 #include <sys/ucred.h>
10278 #ifdef F77_DUMMY_MAIN
10279 # ifdef __cplusplus
10282 int F77_DUMMY_MAIN() { return 1; }
10287 if ((struct cmsgcred *) 0)
10289 if (sizeof (struct cmsgcred))
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_type_struct_cmsgcred=yes
10309 echo "$as_me: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10311 ac_cv_type_struct_cmsgcred=no
10313 rm -f conftest.$ac_objext conftest.$ac_ext
10315 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10316 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10317 if test $ac_cv_type_struct_cmsgcred = yes; then
10319 cat >>confdefs.h <<_ACEOF
10320 #define HAVE_STRUCT_CMSGCRED 1
10325 echo "$as_me:$LINENO: checking for struct fcred" >&5
10326 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10327 if test "${ac_cv_type_struct_fcred+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333 #include <sys/param.h>
10334 #include <sys/types.h>
10335 #include <sys/socket.h>
10336 #include <sys/ucred.h>
10338 #ifdef F77_DUMMY_MAIN
10339 # ifdef __cplusplus
10342 int F77_DUMMY_MAIN() { return 1; }
10347 if ((struct fcred *) 0)
10349 if (sizeof (struct fcred))
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_cv_type_struct_fcred=yes
10369 echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 ac_cv_type_struct_fcred=no
10373 rm -f conftest.$ac_objext conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10376 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10377 if test $ac_cv_type_struct_fcred = yes; then
10379 cat >>confdefs.h <<_ACEOF
10380 #define HAVE_STRUCT_FCRED 1
10385 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10386 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10387 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 #include "confdefs.h"
10393 #include <sys/param.h>
10394 #include <sys/types.h>
10395 #include <sys/socket.h>
10396 #include <sys/ucred.h>
10398 #ifdef F77_DUMMY_MAIN
10399 # ifdef __cplusplus
10402 int F77_DUMMY_MAIN() { return 1; }
10407 if ((struct sockcred *) 0)
10409 if (sizeof (struct sockcred))
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417 (eval $ac_compile) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_cv_type_struct_sockcred=yes
10429 echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 ac_cv_type_struct_sockcred=no
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10435 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10436 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10437 if test $ac_cv_type_struct_sockcred = yes; then
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_SOCKCRED 1
10447 echo "$as_me:$LINENO: checking for struct option" >&5
10448 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10449 if test "${ac_cv_type_struct_option+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 cat >conftest.$ac_ext <<_ACEOF
10453 #line $LINENO "configure"
10454 #include "confdefs.h"
10455 #ifdef HAVE_GETOPT_H
10456 #include <getopt.h>
10459 #ifdef F77_DUMMY_MAIN
10460 # ifdef __cplusplus
10463 int F77_DUMMY_MAIN() { return 1; }
10468 if ((struct option *) 0)
10470 if (sizeof (struct option))
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_type_struct_option=yes
10490 echo "$as_me: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 ac_cv_type_struct_option=no
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10497 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10498 if test $ac_cv_type_struct_option = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_STRUCT_OPTION 1
10508 if test "$with_zlib" = yes; then
10509 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10510 # did not). While we could work around the lack of z_streamp, it
10511 # seems unwise to encourage people to use such old zlib versions...
10512 echo "$as_me:$LINENO: checking for z_streamp" >&5
10513 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10514 if test "${ac_cv_type_z_streamp+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 cat >conftest.$ac_ext <<_ACEOF
10518 #line $LINENO "configure"
10519 #include "confdefs.h"
10522 #ifdef F77_DUMMY_MAIN
10523 # ifdef __cplusplus
10526 int F77_DUMMY_MAIN() { return 1; }
10531 if ((z_streamp *) 0)
10533 if (sizeof (z_streamp))
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541 (eval $ac_compile) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_type_z_streamp=yes
10553 echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_type_z_streamp=no
10557 rm -f conftest.$ac_objext conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10560 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10561 if test $ac_cv_type_z_streamp = yes; then
10564 { { echo "$as_me:$LINENO: error: zlib version is too old
10565 Use --without-zlib to disable zlib support." >&5
10566 echo "$as_me: error: zlib version is too old
10567 Use --without-zlib to disable zlib support." >&2;}
10568 { (exit 1); exit 1; }; }
10573 if test "$with_krb5" = yes; then
10574 # Check for differences between MIT and Heimdal (KTH) releases
10575 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10576 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10577 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 #include "confdefs.h"
10585 #ifdef F77_DUMMY_MAIN
10586 # ifdef __cplusplus
10589 int F77_DUMMY_MAIN() { return 1; }
10594 static krb5_ticket ac_aggr;
10595 if (ac_aggr.enc_part2)
10601 rm -f conftest.$ac_objext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603 (eval $ac_compile) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 ac_cv_member_krb5_ticket_enc_part2=yes
10615 echo "$as_me: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10617 ac_cv_member_krb5_ticket_enc_part2=no
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10621 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10622 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10623 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_KRB5_TICKET_ENC_PART2 1
10631 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10632 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10633 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10641 #ifdef F77_DUMMY_MAIN
10642 # ifdef __cplusplus
10645 int F77_DUMMY_MAIN() { return 1; }
10650 static krb5_ticket ac_aggr;
10651 if (ac_aggr.client)
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -s conftest.$ac_objext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_member_krb5_ticket_client=yes
10671 echo "$as_me: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 ac_cv_member_krb5_ticket_client=no
10675 rm -f conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10678 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10679 if test $ac_cv_member_krb5_ticket_client = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_KRB5_TICKET_CLIENT 1
10687 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10688 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10689 { (exit 1); exit 1; }; }
10694 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10695 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10696 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10700 #line $LINENO "configure"
10701 #include "confdefs.h"
10704 #ifdef F77_DUMMY_MAIN
10705 # ifdef __cplusplus
10708 int F77_DUMMY_MAIN() { return 1; }
10713 static krb5_error ac_aggr;
10714 if (ac_aggr.text.data)
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ac_cv_member_krb5_error_text_data=yes
10734 echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 ac_cv_member_krb5_error_text_data=no
10738 rm -f conftest.$ac_objext conftest.$ac_ext
10740 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10741 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10742 if test $ac_cv_member_krb5_error_text_data = yes; then
10744 cat >>confdefs.h <<_ACEOF
10745 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10750 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10751 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10752 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 #include "confdefs.h"
10760 #ifdef F77_DUMMY_MAIN
10761 # ifdef __cplusplus
10764 int F77_DUMMY_MAIN() { return 1; }
10769 static krb5_error ac_aggr;
10770 if (ac_aggr.e_data)
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_member_krb5_error_e_data=yes
10790 echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 ac_cv_member_krb5_error_e_data=no
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10797 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10798 if test $ac_cv_member_krb5_error_e_data = yes; then
10800 cat >>confdefs.h <<_ACEOF
10801 #define HAVE_KRB5_ERROR_E_DATA 1
10806 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10807 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10808 { (exit 1); exit 1; }; }
10817 ## Functions, global variables
10820 echo "$as_me:$LINENO: checking for int timezone" >&5
10821 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10822 if test "${pgac_cv_var_int_timezone+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10830 #ifdef F77_DUMMY_MAIN
10831 # ifdef __cplusplus
10834 int F77_DUMMY_MAIN() { return 1; }
10839 res = timezone / 60;
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 pgac_cv_var_int_timezone=yes
10858 echo "$as_me: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10860 pgac_cv_var_int_timezone=no
10862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10864 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10865 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10866 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10868 cat >>confdefs.h <<\_ACEOF
10869 #define HAVE_INT_TIMEZONE
10873 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10874 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10875 if test "${ac_cv_func_accept_return+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 if test "${ac_cv_func_accept_arg1+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 if test "${ac_cv_func_accept_arg2+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 if test "${ac_cv_func_accept_arg3+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10888 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10889 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10890 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10891 cat >conftest.$ac_ext <<_ACEOF
10892 #line $LINENO "configure"
10893 #include "confdefs.h"
10894 #ifdef HAVE_SYS_TYPES_H
10895 #include <sys/types.h>
10897 #ifdef HAVE_SYS_SOCKET_H
10898 #include <sys/socket.h>
10900 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10901 #ifdef F77_DUMMY_MAIN
10902 # ifdef __cplusplus
10905 int F77_DUMMY_MAIN() { return 1; }
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917 (eval $ac_compile) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -s conftest.$ac_objext'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 ac_not_found=no; break 4
10929 echo "$as_me: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10933 rm -f conftest.$ac_objext conftest.$ac_ext
10938 if test "$ac_not_found" = yes; then
10939 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10940 echo "$as_me: error: could not determine argument types" >&2;}
10941 { (exit 1); exit 1; }; }
10943 if test "$ac_cv_func_accept_arg3" = "void"; then
10944 ac_cv_func_accept_arg3=int
10954 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
10955 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10957 cat >>confdefs.h <<_ACEOF
10958 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10962 cat >>confdefs.h <<_ACEOF
10963 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10967 cat >>confdefs.h <<_ACEOF
10968 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10972 cat >>confdefs.h <<_ACEOF
10973 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10977 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10978 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10979 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 cat >conftest.$ac_ext <<_ACEOF
10983 #line $LINENO "configure"
10984 #include "confdefs.h"
10985 #include <sys/time.h>
10986 #ifdef F77_DUMMY_MAIN
10987 # ifdef __cplusplus
10990 int F77_DUMMY_MAIN() { return 1; }
10995 struct timeval *tp;
10996 struct timezone *tzp;
10997 gettimeofday(tp,tzp);
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -s conftest.$ac_objext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 pgac_cv_func_gettimeofday_1arg=no
11016 echo "$as_me: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 pgac_cv_func_gettimeofday_1arg=yes
11020 rm -f conftest.$ac_objext conftest.$ac_ext
11022 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11023 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11024 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11026 cat >>confdefs.h <<\_ACEOF
11027 #define GETTIMEOFDAY_1ARG
11034 # SunOS doesn't handle negative byte comparisons properly with +/- return
11035 echo "$as_me:$LINENO: checking for working memcmp" >&5
11036 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11037 if test "${ac_cv_func_memcmp_working+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 if test "$cross_compiling" = yes; then
11041 ac_cv_func_memcmp_working=no
11043 cat >conftest.$ac_ext <<_ACEOF
11044 #line $LINENO "configure"
11045 #include "confdefs.h"
11047 #ifdef F77_DUMMY_MAIN
11048 # ifdef __cplusplus
11051 int F77_DUMMY_MAIN() { return 1; }
11057 /* Some versions of memcmp are not 8-bit clean. */
11058 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11059 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11062 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11063 or more and with at least one buffer not starting on a 4-byte boundary.
11064 William Lewis provided this test program. */
11069 for (i = 0; i < 4; i++)
11073 strcpy (a, "--------01111111");
11074 strcpy (b, "--------10000000");
11075 if (memcmp (a, b, 16) >= 0)
11085 rm -f 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); } && { ac_try='./conftest$ac_exeext'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 ac_cv_func_memcmp_working=yes
11098 echo "$as_me: program exited with status $ac_status" >&5
11099 echo "$as_me: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11101 ( exit $ac_status )
11102 ac_cv_func_memcmp_working=no
11104 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11107 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11108 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11109 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11128 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11133 if eval "test \"\${$as_ac_var+set}\" = set"; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11137 #line $LINENO "configure"
11138 #include "confdefs.h"
11139 /* System header to define __stub macros and hopefully few prototypes,
11140 which can conflict with char $ac_func (); below. */
11141 #include <assert.h>
11142 /* Override any gcc2 internal prototype to avoid an error. */
11146 /* We use char because int might match the return type of a gcc2
11147 builtin and then its argument prototype would still apply. */
11151 #ifdef F77_DUMMY_MAIN
11152 # ifdef __cplusplus
11155 int F77_DUMMY_MAIN() { return 1; }
11160 /* The GNU C library defines this for functions which it implements
11161 to always fail with ENOSYS. Some functions are actually named
11162 something starting with __ and the normal name is an alias. */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11175 (eval $ac_link) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -s conftest$ac_exeext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 eval "$as_ac_var=yes"
11187 echo "$as_me: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11189 eval "$as_ac_var=no"
11191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11195 if test `eval echo '${'$as_ac_var'}'` = yes; then
11196 cat >>confdefs.h <<_ACEOF
11197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11204 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11205 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11206 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 cat >conftest.$ac_ext <<_ACEOF
11210 #line $LINENO "configure"
11211 #include "confdefs.h"
11212 #include <unistd.h>
11214 #ifdef F77_DUMMY_MAIN
11215 # ifdef __cplusplus
11218 int F77_DUMMY_MAIN() { return 1; }
11224 char *p = (char *) fdatasync;
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_have_decl_fdatasync=yes
11245 echo "$as_me: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11247 ac_cv_have_decl_fdatasync=no
11249 rm -f conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11253 if test $ac_cv_have_decl_fdatasync = yes; then
11255 cat >>confdefs.h <<_ACEOF
11256 #define HAVE_DECL_FDATASYNC 1
11261 cat >>confdefs.h <<_ACEOF
11262 #define HAVE_DECL_FDATASYNC 0
11271 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11272 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11273 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 cat >conftest.$ac_ext <<_ACEOF
11277 #line $LINENO "configure"
11278 #include "confdefs.h"
11279 $ac_includes_default
11280 #include <netinet/in.h>
11282 #ifdef F77_DUMMY_MAIN
11283 # ifdef __cplusplus
11286 int F77_DUMMY_MAIN() { return 1; }
11291 if ((struct sockaddr_in6 *) 0)
11293 if (sizeof (struct sockaddr_in6))
11299 rm -f conftest.$ac_objext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11301 (eval $ac_compile) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_cv_type_struct_sockaddr_in6=yes
11313 echo "$as_me: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 ac_cv_type_struct_sockaddr_in6=no
11317 rm -f conftest.$ac_objext conftest.$ac_ext
11319 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11320 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11321 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11322 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11323 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11324 if test "${ac_cv_func_inet_ntop+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 cat >conftest.$ac_ext <<_ACEOF
11328 #line $LINENO "configure"
11329 #include "confdefs.h"
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char inet_ntop (); below. */
11332 #include <assert.h>
11333 /* Override any gcc2 internal prototype to avoid an error. */
11337 /* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11342 #ifdef F77_DUMMY_MAIN
11343 # ifdef __cplusplus
11346 int F77_DUMMY_MAIN() { return 1; }
11351 /* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -s conftest$ac_exeext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_func_inet_ntop=yes
11378 echo "$as_me: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11380 ac_cv_func_inet_ntop=no
11382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11384 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11385 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11386 if test $ac_cv_func_inet_ntop = yes; then
11388 cat >>confdefs.h <<\_ACEOF
11389 #define HAVE_IPV6 1
11399 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11400 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11401 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 cat >conftest.$ac_ext <<_ACEOF
11405 #line $LINENO "configure"
11406 #include "confdefs.h"
11407 #include <machine/vmparam.h>
11408 #include <sys/exec.h>
11410 #ifdef F77_DUMMY_MAIN
11411 # ifdef __cplusplus
11414 int F77_DUMMY_MAIN() { return 1; }
11419 PS_STRINGS->ps_nargvstr = 1;
11420 PS_STRINGS->ps_argvstr = "foo";
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } &&
11431 { ac_try='test -s conftest$ac_exeext'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 pgac_cv_var_PS_STRINGS=yes
11439 echo "$as_me: failed program was:" >&5
11440 cat conftest.$ac_ext >&5
11441 pgac_cv_var_PS_STRINGS=no
11443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11445 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11446 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11447 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11449 cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_PS_STRINGS
11456 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11457 # is missing. Yes, there are machines that have only one. We may
11458 # also decide to use snprintf.c if snprintf() is present but does not
11459 # have working "long long int" support -- see below.
11461 pgac_need_repl_snprintf=no
11463 for ac_func in snprintf
11465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11466 echo "$as_me:$LINENO: checking for $ac_func" >&5
11467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11468 if eval "test \"\${$as_ac_var+set}\" = set"; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 cat >conftest.$ac_ext <<_ACEOF
11472 #line $LINENO "configure"
11473 #include "confdefs.h"
11474 /* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char $ac_func (); below. */
11476 #include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error. */
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11486 #ifdef F77_DUMMY_MAIN
11487 # ifdef __cplusplus
11490 int F77_DUMMY_MAIN() { return 1; }
11495 /* The GNU C library defines this for functions which it implements
11496 to always fail with ENOSYS. Some functions are actually named
11497 something starting with __ and the normal name is an alias. */
11498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -s conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 eval "$as_ac_var=yes"
11522 echo "$as_me: failed program was:" >&5
11523 cat conftest.$ac_ext >&5
11524 eval "$as_ac_var=no"
11526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11536 pgac_need_repl_snprintf=yes
11541 for ac_func in vsnprintf
11543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11544 echo "$as_me:$LINENO: checking for $ac_func" >&5
11545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11546 if eval "test \"\${$as_ac_var+set}\" = set"; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 cat >conftest.$ac_ext <<_ACEOF
11550 #line $LINENO "configure"
11551 #include "confdefs.h"
11552 /* System header to define __stub macros and hopefully few prototypes,
11553 which can conflict with char $ac_func (); below. */
11554 #include <assert.h>
11555 /* Override any gcc2 internal prototype to avoid an error. */
11559 /* We use char because int might match the return type of a gcc2
11560 builtin and then its argument prototype would still apply. */
11564 #ifdef F77_DUMMY_MAIN
11565 # ifdef __cplusplus
11568 int F77_DUMMY_MAIN() { return 1; }
11573 /* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588 (eval $ac_link) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -s conftest$ac_exeext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 eval "$as_ac_var=yes"
11600 echo "$as_me: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 eval "$as_ac_var=no"
11604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11608 if test `eval echo '${'$as_ac_var'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11614 pgac_need_repl_snprintf=yes
11620 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11621 # include/c.h will provide declarations. Note this is a separate test
11622 # from whether the functions exist in the C library --- there are
11623 # systems that have the functions but don't bother to declare them :-(
11625 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11626 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11627 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.$ac_ext <<_ACEOF
11631 #line $LINENO "configure"
11632 #include "confdefs.h"
11633 $ac_includes_default
11634 #ifdef F77_DUMMY_MAIN
11635 # ifdef __cplusplus
11638 int F77_DUMMY_MAIN() { return 1; }
11644 char *p = (char *) snprintf;
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_have_decl_snprintf=yes
11665 echo "$as_me: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 ac_cv_have_decl_snprintf=no
11669 rm -f conftest.$ac_objext conftest.$ac_ext
11671 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11672 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11673 if test $ac_cv_have_decl_snprintf = yes; then
11675 cat >>confdefs.h <<_ACEOF
11676 #define HAVE_DECL_SNPRINTF 1
11681 cat >>confdefs.h <<_ACEOF
11682 #define HAVE_DECL_SNPRINTF 0
11687 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11688 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11689 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11693 #line $LINENO "configure"
11694 #include "confdefs.h"
11695 $ac_includes_default
11696 #ifdef F77_DUMMY_MAIN
11697 # ifdef __cplusplus
11700 int F77_DUMMY_MAIN() { return 1; }
11706 char *p = (char *) vsnprintf;
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -s conftest.$ac_objext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_cv_have_decl_vsnprintf=yes
11727 echo "$as_me: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 ac_cv_have_decl_vsnprintf=no
11731 rm -f conftest.$ac_objext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11734 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11735 if test $ac_cv_have_decl_vsnprintf = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738 #define HAVE_DECL_VSNPRINTF 1
11743 cat >>confdefs.h <<_ACEOF
11744 #define HAVE_DECL_VSNPRINTF 0
11753 # do this one the hard way in case isinf() is a macro
11754 echo "$as_me:$LINENO: checking for isinf" >&5
11755 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11756 if test "${ac_cv_func_isinf+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 cat >conftest.$ac_ext <<_ACEOF
11760 #line $LINENO "configure"
11761 #include "confdefs.h"
11764 #ifdef F77_DUMMY_MAIN
11765 # ifdef __cplusplus
11768 int F77_DUMMY_MAIN() { return 1; }
11773 double x = 0.0; int res = isinf(x);
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_func_isinf=yes
11792 echo "$as_me: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11794 ac_cv_func_isinf=no
11796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11799 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11801 if test $ac_cv_func_isinf = yes ; then
11803 cat >>confdefs.h <<\_ACEOF
11804 #define HAVE_ISINF 1
11808 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11809 # Look for a way to implement a substitute for isinf()
11814 for ac_func in fpclass fp_class fp_class_d class
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11819 if eval "test \"\${$as_ac_var+set}\" = set"; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11823 #line $LINENO "configure"
11824 #include "confdefs.h"
11825 /* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char $ac_func (); below. */
11827 #include <assert.h>
11828 /* Override any gcc2 internal prototype to avoid an error. */
11832 /* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11837 #ifdef F77_DUMMY_MAIN
11838 # ifdef __cplusplus
11841 int F77_DUMMY_MAIN() { return 1; }
11846 /* The GNU C library defines this for functions which it implements
11847 to always fail with ENOSYS. Some functions are actually named
11848 something starting with __ and the normal name is an alias. */
11849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 eval "$as_ac_var=yes"
11873 echo "$as_me: failed program was:" >&5
11874 cat conftest.$ac_ext >&5
11875 eval "$as_ac_var=no"
11877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11904 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907 echo "$as_me:$LINENO: checking for $ac_func" >&5
11908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11909 if eval "test \"\${$as_ac_var+set}\" = set"; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 cat >conftest.$ac_ext <<_ACEOF
11913 #line $LINENO "configure"
11914 #include "confdefs.h"
11915 /* System header to define __stub macros and hopefully few prototypes,
11916 which can conflict with char $ac_func (); below. */
11917 #include <assert.h>
11918 /* Override any gcc2 internal prototype to avoid an error. */
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11927 #ifdef F77_DUMMY_MAIN
11928 # ifdef __cplusplus
11931 int F77_DUMMY_MAIN() { return 1; }
11936 /* The GNU C library defines this for functions which it implements
11937 to always fail with ENOSYS. Some functions are actually named
11938 something starting with __ and the normal name is an alias. */
11939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest$ac_exeext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 eval "$as_ac_var=yes"
11963 echo "$as_me: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 eval "$as_ac_var=no"
11967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11971 if test `eval echo '${'$as_ac_var'}'` = yes; then
11972 cat >>confdefs.h <<_ACEOF
11973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11983 # system's version of getaddrinfo(), if any, may be used only if we found
11984 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11985 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11987 for ac_func in getaddrinfo
11989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11990 echo "$as_me:$LINENO: checking for $ac_func" >&5
11991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11992 if eval "test \"\${$as_ac_var+set}\" = set"; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 cat >conftest.$ac_ext <<_ACEOF
11996 #line $LINENO "configure"
11997 #include "confdefs.h"
11998 /* System header to define __stub macros and hopefully few prototypes,
11999 which can conflict with char $ac_func (); below. */
12000 #include <assert.h>
12001 /* Override any gcc2 internal prototype to avoid an error. */
12005 /* We use char because int might match the return type of a gcc2
12006 builtin and then its argument prototype would still apply. */
12010 #ifdef F77_DUMMY_MAIN
12011 # ifdef __cplusplus
12014 int F77_DUMMY_MAIN() { return 1; }
12019 /* The GNU C library defines this for functions which it implements
12020 to always fail with ENOSYS. Some functions are actually named
12021 something starting with __ and the normal name is an alias. */
12022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034 (eval $ac_link) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 eval "$as_ac_var=yes"
12046 echo "$as_me: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 eval "$as_ac_var=no"
12050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12054 if test `eval echo '${'$as_ac_var'}'` = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12060 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12066 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12069 # similarly, use system's getopt_long() only if system provides struct option.
12070 if test x"$ac_cv_type_struct_option" = xyes ; then
12072 for ac_func in getopt_long
12074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12075 echo "$as_me:$LINENO: checking for $ac_func" >&5
12076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12077 if eval "test \"\${$as_ac_var+set}\" = set"; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083 /* System header to define __stub macros and hopefully few prototypes,
12084 which can conflict with char $ac_func (); below. */
12085 #include <assert.h>
12086 /* Override any gcc2 internal prototype to avoid an error. */
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12095 #ifdef F77_DUMMY_MAIN
12096 # ifdef __cplusplus
12099 int F77_DUMMY_MAIN() { return 1; }
12104 /* The GNU C library defines this for functions which it implements
12105 to always fail with ENOSYS. Some functions are actually named
12106 something starting with __ and the normal name is an alias. */
12107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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 eval "$as_ac_var=yes"
12131 echo "$as_me: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 eval "$as_ac_var=no"
12135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12139 if test `eval echo '${'$as_ac_var'}'` = yes; then
12140 cat >>confdefs.h <<_ACEOF
12141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12151 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12154 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12155 # We override the previous test that said fseeko/ftello didn't exist
12156 # OS tests are also done in include/c.h and port/fseeko.c
12157 case $host_os in bsdi*|netbsd*)
12158 ac_cv_func_fseeko=yes
12161 # Solaris has a very slow qsort in certain cases, so we replace it.
12162 case $host_os in solaris*)
12163 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12166 # Win32 can't to rename or unlink on an open file
12167 case $host_os in mingw*)
12168 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12169 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12170 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12173 if test "$with_readline" = yes; then
12174 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12175 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12177 #line $LINENO "configure"
12178 #include "confdefs.h"
12180 #ifdef HAVE_READLINE_READLINE_H
12181 # include <readline/readline.h>
12182 #elif defined(HAVE_READLINE_H)
12183 # include <readline.h>
12186 #ifdef F77_DUMMY_MAIN
12187 # ifdef __cplusplus
12190 int F77_DUMMY_MAIN() { return 1; }
12195 rl_completion_append_character = 'x';
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12202 (eval $ac_link) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 echo "$as_me:$LINENO: result: yes" >&5
12213 echo "${ECHO_T}yes" >&6
12215 cat >>confdefs.h <<\_ACEOF
12216 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12220 echo "$as_me: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222 echo "$as_me:$LINENO: result: no" >&5
12223 echo "${ECHO_T}no" >&6
12225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12228 for ac_func in rl_completion_matches rl_filename_completion_function
12230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12231 echo "$as_me:$LINENO: checking for $ac_func" >&5
12232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12233 if eval "test \"\${$as_ac_var+set}\" = set"; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12237 #line $LINENO "configure"
12238 #include "confdefs.h"
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below. */
12241 #include <assert.h>
12242 /* Override any gcc2 internal prototype to avoid an error. */
12246 /* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12251 #ifdef F77_DUMMY_MAIN
12252 # ifdef __cplusplus
12255 int F77_DUMMY_MAIN() { return 1; }
12260 /* The GNU C library defines this for functions which it implements
12261 to always fail with ENOSYS. Some functions are actually named
12262 something starting with __ and the normal name is an alias. */
12263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275 (eval $ac_link) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -s conftest$ac_exeext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 eval "$as_ac_var=yes"
12287 echo "$as_me: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 eval "$as_ac_var=no"
12291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12295 if test `eval echo '${'$as_ac_var'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12304 for ac_func in replace_history_entry
12306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12307 echo "$as_me:$LINENO: checking for $ac_func" >&5
12308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12309 if eval "test \"\${$as_ac_var+set}\" = set"; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12314 #include "confdefs.h"
12315 /* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char $ac_func (); below. */
12317 #include <assert.h>
12318 /* Override any gcc2 internal prototype to avoid an error. */
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12327 #ifdef F77_DUMMY_MAIN
12328 # ifdef __cplusplus
12331 int F77_DUMMY_MAIN() { return 1; }
12336 /* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -s conftest$ac_exeext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 eval "$as_ac_var=yes"
12363 echo "$as_me: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 eval "$as_ac_var=no"
12367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12371 if test `eval echo '${'$as_ac_var'}'` = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12382 echo "$as_me:$LINENO: checking for finite" >&5
12383 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 #include "confdefs.h"
12388 #ifdef F77_DUMMY_MAIN
12389 # ifdef __cplusplus
12392 int F77_DUMMY_MAIN() { return 1; }
12397 int dummy=finite(1.0);
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_FINITE 1
12419 echo "$as_me:$LINENO: result: yes" >&5
12420 echo "${ECHO_T}yes" >&6
12422 echo "$as_me: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 echo "$as_me:$LINENO: result: no" >&5
12425 echo "${ECHO_T}no" >&6
12427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12429 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12430 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12431 cat >conftest.$ac_ext <<_ACEOF
12432 #line $LINENO "configure"
12433 #include "confdefs.h"
12434 #include <setjmp.h>
12435 #ifdef F77_DUMMY_MAIN
12436 # ifdef __cplusplus
12439 int F77_DUMMY_MAIN() { return 1; }
12444 sigjmp_buf x; sigsetjmp(x, 1);
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12451 (eval $ac_link) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -s conftest$ac_exeext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_SIGSETJMP 1
12466 echo "$as_me:$LINENO: result: yes" >&5
12467 echo "${ECHO_T}yes" >&6
12469 echo "$as_me: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12471 echo "$as_me:$LINENO: result: no" >&5
12472 echo "${ECHO_T}no" >&6
12474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12476 echo "$as_me:$LINENO: checking for syslog" >&5
12477 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12478 if test "${ac_cv_func_syslog+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12483 #include "confdefs.h"
12484 /* System header to define __stub macros and hopefully few prototypes,
12485 which can conflict with char syslog (); below. */
12486 #include <assert.h>
12487 /* Override any gcc2 internal prototype to avoid an error. */
12491 /* We use char because int might match the return type of a gcc2
12492 builtin and then its argument prototype would still apply. */
12496 #ifdef F77_DUMMY_MAIN
12497 # ifdef __cplusplus
12500 int F77_DUMMY_MAIN() { return 1; }
12505 /* The GNU C library defines this for functions which it implements
12506 to always fail with ENOSYS. Some functions are actually named
12507 something starting with __ and the normal name is an alias. */
12508 #if defined (__stub_syslog) || defined (__stub___syslog)
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest$ac_exeext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_func_syslog=yes
12532 echo "$as_me: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12534 ac_cv_func_syslog=no
12536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12538 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12539 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12540 if test $ac_cv_func_syslog = yes; then
12541 if test "${ac_cv_header_syslog_h+set}" = set; then
12542 echo "$as_me:$LINENO: checking for syslog.h" >&5
12543 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12544 if test "${ac_cv_header_syslog_h+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12548 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12550 # Is the header compilable?
12551 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12552 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12553 cat >conftest.$ac_ext <<_ACEOF
12554 #line $LINENO "configure"
12555 #include "confdefs.h"
12556 $ac_includes_default
12557 #include <syslog.h>
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -s conftest.$ac_objext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_header_compiler=yes
12573 echo "$as_me: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 ac_header_compiler=no
12577 rm -f conftest.$ac_objext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12579 echo "${ECHO_T}$ac_header_compiler" >&6
12581 # Is the header present?
12582 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12583 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12587 #include <syslog.h>
12589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12592 egrep -v '^ *\+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } >/dev/null; then
12597 if test -s conftest.err; then
12598 ac_cpp_err=$ac_c_preproc_warn_flag
12605 if test -z "$ac_cpp_err"; then
12606 ac_header_preproc=yes
12608 echo "$as_me: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12610 ac_header_preproc=no
12612 rm -f conftest.err conftest.$ac_ext
12613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12614 echo "${ECHO_T}$ac_header_preproc" >&6
12616 # So? What about this header?
12617 case $ac_header_compiler:$ac_header_preproc in
12619 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12620 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12624 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12629 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12631 echo "$as_me:$LINENO: checking for syslog.h" >&5
12632 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12633 if test "${ac_cv_header_syslog_h+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 ac_cv_header_syslog_h=$ac_header_preproc
12638 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12639 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12642 if test $ac_cv_header_syslog_h = yes; then
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_SYSLOG 1
12654 echo "$as_me:$LINENO: checking for optreset" >&5
12655 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12656 if test "${pgac_cv_var_int_optreset+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 cat >conftest.$ac_ext <<_ACEOF
12660 #line $LINENO "configure"
12661 #include "confdefs.h"
12662 #include <unistd.h>
12663 #ifdef F77_DUMMY_MAIN
12664 # ifdef __cplusplus
12667 int F77_DUMMY_MAIN() { return 1; }
12672 extern int optreset; optreset = 1;
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679 (eval $ac_link) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -s conftest$ac_exeext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 pgac_cv_var_int_optreset=yes
12691 echo "$as_me: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 pgac_cv_var_int_optreset=no
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12698 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12699 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12701 cat >>confdefs.h <<\_ACEOF
12702 #define HAVE_INT_OPTRESET 1
12709 for ac_func in strtoll strtoq
12711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12712 echo "$as_me:$LINENO: checking for $ac_func" >&5
12713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12714 if eval "test \"\${$as_ac_var+set}\" = set"; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12719 #include "confdefs.h"
12720 /* System header to define __stub macros and hopefully few prototypes,
12721 which can conflict with char $ac_func (); below. */
12722 #include <assert.h>
12723 /* Override any gcc2 internal prototype to avoid an error. */
12727 /* We use char because int might match the return type of a gcc2
12728 builtin and then its argument prototype would still apply. */
12732 #ifdef F77_DUMMY_MAIN
12733 # ifdef __cplusplus
12736 int F77_DUMMY_MAIN() { return 1; }
12741 /* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 eval "$as_ac_var=yes"
12768 echo "$as_me: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 eval "$as_ac_var=no"
12772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12776 if test `eval echo '${'$as_ac_var'}'` = yes; then
12777 cat >>confdefs.h <<_ACEOF
12778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12786 for ac_func in strtoull strtouq
12788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12789 echo "$as_me:$LINENO: checking for $ac_func" >&5
12790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12791 if eval "test \"\${$as_ac_var+set}\" = set"; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12794 cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12796 #include "confdefs.h"
12797 /* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below. */
12799 #include <assert.h>
12800 /* Override any gcc2 internal prototype to avoid an error. */
12804 /* We use char because int might match the return type of a gcc2
12805 builtin and then its argument prototype would still apply. */
12809 #ifdef F77_DUMMY_MAIN
12810 # ifdef __cplusplus
12813 int F77_DUMMY_MAIN() { return 1; }
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 eval "$as_ac_var=yes"
12845 echo "$as_me: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 eval "$as_ac_var=no"
12849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12853 if test `eval echo '${'$as_ac_var'}'` = yes; then
12854 cat >>confdefs.h <<_ACEOF
12855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12862 # Check for one of atexit() or on_exit()
12864 for ac_func in atexit
12866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12867 echo "$as_me:$LINENO: checking for $ac_func" >&5
12868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12869 if eval "test \"\${$as_ac_var+set}\" = set"; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 cat >conftest.$ac_ext <<_ACEOF
12873 #line $LINENO "configure"
12874 #include "confdefs.h"
12875 /* System header to define __stub macros and hopefully few prototypes,
12876 which can conflict with char $ac_func (); below. */
12877 #include <assert.h>
12878 /* Override any gcc2 internal prototype to avoid an error. */
12882 /* We use char because int might match the return type of a gcc2
12883 builtin and then its argument prototype would still apply. */
12887 #ifdef F77_DUMMY_MAIN
12888 # ifdef __cplusplus
12891 int F77_DUMMY_MAIN() { return 1; }
12896 /* The GNU C library defines this for functions which it implements
12897 to always fail with ENOSYS. Some functions are actually named
12898 something starting with __ and the normal name is an alias. */
12899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12909 rm -f conftest.$ac_objext conftest$ac_exeext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12911 (eval $ac_link) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 eval "$as_ac_var=yes"
12923 echo "$as_me: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12925 eval "$as_ac_var=no"
12927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12931 if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 for ac_func in on_exit
12940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 echo "$as_me:$LINENO: checking for $ac_func" >&5
12942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12943 if eval "test \"\${$as_ac_var+set}\" = set"; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 cat >conftest.$ac_ext <<_ACEOF
12947 #line $LINENO "configure"
12948 #include "confdefs.h"
12949 /* System header to define __stub macros and hopefully few prototypes,
12950 which can conflict with char $ac_func (); below. */
12951 #include <assert.h>
12952 /* Override any gcc2 internal prototype to avoid an error. */
12956 /* We use char because int might match the return type of a gcc2
12957 builtin and then its argument prototype would still apply. */
12961 #ifdef F77_DUMMY_MAIN
12962 # ifdef __cplusplus
12965 int F77_DUMMY_MAIN() { return 1; }
12970 /* The GNU C library defines this for functions which it implements
12971 to always fail with ENOSYS. Some functions are actually named
12972 something starting with __ and the normal name is an alias. */
12973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985 (eval $ac_link) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -s conftest$ac_exeext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 eval "$as_ac_var=yes"
12997 echo "$as_me: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
12999 eval "$as_ac_var=no"
13001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13005 if test `eval echo '${'$as_ac_var'}'` = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13011 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13012 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13013 { (exit 1); exit 1; }; }
13021 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13022 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13023 if test "${ac_cv_sys_largefile_source+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 ac_cv_sys_largefile_source=no
13028 cat >conftest.$ac_ext <<_ACEOF
13029 #line $LINENO "configure"
13030 #include "confdefs.h"
13032 #ifdef F77_DUMMY_MAIN
13033 # ifdef __cplusplus
13036 int F77_DUMMY_MAIN() { return 1; }
13046 rm -f conftest.$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
13052 { ac_try='test -s conftest.$ac_objext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13060 echo "$as_me: failed program was:" >&5
13061 cat conftest.$ac_ext >&5
13063 rm -f conftest.$ac_objext conftest.$ac_ext
13064 cat >conftest.$ac_ext <<_ACEOF
13065 #line $LINENO "configure"
13066 #include "confdefs.h"
13067 #define _LARGEFILE_SOURCE 1
13069 #ifdef F77_DUMMY_MAIN
13070 # ifdef __cplusplus
13073 int F77_DUMMY_MAIN() { return 1; }
13083 rm -f conftest.$ac_objext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -s conftest.$ac_objext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_cv_sys_largefile_source=1; break
13097 echo "$as_me: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13100 rm -f conftest.$ac_objext conftest.$ac_ext
13104 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13105 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13106 if test "$ac_cv_sys_largefile_source" != no; then
13108 cat >>confdefs.h <<_ACEOF
13109 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13115 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13116 # in glibc 2.1.3, but that breaks too many other things.
13117 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13118 echo "$as_me:$LINENO: checking for fseeko" >&5
13119 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13120 if test "${ac_cv_func_fseeko+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 cat >conftest.$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13127 #ifdef F77_DUMMY_MAIN
13128 # ifdef __cplusplus
13131 int F77_DUMMY_MAIN() { return 1; }
13136 return fseeko && fseeko (stdin, 0, 0);
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13143 (eval $ac_link) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_func_fseeko=yes
13155 echo "$as_me: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13157 ac_cv_func_fseeko=no
13159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13161 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13162 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13163 if test $ac_cv_func_fseeko = yes; then
13165 cat >>confdefs.h <<\_ACEOF
13166 #define HAVE_FSEEKO 1
13175 # For each platform, we need to know about any special compile and link
13176 # libraries, and whether the normal C function names are thread-safe.
13177 # See the comment at the top of src/port/thread.c for more information.
13179 if test "$enable_thread_safety" = yes; then
13180 if test "${ac_cv_header_pthread_h+set}" = set; then
13181 echo "$as_me:$LINENO: checking for pthread.h" >&5
13182 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13183 if test "${ac_cv_header_pthread_h+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13187 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13189 # Is the header compilable?
13190 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13191 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13193 #line $LINENO "configure"
13194 #include "confdefs.h"
13195 $ac_includes_default
13196 #include <pthread.h>
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_header_compiler=yes
13212 echo "$as_me: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 ac_header_compiler=no
13216 rm -f conftest.$ac_objext conftest.$ac_ext
13217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13218 echo "${ECHO_T}$ac_header_compiler" >&6
13220 # Is the header present?
13221 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13222 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13224 #line $LINENO "configure"
13225 #include "confdefs.h"
13226 #include <pthread.h>
13228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13231 egrep -v '^ *\+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } >/dev/null; then
13236 if test -s conftest.err; then
13237 ac_cpp_err=$ac_c_preproc_warn_flag
13244 if test -z "$ac_cpp_err"; then
13245 ac_header_preproc=yes
13247 echo "$as_me: failed program was:" >&5
13248 cat conftest.$ac_ext >&5
13249 ac_header_preproc=no
13251 rm -f conftest.err conftest.$ac_ext
13252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13253 echo "${ECHO_T}$ac_header_preproc" >&6
13255 # So? What about this header?
13256 case $ac_header_compiler:$ac_header_preproc in
13258 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13259 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13261 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13263 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13264 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13266 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13270 echo "$as_me:$LINENO: checking for pthread.h" >&5
13271 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13272 if test "${ac_cv_header_pthread_h+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 ac_cv_header_pthread_h=$ac_header_preproc
13277 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13278 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13281 if test $ac_cv_header_pthread_h = yes; then
13284 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13285 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13286 { (exit 1); exit 1; }; }
13291 if test "$THREAD_SUPPORT" != yes; then
13292 { { echo "$as_me:$LINENO: error:
13293 Cannot enable threads on your platform.
13294 Please report your platform threading info to the PostgreSQL mailing lists
13295 so it can be added to the next release. Report all compile flags, link flags,
13296 functions, or libraries required for threading support.
13297 See the comment at the top of src/port/thread.c for more information.
13299 echo "$as_me: error:
13300 Cannot enable threads on your platform.
13301 Please report your platform threading info to the PostgreSQL mailing lists
13302 so it can be added to the next release. Report all compile flags, link flags,
13303 functions, or libraries required for threading support.
13304 See the comment at the top of src/port/thread.c for more information.
13306 { (exit 1); exit 1; }; }
13309 # do not use values from template file
13319 # Check for re-entrant versions of certain functions
13321 # Include special flags if threads are enabled _and_ if required for
13322 # threading on this platform. Some platforms have *_r functions but
13323 # their natively named funcs are threadsafe, and should be used instead.
13325 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13326 # functions are marked "not found", which is perfect.
13328 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13331 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13332 LIBS="$LIBS $THREAD_LIBS"
13336 for ac_func in strerror_r getpwuid_r gethostbyname_r
13338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13339 echo "$as_me:$LINENO: checking for $ac_func" >&5
13340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_var+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 cat >conftest.$ac_ext <<_ACEOF
13345 #line $LINENO "configure"
13346 #include "confdefs.h"
13347 /* System header to define __stub macros and hopefully few prototypes,
13348 which can conflict with char $ac_func (); below. */
13349 #include <assert.h>
13350 /* Override any gcc2 internal prototype to avoid an error. */
13354 /* We use char because int might match the return type of a gcc2
13355 builtin and then its argument prototype would still apply. */
13359 #ifdef F77_DUMMY_MAIN
13360 # ifdef __cplusplus
13363 int F77_DUMMY_MAIN() { return 1; }
13368 /* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383 (eval $ac_link) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -s conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 eval "$as_ac_var=yes"
13395 echo "$as_me: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13397 eval "$as_ac_var=no"
13399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13403 if test `eval echo '${'$as_ac_var'}'` = yes; then
13404 cat >>confdefs.h <<_ACEOF
13405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13416 # This test makes sure that run tests work at all. Sometimes a shared
13417 # library is found by the linker, but the runtime linker can't find it.
13418 # This check should come after all modifications of compiler or linker
13419 # variables, and before any other run tests.
13420 echo "$as_me:$LINENO: checking test program" >&5
13421 echo $ECHO_N "checking test program... $ECHO_C" >&6
13422 if test "$cross_compiling" = yes; then
13423 echo "$as_me:$LINENO: result: cross-compiling" >&5
13424 echo "${ECHO_T}cross-compiling" >&6
13426 cat >conftest.$ac_ext <<_ACEOF
13427 #line $LINENO "configure"
13428 #include "confdefs.h"
13429 int main() { return 0; }
13431 rm -f conftest$ac_exeext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433 (eval $ac_link) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 echo "$as_me:$LINENO: result: ok" >&5
13443 echo "${ECHO_T}ok" >&6
13445 echo "$as_me: program exited with status $ac_status" >&5
13446 echo "$as_me: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 ( exit $ac_status )
13449 echo "$as_me:$LINENO: result: failed" >&5
13450 echo "${ECHO_T}failed" >&6
13451 { { echo "$as_me:$LINENO: error:
13452 *** Could not execute a simple test program. This may be a problem
13453 *** related to locating shared libraries. Check the file 'config.log'
13454 *** for the exact reason." >&5
13455 echo "$as_me: error:
13456 *** Could not execute a simple test program. This may be a problem
13457 *** related to locating shared libraries. Check the file 'config.log'
13458 *** for the exact reason." >&2;}
13459 { (exit 1); exit 1; }; }
13461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13466 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13467 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13468 if test "${pgac_cv_type_long_int_64+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 if test "$cross_compiling" = yes; then
13472 # If cross-compiling, check the size reported by the compiler and
13473 # trust that the arithmetic works.
13474 cat >conftest.$ac_ext <<_ACEOF
13475 #line $LINENO "configure"
13476 #include "confdefs.h"
13478 #ifdef F77_DUMMY_MAIN
13479 # ifdef __cplusplus
13482 int F77_DUMMY_MAIN() { return 1; }
13487 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13494 rm -f conftest.$ac_objext
13495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13496 (eval $ac_compile) 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -s conftest.$ac_objext'
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; }; then
13506 pgac_cv_type_long_int_64=yes
13508 echo "$as_me: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13510 pgac_cv_type_long_int_64=no
13512 rm -f conftest.$ac_objext conftest.$ac_ext
13514 cat >conftest.$ac_ext <<_ACEOF
13515 #line $LINENO "configure"
13516 #include "confdefs.h"
13517 typedef long int int64;
13520 * These are globals to discourage the compiler from folding all the
13521 * arithmetic tests down to compile-time constants.
13523 int64 a = 20000001;
13524 int64 b = 40000005;
13526 int does_int64_work()
13530 if (sizeof(int64) != 8)
13531 return 0; /* definitely not the right size */
13533 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13541 exit(! does_int64_work());
13544 rm -f conftest$ac_exeext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13546 (eval $ac_link) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 pgac_cv_type_long_int_64=yes
13557 echo "$as_me: program exited with status $ac_status" >&5
13558 echo "$as_me: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13560 ( exit $ac_status )
13561 pgac_cv_type_long_int_64=no
13563 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13566 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13567 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13569 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13570 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define HAVE_LONG_INT_64
13579 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13580 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13581 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13582 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 if test "$cross_compiling" = yes; then
13586 # If cross-compiling, check the size reported by the compiler and
13587 # trust that the arithmetic works.
13588 cat >conftest.$ac_ext <<_ACEOF
13589 #line $LINENO "configure"
13590 #include "confdefs.h"
13592 #ifdef F77_DUMMY_MAIN
13593 # ifdef __cplusplus
13596 int F77_DUMMY_MAIN() { return 1; }
13601 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -s conftest.$ac_objext'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 pgac_cv_type_long_long_int_64=yes
13622 echo "$as_me: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13624 pgac_cv_type_long_long_int_64=no
13626 rm -f conftest.$ac_objext conftest.$ac_ext
13628 cat >conftest.$ac_ext <<_ACEOF
13629 #line $LINENO "configure"
13630 #include "confdefs.h"
13631 typedef long long int int64;
13634 * These are globals to discourage the compiler from folding all the
13635 * arithmetic tests down to compile-time constants.
13637 int64 a = 20000001;
13638 int64 b = 40000005;
13640 int does_int64_work()
13644 if (sizeof(int64) != 8)
13645 return 0; /* definitely not the right size */
13647 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13655 exit(! does_int64_work());
13658 rm -f conftest$ac_exeext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13660 (eval $ac_link) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
13669 pgac_cv_type_long_long_int_64=yes
13671 echo "$as_me: program exited with status $ac_status" >&5
13672 echo "$as_me: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13674 ( exit $ac_status )
13675 pgac_cv_type_long_long_int_64=no
13677 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13680 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13681 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13683 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13684 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13686 cat >>confdefs.h <<\_ACEOF
13687 #define HAVE_LONG_LONG_INT_64
13696 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13697 cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 #include "confdefs.h"
13701 #define INT64CONST(x) x##LL
13702 long long int foo = INT64CONST(0x1234567890123456);
13704 #ifdef F77_DUMMY_MAIN
13705 # ifdef __cplusplus
13708 int F77_DUMMY_MAIN() { return 1; }
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13731 cat >>confdefs.h <<\_ACEOF
13732 #define HAVE_LL_CONSTANTS 1
13736 echo "$as_me: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13739 rm -f conftest.$ac_objext conftest.$ac_ext
13743 # If we found "long int" is 64 bits, assume snprintf handles it. If
13744 # we found we need to use "long long int", better check. We cope with
13745 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13746 # neither works, fall back to our own snprintf emulation (which we
13749 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13750 if test $pgac_need_repl_snprintf = no; then
13751 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13752 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13753 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 for pgac_format in '%lld' '%qd' '%I64d'; do
13757 if test "$cross_compiling" = yes; then
13758 pgac_cv_snprintf_long_long_int_format=cross; break
13760 cat >conftest.$ac_ext <<_ACEOF
13761 #line $LINENO "configure"
13762 #include "confdefs.h"
13764 typedef long long int int64;
13765 #define INT64_FORMAT "$pgac_format"
13767 int64 a = 20000001;
13768 int64 b = 40000005;
13770 int does_int64_snprintf_work()
13775 if (sizeof(int64) != 8)
13776 return 0; /* doesn't look like the right size */
13779 snprintf(buf, 100, INT64_FORMAT, c);
13780 if (strcmp(buf, "800000140000005") != 0)
13781 return 0; /* either multiply or snprintf is busted */
13785 exit(! does_int64_snprintf_work());
13788 rm -f conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790 (eval $ac_link) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13801 echo "$as_me: program exited with status $ac_status" >&5
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13805 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810 LONG_LONG_INT_FORMAT=''
13812 case $pgac_cv_snprintf_long_long_int_format in
13813 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13814 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13815 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13816 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13817 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13818 *) echo "$as_me:$LINENO: result: none" >&5
13819 echo "${ECHO_T}none" >&6;;
13821 if test "$LONG_LONG_INT_FORMAT" = ""; then
13822 # Force usage of our own snprintf, since system snprintf is broken
13823 pgac_need_repl_snprintf=yes
13824 LONG_LONG_INT_FORMAT='%lld'
13827 # Here if we previously decided we needed to use our own snprintf
13828 LONG_LONG_INT_FORMAT='%lld'
13830 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13832 # Here if we are not using 'long long int' at all
13833 INT64_FORMAT='"%ld"'
13837 cat >>confdefs.h <<_ACEOF
13838 #define INT64_FORMAT $INT64_FORMAT
13842 if test $pgac_need_repl_snprintf = yes; then
13843 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13846 # Need a #define for the size of Datum (unsigned long)
13847 echo "$as_me:$LINENO: checking for unsigned long" >&5
13848 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13849 if test "${ac_cv_type_unsigned_long+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 cat >conftest.$ac_ext <<_ACEOF
13853 #line $LINENO "configure"
13854 #include "confdefs.h"
13855 $ac_includes_default
13856 #ifdef F77_DUMMY_MAIN
13857 # ifdef __cplusplus
13860 int F77_DUMMY_MAIN() { return 1; }
13865 if ((unsigned long *) 0)
13867 if (sizeof (unsigned long))
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875 (eval $ac_compile) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -s conftest.$ac_objext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_type_unsigned_long=yes
13887 echo "$as_me: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 ac_cv_type_unsigned_long=no
13891 rm -f conftest.$ac_objext conftest.$ac_ext
13893 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13894 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13896 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13897 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13898 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 if test "$ac_cv_type_unsigned_long" = yes; then
13902 # The cast to unsigned long works around a bug in the HP C Compiler
13903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13905 # This bug is HP SR number 8606223364.
13906 if test "$cross_compiling" = yes; then
13907 # Depending upon the size, compute the lo and hi bounds.
13908 cat >conftest.$ac_ext <<_ACEOF
13909 #line $LINENO "configure"
13910 #include "confdefs.h"
13911 $ac_includes_default
13912 #ifdef F77_DUMMY_MAIN
13913 # ifdef __cplusplus
13916 int F77_DUMMY_MAIN() { return 1; }
13921 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13928 rm -f conftest.$ac_objext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13930 (eval $ac_compile) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -s conftest.$ac_objext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13942 cat >conftest.$ac_ext <<_ACEOF
13943 #line $LINENO "configure"
13944 #include "confdefs.h"
13945 $ac_includes_default
13946 #ifdef F77_DUMMY_MAIN
13947 # ifdef __cplusplus
13950 int F77_DUMMY_MAIN() { return 1; }
13955 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -s conftest.$ac_objext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_hi=$ac_mid; break
13976 echo "$as_me: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 ac_lo=`expr $ac_mid + 1`
13979 if test $ac_lo -le $ac_mid; then
13983 ac_mid=`expr 2 '*' $ac_mid + 1`
13985 rm -f conftest.$ac_objext conftest.$ac_ext
13988 echo "$as_me: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13992 #include "confdefs.h"
13993 $ac_includes_default
13994 #ifdef F77_DUMMY_MAIN
13995 # ifdef __cplusplus
13998 int F77_DUMMY_MAIN() { return 1; }
14003 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -s conftest.$ac_objext'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14024 cat >conftest.$ac_ext <<_ACEOF
14025 #line $LINENO "configure"
14026 #include "confdefs.h"
14027 $ac_includes_default
14028 #ifdef F77_DUMMY_MAIN
14029 # ifdef __cplusplus
14032 int F77_DUMMY_MAIN() { return 1; }
14037 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046 (eval $ac_compile) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
14050 { ac_try='test -s conftest.$ac_objext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_lo=$ac_mid; break
14058 echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 ac_hi=`expr '(' $ac_mid ')' - 1`
14061 if test $ac_mid -le $ac_hi; then
14065 ac_mid=`expr 2 '*' $ac_mid`
14067 rm -f conftest.$ac_objext conftest.$ac_ext
14070 echo "$as_me: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14074 rm -f conftest.$ac_objext conftest.$ac_ext
14076 rm -f conftest.$ac_objext conftest.$ac_ext
14077 # Binary search between lo and hi bounds.
14078 while test "x$ac_lo" != "x$ac_hi"; do
14079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14080 cat >conftest.$ac_ext <<_ACEOF
14081 #line $LINENO "configure"
14082 #include "confdefs.h"
14083 $ac_includes_default
14084 #ifdef F77_DUMMY_MAIN
14085 # ifdef __cplusplus
14088 int F77_DUMMY_MAIN() { return 1; }
14093 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14100 rm -f conftest.$ac_objext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14114 echo "$as_me: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116 ac_lo=`expr '(' $ac_mid ')' + 1`
14118 rm -f conftest.$ac_objext conftest.$ac_ext
14121 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14122 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14123 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14124 { (exit 1); exit 1; }; } ;;
14127 if test "$cross_compiling" = yes; then
14128 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14129 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14130 { (exit 1); exit 1; }; }
14132 cat >conftest.$ac_ext <<_ACEOF
14133 #line $LINENO "configure"
14134 #include "confdefs.h"
14135 $ac_includes_default
14136 long longval () { return (long) (sizeof (unsigned long)); }
14137 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14139 #include <stdlib.h>
14140 #ifdef F77_DUMMY_MAIN
14141 # ifdef __cplusplus
14144 int F77_DUMMY_MAIN() { return 1; }
14150 FILE *f = fopen ("conftest.val", "w");
14153 if (((long) (sizeof (unsigned long))) < 0)
14155 long i = longval ();
14156 if (i != ((long) (sizeof (unsigned long))))
14158 fprintf (f, "%ld\n", i);
14162 unsigned long i = ulongval ();
14163 if (i != ((long) (sizeof (unsigned long))))
14165 fprintf (f, "%lu\n", i);
14167 exit (ferror (f) || fclose (f) != 0);
14173 rm -f conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175 (eval $ac_link) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14186 echo "$as_me: program exited with status $ac_status" >&5
14187 echo "$as_me: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14189 ( exit $ac_status )
14190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14191 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14192 { (exit 1); exit 1; }; }
14194 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14199 ac_cv_sizeof_unsigned_long=0
14202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14203 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14204 cat >>confdefs.h <<_ACEOF
14205 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14210 # Determine memory alignment requirements for the basic C data types.
14212 echo "$as_me:$LINENO: checking for short" >&5
14213 echo $ECHO_N "checking for short... $ECHO_C" >&6
14214 if test "${ac_cv_type_short+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 cat >conftest.$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14219 #include "confdefs.h"
14220 $ac_includes_default
14221 #ifdef F77_DUMMY_MAIN
14222 # ifdef __cplusplus
14225 int F77_DUMMY_MAIN() { return 1; }
14232 if (sizeof (short))
14238 rm -f conftest.$ac_objext
14239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14240 (eval $ac_compile) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -s conftest.$ac_objext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_cv_type_short=yes
14252 echo "$as_me: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14254 ac_cv_type_short=no
14256 rm -f conftest.$ac_objext conftest.$ac_ext
14258 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14259 echo "${ECHO_T}$ac_cv_type_short" >&6
14261 echo "$as_me:$LINENO: checking alignment of short" >&5
14262 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14263 if test "${pgac_cv_alignof_short+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 if test "$ac_cv_type_short" = yes; then
14267 if test "$cross_compiling" = yes; then
14268 # Depending upon the size, compute the lo and hi bounds.
14269 cat >conftest.$ac_ext <<_ACEOF
14270 #line $LINENO "configure"
14271 #include "confdefs.h"
14272 $ac_includes_default
14273 struct { char filler; short field; } pgac_struct;
14274 #ifdef F77_DUMMY_MAIN
14275 # ifdef __cplusplus
14278 int F77_DUMMY_MAIN() { return 1; }
14283 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14290 rm -f conftest.$ac_objext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292 (eval $ac_compile) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -s conftest.$ac_objext'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14304 cat >conftest.$ac_ext <<_ACEOF
14305 #line $LINENO "configure"
14306 #include "confdefs.h"
14307 $ac_includes_default
14308 struct { char filler; short field; } pgac_struct;
14309 #ifdef F77_DUMMY_MAIN
14310 # ifdef __cplusplus
14313 int F77_DUMMY_MAIN() { return 1; }
14318 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327 (eval $ac_compile) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -s conftest.$ac_objext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_hi=$ac_mid; break
14339 echo "$as_me: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 ac_lo=`expr $ac_mid + 1`
14342 if test $ac_lo -le $ac_mid; then
14346 ac_mid=`expr 2 '*' $ac_mid + 1`
14348 rm -f conftest.$ac_objext conftest.$ac_ext
14351 echo "$as_me: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14353 cat >conftest.$ac_ext <<_ACEOF
14354 #line $LINENO "configure"
14355 #include "confdefs.h"
14356 $ac_includes_default
14357 struct { char filler; short field; } pgac_struct;
14358 #ifdef F77_DUMMY_MAIN
14359 # ifdef __cplusplus
14362 int F77_DUMMY_MAIN() { return 1; }
14367 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14388 cat >conftest.$ac_ext <<_ACEOF
14389 #line $LINENO "configure"
14390 #include "confdefs.h"
14391 $ac_includes_default
14392 struct { char filler; short field; } pgac_struct;
14393 #ifdef F77_DUMMY_MAIN
14394 # ifdef __cplusplus
14397 int F77_DUMMY_MAIN() { return 1; }
14402 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_lo=$ac_mid; break
14423 echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 ac_hi=`expr '(' $ac_mid ')' - 1`
14426 if test $ac_mid -le $ac_hi; then
14430 ac_mid=`expr 2 '*' $ac_mid`
14432 rm -f conftest.$ac_objext conftest.$ac_ext
14435 echo "$as_me: failed program was:" >&5
14436 cat conftest.$ac_ext >&5
14439 rm -f conftest.$ac_objext conftest.$ac_ext
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14442 # Binary search between lo and hi bounds.
14443 while test "x$ac_lo" != "x$ac_hi"; do
14444 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 #ifdef F77_DUMMY_MAIN
14451 # ifdef __cplusplus
14454 int F77_DUMMY_MAIN() { return 1; }
14459 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468 (eval $ac_compile) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14480 echo "$as_me: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14482 ac_lo=`expr '(' $ac_mid ')' + 1`
14484 rm -f conftest.$ac_objext conftest.$ac_ext
14487 ?*) pgac_cv_alignof_short=$ac_lo;;
14488 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14489 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14490 { (exit 1); exit 1; }; } ;;
14493 if test "$cross_compiling" = yes; then
14494 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14495 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14496 { (exit 1); exit 1; }; }
14498 cat >conftest.$ac_ext <<_ACEOF
14499 #line $LINENO "configure"
14500 #include "confdefs.h"
14501 $ac_includes_default
14502 struct { char filler; short field; } pgac_struct;
14503 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14504 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14506 #include <stdlib.h>
14507 #ifdef F77_DUMMY_MAIN
14508 # ifdef __cplusplus
14511 int F77_DUMMY_MAIN() { return 1; }
14517 FILE *f = fopen ("conftest.val", "w");
14520 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14522 long i = longval ();
14523 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14525 fprintf (f, "%ld\n", i);
14529 unsigned long i = ulongval ();
14530 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14532 fprintf (f, "%lu\n", i);
14534 exit (ferror (f) || fclose (f) != 0);
14540 rm -f conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542 (eval $ac_link) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 pgac_cv_alignof_short=`cat conftest.val`
14553 echo "$as_me: program exited with status $ac_status" >&5
14554 echo "$as_me: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14556 ( exit $ac_status )
14557 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14558 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14559 { (exit 1); exit 1; }; }
14561 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14566 pgac_cv_alignof_short=0
14569 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14570 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14571 cat >>confdefs.h <<_ACEOF
14572 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14576 echo "$as_me:$LINENO: checking for int" >&5
14577 echo $ECHO_N "checking for int... $ECHO_C" >&6
14578 if test "${ac_cv_type_int+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14582 #line $LINENO "configure"
14583 #include "confdefs.h"
14584 $ac_includes_default
14585 #ifdef F77_DUMMY_MAIN
14586 # ifdef __cplusplus
14589 int F77_DUMMY_MAIN() { return 1; }
14602 rm -f conftest.$ac_objext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604 (eval $ac_compile) 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14616 echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14620 rm -f conftest.$ac_objext conftest.$ac_ext
14622 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14623 echo "${ECHO_T}$ac_cv_type_int" >&6
14625 echo "$as_me:$LINENO: checking alignment of int" >&5
14626 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14627 if test "${pgac_cv_alignof_int+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 if test "$ac_cv_type_int" = yes; then
14631 if test "$cross_compiling" = yes; then
14632 # Depending upon the size, compute the lo and hi bounds.
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line $LINENO "configure"
14635 #include "confdefs.h"
14636 $ac_includes_default
14637 struct { char filler; int field; } pgac_struct;
14638 #ifdef F77_DUMMY_MAIN
14639 # ifdef __cplusplus
14642 int F77_DUMMY_MAIN() { return 1; }
14647 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14668 cat >conftest.$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14670 #include "confdefs.h"
14671 $ac_includes_default
14672 struct { char filler; int field; } pgac_struct;
14673 #ifdef F77_DUMMY_MAIN
14674 # ifdef __cplusplus
14677 int F77_DUMMY_MAIN() { return 1; }
14682 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -s conftest.$ac_objext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_hi=$ac_mid; break
14703 echo "$as_me: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 ac_lo=`expr $ac_mid + 1`
14706 if test $ac_lo -le $ac_mid; then
14710 ac_mid=`expr 2 '*' $ac_mid + 1`
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14715 echo "$as_me: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 cat >conftest.$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14719 #include "confdefs.h"
14720 $ac_includes_default
14721 struct { char filler; int field; } pgac_struct;
14722 #ifdef F77_DUMMY_MAIN
14723 # ifdef __cplusplus
14726 int F77_DUMMY_MAIN() { return 1; }
14731 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14738 rm -f conftest.$ac_objext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740 (eval $ac_compile) 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -s conftest.$ac_objext'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14752 cat >conftest.$ac_ext <<_ACEOF
14753 #line $LINENO "configure"
14754 #include "confdefs.h"
14755 $ac_includes_default
14756 struct { char filler; int field; } pgac_struct;
14757 #ifdef F77_DUMMY_MAIN
14758 # ifdef __cplusplus
14761 int F77_DUMMY_MAIN() { return 1; }
14766 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -s conftest.$ac_objext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_lo=$ac_mid; break
14787 echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 ac_hi=`expr '(' $ac_mid ')' - 1`
14790 if test $ac_mid -le $ac_hi; then
14794 ac_mid=`expr 2 '*' $ac_mid`
14796 rm -f conftest.$ac_objext conftest.$ac_ext
14799 echo "$as_me: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14803 rm -f conftest.$ac_objext conftest.$ac_ext
14805 rm -f conftest.$ac_objext conftest.$ac_ext
14806 # Binary search between lo and hi bounds.
14807 while test "x$ac_lo" != "x$ac_hi"; do
14808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 #ifdef F77_DUMMY_MAIN
14815 # ifdef __cplusplus
14818 int F77_DUMMY_MAIN() { return 1; }
14823 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14844 echo "$as_me: failed program was:" >&5
14845 cat conftest.$ac_ext >&5
14846 ac_lo=`expr '(' $ac_mid ')' + 1`
14848 rm -f conftest.$ac_objext conftest.$ac_ext
14851 ?*) pgac_cv_alignof_int=$ac_lo;;
14852 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14853 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14854 { (exit 1); exit 1; }; } ;;
14857 if test "$cross_compiling" = yes; then
14858 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14859 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14860 { (exit 1); exit 1; }; }
14862 cat >conftest.$ac_ext <<_ACEOF
14863 #line $LINENO "configure"
14864 #include "confdefs.h"
14865 $ac_includes_default
14866 struct { char filler; int field; } pgac_struct;
14867 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14868 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14870 #include <stdlib.h>
14871 #ifdef F77_DUMMY_MAIN
14872 # ifdef __cplusplus
14875 int F77_DUMMY_MAIN() { return 1; }
14881 FILE *f = fopen ("conftest.val", "w");
14884 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14886 long i = longval ();
14887 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14889 fprintf (f, "%ld\n", i);
14893 unsigned long i = ulongval ();
14894 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14896 fprintf (f, "%lu\n", i);
14898 exit (ferror (f) || fclose (f) != 0);
14904 rm -f conftest$ac_exeext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906 (eval $ac_link) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 pgac_cv_alignof_int=`cat conftest.val`
14917 echo "$as_me: program exited with status $ac_status" >&5
14918 echo "$as_me: failed program was:" >&5
14919 cat conftest.$ac_ext >&5
14920 ( exit $ac_status )
14921 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14922 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14923 { (exit 1); exit 1; }; }
14925 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 pgac_cv_alignof_int=0
14933 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14934 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14935 cat >>confdefs.h <<_ACEOF
14936 #define ALIGNOF_INT $pgac_cv_alignof_int
14940 echo "$as_me:$LINENO: checking for long" >&5
14941 echo $ECHO_N "checking for long... $ECHO_C" >&6
14942 if test "${ac_cv_type_long+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 cat >conftest.$ac_ext <<_ACEOF
14946 #line $LINENO "configure"
14947 #include "confdefs.h"
14948 $ac_includes_default
14949 #ifdef F77_DUMMY_MAIN
14950 # ifdef __cplusplus
14953 int F77_DUMMY_MAIN() { return 1; }
14966 rm -f conftest.$ac_objext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14968 (eval $ac_compile) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 ac_cv_type_long=yes
14980 echo "$as_me: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14984 rm -f conftest.$ac_objext conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14987 echo "${ECHO_T}$ac_cv_type_long" >&6
14989 echo "$as_me:$LINENO: checking alignment of long" >&5
14990 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14991 if test "${pgac_cv_alignof_long+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 if test "$ac_cv_type_long" = yes; then
14995 if test "$cross_compiling" = yes; then
14996 # Depending upon the size, compute the lo and hi bounds.
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15000 $ac_includes_default
15001 struct { char filler; long field; } pgac_struct;
15002 #ifdef F77_DUMMY_MAIN
15003 # ifdef __cplusplus
15006 int F77_DUMMY_MAIN() { return 1; }
15011 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15018 rm -f conftest.$ac_objext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15020 (eval $ac_compile) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -s conftest.$ac_objext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15032 cat >conftest.$ac_ext <<_ACEOF
15033 #line $LINENO "configure"
15034 #include "confdefs.h"
15035 $ac_includes_default
15036 struct { char filler; long field; } pgac_struct;
15037 #ifdef F77_DUMMY_MAIN
15038 # ifdef __cplusplus
15041 int F77_DUMMY_MAIN() { return 1; }
15046 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15053 rm -f conftest.$ac_objext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055 (eval $ac_compile) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -s conftest.$ac_objext'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 ac_hi=$ac_mid; break
15067 echo "$as_me: failed program was:" >&5
15068 cat conftest.$ac_ext >&5
15069 ac_lo=`expr $ac_mid + 1`
15070 if test $ac_lo -le $ac_mid; then
15074 ac_mid=`expr 2 '*' $ac_mid + 1`
15076 rm -f conftest.$ac_objext conftest.$ac_ext
15079 echo "$as_me: failed program was:" >&5
15080 cat conftest.$ac_ext >&5
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line $LINENO "configure"
15083 #include "confdefs.h"
15084 $ac_includes_default
15085 struct { char filler; long field; } pgac_struct;
15086 #ifdef F77_DUMMY_MAIN
15087 # ifdef __cplusplus
15090 int F77_DUMMY_MAIN() { return 1; }
15095 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15102 rm -f conftest.$ac_objext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15104 (eval $ac_compile) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15118 #include "confdefs.h"
15119 $ac_includes_default
15120 struct { char filler; long field; } pgac_struct;
15121 #ifdef F77_DUMMY_MAIN
15122 # ifdef __cplusplus
15125 int F77_DUMMY_MAIN() { return 1; }
15130 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15137 rm -f conftest.$ac_objext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139 (eval $ac_compile) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -s conftest.$ac_objext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_lo=$ac_mid; break
15151 echo "$as_me: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15153 ac_hi=`expr '(' $ac_mid ')' - 1`
15154 if test $ac_mid -le $ac_hi; then
15158 ac_mid=`expr 2 '*' $ac_mid`
15160 rm -f conftest.$ac_objext conftest.$ac_ext
15163 echo "$as_me: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15167 rm -f conftest.$ac_objext conftest.$ac_ext
15169 rm -f conftest.$ac_objext conftest.$ac_ext
15170 # Binary search between lo and hi bounds.
15171 while test "x$ac_lo" != "x$ac_hi"; do
15172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 #ifdef F77_DUMMY_MAIN
15179 # ifdef __cplusplus
15182 int F77_DUMMY_MAIN() { return 1; }
15187 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15194 rm -f conftest.$ac_objext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15196 (eval $ac_compile) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15208 echo "$as_me: failed program was:" >&5
15209 cat conftest.$ac_ext >&5
15210 ac_lo=`expr '(' $ac_mid ')' + 1`
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15215 ?*) pgac_cv_alignof_long=$ac_lo;;
15216 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15217 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15218 { (exit 1); exit 1; }; } ;;
15221 if test "$cross_compiling" = yes; then
15222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15223 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15224 { (exit 1); exit 1; }; }
15226 cat >conftest.$ac_ext <<_ACEOF
15227 #line $LINENO "configure"
15228 #include "confdefs.h"
15229 $ac_includes_default
15230 struct { char filler; long field; } pgac_struct;
15231 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15232 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15234 #include <stdlib.h>
15235 #ifdef F77_DUMMY_MAIN
15236 # ifdef __cplusplus
15239 int F77_DUMMY_MAIN() { return 1; }
15245 FILE *f = fopen ("conftest.val", "w");
15248 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15250 long i = longval ();
15251 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15253 fprintf (f, "%ld\n", i);
15257 unsigned long i = ulongval ();
15258 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15260 fprintf (f, "%lu\n", i);
15262 exit (ferror (f) || fclose (f) != 0);
15268 rm -f conftest$ac_exeext
15269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15270 (eval $ac_link) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 pgac_cv_alignof_long=`cat conftest.val`
15281 echo "$as_me: program exited with status $ac_status" >&5
15282 echo "$as_me: failed program was:" >&5
15283 cat conftest.$ac_ext >&5
15284 ( exit $ac_status )
15285 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15286 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15287 { (exit 1); exit 1; }; }
15289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15294 pgac_cv_alignof_long=0
15297 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15298 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15299 cat >>confdefs.h <<_ACEOF
15300 #define ALIGNOF_LONG $pgac_cv_alignof_long
15304 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15305 echo "$as_me:$LINENO: checking for long long int" >&5
15306 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15307 if test "${ac_cv_type_long_long_int+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 cat >conftest.$ac_ext <<_ACEOF
15311 #line $LINENO "configure"
15312 #include "confdefs.h"
15313 $ac_includes_default
15314 #ifdef F77_DUMMY_MAIN
15315 # ifdef __cplusplus
15318 int F77_DUMMY_MAIN() { return 1; }
15323 if ((long long int *) 0)
15325 if (sizeof (long long int))
15331 rm -f conftest.$ac_objext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15333 (eval $ac_compile) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -s conftest.$ac_objext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_cv_type_long_long_int=yes
15345 echo "$as_me: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15347 ac_cv_type_long_long_int=no
15349 rm -f conftest.$ac_objext conftest.$ac_ext
15351 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15352 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15354 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15355 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15356 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 if test "$ac_cv_type_long_long_int" = yes; then
15360 if test "$cross_compiling" = yes; then
15361 # Depending upon the size, compute the lo and hi bounds.
15362 cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 #include "confdefs.h"
15365 $ac_includes_default
15366 struct { char filler; long long int field; } pgac_struct;
15367 #ifdef F77_DUMMY_MAIN
15368 # ifdef __cplusplus
15371 int F77_DUMMY_MAIN() { return 1; }
15376 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15383 rm -f conftest.$ac_objext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15385 (eval $ac_compile) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -s conftest.$ac_objext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15397 cat >conftest.$ac_ext <<_ACEOF
15398 #line $LINENO "configure"
15399 #include "confdefs.h"
15400 $ac_includes_default
15401 struct { char filler; long long int field; } pgac_struct;
15402 #ifdef F77_DUMMY_MAIN
15403 # ifdef __cplusplus
15406 int F77_DUMMY_MAIN() { return 1; }
15411 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15418 rm -f conftest.$ac_objext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420 (eval $ac_compile) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_hi=$ac_mid; break
15432 echo "$as_me: failed program was:" >&5
15433 cat conftest.$ac_ext >&5
15434 ac_lo=`expr $ac_mid + 1`
15435 if test $ac_lo -le $ac_mid; then
15439 ac_mid=`expr 2 '*' $ac_mid + 1`
15441 rm -f conftest.$ac_objext conftest.$ac_ext
15444 echo "$as_me: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15446 cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 #include "confdefs.h"
15449 $ac_includes_default
15450 struct { char filler; long long int field; } pgac_struct;
15451 #ifdef F77_DUMMY_MAIN
15452 # ifdef __cplusplus
15455 int F77_DUMMY_MAIN() { return 1; }
15460 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469 (eval $ac_compile) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15481 cat >conftest.$ac_ext <<_ACEOF
15482 #line $LINENO "configure"
15483 #include "confdefs.h"
15484 $ac_includes_default
15485 struct { char filler; long long int field; } pgac_struct;
15486 #ifdef F77_DUMMY_MAIN
15487 # ifdef __cplusplus
15490 int F77_DUMMY_MAIN() { return 1; }
15495 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15502 rm -f conftest.$ac_objext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15504 (eval $ac_compile) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_lo=$ac_mid; break
15516 echo "$as_me: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 ac_hi=`expr '(' $ac_mid ')' - 1`
15519 if test $ac_mid -le $ac_hi; then
15523 ac_mid=`expr 2 '*' $ac_mid`
15525 rm -f conftest.$ac_objext conftest.$ac_ext
15528 echo "$as_me: failed program was:" >&5
15529 cat conftest.$ac_ext >&5
15532 rm -f conftest.$ac_objext conftest.$ac_ext
15534 rm -f conftest.$ac_objext conftest.$ac_ext
15535 # Binary search between lo and hi bounds.
15536 while test "x$ac_lo" != "x$ac_hi"; do
15537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 #ifdef F77_DUMMY_MAIN
15544 # ifdef __cplusplus
15547 int F77_DUMMY_MAIN() { return 1; }
15552 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15561 (eval $ac_compile) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -s conftest.$ac_objext'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15573 echo "$as_me: failed program was:" >&5
15574 cat conftest.$ac_ext >&5
15575 ac_lo=`expr '(' $ac_mid ')' + 1`
15577 rm -f conftest.$ac_objext conftest.$ac_ext
15580 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15581 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15582 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15583 { (exit 1); exit 1; }; } ;;
15586 if test "$cross_compiling" = yes; then
15587 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15588 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15589 { (exit 1); exit 1; }; }
15591 cat >conftest.$ac_ext <<_ACEOF
15592 #line $LINENO "configure"
15593 #include "confdefs.h"
15594 $ac_includes_default
15595 struct { char filler; long long int field; } pgac_struct;
15596 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15597 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15599 #include <stdlib.h>
15600 #ifdef F77_DUMMY_MAIN
15601 # ifdef __cplusplus
15604 int F77_DUMMY_MAIN() { return 1; }
15610 FILE *f = fopen ("conftest.val", "w");
15613 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15615 long i = longval ();
15616 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15618 fprintf (f, "%ld\n", i);
15622 unsigned long i = ulongval ();
15623 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15625 fprintf (f, "%lu\n", i);
15627 exit (ferror (f) || fclose (f) != 0);
15633 rm -f conftest$ac_exeext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15635 (eval $ac_link) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 pgac_cv_alignof_long_long_int=`cat conftest.val`
15646 echo "$as_me: program exited with status $ac_status" >&5
15647 echo "$as_me: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 ( exit $ac_status )
15650 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15651 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15652 { (exit 1); exit 1; }; }
15654 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15659 pgac_cv_alignof_long_long_int=0
15662 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15663 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15664 cat >>confdefs.h <<_ACEOF
15665 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15670 echo "$as_me:$LINENO: checking for double" >&5
15671 echo $ECHO_N "checking for double... $ECHO_C" >&6
15672 if test "${ac_cv_type_double+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 cat >conftest.$ac_ext <<_ACEOF
15676 #line $LINENO "configure"
15677 #include "confdefs.h"
15678 $ac_includes_default
15679 #ifdef F77_DUMMY_MAIN
15680 # ifdef __cplusplus
15683 int F77_DUMMY_MAIN() { return 1; }
15690 if (sizeof (double))
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -s conftest.$ac_objext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_cv_type_double=yes
15710 echo "$as_me: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15712 ac_cv_type_double=no
15714 rm -f conftest.$ac_objext conftest.$ac_ext
15716 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15717 echo "${ECHO_T}$ac_cv_type_double" >&6
15719 echo "$as_me:$LINENO: checking alignment of double" >&5
15720 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15721 if test "${pgac_cv_alignof_double+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 if test "$ac_cv_type_double" = yes; then
15725 if test "$cross_compiling" = yes; then
15726 # Depending upon the size, compute the lo and hi bounds.
15727 cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 #include "confdefs.h"
15730 $ac_includes_default
15731 struct { char filler; double field; } pgac_struct;
15732 #ifdef F77_DUMMY_MAIN
15733 # ifdef __cplusplus
15736 int F77_DUMMY_MAIN() { return 1; }
15741 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15748 rm -f conftest.$ac_objext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15750 (eval $ac_compile) 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -s conftest.$ac_objext'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15762 cat >conftest.$ac_ext <<_ACEOF
15763 #line $LINENO "configure"
15764 #include "confdefs.h"
15765 $ac_includes_default
15766 struct { char filler; double field; } pgac_struct;
15767 #ifdef F77_DUMMY_MAIN
15768 # ifdef __cplusplus
15771 int F77_DUMMY_MAIN() { return 1; }
15776 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_hi=$ac_mid; break
15797 echo "$as_me: failed program was:" >&5
15798 cat conftest.$ac_ext >&5
15799 ac_lo=`expr $ac_mid + 1`
15800 if test $ac_lo -le $ac_mid; then
15804 ac_mid=`expr 2 '*' $ac_mid + 1`
15806 rm -f conftest.$ac_objext conftest.$ac_ext
15809 echo "$as_me: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15811 cat >conftest.$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15813 #include "confdefs.h"
15814 $ac_includes_default
15815 struct { char filler; double field; } pgac_struct;
15816 #ifdef F77_DUMMY_MAIN
15817 # ifdef __cplusplus
15820 int F77_DUMMY_MAIN() { return 1; }
15825 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15832 rm -f conftest.$ac_objext
15833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15834 (eval $ac_compile) 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -s conftest.$ac_objext'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15846 cat >conftest.$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15848 #include "confdefs.h"
15849 $ac_includes_default
15850 struct { char filler; double field; } pgac_struct;
15851 #ifdef F77_DUMMY_MAIN
15852 # ifdef __cplusplus
15855 int F77_DUMMY_MAIN() { return 1; }
15860 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15867 rm -f conftest.$ac_objext
15868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15869 (eval $ac_compile) 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -s conftest.$ac_objext'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_lo=$ac_mid; break
15881 echo "$as_me: failed program was:" >&5
15882 cat conftest.$ac_ext >&5
15883 ac_hi=`expr '(' $ac_mid ')' - 1`
15884 if test $ac_mid -le $ac_hi; then
15888 ac_mid=`expr 2 '*' $ac_mid`
15890 rm -f conftest.$ac_objext conftest.$ac_ext
15893 echo "$as_me: failed program was:" >&5
15894 cat conftest.$ac_ext >&5
15897 rm -f conftest.$ac_objext conftest.$ac_ext
15899 rm -f conftest.$ac_objext conftest.$ac_ext
15900 # Binary search between lo and hi bounds.
15901 while test "x$ac_lo" != "x$ac_hi"; do
15902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 #ifdef F77_DUMMY_MAIN
15909 # ifdef __cplusplus
15912 int F77_DUMMY_MAIN() { return 1; }
15917 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15938 echo "$as_me: failed program was:" >&5
15939 cat conftest.$ac_ext >&5
15940 ac_lo=`expr '(' $ac_mid ')' + 1`
15942 rm -f conftest.$ac_objext conftest.$ac_ext
15945 ?*) pgac_cv_alignof_double=$ac_lo;;
15946 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15947 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15948 { (exit 1); exit 1; }; } ;;
15951 if test "$cross_compiling" = yes; then
15952 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15953 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15954 { (exit 1); exit 1; }; }
15956 cat >conftest.$ac_ext <<_ACEOF
15957 #line $LINENO "configure"
15958 #include "confdefs.h"
15959 $ac_includes_default
15960 struct { char filler; double field; } pgac_struct;
15961 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15962 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15964 #include <stdlib.h>
15965 #ifdef F77_DUMMY_MAIN
15966 # ifdef __cplusplus
15969 int F77_DUMMY_MAIN() { return 1; }
15975 FILE *f = fopen ("conftest.val", "w");
15978 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15980 long i = longval ();
15981 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15983 fprintf (f, "%ld\n", i);
15987 unsigned long i = ulongval ();
15988 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15990 fprintf (f, "%lu\n", i);
15992 exit (ferror (f) || fclose (f) != 0);
15998 rm -f conftest$ac_exeext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000 (eval $ac_link) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 pgac_cv_alignof_double=`cat conftest.val`
16011 echo "$as_me: program exited with status $ac_status" >&5
16012 echo "$as_me: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16014 ( exit $ac_status )
16015 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16016 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16017 { (exit 1); exit 1; }; }
16019 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16024 pgac_cv_alignof_double=0
16027 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16028 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16029 cat >>confdefs.h <<_ACEOF
16030 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16035 # Compute maximum alignment of any basic type.
16036 # We assume long's alignment is at least as strong as char, short, or int;
16037 # but we must check long long (if it exists) and double.
16039 MAX_ALIGNOF=$pgac_cv_alignof_long
16040 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16041 MAX_ALIGNOF=$pgac_cv_alignof_double
16043 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16044 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16047 cat >>confdefs.h <<_ACEOF
16048 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16053 # Some platforms predefine the types int8, int16, etc. Only check
16054 # a (hopefully) representative subset.
16055 echo "$as_me:$LINENO: checking for int8" >&5
16056 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16057 if test "${ac_cv_type_int8+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16064 #ifdef HAVE_SUPPORTDEFS_H
16065 #include <SupportDefs.h>
16068 #ifdef F77_DUMMY_MAIN
16069 # ifdef __cplusplus
16072 int F77_DUMMY_MAIN() { return 1; }
16085 rm -f conftest.$ac_objext
16086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16087 (eval $ac_compile) 2>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_cv_type_int8=yes
16099 echo "$as_me: failed program was:" >&5
16100 cat conftest.$ac_ext >&5
16103 rm -f conftest.$ac_objext conftest.$ac_ext
16105 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16106 echo "${ECHO_T}$ac_cv_type_int8" >&6
16107 if test $ac_cv_type_int8 = yes; then
16109 cat >>confdefs.h <<_ACEOF
16110 #define HAVE_INT8 1
16115 echo "$as_me:$LINENO: checking for uint8" >&5
16116 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16117 if test "${ac_cv_type_uint8+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 cat >conftest.$ac_ext <<_ACEOF
16121 #line $LINENO "configure"
16122 #include "confdefs.h"
16124 #ifdef HAVE_SUPPORTDEFS_H
16125 #include <SupportDefs.h>
16128 #ifdef F77_DUMMY_MAIN
16129 # ifdef __cplusplus
16132 int F77_DUMMY_MAIN() { return 1; }
16139 if (sizeof (uint8))
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_cv_type_uint8=yes
16159 echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 ac_cv_type_uint8=no
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16166 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16167 if test $ac_cv_type_uint8 = yes; then
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_UINT8 1
16175 echo "$as_me:$LINENO: checking for int64" >&5
16176 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16177 if test "${ac_cv_type_int64+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 cat >conftest.$ac_ext <<_ACEOF
16181 #line $LINENO "configure"
16182 #include "confdefs.h"
16184 #ifdef HAVE_SUPPORTDEFS_H
16185 #include <SupportDefs.h>
16188 #ifdef F77_DUMMY_MAIN
16189 # ifdef __cplusplus
16192 int F77_DUMMY_MAIN() { return 1; }
16199 if (sizeof (int64))
16205 rm -f conftest.$ac_objext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16207 (eval $ac_compile) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -s conftest.$ac_objext'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16217 ac_cv_type_int64=yes
16219 echo "$as_me: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 ac_cv_type_int64=no
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16225 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16226 echo "${ECHO_T}$ac_cv_type_int64" >&6
16227 if test $ac_cv_type_int64 = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_INT64 1
16235 echo "$as_me:$LINENO: checking for uint64" >&5
16236 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16237 if test "${ac_cv_type_uint64+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 cat >conftest.$ac_ext <<_ACEOF
16241 #line $LINENO "configure"
16242 #include "confdefs.h"
16244 #ifdef HAVE_SUPPORTDEFS_H
16245 #include <SupportDefs.h>
16248 #ifdef F77_DUMMY_MAIN
16249 # ifdef __cplusplus
16252 int F77_DUMMY_MAIN() { return 1; }
16259 if (sizeof (uint64))
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_type_uint64=yes
16279 echo "$as_me: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 ac_cv_type_uint64=no
16283 rm -f conftest.$ac_objext conftest.$ac_ext
16285 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16286 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16287 if test $ac_cv_type_uint64 = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_UINT64 1
16297 # We also check for sig_atomic_t, which *should* be defined per ANSI
16298 # C, but is missing on some old platforms.
16299 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16300 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16301 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16304 cat >conftest.$ac_ext <<_ACEOF
16305 #line $LINENO "configure"
16306 #include "confdefs.h"
16307 #include <signal.h>
16309 #ifdef F77_DUMMY_MAIN
16310 # ifdef __cplusplus
16313 int F77_DUMMY_MAIN() { return 1; }
16318 if ((sig_atomic_t *) 0)
16320 if (sizeof (sig_atomic_t))
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ac_cv_type_sig_atomic_t=yes
16340 echo "$as_me: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 ac_cv_type_sig_atomic_t=no
16344 rm -f conftest.$ac_objext conftest.$ac_ext
16346 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16347 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16348 if test $ac_cv_type_sig_atomic_t = yes; then
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_SIG_ATOMIC_T 1
16359 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16360 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16361 if test "${pgac_cv_func_posix_signals+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 cat >conftest.$ac_ext <<_ACEOF
16365 #line $LINENO "configure"
16366 #include "confdefs.h"
16367 #include <signal.h>
16369 #ifdef F77_DUMMY_MAIN
16370 # ifdef __cplusplus
16373 int F77_DUMMY_MAIN() { return 1; }
16378 struct sigaction act, oact;
16379 sigemptyset(&act.sa_mask);
16380 act.sa_flags = SA_RESTART;
16381 sigaction(0, &act, &oact);
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest$ac_exeext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 pgac_cv_func_posix_signals=yes
16400 echo "$as_me: failed program was:" >&5
16401 cat conftest.$ac_ext >&5
16402 pgac_cv_func_posix_signals=no
16404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16406 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16407 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16408 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16410 cat >>confdefs.h <<\_ACEOF
16411 #define HAVE_POSIX_SIGNALS
16415 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16417 if test $ac_cv_func_fseeko = yes; then
16418 # Check whether --enable-largefile or --disable-largefile was given.
16419 if test "${enable_largefile+set}" = set; then
16420 enableval="$enable_largefile"
16423 if test "$enable_largefile" != no; then
16425 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16426 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16427 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 ac_cv_sys_largefile_CC=no
16431 if test "$GCC" != yes; then
16434 # IRIX 6.2 and later do not support large files by default,
16435 # so use the C compiler's -n32 option if that helps.
16436 cat >conftest.$ac_ext <<_ACEOF
16437 #line $LINENO "configure"
16438 #include "confdefs.h"
16439 #include <sys/types.h>
16440 /* Check that off_t can represent 2**63 - 1 correctly.
16441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16442 since some C++ compilers masquerading as C compilers
16443 incorrectly reject 9223372036854775807. */
16444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16446 && LARGE_OFF_T % 2147483647 == 1)
16448 #ifdef F77_DUMMY_MAIN
16449 # ifdef __cplusplus
16452 int F77_DUMMY_MAIN() { return 1; }
16462 rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464 (eval $ac_compile) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16476 echo "$as_me: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16479 rm -f conftest.$ac_objext
16481 rm -f conftest.$ac_objext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_sys_largefile_CC=' -n32'; break
16495 echo "$as_me: failed program was:" >&5
16496 cat conftest.$ac_ext >&5
16498 rm -f conftest.$ac_objext
16502 rm -f conftest.$ac_ext
16505 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16506 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16507 if test "$ac_cv_sys_largefile_CC" != no; then
16508 CC=$CC$ac_cv_sys_largefile_CC
16511 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16512 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16513 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 ac_cv_sys_file_offset_bits=no
16518 cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16520 #include "confdefs.h"
16521 #include <sys/types.h>
16522 /* Check that off_t can represent 2**63 - 1 correctly.
16523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16524 since some C++ compilers masquerading as C compilers
16525 incorrectly reject 9223372036854775807. */
16526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16528 && LARGE_OFF_T % 2147483647 == 1)
16530 #ifdef F77_DUMMY_MAIN
16531 # ifdef __cplusplus
16534 int F77_DUMMY_MAIN() { return 1; }
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } &&
16550 { ac_try='test -s conftest.$ac_objext'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16558 echo "$as_me: failed program was:" >&5
16559 cat conftest.$ac_ext >&5
16561 rm -f conftest.$ac_objext conftest.$ac_ext
16562 cat >conftest.$ac_ext <<_ACEOF
16563 #line $LINENO "configure"
16564 #include "confdefs.h"
16565 #define _FILE_OFFSET_BITS 64
16566 #include <sys/types.h>
16567 /* Check that off_t can represent 2**63 - 1 correctly.
16568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16569 since some C++ compilers masquerading as C compilers
16570 incorrectly reject 9223372036854775807. */
16571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16573 && LARGE_OFF_T % 2147483647 == 1)
16575 #ifdef F77_DUMMY_MAIN
16576 # ifdef __cplusplus
16579 int F77_DUMMY_MAIN() { return 1; }
16589 rm -f conftest.$ac_objext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_sys_file_offset_bits=64; break
16603 echo "$as_me: failed program was:" >&5
16604 cat conftest.$ac_ext >&5
16606 rm -f conftest.$ac_objext conftest.$ac_ext
16610 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16611 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16612 if test "$ac_cv_sys_file_offset_bits" != no; then
16614 cat >>confdefs.h <<_ACEOF
16615 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16620 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16621 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16622 if test "${ac_cv_sys_large_files+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_cv_sys_large_files=no
16627 cat >conftest.$ac_ext <<_ACEOF
16628 #line $LINENO "configure"
16629 #include "confdefs.h"
16630 #include <sys/types.h>
16631 /* Check that off_t can represent 2**63 - 1 correctly.
16632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16633 since some C++ compilers masquerading as C compilers
16634 incorrectly reject 9223372036854775807. */
16635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16637 && LARGE_OFF_T % 2147483647 == 1)
16639 #ifdef F77_DUMMY_MAIN
16640 # ifdef __cplusplus
16643 int F77_DUMMY_MAIN() { return 1; }
16653 rm -f conftest.$ac_objext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16655 (eval $ac_compile) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16667 echo "$as_me: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16670 rm -f conftest.$ac_objext conftest.$ac_ext
16671 cat >conftest.$ac_ext <<_ACEOF
16672 #line $LINENO "configure"
16673 #include "confdefs.h"
16674 #define _LARGE_FILES 1
16675 #include <sys/types.h>
16676 /* Check that off_t can represent 2**63 - 1 correctly.
16677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16678 since some C++ compilers masquerading as C compilers
16679 incorrectly reject 9223372036854775807. */
16680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16682 && LARGE_OFF_T % 2147483647 == 1)
16684 #ifdef F77_DUMMY_MAIN
16685 # ifdef __cplusplus
16688 int F77_DUMMY_MAIN() { return 1; }
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -s conftest.$ac_objext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 ac_cv_sys_large_files=1; break
16712 echo "$as_me: failed program was:" >&5
16713 cat conftest.$ac_ext >&5
16715 rm -f conftest.$ac_objext conftest.$ac_ext
16719 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16720 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16721 if test "$ac_cv_sys_large_files" != no; then
16723 cat >>confdefs.h <<_ACEOF
16724 #define _LARGE_FILES $ac_cv_sys_large_files
16734 # Select semaphore implementation type.
16735 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16737 cat >>confdefs.h <<\_ACEOF
16738 #define USE_NAMED_POSIX_SEMAPHORES 1
16741 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16743 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16745 cat >>confdefs.h <<\_ACEOF
16746 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16749 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16752 cat >>confdefs.h <<\_ACEOF
16753 #define USE_SYSV_SEMAPHORES 1
16756 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16761 # Select shared-memory implementation type.
16763 cat >>confdefs.h <<\_ACEOF
16764 #define USE_SYSV_SHARED_MEMORY 1
16767 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16770 if test "$enable_nls" = yes ; then
16772 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16773 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16774 if test "${ac_cv_search_gettext+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 ac_func_search_save_LIBS=$LIBS
16778 ac_cv_search_gettext=no
16779 cat >conftest.$ac_ext <<_ACEOF
16780 #line $LINENO "configure"
16781 #include "confdefs.h"
16783 /* Override any gcc2 internal prototype to avoid an error. */
16787 /* We use char because int might match the return type of a gcc2
16788 builtin and then its argument prototype would still apply. */
16790 #ifdef F77_DUMMY_MAIN
16791 # ifdef __cplusplus
16794 int F77_DUMMY_MAIN() { return 1; }
16804 rm -f conftest.$ac_objext conftest$ac_exeext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806 (eval $ac_link) 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -s conftest$ac_exeext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_cv_search_gettext="none required"
16818 echo "$as_me: failed program was:" >&5
16819 cat conftest.$ac_ext >&5
16821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822 if test "$ac_cv_search_gettext" = no; then
16823 for ac_lib in intl; do
16824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16825 cat >conftest.$ac_ext <<_ACEOF
16826 #line $LINENO "configure"
16827 #include "confdefs.h"
16829 /* Override any gcc2 internal prototype to avoid an error. */
16833 /* We use char because int might match the return type of a gcc2
16834 builtin and then its argument prototype would still apply. */
16836 #ifdef F77_DUMMY_MAIN
16837 # ifdef __cplusplus
16840 int F77_DUMMY_MAIN() { return 1; }
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852 (eval $ac_link) 2>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -s conftest$ac_exeext'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_search_gettext="-l$ac_lib"
16865 echo "$as_me: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16871 LIBS=$ac_func_search_save_LIBS
16873 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16874 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16875 if test "$ac_cv_search_gettext" != no; then
16876 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16879 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16880 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16881 { (exit 1); exit 1; }; }
16884 if test "${ac_cv_header_libintl_h+set}" = set; then
16885 echo "$as_me:$LINENO: checking for libintl.h" >&5
16886 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16887 if test "${ac_cv_header_libintl_h+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16891 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16893 # Is the header compilable?
16894 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16895 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16896 cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16898 #include "confdefs.h"
16899 $ac_includes_default
16900 #include <libintl.h>
16902 rm -f conftest.$ac_objext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16904 (eval $ac_compile) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -s conftest.$ac_objext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_header_compiler=yes
16916 echo "$as_me: failed program was:" >&5
16917 cat conftest.$ac_ext >&5
16918 ac_header_compiler=no
16920 rm -f conftest.$ac_objext conftest.$ac_ext
16921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16922 echo "${ECHO_T}$ac_header_compiler" >&6
16924 # Is the header present?
16925 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16926 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16927 cat >conftest.$ac_ext <<_ACEOF
16928 #line $LINENO "configure"
16929 #include "confdefs.h"
16930 #include <libintl.h>
16932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16935 egrep -v '^ *\+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } >/dev/null; then
16940 if test -s conftest.err; then
16941 ac_cpp_err=$ac_c_preproc_warn_flag
16948 if test -z "$ac_cpp_err"; then
16949 ac_header_preproc=yes
16951 echo "$as_me: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16953 ac_header_preproc=no
16955 rm -f conftest.err conftest.$ac_ext
16956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16957 echo "${ECHO_T}$ac_header_preproc" >&6
16959 # So? What about this header?
16960 case $ac_header_compiler:$ac_header_preproc in
16962 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16963 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16965 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16967 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16968 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16970 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16972 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16974 echo "$as_me:$LINENO: checking for libintl.h" >&5
16975 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16976 if test "${ac_cv_header_libintl_h+set}" = set; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 ac_cv_header_libintl_h=$ac_header_preproc
16981 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16982 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16985 if test $ac_cv_header_libintl_h = yes; then
16988 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16989 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16990 { (exit 1); exit 1; }; }
16994 for ac_prog in msgfmt
16996 # Extract the first word of "$ac_prog", so it can be a program name with args.
16997 set dummy $ac_prog; ac_word=$2
16998 echo "$as_me:$LINENO: checking for $ac_word" >&5
16999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17000 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 if test -n "$MSGFMT"; then
17004 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17007 for as_dir in $PATH
17010 test -z "$as_dir" && as_dir=.
17011 for ac_exec_ext in '' $ac_executable_extensions; do
17012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17013 ac_cv_prog_MSGFMT="$ac_prog"
17014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17022 MSGFMT=$ac_cv_prog_MSGFMT
17023 if test -n "$MSGFMT"; then
17024 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17025 echo "${ECHO_T}$MSGFMT" >&6
17027 echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6
17031 test -n "$MSGFMT" && break
17034 if test -z "$MSGFMT"; then
17035 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17036 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17037 { (exit 1); exit 1; }; }
17039 for ac_prog in msgmerge
17041 # Extract the first word of "$ac_prog", so it can be a program name with args.
17042 set dummy $ac_prog; ac_word=$2
17043 echo "$as_me:$LINENO: checking for $ac_word" >&5
17044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17045 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 if test -n "$MSGMERGE"; then
17049 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $PATH
17055 test -z "$as_dir" && as_dir=.
17056 for ac_exec_ext in '' $ac_executable_extensions; do
17057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17058 ac_cv_prog_MSGMERGE="$ac_prog"
17059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17067 MSGMERGE=$ac_cv_prog_MSGMERGE
17068 if test -n "$MSGMERGE"; then
17069 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17070 echo "${ECHO_T}$MSGMERGE" >&6
17072 echo "$as_me:$LINENO: result: no" >&5
17073 echo "${ECHO_T}no" >&6
17076 test -n "$MSGMERGE" && break
17079 for ac_prog in xgettext
17081 # Extract the first word of "$ac_prog", so it can be a program name with args.
17082 set dummy $ac_prog; ac_word=$2
17083 echo "$as_me:$LINENO: checking for $ac_word" >&5
17084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17085 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 if test -n "$XGETTEXT"; then
17089 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $PATH
17095 test -z "$as_dir" && as_dir=.
17096 for ac_exec_ext in '' $ac_executable_extensions; do
17097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17098 ac_cv_prog_XGETTEXT="$ac_prog"
17099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17107 XGETTEXT=$ac_cv_prog_XGETTEXT
17108 if test -n "$XGETTEXT"; then
17109 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17110 echo "${ECHO_T}$XGETTEXT" >&6
17112 echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6
17116 test -n "$XGETTEXT" && break
17120 # Note: share/locale is always the default, independent of $datadir
17121 localedir='${prefix}/share/locale'
17122 if test x"$prefix" = x"NONE"; then
17123 exp_localedir="$ac_default_prefix/share/locale"
17125 exp_localedir="$prefix/share/locale"
17130 cat >>confdefs.h <<_ACEOF
17131 #define LOCALEDIR "$exp_localedir"
17137 # Check for Tcl configuration script tclConfig.sh
17138 if test "$with_tcl" = yes; then
17139 for ac_prog in tclsh tcl
17141 # Extract the first word of "$ac_prog", so it can be a program name with args.
17142 set dummy $ac_prog; ac_word=$2
17143 echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17145 if test "${ac_cv_path_TCLSH+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17154 for as_dir in $PATH
17157 test -z "$as_dir" && as_dir=.
17158 for ac_exec_ext in '' $ac_executable_extensions; do
17159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17160 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17170 TCLSH=$ac_cv_path_TCLSH
17172 if test -n "$TCLSH"; then
17173 echo "$as_me:$LINENO: result: $TCLSH" >&5
17174 echo "${ECHO_T}$TCLSH" >&6
17176 echo "$as_me:$LINENO: result: no" >&5
17177 echo "${ECHO_T}no" >&6
17180 test -n "$TCLSH" && break
17183 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17184 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17185 # Let user override test
17186 if test -z "$TCL_CONFIG_SH"; then
17187 pgac_test_dirs="$with_tclconfig"
17189 set X $pgac_test_dirs; shift
17190 if test $# -eq 0; then
17191 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17192 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17193 { (exit 1); exit 1; }; }
17194 set X `echo 'puts $auto_path' | $TCLSH`; shift
17198 if test -r "$pgac_dir/tclConfig.sh"; then
17199 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17205 if test -z "$TCL_CONFIG_SH"; then
17206 echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6
17208 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17209 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17210 { (exit 1); exit 1; }; }
17212 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17213 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17219 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17220 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17221 eval TCL_LIBS=\"$TCL_LIBS\"
17222 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17223 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17227 # Check for Tk configuration script tkConfig.sh
17228 if test "$with_tk" = yes; then
17229 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17230 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17231 # Let user override test
17232 if test -z "$TK_CONFIG_SH"; then
17233 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17235 set X $pgac_test_dirs; shift
17236 if test $# -eq 0; then
17237 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17238 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17239 { (exit 1); exit 1; }; }
17240 set X `echo 'puts $auto_path' | $TCLSH`; shift
17244 if test -r "$pgac_dir/tkConfig.sh"; then
17245 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17251 if test -z "$TK_CONFIG_SH"; then
17252 echo "$as_me:$LINENO: result: no" >&5
17253 echo "${ECHO_T}no" >&6
17254 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17255 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17256 { (exit 1); exit 1; }; }
17258 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17259 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17265 eval TK_LIBS=\"$TK_LIBS\"
17266 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17267 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17273 # Check for DocBook and tools
17275 for ac_prog in onsgmls nsgmls
17277 # Extract the first word of "$ac_prog", so it can be a program name with args.
17278 set dummy $ac_prog; ac_word=$2
17279 echo "$as_me:$LINENO: checking for $ac_word" >&5
17280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17281 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 if test -n "$NSGMLS"; then
17285 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17288 for as_dir in $PATH
17291 test -z "$as_dir" && as_dir=.
17292 for ac_exec_ext in '' $ac_executable_extensions; do
17293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17294 ac_cv_prog_NSGMLS="$ac_prog"
17295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17303 NSGMLS=$ac_cv_prog_NSGMLS
17304 if test -n "$NSGMLS"; then
17305 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17306 echo "${ECHO_T}$NSGMLS" >&6
17308 echo "$as_me:$LINENO: result: no" >&5
17309 echo "${ECHO_T}no" >&6
17312 test -n "$NSGMLS" && break
17315 for ac_prog in openjade jade
17317 # Extract the first word of "$ac_prog", so it can be a program name with args.
17318 set dummy $ac_prog; ac_word=$2
17319 echo "$as_me:$LINENO: checking for $ac_word" >&5
17320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17321 if test "${ac_cv_prog_JADE+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 if test -n "$JADE"; then
17325 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17331 test -z "$as_dir" && as_dir=.
17332 for ac_exec_ext in '' $ac_executable_extensions; do
17333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17334 ac_cv_prog_JADE="$ac_prog"
17335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17343 JADE=$ac_cv_prog_JADE
17344 if test -n "$JADE"; then
17345 echo "$as_me:$LINENO: result: $JADE" >&5
17346 echo "${ECHO_T}$JADE" >&6
17348 echo "$as_me:$LINENO: result: no" >&5
17349 echo "${ECHO_T}no" >&6
17352 test -n "$JADE" && break
17356 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17357 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17358 if test "${pgac_cv_check_docbook+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 cat >conftest.sgml <<EOF
17362 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17364 <title>test</title>
17366 <title>random</title>
17368 <title>testsect</title>
17375 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17376 if test $? -eq 0; then
17377 pgac_cv_check_docbook=yes
17379 pgac_cv_check_docbook=no
17381 rm -f conftest.sgml
17383 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17384 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17386 have_docbook=$pgac_cv_check_docbook
17389 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17390 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17391 if test "${pgac_cv_path_stylesheets+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 if test -n "$DOCBOOKSTYLE"; then
17395 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17397 for pgac_prefix in /usr /usr/local /opt; do
17398 for pgac_infix in share lib; do
17399 for pgac_postfix in \
17400 sgml/stylesheets/nwalsh-modular \
17401 sgml/stylesheets/docbook \
17402 sgml/docbook/dsssl/modular \
17403 sgml/docbook/stylesheet/dsssl/modular \
17404 sgml/docbook/dsssl-stylesheets
17406 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17407 if test -r "$pgac_candidate/html/docbook.dsl" \
17408 && test -r "$pgac_candidate/print/docbook.dsl"
17410 pgac_cv_path_stylesheets=$pgac_candidate
17419 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17421 if test -n "$DOCBOOKSTYLE"; then
17422 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17423 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17425 echo "$as_me:$LINENO: result: no" >&5
17426 echo "${ECHO_T}no" >&6
17428 if test -n "$DOCBOOKSTYLE"; then
17429 for ac_prog in collateindex.pl
17431 # Extract the first word of "$ac_prog", so it can be a program name with args.
17432 set dummy $ac_prog; ac_word=$2
17433 echo "$as_me:$LINENO: checking for $ac_word" >&5
17434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17435 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 case $COLLATEINDEX in
17440 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $DOCBOOKSTYLE/bin $PATH
17447 test -z "$as_dir" && as_dir=.
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17460 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17462 if test -n "$COLLATEINDEX"; then
17463 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17464 echo "${ECHO_T}$COLLATEINDEX" >&6
17466 echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6
17470 test -n "$COLLATEINDEX" && break
17474 for ac_prog in collateindex.pl
17476 # Extract the first word of "$ac_prog", so it can be a program name with args.
17477 set dummy $ac_prog; ac_word=$2
17478 echo "$as_me:$LINENO: checking for $ac_word" >&5
17479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17480 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 case $COLLATEINDEX in
17485 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17489 for as_dir in $PATH
17492 test -z "$as_dir" && as_dir=.
17493 for ac_exec_ext in '' $ac_executable_extensions; do
17494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17495 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17505 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17507 if test -n "$COLLATEINDEX"; then
17508 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17509 echo "${ECHO_T}$COLLATEINDEX" >&6
17511 echo "$as_me:$LINENO: result: no" >&5
17512 echo "${ECHO_T}no" >&6
17515 test -n "$COLLATEINDEX" && break
17519 for ac_prog in sgmlspl
17521 # Extract the first word of "$ac_prog", so it can be a program name with args.
17522 set dummy $ac_prog; ac_word=$2
17523 echo "$as_me:$LINENO: checking for $ac_word" >&5
17524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17525 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 if test -n "$SGMLSPL"; then
17529 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17532 for as_dir in $PATH
17535 test -z "$as_dir" && as_dir=.
17536 for ac_exec_ext in '' $ac_executable_extensions; do
17537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17538 ac_cv_prog_SGMLSPL="$ac_prog"
17539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17547 SGMLSPL=$ac_cv_prog_SGMLSPL
17548 if test -n "$SGMLSPL"; then
17549 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17550 echo "${ECHO_T}$SGMLSPL" >&6
17552 echo "$as_me:$LINENO: result: no" >&5
17553 echo "${ECHO_T}no" >&6
17556 test -n "$SGMLSPL" && break
17561 # prepare build tree if outside source tree
17562 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17563 # Note 2: /bin/pwd might be better than shell's built-in at getting
17564 # a symlink-free name.
17565 if test "$no_create" != yes; then
17566 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17571 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17572 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17573 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17574 || { { echo "$as_me:$LINENO: error: failed" >&5
17575 echo "$as_me: error: failed" >&2;}
17576 { (exit 1); exit 1; }; }
17577 echo "$as_me:$LINENO: result: done" >&5
17578 echo "${ECHO_T}done" >&6
17583 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17586 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}"
17589 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17592 cat >confcache <<\_ACEOF
17593 # This file is a shell script that caches the results of configure
17594 # tests run on this system so they can be shared between configure
17595 # scripts and configure runs, see configure's option --config-cache.
17596 # It is not useful on other systems. If it contains results you don't
17597 # want to keep, you may remove or edit it.
17599 # config.status only pays attention to the cache file if you give it
17600 # the --recheck option to rerun configure.
17602 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17604 # following values.
17608 # The following way of writing the cache mishandles newlines in values,
17609 # but we know of no workaround that is simple, portable, and efficient.
17610 # So, don't put newlines in cache variables' values.
17611 # Ultrix sh set writes to stderr and can't be redirected directly,
17612 # and sets the high bit in the cache file unless we assign to the vars.
17615 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17617 # `set' does not quote correctly, so add quotes (double-quote
17618 # substitution turns \\\\ into \\, and sed turns \\ into \).
17621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17624 # `set' quotes correctly as required by POSIX, so do not add quotes.
17626 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17635 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17637 if cmp -s $cache_file confcache; then :; else
17638 if test -w $cache_file; then
17639 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17640 cat confcache >$cache_file
17642 echo "not updating unwritable cache $cache_file"
17647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17648 # Let make expand exec_prefix.
17649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17651 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17652 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17653 # trailing colons and then remove the whole line if VPATH becomes empty
17654 # (actually we leave an empty line to preserve line numbers).
17655 if test "x$srcdir" = x.; then
17656 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17657 s/:*\$(srcdir):*/:/;
17658 s/:*\${srcdir}:*/:/;
17660 s/^\([^=]*=[ ]*\):*/\1/;
17666 DEFS=-DHAVE_CONFIG_H
17669 : ${CONFIG_STATUS=./config.status}
17670 ac_clean_files_save=$ac_clean_files
17671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17672 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17674 cat >$CONFIG_STATUS <<_ACEOF
17676 # Generated by $as_me.
17677 # Run this file to recreate the current configuration.
17678 # Compiler output produced by configure, useful for debugging
17679 # configure, is in config.log if it exists.
17682 SHELL=\${CONFIG_SHELL-$SHELL}
17685 cat >>$CONFIG_STATUS <<\_ACEOF
17687 ## --------------------- ##
17688 ## M4sh Initialization. ##
17689 ## --------------------- ##
17691 # Be Bourne compatible
17692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17695 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17700 # Support unset when possible.
17701 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17707 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17708 { $as_unset LANG || test "${LANG+set}" != set; } ||
17709 { LANG=C; export LANG; }
17710 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17711 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17712 { LC_ALL=C; export LC_ALL; }
17713 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17714 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17715 { LC_TIME=C; export LC_TIME; }
17716 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17717 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17718 { LC_CTYPE=C; export LC_CTYPE; }
17719 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17720 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17721 { LANGUAGE=C; export LANGUAGE; }
17722 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17723 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17724 { LC_COLLATE=C; export LC_COLLATE; }
17725 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17726 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17727 { LC_NUMERIC=C; export LC_NUMERIC; }
17728 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17729 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17730 { LC_MESSAGES=C; export LC_MESSAGES; }
17733 # Name of the executable.
17734 as_me=`(basename "$0") 2>/dev/null ||
17735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17736 X"$0" : 'X\(//\)$' \| \
17737 X"$0" : 'X\(/\)$' \| \
17738 . : '\(.\)' 2>/dev/null ||
17740 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17741 /^X\/\(\/\/\)$/{ s//\1/; q; }
17742 /^X\/\(\/\).*/{ s//\1/; q; }
17745 # PATH needs CR, and LINENO needs CR and PATH.
17746 # Avoid depending upon Character Ranges.
17747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17750 as_cr_digits='0123456789'
17751 as_cr_alnum=$as_cr_Letters$as_cr_digits
17753 # The user is always right.
17754 if test "${PATH_SEPARATOR+set}" != set; then
17755 echo "#! /bin/sh" >conftest.sh
17756 echo "exit 0" >>conftest.sh
17757 chmod +x conftest.sh
17758 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17767 as_lineno_1=$LINENO
17768 as_lineno_2=$LINENO
17769 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17770 test "x$as_lineno_1" != "x$as_lineno_2" &&
17771 test "x$as_lineno_3" = "x$as_lineno_2" || {
17772 # Find who we are. Look in the path if we contain no path at all
17775 *[\\/]* ) as_myself=$0 ;;
17776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17777 for as_dir in $PATH
17780 test -z "$as_dir" && as_dir=.
17781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17786 # We did not find ourselves, most probably we were run as `sh COMMAND'
17787 # in which case we are not to be found in the path.
17788 if test "x$as_myself" = x; then
17791 if test ! -f "$as_myself"; then
17792 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17793 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17794 { (exit 1); exit 1; }; }
17796 case $CONFIG_SHELL in
17798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17799 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17802 test -z "$as_dir" && as_dir=.
17803 for as_base in sh bash ksh sh5; do
17806 if ("$as_dir/$as_base" -c '
17807 as_lineno_1=$LINENO
17808 as_lineno_2=$LINENO
17809 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17810 test "x$as_lineno_1" != "x$as_lineno_2" &&
17811 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17812 CONFIG_SHELL=$as_dir/$as_base
17813 export CONFIG_SHELL
17814 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17822 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17823 # uniformly replaced by the line number. The first 'sed' inserts a
17824 # line-number line before each line; the second 'sed' does the real
17825 # work. The second script uses 'N' to pair each line-number line
17826 # with the numbered line, and appends trailing '-' during
17827 # substitution so that $LINENO is not a special case at line end.
17828 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17829 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17830 sed '=' <$as_myself |
17835 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17838 s,^['$as_cr_digits']*\n,,
17839 ' >$as_me.lineno &&
17840 chmod +x $as_me.lineno ||
17841 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17842 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17843 { (exit 1); exit 1; }; }
17845 # Don't try to exec as it changes $[0], causing all sort of problems
17846 # (the dirname of $[0] is not the place where we might find the
17847 # original and so on. Autoconf is especially sensible to this).
17849 # Exit status is that of the last command.
17854 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17855 *c*,-n*) ECHO_N= ECHO_C='
17857 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17858 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17861 if expr a : '\(a\)' >/dev/null 2>&1; then
17867 rm -f conf$$ conf$$.exe conf$$.file
17869 if ln -s conf$$.file conf$$ 2>/dev/null; then
17870 # We could just check for DJGPP; but this test a) works b) is more generic
17871 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17872 if test -f conf$$.exe; then
17873 # Don't use ln at all; we don't have any links
17878 elif ln conf$$.file conf$$ 2>/dev/null; then
17883 rm -f conf$$ conf$$.exe conf$$.file
17885 as_executable_p="test -f"
17887 # Sed expression to map a string onto a valid CPP name.
17888 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17890 # Sed expression to map a string onto a valid variable name.
17891 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17895 # We need space, tab and new line, in precisely that order.
17901 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17905 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17906 # report actual input values of CONFIG_FILES etc. instead of their
17907 # values after options handling. Logging --version etc. is OK.
17911 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17912 ## Running $as_me. ##
17917 This file was extended by PostgreSQL $as_me 7.4beta5, which was
17918 generated by GNU Autoconf 2.53. Invocation command line was
17920 CONFIG_FILES = $CONFIG_FILES
17921 CONFIG_HEADERS = $CONFIG_HEADERS
17922 CONFIG_LINKS = $CONFIG_LINKS
17923 CONFIG_COMMANDS = $CONFIG_COMMANDS
17927 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17931 # Files that config.status was made for.
17932 if test -n "$ac_config_files"; then
17933 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17936 if test -n "$ac_config_headers"; then
17937 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17940 if test -n "$ac_config_links"; then
17941 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17944 if test -n "$ac_config_commands"; then
17945 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17948 cat >>$CONFIG_STATUS <<\_ACEOF
17951 \`$as_me' instantiates files from templates according to the
17952 current configuration.
17954 Usage: $0 [OPTIONS] [FILE]...
17956 -h, --help print this help, then exit
17957 -V, --version print version number, then exit
17958 -d, --debug don't remove temporary files
17959 --recheck update $as_me by reconfiguring in the same conditions
17960 --file=FILE[:TEMPLATE]
17961 instantiate the configuration file FILE
17962 --header=FILE[:TEMPLATE]
17963 instantiate the configuration header FILE
17965 Configuration files:
17968 Configuration headers:
17971 Configuration links:
17974 Report bugs to <bug-autoconf@gnu.org>."
17977 cat >>$CONFIG_STATUS <<_ACEOF
17979 PostgreSQL config.status 7.4beta5
17980 configured by $0, generated by GNU Autoconf 2.53,
17981 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17984 Free Software Foundation, Inc.
17985 This config.status script is free software; the Free Software Foundation
17986 gives unlimited permission to copy, distribute and modify it."
17990 cat >>$CONFIG_STATUS <<\_ACEOF
17991 # If no file are specified by the user, then we need to provide default
17992 # value. By we need to know if files were specified by the user.
17998 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17999 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18001 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18005 *) # This is not an option, so the user has probably given explicit
18007 ac_need_defaults=false;;
18011 # Handling of the options.
18013 cat >>$CONFIG_STATUS <<_ACEOF
18014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18015 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18016 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18018 cat >>$CONFIG_STATUS <<\_ACEOF
18019 --version | --vers* | -V )
18020 echo "$ac_cs_version"; exit 0 ;;
18022 # Conflict between --help and --header
18023 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18024 Try \`$0 --help' for more information." >&5
18025 echo "$as_me: error: ambiguous option: $1
18026 Try \`$0 --help' for more information." >&2;}
18027 { (exit 1); exit 1; }; };;
18028 --help | --hel | -h )
18029 echo "$ac_cs_usage"; exit 0 ;;
18030 --debug | --d* | -d )
18032 --file | --fil | --fi | --f )
18034 CONFIG_FILES="$CONFIG_FILES $1"
18035 ac_need_defaults=false;;
18036 --header | --heade | --head | --hea )
18038 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18039 ac_need_defaults=false;;
18041 # This is an error.
18042 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18043 Try \`$0 --help' for more information." >&5
18044 echo "$as_me: error: unrecognized option: $1
18045 Try \`$0 --help' for more information." >&2;}
18046 { (exit 1); exit 1; }; } ;;
18048 *) ac_config_targets="$ac_config_targets $1" ;;
18060 cat >>$CONFIG_STATUS <<\_ACEOF
18061 for ac_config_target in $ac_config_targets
18063 case "$ac_config_target" in
18064 # Handling of arguments.
18065 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18066 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18067 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18068 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18069 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18070 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18071 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18072 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18073 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18074 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18077 { (exit 1); exit 1; }; };;
18081 # If the user did not use the arguments to specify the items to instantiate,
18082 # then the envvar interface is used. Set only those that are not.
18083 # We use the long form for the default assignment because of an extremely
18084 # bizarre bug on SunOS 4.1.3.
18085 if $ac_need_defaults; then
18086 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18087 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18088 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18091 # Create a temporary directory, and hook for its removal unless debugging.
18094 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18095 trap '{ (exit 1); exit 1; }' 1 2 13 15
18098 # Create a (secure) tmp directory for tmp files.
18101 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18102 test -n "$tmp" && test -d "$tmp"
18105 tmp=$TMPDIR/cs$$-$RANDOM
18106 (umask 077 && mkdir $tmp)
18109 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18110 { (exit 1); exit 1; }
18115 cat >>$CONFIG_STATUS <<_ACEOF
18118 # CONFIG_FILES section.
18121 # No need to generate the scripts if there are no CONFIG_FILES.
18122 # This happens for instance when ./config.status config.h
18123 if test -n "\$CONFIG_FILES"; then
18124 # Protect against being on the right side of a sed subst in config.status.
18125 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18126 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18127 s,@SHELL@,$SHELL,;t t
18128 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18129 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18130 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18131 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18132 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18133 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18134 s,@exec_prefix@,$exec_prefix,;t t
18135 s,@prefix@,$prefix,;t t
18136 s,@program_transform_name@,$program_transform_name,;t t
18137 s,@bindir@,$bindir,;t t
18138 s,@sbindir@,$sbindir,;t t
18139 s,@libexecdir@,$libexecdir,;t t
18140 s,@datadir@,$datadir,;t t
18141 s,@sysconfdir@,$sysconfdir,;t t
18142 s,@sharedstatedir@,$sharedstatedir,;t t
18143 s,@localstatedir@,$localstatedir,;t t
18144 s,@libdir@,$libdir,;t t
18145 s,@includedir@,$includedir,;t t
18146 s,@oldincludedir@,$oldincludedir,;t t
18147 s,@infodir@,$infodir,;t t
18148 s,@mandir@,$mandir,;t t
18149 s,@build_alias@,$build_alias,;t t
18150 s,@host_alias@,$host_alias,;t t
18151 s,@target_alias@,$target_alias,;t t
18152 s,@DEFS@,$DEFS,;t t
18153 s,@ECHO_C@,$ECHO_C,;t t
18154 s,@ECHO_N@,$ECHO_N,;t t
18155 s,@ECHO_T@,$ECHO_T,;t t
18156 s,@LIBS@,$LIBS,;t t
18157 s,@docdir@,$docdir,;t t
18158 s,@configure_args@,$configure_args,;t t
18159 s,@build@,$build,;t t
18160 s,@build_cpu@,$build_cpu,;t t
18161 s,@build_vendor@,$build_vendor,;t t
18162 s,@build_os@,$build_os,;t t
18163 s,@host@,$host,;t t
18164 s,@host_cpu@,$host_cpu,;t t
18165 s,@host_vendor@,$host_vendor,;t t
18166 s,@host_os@,$host_os,;t t
18167 s,@PORTNAME@,$PORTNAME,;t t
18169 s,@enable_nls@,$enable_nls,;t t
18170 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18171 s,@default_port@,$default_port,;t t
18172 s,@enable_shared@,$enable_shared,;t t
18173 s,@enable_rpath@,$enable_rpath,;t t
18174 s,@enable_debug@,$enable_debug,;t t
18176 s,@CFLAGS@,$CFLAGS,;t t
18177 s,@LDFLAGS@,$LDFLAGS,;t t
18178 s,@CPPFLAGS@,$CPPFLAGS,;t t
18179 s,@ac_ct_CC@,$ac_ct_CC,;t t
18180 s,@EXEEXT@,$EXEEXT,;t t
18181 s,@OBJEXT@,$OBJEXT,;t t
18184 s,@autodepend@,$autodepend,;t t
18185 s,@INCLUDES@,$INCLUDES,;t t
18186 s,@enable_thread_safety@,$enable_thread_safety,;t t
18187 s,@with_tcl@,$with_tcl,;t t
18188 s,@with_tk@,$with_tk,;t t
18189 s,@with_perl@,$with_perl,;t t
18190 s,@with_python@,$with_python,;t t
18192 s,@with_java@,$with_java,;t t
18193 s,@with_krb4@,$with_krb4,;t t
18194 s,@with_krb5@,$with_krb5,;t t
18195 s,@krb_srvtab@,$krb_srvtab,;t t
18196 s,@with_pam@,$with_pam,;t t
18197 s,@with_rendezvous@,$with_rendezvous,;t t
18198 s,@with_openssl@,$with_openssl,;t t
18199 s,@ELF_SYS@,$ELF_SYS,;t t
18201 s,@FLEX@,$FLEX,;t t
18202 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18203 s,@LN_S@,$LN_S,;t t
18205 s,@with_gnu_ld@,$with_gnu_ld,;t t
18206 s,@ld_R_works@,$ld_R_works,;t t
18207 s,@RANLIB@,$RANLIB,;t t
18208 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18209 s,@LORDER@,$LORDER,;t t
18211 s,@STRIP@,$STRIP,;t t
18212 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18213 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18214 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18215 s,@YACC@,$YACC,;t t
18216 s,@YFLAGS@,$YFLAGS,;t t
18217 s,@PERL@,$PERL,;t t
18218 s,@perl_archlibexp@,$perl_archlibexp,;t t
18219 s,@perl_privlibexp@,$perl_privlibexp,;t t
18220 s,@perl_useshrplib@,$perl_useshrplib,;t t
18221 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18222 s,@PYTHON@,$PYTHON,;t t
18223 s,@python_prefix@,$python_prefix,;t t
18224 s,@python_execprefix@,$python_execprefix,;t t
18225 s,@python_configdir@,$python_configdir,;t t
18226 s,@python_includespec@,$python_includespec,;t t
18227 s,@python_libspec@,$python_libspec,;t t
18228 s,@LIBOBJS@,$LIBOBJS,;t t
18229 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18230 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18231 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18232 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18233 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18234 s,@MSGFMT@,$MSGFMT,;t t
18235 s,@MSGMERGE@,$MSGMERGE,;t t
18236 s,@XGETTEXT@,$XGETTEXT,;t t
18237 s,@localedir@,$localedir,;t t
18238 s,@TCLSH@,$TCLSH,;t t
18239 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18240 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18241 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18242 s,@TCL_LIBS@,$TCL_LIBS,;t t
18243 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18244 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18245 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18246 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18247 s,@TK_LIBS@,$TK_LIBS,;t t
18248 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18249 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18250 s,@NSGMLS@,$NSGMLS,;t t
18251 s,@JADE@,$JADE,;t t
18252 s,@have_docbook@,$have_docbook,;t t
18253 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18254 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18255 s,@SGMLSPL@,$SGMLSPL,;t t
18256 s,@vpath_build@,$vpath_build,;t t
18261 cat >>$CONFIG_STATUS <<\_ACEOF
18262 # Split the substitutions into bite-sized pieces for seds with
18263 # small command number limits, like on Digital OSF/1 and HP-UX.
18264 ac_max_sed_lines=48
18265 ac_sed_frag=1 # Number of current file.
18266 ac_beg=1 # First line for current file.
18267 ac_end=$ac_max_sed_lines # Line after last line for current file.
18270 while $ac_more_lines; do
18271 if test $ac_beg -gt 1; then
18272 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18274 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18276 if test ! -s $tmp/subs.frag; then
18277 ac_more_lines=false
18279 # The purpose of the label and of the branching condition is to
18280 # speed up the sed processing (if there are no `@' at all, there
18281 # is no need to browse any of the substitutions).
18282 # These are the two extra sed commands mentioned above.
18284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18285 if test -z "$ac_sed_cmds"; then
18286 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18288 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18290 ac_sed_frag=`expr $ac_sed_frag + 1`
18292 ac_end=`expr $ac_end + $ac_max_sed_lines`
18295 if test -z "$ac_sed_cmds"; then
18298 fi # test -n "$CONFIG_FILES"
18301 cat >>$CONFIG_STATUS <<\_ACEOF
18302 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18305 - | *:- | *:-:* ) # input from stdin
18307 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18309 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18311 * ) ac_file_in=$ac_file.in ;;
18314 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317 X"$ac_file" : 'X\(//\)[^/]' \| \
18318 X"$ac_file" : 'X\(//\)$' \| \
18319 X"$ac_file" : 'X\(/\)' \| \
18320 . : '\(.\)' 2>/dev/null ||
18322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18324 /^X\(\/\/\)$/{ s//\1/; q; }
18325 /^X\(\/\).*/{ s//\1/; q; }
18327 { case "$ac_dir" in
18328 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18332 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18333 case $as_mkdir_dir in
18334 # Skip DOS drivespec
18335 ?:) as_incr_dir=$as_mkdir_dir ;;
18337 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18338 test -d "$as_incr_dir" ||
18339 mkdir "$as_incr_dir" ||
18340 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18341 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18342 { (exit 1); exit 1; }; }
18349 if test "$ac_dir" != .; then
18350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18351 # A "../" for each directory in $ac_dir_suffix.
18352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18354 ac_dir_suffix= ac_top_builddir=
18358 .) # No --srcdir option. We are building in place.
18360 if test -z "$ac_top_builddir"; then
18363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18365 [\\/]* | ?:[\\/]* ) # Absolute path.
18366 ac_srcdir=$srcdir$ac_dir_suffix;
18367 ac_top_srcdir=$srcdir ;;
18368 *) # Relative path.
18369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18372 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18374 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18375 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18376 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18377 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18381 if test x"$ac_file" != x-; then
18382 { echo "$as_me:$LINENO: creating $ac_file" >&5
18383 echo "$as_me: creating $ac_file" >&6;}
18386 # Let's still pretend it is `configure' which instantiates (i.e., don't
18387 # use $as_me), people would be surprised to read:
18388 # /* config.h. Generated by config.status. */
18389 if test x"$ac_file" = x-; then
18392 configure_input="$ac_file. "
18394 configure_input=$configure_input"Generated from `echo $ac_file_in |
18395 sed 's,.*/,,'` by configure."
18397 # First look for the input files in the build tree, otherwise in the
18399 ac_file_inputs=`IFS=:
18400 for f in $ac_file_in; do
18402 -) echo $tmp/stdin ;;
18404 # Absolute (can't be DOS-style, as IFS=:)
18405 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18406 echo "$as_me: error: cannot find input file: $f" >&2;}
18407 { (exit 1); exit 1; }; }
18410 if test -f "$f"; then
18413 elif test -f "$srcdir/$f"; then
18418 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18419 echo "$as_me: error: cannot find input file: $f" >&2;}
18420 { (exit 1); exit 1; }; }
18423 done` || { (exit 1); exit 1; }
18425 cat >>$CONFIG_STATUS <<_ACEOF
18429 cat >>$CONFIG_STATUS <<\_ACEOF
18431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18432 s,@configure_input@,$configure_input,;t t
18433 s,@srcdir@,$ac_srcdir,;t t
18434 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18435 s,@top_srcdir@,$ac_top_srcdir,;t t
18436 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18437 s,@builddir@,$ac_builddir,;t t
18438 s,@abs_builddir@,$ac_abs_builddir,;t t
18439 s,@top_builddir@,$ac_top_builddir,;t t
18440 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18441 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18443 if test x"$ac_file" != x-; then
18444 mv $tmp/out $ac_file
18452 cat >>$CONFIG_STATUS <<\_ACEOF
18455 # CONFIG_HEADER section.
18458 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18459 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18461 # ac_d sets the value in "#define NAME VALUE" lines.
18462 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18463 ac_dB='[ ].*$,\1#\2'
18466 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18467 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18468 ac_uB='$,\1#\2define\3'
18472 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18473 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18475 - | *:- | *:-:* ) # input from stdin
18477 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18478 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18479 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18481 * ) ac_file_in=$ac_file.in ;;
18484 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18485 echo "$as_me: creating $ac_file" >&6;}
18487 # First look for the input files in the build tree, otherwise in the
18489 ac_file_inputs=`IFS=:
18490 for f in $ac_file_in; do
18492 -) echo $tmp/stdin ;;
18494 # Absolute (can't be DOS-style, as IFS=:)
18495 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18496 echo "$as_me: error: cannot find input file: $f" >&2;}
18497 { (exit 1); exit 1; }; }
18500 if test -f "$f"; then
18503 elif test -f "$srcdir/$f"; then
18508 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18509 echo "$as_me: error: cannot find input file: $f" >&2;}
18510 { (exit 1); exit 1; }; }
18513 done` || { (exit 1); exit 1; }
18514 # Remove the trailing spaces.
18515 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18519 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18520 # `conftest.undefs', that substitutes the proper values into
18521 # config.h.in to produce config.h. The first handles `#define'
18522 # templates, and the second `#undef' templates.
18523 # And first: Protect against being on the right side of a sed subst in
18524 # config.status. Protect against being in an unquoted here document
18525 # in config.status.
18526 rm -f conftest.defines conftest.undefs
18527 # Using a here document instead of a string reduces the quoting nightmare.
18528 # Putting comments in sed scripts is not portable.
18530 # `end' is used to avoid that the second main sed command (meant for
18531 # 0-ary CPP macros) applies to n-ary macro definitions.
18532 # See the Autoconf documentation for `clear'.
18533 cat >confdef2sed.sed <<\_ACEOF
18538 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18540 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18543 # If some macros were called several times there might be several times
18544 # the same #defines, which is useless. Nevertheless, we may not want to
18545 # sort them, since we want the *last* AC-DEFINE to be honored.
18546 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18547 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18548 rm -f confdef2sed.sed
18550 # This sed command replaces #undef with comments. This is necessary, for
18551 # example, in the case of _POSIX_SOURCE, which is predefined and required
18552 # on some systems where configure will not decide to define it.
18553 cat >>conftest.undefs <<\_ACEOF
18554 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18557 # Break up conftest.defines because some shells have a limit on the size
18558 # of here documents, and old seds have small limits too (100 cmds).
18559 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18560 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18561 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18562 echo ' :' >>$CONFIG_STATUS
18563 rm -f conftest.tail
18564 while grep . conftest.defines >/dev/null
18566 # Write a limited-size here document to $tmp/defines.sed.
18567 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18568 # Speed up: don't consider the non `#define' lines.
18569 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18570 # Work around the forget-to-reset-the-flag bug.
18571 echo 't clr' >>$CONFIG_STATUS
18572 echo ': clr' >>$CONFIG_STATUS
18573 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18575 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18577 mv $tmp/out $tmp/in
18579 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18580 rm -f conftest.defines
18581 mv conftest.tail conftest.defines
18583 rm -f conftest.defines
18584 echo ' fi # egrep' >>$CONFIG_STATUS
18585 echo >>$CONFIG_STATUS
18587 # Break up conftest.undefs because some shells have a limit on the size
18588 # of here documents, and old seds have small limits too (100 cmds).
18589 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18590 rm -f conftest.tail
18591 while grep . conftest.undefs >/dev/null
18593 # Write a limited-size here document to $tmp/undefs.sed.
18594 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18595 # Speed up: don't consider the non `#undef'
18596 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18597 # Work around the forget-to-reset-the-flag bug.
18598 echo 't clr' >>$CONFIG_STATUS
18599 echo ': clr' >>$CONFIG_STATUS
18600 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18602 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18604 mv $tmp/out $tmp/in
18606 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18607 rm -f conftest.undefs
18608 mv conftest.tail conftest.undefs
18610 rm -f conftest.undefs
18612 cat >>$CONFIG_STATUS <<\_ACEOF
18613 # Let's still pretend it is `configure' which instantiates (i.e., don't
18614 # use $as_me), people would be surprised to read:
18615 # /* config.h. Generated by config.status. */
18616 if test x"$ac_file" = x-; then
18617 echo "/* Generated by configure. */" >$tmp/config.h
18619 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18621 cat $tmp/in >>$tmp/config.h
18623 if test x"$ac_file" != x-; then
18624 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18625 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18626 echo "$as_me: $ac_file is unchanged" >&6;}
18628 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18630 X"$ac_file" : 'X\(//\)[^/]' \| \
18631 X"$ac_file" : 'X\(//\)$' \| \
18632 X"$ac_file" : 'X\(/\)' \| \
18633 . : '\(.\)' 2>/dev/null ||
18635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18637 /^X\(\/\/\)$/{ s//\1/; q; }
18638 /^X\(\/\).*/{ s//\1/; q; }
18640 { case "$ac_dir" in
18641 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18645 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18646 case $as_mkdir_dir in
18647 # Skip DOS drivespec
18648 ?:) as_incr_dir=$as_mkdir_dir ;;
18650 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18651 test -d "$as_incr_dir" ||
18652 mkdir "$as_incr_dir" ||
18653 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18654 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18655 { (exit 1); exit 1; }; }
18661 mv $tmp/config.h $ac_file
18665 rm -f $tmp/config.h
18667 # Run the commands associated with the file.
18669 src/include/pg_config.h )
18670 # Update timestamp for pg_config.h (see Makefile.global)
18671 echo >src/include/stamp-h
18676 cat >>$CONFIG_STATUS <<\_ACEOF
18679 # CONFIG_LINKS section.
18682 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18683 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18684 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18686 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18687 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18689 if test ! -r $srcdir/$ac_source; then
18690 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18691 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18692 { (exit 1); exit 1; }; }
18696 # Make relative symlinks.
18697 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18698 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699 X"$ac_dest" : 'X\(//\)[^/]' \| \
18700 X"$ac_dest" : 'X\(//\)$' \| \
18701 X"$ac_dest" : 'X\(/\)' \| \
18702 . : '\(.\)' 2>/dev/null ||
18704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18706 /^X\(\/\/\)$/{ s//\1/; q; }
18707 /^X\(\/\).*/{ s//\1/; q; }
18709 { case "$ac_dest_dir" in
18710 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18713 as_dummy="$ac_dest_dir"
18714 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18715 case $as_mkdir_dir in
18716 # Skip DOS drivespec
18717 ?:) as_incr_dir=$as_mkdir_dir ;;
18719 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18720 test -d "$as_incr_dir" ||
18721 mkdir "$as_incr_dir" ||
18722 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18723 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18724 { (exit 1); exit 1; }; }
18731 if test "$ac_dest_dir" != .; then
18732 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18733 # A "../" for each directory in $ac_dir_suffix.
18734 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18736 ac_dir_suffix= ac_top_builddir=
18740 .) # No --srcdir option. We are building in place.
18742 if test -z "$ac_top_builddir"; then
18745 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18747 [\\/]* | ?:[\\/]* ) # Absolute path.
18748 ac_srcdir=$srcdir$ac_dir_suffix;
18749 ac_top_srcdir=$srcdir ;;
18750 *) # Relative path.
18751 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18752 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18754 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18756 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18757 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18758 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18759 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18763 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18764 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18767 # Make a symlink if possible; otherwise try a hard link.
18768 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18769 ln $srcdir/$ac_source $ac_dest ||
18770 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18771 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18772 { (exit 1); exit 1; }; }
18776 cat >>$CONFIG_STATUS <<\_ACEOF
18778 { (exit 0); exit 0; }
18780 chmod +x $CONFIG_STATUS
18781 ac_clean_files=$ac_clean_files_save
18784 # configure is writing to config.log, and then calls config.status.
18785 # config.status does its own redirection, appending to config.log.
18786 # Unfortunately, on DOS this fails, as config.log is still kept open
18787 # by configure, so config.status won't be able to write to it; its
18788 # output is simply discarded. So we exec the FD to /dev/null,
18789 # effectively closing config.log, so it can be properly (re)opened and
18790 # appended to by config.status. When coming back to configure, we
18791 # need to make the FD available again.
18792 if test "$no_create" != yes; then
18795 $SHELL $CONFIG_STATUS || ac_cs_success=false
18797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18798 # would make configure fail if this is the last instruction.
18799 $ac_cs_success || { (exit 1); exit 1; }