2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4beta2.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2003 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4beta2'
262 PACKAGE_STRING='PostgreSQL 7.4beta2'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4beta2 to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.4beta2:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --enable-debug build with debugging symbols (-g)
845 --enable-depend turn on automatic dependency tracking
846 --enable-cassert enable assertion checks (for debugging)
847 --enable-thread-safety make client libraries thread-safe
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-tcl build Tcl and Tk interfaces
859 --without-tk do not build Tk interfaces if Tcl is enabled
860 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
861 --with-tkconfig=DIR tkConfig.sh is in DIR
862 --with-perl build Perl modules (PL/Perl)
863 --with-python build Python modules (PL/Python)
864 --with-java build JDBC interface and Java tools
865 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
866 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
867 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
868 --with-pam build with PAM support
869 --with-rendezvous build with Rendezvous support
870 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.4beta2
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2003 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.4beta2, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=cygwin ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 mingw*) template=win32 ;;
1398 netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400 openbsd*) template=openbsd ;;
1401 osf*) template=osf ;;
1402 qnx*) template=qnx4 ;;
1403 sco*) template=sco ;;
1404 solaris*) template=solaris ;;
1405 sunos*) template=sunos4 ;;
1407 case $host_vendor in
1408 univel) template=univel ;;
1410 sysv4*) template=svr4 ;;
1411 sysv5*) template=unixware ;;
1412 ultrix*) template=ultrix4 ;;
1415 if test x"$template" = x"" ; then
1416 { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this. Include the above 'checking host system type...'
1425 *******************************************************************
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this. Include the above 'checking host system type...'
1436 *******************************************************************
1438 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1451 # Pick right test-and-set (TAS) code. Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1455 hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;;
1456 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1458 *) need_tas=no; tas_file=dummy.s ;;
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1463 if test "$need_tas" = yes ; then
1471 ## Command line options
1476 # Add non-standard directories to the include path
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483 withval="$with_includes"
1487 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489 { (exit 1); exit 1; }; }
1492 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494 { (exit 1); exit 1; }; }
1506 # Add non-standard directories to the library search path
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513 withval="$with_libraries"
1517 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519 { (exit 1); exit 1; }; }
1522 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524 { (exit 1); exit 1; }; }
1527 LIBRARY_DIRS=$withval
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539 withval="$with_libs"
1543 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545 { (exit 1); exit 1; }; }
1548 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550 { (exit 1); exit 1; }; }
1553 LIBRARY_DIRS=$withval
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570 enableval="$enable_integer_datetimes"
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1584 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586 { (exit 1); exit 1; }; }
1591 enable_integer_datetimes=no
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1602 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1603 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1606 # Check whether --enable-nls or --disable-nls was given.
1607 if test "${enable_nls+set}" = set; then
1608 enableval="$enable_nls"
1619 WANTED_LANGUAGES=$enableval
1628 if test "$enable_nls" = yes; then
1630 cat >>confdefs.h <<\_ACEOF
1631 #define ENABLE_NLS 1
1636 echo "$as_me:$LINENO: result: $enable_nls" >&5
1637 echo "${ECHO_T}$enable_nls" >&6
1642 # Default port number (--with-pgport), default 5432
1644 echo "$as_me:$LINENO: checking for default port number" >&5
1645 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1649 # Check whether --with-pgport or --without-pgport was given.
1650 if test "${with_pgport+set}" = set; then
1651 withval="$with_pgport"
1655 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1656 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1657 { (exit 1); exit 1; }; }
1660 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1661 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1662 { (exit 1); exit 1; }; }
1665 default_port=$withval
1673 echo "$as_me:$LINENO: result: $default_port" >&5
1674 echo "${ECHO_T}$default_port" >&6
1675 # Need both of these because some places want an integer and some a string
1677 cat >>confdefs.h <<_ACEOF
1678 #define DEF_PGPORT ${default_port}
1682 cat >>confdefs.h <<_ACEOF
1683 #define DEF_PGPORT_STR "${default_port}"
1689 # Option to disable shared libraries
1693 # Check whether --enable-shared or --disable-shared was given.
1694 if test "${enable_shared+set}" = set; then
1695 enableval="$enable_shared"
1705 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1706 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1707 { (exit 1); exit 1; }; }
1719 # '-rpath'-like feature can be disabled
1723 # Check whether --enable-rpath or --disable-rpath was given.
1724 if test "${enable_rpath+set}" = set; then
1725 enableval="$enable_rpath"
1735 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1736 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1737 { (exit 1); exit 1; }; }
1750 # --enable-debug adds -g to compiler flags
1754 # Check whether --enable-debug or --disable-debug was given.
1755 if test "${enable_debug+set}" = set; then
1756 enableval="$enable_debug"
1766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1767 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1768 { (exit 1); exit 1; }; }
1783 # For historical reasons you can also use --with-CC to specify the C compiler
1784 # to use, although the standard way to do this is to set the CC environment
1789 # Check whether --with-CC or --without-CC was given.
1790 if test "${with_CC+set}" = set; then
1795 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1796 echo "$as_me: error: argument required for --with-CC option" >&2;}
1797 { (exit 1); exit 1; }; }
1800 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1801 echo "$as_me: error: argument required for --with-CC option" >&2;}
1802 { (exit 1); exit 1; }; }
1813 aix) pgac_cc_list="gcc xlc";;
1814 irix) pgac_cc_list="cc";; # no gcc
1815 *) pgac_cc_list="gcc cc";;
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824 for ac_prog in $pgac_cc_list
1826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$CC" && break
1864 if test -z "$CC"; then
1866 for ac_prog in $pgac_cc_list
1868 # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="$ac_prog"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1903 test -n "$ac_ct_CC" && break
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1912 { (exit 1); exit 1; }; }
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1938 #ifdef F77_DUMMY_MAIN
1942 int F77_DUMMY_MAIN() { return 1; }
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1957 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1958 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1973 ls a.out conftest 2>/dev/null;
1974 ls a.* conftest.* 2>/dev/null`; do
1976 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1977 a.out ) # We found the default executable, but exeext='' is most
1980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1991 echo "$as_me: error: C compiler cannot create executables" >&2;}
1992 { (exit 77); exit 77; }; }
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1999 # Check the compiler produces executables we can run. If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2014 if test "$cross_compiling" = maybe; then
2017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'." >&5
2019 echo "$as_me: error: cannot run C compiled programs.
2020 If you meant to cross compile, use \`--host'." >&2;}
2021 { (exit 1); exit 1; }; }
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2028 rm -f a.out a.exe conftest$ac_cv_exeext
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run. If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040 (eval $ac_link) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2048 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2050 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2079 #ifdef F77_DUMMY_MAIN
2083 int F77_DUMMY_MAIN() { return 1; }
2093 rm -f conftest.o conftest.obj
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; then
2099 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2129 #ifdef F77_DUMMY_MAIN
2133 int F77_DUMMY_MAIN() { return 1; }
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2183 #ifdef F77_DUMMY_MAIN
2187 int F77_DUMMY_MAIN() { return 1; }
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2219 if test "$ac_test_CFLAGS" = set; then
2220 CFLAGS=$ac_save_CFLAGS
2221 elif test $ac_cv_prog_cc_g = yes; then
2222 if test "$GCC" = yes; then
2228 if test "$GCC" = yes; then
2234 # Some people use a C++ compiler to compile C. Since we use `exit',
2235 # in C++ we need to declare it. In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 for ac_declaration in \
2257 '#include <stdlib.h>' \
2258 'extern "C" void std::exit (int) throw (); using std::exit;' \
2259 'extern "C" void std::exit (int); using std::exit;' \
2260 'extern "C" void exit (int) throw ();' \
2261 'extern "C" void exit (int);' \
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2269 #ifdef F77_DUMMY_MAIN
2273 int F77_DUMMY_MAIN() { return 1; }
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2301 rm -f conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2306 #ifdef F77_DUMMY_MAIN
2310 int F77_DUMMY_MAIN() { return 1; }
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 . "$srcdir/src/template/$template" || exit
2363 # adjust CFLAGS per template
2364 if test "$ac_env_CFLAGS_set" = set; then
2365 CFLAGS=$ac_env_CFLAGS_value
2367 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2370 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2371 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2373 # Check if the compiler still works with the template settings
2374 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2375 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2377 cat >conftest.$ac_ext <<_ACEOF
2378 #line $LINENO "configure"
2379 #include "confdefs.h"
2381 #ifdef F77_DUMMY_MAIN
2385 int F77_DUMMY_MAIN() { return 1; }
2395 rm -f conftest.$ac_objext conftest$ac_exeext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -s conftest$ac_exeext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 echo "$as_me:$LINENO: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6
2410 echo "$as_me: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6
2414 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2415 echo "$as_me: error: cannot proceed" >&2;}
2416 { (exit 1); exit 1; }; }
2418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2420 # Defend against gcc -ffastmath
2421 if test "$GCC" = yes; then
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #line $LINENO "configure"
2424 #include "confdefs.h"
2426 #ifdef F77_DUMMY_MAIN
2430 int F77_DUMMY_MAIN() { return 1; }
2435 #ifdef __FAST_MATH__
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2459 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2460 { (exit 1); exit 1; }; }
2462 rm -f conftest.$ac_objext conftest.$ac_ext
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2472 # On Suns, sometimes $CPP names a directory.
2473 if test -n "$CPP" && test -d "$CPP"; then
2476 if test -z "$CPP"; then
2477 if test "${ac_cv_prog_CPP+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 # Double quotes because CPP needs to be expanded
2481 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2484 for ac_c_preproc_warn_flag in '' yes
2486 # Use a header file that comes with gcc, so configuring glibc
2487 # with a fresh cross-compiler works.
2488 # On the NeXT, cc -E runs the code through the compiler's parser,
2489 # not just through cpp. "Syntax error" is here to catch this case.
2490 cat >conftest.$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2492 #include "confdefs.h"
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499 egrep -v '^ *\+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2512 if test -z "$ac_cpp_err"; then
2515 echo "$as_me: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 # Broken: fails on valid input.
2520 rm -f conftest.err conftest.$ac_ext
2522 # OK, works on sane cases. Now check whether non-existent headers
2523 # can be detected and how.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527 #include <ac_nonexistent.h>
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532 egrep -v '^ *\+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2545 if test -z "$ac_cpp_err"; then
2546 # Broken: success on invalid input.
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 # Passes both tests.
2555 rm -f conftest.err conftest.$ac_ext
2558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559 rm -f conftest.err conftest.$ac_ext
2560 if $ac_preproc_ok; then
2572 echo "$as_me:$LINENO: result: $CPP" >&5
2573 echo "${ECHO_T}$CPP" >&6
2575 for ac_c_preproc_warn_flag in '' yes
2577 # Use a header file that comes with gcc, so configuring glibc
2578 # with a fresh cross-compiler works.
2579 # On the NeXT, cc -E runs the code through the compiler's parser,
2580 # not just through cpp. "Syntax error" is here to catch this case.
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2590 egrep -v '^ *\+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } >/dev/null; then
2595 if test -s conftest.err; then
2596 ac_cpp_err=$ac_c_preproc_warn_flag
2603 if test -z "$ac_cpp_err"; then
2606 echo "$as_me: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 # Broken: fails on valid input.
2611 rm -f conftest.err conftest.$ac_ext
2613 # OK, works on sane cases. Now check whether non-existent headers
2614 # can be detected and how.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2618 #include <ac_nonexistent.h>
2620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2623 egrep -v '^ *\+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } >/dev/null; then
2628 if test -s conftest.err; then
2629 ac_cpp_err=$ac_c_preproc_warn_flag
2636 if test -z "$ac_cpp_err"; then
2637 # Broken: success on invalid input.
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 # Passes both tests.
2646 rm -f conftest.err conftest.$ac_ext
2649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2650 rm -f conftest.err conftest.$ac_ext
2651 if $ac_preproc_ok; then
2654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2656 { (exit 1); exit 1; }; }
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 # Create compiler version string
2668 if test x"$GCC" = x"yes" ; then
2669 cc_string="GCC `${CC} --version | sed q`"
2674 cat >>confdefs.h <<_ACEOF
2675 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2681 # Automatic dependency tracking
2685 # Check whether --enable-depend or --disable-depend was given.
2686 if test "${enable_depend+set}" = set; then
2687 enableval="$enable_depend"
2697 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2698 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2699 { (exit 1); exit 1; }; }
2712 # Enable assert checks
2716 # Check whether --enable-cassert or --disable-cassert was given.
2717 if test "${enable_cassert+set}" = set; then
2718 enableval="$enable_cassert"
2723 cat >>confdefs.h <<\_ACEOF
2724 #define USE_ASSERT_CHECKING 1
2732 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2733 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2734 { (exit 1); exit 1; }; }
2746 # Include directories
2750 # SRCH_INC comes from the template file
2751 for dir in $with_includes $SRCH_INC; do
2752 if test -d "$dir"; then
2753 INCLUDES="$INCLUDES -I$dir"
2755 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2756 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2764 # Library directories
2768 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2769 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2770 if test -d "$dir"; then
2771 LIBDIRS="$LIBDIRS -L$dir"
2773 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2774 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2780 # Enable thread-safe client libraries
2782 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2783 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2786 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2787 if test "${enable_thread_safety+set}" = set; then
2788 enableval="$enable_thread_safety"
2793 cat >>confdefs.h <<\_ACEOF
2794 #define USE_THREADS 1
2802 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2803 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2804 { (exit 1); exit 1; }; }
2809 enable_thread_safety=no
2813 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2814 echo "${ECHO_T}$enable_thread_safety" >&6
2820 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2821 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2825 # Check whether --with-tcl or --without-tcl was given.
2826 if test "${with_tcl+set}" = set; then
2837 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2838 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2839 { (exit 1); exit 1; }; }
2848 echo "$as_me:$LINENO: result: $with_tcl" >&5
2849 echo "${ECHO_T}$with_tcl" >&6
2852 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2853 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2854 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2855 if test "$with_tcl" = yes; then
2859 # Check whether --with-tk or --without-tk was given.
2860 if test "${with_tk+set}" = set; then
2871 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2872 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2873 { (exit 1); exit 1; }; }
2885 echo "$as_me:$LINENO: result: $with_tk" >&5
2886 echo "${ECHO_T}$with_tk" >&6
2890 # We see if the path to the Tcl/Tk configuration scripts is specified.
2891 # This will override the use of tclsh to find the paths to search.
2896 # Check whether --with-tclconfig or --without-tclconfig was given.
2897 if test "${with_tclconfig+set}" = set; then
2898 withval="$with_tclconfig"
2902 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2903 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2904 { (exit 1); exit 1; }; }
2907 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2908 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2909 { (exit 1); exit 1; }; }
2919 # We see if the path to the Tk configuration scripts is specified.
2920 # This will override the use of tclsh to find the paths to search.
2925 # Check whether --with-tkconfig or --without-tkconfig was given.
2926 if test "${with_tkconfig+set}" = set; then
2927 withval="$with_tkconfig"
2931 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2932 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2933 { (exit 1); exit 1; }; }
2936 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2937 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2938 { (exit 1); exit 1; }; }
2949 # Optionally build Perl modules (PL/Perl)
2951 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2952 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2956 # Check whether --with-perl or --without-perl was given.
2957 if test "${with_perl+set}" = set; then
2958 withval="$with_perl"
2968 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2969 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2970 { (exit 1); exit 1; }; }
2979 echo "$as_me:$LINENO: result: $with_perl" >&5
2980 echo "${ECHO_T}$with_perl" >&6
2984 # Optionally build Python modules (PL/Python)
2986 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2987 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2991 # Check whether --with-python or --without-python was given.
2992 if test "${with_python+set}" = set; then
2993 withval="$with_python"
3003 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3004 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3005 { (exit 1); exit 1; }; }
3014 echo "$as_me:$LINENO: result: $with_python" >&5
3015 echo "${ECHO_T}$with_python" >&6
3019 # Optionally build the Java/JDBC tools
3021 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3022 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3026 # Check whether --with-java or --without-java was given.
3027 if test "${with_java+set}" = set; then
3028 withval="$with_java"
3032 echo "$as_me:$LINENO: result: yes" >&5
3033 echo "${ECHO_T}yes" >&6
3035 for ac_prog in jakarta-ant ant ant.sh ant.bat
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041 if test "${ac_cv_path_ANT+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$ANT"; then
3069 echo "$as_me:$LINENO: result: $ANT" >&5
3070 echo "${ECHO_T}$ANT" >&6
3072 echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6
3076 test -n "$ANT" && break
3080 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3081 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3082 if test "${pgac_cv_prog_ant_works+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 cat > conftest.java << EOF
3087 public class conftest {
3088 int testmethod(int a, int b) {
3094 cat > conftest.xml << EOF
3095 <project name="conftest" default="conftest">
3096 <target name="conftest">
3097 <javac srcdir="." includes="conftest.java">
3103 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3104 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3105 (eval $pgac_cmd) 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }
3110 if test $? = 0 && test -f ./conftest.class ; then
3111 pgac_cv_prog_ant_works=yes
3113 echo "configure: failed java program was:" >&5
3114 cat conftest.java >&5
3115 echo "configure: failed build file was:" >&5
3116 cat conftest.xml >&5
3117 pgac_cv_prog_ant_works=no
3120 rm -f conftest* core core.* *.core
3123 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3124 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3126 if test "$pgac_cv_prog_ant_works" != yes; then
3127 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3128 echo "$as_me: error: ant does not work" >&2;}
3129 { (exit 1); exit 1; }; }
3133 if test -z "$ANT"; then
3134 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3135 If you have Ant already installed, see config.log for details on the failure." >&5
3136 echo "$as_me: error: Ant is required to build Java components
3137 If you have Ant already installed, see config.log for details on the failure." >&2;}
3138 { (exit 1); exit 1; }; }
3140 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3141 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3142 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3143 { (exit 1); exit 1; }; }
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3152 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3153 { (exit 1); exit 1; }; }
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3169 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3170 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3174 # Check whether --with-krb4 or --without-krb4 was given.
3175 if test "${with_krb4+set}" = set; then
3176 withval="$with_krb4"
3180 krb4_prefix=/usr/athena
3187 krb4_prefix=$withval
3196 if test "$with_krb4" = yes; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3201 cat >>confdefs.h <<\_ACEOF
3206 if test -d "$krb4_prefix/include"; then
3207 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3209 if test -d "$krb4_prefix/lib"; then
3210 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3213 krb_srvtab="/etc/srvtab"
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3227 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3228 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3232 # Check whether --with-krb5 or --without-krb5 was given.
3233 if test "${with_krb5+set}" = set; then
3234 withval="$with_krb5"
3238 krb5_prefix=/usr/athena
3245 krb5_prefix=$withval
3254 if test "$with_krb5" = yes; then
3256 echo "$as_me:$LINENO: result: yes" >&5
3257 echo "${ECHO_T}yes" >&6
3259 cat >>confdefs.h <<\_ACEOF
3264 if test -d "$krb5_prefix/include"; then
3265 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3267 if test -d "$krb5_prefix/lib"; then
3268 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3271 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3282 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3283 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3284 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3285 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3286 { (exit 1); exit 1; }; }
3293 # Kerberos configuration parameters
3298 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3299 if test "${with_krb_srvnam+set}" = set; then
3300 withval="$with_krb_srvnam"
3304 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3305 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3306 { (exit 1); exit 1; }; }
3309 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3310 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3311 { (exit 1); exit 1; }; }
3319 with_krb_srvnam="postgres"
3323 cat >>confdefs.h <<_ACEOF
3324 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3332 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3333 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3337 # Check whether --with-pam or --without-pam was given.
3338 if test "${with_pam+set}" = set; then
3344 cat >>confdefs.h <<\_ACEOF
3353 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3354 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3355 { (exit 1); exit 1; }; }
3364 echo "$as_me:$LINENO: result: $with_pam" >&5
3365 echo "${ECHO_T}$with_pam" >&6
3372 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3373 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3377 # Check whether --with-rendezvous or --without-rendezvous was given.
3378 if test "${with_rendezvous+set}" = set; then
3379 withval="$with_rendezvous"
3384 cat >>confdefs.h <<\_ACEOF
3385 #define USE_RENDEZVOUS 1
3393 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3394 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3395 { (exit 1); exit 1; }; }
3404 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3405 echo "${ECHO_T}$with_rendezvous" >&6
3415 # Check whether --with-openssl or --without-openssl was given.
3416 if test "${with_openssl+set}" = set; then
3417 withval="$with_openssl"
3421 openssl_prefix=/usr/local/ssl
3428 openssl_prefix=$withval
3437 if test "$with_openssl" = yes; then
3439 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3440 echo "${ECHO_T}building with OpenSSL support" >&6
3442 cat >>confdefs.h <<\_ACEOF
3447 if test -d "${openssl_prefix}/include" ; then
3448 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3450 if test -d "${openssl_prefix}/lib" ; then
3451 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3466 # Check whether --with-readline or --without-readline was given.
3467 if test "${with_readline+set}" = set; then
3468 withval="$with_readline"
3478 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3479 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3480 { (exit 1); exit 1; }; }
3496 # Check whether --with-zlib or --without-zlib was given.
3497 if test "${with_zlib+set}" = set; then
3498 withval="$with_zlib"
3508 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3509 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3510 { (exit 1); exit 1; }; }
3525 # Assume system is ELF if it predefines __ELF__ as 1,
3526 # otherwise believe host_os based default.
3528 freebsd1*|freebsd2*) elf=no;;
3529 freebsd3*|freebsd4*) elf=yes;;
3533 cat >conftest.$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3535 #include "confdefs.h"
3541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542 egrep "yes" >/dev/null 2>&1; then
3545 if test "X$elf" = "Xyes" ; then
3559 CPPFLAGS="$CPPFLAGS $INCLUDES"
3560 LDFLAGS="$LDFLAGS $LIBDIRS"
3562 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3563 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3564 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3565 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3568 for ac_prog in gawk mawk nawk awk
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_AWK+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 if test -n "$AWK"; then
3578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_AWK="$ac_prog"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 if test -n "$AWK"; then
3598 echo "$as_me:$LINENO: result: $AWK" >&5
3599 echo "${ECHO_T}$AWK" >&6
3601 echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3605 test -n "$AWK" && break
3608 echo "$as_me:$LINENO: checking for flex" >&5
3609 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3610 if test "${pgac_cv_path_flex+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 # Let the user override the test
3614 if test -n "$FLEX"; then
3615 pgac_cv_path_flex=$FLEX
3619 for pgac_dir in $PATH; do
3620 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3623 for pgac_prog in flex lex; do
3624 pgac_candidate="$pgac_dir/$pgac_prog"
3625 if test -f "$pgac_candidate" \
3626 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3628 echo '%%' > conftest.l
3629 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3630 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3631 pgac_broken_flex=$pgac_candidate
3635 pgac_cv_path_flex=$pgac_candidate
3643 : ${pgac_cv_path_flex=no}
3647 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3648 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3649 if test x"$pgac_cv_path_flex" = x"no"; then
3650 if test -n "$pgac_broken_flex"; then
3651 { echo "$as_me:$LINENO: WARNING:
3652 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3653 *** should get version 2.5.4 or later." >&5
3654 echo "$as_me: WARNING:
3655 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3656 *** should get version 2.5.4 or later." >&2;}
3659 { echo "$as_me:$LINENO: WARNING:
3660 *** Without Flex you will not be able to build PostgreSQL from CVS or
3661 *** change any of the scanner definition files. You can obtain Flex from
3662 *** a GNU mirror site. (If you are using the official distribution of
3663 *** PostgreSQL then you do not need to worry about this because the Flex
3664 *** output is pre-generated.)" >&5
3665 echo "$as_me: WARNING:
3666 *** Without Flex you will not be able to build PostgreSQL from CVS or
3667 *** change any of the scanner definition files. You can obtain Flex from
3668 *** a GNU mirror site. (If you are using the official distribution of
3669 *** PostgreSQL then you do not need to worry about this because the Flex
3670 *** output is pre-generated.)" >&2;}
3673 if test x"$pgac_cv_path_flex" = x"no"; then
3676 FLEX=$pgac_cv_path_flex
3682 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3683 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3685 if test "$LN_S" = "ln -s"; then
3686 echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6
3689 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3690 echo "${ECHO_T}no, using $LN_S" >&6
3694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3695 if test "${with_gnu_ld+set}" = set; then
3696 withval="$with_gnu_ld"
3697 test "$withval" = no || with_gnu_ld=yes
3702 if test "$GCC" = yes; then
3703 # Check if gcc -print-prog-name=ld gives a path.
3704 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3705 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3708 # gcc leaves a trailing carriage return which upsets mingw
3709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3714 # Accept absolute paths.
3715 [\\/]* | [A-Za-z]:[\\/]*)
3716 re_direlt='/[^/][^/]*/\.\./'
3717 # Canonicalize the path of ld
3718 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3720 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3722 test -z "$LD" && LD="$ac_prog"
3725 # If it fails, then pretend we aren't using GCC.
3729 # If it is relative, then search for the first ld in PATH.
3733 elif test "$with_gnu_ld" = yes; then
3734 echo "$as_me:$LINENO: checking for GNU ld" >&5
3735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3737 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3740 if test "${ac_cv_path_LD+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 if test -z "$LD"; then
3744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3745 for ac_dir in $PATH; do
3746 test -z "$ac_dir" && ac_dir=.
3747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3748 ac_cv_path_LD="$ac_dir/$ac_prog"
3749 # Check to see if the program is GNU ld. I'd rather use --version,
3750 # but apparently some GNU ld's only accept -v.
3751 # Break only if it was the GNU/non-GNU ld that we prefer.
3752 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3753 test "$with_gnu_ld" != no && break
3755 test "$with_gnu_ld" != yes && break
3761 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3766 if test -n "$LD"; then
3767 echo "$as_me:$LINENO: result: $LD" >&5
3768 echo "${ECHO_T}$LD" >&6
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3773 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3774 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3775 { (exit 1); exit 1; }; }
3776 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3777 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3778 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3782 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3783 ac_cv_prog_gnu_ld=yes
3785 ac_cv_prog_gnu_ld=no
3788 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3789 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3790 with_gnu_ld=$ac_cv_prog_gnu_ld
3795 case $host_os in sysv5*)
3796 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3797 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3798 if test "${pgac_cv_prog_ld_R+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3803 cat >conftest.$ac_ext <<_ACEOF
3804 #line $LINENO "configure"
3805 #include "confdefs.h"
3807 #ifdef F77_DUMMY_MAIN
3811 int F77_DUMMY_MAIN() { return 1; }
3821 rm -f conftest.$ac_objext conftest$ac_exeext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823 (eval $ac_link) 2>&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
3827 { ac_try='test -s conftest$ac_exeext'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
3833 pgac_cv_prog_ld_R=yes
3835 echo "$as_me: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3837 pgac_cv_prog_ld_R=no
3839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3840 LDFLAGS=$pgac_save_LDFLAGS
3843 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3844 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3845 ld_R_works=$pgac_cv_prog_ld_R
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_prog_RANLIB+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 if test -n "$RANLIB"; then
3857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 RANLIB=$ac_cv_prog_RANLIB
3876 if test -n "$RANLIB"; then
3877 echo "$as_me:$LINENO: result: $RANLIB" >&5
3878 echo "${ECHO_T}$RANLIB" >&6
3880 echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3885 if test -z "$ac_cv_prog_RANLIB"; then
3886 ac_ct_RANLIB=$RANLIB
3887 # Extract the first word of "ranlib", so it can be a program name with args.
3888 set dummy ranlib; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 if test -n "$ac_ct_RANLIB"; then
3895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_ac_ct_RANLIB="ranlib"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3915 if test -n "$ac_ct_RANLIB"; then
3916 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3917 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 RANLIB=$ac_ct_RANLIB
3925 RANLIB="$ac_cv_prog_RANLIB"
3928 for ac_prog in lorder
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931 set dummy $ac_prog; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_prog_LORDER+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 if test -n "$LORDER"; then
3938 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_prog_LORDER="$ac_prog"
3948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 LORDER=$ac_cv_prog_LORDER
3957 if test -n "$LORDER"; then
3958 echo "$as_me:$LINENO: result: $LORDER" >&5
3959 echo "${ECHO_T}$LORDER" >&6
3961 echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3965 test -n "$LORDER" && break
3968 # Extract the first word of "tar", so it can be a program name with args.
3969 set dummy tar; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_path_TAR+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 if test -n "$TAR"; then
4000 echo "$as_me:$LINENO: result: $TAR" >&5
4001 echo "${ECHO_T}$TAR" >&6
4003 echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4008 if test -n "$ac_tool_prefix"; then
4009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4010 set dummy ${ac_tool_prefix}strip; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_prog_STRIP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 if test -n "$STRIP"; then
4017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 STRIP=$ac_cv_prog_STRIP
4036 if test -n "$STRIP"; then
4037 echo "$as_me:$LINENO: result: $STRIP" >&5
4038 echo "${ECHO_T}$STRIP" >&6
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4045 if test -z "$ac_cv_prog_STRIP"; then
4047 # Extract the first word of "strip", so it can be a program name with args.
4048 set dummy strip; ac_word=$2
4049 echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 if test -n "$ac_ct_STRIP"; then
4055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_STRIP="strip"
4065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4075 if test -n "$ac_ct_STRIP"; then
4076 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4077 echo "${ECHO_T}$ac_ct_STRIP" >&6
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4085 STRIP="$ac_cv_prog_STRIP"
4089 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4090 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4091 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4092 STRIP_STATIC_LIB="$STRIP -x"
4093 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4094 echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4106 for ac_prog in 'bison -y'
4108 # Extract the first word of "$ac_prog", so it can be a program name with args.
4109 set dummy $ac_prog; ac_word=$2
4110 echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_YACC+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$YACC"; then
4116 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_prog_YACC="$ac_prog"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 YACC=$ac_cv_prog_YACC
4135 if test -n "$YACC"; then
4136 echo "$as_me:$LINENO: result: $YACC" >&5
4137 echo "${ECHO_T}$YACC" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 test -n "$YACC" && break
4147 if test "$YACC"; then
4148 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4149 { echo "$as_me:$LINENO: WARNING:
4150 *** The installed version of Bison is too old. PostgreSQL needs
4151 *** Bison version 1.875 or later." >&5
4152 echo "$as_me: WARNING:
4153 *** The installed version of Bison is too old. PostgreSQL needs
4154 *** Bison version 1.875 or later." >&2;}
4158 if test -z "$YACC"; then
4159 { echo "$as_me:$LINENO: WARNING:
4160 *** Without Bison you will not be able to build PostgreSQL from CVS or
4161 *** change any of the parser definition files. You can obtain Bison from
4162 *** a GNU mirror site. (If you are using the official distribution of
4163 *** PostgreSQL then you do not need to worry about this because the Bison
4164 *** output is pre-generated.) To use a different yacc program (possible,
4165 *** but not recommended), set the environment variable YACC before running
4166 *** 'configure'." >&5
4167 echo "$as_me: WARNING:
4168 *** Without Bison you will not be able to build PostgreSQL from CVS or
4169 *** change any of the parser definition files. You can obtain Bison from
4170 *** a GNU mirror site. (If you are using the official distribution of
4171 *** PostgreSQL then you do not need to worry about this because the Bison
4172 *** output is pre-generated.) To use a different yacc program (possible,
4173 *** but not recommended), set the environment variable YACC before running
4174 *** 'configure'." >&2;}
4178 # Extract the first word of "perl", so it can be a program name with args.
4179 set dummy perl; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_PERL+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 PERL=$ac_cv_path_PERL
4209 if test -n "$PERL"; then
4210 echo "$as_me:$LINENO: result: $PERL" >&5
4211 echo "${ECHO_T}$PERL" >&6
4213 echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4217 if test "$with_perl" = yes; then
4219 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4220 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4221 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4222 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4223 echo "${ECHO_T}$perl_archlibexp" >&6
4224 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4225 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4226 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4227 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4228 echo "${ECHO_T}$perl_privlibexp" >&6
4229 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4230 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4231 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4232 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4233 echo "${ECHO_T}$perl_useshrplib" >&6
4235 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4236 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4237 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4238 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4239 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4240 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4241 echo "${ECHO_T}$perl_embed_ldflags" >&6
4244 if test "$with_python" = yes; then
4245 # Extract the first word of "python", so it can be a program name with args.
4246 set dummy python; ac_word=$2
4247 echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_path_PYTHON+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 PYTHON=$ac_cv_path_PYTHON
4276 if test -n "$PYTHON"; then
4277 echo "$as_me:$LINENO: result: $PYTHON" >&5
4278 echo "${ECHO_T}$PYTHON" >&6
4280 echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6
4284 if test x"$PYTHON" = x""; then
4285 { { echo "$as_me:$LINENO: error: Python not found" >&5
4286 echo "$as_me: error: Python not found" >&2;}
4287 { (exit 1); exit 1; }; }
4291 echo "$as_me:$LINENO: checking Python installation directories" >&5
4292 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4293 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4294 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4295 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4296 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4297 python_includespec="-I${python_prefix}/include/python${python_version}"
4298 if test "$python_prefix" != "$python_execprefix"; then
4299 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4302 # This should be enough of a message.
4303 if test "$python_prefix" != "$python_execprefix"; then
4304 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4305 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4307 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4308 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4312 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4313 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4315 if test ! -f "$python_configdir/Makefile"; then
4316 echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4318 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4319 echo "$as_me: error: Python Makefile not found" >&2;}
4320 { (exit 1); exit 1; }; }
4323 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4324 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4325 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4326 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4327 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4329 pgac_tab=" " # tab character
4330 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"`
4332 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4333 echo "${ECHO_T}${python_libspec}" >&6
4343 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4346 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4347 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4348 if test "${ac_cv_lib_bsd_main+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 ac_check_lib_save_LIBS=$LIBS
4353 cat >conftest.$ac_ext <<_ACEOF
4354 #line $LINENO "configure"
4355 #include "confdefs.h"
4358 #ifdef F77_DUMMY_MAIN
4362 int F77_DUMMY_MAIN() { return 1; }
4372 rm -f conftest.$ac_objext conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try='test -s conftest$ac_exeext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 ac_cv_lib_bsd_main=yes
4386 echo "$as_me: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 ac_cv_lib_bsd_main=no
4390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4393 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4394 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4395 if test $ac_cv_lib_bsd_main = yes; then
4396 cat >>confdefs.h <<_ACEOF
4397 #define HAVE_LIBBSD 1
4406 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4407 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4408 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 ac_check_lib_save_LIBS=$LIBS
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4423 char setproctitle ();
4424 #ifdef F77_DUMMY_MAIN
4428 int F77_DUMMY_MAIN() { return 1; }
4438 rm -f conftest.$ac_objext conftest$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440 (eval $ac_link) 2>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -s conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_lib_util_setproctitle=yes
4452 echo "$as_me: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4454 ac_cv_lib_util_setproctitle=no
4456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4457 LIBS=$ac_check_lib_save_LIBS
4459 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4460 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4461 if test $ac_cv_lib_util_setproctitle = yes; then
4462 cat >>confdefs.h <<_ACEOF
4463 #define HAVE_LIBUTIL 1
4471 echo "$as_me:$LINENO: checking for main in -lm" >&5
4472 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4473 if test "${ac_cv_lib_m_main+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_check_lib_save_LIBS=$LIBS
4478 cat >conftest.$ac_ext <<_ACEOF
4479 #line $LINENO "configure"
4480 #include "confdefs.h"
4483 #ifdef F77_DUMMY_MAIN
4487 int F77_DUMMY_MAIN() { return 1; }
4497 rm -f conftest.$ac_objext conftest$ac_exeext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4499 (eval $ac_link) 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -s conftest$ac_exeext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_cv_lib_m_main=yes
4511 echo "$as_me: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4516 LIBS=$ac_check_lib_save_LIBS
4518 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4519 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4520 if test $ac_cv_lib_m_main = yes; then
4521 cat >>confdefs.h <<_ACEOF
4530 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4531 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4532 if test "${ac_cv_lib_dl_main+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 ac_check_lib_save_LIBS=$LIBS
4537 cat >conftest.$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4539 #include "confdefs.h"
4542 #ifdef F77_DUMMY_MAIN
4546 int F77_DUMMY_MAIN() { return 1; }
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558 (eval $ac_link) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -s conftest$ac_exeext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_lib_dl_main=yes
4570 echo "$as_me: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572 ac_cv_lib_dl_main=no
4574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4575 LIBS=$ac_check_lib_save_LIBS
4577 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4578 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4579 if test $ac_cv_lib_dl_main = yes; then
4580 cat >>confdefs.h <<_ACEOF
4581 #define HAVE_LIBDL 1
4589 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4590 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4591 if test "${ac_cv_lib_nsl_main+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 ac_check_lib_save_LIBS=$LIBS
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 #include "confdefs.h"
4601 #ifdef F77_DUMMY_MAIN
4605 int F77_DUMMY_MAIN() { return 1; }
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617 (eval $ac_link) 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -s conftest$ac_exeext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_lib_nsl_main=yes
4629 echo "$as_me: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4631 ac_cv_lib_nsl_main=no
4633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4634 LIBS=$ac_check_lib_save_LIBS
4636 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4637 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4638 if test $ac_cv_lib_nsl_main = yes; then
4639 cat >>confdefs.h <<_ACEOF
4640 #define HAVE_LIBNSL 1
4648 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4649 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4650 if test "${ac_cv_lib_socket_main+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 ac_check_lib_save_LIBS=$LIBS
4654 LIBS="-lsocket $LIBS"
4655 cat >conftest.$ac_ext <<_ACEOF
4656 #line $LINENO "configure"
4657 #include "confdefs.h"
4660 #ifdef F77_DUMMY_MAIN
4664 int F77_DUMMY_MAIN() { return 1; }
4674 rm -f conftest.$ac_objext conftest$ac_exeext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676 (eval $ac_link) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -s conftest$ac_exeext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_lib_socket_main=yes
4688 echo "$as_me: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4690 ac_cv_lib_socket_main=no
4692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4693 LIBS=$ac_check_lib_save_LIBS
4695 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4696 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4697 if test $ac_cv_lib_socket_main = yes; then
4698 cat >>confdefs.h <<_ACEOF
4699 #define HAVE_LIBSOCKET 1
4702 LIBS="-lsocket $LIBS"
4707 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4708 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4709 if test "${ac_cv_lib_ipc_main+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_check_lib_save_LIBS=$LIBS
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4716 #include "confdefs.h"
4719 #ifdef F77_DUMMY_MAIN
4723 int F77_DUMMY_MAIN() { return 1; }
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_lib_ipc_main=yes
4747 echo "$as_me: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 ac_cv_lib_ipc_main=no
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4755 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4756 if test $ac_cv_lib_ipc_main = yes; then
4757 cat >>confdefs.h <<_ACEOF
4758 #define HAVE_LIBIPC 1
4766 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4767 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4768 if test "${ac_cv_lib_IPC_main+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 ac_check_lib_save_LIBS=$LIBS
4773 cat >conftest.$ac_ext <<_ACEOF
4774 #line $LINENO "configure"
4775 #include "confdefs.h"
4778 #ifdef F77_DUMMY_MAIN
4782 int F77_DUMMY_MAIN() { return 1; }
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -s conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_cv_lib_IPC_main=yes
4806 echo "$as_me: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 ac_cv_lib_IPC_main=no
4810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4811 LIBS=$ac_check_lib_save_LIBS
4813 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4814 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4815 if test $ac_cv_lib_IPC_main = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817 #define HAVE_LIBIPC 1
4825 echo "$as_me:$LINENO: checking for main in -llc" >&5
4826 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4827 if test "${ac_cv_lib_lc_main+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 ac_check_lib_save_LIBS=$LIBS
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4834 #include "confdefs.h"
4837 #ifdef F77_DUMMY_MAIN
4841 int F77_DUMMY_MAIN() { return 1; }
4851 rm -f conftest.$ac_objext conftest$ac_exeext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4853 (eval $ac_link) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -s conftest$ac_exeext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_lib_lc_main=yes
4865 echo "$as_me: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 ac_cv_lib_lc_main=no
4869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4870 LIBS=$ac_check_lib_save_LIBS
4872 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4873 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4874 if test $ac_cv_lib_lc_main = yes; then
4875 cat >>confdefs.h <<_ACEOF
4876 #define HAVE_LIBLC 1
4884 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4885 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4886 if test "${ac_cv_lib_dld_main+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 ac_check_lib_save_LIBS=$LIBS
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 #include "confdefs.h"
4896 #ifdef F77_DUMMY_MAIN
4900 int F77_DUMMY_MAIN() { return 1; }
4910 rm -f conftest.$ac_objext conftest$ac_exeext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912 (eval $ac_link) 2>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -s conftest$ac_exeext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_lib_dld_main=yes
4924 echo "$as_me: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 ac_cv_lib_dld_main=no
4928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4929 LIBS=$ac_check_lib_save_LIBS
4931 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4932 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4933 if test $ac_cv_lib_dld_main = yes; then
4934 cat >>confdefs.h <<_ACEOF
4935 #define HAVE_LIBDLD 1
4943 echo "$as_me:$LINENO: checking for main in -lld" >&5
4944 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4945 if test "${ac_cv_lib_ld_main+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 ac_check_lib_save_LIBS=$LIBS
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4952 #include "confdefs.h"
4955 #ifdef F77_DUMMY_MAIN
4959 int F77_DUMMY_MAIN() { return 1; }
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_lib_ld_main=yes
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4985 ac_cv_lib_ld_main=no
4987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4990 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4991 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4992 if test $ac_cv_lib_ld_main = yes; then
4993 cat >>confdefs.h <<_ACEOF
4994 #define HAVE_LIBLD 1
5002 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5003 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5004 if test "${ac_cv_lib_compat_main+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lcompat $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 #include "confdefs.h"
5014 #ifdef F77_DUMMY_MAIN
5018 int F77_DUMMY_MAIN() { return 1; }
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -s conftest$ac_exeext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 ac_cv_lib_compat_main=yes
5042 echo "$as_me: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5044 ac_cv_lib_compat_main=no
5046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5047 LIBS=$ac_check_lib_save_LIBS
5049 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5050 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5051 if test $ac_cv_lib_compat_main = yes; then
5052 cat >>confdefs.h <<_ACEOF
5053 #define HAVE_LIBCOMPAT 1
5056 LIBS="-lcompat $LIBS"
5061 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5062 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5063 if test "${ac_cv_lib_BSD_main+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 ac_check_lib_save_LIBS=$LIBS
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5070 #include "confdefs.h"
5073 #ifdef F77_DUMMY_MAIN
5077 int F77_DUMMY_MAIN() { return 1; }
5087 rm -f conftest.$ac_objext conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089 (eval $ac_link) 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_cv_lib_BSD_main=yes
5101 echo "$as_me: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 ac_cv_lib_BSD_main=no
5105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5106 LIBS=$ac_check_lib_save_LIBS
5108 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5109 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5110 if test $ac_cv_lib_BSD_main = yes; then
5111 cat >>confdefs.h <<_ACEOF
5112 #define HAVE_LIBBSD 1
5120 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5121 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5122 if test "${ac_cv_lib_gen_main+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 ac_check_lib_save_LIBS=$LIBS
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #line $LINENO "configure"
5129 #include "confdefs.h"
5132 #ifdef F77_DUMMY_MAIN
5136 int F77_DUMMY_MAIN() { return 1; }
5146 rm -f conftest.$ac_objext conftest$ac_exeext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5148 (eval $ac_link) 2>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -s conftest$ac_exeext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_lib_gen_main=yes
5160 echo "$as_me: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 ac_cv_lib_gen_main=no
5164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5165 LIBS=$ac_check_lib_save_LIBS
5167 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5168 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5169 if test $ac_cv_lib_gen_main = yes; then
5170 cat >>confdefs.h <<_ACEOF
5171 #define HAVE_LIBGEN 1
5179 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5180 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5181 if test "${ac_cv_lib_PW_main+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 ac_check_lib_save_LIBS=$LIBS
5186 cat >conftest.$ac_ext <<_ACEOF
5187 #line $LINENO "configure"
5188 #include "confdefs.h"
5191 #ifdef F77_DUMMY_MAIN
5195 int F77_DUMMY_MAIN() { return 1; }
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -s conftest$ac_exeext'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_cv_lib_PW_main=yes
5219 echo "$as_me: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5221 ac_cv_lib_PW_main=no
5223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5224 LIBS=$ac_check_lib_save_LIBS
5226 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5227 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5228 if test $ac_cv_lib_PW_main = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_LIBPW 1
5238 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5239 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5240 if test "${ac_cv_lib_resolv_main+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_check_lib_save_LIBS=$LIBS
5244 LIBS="-lresolv $LIBS"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 #include "confdefs.h"
5250 #ifdef F77_DUMMY_MAIN
5254 int F77_DUMMY_MAIN() { return 1; }
5264 rm -f conftest.$ac_objext conftest$ac_exeext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5266 (eval $ac_link) 2>&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -s conftest$ac_exeext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_cv_lib_resolv_main=yes
5278 echo "$as_me: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5280 ac_cv_lib_resolv_main=no
5282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5285 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5286 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5287 if test $ac_cv_lib_resolv_main = yes; then
5288 cat >>confdefs.h <<_ACEOF
5289 #define HAVE_LIBRESOLV 1
5292 LIBS="-lresolv $LIBS"
5296 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5297 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5298 if test "${ac_cv_search_getopt_long+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 ac_func_search_save_LIBS=$LIBS
5302 ac_cv_search_getopt_long=no
5303 cat >conftest.$ac_ext <<_ACEOF
5304 #line $LINENO "configure"
5305 #include "confdefs.h"
5307 /* Override any gcc2 internal prototype to avoid an error. */
5311 /* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5313 char getopt_long ();
5314 #ifdef F77_DUMMY_MAIN
5318 int F77_DUMMY_MAIN() { return 1; }
5328 rm -f conftest.$ac_objext conftest$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330 (eval $ac_link) 2>&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -s conftest$ac_exeext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_cv_search_getopt_long="none required"
5342 echo "$as_me: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5346 if test "$ac_cv_search_getopt_long" = no; then
5347 for ac_lib in getopt gnugetopt; do
5348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5353 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5359 char getopt_long ();
5360 #ifdef F77_DUMMY_MAIN
5364 int F77_DUMMY_MAIN() { return 1; }
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376 (eval $ac_link) 2>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 ac_cv_search_getopt_long="-l$ac_lib"
5389 echo "$as_me: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_func_search_save_LIBS
5397 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5398 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5399 if test "$ac_cv_search_getopt_long" != no; then
5400 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5406 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5407 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5408 if test "${ac_cv_lib_unix_main+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 ac_check_lib_save_LIBS=$LIBS
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 #include "confdefs.h"
5418 #ifdef F77_DUMMY_MAIN
5422 int F77_DUMMY_MAIN() { return 1; }
5432 rm -f conftest.$ac_objext conftest$ac_exeext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434 (eval $ac_link) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_lib_unix_main=yes
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5448 ac_cv_lib_unix_main=no
5450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5453 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5454 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5455 if test $ac_cv_lib_unix_main = yes; then
5456 cat >>confdefs.h <<_ACEOF
5457 #define HAVE_LIBUNIX 1
5464 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5465 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5466 if test "${ac_cv_search_crypt+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 ac_func_search_save_LIBS=$LIBS
5470 ac_cv_search_crypt=no
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5473 #include "confdefs.h"
5475 /* Override any gcc2 internal prototype to avoid an error. */
5479 /* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5482 #ifdef F77_DUMMY_MAIN
5486 int F77_DUMMY_MAIN() { return 1; }
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498 (eval $ac_link) 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -s conftest$ac_exeext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 ac_cv_search_crypt="none required"
5510 echo "$as_me: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5514 if test "$ac_cv_search_crypt" = no; then
5515 for ac_lib in crypt; do
5516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5521 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5528 #ifdef F77_DUMMY_MAIN
5532 int F77_DUMMY_MAIN() { return 1; }
5542 rm -f conftest.$ac_objext conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_search_crypt="-l$ac_lib"
5557 echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_func_search_save_LIBS
5565 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5566 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5567 if test "$ac_cv_search_crypt" != no; then
5568 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5573 if test "$PORTNAME" = "beos"
5576 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5577 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5578 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 ac_check_lib_save_LIBS=$LIBS
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5587 /* Override any gcc2 internal prototype to avoid an error. */
5591 /* We use char because int might match the return type of a gcc2
5592 builtin and then its argument prototype would still apply. */
5593 char __inet_ntoa ();
5594 #ifdef F77_DUMMY_MAIN
5598 int F77_DUMMY_MAIN() { return 1; }
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -s conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_lib_bind___inet_ntoa=yes
5622 echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 ac_cv_lib_bind___inet_ntoa=no
5626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5627 LIBS=$ac_check_lib_save_LIBS
5629 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5630 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5631 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5632 cat >>confdefs.h <<_ACEOF
5633 #define HAVE_LIBBIND 1
5642 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5643 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5644 if test "${ac_cv_search_fdatasync+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_func_search_save_LIBS=$LIBS
5648 ac_cv_search_fdatasync=no
5649 cat >conftest.$ac_ext <<_ACEOF
5650 #line $LINENO "configure"
5651 #include "confdefs.h"
5653 /* Override any gcc2 internal prototype to avoid an error. */
5657 /* We use char because int might match the return type of a gcc2
5658 builtin and then its argument prototype would still apply. */
5660 #ifdef F77_DUMMY_MAIN
5664 int F77_DUMMY_MAIN() { return 1; }
5674 rm -f conftest.$ac_objext conftest$ac_exeext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5676 (eval $ac_link) 2>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_search_fdatasync="none required"
5688 echo "$as_me: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5692 if test "$ac_cv_search_fdatasync" = no; then
5693 for ac_lib in rt posix4; do
5694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5695 cat >conftest.$ac_ext <<_ACEOF
5696 #line $LINENO "configure"
5697 #include "confdefs.h"
5699 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5706 #ifdef F77_DUMMY_MAIN
5710 int F77_DUMMY_MAIN() { return 1; }
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -s conftest$ac_exeext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_search_fdatasync="-l$ac_lib"
5735 echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741 LIBS=$ac_func_search_save_LIBS
5743 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5744 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5745 if test "$ac_cv_search_fdatasync" != no; then
5746 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5752 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5753 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5754 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 ac_check_lib_save_LIBS=$LIBS
5758 LIBS="-lcygipc $LIBS"
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5761 #include "confdefs.h"
5763 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5770 #ifdef F77_DUMMY_MAIN
5774 int F77_DUMMY_MAIN() { return 1; }
5784 rm -f conftest.$ac_objext conftest$ac_exeext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786 (eval $ac_link) 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -s conftest$ac_exeext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_cv_lib_cygipc_shmget=yes
5798 echo "$as_me: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5800 ac_cv_lib_cygipc_shmget=no
5802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_check_lib_save_LIBS
5805 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5806 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5807 if test $ac_cv_lib_cygipc_shmget = yes; then
5808 cat >>confdefs.h <<_ACEOF
5809 #define HAVE_LIBCYGIPC 1
5812 LIBS="-lcygipc $LIBS"
5817 if test "$PORTNAME" = "win32"
5820 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5821 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5822 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 ac_check_lib_save_LIBS=$LIBS
5826 LIBS="-lwsock32 $LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 #include "confdefs.h"
5832 #ifdef F77_DUMMY_MAIN
5836 int F77_DUMMY_MAIN() { return 1; }
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_lib_wsock32_main=yes
5860 echo "$as_me: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 ac_cv_lib_wsock32_main=no
5864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5865 LIBS=$ac_check_lib_save_LIBS
5867 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5868 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5869 if test $ac_cv_lib_wsock32_main = yes; then
5870 cat >>confdefs.h <<_ACEOF
5871 #define HAVE_LIBWSOCK32 1
5874 LIBS="-lwsock32 $LIBS"
5880 if test "$with_readline" = yes; then
5882 echo "$as_me:$LINENO: checking for readline" >&5
5883 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5885 if test "${pgac_cv_check_readline+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 pgac_cv_check_readline=no
5889 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5890 for pgac_rllib in -lreadline -ledit ; do
5891 pgac_save_LIBS=$LIBS
5892 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 #include "confdefs.h"
5897 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5904 #ifdef F77_DUMMY_MAIN
5908 int F77_DUMMY_MAIN() { return 1; }
5918 rm -f conftest.$ac_objext conftest$ac_exeext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920 (eval $ac_link) 2>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5931 # NetBSD and OpenBSD have a broken linker that does not
5932 # recognize dependent libraries
5933 case $host_os in netbsd* | openbsd* )
5936 *) pgac_lib=" -lcurses" ;;
5940 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948 LIBS=$pgac_save_LIBS
5951 LIBS=$pgac_save_LIBS
5955 if test "$pgac_cv_check_readline" != no ; then
5957 cat >>confdefs.h <<\_ACEOF
5958 #define HAVE_LIBREADLINE 1
5961 LIBS="$pgac_cv_check_readline $LIBS"
5962 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5963 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5968 if test x"$pgac_cv_check_readline" = x"no"; then
5969 { { echo "$as_me:$LINENO: error: readline library not found
5970 If you have readline already installed, see config.log for details on the
5971 failure. It is possible the compiler isn't looking in the proper directory.
5972 Use --without-readline to disable readline support." >&5
5973 echo "$as_me: error: readline library not found
5974 If you have readline already installed, see config.log for details on the
5975 failure. It is possible the compiler isn't looking in the proper directory.
5976 Use --without-readline to disable readline support." >&2;}
5977 { (exit 1); exit 1; }; }
5981 if test "$with_zlib" = yes; then
5983 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5984 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5985 if test "${ac_cv_lib_z_inflate+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 ac_check_lib_save_LIBS=$LIBS
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
5994 /* Override any gcc2 internal prototype to avoid an error. */
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6001 #ifdef F77_DUMMY_MAIN
6005 int F77_DUMMY_MAIN() { return 1; }
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -s conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_lib_z_inflate=yes
6029 echo "$as_me: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 ac_cv_lib_z_inflate=no
6033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6036 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6037 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6038 if test $ac_cv_lib_z_inflate = yes; then
6039 cat >>confdefs.h <<_ACEOF
6046 { { echo "$as_me:$LINENO: error: zlib library not found
6047 If you have zlib already installed, see config.log for details on the
6048 failure. It is possible the compiler isn't looking in the proper directory.
6049 Use --without-zlib to disable zlib support." >&5
6050 echo "$as_me: error: zlib library not found
6051 If you have zlib already installed, see config.log for details on the
6052 failure. It is possible the compiler isn't looking in the proper directory.
6053 Use --without-zlib to disable zlib support." >&2;}
6054 { (exit 1); exit 1; }; }
6059 if test "$with_krb4" = yes ; then
6061 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6062 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6063 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 ac_check_lib_save_LIBS=$LIBS
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 #include "confdefs.h"
6072 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6078 char des_encrypt ();
6079 #ifdef F77_DUMMY_MAIN
6083 int F77_DUMMY_MAIN() { return 1; }
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095 (eval $ac_link) 2>&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -s conftest$ac_exeext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_lib_des_des_encrypt=yes
6107 echo "$as_me: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 ac_cv_lib_des_des_encrypt=no
6111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6112 LIBS=$ac_check_lib_save_LIBS
6114 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6115 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6116 if test $ac_cv_lib_des_des_encrypt = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_LIBDES 1
6124 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6125 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6126 { (exit 1); exit 1; }; }
6130 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6131 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6132 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 ac_check_lib_save_LIBS=$LIBS
6137 cat >conftest.$ac_ext <<_ACEOF
6138 #line $LINENO "configure"
6139 #include "confdefs.h"
6141 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6147 char krb_sendauth ();
6148 #ifdef F77_DUMMY_MAIN
6152 int F77_DUMMY_MAIN() { return 1; }
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -s conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_lib_krb_krb_sendauth=yes
6176 echo "$as_me: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6178 ac_cv_lib_krb_krb_sendauth=no
6180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
6183 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6184 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6185 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6186 cat >>confdefs.h <<_ACEOF
6187 #define HAVE_LIBKRB 1
6193 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6194 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6195 { (exit 1); exit 1; }; }
6199 for ac_func in gethostname
6201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6202 echo "$as_me:$LINENO: checking for $ac_func" >&5
6203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6204 if eval "test \"\${$as_ac_var+set}\" = set"; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func (); below. */
6213 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6222 #ifdef F77_DUMMY_MAIN
6226 int F77_DUMMY_MAIN() { return 1; }
6231 /* The GNU C library defines this for functions which it implements
6232 to always fail with ENOSYS. Some functions are actually named
6233 something starting with __ and the normal name is an alias. */
6234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246 (eval $ac_link) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -s conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 eval "$as_ac_var=yes"
6258 echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 eval "$as_ac_var=no"
6262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6266 if test `eval echo '${'$as_ac_var'}'` = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6272 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6279 if test "$with_krb5" = yes ; then
6280 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6281 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6282 if test "${ac_cv_search_com_err+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 ac_func_search_save_LIBS=$LIBS
6286 ac_cv_search_com_err=no
6287 cat >conftest.$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6289 #include "confdefs.h"
6291 /* Override any gcc2 internal prototype to avoid an error. */
6295 /* We use char because int might match the return type of a gcc2
6296 builtin and then its argument prototype would still apply. */
6298 #ifdef F77_DUMMY_MAIN
6302 int F77_DUMMY_MAIN() { return 1; }
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314 (eval $ac_link) 2>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
6318 { ac_try='test -s conftest$ac_exeext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 ac_cv_search_com_err="none required"
6326 echo "$as_me: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6330 if test "$ac_cv_search_com_err" = no; then
6331 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 #include "confdefs.h"
6337 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6344 #ifdef F77_DUMMY_MAIN
6348 int F77_DUMMY_MAIN() { return 1; }
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_cv_search_com_err="-l$ac_lib"
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6379 LIBS=$ac_func_search_save_LIBS
6381 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6382 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6383 if test "$ac_cv_search_com_err" != no; then
6384 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6387 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6388 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6389 { (exit 1); exit 1; }; }
6392 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6393 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6394 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 ac_func_search_save_LIBS=$LIBS
6398 ac_cv_search_krb5_encrypt=no
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6403 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6409 char krb5_encrypt ();
6410 #ifdef F77_DUMMY_MAIN
6414 int F77_DUMMY_MAIN() { return 1; }
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -s conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_cv_search_krb5_encrypt="none required"
6438 echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test "$ac_cv_search_krb5_encrypt" = no; then
6443 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6449 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6455 char krb5_encrypt ();
6456 #ifdef F77_DUMMY_MAIN
6460 int F77_DUMMY_MAIN() { return 1; }
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_search_krb5_encrypt="-l$ac_lib"
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6491 LIBS=$ac_func_search_save_LIBS
6493 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6494 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6495 if test "$ac_cv_search_krb5_encrypt" != no; then
6496 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6499 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6500 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6501 { (exit 1); exit 1; }; }
6504 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6505 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6506 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 ac_func_search_save_LIBS=$LIBS
6510 ac_cv_search_krb5_sendauth=no
6511 cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6513 #include "confdefs.h"
6515 /* Override any gcc2 internal prototype to avoid an error. */
6519 /* We use char because int might match the return type of a gcc2
6520 builtin and then its argument prototype would still apply. */
6521 char krb5_sendauth ();
6522 #ifdef F77_DUMMY_MAIN
6526 int F77_DUMMY_MAIN() { return 1; }
6536 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 ac_cv_search_krb5_sendauth="none required"
6550 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6554 if test "$ac_cv_search_krb5_sendauth" = no; then
6555 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6557 cat >conftest.$ac_ext <<_ACEOF
6558 #line $LINENO "configure"
6559 #include "confdefs.h"
6561 /* Override any gcc2 internal prototype to avoid an error. */
6565 /* We use char because int might match the return type of a gcc2
6566 builtin and then its argument prototype would still apply. */
6567 char krb5_sendauth ();
6568 #ifdef F77_DUMMY_MAIN
6572 int F77_DUMMY_MAIN() { return 1; }
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584 (eval $ac_link) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_search_krb5_sendauth="-l$ac_lib"
6597 echo "$as_me: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6603 LIBS=$ac_func_search_save_LIBS
6605 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6606 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6607 if test "$ac_cv_search_krb5_sendauth" != no; then
6608 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6611 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6612 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6613 { (exit 1); exit 1; }; }
6618 if test "$with_openssl" = yes ; then
6620 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6621 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6622 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lcrypto $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6629 #include "confdefs.h"
6631 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6637 char CRYPTO_new_ex_data ();
6638 #ifdef F77_DUMMY_MAIN
6642 int F77_DUMMY_MAIN() { return 1; }
6647 CRYPTO_new_ex_data ();
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -s conftest$ac_exeext'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6666 echo "$as_me: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6668 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6671 LIBS=$ac_check_lib_save_LIBS
6673 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6674 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6675 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_LIBCRYPTO 1
6680 LIBS="-lcrypto $LIBS"
6683 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6684 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6685 { (exit 1); exit 1; }; }
6689 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6690 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6691 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_check_lib_save_LIBS=$LIBS
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 #include "confdefs.h"
6700 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6706 char SSL_library_init ();
6707 #ifdef F77_DUMMY_MAIN
6711 int F77_DUMMY_MAIN() { return 1; }
6716 SSL_library_init ();
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -s conftest$ac_exeext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_lib_ssl_SSL_library_init=yes
6735 echo "$as_me: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6737 ac_cv_lib_ssl_SSL_library_init=no
6739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6740 LIBS=$ac_check_lib_save_LIBS
6742 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6743 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6744 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6745 cat >>confdefs.h <<_ACEOF
6746 #define HAVE_LIBSSL 1
6752 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6753 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6754 { (exit 1); exit 1; }; }
6759 if test "$with_pam" = yes ; then
6761 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6762 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6763 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_check_lib_save_LIBS=$LIBS
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6772 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6779 #ifdef F77_DUMMY_MAIN
6783 int F77_DUMMY_MAIN() { return 1; }
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_lib_pam_pam_start=yes
6807 echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 ac_cv_lib_pam_pam_start=no
6811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6812 LIBS=$ac_check_lib_save_LIBS
6814 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6815 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6816 if test $ac_cv_lib_pam_pam_start = yes; then
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_LIBPAM 1
6824 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6825 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6826 { (exit 1); exit 1; }; }
6836 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6838 if test "${ac_cv_header_stdc+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 #include "confdefs.h"
6850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6853 egrep -v '^ *\+' conftest.er1 >conftest.err
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } >/dev/null; then
6858 if test -s conftest.err; then
6859 ac_cpp_err=$ac_c_preproc_warn_flag
6866 if test -z "$ac_cpp_err"; then
6867 ac_cv_header_stdc=yes
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 ac_cv_header_stdc=no
6873 rm -f conftest.err conftest.$ac_ext
6875 if test $ac_cv_header_stdc = yes; then
6876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6877 cat >conftest.$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6879 #include "confdefs.h"
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884 egrep "memchr" >/dev/null 2>&1; then
6887 ac_cv_header_stdc=no
6893 if test $ac_cv_header_stdc = yes; then
6894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6895 cat >conftest.$ac_ext <<_ACEOF
6896 #line $LINENO "configure"
6897 #include "confdefs.h"
6901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6902 egrep "free" >/dev/null 2>&1; then
6905 ac_cv_header_stdc=no
6911 if test $ac_cv_header_stdc = yes; then
6912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6913 if test "$cross_compiling" = yes; then
6916 cat >conftest.$ac_ext <<_ACEOF
6917 #line $LINENO "configure"
6918 #include "confdefs.h"
6920 #if ((' ' & 0x0FF) == 0x020)
6921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6924 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6925 || ('j' <= (c) && (c) <= 'r') \
6926 || ('s' <= (c) && (c) <= 'z'))
6927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6935 for (i = 0; i < 256; i++)
6936 if (XOR (islower (i), ISLOWER (i))
6937 || toupper (i) != TOUPPER (i))
6942 rm -f conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944 (eval $ac_link) 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6955 echo "$as_me: program exited with status $ac_status" >&5
6956 echo "$as_me: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6959 ac_cv_header_stdc=no
6961 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6967 if test $ac_cv_header_stdc = yes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define STDC_HEADERS 1
6975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6986 inttypes.h stdint.h unistd.h
6988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989 echo "$as_me:$LINENO: checking for $ac_header" >&5
6990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 #include "confdefs.h"
6997 $ac_includes_default
6999 #include <$ac_header>
7001 rm -f conftest.$ac_objext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003 (eval $ac_compile) 2>&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -s conftest.$ac_objext'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 eval "$as_ac_Header=yes"
7015 echo "$as_me: failed program was:" >&5
7016 cat conftest.$ac_ext >&5
7017 eval "$as_ac_Header=no"
7019 rm -f conftest.$ac_objext conftest.$ac_ext
7021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7024 cat >>confdefs.h <<_ACEOF
7025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7054 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
7056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058 echo "$as_me:$LINENO: checking for $ac_header" >&5
7059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7066 # Is the header compilable?
7067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7071 #include "confdefs.h"
7072 $ac_includes_default
7073 #include <$ac_header>
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_header_compiler=yes
7089 echo "$as_me: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7091 ac_header_compiler=no
7093 rm -f conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 #line $LINENO "configure"
7102 #include "confdefs.h"
7103 #include <$ac_header>
7105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7108 egrep -v '^ *\+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } >/dev/null; then
7113 if test -s conftest.err; then
7114 ac_cpp_err=$ac_c_preproc_warn_flag
7121 if test -z "$ac_cpp_err"; then
7122 ac_header_preproc=yes
7124 echo "$as_me: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7126 ac_header_preproc=no
7128 rm -f conftest.err conftest.$ac_ext
7129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7130 echo "${ECHO_T}$ac_header_preproc" >&6
7132 # So? What about this header?
7133 case $ac_header_compiler:$ac_header_preproc in
7135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7147 echo "$as_me:$LINENO: checking for $ac_header" >&5
7148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 eval "$as_ac_Header=$ac_header_preproc"
7154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7159 cat >>confdefs.h <<_ACEOF
7160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7168 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7169 # netinet/in.h is included first.
7171 for ac_header in netinet/in.h
7173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175 echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7183 # Is the header compilable?
7184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line $LINENO "configure"
7188 #include "confdefs.h"
7189 $ac_includes_default
7190 #include <$ac_header>
7192 rm -f conftest.$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194 (eval $ac_compile) 2>&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_header_compiler=yes
7206 echo "$as_me: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 ac_header_compiler=no
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7212 echo "${ECHO_T}$ac_header_compiler" >&6
7214 # Is the header present?
7215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7217 cat >conftest.$ac_ext <<_ACEOF
7218 #line $LINENO "configure"
7219 #include "confdefs.h"
7220 #include <$ac_header>
7222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7225 egrep -v '^ *\+' conftest.er1 >conftest.err
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } >/dev/null; then
7230 if test -s conftest.err; then
7231 ac_cpp_err=$ac_c_preproc_warn_flag
7238 if test -z "$ac_cpp_err"; then
7239 ac_header_preproc=yes
7241 echo "$as_me: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 ac_header_preproc=no
7245 rm -f conftest.err conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6
7249 # So? What about this header?
7250 case $ac_header_compiler:$ac_header_preproc in
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7264 echo "$as_me:$LINENO: checking for $ac_header" >&5
7265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 eval "$as_ac_Header=$ac_header_preproc"
7271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276 cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 for ac_header in netinet/tcp.h
7287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 #include "confdefs.h"
7296 $ac_includes_default
7297 #ifdef HAVE_NETINET_IN_H
7298 #include <netinet/in.h>
7302 #include <$ac_header>
7304 rm -f conftest.$ac_objext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -s conftest.$ac_objext'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then
7316 eval "$as_ac_Header=yes"
7318 echo "$as_me: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 eval "$as_ac_Header=no"
7322 rm -f conftest.$ac_objext conftest.$ac_ext
7324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7327 cat >>confdefs.h <<_ACEOF
7328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7336 if test "$with_readline" = yes; then
7338 for ac_header in readline/readline.h
7340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342 echo "$as_me:$LINENO: checking for $ac_header" >&5
7343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7350 # Is the header compilable?
7351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7355 #include "confdefs.h"
7356 $ac_includes_default
7357 #include <$ac_header>
7359 rm -f conftest.$ac_objext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361 (eval $ac_compile) 2>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_header_compiler=yes
7373 echo "$as_me: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7375 ac_header_compiler=no
7377 rm -f conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6
7381 # Is the header present?
7382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7384 cat >conftest.$ac_ext <<_ACEOF
7385 #line $LINENO "configure"
7386 #include "confdefs.h"
7387 #include <$ac_header>
7389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7392 egrep -v '^ *\+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } >/dev/null; then
7397 if test -s conftest.err; then
7398 ac_cpp_err=$ac_c_preproc_warn_flag
7405 if test -z "$ac_cpp_err"; then
7406 ac_header_preproc=yes
7408 echo "$as_me: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 ac_header_preproc=no
7412 rm -f conftest.err conftest.$ac_ext
7413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7414 echo "${ECHO_T}$ac_header_preproc" >&6
7416 # So? What about this header?
7417 case $ac_header_compiler:$ac_header_preproc in
7419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7431 echo "$as_me:$LINENO: checking for $ac_header" >&5
7432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 eval "$as_ac_Header=$ac_header_preproc"
7438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7443 cat >>confdefs.h <<_ACEOF
7444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449 for ac_header in editline/readline.h
7451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo "$as_me:$LINENO: checking for $ac_header" >&5
7454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7461 # Is the header compilable?
7462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7466 #include "confdefs.h"
7467 $ac_includes_default
7468 #include <$ac_header>
7470 rm -f conftest.$ac_objext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472 (eval $ac_compile) 2>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_header_compiler=yes
7484 echo "$as_me: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 ac_header_compiler=no
7488 rm -f conftest.$ac_objext conftest.$ac_ext
7489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7490 echo "${ECHO_T}$ac_header_compiler" >&6
7492 # Is the header present?
7493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7497 #include "confdefs.h"
7498 #include <$ac_header>
7500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7503 egrep -v '^ *\+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } >/dev/null; then
7508 if test -s conftest.err; then
7509 ac_cpp_err=$ac_c_preproc_warn_flag
7516 if test -z "$ac_cpp_err"; then
7517 ac_header_preproc=yes
7519 echo "$as_me: failed program was:" >&5
7520 cat conftest.$ac_ext >&5
7521 ac_header_preproc=no
7523 rm -f conftest.err conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "${ECHO_T}$ac_header_preproc" >&6
7527 # So? What about this header?
7528 case $ac_header_compiler:$ac_header_preproc in
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7542 echo "$as_me:$LINENO: checking for $ac_header" >&5
7543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 eval "$as_ac_Header=$ac_header_preproc"
7549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7560 for ac_header in readline.h
7562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7564 echo "$as_me:$LINENO: checking for $ac_header" >&5
7565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7572 # Is the header compilable?
7573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7575 cat >conftest.$ac_ext <<_ACEOF
7576 #line $LINENO "configure"
7577 #include "confdefs.h"
7578 $ac_includes_default
7579 #include <$ac_header>
7581 rm -f conftest.$ac_objext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583 (eval $ac_compile) 2>&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -s conftest.$ac_objext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7593 ac_header_compiler=yes
7595 echo "$as_me: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7597 ac_header_compiler=no
7599 rm -f conftest.$ac_objext conftest.$ac_ext
7600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7601 echo "${ECHO_T}$ac_header_compiler" >&6
7603 # Is the header present?
7604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7608 #include "confdefs.h"
7609 #include <$ac_header>
7611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7614 egrep -v '^ *\+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } >/dev/null; then
7619 if test -s conftest.err; then
7620 ac_cpp_err=$ac_c_preproc_warn_flag
7627 if test -z "$ac_cpp_err"; then
7628 ac_header_preproc=yes
7630 echo "$as_me: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7632 ac_header_preproc=no
7634 rm -f conftest.err conftest.$ac_ext
7635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7636 echo "${ECHO_T}$ac_header_preproc" >&6
7638 # So? What about this header?
7639 case $ac_header_compiler:$ac_header_preproc in
7641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7653 echo "$as_me:$LINENO: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 eval "$as_ac_Header=$ac_header_preproc"
7660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7665 cat >>confdefs.h <<_ACEOF
7666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7670 { { echo "$as_me:$LINENO: error: readline header not found
7671 If you have readline already installed, see config.log for details on the
7672 failure. It is possible the compiler isn't looking in the proper directory.
7673 Use --without-readline to disable readline support." >&5
7674 echo "$as_me: error: readline header not found
7675 If you have readline already installed, see config.log for details on the
7676 failure. It is possible the compiler isn't looking in the proper directory.
7677 Use --without-readline to disable readline support." >&2;}
7678 { (exit 1); exit 1; }; }
7692 for ac_header in readline/history.h
7694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo "$as_me:$LINENO: checking for $ac_header" >&5
7697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7704 # Is the header compilable?
7705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7709 #include "confdefs.h"
7710 $ac_includes_default
7711 #include <$ac_header>
7713 rm -f conftest.$ac_objext
7714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7715 (eval $ac_compile) 2>&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_header_compiler=yes
7727 echo "$as_me: failed program was:" >&5
7728 cat conftest.$ac_ext >&5
7729 ac_header_compiler=no
7731 rm -f conftest.$ac_objext conftest.$ac_ext
7732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7733 echo "${ECHO_T}$ac_header_compiler" >&6
7735 # Is the header present?
7736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7739 #line $LINENO "configure"
7740 #include "confdefs.h"
7741 #include <$ac_header>
7743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7746 egrep -v '^ *\+' conftest.er1 >conftest.err
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } >/dev/null; then
7751 if test -s conftest.err; then
7752 ac_cpp_err=$ac_c_preproc_warn_flag
7759 if test -z "$ac_cpp_err"; then
7760 ac_header_preproc=yes
7762 echo "$as_me: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7764 ac_header_preproc=no
7766 rm -f conftest.err conftest.$ac_ext
7767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7768 echo "${ECHO_T}$ac_header_preproc" >&6
7770 # So? What about this header?
7771 case $ac_header_compiler:$ac_header_preproc in
7773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7785 echo "$as_me:$LINENO: checking for $ac_header" >&5
7786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 eval "$as_ac_Header=$ac_header_preproc"
7792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7797 cat >>confdefs.h <<_ACEOF
7798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7803 for ac_header in editline/history.h
7805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7815 # Is the header compilable?
7816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7819 #line $LINENO "configure"
7820 #include "confdefs.h"
7821 $ac_includes_default
7822 #include <$ac_header>
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_header_compiler=yes
7838 echo "$as_me: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 ac_header_compiler=no
7842 rm -f conftest.$ac_objext conftest.$ac_ext
7843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7844 echo "${ECHO_T}$ac_header_compiler" >&6
7846 # Is the header present?
7847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7849 cat >conftest.$ac_ext <<_ACEOF
7850 #line $LINENO "configure"
7851 #include "confdefs.h"
7852 #include <$ac_header>
7854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 egrep -v '^ *\+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } >/dev/null; then
7862 if test -s conftest.err; then
7863 ac_cpp_err=$ac_c_preproc_warn_flag
7870 if test -z "$ac_cpp_err"; then
7871 ac_header_preproc=yes
7873 echo "$as_me: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7875 ac_header_preproc=no
7877 rm -f conftest.err conftest.$ac_ext
7878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7879 echo "${ECHO_T}$ac_header_preproc" >&6
7881 # So? What about this header?
7882 case $ac_header_compiler:$ac_header_preproc in
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7896 echo "$as_me:$LINENO: checking for $ac_header" >&5
7897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 eval "$as_ac_Header=$ac_header_preproc"
7903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 for ac_header in history.h
7916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918 echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7926 # Is the header compilable?
7927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7932 $ac_includes_default
7933 #include <$ac_header>
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -s conftest.$ac_objext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_header_compiler=yes
7949 echo "$as_me: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7951 ac_header_compiler=no
7953 rm -f conftest.$ac_objext conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7955 echo "${ECHO_T}$ac_header_compiler" >&6
7957 # Is the header present?
7958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 #include "confdefs.h"
7963 #include <$ac_header>
7965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7968 egrep -v '^ *\+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } >/dev/null; then
7973 if test -s conftest.err; then
7974 ac_cpp_err=$ac_c_preproc_warn_flag
7981 if test -z "$ac_cpp_err"; then
7982 ac_header_preproc=yes
7984 echo "$as_me: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 ac_header_preproc=no
7988 rm -f conftest.err conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7990 echo "${ECHO_T}$ac_header_preproc" >&6
7992 # So? What about this header?
7993 case $ac_header_compiler:$ac_header_preproc in
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8007 echo "$as_me:$LINENO: checking for $ac_header" >&5
8008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 eval "$as_ac_Header=$ac_header_preproc"
8014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8019 cat >>confdefs.h <<_ACEOF
8020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024 { { echo "$as_me:$LINENO: error: history header not found
8025 If you have readline already installed, see config.log for details on the
8026 failure. It is possible the compiler isn't looking in the proper directory.
8027 Use --without-readline to disable readline support." >&5
8028 echo "$as_me: error: history header not found
8029 If you have readline already installed, see config.log for details on the
8030 failure. It is possible the compiler isn't looking in the proper directory.
8031 Use --without-readline to disable readline support." >&2;}
8032 { (exit 1); exit 1; }; }
8047 if test "$with_zlib" = yes; then
8048 if test "${ac_cv_header_zlib_h+set}" = set; then
8049 echo "$as_me:$LINENO: checking for zlib.h" >&5
8050 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8051 if test "${ac_cv_header_zlib_h+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8055 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8057 # Is the header compilable?
8058 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8059 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8063 $ac_includes_default
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_header_compiler=yes
8080 echo "$as_me: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8082 ac_header_compiler=no
8084 rm -f conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8086 echo "${ECHO_T}$ac_header_compiler" >&6
8088 # Is the header present?
8089 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8090 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 #include "confdefs.h"
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8099 egrep -v '^ *\+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } >/dev/null; then
8104 if test -s conftest.err; then
8105 ac_cpp_err=$ac_c_preproc_warn_flag
8112 if test -z "$ac_cpp_err"; then
8113 ac_header_preproc=yes
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 ac_header_preproc=no
8119 rm -f conftest.err conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8121 echo "${ECHO_T}$ac_header_preproc" >&6
8123 # So? What about this header?
8124 case $ac_header_compiler:$ac_header_preproc in
8126 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8127 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8129 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8131 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8132 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8133 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8134 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8135 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8136 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8138 echo "$as_me:$LINENO: checking for zlib.h" >&5
8139 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8140 if test "${ac_cv_header_zlib_h+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_cv_header_zlib_h=$ac_header_preproc
8145 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8146 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8149 if test $ac_cv_header_zlib_h = yes; then
8152 { { echo "$as_me:$LINENO: error: zlib header not found
8153 If you have zlib already installed, see config.log for details on the
8154 failure. It is possible the compiler isn't looking in the proper directory.
8155 Use --without-zlib to disable zlib support." >&5
8156 echo "$as_me: error: zlib header not found
8157 If you have zlib already installed, see config.log for details on the
8158 failure. It is possible the compiler isn't looking in the proper directory.
8159 Use --without-zlib to disable zlib support." >&2;}
8160 { (exit 1); exit 1; }; }
8166 if test "$with_krb4" = yes ; then
8167 if test "${ac_cv_header_krb_h+set}" = set; then
8168 echo "$as_me:$LINENO: checking for krb.h" >&5
8169 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8170 if test "${ac_cv_header_krb_h+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8174 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8176 # Is the header compilable?
8177 echo "$as_me:$LINENO: checking krb.h usability" >&5
8178 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8182 $ac_includes_default
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -s conftest.$ac_objext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_header_compiler=yes
8199 echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 ac_header_compiler=no
8203 rm -f conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8205 echo "${ECHO_T}$ac_header_compiler" >&6
8207 # Is the header present?
8208 echo "$as_me:$LINENO: checking krb.h presence" >&5
8209 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 #include "confdefs.h"
8215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8218 egrep -v '^ *\+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } >/dev/null; then
8223 if test -s conftest.err; then
8224 ac_cpp_err=$ac_c_preproc_warn_flag
8231 if test -z "$ac_cpp_err"; then
8232 ac_header_preproc=yes
8234 echo "$as_me: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8236 ac_header_preproc=no
8238 rm -f conftest.err conftest.$ac_ext
8239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8240 echo "${ECHO_T}$ac_header_preproc" >&6
8242 # So? What about this header?
8243 case $ac_header_compiler:$ac_header_preproc in
8245 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8246 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8250 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8251 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8252 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8253 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8254 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8255 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8257 echo "$as_me:$LINENO: checking for krb.h" >&5
8258 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8259 if test "${ac_cv_header_krb_h+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 ac_cv_header_krb_h=$ac_header_preproc
8264 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8265 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8268 if test $ac_cv_header_krb_h = yes; then
8271 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8272 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8273 { (exit 1); exit 1; }; }
8279 if test "$with_krb5" = yes ; then
8280 if test "${ac_cv_header_krb5_h+set}" = set; then
8281 echo "$as_me:$LINENO: checking for krb5.h" >&5
8282 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8283 if test "${ac_cv_header_krb5_h+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8287 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8289 # Is the header compilable?
8290 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8291 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line $LINENO "configure"
8294 #include "confdefs.h"
8295 $ac_includes_default
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -s conftest.$ac_objext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_header_compiler=yes
8312 echo "$as_me: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 ac_header_compiler=no
8316 rm -f conftest.$ac_objext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8318 echo "${ECHO_T}$ac_header_compiler" >&6
8320 # Is the header present?
8321 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8322 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line $LINENO "configure"
8325 #include "confdefs.h"
8328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8331 egrep -v '^ *\+' conftest.er1 >conftest.err
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } >/dev/null; then
8336 if test -s conftest.err; then
8337 ac_cpp_err=$ac_c_preproc_warn_flag
8344 if test -z "$ac_cpp_err"; then
8345 ac_header_preproc=yes
8347 echo "$as_me: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8349 ac_header_preproc=no
8351 rm -f conftest.err conftest.$ac_ext
8352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8353 echo "${ECHO_T}$ac_header_preproc" >&6
8355 # So? What about this header?
8356 case $ac_header_compiler:$ac_header_preproc in
8358 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8359 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8361 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8363 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8368 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8370 echo "$as_me:$LINENO: checking for krb5.h" >&5
8371 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8372 if test "${ac_cv_header_krb5_h+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 ac_cv_header_krb5_h=$ac_header_preproc
8377 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8378 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8381 if test $ac_cv_header_krb5_h = yes; then
8384 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8385 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8386 { (exit 1); exit 1; }; }
8390 if test "${ac_cv_header_com_err_h+set}" = set; then
8391 echo "$as_me:$LINENO: checking for com_err.h" >&5
8392 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8393 if test "${ac_cv_header_com_err_h+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8397 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8399 # Is the header compilable?
8400 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8401 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 #include "confdefs.h"
8405 $ac_includes_default
8406 #include <com_err.h>
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_header_compiler=yes
8422 echo "$as_me: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8424 ac_header_compiler=no
8426 rm -f conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428 echo "${ECHO_T}$ac_header_compiler" >&6
8430 # Is the header present?
8431 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8432 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8434 #line $LINENO "configure"
8435 #include "confdefs.h"
8436 #include <com_err.h>
8438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8441 egrep -v '^ *\+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } >/dev/null; then
8446 if test -s conftest.err; then
8447 ac_cpp_err=$ac_c_preproc_warn_flag
8454 if test -z "$ac_cpp_err"; then
8455 ac_header_preproc=yes
8457 echo "$as_me: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8459 ac_header_preproc=no
8461 rm -f conftest.err conftest.$ac_ext
8462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8463 echo "${ECHO_T}$ac_header_preproc" >&6
8465 # So? What about this header?
8466 case $ac_header_compiler:$ac_header_preproc in
8468 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8469 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8471 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8473 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8474 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8476 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8480 echo "$as_me:$LINENO: checking for com_err.h" >&5
8481 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8482 if test "${ac_cv_header_com_err_h+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 ac_cv_header_com_err_h=$ac_header_preproc
8487 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8488 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8491 if test $ac_cv_header_com_err_h = yes; then
8494 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8495 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8496 { (exit 1); exit 1; }; }
8502 if test "$with_openssl" = yes ; then
8503 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8504 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8505 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8506 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8510 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8512 # Is the header compilable?
8513 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8514 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line $LINENO "configure"
8517 #include "confdefs.h"
8518 $ac_includes_default
8519 #include <openssl/ssl.h>
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523 (eval $ac_compile) 2>&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -s conftest.$ac_objext'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 ac_header_compiler=yes
8535 echo "$as_me: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8537 ac_header_compiler=no
8539 rm -f conftest.$ac_objext conftest.$ac_ext
8540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8541 echo "${ECHO_T}$ac_header_compiler" >&6
8543 # Is the header present?
8544 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8545 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8546 cat >conftest.$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8548 #include "confdefs.h"
8549 #include <openssl/ssl.h>
8551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8554 egrep -v '^ *\+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } >/dev/null; then
8559 if test -s conftest.err; then
8560 ac_cpp_err=$ac_c_preproc_warn_flag
8567 if test -z "$ac_cpp_err"; then
8568 ac_header_preproc=yes
8570 echo "$as_me: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 ac_header_preproc=no
8574 rm -f conftest.err conftest.$ac_ext
8575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8576 echo "${ECHO_T}$ac_header_preproc" >&6
8578 # So? What about this header?
8579 case $ac_header_compiler:$ac_header_preproc in
8581 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8582 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8586 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8587 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8589 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8591 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8593 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8594 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8595 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8600 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8601 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8604 if test $ac_cv_header_openssl_ssl_h = yes; then
8607 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8608 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8609 { (exit 1); exit 1; }; }
8613 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8614 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8615 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8616 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8620 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8622 # Is the header compilable?
8623 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8624 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8626 #line $LINENO "configure"
8627 #include "confdefs.h"
8628 $ac_includes_default
8629 #include <openssl/err.h>
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 ac_header_compiler=yes
8645 echo "$as_me: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8647 ac_header_compiler=no
8649 rm -f conftest.$ac_objext conftest.$ac_ext
8650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8651 echo "${ECHO_T}$ac_header_compiler" >&6
8653 # Is the header present?
8654 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8655 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8657 #line $LINENO "configure"
8658 #include "confdefs.h"
8659 #include <openssl/err.h>
8661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8664 egrep -v '^ *\+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } >/dev/null; then
8669 if test -s conftest.err; then
8670 ac_cpp_err=$ac_c_preproc_warn_flag
8677 if test -z "$ac_cpp_err"; then
8678 ac_header_preproc=yes
8680 echo "$as_me: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8682 ac_header_preproc=no
8684 rm -f conftest.err conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8686 echo "${ECHO_T}$ac_header_preproc" >&6
8688 # So? What about this header?
8689 case $ac_header_compiler:$ac_header_preproc in
8691 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8692 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8694 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8696 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8697 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8699 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8700 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8701 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8703 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8704 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8705 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 ac_cv_header_openssl_err_h=$ac_header_preproc
8710 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8711 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8714 if test $ac_cv_header_openssl_err_h = yes; then
8717 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8718 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8719 { (exit 1); exit 1; }; }
8725 if test "$with_pam" = yes ; then
8727 for ac_header in security/pam_appl.h
8729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731 echo "$as_me:$LINENO: checking for $ac_header" >&5
8732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8739 # Is the header compilable?
8740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 #include "confdefs.h"
8745 $ac_includes_default
8746 #include <$ac_header>
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -s conftest.$ac_objext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_header_compiler=yes
8762 echo "$as_me: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_header_compiler=no
8766 rm -f conftest.$ac_objext conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8768 echo "${ECHO_T}$ac_header_compiler" >&6
8770 # Is the header present?
8771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8774 #line $LINENO "configure"
8775 #include "confdefs.h"
8776 #include <$ac_header>
8778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8781 egrep -v '^ *\+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } >/dev/null; then
8786 if test -s conftest.err; then
8787 ac_cpp_err=$ac_c_preproc_warn_flag
8794 if test -z "$ac_cpp_err"; then
8795 ac_header_preproc=yes
8797 echo "$as_me: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8799 ac_header_preproc=no
8801 rm -f conftest.err conftest.$ac_ext
8802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8803 echo "${ECHO_T}$ac_header_preproc" >&6
8805 # So? What about this header?
8806 case $ac_header_compiler:$ac_header_preproc in
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8820 echo "$as_me:$LINENO: checking for $ac_header" >&5
8821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 eval "$as_ac_Header=$ac_header_preproc"
8827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8838 for ac_header in pam/pam_appl.h
8840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8842 echo "$as_me:$LINENO: checking for $ac_header" >&5
8843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8850 # Is the header compilable?
8851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8854 #line $LINENO "configure"
8855 #include "confdefs.h"
8856 $ac_includes_default
8857 #include <$ac_header>
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_header_compiler=yes
8873 echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 ac_header_compiler=no
8877 rm -f conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8879 echo "${ECHO_T}$ac_header_compiler" >&6
8881 # Is the header present?
8882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 #include "confdefs.h"
8887 #include <$ac_header>
8889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8892 egrep -v '^ *\+' conftest.er1 >conftest.err
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } >/dev/null; then
8897 if test -s conftest.err; then
8898 ac_cpp_err=$ac_c_preproc_warn_flag
8905 if test -z "$ac_cpp_err"; then
8906 ac_header_preproc=yes
8908 echo "$as_me: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8910 ac_header_preproc=no
8912 rm -f conftest.err conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8914 echo "${ECHO_T}$ac_header_preproc" >&6
8916 # So? What about this header?
8917 case $ac_header_compiler:$ac_header_preproc in
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8931 echo "$as_me:$LINENO: checking for $ac_header" >&5
8932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 eval "$as_ac_Header=$ac_header_preproc"
8938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8943 cat >>confdefs.h <<_ACEOF
8944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8948 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8949 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8950 { (exit 1); exit 1; }; }
8961 if test "$with_rendezvous" = yes ; then
8962 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8963 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8964 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8965 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8969 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8971 # Is the header compilable?
8972 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8973 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8975 #line $LINENO "configure"
8976 #include "confdefs.h"
8977 $ac_includes_default
8978 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_header_compiler=yes
8994 echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 ac_header_compiler=no
8998 rm -f conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000 echo "${ECHO_T}$ac_header_compiler" >&6
9002 # Is the header present?
9003 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9004 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 #include "confdefs.h"
9008 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9013 egrep -v '^ *\+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } >/dev/null; then
9018 if test -s conftest.err; then
9019 ac_cpp_err=$ac_c_preproc_warn_flag
9026 if test -z "$ac_cpp_err"; then
9027 ac_header_preproc=yes
9029 echo "$as_me: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9031 ac_header_preproc=no
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9037 # So? What about this header?
9038 case $ac_header_compiler:$ac_header_preproc in
9040 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9045 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9046 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9048 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9052 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9053 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9054 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9059 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9060 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9063 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9066 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9067 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9068 { (exit 1); exit 1; }; }
9076 ## Types, structures, compiler characteristics
9080 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9081 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9082 if test "${ac_cv_c_const+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9087 #include "confdefs.h"
9089 #ifdef F77_DUMMY_MAIN
9093 int F77_DUMMY_MAIN() { return 1; }
9098 /* FIXME: Include the comments suggested by Paul. */
9100 /* Ultrix mips cc rejects this. */
9101 typedef int charset[2];
9103 /* SunOS 4.1.1 cc rejects this. */
9104 char const *const *ccp;
9106 /* NEC SVR4.0.2 mips cc rejects this. */
9107 struct point {int x, y;};
9108 static struct point const zero = {0,0};
9109 /* AIX XL C 1.02.0.0 rejects this.
9110 It does not let you subtract one const X* pointer from another in
9111 an arm of an if-expression whose if-part is not a constant
9113 const char *g = "string";
9114 ccp = &g + (g ? g-g : 0);
9115 /* HPUX 7.0 cc rejects these. */
9118 ccp = (char const *const *) p;
9119 { /* SCO 3.2v4 cc rejects this. */
9121 char const *s = 0 ? (char *) 0 : (char const *) 0;
9125 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9127 const int *foo = &x[0];
9130 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9131 typedef const int *iptr;
9135 { /* AIX XL C 1.02.0.0 rejects this saying
9136 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9137 struct s { int j; const int *ap[3]; };
9138 struct s *b; b->j = 5;
9140 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -s conftest.$ac_objext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9163 echo "$as_me: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9170 echo "${ECHO_T}$ac_cv_c_const" >&6
9171 if test $ac_cv_c_const = no; then
9173 cat >>confdefs.h <<\_ACEOF
9179 echo "$as_me:$LINENO: checking for inline" >&5
9180 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9181 if test "${ac_cv_c_inline+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 for ac_kw in inline __inline__ __inline; do
9186 cat >conftest.$ac_ext <<_ACEOF
9187 #line $LINENO "configure"
9188 #include "confdefs.h"
9190 static $ac_kw int static_foo () {return 0; }
9191 $ac_kw int foo () {return 0; }
9195 rm -f conftest.$ac_objext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9197 (eval $ac_compile) 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_cv_c_inline=$ac_kw; break
9209 echo "$as_me: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9212 rm -f conftest.$ac_objext conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9217 echo "${ECHO_T}$ac_cv_c_inline" >&6
9218 case $ac_cv_c_inline in
9221 cat >>confdefs.h <<\_ACEOF
9225 *) cat >>confdefs.h <<_ACEOF
9226 #define inline $ac_cv_c_inline
9231 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9232 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9233 if test "${ac_cv_c_stringize+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 #include "confdefs.h"
9241 char *s = x(teststring);
9243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9244 egrep "#teststring" >/dev/null 2>&1; then
9245 ac_cv_c_stringize=no
9247 ac_cv_c_stringize=yes
9252 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9253 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9254 if test $ac_cv_c_stringize = yes; then
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_STRINGIZE 1
9262 echo "$as_me:$LINENO: checking for signed types" >&5
9263 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9264 if test "${pgac_cv_c_signed+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9268 #line $LINENO "configure"
9269 #include "confdefs.h"
9271 #ifdef F77_DUMMY_MAIN
9275 int F77_DUMMY_MAIN() { return 1; }
9280 signed char c; signed short s; signed int i;
9285 rm -f conftest.$ac_objext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287 (eval $ac_compile) 2>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -s conftest.$ac_objext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 pgac_cv_c_signed=yes
9299 echo "$as_me: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9303 rm -f conftest.$ac_objext conftest.$ac_ext
9305 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9306 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9307 if test x"$pgac_cv_c_signed" = xno ; then
9309 cat >>confdefs.h <<\_ACEOF
9314 echo "$as_me:$LINENO: checking for working volatile" >&5
9315 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9316 if test "${ac_cv_c_volatile+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 cat >conftest.$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9321 #include "confdefs.h"
9323 #ifdef F77_DUMMY_MAIN
9327 int F77_DUMMY_MAIN() { return 1; }
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_c_volatile=yes
9353 echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9357 rm -f conftest.$ac_objext conftest.$ac_ext
9359 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9360 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9361 if test $ac_cv_c_volatile = no; then
9363 cat >>confdefs.h <<\_ACEOF
9369 echo "$as_me:$LINENO: checking for __func__" >&5
9370 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9371 if test "${pgac_cv_funcname_func_support+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9376 #include "confdefs.h"
9378 #ifdef F77_DUMMY_MAIN
9382 int F77_DUMMY_MAIN() { return 1; }
9387 printf("%s\n", __func__);
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -s conftest.$ac_objext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 pgac_cv_funcname_func_support=yes
9406 echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 pgac_cv_funcname_func_support=no
9410 rm -f conftest.$ac_objext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9413 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9414 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_FUNCNAME__FUNC 1
9421 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9422 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9423 if test "${pgac_cv_funcname_function_support+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 #include "confdefs.h"
9430 #ifdef F77_DUMMY_MAIN
9434 int F77_DUMMY_MAIN() { return 1; }
9439 printf("%s\n", __FUNCTION__);
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try='test -s conftest.$ac_objext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 pgac_cv_funcname_function_support=yes
9458 echo "$as_me: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 pgac_cv_funcname_function_support=no
9462 rm -f conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9465 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9466 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_FUNCNAME__FUNCTION 1
9474 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9475 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9476 if test "${ac_cv_struct_tm+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9481 #include "confdefs.h"
9482 #include <sys/types.h>
9485 #ifdef F77_DUMMY_MAIN
9489 int F77_DUMMY_MAIN() { return 1; }
9494 struct tm *tp; tp->tm_sec;
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -s conftest.$ac_objext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_struct_tm=time.h
9513 echo "$as_me: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 ac_cv_struct_tm=sys/time.h
9517 rm -f conftest.$ac_objext conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9520 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9521 if test $ac_cv_struct_tm = sys/time.h; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define TM_IN_SYS_TIME 1
9529 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9530 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9531 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.$ac_ext <<_ACEOF
9535 #line $LINENO "configure"
9536 #include "confdefs.h"
9537 #include <sys/types.h>
9538 #include <$ac_cv_struct_tm>
9541 #ifdef F77_DUMMY_MAIN
9545 int F77_DUMMY_MAIN() { return 1; }
9550 static struct tm ac_aggr;
9551 if (ac_aggr.tm_zone)
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -s conftest.$ac_objext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_member_struct_tm_tm_zone=yes
9571 echo "$as_me: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 ac_cv_member_struct_tm_tm_zone=no
9575 rm -f conftest.$ac_objext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9578 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9579 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9581 cat >>confdefs.h <<_ACEOF
9582 #define HAVE_STRUCT_TM_TM_ZONE 1
9588 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_TM_ZONE 1
9595 echo "$as_me:$LINENO: checking for tzname" >&5
9596 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9597 if test "${ac_cv_var_tzname+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9604 #ifndef tzname /* For SGI. */
9605 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9608 #ifdef F77_DUMMY_MAIN
9612 int F77_DUMMY_MAIN() { return 1; }
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9624 (eval $ac_link) 2>&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_var_tzname=yes
9636 echo "$as_me: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9642 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9643 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9644 if test $ac_cv_var_tzname = yes; then
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_TZNAME 1
9652 echo "$as_me:$LINENO: checking for union semun" >&5
9653 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9654 if test "${ac_cv_type_union_semun+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 cat >conftest.$ac_ext <<_ACEOF
9658 #line $LINENO "configure"
9659 #include "confdefs.h"
9660 #include <sys/types.h>
9661 #include <sys/ipc.h>
9662 #include <sys/sem.h>
9664 #ifdef F77_DUMMY_MAIN
9668 int F77_DUMMY_MAIN() { return 1; }
9673 if ((union semun *) 0)
9675 if (sizeof (union semun))
9681 rm -f conftest.$ac_objext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683 (eval $ac_compile) 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -s conftest.$ac_objext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_type_union_semun=yes
9695 echo "$as_me: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9697 ac_cv_type_union_semun=no
9699 rm -f conftest.$ac_objext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9702 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9703 if test $ac_cv_type_union_semun = yes; then
9705 cat >>confdefs.h <<_ACEOF
9706 #define HAVE_UNION_SEMUN 1
9712 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9713 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9714 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9719 #include "confdefs.h"
9720 #include <sys/types.h>
9721 #ifdef HAVE_SYS_UN_H
9726 #ifdef F77_DUMMY_MAIN
9730 int F77_DUMMY_MAIN() { return 1; }
9735 if ((struct sockaddr_un *) 0)
9737 if (sizeof (struct sockaddr_un))
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_struct_sockaddr_un=yes
9757 echo "$as_me: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 ac_cv_type_struct_sockaddr_un=no
9761 rm -f conftest.$ac_objext conftest.$ac_ext
9763 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9764 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9765 if test $ac_cv_type_struct_sockaddr_un = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768 #define HAVE_STRUCT_SOCKADDR_UN 1
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_UNIX_SOCKETS 1
9778 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9779 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9780 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 cat >conftest.$ac_ext <<_ACEOF
9784 #line $LINENO "configure"
9785 #include "confdefs.h"
9786 #include <sys/types.h>
9787 #ifdef HAVE_SYS_SOCKET_H
9788 #include <sys/socket.h>
9792 #ifdef F77_DUMMY_MAIN
9796 int F77_DUMMY_MAIN() { return 1; }
9801 if ((struct sockaddr_storage *) 0)
9803 if (sizeof (struct sockaddr_storage))
9809 rm -f conftest.$ac_objext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9811 (eval $ac_compile) 2>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -s conftest.$ac_objext'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821 ac_cv_type_struct_sockaddr_storage=yes
9823 echo "$as_me: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 ac_cv_type_struct_sockaddr_storage=no
9827 rm -f conftest.$ac_objext conftest.$ac_ext
9829 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9830 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9831 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9833 cat >>confdefs.h <<_ACEOF
9834 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9840 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9841 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9842 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+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 static struct sockaddr_storage ac_aggr;
9864 if (ac_aggr.ss_family)
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872 (eval $ac_compile) 2>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9884 echo "$as_me: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 ac_cv_member_struct_sockaddr_storage_ss_family=no
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9891 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9892 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9900 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9901 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9902 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 #include "confdefs.h"
9908 #include <sys/types.h>
9909 #ifdef HAVE_SYS_SOCKET_H
9910 #include <sys/socket.h>
9914 #ifdef F77_DUMMY_MAIN
9918 int F77_DUMMY_MAIN() { return 1; }
9923 static struct sockaddr_storage ac_aggr;
9924 if (ac_aggr.__ss_family)
9930 rm -f conftest.$ac_objext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9932 (eval $ac_compile) 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -s conftest.$ac_objext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9944 echo "$as_me: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 ac_cv_member_struct_sockaddr_storage___ss_family=no
9948 rm -f conftest.$ac_objext conftest.$ac_ext
9950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9951 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9952 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9960 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9961 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9962 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 cat >conftest.$ac_ext <<_ACEOF
9966 #line $LINENO "configure"
9967 #include "confdefs.h"
9968 #include <sys/types.h>
9969 #ifdef HAVE_SYS_SOCKET_H
9970 #include <sys/socket.h>
9974 #ifdef F77_DUMMY_MAIN
9978 int F77_DUMMY_MAIN() { return 1; }
9983 static struct sockaddr_storage ac_aggr;
9990 rm -f conftest.$ac_objext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9992 (eval $ac_compile) 2>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -s conftest.$ac_objext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10004 echo "$as_me: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 ac_cv_member_struct_sockaddr_storage_ss_len=no
10008 rm -f conftest.$ac_objext conftest.$ac_ext
10010 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10011 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10012 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10014 cat >>confdefs.h <<_ACEOF
10015 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10020 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10021 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10022 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 #include <sys/types.h>
10029 #ifdef HAVE_SYS_SOCKET_H
10030 #include <sys/socket.h>
10034 #ifdef F77_DUMMY_MAIN
10035 # ifdef __cplusplus
10038 int F77_DUMMY_MAIN() { return 1; }
10043 static struct sockaddr_storage ac_aggr;
10044 if (ac_aggr.__ss_len)
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052 (eval $ac_compile) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest.$ac_objext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10064 echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 ac_cv_member_struct_sockaddr_storage___ss_len=no
10068 rm -f conftest.$ac_objext conftest.$ac_ext
10070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10071 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10072 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10074 cat >>confdefs.h <<_ACEOF
10075 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10080 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10081 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10082 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 cat >conftest.$ac_ext <<_ACEOF
10086 #line $LINENO "configure"
10087 #include "confdefs.h"
10088 #include <sys/types.h>
10089 #ifdef HAVE_SYS_SOCKET_H
10090 #include <sys/socket.h>
10094 #ifdef F77_DUMMY_MAIN
10095 # ifdef __cplusplus
10098 int F77_DUMMY_MAIN() { return 1; }
10103 static struct sockaddr ac_aggr;
10104 if (ac_aggr.sa_len)
10110 rm -f conftest.$ac_objext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112 (eval $ac_compile) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -s conftest.$ac_objext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_member_struct_sockaddr_sa_len=yes
10124 echo "$as_me: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 ac_cv_member_struct_sockaddr_sa_len=no
10128 rm -f conftest.$ac_objext conftest.$ac_ext
10130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10131 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10132 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10134 cat >>confdefs.h <<_ACEOF
10135 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10141 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10142 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10143 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 cat >conftest.$ac_ext <<_ACEOF
10147 #line $LINENO "configure"
10148 #include "confdefs.h"
10149 #include <sys/types.h>
10150 #include <sys/socket.h>
10154 #ifdef F77_DUMMY_MAIN
10155 # ifdef __cplusplus
10158 int F77_DUMMY_MAIN() { return 1; }
10163 if ((struct addrinfo *) 0)
10165 if (sizeof (struct addrinfo))
10171 rm -f conftest.$ac_objext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10173 (eval $ac_compile) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_type_struct_addrinfo=yes
10185 echo "$as_me: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 ac_cv_type_struct_addrinfo=no
10189 rm -f conftest.$ac_objext conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10192 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10193 if test $ac_cv_type_struct_addrinfo = yes; then
10195 cat >>confdefs.h <<_ACEOF
10196 #define HAVE_STRUCT_ADDRINFO 1
10203 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10204 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10205 if test "${ac_cv_type_struct_cmsgcred+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/param.h>
10212 #include <sys/types.h>
10213 #include <sys/socket.h>
10214 #include <sys/ucred.h>
10216 #ifdef F77_DUMMY_MAIN
10217 # ifdef __cplusplus
10220 int F77_DUMMY_MAIN() { return 1; }
10225 if ((struct cmsgcred *) 0)
10227 if (sizeof (struct cmsgcred))
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_cmsgcred=yes
10247 echo "$as_me: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 ac_cv_type_struct_cmsgcred=no
10251 rm -f conftest.$ac_objext conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10254 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10255 if test $ac_cv_type_struct_cmsgcred = yes; then
10257 cat >>confdefs.h <<_ACEOF
10258 #define HAVE_STRUCT_CMSGCRED 1
10263 echo "$as_me:$LINENO: checking for struct fcred" >&5
10264 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10265 if test "${ac_cv_type_struct_fcred+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10270 #include "confdefs.h"
10271 #include <sys/param.h>
10272 #include <sys/types.h>
10273 #include <sys/socket.h>
10274 #include <sys/ucred.h>
10276 #ifdef F77_DUMMY_MAIN
10277 # ifdef __cplusplus
10280 int F77_DUMMY_MAIN() { return 1; }
10285 if ((struct fcred *) 0)
10287 if (sizeof (struct fcred))
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_type_struct_fcred=yes
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ac_cv_type_struct_fcred=no
10311 rm -f conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10314 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10315 if test $ac_cv_type_struct_fcred = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318 #define HAVE_STRUCT_FCRED 1
10323 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10324 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10325 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line $LINENO "configure"
10330 #include "confdefs.h"
10331 #include <sys/param.h>
10332 #include <sys/types.h>
10333 #include <sys/socket.h>
10334 #include <sys/ucred.h>
10336 #ifdef F77_DUMMY_MAIN
10337 # ifdef __cplusplus
10340 int F77_DUMMY_MAIN() { return 1; }
10345 if ((struct sockcred *) 0)
10347 if (sizeof (struct sockcred))
10353 rm -f conftest.$ac_objext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355 (eval $ac_compile) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -s conftest.$ac_objext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 ac_cv_type_struct_sockcred=yes
10367 echo "$as_me: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 ac_cv_type_struct_sockcred=no
10371 rm -f conftest.$ac_objext conftest.$ac_ext
10373 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10374 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10375 if test $ac_cv_type_struct_sockcred = yes; then
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_STRUCT_SOCKCRED 1
10385 echo "$as_me:$LINENO: checking for struct option" >&5
10386 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10387 if test "${ac_cv_type_struct_option+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 #ifdef HAVE_GETOPT_H
10394 #include <getopt.h>
10397 #ifdef F77_DUMMY_MAIN
10398 # ifdef __cplusplus
10401 int F77_DUMMY_MAIN() { return 1; }
10406 if ((struct option *) 0)
10408 if (sizeof (struct option))
10414 rm -f conftest.$ac_objext
10415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416 (eval $ac_compile) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } &&
10420 { ac_try='test -s conftest.$ac_objext'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
10426 ac_cv_type_struct_option=yes
10428 echo "$as_me: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10430 ac_cv_type_struct_option=no
10432 rm -f conftest.$ac_objext conftest.$ac_ext
10434 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10435 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10436 if test $ac_cv_type_struct_option = yes; then
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE_STRUCT_OPTION 1
10446 if test "$with_zlib" = yes; then
10447 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10448 # did not). While we could work around the lack of z_streamp, it
10449 # seems unwise to encourage people to use such old zlib versions...
10450 echo "$as_me:$LINENO: checking for z_streamp" >&5
10451 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10452 if test "${ac_cv_type_z_streamp+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 #include "confdefs.h"
10460 #ifdef F77_DUMMY_MAIN
10461 # ifdef __cplusplus
10464 int F77_DUMMY_MAIN() { return 1; }
10469 if ((z_streamp *) 0)
10471 if (sizeof (z_streamp))
10477 rm -f conftest.$ac_objext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -s conftest.$ac_objext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 ac_cv_type_z_streamp=yes
10491 echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 ac_cv_type_z_streamp=no
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10497 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10498 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10499 if test $ac_cv_type_z_streamp = yes; then
10502 { { echo "$as_me:$LINENO: error: zlib version is too old
10503 Use --without-zlib to disable zlib support." >&5
10504 echo "$as_me: error: zlib version is too old
10505 Use --without-zlib to disable zlib support." >&2;}
10506 { (exit 1); exit 1; }; }
10511 if test "$with_krb5" = yes; then
10512 # Check for differences between MIT and Heimdal (KTH) releases
10513 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10514 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10515 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 #include "confdefs.h"
10523 #ifdef F77_DUMMY_MAIN
10524 # ifdef __cplusplus
10527 int F77_DUMMY_MAIN() { return 1; }
10532 static krb5_ticket ac_aggr;
10533 if (ac_aggr.enc_part2)
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_member_krb5_ticket_enc_part2=yes
10553 echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_member_krb5_ticket_enc_part2=no
10557 rm -f conftest.$ac_objext conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10560 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10561 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10563 cat >>confdefs.h <<_ACEOF
10564 #define HAVE_KRB5_TICKET_ENC_PART2 1
10569 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10570 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10571 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10579 #ifdef F77_DUMMY_MAIN
10580 # ifdef __cplusplus
10583 int F77_DUMMY_MAIN() { return 1; }
10588 static krb5_ticket ac_aggr;
10589 if (ac_aggr.client)
10595 rm -f conftest.$ac_objext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -s conftest.$ac_objext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 ac_cv_member_krb5_ticket_client=yes
10609 echo "$as_me: failed program was:" >&5
10610 cat conftest.$ac_ext >&5
10611 ac_cv_member_krb5_ticket_client=no
10613 rm -f conftest.$ac_objext conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10616 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10617 if test $ac_cv_member_krb5_ticket_client = yes; then
10619 cat >>confdefs.h <<_ACEOF
10620 #define HAVE_KRB5_TICKET_CLIENT 1
10625 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10626 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10627 { (exit 1); exit 1; }; }
10632 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10633 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10634 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10638 #line $LINENO "configure"
10639 #include "confdefs.h"
10642 #ifdef F77_DUMMY_MAIN
10643 # ifdef __cplusplus
10646 int F77_DUMMY_MAIN() { return 1; }
10651 static krb5_error ac_aggr;
10652 if (ac_aggr.text.data)
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_member_krb5_error_text_data=yes
10672 echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 ac_cv_member_krb5_error_text_data=no
10676 rm -f conftest.$ac_objext conftest.$ac_ext
10678 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10679 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10680 if test $ac_cv_member_krb5_error_text_data = yes; then
10682 cat >>confdefs.h <<_ACEOF
10683 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10688 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10689 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10690 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10695 #include "confdefs.h"
10698 #ifdef F77_DUMMY_MAIN
10699 # ifdef __cplusplus
10702 int F77_DUMMY_MAIN() { return 1; }
10707 static krb5_error ac_aggr;
10708 if (ac_aggr.e_data)
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716 (eval $ac_compile) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -s conftest.$ac_objext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 ac_cv_member_krb5_error_e_data=yes
10728 echo "$as_me: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10730 ac_cv_member_krb5_error_e_data=no
10732 rm -f conftest.$ac_objext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10735 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10736 if test $ac_cv_member_krb5_error_e_data = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_KRB5_ERROR_E_DATA 1
10744 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10745 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10746 { (exit 1); exit 1; }; }
10755 ## Functions, global variables
10758 echo "$as_me:$LINENO: checking for int timezone" >&5
10759 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10760 if test "${pgac_cv_var_int_timezone+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 cat >conftest.$ac_ext <<_ACEOF
10764 #line $LINENO "configure"
10765 #include "confdefs.h"
10768 #ifdef F77_DUMMY_MAIN
10769 # ifdef __cplusplus
10772 int F77_DUMMY_MAIN() { return 1; }
10777 res = timezone / 60;
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784 (eval $ac_link) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -s conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 pgac_cv_var_int_timezone=yes
10796 echo "$as_me: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 pgac_cv_var_int_timezone=no
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10803 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10804 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10806 cat >>confdefs.h <<\_ACEOF
10807 #define HAVE_INT_TIMEZONE
10811 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10812 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10813 if test "${ac_cv_func_accept_arg1+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 if test "${ac_cv_func_accept_arg2+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 if test "${ac_cv_func_accept_arg3+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10823 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10824 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828 #ifdef HAVE_SYS_TYPES_H
10829 #include <sys/types.h>
10831 #ifdef HAVE_SYS_SOCKET_H
10832 #include <sys/socket.h>
10834 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10835 #ifdef F77_DUMMY_MAIN
10836 # ifdef __cplusplus
10839 int F77_DUMMY_MAIN() { return 1; }
10849 rm -f conftest.$ac_objext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851 (eval $ac_compile) 2>&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -s conftest.$ac_objext'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 ac_not_found=no; break 3
10863 echo "$as_me: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10867 rm -f conftest.$ac_objext conftest.$ac_ext
10871 if test "$ac_not_found" = yes; then
10872 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10873 echo "$as_me: error: could not determine argument types" >&2;}
10874 { (exit 1); exit 1; }; }
10876 if test "$ac_cv_func_accept_arg3" = "void"; then
10877 ac_cv_func_accept_arg3=int
10885 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10886 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10888 cat >>confdefs.h <<_ACEOF
10889 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10893 cat >>confdefs.h <<_ACEOF
10894 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10898 cat >>confdefs.h <<_ACEOF
10899 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10903 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10904 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10905 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 cat >conftest.$ac_ext <<_ACEOF
10909 #line $LINENO "configure"
10910 #include "confdefs.h"
10911 #include <sys/time.h>
10912 #ifdef F77_DUMMY_MAIN
10913 # ifdef __cplusplus
10916 int F77_DUMMY_MAIN() { return 1; }
10921 struct timeval *tp;
10922 struct timezone *tzp;
10923 gettimeofday(tp,tzp);
10928 rm -f conftest.$ac_objext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10930 (eval $ac_compile) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 pgac_cv_func_gettimeofday_1arg=no
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 pgac_cv_func_gettimeofday_1arg=yes
10946 rm -f conftest.$ac_objext conftest.$ac_ext
10948 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10949 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10950 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10952 cat >>confdefs.h <<\_ACEOF
10953 #define GETTIMEOFDAY_1ARG
10960 # SunOS doesn't handle negative byte comparisons properly with +/- return
10961 echo "$as_me:$LINENO: checking for working memcmp" >&5
10962 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10963 if test "${ac_cv_func_memcmp_working+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 if test "$cross_compiling" = yes; then
10967 ac_cv_func_memcmp_working=no
10969 cat >conftest.$ac_ext <<_ACEOF
10970 #line $LINENO "configure"
10971 #include "confdefs.h"
10973 #ifdef F77_DUMMY_MAIN
10974 # ifdef __cplusplus
10977 int F77_DUMMY_MAIN() { return 1; }
10983 /* Some versions of memcmp are not 8-bit clean. */
10984 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10985 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10988 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10989 or more and with at least one buffer not starting on a 4-byte boundary.
10990 William Lewis provided this test program. */
10995 for (i = 0; i < 4; i++)
10999 strcpy (a, "--------01111111");
11000 strcpy (b, "--------10000000");
11001 if (memcmp (a, b, 16) >= 0)
11011 rm -f conftest$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013 (eval $ac_link) 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_cv_func_memcmp_working=yes
11024 echo "$as_me: program exited with status $ac_status" >&5
11025 echo "$as_me: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11027 ( exit $ac_status )
11028 ac_cv_func_memcmp_working=no
11030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11033 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11034 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11035 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11054 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 echo "$as_me:$LINENO: checking for $ac_func" >&5
11058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_var+set}\" = set"; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066 which can conflict with char $ac_func (); below. */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error. */
11072 /* We use char because int might match the return type of a gcc2
11073 builtin and then its argument prototype would still apply. */
11077 #ifdef F77_DUMMY_MAIN
11078 # ifdef __cplusplus
11081 int F77_DUMMY_MAIN() { return 1; }
11086 /* The GNU C library defines this for functions which it implements
11087 to always fail with ENOSYS. Some functions are actually named
11088 something starting with __ and the normal name is an alias. */
11089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 eval "$as_ac_var=yes"
11113 echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 eval "$as_ac_var=no"
11117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11121 if test `eval echo '${'$as_ac_var'}'` = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11130 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11131 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11132 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 cat >conftest.$ac_ext <<_ACEOF
11136 #line $LINENO "configure"
11137 #include "confdefs.h"
11138 #include <unistd.h>
11140 #ifdef F77_DUMMY_MAIN
11141 # ifdef __cplusplus
11144 int F77_DUMMY_MAIN() { return 1; }
11150 char *p = (char *) fdatasync;
11157 rm -f conftest.$ac_objext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -s conftest.$ac_objext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_have_decl_fdatasync=yes
11171 echo "$as_me: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11173 ac_cv_have_decl_fdatasync=no
11175 rm -f conftest.$ac_objext conftest.$ac_ext
11177 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11178 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11179 if test $ac_cv_have_decl_fdatasync = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_DECL_FDATASYNC 1
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_DECL_FDATASYNC 0
11196 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11197 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11198 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11202 #line $LINENO "configure"
11203 #include "confdefs.h"
11204 $ac_includes_default
11205 #include <netinet/in.h>
11207 #ifdef F77_DUMMY_MAIN
11208 # ifdef __cplusplus
11211 int F77_DUMMY_MAIN() { return 1; }
11216 if ((struct sockaddr_in6 *) 0)
11218 if (sizeof (struct sockaddr_in6))
11224 rm -f conftest.$ac_objext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -s conftest.$ac_objext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_cv_type_struct_sockaddr_in6=yes
11238 echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 ac_cv_type_struct_sockaddr_in6=no
11242 rm -f conftest.$ac_objext conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11245 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11246 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11247 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11248 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11249 if test "${ac_cv_func_inet_ntop+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11254 #include "confdefs.h"
11255 /* System header to define __stub macros and hopefully few prototypes,
11256 which can conflict with char inet_ntop (); below. */
11257 #include <assert.h>
11258 /* Override any gcc2 internal prototype to avoid an error. */
11262 /* We use char because int might match the return type of a gcc2
11263 builtin and then its argument prototype would still apply. */
11267 #ifdef F77_DUMMY_MAIN
11268 # ifdef __cplusplus
11271 int F77_DUMMY_MAIN() { return 1; }
11276 /* The GNU C library defines this for functions which it implements
11277 to always fail with ENOSYS. Some functions are actually named
11278 something starting with __ and the normal name is an alias. */
11279 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -s conftest$ac_exeext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 ac_cv_func_inet_ntop=yes
11303 echo "$as_me: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11305 ac_cv_func_inet_ntop=no
11307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11309 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11310 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11311 if test $ac_cv_func_inet_ntop = yes; then
11313 cat >>confdefs.h <<\_ACEOF
11314 #define HAVE_IPV6 1
11322 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11323 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11324 if test "${pgac_cv_var_PS_STRINGS+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 #include <machine/vmparam.h>
11331 #include <sys/exec.h>
11333 #ifdef F77_DUMMY_MAIN
11334 # ifdef __cplusplus
11337 int F77_DUMMY_MAIN() { return 1; }
11342 PS_STRINGS->ps_nargvstr = 1;
11343 PS_STRINGS->ps_argvstr = "foo";
11348 rm -f conftest.$ac_objext conftest$ac_exeext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11350 (eval $ac_link) 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -s conftest$ac_exeext'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 pgac_cv_var_PS_STRINGS=yes
11362 echo "$as_me: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 pgac_cv_var_PS_STRINGS=no
11366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11369 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11370 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_PS_STRINGS
11379 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11380 # is missing. Yes, there are machines that have only one. We may
11381 # also decide to use snprintf.c if snprintf() is present but does not
11382 # have working "long long int" support -- see below.
11384 pgac_need_repl_snprintf=no
11386 for ac_func in snprintf
11388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 echo "$as_me:$LINENO: checking for $ac_func" >&5
11390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11391 if eval "test \"\${$as_ac_var+set}\" = set"; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 cat >conftest.$ac_ext <<_ACEOF
11395 #line $LINENO "configure"
11396 #include "confdefs.h"
11397 /* System header to define __stub macros and hopefully few prototypes,
11398 which can conflict with char $ac_func (); below. */
11399 #include <assert.h>
11400 /* Override any gcc2 internal prototype to avoid an error. */
11404 /* We use char because int might match the return type of a gcc2
11405 builtin and then its argument prototype would still apply. */
11409 #ifdef F77_DUMMY_MAIN
11410 # ifdef __cplusplus
11413 int F77_DUMMY_MAIN() { return 1; }
11418 /* The GNU C library defines this for functions which it implements
11419 to always fail with ENOSYS. Some functions are actually named
11420 something starting with __ and the normal name is an alias. */
11421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433 (eval $ac_link) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -s conftest$ac_exeext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 eval "$as_ac_var=yes"
11445 echo "$as_me: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 eval "$as_ac_var=no"
11449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11453 if test `eval echo '${'$as_ac_var'}'` = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 pgac_need_repl_snprintf=yes
11464 for ac_func in vsnprintf
11466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11467 echo "$as_me:$LINENO: checking for $ac_func" >&5
11468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11469 if eval "test \"\${$as_ac_var+set}\" = set"; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 cat >conftest.$ac_ext <<_ACEOF
11473 #line $LINENO "configure"
11474 #include "confdefs.h"
11475 /* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char $ac_func (); below. */
11477 #include <assert.h>
11478 /* Override any gcc2 internal prototype to avoid an error. */
11482 /* We use char because int might match the return type of a gcc2
11483 builtin and then its argument prototype would still apply. */
11487 #ifdef F77_DUMMY_MAIN
11488 # ifdef __cplusplus
11491 int F77_DUMMY_MAIN() { return 1; }
11496 /* The GNU C library defines this for functions which it implements
11497 to always fail with ENOSYS. Some functions are actually named
11498 something starting with __ and the normal name is an alias. */
11499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511 (eval $ac_link) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try='test -s conftest$ac_exeext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 eval "$as_ac_var=yes"
11523 echo "$as_me: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 eval "$as_ac_var=no"
11527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11531 if test `eval echo '${'$as_ac_var'}'` = yes; then
11532 cat >>confdefs.h <<_ACEOF
11533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537 pgac_need_repl_snprintf=yes
11543 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11544 # include/c.h will provide declarations. Note this is a separate test
11545 # from whether the functions exist in the C library --- there are
11546 # systems that have the functions but don't bother to declare them :-(
11548 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11549 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11550 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 $ac_includes_default
11557 #ifdef F77_DUMMY_MAIN
11558 # ifdef __cplusplus
11561 int F77_DUMMY_MAIN() { return 1; }
11567 char *p = (char *) snprintf;
11574 rm -f conftest.$ac_objext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576 (eval $ac_compile) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_have_decl_snprintf=yes
11588 echo "$as_me: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 ac_cv_have_decl_snprintf=no
11592 rm -f conftest.$ac_objext conftest.$ac_ext
11594 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11595 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11596 if test $ac_cv_have_decl_snprintf = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_DECL_SNPRINTF 1
11604 cat >>confdefs.h <<_ACEOF
11605 #define HAVE_DECL_SNPRINTF 0
11610 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11611 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11612 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618 $ac_includes_default
11619 #ifdef F77_DUMMY_MAIN
11620 # ifdef __cplusplus
11623 int F77_DUMMY_MAIN() { return 1; }
11629 char *p = (char *) vsnprintf;
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638 (eval $ac_compile) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_cv_have_decl_vsnprintf=yes
11650 echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 ac_cv_have_decl_vsnprintf=no
11654 rm -f conftest.$ac_objext conftest.$ac_ext
11656 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11657 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11658 if test $ac_cv_have_decl_vsnprintf = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define HAVE_DECL_VSNPRINTF 1
11666 cat >>confdefs.h <<_ACEOF
11667 #define HAVE_DECL_VSNPRINTF 0
11676 # do this one the hard way in case isinf() is a macro
11677 echo "$as_me:$LINENO: checking for isinf" >&5
11678 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11679 if test "${ac_cv_func_isinf+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11687 #ifdef F77_DUMMY_MAIN
11688 # ifdef __cplusplus
11691 int F77_DUMMY_MAIN() { return 1; }
11696 double x = 0.0; int res = isinf(x);
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -s conftest$ac_exeext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 ac_cv_func_isinf=yes
11715 echo "$as_me: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 ac_cv_func_isinf=no
11719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11721 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11722 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11724 if test $ac_cv_func_isinf = yes ; then
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_ISINF 1
11731 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11732 # Look for a way to implement a substitute for isinf()
11737 for ac_func in fpclass fp_class fp_class_d class
11739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11742 if eval "test \"\${$as_ac_var+set}\" = set"; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11746 #line $LINENO "configure"
11747 #include "confdefs.h"
11748 /* System header to define __stub macros and hopefully few prototypes,
11749 which can conflict with char $ac_func (); below. */
11750 #include <assert.h>
11751 /* Override any gcc2 internal prototype to avoid an error. */
11755 /* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11760 #ifdef F77_DUMMY_MAIN
11761 # ifdef __cplusplus
11764 int F77_DUMMY_MAIN() { return 1; }
11769 /* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784 (eval $ac_link) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 eval "$as_ac_var=yes"
11796 echo "$as_me: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11798 eval "$as_ac_var=no"
11800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11827 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11832 if eval "test \"\${$as_ac_var+set}\" = set"; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 #include "confdefs.h"
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below. */
11840 #include <assert.h>
11841 /* Override any gcc2 internal prototype to avoid an error. */
11845 /* We use char because int might match the return type of a gcc2
11846 builtin and then its argument prototype would still apply. */
11850 #ifdef F77_DUMMY_MAIN
11851 # ifdef __cplusplus
11854 int F77_DUMMY_MAIN() { return 1; }
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -s conftest$ac_exeext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 eval "$as_ac_var=yes"
11886 echo "$as_me: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11888 eval "$as_ac_var=no"
11890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11900 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11906 # system's version of getaddrinfo(), if any, may be used only if we found
11907 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11908 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11910 for ac_func in getaddrinfo
11912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11913 echo "$as_me:$LINENO: checking for $ac_func" >&5
11914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_var+set}\" = set"; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 cat >conftest.$ac_ext <<_ACEOF
11919 #line $LINENO "configure"
11920 #include "confdefs.h"
11921 /* System header to define __stub macros and hopefully few prototypes,
11922 which can conflict with char $ac_func (); below. */
11923 #include <assert.h>
11924 /* Override any gcc2 internal prototype to avoid an error. */
11928 /* We use char because int might match the return type of a gcc2
11929 builtin and then its argument prototype would still apply. */
11933 #ifdef F77_DUMMY_MAIN
11934 # ifdef __cplusplus
11937 int F77_DUMMY_MAIN() { return 1; }
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -s conftest$ac_exeext'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11967 eval "$as_ac_var=yes"
11969 echo "$as_me: failed program was:" >&5
11970 cat conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11989 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11992 # similarly, use system's getopt_long() only if system provides struct option.
11993 if test x"$ac_cv_type_struct_option" = xyes ; then
11995 for ac_func in getopt_long
11997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11998 echo "$as_me:$LINENO: checking for $ac_func" >&5
11999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12000 if eval "test \"\${$as_ac_var+set}\" = set"; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12004 #line $LINENO "configure"
12005 #include "confdefs.h"
12006 /* System header to define __stub macros and hopefully few prototypes,
12007 which can conflict with char $ac_func (); below. */
12008 #include <assert.h>
12009 /* Override any gcc2 internal prototype to avoid an error. */
12013 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12018 #ifdef F77_DUMMY_MAIN
12019 # ifdef __cplusplus
12022 int F77_DUMMY_MAIN() { return 1; }
12027 /* The GNU C library defines this for functions which it implements
12028 to always fail with ENOSYS. Some functions are actually named
12029 something starting with __ and the normal name is an alias. */
12030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 eval "$as_ac_var=yes"
12054 echo "$as_me: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 eval "$as_ac_var=no"
12058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12062 if test `eval echo '${'$as_ac_var'}'` = yes; then
12063 cat >>confdefs.h <<_ACEOF
12064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12068 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12074 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12077 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12078 # We override the previous test that said fseeko/ftello didn't exist
12079 # OS tests are also done in include/c.h and port/fseeko.c
12080 case $host_os in bsdi*|netbsd*)
12081 ac_cv_func_fseeko=yes
12084 # Solaris has a very slow qsort in certain cases, so we replace it.
12085 case $host_os in solaris*)
12086 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12089 # Win32 can't to rename or unlink on an open file
12090 case $host_os in mingw*)
12091 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12092 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12093 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12096 if test "$with_readline" = yes; then
12097 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12098 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12103 #ifdef HAVE_READLINE_READLINE_H
12104 # include <readline/readline.h>
12105 #elif defined(HAVE_READLINE_H)
12106 # include <readline.h>
12109 #ifdef F77_DUMMY_MAIN
12110 # ifdef __cplusplus
12113 int F77_DUMMY_MAIN() { return 1; }
12118 rl_completion_append_character = 'x';
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12125 (eval $ac_link) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 echo "$as_me:$LINENO: result: yes" >&5
12136 echo "${ECHO_T}yes" >&6
12138 cat >>confdefs.h <<\_ACEOF
12139 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12143 echo "$as_me: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 echo "$as_me:$LINENO: result: no" >&5
12146 echo "${ECHO_T}no" >&6
12148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12151 for ac_func in rl_completion_matches rl_filename_completion_function
12153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12154 echo "$as_me:$LINENO: checking for $ac_func" >&5
12155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_var+set}\" = set"; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12162 /* System header to define __stub macros and hopefully few prototypes,
12163 which can conflict with char $ac_func (); below. */
12164 #include <assert.h>
12165 /* Override any gcc2 internal prototype to avoid an error. */
12169 /* We use char because int might match the return type of a gcc2
12170 builtin and then its argument prototype would still apply. */
12174 #ifdef F77_DUMMY_MAIN
12175 # ifdef __cplusplus
12178 int F77_DUMMY_MAIN() { return 1; }
12183 /* The GNU C library defines this for functions which it implements
12184 to always fail with ENOSYS. Some functions are actually named
12185 something starting with __ and the normal name is an alias. */
12186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198 (eval $ac_link) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -s conftest$ac_exeext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 eval "$as_ac_var=yes"
12210 echo "$as_me: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 eval "$as_ac_var=no"
12214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12218 if test `eval echo '${'$as_ac_var'}'` = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12227 for ac_func in replace_history_entry
12229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12230 echo "$as_me:$LINENO: checking for $ac_func" >&5
12231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12232 if eval "test \"\${$as_ac_var+set}\" = set"; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 cat >conftest.$ac_ext <<_ACEOF
12236 #line $LINENO "configure"
12237 #include "confdefs.h"
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below. */
12240 #include <assert.h>
12241 /* Override any gcc2 internal prototype to avoid an error. */
12245 /* We use char because int might match the return type of a gcc2
12246 builtin and then its argument prototype would still apply. */
12250 #ifdef F77_DUMMY_MAIN
12251 # ifdef __cplusplus
12254 int F77_DUMMY_MAIN() { return 1; }
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 eval "$as_ac_var=yes"
12286 echo "$as_me: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12288 eval "$as_ac_var=no"
12290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12294 if test `eval echo '${'$as_ac_var'}'` = yes; then
12295 cat >>confdefs.h <<_ACEOF
12296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12305 echo "$as_me:$LINENO: checking for finite" >&5
12306 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12307 cat >conftest.$ac_ext <<_ACEOF
12308 #line $LINENO "configure"
12309 #include "confdefs.h"
12311 #ifdef F77_DUMMY_MAIN
12312 # ifdef __cplusplus
12315 int F77_DUMMY_MAIN() { return 1; }
12320 int dummy=finite(1.0);
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12327 (eval $ac_link) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12338 cat >>confdefs.h <<\_ACEOF
12339 #define HAVE_FINITE 1
12342 echo "$as_me:$LINENO: result: yes" >&5
12343 echo "${ECHO_T}yes" >&6
12345 echo "$as_me: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 echo "$as_me:$LINENO: result: no" >&5
12348 echo "${ECHO_T}no" >&6
12350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12352 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12353 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12354 cat >conftest.$ac_ext <<_ACEOF
12355 #line $LINENO "configure"
12356 #include "confdefs.h"
12357 #include <setjmp.h>
12358 #ifdef F77_DUMMY_MAIN
12359 # ifdef __cplusplus
12362 int F77_DUMMY_MAIN() { return 1; }
12367 sigjmp_buf x; sigsetjmp(x, 1);
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_SIGSETJMP 1
12389 echo "$as_me:$LINENO: result: yes" >&5
12390 echo "${ECHO_T}yes" >&6
12392 echo "$as_me: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12394 echo "$as_me:$LINENO: result: no" >&5
12395 echo "${ECHO_T}no" >&6
12397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12399 echo "$as_me:$LINENO: checking for syslog" >&5
12400 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12401 if test "${ac_cv_func_syslog+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 cat >conftest.$ac_ext <<_ACEOF
12405 #line $LINENO "configure"
12406 #include "confdefs.h"
12407 /* System header to define __stub macros and hopefully few prototypes,
12408 which can conflict with char syslog (); below. */
12409 #include <assert.h>
12410 /* Override any gcc2 internal prototype to avoid an error. */
12414 /* We use char because int might match the return type of a gcc2
12415 builtin and then its argument prototype would still apply. */
12419 #ifdef F77_DUMMY_MAIN
12420 # ifdef __cplusplus
12423 int F77_DUMMY_MAIN() { return 1; }
12428 /* The GNU C library defines this for functions which it implements
12429 to always fail with ENOSYS. Some functions are actually named
12430 something starting with __ and the normal name is an alias. */
12431 #if defined (__stub_syslog) || defined (__stub___syslog)
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443 (eval $ac_link) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -s conftest$ac_exeext'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_func_syslog=yes
12455 echo "$as_me: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 ac_cv_func_syslog=no
12459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12461 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12462 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12463 if test $ac_cv_func_syslog = yes; then
12464 if test "${ac_cv_header_syslog_h+set}" = set; then
12465 echo "$as_me:$LINENO: checking for syslog.h" >&5
12466 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12467 if test "${ac_cv_header_syslog_h+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12471 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12473 # Is the header compilable?
12474 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12475 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12476 cat >conftest.$ac_ext <<_ACEOF
12477 #line $LINENO "configure"
12478 #include "confdefs.h"
12479 $ac_includes_default
12480 #include <syslog.h>
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_header_compiler=yes
12496 echo "$as_me: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12498 ac_header_compiler=no
12500 rm -f conftest.$ac_objext conftest.$ac_ext
12501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12502 echo "${ECHO_T}$ac_header_compiler" >&6
12504 # Is the header present?
12505 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12506 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12508 #line $LINENO "configure"
12509 #include "confdefs.h"
12510 #include <syslog.h>
12512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12515 egrep -v '^ *\+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } >/dev/null; then
12520 if test -s conftest.err; then
12521 ac_cpp_err=$ac_c_preproc_warn_flag
12528 if test -z "$ac_cpp_err"; then
12529 ac_header_preproc=yes
12531 echo "$as_me: failed program was:" >&5
12532 cat conftest.$ac_ext >&5
12533 ac_header_preproc=no
12535 rm -f conftest.err conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12537 echo "${ECHO_T}$ac_header_preproc" >&6
12539 # So? What about this header?
12540 case $ac_header_compiler:$ac_header_preproc in
12542 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12543 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12545 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12547 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12548 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12550 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12554 echo "$as_me:$LINENO: checking for syslog.h" >&5
12555 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12556 if test "${ac_cv_header_syslog_h+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_cv_header_syslog_h=$ac_header_preproc
12561 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12562 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12565 if test $ac_cv_header_syslog_h = yes; then
12567 cat >>confdefs.h <<\_ACEOF
12568 #define HAVE_SYSLOG 1
12577 echo "$as_me:$LINENO: checking for optreset" >&5
12578 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12579 if test "${pgac_cv_var_int_optreset+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 cat >conftest.$ac_ext <<_ACEOF
12583 #line $LINENO "configure"
12584 #include "confdefs.h"
12585 #include <unistd.h>
12586 #ifdef F77_DUMMY_MAIN
12587 # ifdef __cplusplus
12590 int F77_DUMMY_MAIN() { return 1; }
12595 extern int optreset; optreset = 1;
12600 rm -f conftest.$ac_objext conftest$ac_exeext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12602 (eval $ac_link) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -s conftest$ac_exeext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 pgac_cv_var_int_optreset=yes
12614 echo "$as_me: failed program was:" >&5
12615 cat conftest.$ac_ext >&5
12616 pgac_cv_var_int_optreset=no
12618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12620 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12621 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12622 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12624 cat >>confdefs.h <<\_ACEOF
12625 #define HAVE_INT_OPTRESET 1
12632 for ac_func in strtoll strtoq
12634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12635 echo "$as_me:$LINENO: checking for $ac_func" >&5
12636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12637 if eval "test \"\${$as_ac_var+set}\" = set"; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char $ac_func (); below. */
12645 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error. */
12650 /* We use char because int might match the return type of a gcc2
12651 builtin and then its argument prototype would still apply. */
12655 #ifdef F77_DUMMY_MAIN
12656 # ifdef __cplusplus
12659 int F77_DUMMY_MAIN() { return 1; }
12664 /* The GNU C library defines this for functions which it implements
12665 to always fail with ENOSYS. Some functions are actually named
12666 something starting with __ and the normal name is an alias. */
12667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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 eval "$as_ac_var=yes"
12691 echo "$as_me: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 eval "$as_ac_var=no"
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12699 if test `eval echo '${'$as_ac_var'}'` = yes; then
12700 cat >>confdefs.h <<_ACEOF
12701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12709 for ac_func in strtoull strtouq
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
12785 # Check for one of atexit() or on_exit()
12787 for ac_func in atexit
12789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12790 echo "$as_me:$LINENO: checking for $ac_func" >&5
12791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12792 if eval "test \"\${$as_ac_var+set}\" = set"; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 cat >conftest.$ac_ext <<_ACEOF
12796 #line $LINENO "configure"
12797 #include "confdefs.h"
12798 /* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char $ac_func (); below. */
12800 #include <assert.h>
12801 /* Override any gcc2 internal prototype to avoid an error. */
12805 /* We use char because int might match the return type of a gcc2
12806 builtin and then its argument prototype would still apply. */
12810 #ifdef F77_DUMMY_MAIN
12811 # ifdef __cplusplus
12814 int F77_DUMMY_MAIN() { return 1; }
12819 /* The GNU C library defines this for functions which it implements
12820 to always fail with ENOSYS. Some functions are actually named
12821 something starting with __ and the normal name is an alias. */
12822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12834 (eval $ac_link) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 eval "$as_ac_var=yes"
12846 echo "$as_me: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 eval "$as_ac_var=no"
12850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12854 if test `eval echo '${'$as_ac_var'}'` = yes; then
12855 cat >>confdefs.h <<_ACEOF
12856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12861 for ac_func in on_exit
12863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12864 echo "$as_me:$LINENO: checking for $ac_func" >&5
12865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12866 if eval "test \"\${$as_ac_var+set}\" = set"; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 cat >conftest.$ac_ext <<_ACEOF
12870 #line $LINENO "configure"
12871 #include "confdefs.h"
12872 /* System header to define __stub macros and hopefully few prototypes,
12873 which can conflict with char $ac_func (); below. */
12874 #include <assert.h>
12875 /* Override any gcc2 internal prototype to avoid an error. */
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12884 #ifdef F77_DUMMY_MAIN
12885 # ifdef __cplusplus
12888 int F77_DUMMY_MAIN() { return 1; }
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908 (eval $ac_link) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 eval "$as_ac_var=yes"
12920 echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929 cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12935 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12936 { (exit 1); exit 1; }; }
12944 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12945 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12946 if test "${ac_cv_sys_largefile_source+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_cv_sys_largefile_source=no
12951 cat >conftest.$ac_ext <<_ACEOF
12952 #line $LINENO "configure"
12953 #include "confdefs.h"
12955 #ifdef F77_DUMMY_MAIN
12956 # ifdef __cplusplus
12959 int F77_DUMMY_MAIN() { return 1; }
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12983 echo "$as_me: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12986 rm -f conftest.$ac_objext conftest.$ac_ext
12987 cat >conftest.$ac_ext <<_ACEOF
12988 #line $LINENO "configure"
12989 #include "confdefs.h"
12990 #define _LARGEFILE_SOURCE 1
12992 #ifdef F77_DUMMY_MAIN
12993 # ifdef __cplusplus
12996 int F77_DUMMY_MAIN() { return 1; }
13006 rm -f conftest.$ac_objext
13007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13008 (eval $ac_compile) 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
13012 { ac_try='test -s conftest.$ac_objext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_sys_largefile_source=1; break
13020 echo "$as_me: failed program was:" >&5
13021 cat conftest.$ac_ext >&5
13023 rm -f conftest.$ac_objext conftest.$ac_ext
13027 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13028 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13029 if test "$ac_cv_sys_largefile_source" != no; then
13031 cat >>confdefs.h <<_ACEOF
13032 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13038 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13039 # in glibc 2.1.3, but that breaks too many other things.
13040 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13041 echo "$as_me:$LINENO: checking for fseeko" >&5
13042 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13043 if test "${ac_cv_func_fseeko+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13047 #line $LINENO "configure"
13048 #include "confdefs.h"
13050 #ifdef F77_DUMMY_MAIN
13051 # ifdef __cplusplus
13054 int F77_DUMMY_MAIN() { return 1; }
13059 return fseeko && fseeko (stdin, 0, 0);
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066 (eval $ac_link) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -s conftest$ac_exeext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 ac_cv_func_fseeko=yes
13078 echo "$as_me: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 ac_cv_func_fseeko=no
13082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13084 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13085 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13086 if test $ac_cv_func_fseeko = yes; then
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_FSEEKO 1
13098 # For each platform, we need to know about any special compile and link
13099 # libraries, and whether the normal C function names are thread-safe.
13100 # See the comment at the top of src/port/thread.c for more information.
13102 if test "$enable_thread_safety" = yes; then
13103 if test "${ac_cv_header_pthread_h+set}" = set; then
13104 echo "$as_me:$LINENO: checking for pthread.h" >&5
13105 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13106 if test "${ac_cv_header_pthread_h+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13110 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13112 # Is the header compilable?
13113 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13114 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13115 cat >conftest.$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13117 #include "confdefs.h"
13118 $ac_includes_default
13119 #include <pthread.h>
13121 rm -f conftest.$ac_objext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -s conftest.$ac_objext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_header_compiler=yes
13135 echo "$as_me: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 ac_header_compiler=no
13139 rm -f conftest.$ac_objext conftest.$ac_ext
13140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13141 echo "${ECHO_T}$ac_header_compiler" >&6
13143 # Is the header present?
13144 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13145 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13146 cat >conftest.$ac_ext <<_ACEOF
13147 #line $LINENO "configure"
13148 #include "confdefs.h"
13149 #include <pthread.h>
13151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13154 egrep -v '^ *\+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } >/dev/null; then
13159 if test -s conftest.err; then
13160 ac_cpp_err=$ac_c_preproc_warn_flag
13167 if test -z "$ac_cpp_err"; then
13168 ac_header_preproc=yes
13170 echo "$as_me: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 ac_header_preproc=no
13174 rm -f conftest.err conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176 echo "${ECHO_T}$ac_header_preproc" >&6
13178 # So? What about this header?
13179 case $ac_header_compiler:$ac_header_preproc in
13181 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13182 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13186 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13193 echo "$as_me:$LINENO: checking for pthread.h" >&5
13194 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13195 if test "${ac_cv_header_pthread_h+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 ac_cv_header_pthread_h=$ac_header_preproc
13200 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13201 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13204 if test $ac_cv_header_pthread_h = yes; then
13207 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13208 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13209 { (exit 1); exit 1; }; }
13214 if test "$SUPPORTS_THREADS" != yes; then
13215 { { echo "$as_me:$LINENO: error:
13216 Cannot enable threads on your platform.
13217 Please report your platform threading info to the PostgreSQL mailing lists
13218 so it can be added to the next release. Report all compile flags, link flags,
13219 functions, or libraries required for threading support.
13220 See the comment at the top of src/port/thread.c for more information.
13222 echo "$as_me: error:
13223 Cannot enable threads on your platform.
13224 Please report your platform threading info to the PostgreSQL mailing lists
13225 so it can be added to the next release. Report all compile flags, link flags,
13226 functions, or libraries required for threading support.
13227 See the comment at the top of src/port/thread.c for more information.
13229 { (exit 1); exit 1; }; }
13232 # do not use values from template file
13241 # Check for re-entrant versions of certain functions
13243 # Include special flags if threads are enabled _and_ if required for
13244 # threading on this platform. Some platforms have *_r functions but
13245 # their natively named funcs are threadsafe, and should be used instead.
13247 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13248 # functions are marked "not found", which is perfect.
13250 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13253 CFLAGS="$CFLAGS $THREAD_CFLAGS"
13254 LIBS="$LIBS $THREAD_LIBS"
13255 echo "$as_me:$LINENO: checking for strerror_r" >&5
13256 echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6
13257 if test "${ac_cv_func_strerror_r+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 cat >conftest.$ac_ext <<_ACEOF
13261 #line $LINENO "configure"
13262 #include "confdefs.h"
13263 /* System header to define __stub macros and hopefully few prototypes,
13264 which can conflict with char strerror_r (); below. */
13265 #include <assert.h>
13266 /* Override any gcc2 internal prototype to avoid an error. */
13270 /* We use char because int might match the return type of a gcc2
13271 builtin and then its argument prototype would still apply. */
13272 char strerror_r ();
13275 #ifdef F77_DUMMY_MAIN
13276 # ifdef __cplusplus
13279 int F77_DUMMY_MAIN() { return 1; }
13284 /* The GNU C library defines this for functions which it implements
13285 to always fail with ENOSYS. Some functions are actually named
13286 something starting with __ and the normal name is an alias. */
13287 #if defined (__stub_strerror_r) || defined (__stub___strerror_r)
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -s conftest$ac_exeext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 ac_cv_func_strerror_r=yes
13311 echo "$as_me: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13313 ac_cv_func_strerror_r=no
13315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13317 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5
13318 echo "${ECHO_T}$ac_cv_func_strerror_r" >&6
13319 if test $ac_cv_func_strerror_r = yes; then
13322 { { echo "$as_me:$LINENO: error: strerror_r not found, required on this platform for --enable-thread-safety" >&5
13323 echo "$as_me: error: strerror_r not found, required on this platform for --enable-thread-safety" >&2;}
13324 { (exit 1); exit 1; }; }
13327 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
13328 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
13329 if test "${ac_cv_func_getpwuid_r+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 cat >conftest.$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13334 #include "confdefs.h"
13335 /* System header to define __stub macros and hopefully few prototypes,
13336 which can conflict with char getpwuid_r (); below. */
13337 #include <assert.h>
13338 /* Override any gcc2 internal prototype to avoid an error. */
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13344 char getpwuid_r ();
13347 #ifdef F77_DUMMY_MAIN
13348 # ifdef __cplusplus
13351 int F77_DUMMY_MAIN() { return 1; }
13356 /* The GNU C library defines this for functions which it implements
13357 to always fail with ENOSYS. Some functions are actually named
13358 something starting with __ and the normal name is an alias. */
13359 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -s conftest$ac_exeext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_cv_func_getpwuid_r=yes
13383 echo "$as_me: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 ac_cv_func_getpwuid_r=no
13387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
13390 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
13391 if test $ac_cv_func_getpwuid_r = yes; then
13394 { { echo "$as_me:$LINENO: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&5
13395 echo "$as_me: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&2;}
13396 { (exit 1); exit 1; }; }
13399 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
13400 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
13401 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 #include "confdefs.h"
13407 /* System header to define __stub macros and hopefully few prototypes,
13408 which can conflict with char gethostbyname_r (); below. */
13409 #include <assert.h>
13410 /* Override any gcc2 internal prototype to avoid an error. */
13414 /* We use char because int might match the return type of a gcc2
13415 builtin and then its argument prototype would still apply. */
13416 char gethostbyname_r ();
13419 #ifdef F77_DUMMY_MAIN
13420 # ifdef __cplusplus
13423 int F77_DUMMY_MAIN() { return 1; }
13428 /* The GNU C library defines this for functions which it implements
13429 to always fail with ENOSYS. Some functions are actually named
13430 something starting with __ and the normal name is an alias. */
13431 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
13434 f = gethostbyname_r;
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443 (eval $ac_link) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -s conftest$ac_exeext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 ac_cv_func_gethostbyname_r=yes
13455 echo "$as_me: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 ac_cv_func_gethostbyname_r=no
13459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13461 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
13462 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
13463 if test $ac_cv_func_gethostbyname_r = yes; then
13466 { { echo "$as_me:$LINENO: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&5
13467 echo "$as_me: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&2;}
13468 { (exit 1); exit 1; }; }
13476 # This test makes sure that run tests work at all. Sometimes a shared
13477 # library is found by the linker, but the runtime linker can't find it.
13478 # This check should come after all modifications of compiler or linker
13479 # variables, and before any other run tests.
13480 echo "$as_me:$LINENO: checking test program" >&5
13481 echo $ECHO_N "checking test program... $ECHO_C" >&6
13482 if test "$cross_compiling" = yes; then
13483 echo "$as_me:$LINENO: result: cross-compiling" >&5
13484 echo "${ECHO_T}cross-compiling" >&6
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 int main() { return 0; }
13491 rm -f conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 echo "$as_me:$LINENO: result: ok" >&5
13503 echo "${ECHO_T}ok" >&6
13505 echo "$as_me: program exited with status $ac_status" >&5
13506 echo "$as_me: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 ( exit $ac_status )
13509 echo "$as_me:$LINENO: result: failed" >&5
13510 echo "${ECHO_T}failed" >&6
13511 { { echo "$as_me:$LINENO: error:
13512 *** Could not execute a simple test program. This may be a problem
13513 *** related to locating shared libraries. Check the file 'config.log'
13514 *** for the exact reason." >&5
13515 echo "$as_me: error:
13516 *** Could not execute a simple test program. This may be a problem
13517 *** related to locating shared libraries. Check the file 'config.log'
13518 *** for the exact reason." >&2;}
13519 { (exit 1); exit 1; }; }
13521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13526 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13527 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13528 if test "${pgac_cv_type_long_int_64+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 if test "$cross_compiling" = yes; then
13532 # If cross-compiling, check the size reported by the compiler and
13533 # trust that the arithmetic works.
13534 cat >conftest.$ac_ext <<_ACEOF
13535 #line $LINENO "configure"
13536 #include "confdefs.h"
13538 #ifdef F77_DUMMY_MAIN
13539 # ifdef __cplusplus
13542 int F77_DUMMY_MAIN() { return 1; }
13547 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 pgac_cv_type_long_int_64=yes
13568 echo "$as_me: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 pgac_cv_type_long_int_64=no
13572 rm -f conftest.$ac_objext conftest.$ac_ext
13574 cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 #include "confdefs.h"
13577 typedef long int int64;
13580 * These are globals to discourage the compiler from folding all the
13581 * arithmetic tests down to compile-time constants.
13583 int64 a = 20000001;
13584 int64 b = 40000005;
13586 int does_int64_work()
13590 if (sizeof(int64) != 8)
13591 return 0; /* definitely not the right size */
13593 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13601 exit(! does_int64_work());
13604 rm -f conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606 (eval $ac_link) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 pgac_cv_type_long_int_64=yes
13617 echo "$as_me: program exited with status $ac_status" >&5
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 ( exit $ac_status )
13621 pgac_cv_type_long_int_64=no
13623 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13626 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13627 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13629 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13630 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_LONG_INT_64
13639 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13640 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13641 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13642 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 if test "$cross_compiling" = yes; then
13646 # If cross-compiling, check the size reported by the compiler and
13647 # trust that the arithmetic works.
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13652 #ifdef F77_DUMMY_MAIN
13653 # ifdef __cplusplus
13656 int F77_DUMMY_MAIN() { return 1; }
13661 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 pgac_cv_type_long_long_int_64=yes
13682 echo "$as_me: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 pgac_cv_type_long_long_int_64=no
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13688 cat >conftest.$ac_ext <<_ACEOF
13689 #line $LINENO "configure"
13690 #include "confdefs.h"
13691 typedef long long int int64;
13694 * These are globals to discourage the compiler from folding all the
13695 * arithmetic tests down to compile-time constants.
13697 int64 a = 20000001;
13698 int64 b = 40000005;
13700 int does_int64_work()
13704 if (sizeof(int64) != 8)
13705 return 0; /* definitely not the right size */
13707 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13715 exit(! does_int64_work());
13718 rm -f conftest$ac_exeext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720 (eval $ac_link) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 pgac_cv_type_long_long_int_64=yes
13731 echo "$as_me: program exited with status $ac_status" >&5
13732 echo "$as_me: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 ( exit $ac_status )
13735 pgac_cv_type_long_long_int_64=no
13737 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13740 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13741 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13743 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13744 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13746 cat >>confdefs.h <<\_ACEOF
13747 #define HAVE_LONG_LONG_INT_64
13756 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13757 cat >conftest.$ac_ext <<_ACEOF
13758 #line $LINENO "configure"
13759 #include "confdefs.h"
13761 #define INT64CONST(x) x##LL
13762 long long int foo = INT64CONST(0x1234567890123456);
13764 #ifdef F77_DUMMY_MAIN
13765 # ifdef __cplusplus
13768 int F77_DUMMY_MAIN() { return 1; }
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_LL_CONSTANTS 1
13796 echo "$as_me: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13803 # If we found "long int" is 64 bits, assume snprintf handles it. If
13804 # we found we need to use "long long int", better check. We cope with
13805 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13806 # neither works, fall back to our own snprintf emulation (which we
13809 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13810 if test $pgac_need_repl_snprintf = no; then
13811 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13812 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13813 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 for pgac_format in '%lld' '%qd' '%I64d'; do
13817 if test "$cross_compiling" = yes; then
13818 pgac_cv_snprintf_long_long_int_format=cross; break
13820 cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13822 #include "confdefs.h"
13824 typedef long long int int64;
13825 #define INT64_FORMAT "$pgac_format"
13827 int64 a = 20000001;
13828 int64 b = 40000005;
13830 int does_int64_snprintf_work()
13835 if (sizeof(int64) != 8)
13836 return 0; /* doesn't look like the right size */
13839 snprintf(buf, 100, INT64_FORMAT, c);
13840 if (strcmp(buf, "800000140000005") != 0)
13841 return 0; /* either multiply or snprintf is busted */
13845 exit(! does_int64_snprintf_work());
13848 rm -f conftest$ac_exeext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850 (eval $ac_link) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13861 echo "$as_me: program exited with status $ac_status" >&5
13862 echo "$as_me: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13870 LONG_LONG_INT_FORMAT=''
13872 case $pgac_cv_snprintf_long_long_int_format in
13873 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13874 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13875 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13876 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13877 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13878 *) echo "$as_me:$LINENO: result: none" >&5
13879 echo "${ECHO_T}none" >&6;;
13881 if test "$LONG_LONG_INT_FORMAT" = ""; then
13882 # Force usage of our own snprintf, since system snprintf is broken
13883 pgac_need_repl_snprintf=yes
13884 LONG_LONG_INT_FORMAT='%lld'
13887 # Here if we previously decided we needed to use our own snprintf
13888 LONG_LONG_INT_FORMAT='%lld'
13890 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13892 # Here if we are not using 'long long int' at all
13893 INT64_FORMAT='"%ld"'
13897 cat >>confdefs.h <<_ACEOF
13898 #define INT64_FORMAT $INT64_FORMAT
13902 if test $pgac_need_repl_snprintf = yes; then
13903 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13906 # Need a #define for the size of Datum (unsigned long)
13907 echo "$as_me:$LINENO: checking for unsigned long" >&5
13908 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13909 if test "${ac_cv_type_unsigned_long+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 #include "confdefs.h"
13915 $ac_includes_default
13916 #ifdef F77_DUMMY_MAIN
13917 # ifdef __cplusplus
13920 int F77_DUMMY_MAIN() { return 1; }
13925 if ((unsigned long *) 0)
13927 if (sizeof (unsigned long))
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935 (eval $ac_compile) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -s conftest.$ac_objext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_type_unsigned_long=yes
13947 echo "$as_me: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 ac_cv_type_unsigned_long=no
13951 rm -f conftest.$ac_objext conftest.$ac_ext
13953 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13954 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13956 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13957 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13958 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 if test "$ac_cv_type_unsigned_long" = yes; then
13962 # The cast to unsigned long works around a bug in the HP C Compiler
13963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13965 # This bug is HP SR number 8606223364.
13966 if test "$cross_compiling" = yes; then
13967 # Depending upon the size, compute the lo and hi bounds.
13968 cat >conftest.$ac_ext <<_ACEOF
13969 #line $LINENO "configure"
13970 #include "confdefs.h"
13971 $ac_includes_default
13972 #ifdef F77_DUMMY_MAIN
13973 # ifdef __cplusplus
13976 int F77_DUMMY_MAIN() { return 1; }
13981 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -s conftest.$ac_objext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 #ifdef F77_DUMMY_MAIN
14007 # ifdef __cplusplus
14010 int F77_DUMMY_MAIN() { return 1; }
14015 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -s conftest.$ac_objext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_hi=$ac_mid; break
14036 echo "$as_me: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 ac_lo=`expr $ac_mid + 1`
14039 if test $ac_lo -le $ac_mid; then
14043 ac_mid=`expr 2 '*' $ac_mid + 1`
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14048 echo "$as_me: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14050 cat >conftest.$ac_ext <<_ACEOF
14051 #line $LINENO "configure"
14052 #include "confdefs.h"
14053 $ac_includes_default
14054 #ifdef F77_DUMMY_MAIN
14055 # ifdef __cplusplus
14058 int F77_DUMMY_MAIN() { return 1; }
14063 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14084 cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 #include "confdefs.h"
14087 $ac_includes_default
14088 #ifdef F77_DUMMY_MAIN
14089 # ifdef __cplusplus
14092 int F77_DUMMY_MAIN() { return 1; }
14097 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14104 rm -f conftest.$ac_objext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14106 (eval $ac_compile) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_lo=$ac_mid; break
14118 echo "$as_me: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14120 ac_hi=`expr '(' $ac_mid ')' - 1`
14121 if test $ac_mid -le $ac_hi; then
14125 ac_mid=`expr 2 '*' $ac_mid`
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14130 echo "$as_me: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14134 rm -f conftest.$ac_objext conftest.$ac_ext
14136 rm -f conftest.$ac_objext conftest.$ac_ext
14137 # Binary search between lo and hi bounds.
14138 while test "x$ac_lo" != "x$ac_hi"; do
14139 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14140 cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 #include "confdefs.h"
14143 $ac_includes_default
14144 #ifdef F77_DUMMY_MAIN
14145 # ifdef __cplusplus
14148 int F77_DUMMY_MAIN() { return 1; }
14153 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -s conftest.$ac_objext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14174 echo "$as_me: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14176 ac_lo=`expr '(' $ac_mid ')' + 1`
14178 rm -f conftest.$ac_objext conftest.$ac_ext
14181 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14183 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14184 { (exit 1); exit 1; }; } ;;
14187 if test "$cross_compiling" = yes; then
14188 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14189 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14190 { (exit 1); exit 1; }; }
14192 cat >conftest.$ac_ext <<_ACEOF
14193 #line $LINENO "configure"
14194 #include "confdefs.h"
14195 $ac_includes_default
14196 long longval () { return (long) (sizeof (unsigned long)); }
14197 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14199 #include <stdlib.h>
14200 #ifdef F77_DUMMY_MAIN
14201 # ifdef __cplusplus
14204 int F77_DUMMY_MAIN() { return 1; }
14210 FILE *f = fopen ("conftest.val", "w");
14213 if (((long) (sizeof (unsigned long))) < 0)
14215 long i = longval ();
14216 if (i != ((long) (sizeof (unsigned long))))
14218 fprintf (f, "%ld\n", i);
14222 unsigned long i = ulongval ();
14223 if (i != ((long) (sizeof (unsigned long))))
14225 fprintf (f, "%lu\n", i);
14227 exit (ferror (f) || fclose (f) != 0);
14233 rm -f conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235 (eval $ac_link) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14246 echo "$as_me: program exited with status $ac_status" >&5
14247 echo "$as_me: failed program was:" >&5
14248 cat conftest.$ac_ext >&5
14249 ( exit $ac_status )
14250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14251 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14252 { (exit 1); exit 1; }; }
14254 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14259 ac_cv_sizeof_unsigned_long=0
14262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14263 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14264 cat >>confdefs.h <<_ACEOF
14265 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14270 # Determine memory alignment requirements for the basic C data types.
14272 echo "$as_me:$LINENO: checking for short" >&5
14273 echo $ECHO_N "checking for short... $ECHO_C" >&6
14274 if test "${ac_cv_type_short+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14280 $ac_includes_default
14281 #ifdef F77_DUMMY_MAIN
14282 # ifdef __cplusplus
14285 int F77_DUMMY_MAIN() { return 1; }
14292 if (sizeof (short))
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_type_short=yes
14312 echo "$as_me: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 ac_cv_type_short=no
14316 rm -f conftest.$ac_objext conftest.$ac_ext
14318 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14319 echo "${ECHO_T}$ac_cv_type_short" >&6
14321 echo "$as_me:$LINENO: checking alignment of short" >&5
14322 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14323 if test "${pgac_cv_alignof_short+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 if test "$ac_cv_type_short" = yes; then
14327 if test "$cross_compiling" = yes; then
14328 # Depending upon the size, compute the lo and hi bounds.
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; short field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 # ifdef __cplusplus
14338 int F77_DUMMY_MAIN() { return 1; }
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352 (eval $ac_compile) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; short field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 # ifdef __cplusplus
14373 int F77_DUMMY_MAIN() { return 1; }
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_hi=$ac_mid; break
14399 echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_lo=`expr $ac_mid + 1`
14402 if test $ac_lo -le $ac_mid; then
14406 ac_mid=`expr 2 '*' $ac_mid + 1`
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 #include "confdefs.h"
14416 $ac_includes_default
14417 struct { char filler; short field; } pgac_struct;
14418 #ifdef F77_DUMMY_MAIN
14419 # ifdef __cplusplus
14422 int F77_DUMMY_MAIN() { return 1; }
14427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -s conftest.$ac_objext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 struct { char filler; short field; } pgac_struct;
14453 #ifdef F77_DUMMY_MAIN
14454 # ifdef __cplusplus
14457 int F77_DUMMY_MAIN() { return 1; }
14462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_lo=$ac_mid; break
14483 echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 ac_hi=`expr '(' $ac_mid ')' - 1`
14486 if test $ac_mid -le $ac_hi; then
14490 ac_mid=`expr 2 '*' $ac_mid`
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14495 echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14501 rm -f conftest.$ac_objext conftest.$ac_ext
14502 # Binary search between lo and hi bounds.
14503 while test "x$ac_lo" != "x$ac_hi"; do
14504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14505 cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14508 $ac_includes_default
14509 struct { char filler; short field; } pgac_struct;
14510 #ifdef F77_DUMMY_MAIN
14511 # ifdef __cplusplus
14514 int F77_DUMMY_MAIN() { return 1; }
14519 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14540 echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14547 ?*) pgac_cv_alignof_short=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14549 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14550 { (exit 1); exit 1; }; } ;;
14553 if test "$cross_compiling" = yes; then
14554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14555 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14556 { (exit 1); exit 1; }; }
14558 cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 struct { char filler; short field; } pgac_struct;
14563 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14564 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14566 #include <stdlib.h>
14567 #ifdef F77_DUMMY_MAIN
14568 # ifdef __cplusplus
14571 int F77_DUMMY_MAIN() { return 1; }
14577 FILE *f = fopen ("conftest.val", "w");
14580 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14582 long i = longval ();
14583 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14585 fprintf (f, "%ld\n", i);
14589 unsigned long i = ulongval ();
14590 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14592 fprintf (f, "%lu\n", i);
14594 exit (ferror (f) || fclose (f) != 0);
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 pgac_cv_alignof_short=`cat conftest.val`
14613 echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ( exit $ac_status )
14617 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14618 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14619 { (exit 1); exit 1; }; }
14621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14626 pgac_cv_alignof_short=0
14629 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14630 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14631 cat >>confdefs.h <<_ACEOF
14632 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14636 echo "$as_me:$LINENO: checking for int" >&5
14637 echo $ECHO_N "checking for int... $ECHO_C" >&6
14638 if test "${ac_cv_type_int+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 cat >conftest.$ac_ext <<_ACEOF
14642 #line $LINENO "configure"
14643 #include "confdefs.h"
14644 $ac_includes_default
14645 #ifdef F77_DUMMY_MAIN
14646 # ifdef __cplusplus
14649 int F77_DUMMY_MAIN() { return 1; }
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14676 echo "$as_me: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14680 rm -f conftest.$ac_objext conftest.$ac_ext
14682 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14683 echo "${ECHO_T}$ac_cv_type_int" >&6
14685 echo "$as_me:$LINENO: checking alignment of int" >&5
14686 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14687 if test "${pgac_cv_alignof_int+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 if test "$ac_cv_type_int" = yes; then
14691 if test "$cross_compiling" = yes; then
14692 # Depending upon the size, compute the lo and hi bounds.
14693 cat >conftest.$ac_ext <<_ACEOF
14694 #line $LINENO "configure"
14695 #include "confdefs.h"
14696 $ac_includes_default
14697 struct { char filler; int field; } pgac_struct;
14698 #ifdef F77_DUMMY_MAIN
14699 # ifdef __cplusplus
14702 int F77_DUMMY_MAIN() { return 1; }
14707 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14728 cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 #include "confdefs.h"
14731 $ac_includes_default
14732 struct { char filler; int field; } pgac_struct;
14733 #ifdef F77_DUMMY_MAIN
14734 # ifdef __cplusplus
14737 int F77_DUMMY_MAIN() { return 1; }
14742 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751 (eval $ac_compile) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_hi=$ac_mid; break
14763 echo "$as_me: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14765 ac_lo=`expr $ac_mid + 1`
14766 if test $ac_lo -le $ac_mid; then
14770 ac_mid=`expr 2 '*' $ac_mid + 1`
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14775 echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 cat >conftest.$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14779 #include "confdefs.h"
14780 $ac_includes_default
14781 struct { char filler; int field; } pgac_struct;
14782 #ifdef F77_DUMMY_MAIN
14783 # ifdef __cplusplus
14786 int F77_DUMMY_MAIN() { return 1; }
14791 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14812 cat >conftest.$ac_ext <<_ACEOF
14813 #line $LINENO "configure"
14814 #include "confdefs.h"
14815 $ac_includes_default
14816 struct { char filler; int field; } pgac_struct;
14817 #ifdef F77_DUMMY_MAIN
14818 # ifdef __cplusplus
14821 int F77_DUMMY_MAIN() { return 1; }
14826 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 (eval $ac_compile) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_lo=$ac_mid; break
14847 echo "$as_me: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 ac_hi=`expr '(' $ac_mid ')' - 1`
14850 if test $ac_mid -le $ac_hi; then
14854 ac_mid=`expr 2 '*' $ac_mid`
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14859 echo "$as_me: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14863 rm -f conftest.$ac_objext conftest.$ac_ext
14865 rm -f conftest.$ac_objext conftest.$ac_ext
14866 # Binary search between lo and hi bounds.
14867 while test "x$ac_lo" != "x$ac_hi"; do
14868 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14869 cat >conftest.$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14872 $ac_includes_default
14873 struct { char filler; int field; } pgac_struct;
14874 #ifdef F77_DUMMY_MAIN
14875 # ifdef __cplusplus
14878 int F77_DUMMY_MAIN() { return 1; }
14883 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14904 echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_lo=`expr '(' $ac_mid ')' + 1`
14908 rm -f conftest.$ac_objext conftest.$ac_ext
14911 ?*) pgac_cv_alignof_int=$ac_lo;;
14912 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14913 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14914 { (exit 1); exit 1; }; } ;;
14917 if test "$cross_compiling" = yes; then
14918 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14919 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14920 { (exit 1); exit 1; }; }
14922 cat >conftest.$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14924 #include "confdefs.h"
14925 $ac_includes_default
14926 struct { char filler; int field; } pgac_struct;
14927 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14928 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14930 #include <stdlib.h>
14931 #ifdef F77_DUMMY_MAIN
14932 # ifdef __cplusplus
14935 int F77_DUMMY_MAIN() { return 1; }
14941 FILE *f = fopen ("conftest.val", "w");
14944 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14946 long i = longval ();
14947 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14949 fprintf (f, "%ld\n", i);
14953 unsigned long i = ulongval ();
14954 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14956 fprintf (f, "%lu\n", i);
14958 exit (ferror (f) || fclose (f) != 0);
14964 rm -f conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 pgac_cv_alignof_int=`cat conftest.val`
14977 echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14980 ( exit $ac_status )
14981 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14982 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14983 { (exit 1); exit 1; }; }
14985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14990 pgac_cv_alignof_int=0
14993 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14994 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14995 cat >>confdefs.h <<_ACEOF
14996 #define ALIGNOF_INT $pgac_cv_alignof_int
15000 echo "$as_me:$LINENO: checking for long" >&5
15001 echo $ECHO_N "checking for long... $ECHO_C" >&6
15002 if test "${ac_cv_type_long+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15008 $ac_includes_default
15009 #ifdef F77_DUMMY_MAIN
15010 # ifdef __cplusplus
15013 int F77_DUMMY_MAIN() { return 1; }
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_type_long=yes
15040 echo "$as_me: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15044 rm -f conftest.$ac_objext conftest.$ac_ext
15046 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15047 echo "${ECHO_T}$ac_cv_type_long" >&6
15049 echo "$as_me:$LINENO: checking alignment of long" >&5
15050 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15051 if test "${pgac_cv_alignof_long+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 if test "$ac_cv_type_long" = yes; then
15055 if test "$cross_compiling" = yes; then
15056 # Depending upon the size, compute the lo and hi bounds.
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 #include "confdefs.h"
15060 $ac_includes_default
15061 struct { char filler; long field; } pgac_struct;
15062 #ifdef F77_DUMMY_MAIN
15063 # ifdef __cplusplus
15066 int F77_DUMMY_MAIN() { return 1; }
15071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15078 rm -f conftest.$ac_objext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080 (eval $ac_compile) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -s conftest.$ac_objext'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15092 cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 #include "confdefs.h"
15095 $ac_includes_default
15096 struct { char filler; long field; } pgac_struct;
15097 #ifdef F77_DUMMY_MAIN
15098 # ifdef __cplusplus
15101 int F77_DUMMY_MAIN() { return 1; }
15106 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115 (eval $ac_compile) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -s conftest.$ac_objext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 ac_hi=$ac_mid; break
15127 echo "$as_me: failed program was:" >&5
15128 cat conftest.$ac_ext >&5
15129 ac_lo=`expr $ac_mid + 1`
15130 if test $ac_lo -le $ac_mid; then
15134 ac_mid=`expr 2 '*' $ac_mid + 1`
15136 rm -f conftest.$ac_objext conftest.$ac_ext
15139 echo "$as_me: failed program was:" >&5
15140 cat conftest.$ac_ext >&5
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line $LINENO "configure"
15143 #include "confdefs.h"
15144 $ac_includes_default
15145 struct { char filler; long field; } pgac_struct;
15146 #ifdef F77_DUMMY_MAIN
15147 # ifdef __cplusplus
15150 int F77_DUMMY_MAIN() { return 1; }
15155 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15162 rm -f conftest.$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 (eval $ac_compile) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15176 cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15178 #include "confdefs.h"
15179 $ac_includes_default
15180 struct { char filler; long field; } pgac_struct;
15181 #ifdef F77_DUMMY_MAIN
15182 # ifdef __cplusplus
15185 int F77_DUMMY_MAIN() { return 1; }
15190 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } &&
15203 { ac_try='test -s conftest.$ac_objext'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
15209 ac_lo=$ac_mid; break
15211 echo "$as_me: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 ac_hi=`expr '(' $ac_mid ')' - 1`
15214 if test $ac_mid -le $ac_hi; then
15218 ac_mid=`expr 2 '*' $ac_mid`
15220 rm -f conftest.$ac_objext conftest.$ac_ext
15223 echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15227 rm -f conftest.$ac_objext conftest.$ac_ext
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15230 # Binary search between lo and hi bounds.
15231 while test "x$ac_lo" != "x$ac_hi"; do
15232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15233 cat >conftest.$ac_ext <<_ACEOF
15234 #line $LINENO "configure"
15235 #include "confdefs.h"
15236 $ac_includes_default
15237 struct { char filler; long field; } pgac_struct;
15238 #ifdef F77_DUMMY_MAIN
15239 # ifdef __cplusplus
15242 int F77_DUMMY_MAIN() { return 1; }
15247 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15268 echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 ac_lo=`expr '(' $ac_mid ')' + 1`
15272 rm -f conftest.$ac_objext conftest.$ac_ext
15275 ?*) pgac_cv_alignof_long=$ac_lo;;
15276 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15277 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15278 { (exit 1); exit 1; }; } ;;
15281 if test "$cross_compiling" = yes; then
15282 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15283 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15284 { (exit 1); exit 1; }; }
15286 cat >conftest.$ac_ext <<_ACEOF
15287 #line $LINENO "configure"
15288 #include "confdefs.h"
15289 $ac_includes_default
15290 struct { char filler; long field; } pgac_struct;
15291 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15292 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15294 #include <stdlib.h>
15295 #ifdef F77_DUMMY_MAIN
15296 # ifdef __cplusplus
15299 int F77_DUMMY_MAIN() { return 1; }
15305 FILE *f = fopen ("conftest.val", "w");
15308 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15310 long i = longval ();
15311 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15313 fprintf (f, "%ld\n", i);
15317 unsigned long i = ulongval ();
15318 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15320 fprintf (f, "%lu\n", i);
15322 exit (ferror (f) || fclose (f) != 0);
15328 rm -f conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330 (eval $ac_link) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 pgac_cv_alignof_long=`cat conftest.val`
15341 echo "$as_me: program exited with status $ac_status" >&5
15342 echo "$as_me: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 ( exit $ac_status )
15345 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15346 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15347 { (exit 1); exit 1; }; }
15349 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15354 pgac_cv_alignof_long=0
15357 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15358 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15359 cat >>confdefs.h <<_ACEOF
15360 #define ALIGNOF_LONG $pgac_cv_alignof_long
15364 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15365 echo "$as_me:$LINENO: checking for long long int" >&5
15366 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15367 if test "${ac_cv_type_long_long_int+set}" = set; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15373 $ac_includes_default
15374 #ifdef F77_DUMMY_MAIN
15375 # ifdef __cplusplus
15378 int F77_DUMMY_MAIN() { return 1; }
15383 if ((long long int *) 0)
15385 if (sizeof (long long int))
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_cv_type_long_long_int=yes
15405 echo "$as_me: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 ac_cv_type_long_long_int=no
15409 rm -f conftest.$ac_objext conftest.$ac_ext
15411 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15412 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15414 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15415 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15416 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 if test "$ac_cv_type_long_long_int" = yes; then
15420 if test "$cross_compiling" = yes; then
15421 # Depending upon the size, compute the lo and hi bounds.
15422 cat >conftest.$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15424 #include "confdefs.h"
15425 $ac_includes_default
15426 struct { char filler; long long int field; } pgac_struct;
15427 #ifdef F77_DUMMY_MAIN
15428 # ifdef __cplusplus
15431 int F77_DUMMY_MAIN() { return 1; }
15436 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15443 rm -f conftest.$ac_objext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15445 (eval $ac_compile) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -s conftest.$ac_objext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 #include "confdefs.h"
15460 $ac_includes_default
15461 struct { char filler; long long int field; } pgac_struct;
15462 #ifdef F77_DUMMY_MAIN
15463 # ifdef __cplusplus
15466 int F77_DUMMY_MAIN() { return 1; }
15471 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480 (eval $ac_compile) 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -s conftest.$ac_objext'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; }; then
15490 ac_hi=$ac_mid; break
15492 echo "$as_me: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 ac_lo=`expr $ac_mid + 1`
15495 if test $ac_lo -le $ac_mid; then
15499 ac_mid=`expr 2 '*' $ac_mid + 1`
15501 rm -f conftest.$ac_objext conftest.$ac_ext
15504 echo "$as_me: failed program was:" >&5
15505 cat conftest.$ac_ext >&5
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15508 #include "confdefs.h"
15509 $ac_includes_default
15510 struct { char filler; long long int field; } pgac_struct;
15511 #ifdef F77_DUMMY_MAIN
15512 # ifdef __cplusplus
15515 int F77_DUMMY_MAIN() { return 1; }
15520 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529 (eval $ac_compile) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -s conftest.$ac_objext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 $ac_includes_default
15545 struct { char filler; long long int field; } pgac_struct;
15546 #ifdef F77_DUMMY_MAIN
15547 # ifdef __cplusplus
15550 int F77_DUMMY_MAIN() { return 1; }
15555 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } &&
15568 { ac_try='test -s conftest.$ac_objext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_lo=$ac_mid; break
15576 echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 ac_hi=`expr '(' $ac_mid ')' - 1`
15579 if test $ac_mid -le $ac_hi; then
15583 ac_mid=`expr 2 '*' $ac_mid`
15585 rm -f conftest.$ac_objext conftest.$ac_ext
15588 echo "$as_me: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15592 rm -f conftest.$ac_objext conftest.$ac_ext
15594 rm -f conftest.$ac_objext conftest.$ac_ext
15595 # Binary search between lo and hi bounds.
15596 while test "x$ac_lo" != "x$ac_hi"; do
15597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15598 cat >conftest.$ac_ext <<_ACEOF
15599 #line $LINENO "configure"
15600 #include "confdefs.h"
15601 $ac_includes_default
15602 struct { char filler; long long int field; } pgac_struct;
15603 #ifdef F77_DUMMY_MAIN
15604 # ifdef __cplusplus
15607 int F77_DUMMY_MAIN() { return 1; }
15612 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621 (eval $ac_compile) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -s conftest.$ac_objext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15633 echo "$as_me: failed program was:" >&5
15634 cat conftest.$ac_ext >&5
15635 ac_lo=`expr '(' $ac_mid ')' + 1`
15637 rm -f conftest.$ac_objext conftest.$ac_ext
15640 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15641 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15642 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15643 { (exit 1); exit 1; }; } ;;
15646 if test "$cross_compiling" = yes; then
15647 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15648 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15649 { (exit 1); exit 1; }; }
15651 cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15653 #include "confdefs.h"
15654 $ac_includes_default
15655 struct { char filler; long long int field; } pgac_struct;
15656 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15657 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15659 #include <stdlib.h>
15660 #ifdef F77_DUMMY_MAIN
15661 # ifdef __cplusplus
15664 int F77_DUMMY_MAIN() { return 1; }
15670 FILE *f = fopen ("conftest.val", "w");
15673 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15675 long i = longval ();
15676 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15678 fprintf (f, "%ld\n", i);
15682 unsigned long i = ulongval ();
15683 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15685 fprintf (f, "%lu\n", i);
15687 exit (ferror (f) || fclose (f) != 0);
15693 rm -f conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 pgac_cv_alignof_long_long_int=`cat conftest.val`
15706 echo "$as_me: program exited with status $ac_status" >&5
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 ( exit $ac_status )
15710 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15711 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15712 { (exit 1); exit 1; }; }
15714 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15719 pgac_cv_alignof_long_long_int=0
15722 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15723 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15724 cat >>confdefs.h <<_ACEOF
15725 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15730 echo "$as_me:$LINENO: checking for double" >&5
15731 echo $ECHO_N "checking for double... $ECHO_C" >&6
15732 if test "${ac_cv_type_double+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 #include "confdefs.h"
15738 $ac_includes_default
15739 #ifdef F77_DUMMY_MAIN
15740 # ifdef __cplusplus
15743 int F77_DUMMY_MAIN() { return 1; }
15750 if (sizeof (double))
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -s conftest.$ac_objext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 ac_cv_type_double=yes
15770 echo "$as_me: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 ac_cv_type_double=no
15774 rm -f conftest.$ac_objext conftest.$ac_ext
15776 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15777 echo "${ECHO_T}$ac_cv_type_double" >&6
15779 echo "$as_me:$LINENO: checking alignment of double" >&5
15780 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15781 if test "${pgac_cv_alignof_double+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 if test "$ac_cv_type_double" = yes; then
15785 if test "$cross_compiling" = yes; then
15786 # Depending upon the size, compute the lo and hi bounds.
15787 cat >conftest.$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15789 #include "confdefs.h"
15790 $ac_includes_default
15791 struct { char filler; double field; } pgac_struct;
15792 #ifdef F77_DUMMY_MAIN
15793 # ifdef __cplusplus
15796 int F77_DUMMY_MAIN() { return 1; }
15801 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15808 rm -f conftest.$ac_objext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810 (eval $ac_compile) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15822 cat >conftest.$ac_ext <<_ACEOF
15823 #line $LINENO "configure"
15824 #include "confdefs.h"
15825 $ac_includes_default
15826 struct { char filler; double field; } pgac_struct;
15827 #ifdef F77_DUMMY_MAIN
15828 # ifdef __cplusplus
15831 int F77_DUMMY_MAIN() { return 1; }
15836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_hi=$ac_mid; break
15857 echo "$as_me: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15859 ac_lo=`expr $ac_mid + 1`
15860 if test $ac_lo -le $ac_mid; then
15864 ac_mid=`expr 2 '*' $ac_mid + 1`
15866 rm -f conftest.$ac_objext conftest.$ac_ext
15869 echo "$as_me: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15871 cat >conftest.$ac_ext <<_ACEOF
15872 #line $LINENO "configure"
15873 #include "confdefs.h"
15874 $ac_includes_default
15875 struct { char filler; double field; } pgac_struct;
15876 #ifdef F77_DUMMY_MAIN
15877 # ifdef __cplusplus
15880 int F77_DUMMY_MAIN() { return 1; }
15885 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
15898 { ac_try='test -s conftest.$ac_objext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15906 cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 #include "confdefs.h"
15909 $ac_includes_default
15910 struct { char filler; double field; } pgac_struct;
15911 #ifdef F77_DUMMY_MAIN
15912 # ifdef __cplusplus
15915 int F77_DUMMY_MAIN() { return 1; }
15920 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929 (eval $ac_compile) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -s conftest.$ac_objext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_lo=$ac_mid; break
15941 echo "$as_me: failed program was:" >&5
15942 cat conftest.$ac_ext >&5
15943 ac_hi=`expr '(' $ac_mid ')' - 1`
15944 if test $ac_mid -le $ac_hi; then
15948 ac_mid=`expr 2 '*' $ac_mid`
15950 rm -f conftest.$ac_objext conftest.$ac_ext
15953 echo "$as_me: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15957 rm -f conftest.$ac_objext conftest.$ac_ext
15959 rm -f conftest.$ac_objext conftest.$ac_ext
15960 # Binary search between lo and hi bounds.
15961 while test "x$ac_lo" != "x$ac_hi"; do
15962 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15963 cat >conftest.$ac_ext <<_ACEOF
15964 #line $LINENO "configure"
15965 #include "confdefs.h"
15966 $ac_includes_default
15967 struct { char filler; double field; } pgac_struct;
15968 #ifdef F77_DUMMY_MAIN
15969 # ifdef __cplusplus
15972 int F77_DUMMY_MAIN() { return 1; }
15977 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986 (eval $ac_compile) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -s conftest.$ac_objext'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15998 echo "$as_me: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 ac_lo=`expr '(' $ac_mid ')' + 1`
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16005 ?*) pgac_cv_alignof_double=$ac_lo;;
16006 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16007 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16008 { (exit 1); exit 1; }; } ;;
16011 if test "$cross_compiling" = yes; then
16012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16013 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16014 { (exit 1); exit 1; }; }
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 $ac_includes_default
16020 struct { char filler; double field; } pgac_struct;
16021 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16022 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16024 #include <stdlib.h>
16025 #ifdef F77_DUMMY_MAIN
16026 # ifdef __cplusplus
16029 int F77_DUMMY_MAIN() { return 1; }
16035 FILE *f = fopen ("conftest.val", "w");
16038 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16040 long i = longval ();
16041 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16043 fprintf (f, "%ld\n", i);
16047 unsigned long i = ulongval ();
16048 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16050 fprintf (f, "%lu\n", i);
16052 exit (ferror (f) || fclose (f) != 0);
16058 rm -f conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 pgac_cv_alignof_double=`cat conftest.val`
16071 echo "$as_me: program exited with status $ac_status" >&5
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 ( exit $ac_status )
16075 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16076 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16077 { (exit 1); exit 1; }; }
16079 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16084 pgac_cv_alignof_double=0
16087 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16088 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16089 cat >>confdefs.h <<_ACEOF
16090 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16095 # Compute maximum alignment of any basic type.
16096 # We assume long's alignment is at least as strong as char, short, or int;
16097 # but we must check long long (if it exists) and double.
16099 MAX_ALIGNOF=$pgac_cv_alignof_long
16100 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16101 MAX_ALIGNOF=$pgac_cv_alignof_double
16103 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16104 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16107 cat >>confdefs.h <<_ACEOF
16108 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16113 # Some platforms predefine the types int8, int16, etc. Only check
16114 # a (hopefully) representative subset.
16115 echo "$as_me:$LINENO: checking for int8" >&5
16116 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16117 if test "${ac_cv_type_int8+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; }
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_int8=yes
16159 echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16166 echo "${ECHO_T}$ac_cv_type_int8" >&6
16167 if test $ac_cv_type_int8 = yes; then
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_INT8 1
16175 echo "$as_me:$LINENO: checking for uint8" >&5
16176 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16177 if test "${ac_cv_type_uint8+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 (uint8))
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_uint8=yes
16219 echo "$as_me: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 ac_cv_type_uint8=no
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16225 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16226 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16227 if test $ac_cv_type_uint8 = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_UINT8 1
16235 echo "$as_me:$LINENO: checking for int64" >&5
16236 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16237 if test "${ac_cv_type_int64+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 (int64))
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_int64=yes
16279 echo "$as_me: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 ac_cv_type_int64=no
16283 rm -f conftest.$ac_objext conftest.$ac_ext
16285 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16286 echo "${ECHO_T}$ac_cv_type_int64" >&6
16287 if test $ac_cv_type_int64 = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_INT64 1
16295 echo "$as_me:$LINENO: checking for uint64" >&5
16296 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16297 if test "${ac_cv_type_uint64+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 cat >conftest.$ac_ext <<_ACEOF
16301 #line $LINENO "configure"
16302 #include "confdefs.h"
16304 #ifdef HAVE_SUPPORTDEFS_H
16305 #include <SupportDefs.h>
16308 #ifdef F77_DUMMY_MAIN
16309 # ifdef __cplusplus
16312 int F77_DUMMY_MAIN() { return 1; }
16319 if (sizeof (uint64))
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327 (eval $ac_compile) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -s conftest.$ac_objext'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_type_uint64=yes
16339 echo "$as_me: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16341 ac_cv_type_uint64=no
16343 rm -f conftest.$ac_objext conftest.$ac_ext
16345 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16346 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16347 if test $ac_cv_type_uint64 = yes; then
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_UINT64 1
16357 # We also check for sig_atomic_t, which *should* be defined per ANSI
16358 # C, but is missing on some old platforms.
16359 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16360 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16361 if test "${ac_cv_type_sig_atomic_t+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 if ((sig_atomic_t *) 0)
16380 if (sizeof (sig_atomic_t))
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388 (eval $ac_compile) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_type_sig_atomic_t=yes
16400 echo "$as_me: failed program was:" >&5
16401 cat conftest.$ac_ext >&5
16402 ac_cv_type_sig_atomic_t=no
16404 rm -f conftest.$ac_objext conftest.$ac_ext
16406 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16407 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16408 if test $ac_cv_type_sig_atomic_t = yes; then
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_SIG_ATOMIC_T 1
16419 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16420 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16421 if test "${pgac_cv_func_posix_signals+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 cat >conftest.$ac_ext <<_ACEOF
16425 #line $LINENO "configure"
16426 #include "confdefs.h"
16427 #include <signal.h>
16429 #ifdef F77_DUMMY_MAIN
16430 # ifdef __cplusplus
16433 int F77_DUMMY_MAIN() { return 1; }
16438 struct sigaction act, oact;
16439 sigemptyset(&act.sa_mask);
16440 act.sa_flags = SA_RESTART;
16441 sigaction(0, &act, &oact);
16446 rm -f conftest.$ac_objext conftest$ac_exeext
16447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16448 (eval $ac_link) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 pgac_cv_func_posix_signals=yes
16460 echo "$as_me: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16462 pgac_cv_func_posix_signals=no
16464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16466 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16467 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16468 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_POSIX_SIGNALS
16475 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16477 if test $ac_cv_func_fseeko = yes; then
16478 # Check whether --enable-largefile or --disable-largefile was given.
16479 if test "${enable_largefile+set}" = set; then
16480 enableval="$enable_largefile"
16483 if test "$enable_largefile" != no; then
16485 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16486 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16487 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 ac_cv_sys_largefile_CC=no
16491 if test "$GCC" != yes; then
16494 # IRIX 6.2 and later do not support large files by default,
16495 # so use the C compiler's -n32 option if that helps.
16496 cat >conftest.$ac_ext <<_ACEOF
16497 #line $LINENO "configure"
16498 #include "confdefs.h"
16499 #include <sys/types.h>
16500 /* Check that off_t can represent 2**63 - 1 correctly.
16501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16502 since some C++ compilers masquerading as C compilers
16503 incorrectly reject 9223372036854775807. */
16504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16506 && LARGE_OFF_T % 2147483647 == 1)
16508 #ifdef F77_DUMMY_MAIN
16509 # ifdef __cplusplus
16512 int F77_DUMMY_MAIN() { return 1; }
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16536 echo "$as_me: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16539 rm -f conftest.$ac_objext
16541 rm -f conftest.$ac_objext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543 (eval $ac_compile) 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try='test -s conftest.$ac_objext'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_sys_largefile_CC=' -n32'; break
16555 echo "$as_me: failed program was:" >&5
16556 cat conftest.$ac_ext >&5
16558 rm -f conftest.$ac_objext
16562 rm -f conftest.$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16566 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16567 if test "$ac_cv_sys_largefile_CC" != no; then
16568 CC=$CC$ac_cv_sys_largefile_CC
16571 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16572 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 ac_cv_sys_file_offset_bits=no
16578 cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 #include "confdefs.h"
16581 #include <sys/types.h>
16582 /* Check that off_t can represent 2**63 - 1 correctly.
16583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16584 since some C++ compilers masquerading as C compilers
16585 incorrectly reject 9223372036854775807. */
16586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16588 && LARGE_OFF_T % 2147483647 == 1)
16590 #ifdef F77_DUMMY_MAIN
16591 # ifdef __cplusplus
16594 int F77_DUMMY_MAIN() { return 1; }
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606 (eval $ac_compile) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -s conftest.$ac_objext'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16618 echo "$as_me: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16621 rm -f conftest.$ac_objext conftest.$ac_ext
16622 cat >conftest.$ac_ext <<_ACEOF
16623 #line $LINENO "configure"
16624 #include "confdefs.h"
16625 #define _FILE_OFFSET_BITS 64
16626 #include <sys/types.h>
16627 /* Check that off_t can represent 2**63 - 1 correctly.
16628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16629 since some C++ compilers masquerading as C compilers
16630 incorrectly reject 9223372036854775807. */
16631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16633 && LARGE_OFF_T % 2147483647 == 1)
16635 #ifdef F77_DUMMY_MAIN
16636 # ifdef __cplusplus
16639 int F77_DUMMY_MAIN() { return 1; }
16649 rm -f conftest.$ac_objext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_cv_sys_file_offset_bits=64; break
16663 echo "$as_me: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16666 rm -f conftest.$ac_objext conftest.$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16671 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16672 if test "$ac_cv_sys_file_offset_bits" != no; then
16674 cat >>confdefs.h <<_ACEOF
16675 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16680 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16681 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16682 if test "${ac_cv_sys_large_files+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 ac_cv_sys_large_files=no
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16689 #include "confdefs.h"
16690 #include <sys/types.h>
16691 /* Check that off_t can represent 2**63 - 1 correctly.
16692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16693 since some C++ compilers masquerading as C compilers
16694 incorrectly reject 9223372036854775807. */
16695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16697 && LARGE_OFF_T % 2147483647 == 1)
16699 #ifdef F77_DUMMY_MAIN
16700 # ifdef __cplusplus
16703 int F77_DUMMY_MAIN() { return 1; }
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16727 echo "$as_me: failed program was:" >&5
16728 cat conftest.$ac_ext >&5
16730 rm -f conftest.$ac_objext conftest.$ac_ext
16731 cat >conftest.$ac_ext <<_ACEOF
16732 #line $LINENO "configure"
16733 #include "confdefs.h"
16734 #define _LARGE_FILES 1
16735 #include <sys/types.h>
16736 /* Check that off_t can represent 2**63 - 1 correctly.
16737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16738 since some C++ compilers masquerading as C compilers
16739 incorrectly reject 9223372036854775807. */
16740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16742 && LARGE_OFF_T % 2147483647 == 1)
16744 #ifdef F77_DUMMY_MAIN
16745 # ifdef __cplusplus
16748 int F77_DUMMY_MAIN() { return 1; }
16758 rm -f conftest.$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -s conftest.$ac_objext'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_cv_sys_large_files=1; break
16772 echo "$as_me: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16775 rm -f conftest.$ac_objext conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16780 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16781 if test "$ac_cv_sys_large_files" != no; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define _LARGE_FILES $ac_cv_sys_large_files
16794 # Select semaphore implementation type.
16795 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define USE_NAMED_POSIX_SEMAPHORES 1
16801 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16803 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16805 cat >>confdefs.h <<\_ACEOF
16806 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16809 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16812 cat >>confdefs.h <<\_ACEOF
16813 #define USE_SYSV_SEMAPHORES 1
16816 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16821 # Select shared-memory implementation type.
16823 cat >>confdefs.h <<\_ACEOF
16824 #define USE_SYSV_SHARED_MEMORY 1
16827 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16830 if test "$enable_nls" = yes ; then
16832 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16833 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16834 if test "${ac_cv_search_gettext+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 ac_func_search_save_LIBS=$LIBS
16838 ac_cv_search_gettext=no
16839 cat >conftest.$ac_ext <<_ACEOF
16840 #line $LINENO "configure"
16841 #include "confdefs.h"
16843 /* Override any gcc2 internal prototype to avoid an error. */
16847 /* We use char because int might match the return type of a gcc2
16848 builtin and then its argument prototype would still apply. */
16850 #ifdef F77_DUMMY_MAIN
16851 # ifdef __cplusplus
16854 int F77_DUMMY_MAIN() { return 1; }
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -s conftest$ac_exeext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_search_gettext="none required"
16878 echo "$as_me: failed program was:" >&5
16879 cat conftest.$ac_ext >&5
16881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882 if test "$ac_cv_search_gettext" = no; then
16883 for ac_lib in intl; do
16884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 #include "confdefs.h"
16889 /* Override any gcc2 internal prototype to avoid an error. */
16893 /* We use char because int might match the return type of a gcc2
16894 builtin and then its argument prototype would still apply. */
16896 #ifdef F77_DUMMY_MAIN
16897 # ifdef __cplusplus
16900 int F77_DUMMY_MAIN() { return 1; }
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_search_gettext="-l$ac_lib"
16925 echo "$as_me: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16931 LIBS=$ac_func_search_save_LIBS
16933 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16934 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16935 if test "$ac_cv_search_gettext" != no; then
16936 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16939 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16940 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16941 { (exit 1); exit 1; }; }
16944 if test "${ac_cv_header_libintl_h+set}" = set; then
16945 echo "$as_me:$LINENO: checking for libintl.h" >&5
16946 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16947 if test "${ac_cv_header_libintl_h+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16951 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16953 # Is the header compilable?
16954 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16955 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 #include "confdefs.h"
16959 $ac_includes_default
16960 #include <libintl.h>
16962 rm -f conftest.$ac_objext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16964 (eval $ac_compile) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_header_compiler=yes
16976 echo "$as_me: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16978 ac_header_compiler=no
16980 rm -f conftest.$ac_objext conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16982 echo "${ECHO_T}$ac_header_compiler" >&6
16984 # Is the header present?
16985 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16986 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16989 #include "confdefs.h"
16990 #include <libintl.h>
16992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16995 egrep -v '^ *\+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } >/dev/null; then
17000 if test -s conftest.err; then
17001 ac_cpp_err=$ac_c_preproc_warn_flag
17008 if test -z "$ac_cpp_err"; then
17009 ac_header_preproc=yes
17011 echo "$as_me: failed program was:" >&5
17012 cat conftest.$ac_ext >&5
17013 ac_header_preproc=no
17015 rm -f conftest.err conftest.$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6
17019 # So? What about this header?
17020 case $ac_header_compiler:$ac_header_preproc in
17022 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17025 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17027 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17032 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17034 echo "$as_me:$LINENO: checking for libintl.h" >&5
17035 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17036 if test "${ac_cv_header_libintl_h+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 ac_cv_header_libintl_h=$ac_header_preproc
17041 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17042 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17045 if test $ac_cv_header_libintl_h = yes; then
17048 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17049 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17050 { (exit 1); exit 1; }; }
17054 for ac_prog in msgfmt
17056 # Extract the first word of "$ac_prog", so it can be a program name with args.
17057 set dummy $ac_prog; ac_word=$2
17058 echo "$as_me:$LINENO: checking for $ac_word" >&5
17059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17060 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 if test -n "$MSGFMT"; then
17064 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067 for as_dir in $PATH
17070 test -z "$as_dir" && as_dir=.
17071 for ac_exec_ext in '' $ac_executable_extensions; do
17072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17073 ac_cv_prog_MSGFMT="$ac_prog"
17074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17082 MSGFMT=$ac_cv_prog_MSGFMT
17083 if test -n "$MSGFMT"; then
17084 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17085 echo "${ECHO_T}$MSGFMT" >&6
17087 echo "$as_me:$LINENO: result: no" >&5
17088 echo "${ECHO_T}no" >&6
17091 test -n "$MSGFMT" && break
17094 if test -z "$MSGFMT"; then
17095 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17096 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17097 { (exit 1); exit 1; }; }
17099 for ac_prog in msgmerge
17101 # Extract the first word of "$ac_prog", so it can be a program name with args.
17102 set dummy $ac_prog; ac_word=$2
17103 echo "$as_me:$LINENO: checking for $ac_word" >&5
17104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17105 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 if test -n "$MSGMERGE"; then
17109 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112 for as_dir in $PATH
17115 test -z "$as_dir" && as_dir=.
17116 for ac_exec_ext in '' $ac_executable_extensions; do
17117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17118 ac_cv_prog_MSGMERGE="$ac_prog"
17119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17127 MSGMERGE=$ac_cv_prog_MSGMERGE
17128 if test -n "$MSGMERGE"; then
17129 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17130 echo "${ECHO_T}$MSGMERGE" >&6
17132 echo "$as_me:$LINENO: result: no" >&5
17133 echo "${ECHO_T}no" >&6
17136 test -n "$MSGMERGE" && break
17139 for ac_prog in xgettext
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_prog_XGETTEXT+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 if test -n "$XGETTEXT"; then
17149 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $PATH
17155 test -z "$as_dir" && as_dir=.
17156 for ac_exec_ext in '' $ac_executable_extensions; do
17157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17158 ac_cv_prog_XGETTEXT="$ac_prog"
17159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17167 XGETTEXT=$ac_cv_prog_XGETTEXT
17168 if test -n "$XGETTEXT"; then
17169 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17170 echo "${ECHO_T}$XGETTEXT" >&6
17172 echo "$as_me:$LINENO: result: no" >&5
17173 echo "${ECHO_T}no" >&6
17176 test -n "$XGETTEXT" && break
17180 # Note: share/locale is always the default, independent of $datadir
17181 localedir='${prefix}/share/locale'
17182 if test x"$prefix" = x"NONE"; then
17183 exp_localedir="$ac_default_prefix/share/locale"
17185 exp_localedir="$prefix/share/locale"
17190 cat >>confdefs.h <<_ACEOF
17191 #define LOCALEDIR "$exp_localedir"
17197 # Check for Tcl configuration script tclConfig.sh
17198 if test "$with_tcl" = yes; then
17199 for ac_prog in tclsh tcl
17201 # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 echo "$as_me:$LINENO: checking for $ac_word" >&5
17204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17205 if test "${ac_cv_path_TCLSH+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in $PATH
17217 test -z "$as_dir" && as_dir=.
17218 for ac_exec_ext in '' $ac_executable_extensions; do
17219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17230 TCLSH=$ac_cv_path_TCLSH
17232 if test -n "$TCLSH"; then
17233 echo "$as_me:$LINENO: result: $TCLSH" >&5
17234 echo "${ECHO_T}$TCLSH" >&6
17236 echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6
17240 test -n "$TCLSH" && break
17243 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17244 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17245 # Let user override test
17246 if test -z "$TCL_CONFIG_SH"; then
17247 pgac_test_dirs="$with_tclconfig"
17249 set X $pgac_test_dirs; shift
17250 if test $# -eq 0; then
17251 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17252 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17253 { (exit 1); exit 1; }; }
17254 set X `echo 'puts $auto_path' | $TCLSH`; shift
17258 if test -r "$pgac_dir/tclConfig.sh"; then
17259 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17265 if test -z "$TCL_CONFIG_SH"; then
17266 echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6
17268 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17269 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17270 { (exit 1); exit 1; }; }
17272 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17273 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17279 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17280 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17281 eval TCL_LIBS=\"$TCL_LIBS\"
17282 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17283 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17287 # Check for Tk configuration script tkConfig.sh
17288 if test "$with_tk" = yes; then
17289 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17290 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17291 # Let user override test
17292 if test -z "$TK_CONFIG_SH"; then
17293 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17295 set X $pgac_test_dirs; shift
17296 if test $# -eq 0; then
17297 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17298 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17299 { (exit 1); exit 1; }; }
17300 set X `echo 'puts $auto_path' | $TCLSH`; shift
17304 if test -r "$pgac_dir/tkConfig.sh"; then
17305 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17311 if test -z "$TK_CONFIG_SH"; then
17312 echo "$as_me:$LINENO: result: no" >&5
17313 echo "${ECHO_T}no" >&6
17314 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17315 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17316 { (exit 1); exit 1; }; }
17318 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17319 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17325 eval TK_LIBS=\"$TK_LIBS\"
17326 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17327 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17333 # Check for DocBook and tools
17335 for ac_prog in onsgmls nsgmls
17337 # Extract the first word of "$ac_prog", so it can be a program name with args.
17338 set dummy $ac_prog; ac_word=$2
17339 echo "$as_me:$LINENO: checking for $ac_word" >&5
17340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17341 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 if test -n "$NSGMLS"; then
17345 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17348 for as_dir in $PATH
17351 test -z "$as_dir" && as_dir=.
17352 for ac_exec_ext in '' $ac_executable_extensions; do
17353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17354 ac_cv_prog_NSGMLS="$ac_prog"
17355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17363 NSGMLS=$ac_cv_prog_NSGMLS
17364 if test -n "$NSGMLS"; then
17365 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17366 echo "${ECHO_T}$NSGMLS" >&6
17368 echo "$as_me:$LINENO: result: no" >&5
17369 echo "${ECHO_T}no" >&6
17372 test -n "$NSGMLS" && break
17375 for ac_prog in openjade jade
17377 # Extract the first word of "$ac_prog", so it can be a program name with args.
17378 set dummy $ac_prog; ac_word=$2
17379 echo "$as_me:$LINENO: checking for $ac_word" >&5
17380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17381 if test "${ac_cv_prog_JADE+set}" = set; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 if test -n "$JADE"; then
17385 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17391 test -z "$as_dir" && as_dir=.
17392 for ac_exec_ext in '' $ac_executable_extensions; do
17393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17394 ac_cv_prog_JADE="$ac_prog"
17395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17403 JADE=$ac_cv_prog_JADE
17404 if test -n "$JADE"; then
17405 echo "$as_me:$LINENO: result: $JADE" >&5
17406 echo "${ECHO_T}$JADE" >&6
17408 echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17412 test -n "$JADE" && break
17416 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17417 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17418 if test "${pgac_cv_check_docbook+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 cat >conftest.sgml <<EOF
17422 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17424 <title>test</title>
17426 <title>random</title>
17428 <title>testsect</title>
17435 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17436 if test $? -eq 0; then
17437 pgac_cv_check_docbook=yes
17439 pgac_cv_check_docbook=no
17441 rm -f conftest.sgml
17443 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17444 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17446 have_docbook=$pgac_cv_check_docbook
17449 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17450 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17451 if test "${pgac_cv_path_stylesheets+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 if test -n "$DOCBOOKSTYLE"; then
17455 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17457 for pgac_prefix in /usr /usr/local /opt; do
17458 for pgac_infix in share lib; do
17459 for pgac_postfix in \
17460 sgml/stylesheets/nwalsh-modular \
17461 sgml/stylesheets/docbook \
17462 sgml/docbook/dsssl/modular \
17463 sgml/docbook/stylesheet/dsssl/modular \
17464 sgml/docbook/dsssl-stylesheets
17466 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17467 if test -r "$pgac_candidate/html/docbook.dsl" \
17468 && test -r "$pgac_candidate/print/docbook.dsl"
17470 pgac_cv_path_stylesheets=$pgac_candidate
17479 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17481 if test -n "$DOCBOOKSTYLE"; then
17482 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17483 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17485 echo "$as_me:$LINENO: result: no" >&5
17486 echo "${ECHO_T}no" >&6
17488 if test -n "$DOCBOOKSTYLE"; then
17489 for ac_prog in collateindex.pl
17491 # Extract the first word of "$ac_prog", so it can be a program name with args.
17492 set dummy $ac_prog; ac_word=$2
17493 echo "$as_me:$LINENO: checking for $ac_word" >&5
17494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17495 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 case $COLLATEINDEX in
17500 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17504 for as_dir in $DOCBOOKSTYLE/bin $PATH
17507 test -z "$as_dir" && as_dir=.
17508 for ac_exec_ext in '' $ac_executable_extensions; do
17509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17510 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17520 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17522 if test -n "$COLLATEINDEX"; then
17523 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17524 echo "${ECHO_T}$COLLATEINDEX" >&6
17526 echo "$as_me:$LINENO: result: no" >&5
17527 echo "${ECHO_T}no" >&6
17530 test -n "$COLLATEINDEX" && break
17534 for ac_prog in collateindex.pl
17536 # Extract the first word of "$ac_prog", so it can be a program name with args.
17537 set dummy $ac_prog; ac_word=$2
17538 echo "$as_me:$LINENO: checking for $ac_word" >&5
17539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17540 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 case $COLLATEINDEX in
17545 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17552 test -z "$as_dir" && as_dir=.
17553 for ac_exec_ext in '' $ac_executable_extensions; do
17554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17555 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17565 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17567 if test -n "$COLLATEINDEX"; then
17568 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17569 echo "${ECHO_T}$COLLATEINDEX" >&6
17571 echo "$as_me:$LINENO: result: no" >&5
17572 echo "${ECHO_T}no" >&6
17575 test -n "$COLLATEINDEX" && break
17579 for ac_prog in sgmlspl
17581 # Extract the first word of "$ac_prog", so it can be a program name with args.
17582 set dummy $ac_prog; ac_word=$2
17583 echo "$as_me:$LINENO: checking for $ac_word" >&5
17584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17585 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 if test -n "$SGMLSPL"; then
17589 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17592 for as_dir in $PATH
17595 test -z "$as_dir" && as_dir=.
17596 for ac_exec_ext in '' $ac_executable_extensions; do
17597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17598 ac_cv_prog_SGMLSPL="$ac_prog"
17599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17607 SGMLSPL=$ac_cv_prog_SGMLSPL
17608 if test -n "$SGMLSPL"; then
17609 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17610 echo "${ECHO_T}$SGMLSPL" >&6
17612 echo "$as_me:$LINENO: result: no" >&5
17613 echo "${ECHO_T}no" >&6
17616 test -n "$SGMLSPL" && break
17621 # prepare build tree if outside source tree
17622 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17623 # Note 2: /bin/pwd might be better than shell's built-in at getting
17624 # a symlink-free name.
17625 if test "$no_create" != yes; then
17626 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17631 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17632 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17633 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17634 || { { echo "$as_me:$LINENO: error: failed" >&5
17635 echo "$as_me: error: failed" >&2;}
17636 { (exit 1); exit 1; }; }
17637 echo "$as_me:$LINENO: result: done" >&5
17638 echo "${ECHO_T}done" >&6
17643 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17646 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}"
17649 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17652 cat >confcache <<\_ACEOF
17653 # This file is a shell script that caches the results of configure
17654 # tests run on this system so they can be shared between configure
17655 # scripts and configure runs, see configure's option --config-cache.
17656 # It is not useful on other systems. If it contains results you don't
17657 # want to keep, you may remove or edit it.
17659 # config.status only pays attention to the cache file if you give it
17660 # the --recheck option to rerun configure.
17662 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17664 # following values.
17668 # The following way of writing the cache mishandles newlines in values,
17669 # but we know of no workaround that is simple, portable, and efficient.
17670 # So, don't put newlines in cache variables' values.
17671 # Ultrix sh set writes to stderr and can't be redirected directly,
17672 # and sets the high bit in the cache file unless we assign to the vars.
17675 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17677 # `set' does not quote correctly, so add quotes (double-quote
17678 # substitution turns \\\\ into \\, and sed turns \\ into \).
17681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17684 # `set' quotes correctly as required by POSIX, so do not add quotes.
17686 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17695 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17697 if cmp -s $cache_file confcache; then :; else
17698 if test -w $cache_file; then
17699 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17700 cat confcache >$cache_file
17702 echo "not updating unwritable cache $cache_file"
17707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17708 # Let make expand exec_prefix.
17709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17713 # trailing colons and then remove the whole line if VPATH becomes empty
17714 # (actually we leave an empty line to preserve line numbers).
17715 if test "x$srcdir" = x.; then
17716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17717 s/:*\$(srcdir):*/:/;
17718 s/:*\${srcdir}:*/:/;
17720 s/^\([^=]*=[ ]*\):*/\1/;
17726 DEFS=-DHAVE_CONFIG_H
17729 : ${CONFIG_STATUS=./config.status}
17730 ac_clean_files_save=$ac_clean_files
17731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17732 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17733 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17734 cat >$CONFIG_STATUS <<_ACEOF
17736 # Generated by $as_me.
17737 # Run this file to recreate the current configuration.
17738 # Compiler output produced by configure, useful for debugging
17739 # configure, is in config.log if it exists.
17742 SHELL=\${CONFIG_SHELL-$SHELL}
17745 cat >>$CONFIG_STATUS <<\_ACEOF
17747 ## --------------------- ##
17748 ## M4sh Initialization. ##
17749 ## --------------------- ##
17751 # Be Bourne compatible
17752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17755 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17760 # Support unset when possible.
17761 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17767 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17768 { $as_unset LANG || test "${LANG+set}" != set; } ||
17769 { LANG=C; export LANG; }
17770 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17771 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17772 { LC_ALL=C; export LC_ALL; }
17773 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17774 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17775 { LC_TIME=C; export LC_TIME; }
17776 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17777 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17778 { LC_CTYPE=C; export LC_CTYPE; }
17779 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17780 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17781 { LANGUAGE=C; export LANGUAGE; }
17782 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17783 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17784 { LC_COLLATE=C; export LC_COLLATE; }
17785 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17786 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17787 { LC_NUMERIC=C; export LC_NUMERIC; }
17788 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17789 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17790 { LC_MESSAGES=C; export LC_MESSAGES; }
17793 # Name of the executable.
17794 as_me=`(basename "$0") 2>/dev/null ||
17795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17796 X"$0" : 'X\(//\)$' \| \
17797 X"$0" : 'X\(/\)$' \| \
17798 . : '\(.\)' 2>/dev/null ||
17800 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17801 /^X\/\(\/\/\)$/{ s//\1/; q; }
17802 /^X\/\(\/\).*/{ s//\1/; q; }
17805 # PATH needs CR, and LINENO needs CR and PATH.
17806 # Avoid depending upon Character Ranges.
17807 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17808 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17809 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17810 as_cr_digits='0123456789'
17811 as_cr_alnum=$as_cr_Letters$as_cr_digits
17813 # The user is always right.
17814 if test "${PATH_SEPARATOR+set}" != set; then
17815 echo "#! /bin/sh" >conftest.sh
17816 echo "exit 0" >>conftest.sh
17817 chmod +x conftest.sh
17818 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17827 as_lineno_1=$LINENO
17828 as_lineno_2=$LINENO
17829 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17830 test "x$as_lineno_1" != "x$as_lineno_2" &&
17831 test "x$as_lineno_3" = "x$as_lineno_2" || {
17832 # Find who we are. Look in the path if we contain no path at all
17835 *[\\/]* ) as_myself=$0 ;;
17836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17837 for as_dir in $PATH
17840 test -z "$as_dir" && as_dir=.
17841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17846 # We did not find ourselves, most probably we were run as `sh COMMAND'
17847 # in which case we are not to be found in the path.
17848 if test "x$as_myself" = x; then
17851 if test ! -f "$as_myself"; then
17852 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17853 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17854 { (exit 1); exit 1; }; }
17856 case $CONFIG_SHELL in
17858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17859 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17862 test -z "$as_dir" && as_dir=.
17863 for as_base in sh bash ksh sh5; do
17866 if ("$as_dir/$as_base" -c '
17867 as_lineno_1=$LINENO
17868 as_lineno_2=$LINENO
17869 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17870 test "x$as_lineno_1" != "x$as_lineno_2" &&
17871 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17872 CONFIG_SHELL=$as_dir/$as_base
17873 export CONFIG_SHELL
17874 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17882 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17883 # uniformly replaced by the line number. The first 'sed' inserts a
17884 # line-number line before each line; the second 'sed' does the real
17885 # work. The second script uses 'N' to pair each line-number line
17886 # with the numbered line, and appends trailing '-' during
17887 # substitution so that $LINENO is not a special case at line end.
17888 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17889 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17890 sed '=' <$as_myself |
17895 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17898 s,^['$as_cr_digits']*\n,,
17899 ' >$as_me.lineno &&
17900 chmod +x $as_me.lineno ||
17901 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17902 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17903 { (exit 1); exit 1; }; }
17905 # Don't try to exec as it changes $[0], causing all sort of problems
17906 # (the dirname of $[0] is not the place where we might find the
17907 # original and so on. Autoconf is especially sensible to this).
17909 # Exit status is that of the last command.
17914 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17915 *c*,-n*) ECHO_N= ECHO_C='
17917 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17918 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17921 if expr a : '\(a\)' >/dev/null 2>&1; then
17927 rm -f conf$$ conf$$.exe conf$$.file
17929 if ln -s conf$$.file conf$$ 2>/dev/null; then
17930 # We could just check for DJGPP; but this test a) works b) is more generic
17931 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17932 if test -f conf$$.exe; then
17933 # Don't use ln at all; we don't have any links
17938 elif ln conf$$.file conf$$ 2>/dev/null; then
17943 rm -f conf$$ conf$$.exe conf$$.file
17945 as_executable_p="test -f"
17947 # Sed expression to map a string onto a valid CPP name.
17948 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17950 # Sed expression to map a string onto a valid variable name.
17951 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17955 # We need space, tab and new line, in precisely that order.
17961 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17965 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17966 # report actual input values of CONFIG_FILES etc. instead of their
17967 # values after options handling. Logging --version etc. is OK.
17971 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17972 ## Running $as_me. ##
17977 This file was extended by PostgreSQL $as_me 7.4beta2, which was
17978 generated by GNU Autoconf 2.53. Invocation command line was
17980 CONFIG_FILES = $CONFIG_FILES
17981 CONFIG_HEADERS = $CONFIG_HEADERS
17982 CONFIG_LINKS = $CONFIG_LINKS
17983 CONFIG_COMMANDS = $CONFIG_COMMANDS
17987 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17991 # Files that config.status was made for.
17992 if test -n "$ac_config_files"; then
17993 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17996 if test -n "$ac_config_headers"; then
17997 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18000 if test -n "$ac_config_links"; then
18001 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18004 if test -n "$ac_config_commands"; then
18005 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18011 \`$as_me' instantiates files from templates according to the
18012 current configuration.
18014 Usage: $0 [OPTIONS] [FILE]...
18016 -h, --help print this help, then exit
18017 -V, --version print version number, then exit
18018 -d, --debug don't remove temporary files
18019 --recheck update $as_me by reconfiguring in the same conditions
18020 --file=FILE[:TEMPLATE]
18021 instantiate the configuration file FILE
18022 --header=FILE[:TEMPLATE]
18023 instantiate the configuration header FILE
18025 Configuration files:
18028 Configuration headers:
18031 Configuration links:
18034 Report bugs to <bug-autoconf@gnu.org>."
18037 cat >>$CONFIG_STATUS <<_ACEOF
18039 PostgreSQL config.status 7.4beta2
18040 configured by $0, generated by GNU Autoconf 2.53,
18041 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18043 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18044 Free Software Foundation, Inc.
18045 This config.status script is free software; the Free Software Foundation
18046 gives unlimited permission to copy, distribute and modify it."
18050 cat >>$CONFIG_STATUS <<\_ACEOF
18051 # If no file are specified by the user, then we need to provide default
18052 # value. By we need to know if files were specified by the user.
18058 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18059 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18061 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18065 *) # This is not an option, so the user has probably given explicit
18067 ac_need_defaults=false;;
18071 # Handling of the options.
18073 cat >>$CONFIG_STATUS <<_ACEOF
18074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18075 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18076 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18078 cat >>$CONFIG_STATUS <<\_ACEOF
18079 --version | --vers* | -V )
18080 echo "$ac_cs_version"; exit 0 ;;
18082 # Conflict between --help and --header
18083 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18084 Try \`$0 --help' for more information." >&5
18085 echo "$as_me: error: ambiguous option: $1
18086 Try \`$0 --help' for more information." >&2;}
18087 { (exit 1); exit 1; }; };;
18088 --help | --hel | -h )
18089 echo "$ac_cs_usage"; exit 0 ;;
18090 --debug | --d* | -d )
18092 --file | --fil | --fi | --f )
18094 CONFIG_FILES="$CONFIG_FILES $1"
18095 ac_need_defaults=false;;
18096 --header | --heade | --head | --hea )
18098 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18099 ac_need_defaults=false;;
18101 # This is an error.
18102 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18103 Try \`$0 --help' for more information." >&5
18104 echo "$as_me: error: unrecognized option: $1
18105 Try \`$0 --help' for more information." >&2;}
18106 { (exit 1); exit 1; }; } ;;
18108 *) ac_config_targets="$ac_config_targets $1" ;;
18120 cat >>$CONFIG_STATUS <<\_ACEOF
18121 for ac_config_target in $ac_config_targets
18123 case "$ac_config_target" in
18124 # Handling of arguments.
18125 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18126 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18127 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18128 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18129 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18130 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18131 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18132 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18133 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18134 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18135 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18136 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18137 { (exit 1); exit 1; }; };;
18141 # If the user did not use the arguments to specify the items to instantiate,
18142 # then the envvar interface is used. Set only those that are not.
18143 # We use the long form for the default assignment because of an extremely
18144 # bizarre bug on SunOS 4.1.3.
18145 if $ac_need_defaults; then
18146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18148 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18151 # Create a temporary directory, and hook for its removal unless debugging.
18154 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18155 trap '{ (exit 1); exit 1; }' 1 2 13 15
18158 # Create a (secure) tmp directory for tmp files.
18161 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18162 test -n "$tmp" && test -d "$tmp"
18165 tmp=$TMPDIR/cs$$-$RANDOM
18166 (umask 077 && mkdir $tmp)
18169 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18170 { (exit 1); exit 1; }
18175 cat >>$CONFIG_STATUS <<_ACEOF
18178 # CONFIG_FILES section.
18181 # No need to generate the scripts if there are no CONFIG_FILES.
18182 # This happens for instance when ./config.status config.h
18183 if test -n "\$CONFIG_FILES"; then
18184 # Protect against being on the right side of a sed subst in config.status.
18185 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18186 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18187 s,@SHELL@,$SHELL,;t t
18188 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18189 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18190 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18191 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18192 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18193 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18194 s,@exec_prefix@,$exec_prefix,;t t
18195 s,@prefix@,$prefix,;t t
18196 s,@program_transform_name@,$program_transform_name,;t t
18197 s,@bindir@,$bindir,;t t
18198 s,@sbindir@,$sbindir,;t t
18199 s,@libexecdir@,$libexecdir,;t t
18200 s,@datadir@,$datadir,;t t
18201 s,@sysconfdir@,$sysconfdir,;t t
18202 s,@sharedstatedir@,$sharedstatedir,;t t
18203 s,@localstatedir@,$localstatedir,;t t
18204 s,@libdir@,$libdir,;t t
18205 s,@includedir@,$includedir,;t t
18206 s,@oldincludedir@,$oldincludedir,;t t
18207 s,@infodir@,$infodir,;t t
18208 s,@mandir@,$mandir,;t t
18209 s,@build_alias@,$build_alias,;t t
18210 s,@host_alias@,$host_alias,;t t
18211 s,@target_alias@,$target_alias,;t t
18212 s,@DEFS@,$DEFS,;t t
18213 s,@ECHO_C@,$ECHO_C,;t t
18214 s,@ECHO_N@,$ECHO_N,;t t
18215 s,@ECHO_T@,$ECHO_T,;t t
18216 s,@LIBS@,$LIBS,;t t
18217 s,@docdir@,$docdir,;t t
18218 s,@configure_args@,$configure_args,;t t
18219 s,@build@,$build,;t t
18220 s,@build_cpu@,$build_cpu,;t t
18221 s,@build_vendor@,$build_vendor,;t t
18222 s,@build_os@,$build_os,;t t
18223 s,@host@,$host,;t t
18224 s,@host_cpu@,$host_cpu,;t t
18225 s,@host_vendor@,$host_vendor,;t t
18226 s,@host_os@,$host_os,;t t
18227 s,@PORTNAME@,$PORTNAME,;t t
18229 s,@enable_nls@,$enable_nls,;t t
18230 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18231 s,@default_port@,$default_port,;t t
18232 s,@enable_shared@,$enable_shared,;t t
18233 s,@enable_rpath@,$enable_rpath,;t t
18234 s,@enable_debug@,$enable_debug,;t t
18236 s,@CFLAGS@,$CFLAGS,;t t
18237 s,@LDFLAGS@,$LDFLAGS,;t t
18238 s,@CPPFLAGS@,$CPPFLAGS,;t t
18239 s,@ac_ct_CC@,$ac_ct_CC,;t t
18240 s,@EXEEXT@,$EXEEXT,;t t
18241 s,@OBJEXT@,$OBJEXT,;t t
18244 s,@autodepend@,$autodepend,;t t
18245 s,@INCLUDES@,$INCLUDES,;t t
18246 s,@enable_thread_safety@,$enable_thread_safety,;t t
18247 s,@with_tcl@,$with_tcl,;t t
18248 s,@with_tk@,$with_tk,;t t
18249 s,@with_perl@,$with_perl,;t t
18250 s,@with_python@,$with_python,;t t
18252 s,@with_java@,$with_java,;t t
18253 s,@with_krb4@,$with_krb4,;t t
18254 s,@with_krb5@,$with_krb5,;t t
18255 s,@krb_srvtab@,$krb_srvtab,;t t
18256 s,@with_pam@,$with_pam,;t t
18257 s,@with_rendezvous@,$with_rendezvous,;t t
18258 s,@with_openssl@,$with_openssl,;t t
18259 s,@ELF_SYS@,$ELF_SYS,;t t
18261 s,@FLEX@,$FLEX,;t t
18262 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18263 s,@LN_S@,$LN_S,;t t
18265 s,@with_gnu_ld@,$with_gnu_ld,;t t
18266 s,@ld_R_works@,$ld_R_works,;t t
18267 s,@RANLIB@,$RANLIB,;t t
18268 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18269 s,@LORDER@,$LORDER,;t t
18271 s,@STRIP@,$STRIP,;t t
18272 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18273 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18274 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18275 s,@YACC@,$YACC,;t t
18276 s,@YFLAGS@,$YFLAGS,;t t
18277 s,@PERL@,$PERL,;t t
18278 s,@perl_archlibexp@,$perl_archlibexp,;t t
18279 s,@perl_privlibexp@,$perl_privlibexp,;t t
18280 s,@perl_useshrplib@,$perl_useshrplib,;t t
18281 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18282 s,@PYTHON@,$PYTHON,;t t
18283 s,@python_prefix@,$python_prefix,;t t
18284 s,@python_execprefix@,$python_execprefix,;t t
18285 s,@python_configdir@,$python_configdir,;t t
18286 s,@python_includespec@,$python_includespec,;t t
18287 s,@python_libspec@,$python_libspec,;t t
18288 s,@LIBOBJS@,$LIBOBJS,;t t
18289 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18290 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18291 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18292 s,@MSGFMT@,$MSGFMT,;t t
18293 s,@MSGMERGE@,$MSGMERGE,;t t
18294 s,@XGETTEXT@,$XGETTEXT,;t t
18295 s,@localedir@,$localedir,;t t
18296 s,@TCLSH@,$TCLSH,;t t
18297 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18298 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18299 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18300 s,@TCL_LIBS@,$TCL_LIBS,;t t
18301 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18302 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18303 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18304 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18305 s,@TK_LIBS@,$TK_LIBS,;t t
18306 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18307 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18308 s,@NSGMLS@,$NSGMLS,;t t
18309 s,@JADE@,$JADE,;t t
18310 s,@have_docbook@,$have_docbook,;t t
18311 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18312 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18313 s,@SGMLSPL@,$SGMLSPL,;t t
18314 s,@vpath_build@,$vpath_build,;t t
18319 cat >>$CONFIG_STATUS <<\_ACEOF
18320 # Split the substitutions into bite-sized pieces for seds with
18321 # small command number limits, like on Digital OSF/1 and HP-UX.
18322 ac_max_sed_lines=48
18323 ac_sed_frag=1 # Number of current file.
18324 ac_beg=1 # First line for current file.
18325 ac_end=$ac_max_sed_lines # Line after last line for current file.
18328 while $ac_more_lines; do
18329 if test $ac_beg -gt 1; then
18330 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18332 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18334 if test ! -s $tmp/subs.frag; then
18335 ac_more_lines=false
18337 # The purpose of the label and of the branching condition is to
18338 # speed up the sed processing (if there are no `@' at all, there
18339 # is no need to browse any of the substitutions).
18340 # These are the two extra sed commands mentioned above.
18342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18343 if test -z "$ac_sed_cmds"; then
18344 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18346 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18348 ac_sed_frag=`expr $ac_sed_frag + 1`
18350 ac_end=`expr $ac_end + $ac_max_sed_lines`
18353 if test -z "$ac_sed_cmds"; then
18356 fi # test -n "$CONFIG_FILES"
18359 cat >>$CONFIG_STATUS <<\_ACEOF
18360 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18361 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18363 - | *:- | *:-:* ) # input from stdin
18365 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18366 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18367 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18369 * ) ac_file_in=$ac_file.in ;;
18372 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18373 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18375 X"$ac_file" : 'X\(//\)[^/]' \| \
18376 X"$ac_file" : 'X\(//\)$' \| \
18377 X"$ac_file" : 'X\(/\)' \| \
18378 . : '\(.\)' 2>/dev/null ||
18380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18382 /^X\(\/\/\)$/{ s//\1/; q; }
18383 /^X\(\/\).*/{ s//\1/; q; }
18385 { case "$ac_dir" in
18386 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18390 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18391 case $as_mkdir_dir in
18392 # Skip DOS drivespec
18393 ?:) as_incr_dir=$as_mkdir_dir ;;
18395 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18396 test -d "$as_incr_dir" ||
18397 mkdir "$as_incr_dir" ||
18398 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18399 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18400 { (exit 1); exit 1; }; }
18407 if test "$ac_dir" != .; then
18408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18409 # A "../" for each directory in $ac_dir_suffix.
18410 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18412 ac_dir_suffix= ac_top_builddir=
18416 .) # No --srcdir option. We are building in place.
18418 if test -z "$ac_top_builddir"; then
18421 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18423 [\\/]* | ?:[\\/]* ) # Absolute path.
18424 ac_srcdir=$srcdir$ac_dir_suffix;
18425 ac_top_srcdir=$srcdir ;;
18426 *) # Relative path.
18427 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18428 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18430 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18432 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18433 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18434 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18435 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18439 if test x"$ac_file" != x-; then
18440 { echo "$as_me:$LINENO: creating $ac_file" >&5
18441 echo "$as_me: creating $ac_file" >&6;}
18444 # Let's still pretend it is `configure' which instantiates (i.e., don't
18445 # use $as_me), people would be surprised to read:
18446 # /* config.h. Generated by config.status. */
18447 if test x"$ac_file" = x-; then
18450 configure_input="$ac_file. "
18452 configure_input=$configure_input"Generated from `echo $ac_file_in |
18453 sed 's,.*/,,'` by configure."
18455 # First look for the input files in the build tree, otherwise in the
18457 ac_file_inputs=`IFS=:
18458 for f in $ac_file_in; do
18460 -) echo $tmp/stdin ;;
18462 # Absolute (can't be DOS-style, as IFS=:)
18463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18464 echo "$as_me: error: cannot find input file: $f" >&2;}
18465 { (exit 1); exit 1; }; }
18468 if test -f "$f"; then
18471 elif test -f "$srcdir/$f"; then
18476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18477 echo "$as_me: error: cannot find input file: $f" >&2;}
18478 { (exit 1); exit 1; }; }
18481 done` || { (exit 1); exit 1; }
18483 cat >>$CONFIG_STATUS <<_ACEOF
18487 cat >>$CONFIG_STATUS <<\_ACEOF
18489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18490 s,@configure_input@,$configure_input,;t t
18491 s,@srcdir@,$ac_srcdir,;t t
18492 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18493 s,@top_srcdir@,$ac_top_srcdir,;t t
18494 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18495 s,@builddir@,$ac_builddir,;t t
18496 s,@abs_builddir@,$ac_abs_builddir,;t t
18497 s,@top_builddir@,$ac_top_builddir,;t t
18498 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18499 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18501 if test x"$ac_file" != x-; then
18502 mv $tmp/out $ac_file
18510 cat >>$CONFIG_STATUS <<\_ACEOF
18513 # CONFIG_HEADER section.
18516 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18517 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18519 # ac_d sets the value in "#define NAME VALUE" lines.
18520 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18521 ac_dB='[ ].*$,\1#\2'
18524 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18525 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18526 ac_uB='$,\1#\2define\3'
18530 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18533 - | *:- | *:-:* ) # input from stdin
18535 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18537 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18539 * ) ac_file_in=$ac_file.in ;;
18542 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18543 echo "$as_me: creating $ac_file" >&6;}
18545 # First look for the input files in the build tree, otherwise in the
18547 ac_file_inputs=`IFS=:
18548 for f in $ac_file_in; do
18550 -) echo $tmp/stdin ;;
18552 # Absolute (can't be DOS-style, as IFS=:)
18553 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18554 echo "$as_me: error: cannot find input file: $f" >&2;}
18555 { (exit 1); exit 1; }; }
18558 if test -f "$f"; then
18561 elif test -f "$srcdir/$f"; then
18566 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18567 echo "$as_me: error: cannot find input file: $f" >&2;}
18568 { (exit 1); exit 1; }; }
18571 done` || { (exit 1); exit 1; }
18572 # Remove the trailing spaces.
18573 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18577 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18578 # `conftest.undefs', that substitutes the proper values into
18579 # config.h.in to produce config.h. The first handles `#define'
18580 # templates, and the second `#undef' templates.
18581 # And first: Protect against being on the right side of a sed subst in
18582 # config.status. Protect against being in an unquoted here document
18583 # in config.status.
18584 rm -f conftest.defines conftest.undefs
18585 # Using a here document instead of a string reduces the quoting nightmare.
18586 # Putting comments in sed scripts is not portable.
18588 # `end' is used to avoid that the second main sed command (meant for
18589 # 0-ary CPP macros) applies to n-ary macro definitions.
18590 # See the Autoconf documentation for `clear'.
18591 cat >confdef2sed.sed <<\_ACEOF
18596 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18598 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18601 # If some macros were called several times there might be several times
18602 # the same #defines, which is useless. Nevertheless, we may not want to
18603 # sort them, since we want the *last* AC-DEFINE to be honored.
18604 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18605 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18606 rm -f confdef2sed.sed
18608 # This sed command replaces #undef with comments. This is necessary, for
18609 # example, in the case of _POSIX_SOURCE, which is predefined and required
18610 # on some systems where configure will not decide to define it.
18611 cat >>conftest.undefs <<\_ACEOF
18612 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18615 # Break up conftest.defines because some shells have a limit on the size
18616 # of here documents, and old seds have small limits too (100 cmds).
18617 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18618 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18619 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18620 echo ' :' >>$CONFIG_STATUS
18621 rm -f conftest.tail
18622 while grep . conftest.defines >/dev/null
18624 # Write a limited-size here document to $tmp/defines.sed.
18625 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18626 # Speed up: don't consider the non `#define' lines.
18627 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18628 # Work around the forget-to-reset-the-flag bug.
18629 echo 't clr' >>$CONFIG_STATUS
18630 echo ': clr' >>$CONFIG_STATUS
18631 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18633 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18635 mv $tmp/out $tmp/in
18637 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18638 rm -f conftest.defines
18639 mv conftest.tail conftest.defines
18641 rm -f conftest.defines
18642 echo ' fi # egrep' >>$CONFIG_STATUS
18643 echo >>$CONFIG_STATUS
18645 # Break up conftest.undefs because some shells have a limit on the size
18646 # of here documents, and old seds have small limits too (100 cmds).
18647 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18648 rm -f conftest.tail
18649 while grep . conftest.undefs >/dev/null
18651 # Write a limited-size here document to $tmp/undefs.sed.
18652 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18653 # Speed up: don't consider the non `#undef'
18654 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18655 # Work around the forget-to-reset-the-flag bug.
18656 echo 't clr' >>$CONFIG_STATUS
18657 echo ': clr' >>$CONFIG_STATUS
18658 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18660 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18662 mv $tmp/out $tmp/in
18664 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18665 rm -f conftest.undefs
18666 mv conftest.tail conftest.undefs
18668 rm -f conftest.undefs
18670 cat >>$CONFIG_STATUS <<\_ACEOF
18671 # Let's still pretend it is `configure' which instantiates (i.e., don't
18672 # use $as_me), people would be surprised to read:
18673 # /* config.h. Generated by config.status. */
18674 if test x"$ac_file" = x-; then
18675 echo "/* Generated by configure. */" >$tmp/config.h
18677 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18679 cat $tmp/in >>$tmp/config.h
18681 if test x"$ac_file" != x-; then
18682 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18683 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18684 echo "$as_me: $ac_file is unchanged" >&6;}
18686 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18688 X"$ac_file" : 'X\(//\)[^/]' \| \
18689 X"$ac_file" : 'X\(//\)$' \| \
18690 X"$ac_file" : 'X\(/\)' \| \
18691 . : '\(.\)' 2>/dev/null ||
18693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18695 /^X\(\/\/\)$/{ s//\1/; q; }
18696 /^X\(\/\).*/{ s//\1/; q; }
18698 { case "$ac_dir" in
18699 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18703 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18704 case $as_mkdir_dir in
18705 # Skip DOS drivespec
18706 ?:) as_incr_dir=$as_mkdir_dir ;;
18708 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18709 test -d "$as_incr_dir" ||
18710 mkdir "$as_incr_dir" ||
18711 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18712 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18713 { (exit 1); exit 1; }; }
18719 mv $tmp/config.h $ac_file
18723 rm -f $tmp/config.h
18725 # Run the commands associated with the file.
18727 src/include/pg_config.h )
18728 # Update timestamp for pg_config.h (see Makefile.global)
18729 echo >src/include/stamp-h
18734 cat >>$CONFIG_STATUS <<\_ACEOF
18737 # CONFIG_LINKS section.
18740 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18741 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18742 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18744 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18745 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18747 if test ! -r $srcdir/$ac_source; then
18748 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18749 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18750 { (exit 1); exit 1; }; }
18754 # Make relative symlinks.
18755 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18756 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18757 X"$ac_dest" : 'X\(//\)[^/]' \| \
18758 X"$ac_dest" : 'X\(//\)$' \| \
18759 X"$ac_dest" : 'X\(/\)' \| \
18760 . : '\(.\)' 2>/dev/null ||
18762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18764 /^X\(\/\/\)$/{ s//\1/; q; }
18765 /^X\(\/\).*/{ s//\1/; q; }
18767 { case "$ac_dest_dir" in
18768 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18771 as_dummy="$ac_dest_dir"
18772 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18773 case $as_mkdir_dir in
18774 # Skip DOS drivespec
18775 ?:) as_incr_dir=$as_mkdir_dir ;;
18777 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18778 test -d "$as_incr_dir" ||
18779 mkdir "$as_incr_dir" ||
18780 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18781 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18782 { (exit 1); exit 1; }; }
18789 if test "$ac_dest_dir" != .; then
18790 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18791 # A "../" for each directory in $ac_dir_suffix.
18792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18794 ac_dir_suffix= ac_top_builddir=
18798 .) # No --srcdir option. We are building in place.
18800 if test -z "$ac_top_builddir"; then
18803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18805 [\\/]* | ?:[\\/]* ) # Absolute path.
18806 ac_srcdir=$srcdir$ac_dir_suffix;
18807 ac_top_srcdir=$srcdir ;;
18808 *) # Relative path.
18809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18812 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18814 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18815 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18816 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18817 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18821 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18822 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18825 # Make a symlink if possible; otherwise try a hard link.
18826 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18827 ln $srcdir/$ac_source $ac_dest ||
18828 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18829 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18830 { (exit 1); exit 1; }; }
18834 cat >>$CONFIG_STATUS <<\_ACEOF
18836 { (exit 0); exit 0; }
18838 chmod +x $CONFIG_STATUS
18839 ac_clean_files=$ac_clean_files_save
18842 # configure is writing to config.log, and then calls config.status.
18843 # config.status does its own redirection, appending to config.log.
18844 # Unfortunately, on DOS this fails, as config.log is still kept open
18845 # by configure, so config.status won't be able to write to it; its
18846 # output is simply discarded. So we exec the FD to /dev/null,
18847 # effectively closing config.log, so it can be properly (re)opened and
18848 # appended to by config.status. When coming back to configure, we
18849 # need to make the FD available again.
18850 if test "$no_create" != yes; then
18853 $SHELL $CONFIG_STATUS || ac_cs_success=false
18855 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18856 # would make configure fail if this is the last instruction.
18857 $ac_cs_success || { (exit 1); exit 1; }