2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.0.0beta4.
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 2004 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='8.0.0beta4'
262 PACKAGE_STRING='PostgreSQL 8.0.0beta4'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 infodir='${prefix}/info'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir infodir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
761 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
762 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
763 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
764 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
765 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
767 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
770 # Report the --help message.
772 if test "$ac_init_help" = "long"; then
773 # Omit some internal or obsolete options to make the list less imposing.
774 # This message is too long to be a string in the A/UX 3.1 sh.
776 \`configure' configures PostgreSQL 8.0.0beta4 to adapt to many kinds of systems.
778 Usage: $0 [OPTION]... [VAR=VALUE]...
780 To assign environment variables (e.g., CC, CFLAGS...), specify them as
781 VAR=VALUE. See below for descriptions of some of the useful variables.
783 Defaults for the options are specified in brackets.
786 -h, --help display this help and exit
787 --help=short display options specific to this package
788 --help=recursive display the short help of all the included packages
789 -V, --version display version information and exit
790 -q, --quiet, --silent do not print \`checking...' messages
791 --cache-file=FILE cache test results in FILE [disabled]
792 -C, --config-cache alias for \`--cache-file=config.cache'
793 -n, --no-create do not create output files
794 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799 Installation directories:
800 --prefix=PREFIX install architecture-independent files in PREFIX
802 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 By default, \`make install' will install all the files in
806 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
807 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
808 for instance \`--prefix=\$HOME'.
810 For better control, use the options below.
812 Fine tuning of the installation directories:
813 --bindir=DIR user executables [EPREFIX/bin]
814 --sbindir=DIR system admin executables [EPREFIX/sbin]
815 --libexecdir=DIR program executables [EPREFIX/libexec]
816 --datadir=DIR read-only architecture-independent data [PREFIX/share]
817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
820 --libdir=DIR object code libraries [EPREFIX/lib]
821 --includedir=DIR C header files [PREFIX/include]
822 --oldincludedir=DIR C header files for non-gcc [/usr/include]
823 --infodir=DIR info documentation [PREFIX/info]
824 --mandir=DIR man documentation [PREFIX/man]
830 --build=BUILD configure for building on BUILD [guessed]
831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of PostgreSQL 8.0.0beta4:";;
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-integer-datetimes enable 64-bit integer date/time support
845 --enable-nls[=LANGUAGES] enable Native Language Support
846 --disable-shared do not build shared libraries
847 --disable-rpath do not embed shared library search path in executables
848 --disable-spinlocks do not use spinlocks
849 --enable-debug build with debugging symbols (-g)
850 --enable-depend turn on automatic dependency tracking
851 --enable-cassert enable assertion checks (for debugging)
852 --enable-thread-safety make client libraries thread-safe
853 --enable-thread-safety-force force thread-safety in spite of thread test failure
854 --disable-largefile omit support for large files
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
861 --without-docdir do not install the documentation
862 --with-includes=DIRS look for additional header files in DIRS
863 --with-libraries=DIRS look for additional libraries in DIRS
864 --with-libs=DIRS alternative spelling of --with-libraries
865 --with-pgport=PORTNUM change default port number 5432
866 --with-tcl build Tcl modules (PL/Tcl)
867 --with-tclconfig=DIR tclConfig.sh is in DIR
868 --with-perl build Perl modules (PL/Perl)
869 --with-python build Python modules (PL/Python)
870 --with-krb4 build with Kerberos 4 support
871 --with-krb5 build with Kerberos 5 support
872 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
873 --with-pam build with PAM support
874 --with-rendezvous build with Rendezvous support
875 --with-openssl build with OpenSSL support
876 --without-readline do not use Readline
877 --without-zlib do not use Zlib
878 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
890 location of DocBook stylesheets
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
895 Report bugs to <pgsql-bugs@postgresql.org>.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
958 PostgreSQL configure 8.0.0beta4
959 generated by GNU Autoconf 2.53
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
966 Copyright 2004 PostgreSQL Global Development Group
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by PostgreSQL $as_me 8.0.0beta4, which was
976 generated by GNU Autoconf 2.53. Invocation command line was
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Also quote any args containing shell meta-characters.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n ) continue ;;
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042 case " $ac_configure_args " in
1043 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1044 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081 if test -s confdefs.h; then
1088 sed "/^$/d" confdefs.h
1091 test "$ac_signal" != 0 &&
1092 echo "$as_me: caught signal $ac_signal"
1093 echo "$as_me: exit $exit_status"
1095 rm -f core core.* *.core &&
1096 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099 for ac_signal in 1 2 13 15; do
1100 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1105 rm -rf conftest* confdefs.h
1106 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109 # Predefined preprocessor variables.
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_NAME "$PACKAGE_NAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_STRING "$PACKAGE_STRING"
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1136 # Let the site file select an alternate cache file if it wants to.
1137 # Prefer explicitly selected file to automatically selected ones.
1138 if test -z "$CONFIG_SITE"; then
1139 if test "x$prefix" != xNONE; then
1140 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1142 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145 for ac_site_file in $CONFIG_SITE; do
1146 if test -r "$ac_site_file"; then
1147 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1148 echo "$as_me: loading site script $ac_site_file" >&6;}
1149 sed 's/^/| /' "$ac_site_file" >&5
1154 if test -r "$cache_file"; then
1155 # Some versions of bash will fail to source /dev/null (special
1156 # files actually), so we avoid doing that.
1157 if test -f "$cache_file"; then
1158 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1159 echo "$as_me: loading cache $cache_file" >&6;}
1161 [\\/]* | ?:[\\/]* ) . $cache_file;;
1162 *) . ./$cache_file;;
1166 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1167 echo "$as_me: creating cache $cache_file" >&6;}
1171 # Check that the precious variables saved in the cache have kept the same
1173 ac_cache_corrupted=false
1174 for ac_var in `(set) 2>&1 |
1175 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1177 eval ac_new_set=\$ac_env_${ac_var}_set
1178 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1179 eval ac_new_val="\$ac_env_${ac_var}_value"
1180 case $ac_old_set,$ac_new_set in
1182 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1184 ac_cache_corrupted=: ;;
1186 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1187 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1188 ac_cache_corrupted=: ;;
1191 if test "x$ac_old_val" != "x$ac_new_val"; then
1192 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1193 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1194 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1195 echo "$as_me: former value: $ac_old_val" >&2;}
1196 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1197 echo "$as_me: current value: $ac_new_val" >&2;}
1198 ac_cache_corrupted=:
1201 # Pass precious variables to config.status.
1202 if test "$ac_new_set" = set; then
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 *) ac_arg=$ac_var=$ac_new_val ;;
1208 case " $ac_configure_args " in
1209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1210 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1214 if $ac_cache_corrupted; then
1215 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1216 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1217 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1218 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1219 { (exit 1); exit 1; }; }
1223 ac_cpp='$CPP $CPPFLAGS'
1224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258 for ac_dir in config $srcdir/config; do
1259 if test -f $ac_dir/install-sh; then
1261 ac_install_sh="$ac_aux_dir/install-sh -c"
1263 elif test -f $ac_dir/install.sh; then
1265 ac_install_sh="$ac_aux_dir/install.sh -c"
1267 elif test -f $ac_dir/shtool; then
1269 ac_install_sh="$ac_aux_dir/shtool install -c"
1273 if test -z "$ac_aux_dir"; then
1274 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1275 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1276 { (exit 1); exit 1; }; }
1278 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1279 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1280 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1283 configure_args=$ac_configure_args
1287 cat >>confdefs.h <<_ACEOF
1288 #define PG_VERSION "$PACKAGE_VERSION"
1292 # Make sure we can run config.sub.
1293 $ac_config_sub sun4 >/dev/null 2>&1 ||
1294 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1296 { (exit 1); exit 1; }; }
1298 echo "$as_me:$LINENO: checking build system type" >&5
1299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1300 if test "${ac_cv_build+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_build_alias=$build_alias
1304 test -z "$ac_cv_build_alias" &&
1305 ac_cv_build_alias=`$ac_config_guess`
1306 test -z "$ac_cv_build_alias" &&
1307 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1309 { (exit 1); exit 1; }; }
1310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1311 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1313 { (exit 1); exit 1; }; }
1316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1317 echo "${ECHO_T}$ac_cv_build" >&6
1319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1324 echo "$as_me:$LINENO: checking host system type" >&5
1325 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1326 if test "${ac_cv_host+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 ac_cv_host_alias=$host_alias
1330 test -z "$ac_cv_host_alias" &&
1331 ac_cv_host_alias=$ac_cv_build_alias
1332 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1333 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1334 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1335 { (exit 1); exit 1; }; }
1338 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1339 echo "${ECHO_T}$ac_cv_host" >&6
1341 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$as_me:$LINENO: checking which template to use" >&5
1349 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1354 # Check whether --with-template or --without-template was given.
1355 if test "${with_template+set}" = set; then
1356 withval="$with_template"
1360 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1361 echo "$as_me: error: argument required for --with-template option" >&2;}
1362 { (exit 1); exit 1; }; }
1365 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1366 echo "$as_me: error: argument required for --with-template option" >&2;}
1367 { (exit 1); exit 1; }; }
1372 list) echo; ls "$srcdir/src/template"; exit;;
1373 *) if test -f "$srcdir/src/template/$with_template" ; then
1376 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1377 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1378 { (exit 1); exit 1; }; }
1387 # --with-template not given
1390 aix*) template=aix ;;
1391 beos*) template=beos ;;
1392 bsdi*) template=bsdi ;;
1393 cygwin*) template=cygwin ;;
1394 darwin*) template=darwin ;;
1395 dgux*) template=dgux ;;
1396 freebsd*) template=freebsd ;;
1397 hpux*) template=hpux ;;
1398 irix*) template=irix ;;
1399 linux*|gnu*|k*bsd*-gnu)
1401 mingw*) template=win32 ;;
1402 netbsd*) template=netbsd ;;
1403 nextstep*) template=nextstep ;;
1404 openbsd*) template=openbsd ;;
1405 osf*) template=osf ;;
1406 qnx*) template=qnx4 ;;
1407 sco*) template=sco ;;
1408 solaris*) template=solaris ;;
1409 sunos*) template=sunos4 ;;
1411 case $host_vendor in
1412 univel) template=univel ;;
1414 sysv4*) template=svr4 ;;
1415 sysv5*) template=unixware ;;
1416 ultrix*) template=ultrix4 ;;
1419 if test x"$template" = x"" ; then
1420 { { echo "$as_me:$LINENO: error:
1421 *******************************************************************
1422 PostgreSQL has apparently not been ported to your platform yet.
1423 To try a manual configuration, look into the src/template directory
1424 for a similar platform and use the '--with-template=' option.
1426 Please also contact <pgsql-ports@postgresql.org> to see about
1427 rectifying this. Include the above 'checking host system type...'
1429 *******************************************************************
1431 echo "$as_me: error:
1432 *******************************************************************
1433 PostgreSQL has apparently not been ported to your platform yet.
1434 To try a manual configuration, look into the src/template directory
1435 for a similar platform and use the '--with-template=' option.
1437 Please also contact <pgsql-ports@postgresql.org> to see about
1438 rectifying this. Include the above 'checking host system type...'
1440 *******************************************************************
1442 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $template" >&5
1450 echo "${ECHO_T}$template" >&6
1455 # Initialize default assumption that we do not need separate assembly code
1456 # for TAS (test-and-set). This can be overridden by the template file
1457 # when it's executed.
1464 ## Command line options
1468 # Installation directory for documentation
1473 # Check whether --with-docdir or --without-docdir was given.
1474 if test "${with_docdir+set}" = set; then
1475 withval="$with_docdir"
1479 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1480 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1481 { (exit 1); exit 1; }; }
1492 docdir='${prefix}/doc'
1499 # Add non-standard directories to the include path
1504 # Check whether --with-includes or --without-includes was given.
1505 if test "${with_includes+set}" = set; then
1506 withval="$with_includes"
1510 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512 { (exit 1); exit 1; }; }
1515 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1516 echo "$as_me: error: argument required for --with-includes option" >&2;}
1517 { (exit 1); exit 1; }; }
1529 # Add non-standard directories to the library search path
1534 # Check whether --with-libraries or --without-libraries was given.
1535 if test "${with_libraries+set}" = set; then
1536 withval="$with_libraries"
1540 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542 { (exit 1); exit 1; }; }
1545 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1546 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1547 { (exit 1); exit 1; }; }
1550 LIBRARY_DIRS=$withval
1560 # Check whether --with-libs or --without-libs was given.
1561 if test "${with_libs+set}" = set; then
1562 withval="$with_libs"
1566 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568 { (exit 1); exit 1; }; }
1571 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1572 echo "$as_me: error: argument required for --with-libs option" >&2;}
1573 { (exit 1); exit 1; }; }
1576 LIBRARY_DIRS=$withval
1585 # 64-bit integer date/time storage (--enable-integer-datetimes)
1587 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1588 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1591 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1592 if test "${enable_integer_datetimes+set}" = set; then
1593 enableval="$enable_integer_datetimes"
1598 cat >>confdefs.h <<\_ACEOF
1599 #define USE_INTEGER_DATETIMES 1
1607 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1608 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1609 { (exit 1); exit 1; }; }
1614 enable_integer_datetimes=no
1618 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1619 echo "${ECHO_T}$enable_integer_datetimes" >&6
1625 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1626 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1629 # Check whether --enable-nls or --disable-nls was given.
1630 if test "${enable_nls+set}" = set; then
1631 enableval="$enable_nls"
1642 WANTED_LANGUAGES=$enableval
1651 if test "$enable_nls" = yes; then
1653 cat >>confdefs.h <<\_ACEOF
1654 #define ENABLE_NLS 1
1659 echo "$as_me:$LINENO: result: $enable_nls" >&5
1660 echo "${ECHO_T}$enable_nls" >&6
1665 # Default port number (--with-pgport), default 5432
1667 echo "$as_me:$LINENO: checking for default port number" >&5
1668 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1672 # Check whether --with-pgport or --without-pgport was given.
1673 if test "${with_pgport+set}" = set; then
1674 withval="$with_pgport"
1678 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1679 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1680 { (exit 1); exit 1; }; }
1683 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1684 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1685 { (exit 1); exit 1; }; }
1688 default_port=$withval
1696 echo "$as_me:$LINENO: result: $default_port" >&5
1697 echo "${ECHO_T}$default_port" >&6
1698 # Need both of these because some places want an integer and some a string
1700 cat >>confdefs.h <<_ACEOF
1701 #define DEF_PGPORT ${default_port}
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEF_PGPORT_STR "${default_port}"
1712 # Option to disable shared libraries
1716 # Check whether --enable-shared or --disable-shared was given.
1717 if test "${enable_shared+set}" = set; then
1718 enableval="$enable_shared"
1728 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1729 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1730 { (exit 1); exit 1; }; }
1742 # '-rpath'-like feature can be disabled
1746 # Check whether --enable-rpath or --disable-rpath was given.
1747 if test "${enable_rpath+set}" = set; then
1748 enableval="$enable_rpath"
1758 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1759 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1760 { (exit 1); exit 1; }; }
1776 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1777 if test "${enable_spinlocks+set}" = set; then
1778 enableval="$enable_spinlocks"
1788 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1789 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1790 { (exit 1); exit 1; }; }
1795 enable_spinlocks=yes
1801 # --enable-debug adds -g to compiler flags
1805 # Check whether --enable-debug or --disable-debug was given.
1806 if test "${enable_debug+set}" = set; then
1807 enableval="$enable_debug"
1817 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1818 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1819 { (exit 1); exit 1; }; }
1834 # For historical reasons you can also use --with-CC to specify the C compiler
1835 # to use, although the standard way to do this is to set the CC environment
1840 # Check whether --with-CC or --without-CC was given.
1841 if test "${with_CC+set}" = set; then
1846 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1847 echo "$as_me: error: argument required for --with-CC option" >&2;}
1848 { (exit 1); exit 1; }; }
1851 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1852 echo "$as_me: error: argument required for --with-CC option" >&2;}
1853 { (exit 1); exit 1; }; }
1864 aix) pgac_cc_list="gcc xlc";;
1865 irix) pgac_cc_list="cc";; # no gcc
1866 *) pgac_cc_list="gcc cc";;
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 if test -n "$ac_tool_prefix"; then
1875 for ac_prog in $pgac_cc_list
1877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$CC" && break
1915 if test -z "$CC"; then
1917 for ac_prog in $pgac_cc_list
1919 # Extract the first word of "$ac_prog", so it can be a program name with args.
1920 set dummy $ac_prog; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="$ac_prog"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1954 test -n "$ac_ct_CC" && break
1961 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1962 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1963 { (exit 1); exit 1; }; }
1965 # Provide some information about the compiler.
1966 echo "$as_me:$LINENO:" \
1967 "checking for C compiler version" >&5
1968 ac_compiler=`set X $ac_compile; echo $2`
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1970 (eval $ac_compiler --version </dev/null >&5) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1975 (eval $ac_compiler -v </dev/null >&5) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1980 (eval $ac_compiler -V </dev/null >&5) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1985 cat >conftest.$ac_ext <<_ACEOF
1986 #line $LINENO "configure"
1987 #include "confdefs.h"
1989 #ifdef F77_DUMMY_MAIN
1993 int F77_DUMMY_MAIN() { return 1; }
2003 ac_clean_files_save=$ac_clean_files
2004 ac_clean_files="$ac_clean_files a.out a.exe"
2005 # Try to create an executable without -o first, disregard a.out.
2006 # It will help us diagnose broken compilers, and finding out an intuition
2008 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2009 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2010 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2011 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2012 (eval $ac_link_default) 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; then
2016 # Find the output, starting from the most likely. This scheme is
2017 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2020 # Be careful to initialize this variable, since it used to be cached.
2021 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2024 ls a.out conftest 2>/dev/null;
2025 ls a.* conftest.* 2>/dev/null`; do
2027 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2028 a.out ) # We found the default executable, but exeext='' is most
2031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2032 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2039 echo "$as_me: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2042 echo "$as_me: error: C compiler cannot create executables" >&2;}
2043 { (exit 77); exit 77; }; }
2046 ac_exeext=$ac_cv_exeext
2047 echo "$as_me:$LINENO: result: $ac_file" >&5
2048 echo "${ECHO_T}$ac_file" >&6
2050 # Check the compiler produces executables we can run. If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055 # If not cross compiling, check that we can run a simple program.
2056 if test "$cross_compiling" != yes; then
2057 if { ac_try='./$ac_file'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 if test "$cross_compiling" = maybe; then
2068 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'." >&5
2070 echo "$as_me: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'." >&2;}
2072 { (exit 1); exit 1; }; }
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2079 rm -f a.out a.exe conftest$ac_cv_exeext
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run. If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2099 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest$ac_cv_exeext
2115 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2116 echo "${ECHO_T}$ac_cv_exeext" >&6
2118 rm -f conftest.$ac_ext
2119 EXEEXT=$ac_cv_exeext
2121 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2122 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2123 if test "${ac_cv_objext+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 #include "confdefs.h"
2130 #ifdef F77_DUMMY_MAIN
2134 int F77_DUMMY_MAIN() { return 1; }
2144 rm -f conftest.o conftest.obj
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2153 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2161 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2162 { (exit 1); exit 1; }; }
2165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2167 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2168 echo "${ECHO_T}$ac_cv_objext" >&6
2169 OBJEXT=$ac_cv_objext
2171 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2172 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2173 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2178 #include "confdefs.h"
2180 #ifdef F77_DUMMY_MAIN
2184 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
2216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2219 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2220 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2221 GCC=`test $ac_compiler_gnu = yes && echo yes`
2222 ac_test_CFLAGS=${CFLAGS+set}
2223 ac_save_CFLAGS=$CFLAGS
2225 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2226 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2227 if test "${ac_cv_prog_cc_g+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line $LINENO "configure"
2232 #include "confdefs.h"
2234 #ifdef F77_DUMMY_MAIN
2238 int F77_DUMMY_MAIN() { return 1; }
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 echo "$as_me: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2266 rm -f conftest.$ac_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2279 if test "$GCC" = yes; then
2285 # Some people use a C++ compiler to compile C. Since we use `exit',
2286 # in C++ we need to declare it. In case someone uses the same compiler
2287 # for both compiling C and C++ we need to have the C++ compiler decide
2288 # the declaration of exit, since it's the most demanding environment.
2289 cat >conftest.$ac_ext <<_ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 for ac_declaration in \
2308 '#include <stdlib.h>' \
2309 'extern "C" void std::exit (int) throw (); using std::exit;' \
2310 'extern "C" void std::exit (int); using std::exit;' \
2311 'extern "C" void exit (int) throw ();' \
2312 'extern "C" void exit (int);' \
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2317 #include "confdefs.h"
2320 #ifdef F77_DUMMY_MAIN
2324 int F77_DUMMY_MAIN() { return 1; }
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line $LINENO "configure"
2355 #include "confdefs.h"
2357 #ifdef F77_DUMMY_MAIN
2361 int F77_DUMMY_MAIN() { return 1; }
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2391 if test -n "$ac_declaration"; then
2392 echo '#ifdef __cplusplus' >>confdefs.h
2393 echo $ac_declaration >>confdefs.h
2394 echo '#endif' >>confdefs.h
2398 echo "$as_me: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2401 rm -f conftest.$ac_objext conftest.$ac_ext
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 . "$srcdir/src/template/$template" || exit
2416 # CFLAGS are selected so:
2417 # If the user specifies something in the environment, that is used.
2418 # else: If the template file set something, that is used.
2419 # else: If the compiler is GCC, then we use -O2.
2420 # else: If the compiler is something else, then we use -0.
2422 if test "$ac_env_CFLAGS_set" = set; then
2423 CFLAGS=$ac_env_CFLAGS_value
2424 elif test "${CFLAGS+set}" = set; then
2425 : # (keep what template set)
2426 elif test "$GCC" = yes; then
2429 # if the user selected debug mode, don't use -O
2430 if test "$enable_debug" != yes; then
2435 if test "$GCC" = yes; then
2436 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
2438 # Some versions of GCC support some additional useful warning flags.
2439 # Check whether they are supported, and add them to CFLAGS if so.
2440 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2441 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2442 pgac_save_CFLAGS=$CFLAGS
2443 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2448 #ifdef F77_DUMMY_MAIN
2452 int F77_DUMMY_MAIN() { return 1; }
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 CFLAGS="$pgac_save_CFLAGS"
2480 echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2485 echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
2486 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6
2487 pgac_save_CFLAGS=$CFLAGS
2488 CFLAGS="$pgac_save_CFLAGS -Wold-style-definition"
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 #include "confdefs.h"
2493 #ifdef F77_DUMMY_MAIN
2497 int F77_DUMMY_MAIN() { return 1; }
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6
2522 echo "$as_me: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 CFLAGS="$pgac_save_CFLAGS"
2525 echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2528 rm -f conftest.$ac_objext conftest.$ac_ext
2530 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2531 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2532 pgac_save_CFLAGS=$CFLAGS
2533 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 #include "confdefs.h"
2538 #ifdef F77_DUMMY_MAIN
2542 int F77_DUMMY_MAIN() { return 1; }
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6
2567 echo "$as_me: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 CFLAGS="$pgac_save_CFLAGS"
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2573 rm -f conftest.$ac_objext conftest.$ac_ext
2576 # Disable strict-aliasing rules; needed for gcc 3.3+
2577 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2578 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2579 pgac_save_CFLAGS=$CFLAGS
2580 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2585 #ifdef F77_DUMMY_MAIN
2589 int F77_DUMMY_MAIN() { return 1; }
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2614 echo "$as_me: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2616 CFLAGS="$pgac_save_CFLAGS"
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2624 # supply -g if --enable-debug
2625 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2629 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2630 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2632 # We already have this in Makefile.win32, but configure needs it too
2633 if test "$PORTNAME" = "win32"; then
2634 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2637 # Check if the compiler still works with the template settings
2638 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2639 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2645 #ifdef F77_DUMMY_MAIN
2649 int F77_DUMMY_MAIN() { return 1; }
2659 rm -f conftest.$ac_objext conftest$ac_exeext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661 (eval $ac_link) 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -s conftest$ac_exeext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 echo "$as_me:$LINENO: result: yes" >&5
2672 echo "${ECHO_T}yes" >&6
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2678 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2679 echo "$as_me: error: cannot proceed" >&2;}
2680 { (exit 1); exit 1; }; }
2682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2684 # Defend against gcc -ffast-math
2685 if test "$GCC" = yes; then
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 #include "confdefs.h"
2690 #ifdef F77_DUMMY_MAIN
2694 int F77_DUMMY_MAIN() { return 1; }
2699 #ifdef __FAST_MATH__
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2723 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2724 { (exit 1); exit 1; }; }
2726 rm -f conftest.$ac_objext conftest.$ac_ext
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2735 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2736 # On Suns, sometimes $CPP names a directory.
2737 if test -n "$CPP" && test -d "$CPP"; then
2740 if test -z "$CPP"; then
2741 if test "${ac_cv_prog_CPP+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 # Double quotes because CPP needs to be expanded
2745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2748 for ac_c_preproc_warn_flag in '' yes
2750 # Use a header file that comes with gcc, so configuring glibc
2751 # with a fresh cross-compiler works.
2752 # On the NeXT, cc -E runs the code through the compiler's parser,
2753 # not just through cpp. "Syntax error" is here to catch this case.
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2763 egrep -v '^ *\+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } >/dev/null; then
2768 if test -s conftest.err; then
2769 ac_cpp_err=$ac_c_preproc_warn_flag
2776 if test -z "$ac_cpp_err"; then
2779 echo "$as_me: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2781 # Broken: fails on valid input.
2784 rm -f conftest.err conftest.$ac_ext
2786 # OK, works on sane cases. Now check whether non-existent headers
2787 # can be detected and how.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 #include "confdefs.h"
2791 #include <ac_nonexistent.h>
2793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2796 egrep -v '^ *\+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2809 if test -z "$ac_cpp_err"; then
2810 # Broken: success on invalid input.
2813 echo "$as_me: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 # Passes both tests.
2819 rm -f conftest.err conftest.$ac_ext
2822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2823 rm -f conftest.err conftest.$ac_ext
2824 if $ac_preproc_ok; then
2836 echo "$as_me:$LINENO: result: $CPP" >&5
2837 echo "${ECHO_T}$CPP" >&6
2839 for ac_c_preproc_warn_flag in '' yes
2841 # Use a header file that comes with gcc, so configuring glibc
2842 # with a fresh cross-compiler works.
2843 # On the NeXT, cc -E runs the code through the compiler's parser,
2844 # not just through cpp. "Syntax error" is here to catch this case.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2847 #include "confdefs.h"
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2854 egrep -v '^ *\+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_c_preproc_warn_flag
2867 if test -z "$ac_cpp_err"; then
2870 echo "$as_me: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 # Broken: fails on valid input.
2875 rm -f conftest.err conftest.$ac_ext
2877 # OK, works on sane cases. Now check whether non-existent headers
2878 # can be detected and how.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #line $LINENO "configure"
2881 #include "confdefs.h"
2882 #include <ac_nonexistent.h>
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 egrep -v '^ *\+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
2900 if test -z "$ac_cpp_err"; then
2901 # Broken: success on invalid input.
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 # Passes both tests.
2910 rm -f conftest.err conftest.$ac_ext
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2918 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2920 { (exit 1); exit 1; }; }
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 # Create compiler version string
2932 if test x"$GCC" = x"yes" ; then
2933 cc_string="GCC `${CC} --version | sed q`"
2938 cat >>confdefs.h <<_ACEOF
2939 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2945 # Set up TAS assembly code if needed; the template file has now had its
2946 # chance to request this.
2948 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2951 if test "$need_tas" = yes ; then
2960 # Automatic dependency tracking
2964 # Check whether --enable-depend or --disable-depend was given.
2965 if test "${enable_depend+set}" = set; then
2966 enableval="$enable_depend"
2976 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2977 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2978 { (exit 1); exit 1; }; }
2991 # Enable assert checks
2995 # Check whether --enable-cassert or --disable-cassert was given.
2996 if test "${enable_cassert+set}" = set; then
2997 enableval="$enable_cassert"
3002 cat >>confdefs.h <<\_ACEOF
3003 #define USE_ASSERT_CHECKING 1
3011 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3012 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3013 { (exit 1); exit 1; }; }
3025 # Include directories
3028 IFS="${IFS}${PATH_SEPARATOR}"
3029 # SRCH_INC comes from the template file
3030 for dir in $with_includes $SRCH_INC; do
3031 if test -d "$dir"; then
3032 INCLUDES="$INCLUDES -I$dir"
3034 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3035 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3043 # Library directories
3046 IFS="${IFS}${PATH_SEPARATOR}"
3047 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3048 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3049 if test -d "$dir"; then
3050 LIBDIRS="$LIBDIRS -L$dir"
3052 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3053 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3059 # Enable thread-safe client libraries
3061 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3062 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3065 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3066 if test "${enable_thread_safety+set}" = set; then
3067 enableval="$enable_thread_safety"
3077 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3078 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3079 { (exit 1); exit 1; }; }
3084 enable_thread_safety=no
3090 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3091 if test "${enable_thread_safety_force+set}" = set; then
3092 enableval="$enable_thread_safety_force"
3102 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3103 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3104 { (exit 1); exit 1; }; }
3109 enable_thread_safety_force=no
3113 if test "$enable_thread_safety" = yes -o \
3114 "$enable_thread_safety_force" = yes; then
3115 enable_thread_safety="yes" # for 'force'
3117 cat >>confdefs.h <<\_ACEOF
3118 #define ENABLE_THREAD_SAFETY 1
3122 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3123 echo "${ECHO_T}$enable_thread_safety" >&6
3127 # Optionally build Tcl modules (PL/Tcl)
3129 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3130 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3134 # Check whether --with-tcl or --without-tcl was given.
3135 if test "${with_tcl+set}" = set; then
3146 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3147 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3148 { (exit 1); exit 1; }; }
3157 echo "$as_me:$LINENO: result: $with_tcl" >&5
3158 echo "${ECHO_T}$with_tcl" >&6
3161 # We see if the path to the Tcl/Tk configuration scripts is specified.
3162 # This will override the use of tclsh to find the paths to search.
3167 # Check whether --with-tclconfig or --without-tclconfig was given.
3168 if test "${with_tclconfig+set}" = set; then
3169 withval="$with_tclconfig"
3173 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3174 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3175 { (exit 1); exit 1; }; }
3178 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3179 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3180 { (exit 1); exit 1; }; }
3191 # Optionally build Perl modules (PL/Perl)
3193 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3194 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3198 # Check whether --with-perl or --without-perl was given.
3199 if test "${with_perl+set}" = set; then
3200 withval="$with_perl"
3210 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3211 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3212 { (exit 1); exit 1; }; }
3221 echo "$as_me:$LINENO: result: $with_perl" >&5
3222 echo "${ECHO_T}$with_perl" >&6
3226 # Optionally build Python modules (PL/Python)
3228 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3229 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3233 # Check whether --with-python or --without-python was given.
3234 if test "${with_python+set}" = set; then
3235 withval="$with_python"
3245 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3246 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3247 { (exit 1); exit 1; }; }
3256 echo "$as_me:$LINENO: result: $with_python" >&5
3257 echo "${ECHO_T}$with_python" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3268 # Check whether --with-krb4 or --without-krb4 was given.
3269 if test "${with_krb4+set}" = set; then
3270 withval="$with_krb4"
3276 cat >>confdefs.h <<\_ACEOF
3280 krb_srvtab="/etc/srvtab"
3287 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3288 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3289 { (exit 1); exit 1; }; }
3298 echo "$as_me:$LINENO: result: $with_krb4" >&5
3299 echo "${ECHO_T}$with_krb4" >&6
3306 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3307 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3311 # Check whether --with-krb5 or --without-krb5 was given.
3312 if test "${with_krb5+set}" = set; then
3313 withval="$with_krb5"
3319 cat >>confdefs.h <<\_ACEOF
3323 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3330 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3331 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3332 { (exit 1); exit 1; }; }
3341 echo "$as_me:$LINENO: result: $with_krb5" >&5
3342 echo "${ECHO_T}$with_krb5" >&6
3346 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3347 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3348 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3349 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3350 { (exit 1); exit 1; }; }
3357 # Kerberos configuration parameters
3362 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3363 if test "${with_krb_srvnam+set}" = set; then
3364 withval="$with_krb_srvnam"
3368 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3369 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3370 { (exit 1); exit 1; }; }
3373 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3374 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3375 { (exit 1); exit 1; }; }
3383 with_krb_srvnam="postgres"
3387 cat >>confdefs.h <<_ACEOF
3388 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3396 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3397 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3401 # Check whether --with-pam or --without-pam was given.
3402 if test "${with_pam+set}" = set; then
3408 cat >>confdefs.h <<\_ACEOF
3417 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3418 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3419 { (exit 1); exit 1; }; }
3428 echo "$as_me:$LINENO: result: $with_pam" >&5
3429 echo "${ECHO_T}$with_pam" >&6
3436 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3437 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3441 # Check whether --with-rendezvous or --without-rendezvous was given.
3442 if test "${with_rendezvous+set}" = set; then
3443 withval="$with_rendezvous"
3448 cat >>confdefs.h <<\_ACEOF
3449 #define USE_RENDEZVOUS 1
3457 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3458 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3459 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3469 echo "${ECHO_T}$with_rendezvous" >&6
3476 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3477 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3481 # Check whether --with-openssl or --without-openssl was given.
3482 if test "${with_openssl+set}" = set; then
3483 withval="$with_openssl"
3488 cat >>confdefs.h <<\_ACEOF
3497 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3498 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3499 { (exit 1); exit 1; }; }
3508 echo "$as_me:$LINENO: result: $with_openssl" >&5
3509 echo "${ECHO_T}$with_openssl" >&6
3519 # Check whether --with-readline or --without-readline was given.
3520 if test "${with_readline+set}" = set; then
3521 withval="$with_readline"
3531 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3532 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3533 { (exit 1); exit 1; }; }
3542 # readline on MinGW has problems with backslashes in psql and other bugs.
3543 # This is particularly a problem with non-US code pages.
3544 # Therefore disable its use until we understand the cause. 2004-07-20
3545 if test "$PORTNAME" = "win32"; then
3546 if test "$with_readline" = yes; then
3547 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3548 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3560 # Check whether --with-zlib or --without-zlib was given.
3561 if test "${with_zlib+set}" = set; then
3562 withval="$with_zlib"
3572 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3573 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3574 { (exit 1); exit 1; }; }
3588 # Assume system is ELF if it predefines __ELF__ as 1,
3589 # otherwise believe host_os based default.
3591 freebsd1*|freebsd2*) elf=no;;
3592 freebsd3*|freebsd4*) elf=yes;;
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 #include "confdefs.h"
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 egrep "yes" >/dev/null 2>&1; then
3608 if test "X$elf" = "Xyes" ; then
3622 CPPFLAGS="$CPPFLAGS $INCLUDES"
3623 LDFLAGS="$LDFLAGS $LIBDIRS"
3625 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3626 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3627 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3628 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3632 for ac_prog in gawk mawk nawk awk
3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3635 set dummy $ac_prog; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_AWK+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test -n "$AWK"; then
3642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_AWK="$ac_prog"
3652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test -n "$AWK"; then
3662 echo "$as_me:$LINENO: result: $AWK" >&5
3663 echo "${ECHO_T}$AWK" >&6
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3669 test -n "$AWK" && break
3672 echo "$as_me:$LINENO: checking for flex" >&5
3673 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3674 if test "${pgac_cv_path_flex+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 # Let the user override the test
3678 if test -n "$FLEX"; then
3679 pgac_cv_path_flex=$FLEX
3683 for pgac_dir in $PATH; do
3685 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3688 for pgac_prog in flex lex; do
3689 pgac_candidate="$pgac_dir/$pgac_prog"
3690 if test -f "$pgac_candidate" \
3691 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3693 echo '%%' > conftest.l
3694 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3695 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3696 pgac_broken_flex=$pgac_candidate
3700 pgac_cv_path_flex=$pgac_candidate
3706 rm -f conftest.l lex.yy.c
3707 : ${pgac_cv_path_flex=no}
3711 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3712 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3713 if test x"$pgac_cv_path_flex" = x"no"; then
3714 if test -n "$pgac_broken_flex"; then
3715 { echo "$as_me:$LINENO: WARNING:
3716 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3717 *** should get version 2.5.4 or later." >&5
3718 echo "$as_me: WARNING:
3719 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3720 *** should get version 2.5.4 or later." >&2;}
3723 { echo "$as_me:$LINENO: WARNING:
3724 *** Without Flex you will not be able to build PostgreSQL from CVS or
3725 *** change any of the scanner definition files. You can obtain Flex from
3726 *** a GNU mirror site. (If you are using the official distribution of
3727 *** PostgreSQL then you do not need to worry about this because the Flex
3728 *** output is pre-generated.)" >&5
3729 echo "$as_me: WARNING:
3730 *** Without Flex you will not be able to build PostgreSQL from CVS or
3731 *** change any of the scanner definition files. You can obtain Flex from
3732 *** a GNU mirror site. (If you are using the official distribution of
3733 *** PostgreSQL then you do not need to worry about this because the Flex
3734 *** output is pre-generated.)" >&2;}
3737 if test x"$pgac_cv_path_flex" = x"no"; then
3740 FLEX=$pgac_cv_path_flex
3746 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3749 if test "$LN_S" = "ln -s"; then
3750 echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6
3753 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3754 echo "${ECHO_T}no, using $LN_S" >&6
3758 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3759 if test "${with_gnu_ld+set}" = set; then
3760 withval="$with_gnu_ld"
3761 test "$withval" = no || with_gnu_ld=yes
3766 if test "$GCC" = yes; then
3767 # Check if gcc -print-prog-name=ld gives a path.
3768 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3769 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3772 # gcc leaves a trailing carriage return which upsets mingw
3773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3778 # Accept absolute paths.
3779 [\\/]* | [A-Za-z]:[\\/]*)
3780 re_direlt='/[^/][^/]*/\.\./'
3781 # Canonicalize the path of ld
3782 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3783 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3784 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3786 test -z "$LD" && LD="$ac_prog"
3789 # If it fails, then pretend we aren't using GCC.
3793 # If it is relative, then search for the first ld in PATH.
3797 elif test "$with_gnu_ld" = yes; then
3798 echo "$as_me:$LINENO: checking for GNU ld" >&5
3799 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3801 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3802 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3804 if test "${ac_cv_path_LD+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -z "$LD"; then
3808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3809 for ac_dir in $PATH; do
3810 test -z "$ac_dir" && ac_dir=.
3811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3812 ac_cv_path_LD="$ac_dir/$ac_prog"
3813 # Check to see if the program is GNU ld. I'd rather use --version,
3814 # but apparently some GNU ld's only accept -v.
3815 # Break only if it was the GNU/non-GNU ld that we prefer.
3816 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3817 test "$with_gnu_ld" != no && break
3819 test "$with_gnu_ld" != yes && break
3825 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3830 if test -n "$LD"; then
3831 echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3834 echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3837 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3838 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3839 { (exit 1); exit 1; }; }
3840 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3841 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3842 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3846 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3847 ac_cv_prog_gnu_ld=yes
3849 ac_cv_prog_gnu_ld=no
3852 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3853 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3854 with_gnu_ld=$ac_cv_prog_gnu_ld
3859 case $host_os in sysv5*)
3860 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3861 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3862 if test "${pgac_cv_prog_ld_R+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3867 cat >conftest.$ac_ext <<_ACEOF
3868 #line $LINENO "configure"
3869 #include "confdefs.h"
3871 #ifdef F77_DUMMY_MAIN
3875 int F77_DUMMY_MAIN() { return 1; }
3885 rm -f conftest.$ac_objext conftest$ac_exeext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3887 (eval $ac_link) 2>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -s conftest$ac_exeext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 pgac_cv_prog_ld_R=yes
3899 echo "$as_me: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 pgac_cv_prog_ld_R=no
3903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3904 LDFLAGS=$pgac_save_LDFLAGS
3907 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3908 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3909 ld_R_works=$pgac_cv_prog_ld_R
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3915 echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_RANLIB+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -n "$RANLIB"; then
3921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 RANLIB=$ac_cv_prog_RANLIB
3940 if test -n "$RANLIB"; then
3941 echo "$as_me:$LINENO: result: $RANLIB" >&5
3942 echo "${ECHO_T}$RANLIB" >&6
3944 echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3949 if test -z "$ac_cv_prog_RANLIB"; then
3950 ac_ct_RANLIB=$RANLIB
3951 # Extract the first word of "ranlib", so it can be a program name with args.
3952 set dummy ranlib; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$ac_ct_RANLIB"; then
3959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_ac_ct_RANLIB="ranlib"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3979 if test -n "$ac_ct_RANLIB"; then
3980 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3981 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3983 echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3987 RANLIB=$ac_ct_RANLIB
3989 RANLIB="$ac_cv_prog_RANLIB"
3992 for ac_prog in lorder
3994 # Extract the first word of "$ac_prog", so it can be a program name with args.
3995 set dummy $ac_prog; ac_word=$2
3996 echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998 if test "${ac_cv_prog_LORDER+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if test -n "$LORDER"; then
4002 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_LORDER="$ac_prog"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 LORDER=$ac_cv_prog_LORDER
4021 if test -n "$LORDER"; then
4022 echo "$as_me:$LINENO: result: $LORDER" >&5
4023 echo "${ECHO_T}$LORDER" >&6
4025 echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4029 test -n "$LORDER" && break
4032 # Extract the first word of "tar", so it can be a program name with args.
4033 set dummy tar; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_path_TAR+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 if test -n "$TAR"; then
4064 echo "$as_me:$LINENO: result: $TAR" >&5
4065 echo "${ECHO_T}$TAR" >&6
4067 echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}strip; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_STRIP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$STRIP"; then
4081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 STRIP=$ac_cv_prog_STRIP
4100 if test -n "$STRIP"; then
4101 echo "$as_me:$LINENO: result: $STRIP" >&5
4102 echo "${ECHO_T}$STRIP" >&6
4104 echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4109 if test -z "$ac_cv_prog_STRIP"; then
4111 # Extract the first word of "strip", so it can be a program name with args.
4112 set dummy strip; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$ac_ct_STRIP"; then
4119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_STRIP="strip"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4139 if test -n "$ac_ct_STRIP"; then
4140 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4141 echo "${ECHO_T}$ac_ct_STRIP" >&6
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4149 STRIP="$ac_cv_prog_STRIP"
4153 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4154 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4155 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4156 STRIP_STATIC_LIB="$STRIP -x"
4157 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4158 echo "$as_me:$LINENO: result: yes" >&5
4159 echo "${ECHO_T}yes" >&6
4163 echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6
4170 for ac_prog in 'bison -y'
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_YACC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 if test -n "$YACC"; then
4180 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_YACC="$ac_prog"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 YACC=$ac_cv_prog_YACC
4199 if test -n "$YACC"; then
4200 echo "$as_me:$LINENO: result: $YACC" >&5
4201 echo "${ECHO_T}$YACC" >&6
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4207 test -n "$YACC" && break
4211 if test "$YACC"; then
4212 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4213 { echo "$as_me:$LINENO: WARNING:
4214 *** If you are going to modify the grammar files or build from CVS, the installed
4215 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4216 echo "$as_me: WARNING:
4217 *** If you are going to modify the grammar files or build from CVS, the installed
4218 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4222 if test -z "$YACC"; then
4223 { echo "$as_me:$LINENO: WARNING:
4224 *** Without Bison you will not be able to build PostgreSQL from CVS or
4225 *** change any of the parser definition files. You can obtain Bison from
4226 *** a GNU mirror site. (If you are using the official distribution of
4227 *** PostgreSQL then you do not need to worry about this because the Bison
4228 *** output is pre-generated.) To use a different yacc program (possible,
4229 *** but not recommended), set the environment variable YACC before running
4230 *** 'configure'." >&5
4231 echo "$as_me: WARNING:
4232 *** Without Bison you will not be able to build PostgreSQL from CVS or
4233 *** change any of the parser definition files. You can obtain Bison from
4234 *** a GNU mirror site. (If you are using the official distribution of
4235 *** PostgreSQL then you do not need to worry about this because the Bison
4236 *** output is pre-generated.) To use a different yacc program (possible,
4237 *** but not recommended), set the environment variable YACC before running
4238 *** 'configure'." >&2;}
4242 # Extract the first word of "perl", so it can be a program name with args.
4243 set dummy perl; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_path_PERL+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 PERL=$ac_cv_path_PERL
4273 if test -n "$PERL"; then
4274 echo "$as_me:$LINENO: result: $PERL" >&5
4275 echo "${ECHO_T}$PERL" >&6
4277 echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4281 if test "$with_perl" = yes; then
4283 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4284 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4285 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4286 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4287 echo "${ECHO_T}$perl_archlibexp" >&6
4288 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4289 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4290 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4291 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4292 echo "${ECHO_T}$perl_privlibexp" >&6
4293 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4294 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4295 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4296 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4297 echo "${ECHO_T}$perl_useshrplib" >&6
4299 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4300 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4301 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4302 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4303 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4304 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4305 echo "${ECHO_T}$perl_embed_ldflags" >&6
4308 if test "$with_python" = yes; then
4309 # Extract the first word of "python", so it can be a program name with args.
4310 set dummy python; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_PYTHON+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 PYTHON=$ac_cv_path_PYTHON
4340 if test -n "$PYTHON"; then
4341 echo "$as_me:$LINENO: result: $PYTHON" >&5
4342 echo "${ECHO_T}$PYTHON" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4348 if test x"$PYTHON" = x""; then
4349 { { echo "$as_me:$LINENO: error: Python not found" >&5
4350 echo "$as_me: error: Python not found" >&2;}
4351 { (exit 1); exit 1; }; }
4355 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4356 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4357 if "${PYTHON}" 2>&- -c 'import distutils'
4359 echo "$as_me:$LINENO: result: yes" >&5
4360 echo "${ECHO_T}yes" >&6
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4365 echo "$as_me: error: distutils module not found" >&2;}
4366 { (exit 1); exit 1; }; }
4368 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4369 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4370 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4371 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
4372 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4374 # This should be enough of a message.
4375 echo "$as_me:$LINENO: result: $python_configdir" >&5
4376 echo "${ECHO_T}$python_configdir" >&6
4379 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4380 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4382 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4383 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4384 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4385 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4387 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4389 # New way: use the official shared library
4390 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4391 python_libspec="-L${python_libdir} -l${ldlibrary}"
4393 # Old way: use libpython from python_configdir
4394 python_libdir="${python_configdir}"
4395 python_libspec="-L${python_libdir} -lpython${python_version}"
4398 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4400 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4401 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4411 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4414 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4415 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4416 if test "${ac_cv_lib_bsd_main+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 ac_check_lib_save_LIBS=$LIBS
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4423 #include "confdefs.h"
4426 #ifdef F77_DUMMY_MAIN
4430 int F77_DUMMY_MAIN() { return 1; }
4440 rm -f conftest.$ac_objext conftest$ac_exeext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442 (eval $ac_link) 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -s conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_lib_bsd_main=yes
4454 echo "$as_me: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4456 ac_cv_lib_bsd_main=no
4458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4459 LIBS=$ac_check_lib_save_LIBS
4461 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4462 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4463 if test $ac_cv_lib_bsd_main = yes; then
4464 cat >>confdefs.h <<_ACEOF
4465 #define HAVE_LIBBSD 1
4474 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4475 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4476 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_check_lib_save_LIBS=$LIBS
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4485 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4491 char setproctitle ();
4492 #ifdef F77_DUMMY_MAIN
4496 int F77_DUMMY_MAIN() { return 1; }
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_lib_util_setproctitle=yes
4520 echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 ac_cv_lib_util_setproctitle=no
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 LIBS=$ac_check_lib_save_LIBS
4527 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4528 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4529 if test $ac_cv_lib_util_setproctitle = yes; then
4530 cat >>confdefs.h <<_ACEOF
4531 #define HAVE_LIBUTIL 1
4539 echo "$as_me:$LINENO: checking for main in -lm" >&5
4540 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4541 if test "${ac_cv_lib_m_main+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_check_lib_save_LIBS=$LIBS
4546 cat >conftest.$ac_ext <<_ACEOF
4547 #line $LINENO "configure"
4548 #include "confdefs.h"
4551 #ifdef F77_DUMMY_MAIN
4555 int F77_DUMMY_MAIN() { return 1; }
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 (eval $ac_link) 2>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_lib_m_main=yes
4579 echo "$as_me: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4584 LIBS=$ac_check_lib_save_LIBS
4586 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4587 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4588 if test $ac_cv_lib_m_main = yes; then
4589 cat >>confdefs.h <<_ACEOF
4598 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4599 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4600 if test "${ac_cv_lib_dl_main+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 ac_check_lib_save_LIBS=$LIBS
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4610 #ifdef F77_DUMMY_MAIN
4614 int F77_DUMMY_MAIN() { return 1; }
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest$ac_exeext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_lib_dl_main=yes
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_cv_lib_dl_main=no
4642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4643 LIBS=$ac_check_lib_save_LIBS
4645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4646 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4647 if test $ac_cv_lib_dl_main = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define HAVE_LIBDL 1
4657 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4658 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4659 if test "${ac_cv_lib_nsl_main+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_check_lib_save_LIBS=$LIBS
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4669 #ifdef F77_DUMMY_MAIN
4673 int F77_DUMMY_MAIN() { return 1; }
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest$ac_exeext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_lib_nsl_main=yes
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_cv_lib_nsl_main=no
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$ac_check_lib_save_LIBS
4704 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4705 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4706 if test $ac_cv_lib_nsl_main = yes; then
4707 cat >>confdefs.h <<_ACEOF
4708 #define HAVE_LIBNSL 1
4716 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4717 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4718 if test "${ac_cv_lib_socket_main+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 ac_check_lib_save_LIBS=$LIBS
4722 LIBS="-lsocket $LIBS"
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4728 #ifdef F77_DUMMY_MAIN
4732 int F77_DUMMY_MAIN() { return 1; }
4742 rm -f conftest.$ac_objext conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -s conftest$ac_exeext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_lib_socket_main=yes
4756 echo "$as_me: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 ac_cv_lib_socket_main=no
4760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4761 LIBS=$ac_check_lib_save_LIBS
4763 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4764 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4765 if test $ac_cv_lib_socket_main = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767 #define HAVE_LIBSOCKET 1
4770 LIBS="-lsocket $LIBS"
4775 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4776 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4777 if test "${ac_cv_lib_ipc_main+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_check_lib_save_LIBS=$LIBS
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 #include "confdefs.h"
4787 #ifdef F77_DUMMY_MAIN
4791 int F77_DUMMY_MAIN() { return 1; }
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -s conftest$ac_exeext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_cv_lib_ipc_main=yes
4815 echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_ipc_main=no
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4822 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4823 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4824 if test $ac_cv_lib_ipc_main = yes; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define HAVE_LIBIPC 1
4834 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4835 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4836 if test "${ac_cv_lib_IPC_main+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_check_lib_save_LIBS=$LIBS
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4846 #ifdef F77_DUMMY_MAIN
4850 int F77_DUMMY_MAIN() { return 1; }
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_lib_IPC_main=yes
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 ac_cv_lib_IPC_main=no
4878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4881 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4882 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4883 if test $ac_cv_lib_IPC_main = yes; then
4884 cat >>confdefs.h <<_ACEOF
4885 #define HAVE_LIBIPC 1
4893 echo "$as_me:$LINENO: checking for main in -llc" >&5
4894 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4895 if test "${ac_cv_lib_lc_main+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_check_lib_save_LIBS=$LIBS
4900 cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4902 #include "confdefs.h"
4905 #ifdef F77_DUMMY_MAIN
4909 int F77_DUMMY_MAIN() { return 1; }
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -s conftest$ac_exeext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_lib_lc_main=yes
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_cv_lib_lc_main=no
4937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4938 LIBS=$ac_check_lib_save_LIBS
4940 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4941 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4942 if test $ac_cv_lib_lc_main = yes; then
4943 cat >>confdefs.h <<_ACEOF
4944 #define HAVE_LIBLC 1
4952 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4953 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4954 if test "${ac_cv_lib_dld_main+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 ac_check_lib_save_LIBS=$LIBS
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4964 #ifdef F77_DUMMY_MAIN
4968 int F77_DUMMY_MAIN() { return 1; }
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980 (eval $ac_link) 2>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_lib_dld_main=yes
4992 echo "$as_me: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 ac_cv_lib_dld_main=no
4996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997 LIBS=$ac_check_lib_save_LIBS
4999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5000 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5001 if test $ac_cv_lib_dld_main = yes; then
5002 cat >>confdefs.h <<_ACEOF
5003 #define HAVE_LIBDLD 1
5011 echo "$as_me:$LINENO: checking for main in -lld" >&5
5012 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5013 if test "${ac_cv_lib_ld_main+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 ac_check_lib_save_LIBS=$LIBS
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 #include "confdefs.h"
5023 #ifdef F77_DUMMY_MAIN
5027 int F77_DUMMY_MAIN() { return 1; }
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039 (eval $ac_link) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_cv_lib_ld_main=yes
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 ac_cv_lib_ld_main=no
5055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5056 LIBS=$ac_check_lib_save_LIBS
5058 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5059 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5060 if test $ac_cv_lib_ld_main = yes; then
5061 cat >>confdefs.h <<_ACEOF
5062 #define HAVE_LIBLD 1
5070 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5071 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5072 if test "${ac_cv_lib_compat_main+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_check_lib_save_LIBS=$LIBS
5076 LIBS="-lcompat $LIBS"
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 #include "confdefs.h"
5082 #ifdef F77_DUMMY_MAIN
5086 int F77_DUMMY_MAIN() { return 1; }
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_lib_compat_main=yes
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 ac_cv_lib_compat_main=no
5114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5115 LIBS=$ac_check_lib_save_LIBS
5117 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5118 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5119 if test $ac_cv_lib_compat_main = yes; then
5120 cat >>confdefs.h <<_ACEOF
5121 #define HAVE_LIBCOMPAT 1
5124 LIBS="-lcompat $LIBS"
5129 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5130 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5131 if test "${ac_cv_lib_BSD_main+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 ac_check_lib_save_LIBS=$LIBS
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 #include "confdefs.h"
5141 #ifdef F77_DUMMY_MAIN
5145 int F77_DUMMY_MAIN() { return 1; }
5155 rm -f conftest.$ac_objext conftest$ac_exeext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5157 (eval $ac_link) 2>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -s conftest$ac_exeext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 ac_cv_lib_BSD_main=yes
5169 echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 ac_cv_lib_BSD_main=no
5173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5176 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5177 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5178 if test $ac_cv_lib_BSD_main = yes; then
5179 cat >>confdefs.h <<_ACEOF
5180 #define HAVE_LIBBSD 1
5188 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5189 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5190 if test "${ac_cv_lib_gen_main+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_check_lib_save_LIBS=$LIBS
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5200 #ifdef F77_DUMMY_MAIN
5204 int F77_DUMMY_MAIN() { return 1; }
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_lib_gen_main=yes
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_lib_gen_main=no
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5235 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5236 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5237 if test $ac_cv_lib_gen_main = yes; then
5238 cat >>confdefs.h <<_ACEOF
5239 #define HAVE_LIBGEN 1
5247 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5248 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5249 if test "${ac_cv_lib_PW_main+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 ac_check_lib_save_LIBS=$LIBS
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5256 #include "confdefs.h"
5259 #ifdef F77_DUMMY_MAIN
5263 int F77_DUMMY_MAIN() { return 1; }
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_lib_PW_main=yes
5287 echo "$as_me: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5289 ac_cv_lib_PW_main=no
5291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5295 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5296 if test $ac_cv_lib_PW_main = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_LIBPW 1
5306 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5307 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5308 if test "${ac_cv_lib_resolv_main+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lresolv $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 #include "confdefs.h"
5318 #ifdef F77_DUMMY_MAIN
5322 int F77_DUMMY_MAIN() { return 1; }
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_cv_lib_resolv_main=yes
5346 echo "$as_me: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 ac_cv_lib_resolv_main=no
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 LIBS=$ac_check_lib_save_LIBS
5353 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5354 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5355 if test $ac_cv_lib_resolv_main = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define HAVE_LIBRESOLV 1
5360 LIBS="-lresolv $LIBS"
5364 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5365 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5366 if test "${ac_cv_search_getopt_long+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 ac_func_search_save_LIBS=$LIBS
5370 ac_cv_search_getopt_long=no
5371 cat >conftest.$ac_ext <<_ACEOF
5372 #line $LINENO "configure"
5373 #include "confdefs.h"
5375 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char getopt_long ();
5382 #ifdef F77_DUMMY_MAIN
5386 int F77_DUMMY_MAIN() { return 1; }
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_search_getopt_long="none required"
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5414 if test "$ac_cv_search_getopt_long" = no; then
5415 for ac_lib in getopt gnugetopt; do
5416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 #include "confdefs.h"
5421 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5427 char getopt_long ();
5428 #ifdef F77_DUMMY_MAIN
5432 int F77_DUMMY_MAIN() { return 1; }
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444 (eval $ac_link) 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -s conftest$ac_exeext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_cv_search_getopt_long="-l$ac_lib"
5457 echo "$as_me: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5463 LIBS=$ac_func_search_save_LIBS
5465 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5466 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5467 if test "$ac_cv_search_getopt_long" != no; then
5468 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5474 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5475 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5476 if test "${ac_cv_lib_unix_main+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_check_lib_save_LIBS=$LIBS
5481 cat >conftest.$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 #include "confdefs.h"
5486 #ifdef F77_DUMMY_MAIN
5490 int F77_DUMMY_MAIN() { return 1; }
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest$ac_exeext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 ac_cv_lib_unix_main=yes
5514 echo "$as_me: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 ac_cv_lib_unix_main=no
5518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5519 LIBS=$ac_check_lib_save_LIBS
5521 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5522 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5523 if test $ac_cv_lib_unix_main = yes; then
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_LIBUNIX 1
5532 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5533 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5534 if test "${ac_cv_search_crypt+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 ac_func_search_save_LIBS=$LIBS
5538 ac_cv_search_crypt=no
5539 cat >conftest.$ac_ext <<_ACEOF
5540 #line $LINENO "configure"
5541 #include "confdefs.h"
5543 /* Override any gcc2 internal prototype to avoid an error. */
5547 /* We use char because int might match the return type of a gcc2
5548 builtin and then its argument prototype would still apply. */
5550 #ifdef F77_DUMMY_MAIN
5554 int F77_DUMMY_MAIN() { return 1; }
5564 rm -f conftest.$ac_objext conftest$ac_exeext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5566 (eval $ac_link) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -s conftest$ac_exeext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_search_crypt="none required"
5578 echo "$as_me: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5582 if test "$ac_cv_search_crypt" = no; then
5583 for ac_lib in crypt; do
5584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5585 cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 #include "confdefs.h"
5589 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5596 #ifdef F77_DUMMY_MAIN
5600 int F77_DUMMY_MAIN() { return 1; }
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_search_crypt="-l$ac_lib"
5625 echo "$as_me: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_func_search_save_LIBS
5633 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5634 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5635 if test "$ac_cv_search_crypt" != no; then
5636 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5641 if test "$PORTNAME" = "beos"
5644 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5645 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5646 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_check_lib_save_LIBS=$LIBS
5651 cat >conftest.$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5653 #include "confdefs.h"
5655 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5661 char __inet_ntoa ();
5662 #ifdef F77_DUMMY_MAIN
5666 int F77_DUMMY_MAIN() { return 1; }
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_lib_bind___inet_ntoa=yes
5690 echo "$as_me: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5692 ac_cv_lib_bind___inet_ntoa=no
5694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695 LIBS=$ac_check_lib_save_LIBS
5697 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5698 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5699 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5700 cat >>confdefs.h <<_ACEOF
5701 #define HAVE_LIBBIND 1
5710 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5711 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5712 if test "${ac_cv_search_fdatasync+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 ac_func_search_save_LIBS=$LIBS
5716 ac_cv_search_fdatasync=no
5717 cat >conftest.$ac_ext <<_ACEOF
5718 #line $LINENO "configure"
5719 #include "confdefs.h"
5721 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5728 #ifdef F77_DUMMY_MAIN
5732 int F77_DUMMY_MAIN() { return 1; }
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744 (eval $ac_link) 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -s conftest$ac_exeext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 ac_cv_search_fdatasync="none required"
5756 echo "$as_me: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760 if test "$ac_cv_search_fdatasync" = no; then
5761 for ac_lib in rt posix4; do
5762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 #include "confdefs.h"
5767 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5774 #ifdef F77_DUMMY_MAIN
5778 int F77_DUMMY_MAIN() { return 1; }
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790 (eval $ac_link) 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -s conftest$ac_exeext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_search_fdatasync="-l$ac_lib"
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$ac_func_search_save_LIBS
5811 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5812 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5813 if test "$ac_cv_search_fdatasync" != no; then
5814 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5820 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5821 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5822 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 ac_check_lib_save_LIBS=$LIBS
5826 LIBS="-lcygipc $LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 #include "confdefs.h"
5831 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5838 #ifdef F77_DUMMY_MAIN
5842 int F77_DUMMY_MAIN() { return 1; }
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -s conftest$ac_exeext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_lib_cygipc_shmget=yes
5866 echo "$as_me: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 ac_cv_lib_cygipc_shmget=no
5870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871 LIBS=$ac_check_lib_save_LIBS
5873 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5874 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5875 if test $ac_cv_lib_cygipc_shmget = yes; then
5876 cat >>confdefs.h <<_ACEOF
5877 #define HAVE_LIBCYGIPC 1
5880 LIBS="-lcygipc $LIBS"
5885 if test "$PORTNAME" = "win32"
5888 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5889 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5890 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 ac_check_lib_save_LIBS=$LIBS
5894 LIBS="-lwsock32 $LIBS"
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 #include "confdefs.h"
5900 #ifdef F77_DUMMY_MAIN
5904 int F77_DUMMY_MAIN() { return 1; }
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_lib_wsock32_main=yes
5928 echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_cv_lib_wsock32_main=no
5932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5935 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5936 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5937 if test $ac_cv_lib_wsock32_main = yes; then
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LIBWSOCK32 1
5942 LIBS="-lwsock32 $LIBS"
5948 if test "$with_readline" = yes; then
5950 echo "$as_me:$LINENO: checking for readline" >&5
5951 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5953 if test "${pgac_cv_check_readline+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 pgac_cv_check_readline=no
5957 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5958 for pgac_rllib in -lreadline -ledit ; do
5959 pgac_save_LIBS=$LIBS
5960 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5961 cat >conftest.$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5963 #include "confdefs.h"
5965 /* Override any gcc2 internal prototype to avoid an error. */
5969 /* We use char because int might match the return type of a gcc2
5970 builtin and then its argument prototype would still apply. */
5972 #ifdef F77_DUMMY_MAIN
5976 int F77_DUMMY_MAIN() { return 1; }
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988 (eval $ac_link) 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -s conftest$ac_exeext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5999 # NetBSD, OpenBSD, and Irix have a broken linker that does not
6000 # recognize dependent libraries
6001 case $host_os in netbsd* | openbsd* | irix*)
6004 *) pgac_lib=" -lcurses" ;;
6008 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6012 echo "$as_me: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$pgac_save_LIBS
6019 LIBS=$pgac_save_LIBS
6023 if test "$pgac_cv_check_readline" != no ; then
6025 cat >>confdefs.h <<\_ACEOF
6026 #define HAVE_LIBREADLINE 1
6029 LIBS="$pgac_cv_check_readline $LIBS"
6030 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6031 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6033 echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6036 if test x"$pgac_cv_check_readline" = x"no"; then
6037 { { echo "$as_me:$LINENO: error: readline library not found
6038 If you have readline already installed, see config.log for details on the
6039 failure. It is possible the compiler isn't looking in the proper directory.
6040 Use --without-readline to disable readline support." >&5
6041 echo "$as_me: error: readline library not found
6042 If you have readline already installed, see config.log for details on the
6043 failure. It is possible the compiler isn't looking in the proper directory.
6044 Use --without-readline to disable readline support." >&2;}
6045 { (exit 1); exit 1; }; }
6049 if test "$with_zlib" = yes; then
6051 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6052 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6053 if test "${ac_cv_lib_z_inflate+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 ac_check_lib_save_LIBS=$LIBS
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 #include "confdefs.h"
6062 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6069 #ifdef F77_DUMMY_MAIN
6073 int F77_DUMMY_MAIN() { return 1; }
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_lib_z_inflate=yes
6097 echo "$as_me: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 ac_cv_lib_z_inflate=no
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6105 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6106 if test $ac_cv_lib_z_inflate = yes; then
6107 cat >>confdefs.h <<_ACEOF
6114 { { echo "$as_me:$LINENO: error: zlib library not found
6115 If you have zlib already installed, see config.log for details on the
6116 failure. It is possible the compiler isn't looking in the proper directory.
6117 Use --without-zlib to disable zlib support." >&5
6118 echo "$as_me: error: zlib library not found
6119 If you have zlib already installed, see config.log for details on the
6120 failure. It is possible the compiler isn't looking in the proper directory.
6121 Use --without-zlib to disable zlib support." >&2;}
6122 { (exit 1); exit 1; }; }
6127 if test "$enable_spinlocks" = yes; then
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_SPINLOCKS 1
6134 { echo "$as_me:$LINENO: WARNING:
6135 *** Not using spinlocks will cause poor performance." >&5
6136 echo "$as_me: WARNING:
6137 *** Not using spinlocks will cause poor performance." >&2;}
6140 if test "$with_krb4" = yes ; then
6142 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6143 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6144 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 ac_check_lib_save_LIBS=$LIBS
6149 cat >conftest.$ac_ext <<_ACEOF
6150 #line $LINENO "configure"
6151 #include "confdefs.h"
6153 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char des_encrypt ();
6160 #ifdef F77_DUMMY_MAIN
6164 int F77_DUMMY_MAIN() { return 1; }
6174 rm -f conftest.$ac_objext conftest$ac_exeext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176 (eval $ac_link) 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -s conftest$ac_exeext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_lib_des_des_encrypt=yes
6188 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 ac_cv_lib_des_des_encrypt=no
6192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_check_lib_save_LIBS
6195 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6196 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6197 if test $ac_cv_lib_des_des_encrypt = yes; then
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_LIBDES 1
6205 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6206 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6207 { (exit 1); exit 1; }; }
6211 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6212 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6213 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 ac_check_lib_save_LIBS=$LIBS
6218 cat >conftest.$ac_ext <<_ACEOF
6219 #line $LINENO "configure"
6220 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */
6226 /* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6228 char krb_sendauth ();
6229 #ifdef F77_DUMMY_MAIN
6233 int F77_DUMMY_MAIN() { return 1; }
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6245 (eval $ac_link) 2>&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -s conftest$ac_exeext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_lib_krb_krb_sendauth=yes
6257 echo "$as_me: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 ac_cv_lib_krb_krb_sendauth=no
6261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6262 LIBS=$ac_check_lib_save_LIBS
6264 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6265 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6266 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_LIBKRB 1
6274 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6275 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6276 { (exit 1); exit 1; }; }
6280 for ac_func in gethostname
6282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6283 echo "$as_me:$LINENO: checking for $ac_func" >&5
6284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6285 if eval "test \"\${$as_ac_var+set}\" = set"; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 #include "confdefs.h"
6291 /* System header to define __stub macros and hopefully few prototypes,
6292 which can conflict with char $ac_func (); below. */
6294 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6303 #ifdef F77_DUMMY_MAIN
6307 int F77_DUMMY_MAIN() { return 1; }
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6325 rm -f conftest.$ac_objext conftest$ac_exeext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327 (eval $ac_link) 2>&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -s conftest$ac_exeext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 eval "$as_ac_var=yes"
6339 echo "$as_me: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6341 eval "$as_ac_var=no"
6343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6347 if test `eval echo '${'$as_ac_var'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6353 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6360 if test "$with_krb5" = yes ; then
6361 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6362 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6363 if test "${ac_cv_search_com_err+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 ac_func_search_save_LIBS=$LIBS
6367 ac_cv_search_com_err=no
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 #include "confdefs.h"
6372 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6379 #ifdef F77_DUMMY_MAIN
6383 int F77_DUMMY_MAIN() { return 1; }
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -s conftest$ac_exeext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_cv_search_com_err="none required"
6407 echo "$as_me: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6411 if test "$ac_cv_search_com_err" = no; then
6412 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6414 cat >conftest.$ac_ext <<_ACEOF
6415 #line $LINENO "configure"
6416 #include "confdefs.h"
6418 /* Override any gcc2 internal prototype to avoid an error. */
6422 /* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6425 #ifdef F77_DUMMY_MAIN
6429 int F77_DUMMY_MAIN() { return 1; }
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441 (eval $ac_link) 2>&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -s conftest$ac_exeext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_search_com_err="-l$ac_lib"
6454 echo "$as_me: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6460 LIBS=$ac_func_search_save_LIBS
6462 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6463 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6464 if test "$ac_cv_search_com_err" != no; then
6465 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6468 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6469 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6470 { (exit 1); exit 1; }; }
6473 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6474 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6475 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 ac_func_search_save_LIBS=$LIBS
6479 ac_cv_search_krb5_encrypt=no
6480 cat >conftest.$ac_ext <<_ACEOF
6481 #line $LINENO "configure"
6482 #include "confdefs.h"
6484 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490 char krb5_encrypt ();
6491 #ifdef F77_DUMMY_MAIN
6495 int F77_DUMMY_MAIN() { return 1; }
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507 (eval $ac_link) 2>&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -s conftest$ac_exeext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 ac_cv_search_krb5_encrypt="none required"
6519 echo "$as_me: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6523 if test "$ac_cv_search_krb5_encrypt" = no; then
6524 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6530 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6536 char krb5_encrypt ();
6537 #ifdef F77_DUMMY_MAIN
6541 int F77_DUMMY_MAIN() { return 1; }
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -s conftest$ac_exeext'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
6563 ac_cv_search_krb5_encrypt="-l$ac_lib"
6566 echo "$as_me: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6572 LIBS=$ac_func_search_save_LIBS
6574 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6575 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6576 if test "$ac_cv_search_krb5_encrypt" != no; then
6577 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6580 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6581 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6582 { (exit 1); exit 1; }; }
6585 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6586 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6587 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_func_search_save_LIBS=$LIBS
6591 ac_cv_search_krb5_sendauth=no
6592 cat >conftest.$ac_ext <<_ACEOF
6593 #line $LINENO "configure"
6594 #include "confdefs.h"
6596 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6602 char krb5_sendauth ();
6603 #ifdef F77_DUMMY_MAIN
6607 int F77_DUMMY_MAIN() { return 1; }
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_search_krb5_sendauth="none required"
6631 echo "$as_me: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6635 if test "$ac_cv_search_krb5_sendauth" = no; then
6636 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 #include "confdefs.h"
6642 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6648 char krb5_sendauth ();
6649 #ifdef F77_DUMMY_MAIN
6653 int F77_DUMMY_MAIN() { return 1; }
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665 (eval $ac_link) 2>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -s conftest$ac_exeext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 ac_cv_search_krb5_sendauth="-l$ac_lib"
6678 echo "$as_me: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6684 LIBS=$ac_func_search_save_LIBS
6686 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6687 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6688 if test "$ac_cv_search_krb5_sendauth" != no; then
6689 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6692 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6693 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6694 { (exit 1); exit 1; }; }
6699 if test "$with_openssl" = yes ; then
6700 if test "$PORTNAME" != "win32"; then
6702 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6703 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6704 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_check_lib_save_LIBS=$LIBS
6708 LIBS="-lcrypto $LIBS"
6709 cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6711 #include "confdefs.h"
6713 /* Override any gcc2 internal prototype to avoid an error. */
6717 /* We use char because int might match the return type of a gcc2
6718 builtin and then its argument prototype would still apply. */
6719 char CRYPTO_new_ex_data ();
6720 #ifdef F77_DUMMY_MAIN
6724 int F77_DUMMY_MAIN() { return 1; }
6729 CRYPTO_new_ex_data ();
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736 (eval $ac_link) 2>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6748 echo "$as_me: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6753 LIBS=$ac_check_lib_save_LIBS
6755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6756 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6757 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6758 cat >>confdefs.h <<_ACEOF
6759 #define HAVE_LIBCRYPTO 1
6762 LIBS="-lcrypto $LIBS"
6765 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6766 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6767 { (exit 1); exit 1; }; }
6771 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6772 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6773 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 ac_check_lib_save_LIBS=$LIBS
6778 cat >conftest.$ac_ext <<_ACEOF
6779 #line $LINENO "configure"
6780 #include "confdefs.h"
6782 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6788 char SSL_library_init ();
6789 #ifdef F77_DUMMY_MAIN
6793 int F77_DUMMY_MAIN() { return 1; }
6798 SSL_library_init ();
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805 (eval $ac_link) 2>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -s conftest$ac_exeext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_lib_ssl_SSL_library_init=yes
6817 echo "$as_me: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6819 ac_cv_lib_ssl_SSL_library_init=no
6821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822 LIBS=$ac_check_lib_save_LIBS
6824 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6825 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6826 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6827 cat >>confdefs.h <<_ACEOF
6828 #define HAVE_LIBSSL 1
6834 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6835 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6836 { (exit 1); exit 1; }; }
6841 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6842 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6843 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 ac_check_lib_save_LIBS=$LIBS
6847 LIBS="-leay32 $LIBS"
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6850 #include "confdefs.h"
6852 /* Override any gcc2 internal prototype to avoid an error. */
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858 char CRYPTO_new_ex_data ();
6859 #ifdef F77_DUMMY_MAIN
6863 int F77_DUMMY_MAIN() { return 1; }
6868 CRYPTO_new_ex_data ();
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -s conftest$ac_exeext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6887 echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6892 LIBS=$ac_check_lib_save_LIBS
6894 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6895 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6896 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6897 cat >>confdefs.h <<_ACEOF
6898 #define HAVE_LIBEAY32 1
6901 LIBS="-leay32 $LIBS"
6904 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
6905 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
6906 { (exit 1); exit 1; }; }
6910 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
6911 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
6912 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_check_lib_save_LIBS=$LIBS
6916 LIBS="-lssleay32 $LIBS"
6917 cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 #include "confdefs.h"
6921 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6927 char SSL_library_init ();
6928 #ifdef F77_DUMMY_MAIN
6932 int F77_DUMMY_MAIN() { return 1; }
6937 SSL_library_init ();
6942 rm -f conftest.$ac_objext 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); } &&
6948 { ac_try='test -s conftest$ac_exeext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 ac_cv_lib_ssleay32_SSL_library_init=yes
6956 echo "$as_me: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6958 ac_cv_lib_ssleay32_SSL_library_init=no
6960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6961 LIBS=$ac_check_lib_save_LIBS
6963 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
6964 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
6965 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967 #define HAVE_LIBSSLEAY32 1
6970 LIBS="-lssleay32 $LIBS"
6973 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
6974 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
6975 { (exit 1); exit 1; }; }
6981 if test "$with_pam" = yes ; then
6983 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6984 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6985 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 ac_check_lib_save_LIBS=$LIBS
6990 cat >conftest.$ac_ext <<_ACEOF
6991 #line $LINENO "configure"
6992 #include "confdefs.h"
6994 /* Override any gcc2 internal prototype to avoid an error. */
6998 /* We use char because int might match the return type of a gcc2
6999 builtin and then its argument prototype would still apply. */
7001 #ifdef F77_DUMMY_MAIN
7005 int F77_DUMMY_MAIN() { return 1; }
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_lib_pam_pam_start=yes
7029 echo "$as_me: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 ac_cv_lib_pam_pam_start=no
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7034 LIBS=$ac_check_lib_save_LIBS
7036 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7037 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7038 if test $ac_cv_lib_pam_pam_start = yes; then
7039 cat >>confdefs.h <<_ACEOF
7040 #define HAVE_LIBPAM 1
7046 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7047 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7048 { (exit 1); exit 1; }; }
7058 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7060 if test "${ac_cv_header_stdc+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 cat >conftest.$ac_ext <<_ACEOF
7064 #line $LINENO "configure"
7065 #include "confdefs.h"
7072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7075 egrep -v '^ *\+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } >/dev/null; then
7080 if test -s conftest.err; then
7081 ac_cpp_err=$ac_c_preproc_warn_flag
7088 if test -z "$ac_cpp_err"; then
7089 ac_cv_header_stdc=yes
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 ac_cv_header_stdc=no
7095 rm -f conftest.err conftest.$ac_ext
7097 if test $ac_cv_header_stdc = yes; then
7098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7099 cat >conftest.$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106 egrep "memchr" >/dev/null 2>&1; then
7109 ac_cv_header_stdc=no
7115 if test $ac_cv_header_stdc = yes; then
7116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 #include "confdefs.h"
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 egrep "free" >/dev/null 2>&1; then
7127 ac_cv_header_stdc=no
7133 if test $ac_cv_header_stdc = yes; then
7134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7135 if test "$cross_compiling" = yes; then
7138 cat >conftest.$ac_ext <<_ACEOF
7139 #line $LINENO "configure"
7140 #include "confdefs.h"
7142 #if ((' ' & 0x0FF) == 0x020)
7143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7146 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7147 || ('j' <= (c) && (c) <= 'r') \
7148 || ('s' <= (c) && (c) <= 'z'))
7149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7157 for (i = 0; i < 256; i++)
7158 if (XOR (islower (i), ISLOWER (i))
7159 || toupper (i) != TOUPPER (i))
7164 rm -f conftest$ac_exeext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166 (eval $ac_link) 2>&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7177 echo "$as_me: program exited with status $ac_status" >&5
7178 echo "$as_me: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 ac_cv_header_stdc=no
7183 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7189 if test $ac_cv_header_stdc = yes; then
7191 cat >>confdefs.h <<\_ACEOF
7192 #define STDC_HEADERS 1
7197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7208 inttypes.h stdint.h unistd.h
7210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7211 echo "$as_me:$LINENO: checking for $ac_header" >&5
7212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7217 #line $LINENO "configure"
7218 #include "confdefs.h"
7219 $ac_includes_default
7221 #include <$ac_header>
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 eval "$as_ac_Header=yes"
7237 echo "$as_me: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7239 eval "$as_ac_Header=no"
7241 rm -f conftest.$ac_objext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7280 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.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/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo "$as_me:$LINENO: checking for $ac_header" >&5
7285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7292 # Is the header compilable?
7293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7297 #include "confdefs.h"
7298 $ac_includes_default
7299 #include <$ac_header>
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 ac_header_compiler=yes
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 ac_header_compiler=no
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7321 echo "${ECHO_T}$ac_header_compiler" >&6
7323 # Is the header present?
7324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7327 #line $LINENO "configure"
7328 #include "confdefs.h"
7329 #include <$ac_header>
7331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7334 egrep -v '^ *\+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev/null; then
7339 if test -s conftest.err; then
7340 ac_cpp_err=$ac_c_preproc_warn_flag
7347 if test -z "$ac_cpp_err"; then
7348 ac_header_preproc=yes
7350 echo "$as_me: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7352 ac_header_preproc=no
7354 rm -f conftest.err conftest.$ac_ext
7355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7356 echo "${ECHO_T}$ac_header_preproc" >&6
7358 # So? What about this header?
7359 case $ac_header_compiler:$ac_header_preproc in
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 eval "$as_ac_Header=$ac_header_preproc"
7380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7385 cat >>confdefs.h <<_ACEOF
7386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7394 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7395 # netinet/in.h is included first.
7397 for ac_header in netinet/in.h
7399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7401 echo "$as_me:$LINENO: checking for $ac_header" >&5
7402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7409 # Is the header compilable?
7410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7412 cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7415 $ac_includes_default
7416 #include <$ac_header>
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_header_compiler=yes
7432 echo "$as_me: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 ac_header_compiler=no
7436 rm -f conftest.$ac_objext conftest.$ac_ext
7437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438 echo "${ECHO_T}$ac_header_compiler" >&6
7440 # Is the header present?
7441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 #include "confdefs.h"
7446 #include <$ac_header>
7448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7451 egrep -v '^ *\+' conftest.er1 >conftest.err
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } >/dev/null; then
7456 if test -s conftest.err; then
7457 ac_cpp_err=$ac_c_preproc_warn_flag
7464 if test -z "$ac_cpp_err"; then
7465 ac_header_preproc=yes
7467 echo "$as_me: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7469 ac_header_preproc=no
7471 rm -f conftest.err conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7473 echo "${ECHO_T}$ac_header_preproc" >&6
7475 # So? What about this header?
7476 case $ac_header_compiler:$ac_header_preproc in
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7490 echo "$as_me:$LINENO: checking for $ac_header" >&5
7491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 eval "$as_ac_Header=$ac_header_preproc"
7497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7502 cat >>confdefs.h <<_ACEOF
7503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7511 for ac_header in netinet/tcp.h
7513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7520 #line $LINENO "configure"
7521 #include "confdefs.h"
7522 $ac_includes_default
7523 #ifdef HAVE_NETINET_IN_H
7524 #include <netinet/in.h>
7528 #include <$ac_header>
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -s conftest.$ac_objext'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; }; then
7542 eval "$as_ac_Header=yes"
7544 echo "$as_me: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7546 eval "$as_ac_Header=no"
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553 cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7562 if test "$with_readline" = yes; then
7564 for ac_header in readline/readline.h
7566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7568 echo "$as_me:$LINENO: checking for $ac_header" >&5
7569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7576 # Is the header compilable?
7577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7582 $ac_includes_default
7583 #include <$ac_header>
7585 rm -f conftest.$ac_objext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7587 (eval $ac_compile) 2>&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_header_compiler=yes
7599 echo "$as_me: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 ac_header_compiler=no
7603 rm -f conftest.$ac_objext conftest.$ac_ext
7604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7605 echo "${ECHO_T}$ac_header_compiler" >&6
7607 # Is the header present?
7608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 #include <$ac_header>
7615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7618 egrep -v '^ *\+' conftest.er1 >conftest.err
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } >/dev/null; then
7623 if test -s conftest.err; then
7624 ac_cpp_err=$ac_c_preproc_warn_flag
7631 if test -z "$ac_cpp_err"; then
7632 ac_header_preproc=yes
7634 echo "$as_me: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 ac_header_preproc=no
7638 rm -f conftest.err conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc in
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7657 echo "$as_me:$LINENO: checking for $ac_header" >&5
7658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 eval "$as_ac_Header=$ac_header_preproc"
7664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675 for ac_header in editline/readline.h
7677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7679 echo "$as_me:$LINENO: checking for $ac_header" >&5
7680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7687 # Is the header compilable?
7688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7691 #line $LINENO "configure"
7692 #include "confdefs.h"
7693 $ac_includes_default
7694 #include <$ac_header>
7696 rm -f conftest.$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -s conftest.$ac_objext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 ac_header_compiler=yes
7710 echo "$as_me: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7712 ac_header_compiler=no
7714 rm -f conftest.$ac_objext conftest.$ac_ext
7715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7716 echo "${ECHO_T}$ac_header_compiler" >&6
7718 # Is the header present?
7719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7721 cat >conftest.$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7723 #include "confdefs.h"
7724 #include <$ac_header>
7726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7729 egrep -v '^ *\+' conftest.er1 >conftest.err
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } >/dev/null; then
7734 if test -s conftest.err; then
7735 ac_cpp_err=$ac_c_preproc_warn_flag
7742 if test -z "$ac_cpp_err"; then
7743 ac_header_preproc=yes
7745 echo "$as_me: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7747 ac_header_preproc=no
7749 rm -f conftest.err conftest.$ac_ext
7750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7751 echo "${ECHO_T}$ac_header_preproc" >&6
7753 # So? What about this header?
7754 case $ac_header_compiler:$ac_header_preproc in
7756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7768 echo "$as_me:$LINENO: checking for $ac_header" >&5
7769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 eval "$as_ac_Header=$ac_header_preproc"
7775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7780 cat >>confdefs.h <<_ACEOF
7781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7786 for ac_header in readline.h
7788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7790 echo "$as_me:$LINENO: checking for $ac_header" >&5
7791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798 # Is the header compilable?
7799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line $LINENO "configure"
7803 #include "confdefs.h"
7804 $ac_includes_default
7805 #include <$ac_header>
7807 rm -f conftest.$ac_objext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7809 (eval $ac_compile) 2>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -s conftest.$ac_objext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 ac_header_compiler=yes
7821 echo "$as_me: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7823 ac_header_compiler=no
7825 rm -f conftest.$ac_objext conftest.$ac_ext
7826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7827 echo "${ECHO_T}$ac_header_compiler" >&6
7829 # Is the header present?
7830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7832 cat >conftest.$ac_ext <<_ACEOF
7833 #line $LINENO "configure"
7834 #include "confdefs.h"
7835 #include <$ac_header>
7837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7840 egrep -v '^ *\+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } >/dev/null; then
7845 if test -s conftest.err; then
7846 ac_cpp_err=$ac_c_preproc_warn_flag
7853 if test -z "$ac_cpp_err"; then
7854 ac_header_preproc=yes
7856 echo "$as_me: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7858 ac_header_preproc=no
7860 rm -f conftest.err conftest.$ac_ext
7861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7862 echo "${ECHO_T}$ac_header_preproc" >&6
7864 # So? What about this header?
7865 case $ac_header_compiler:$ac_header_preproc in
7867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7879 echo "$as_me:$LINENO: checking for $ac_header" >&5
7880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 eval "$as_ac_Header=$ac_header_preproc"
7886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7891 cat >>confdefs.h <<_ACEOF
7892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896 { { echo "$as_me:$LINENO: error: readline header not found
7897 If you have readline already installed, see config.log for details on the
7898 failure. It is possible the compiler isn't looking in the proper directory.
7899 Use --without-readline to disable readline support." >&5
7900 echo "$as_me: error: readline header not found
7901 If you have readline already installed, see config.log for details on the
7902 failure. It is possible the compiler isn't looking in the proper directory.
7903 Use --without-readline to disable readline support." >&2;}
7904 { (exit 1); exit 1; }; }
7918 for ac_header in readline/history.h
7920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922 echo "$as_me:$LINENO: checking for $ac_header" >&5
7923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7930 # Is the header compilable?
7931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 #include "confdefs.h"
7936 $ac_includes_default
7937 #include <$ac_header>
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest.$ac_objext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 ac_header_compiler=yes
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_header_compiler=no
7957 rm -f conftest.$ac_objext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959 echo "${ECHO_T}$ac_header_compiler" >&6
7961 # Is the header present?
7962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7966 #include "confdefs.h"
7967 #include <$ac_header>
7969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972 egrep -v '^ *\+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null; then
7977 if test -s conftest.err; then
7978 ac_cpp_err=$ac_c_preproc_warn_flag
7985 if test -z "$ac_cpp_err"; then
7986 ac_header_preproc=yes
7988 echo "$as_me: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7990 ac_header_preproc=no
7992 rm -f conftest.err conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7994 echo "${ECHO_T}$ac_header_preproc" >&6
7996 # So? What about this header?
7997 case $ac_header_compiler:$ac_header_preproc in
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8011 echo "$as_me:$LINENO: checking for $ac_header" >&5
8012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 eval "$as_ac_Header=$ac_header_preproc"
8018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8023 cat >>confdefs.h <<_ACEOF
8024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8029 for ac_header in editline/history.h
8031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8033 echo "$as_me:$LINENO: checking for $ac_header" >&5
8034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8041 # Is the header compilable?
8042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 #include "confdefs.h"
8047 $ac_includes_default
8048 #include <$ac_header>
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_header_compiler=yes
8064 echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 ac_header_compiler=no
8068 rm -f conftest.$ac_objext conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8070 echo "${ECHO_T}$ac_header_compiler" >&6
8072 # Is the header present?
8073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 #include "confdefs.h"
8078 #include <$ac_header>
8080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8083 egrep -v '^ *\+' conftest.er1 >conftest.err
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null; then
8088 if test -s conftest.err; then
8089 ac_cpp_err=$ac_c_preproc_warn_flag
8096 if test -z "$ac_cpp_err"; then
8097 ac_header_preproc=yes
8099 echo "$as_me: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8101 ac_header_preproc=no
8103 rm -f conftest.err conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105 echo "${ECHO_T}$ac_header_preproc" >&6
8107 # So? What about this header?
8108 case $ac_header_compiler:$ac_header_preproc in
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8122 echo "$as_me:$LINENO: checking for $ac_header" >&5
8123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 eval "$as_ac_Header=$ac_header_preproc"
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8134 cat >>confdefs.h <<_ACEOF
8135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8140 for ac_header in history.h
8142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8144 echo "$as_me:$LINENO: checking for $ac_header" >&5
8145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8152 # Is the header compilable?
8153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 $ac_includes_default
8159 #include <$ac_header>
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163 (eval $ac_compile) 2>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -s conftest.$ac_objext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 ac_header_compiler=yes
8175 echo "$as_me: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 ac_header_compiler=no
8179 rm -f conftest.$ac_objext conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8181 echo "${ECHO_T}$ac_header_compiler" >&6
8183 # Is the header present?
8184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 #include "confdefs.h"
8189 #include <$ac_header>
8191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8194 egrep -v '^ *\+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } >/dev/null; then
8199 if test -s conftest.err; then
8200 ac_cpp_err=$ac_c_preproc_warn_flag
8207 if test -z "$ac_cpp_err"; then
8208 ac_header_preproc=yes
8210 echo "$as_me: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8212 ac_header_preproc=no
8214 rm -f conftest.err conftest.$ac_ext
8215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8216 echo "${ECHO_T}$ac_header_preproc" >&6
8218 # So? What about this header?
8219 case $ac_header_compiler:$ac_header_preproc in
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8233 echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 eval "$as_ac_Header=$ac_header_preproc"
8240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8245 cat >>confdefs.h <<_ACEOF
8246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8250 { { echo "$as_me:$LINENO: error: history header not found
8251 If you have readline already installed, see config.log for details on the
8252 failure. It is possible the compiler isn't looking in the proper directory.
8253 Use --without-readline to disable readline support." >&5
8254 echo "$as_me: error: history header not found
8255 If you have readline already installed, see config.log for details on the
8256 failure. It is possible the compiler isn't looking in the proper directory.
8257 Use --without-readline to disable readline support." >&2;}
8258 { (exit 1); exit 1; }; }
8273 if test "$with_zlib" = yes; then
8274 if test "${ac_cv_header_zlib_h+set}" = set; then
8275 echo "$as_me:$LINENO: checking for zlib.h" >&5
8276 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8277 if test "${ac_cv_header_zlib_h+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8281 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8283 # Is the header compilable?
8284 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8285 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8289 $ac_includes_default
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_header_compiler=yes
8306 echo "$as_me: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 ac_header_compiler=no
8310 rm -f conftest.$ac_objext conftest.$ac_ext
8311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8312 echo "${ECHO_T}$ac_header_compiler" >&6
8314 # Is the header present?
8315 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8316 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8319 #include "confdefs.h"
8322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8325 egrep -v '^ *\+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } >/dev/null; then
8330 if test -s conftest.err; then
8331 ac_cpp_err=$ac_c_preproc_warn_flag
8338 if test -z "$ac_cpp_err"; then
8339 ac_header_preproc=yes
8341 echo "$as_me: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8343 ac_header_preproc=no
8345 rm -f conftest.err conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347 echo "${ECHO_T}$ac_header_preproc" >&6
8349 # So? What about this header?
8350 case $ac_header_compiler:$ac_header_preproc in
8352 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8353 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8355 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8357 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8362 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8364 echo "$as_me:$LINENO: checking for zlib.h" >&5
8365 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8366 if test "${ac_cv_header_zlib_h+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 ac_cv_header_zlib_h=$ac_header_preproc
8371 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8372 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8375 if test $ac_cv_header_zlib_h = yes; then
8378 { { echo "$as_me:$LINENO: error: zlib header not found
8379 If you have zlib already installed, see config.log for details on the
8380 failure. It is possible the compiler isn't looking in the proper directory.
8381 Use --without-zlib to disable zlib support." >&5
8382 echo "$as_me: error: zlib header not found
8383 If you have zlib already installed, see config.log for details on the
8384 failure. It is possible the compiler isn't looking in the proper directory.
8385 Use --without-zlib to disable zlib support." >&2;}
8386 { (exit 1); exit 1; }; }
8392 if test "$with_krb4" = yes ; then
8393 if test "${ac_cv_header_krb_h+set}" = set; then
8394 echo "$as_me:$LINENO: checking for krb.h" >&5
8395 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8396 if test "${ac_cv_header_krb_h+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8400 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8402 # Is the header compilable?
8403 echo "$as_me:$LINENO: checking krb.h usability" >&5
8404 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8405 cat >conftest.$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8407 #include "confdefs.h"
8408 $ac_includes_default
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_header_compiler=yes
8425 echo "$as_me: failed program was:" >&5
8426 cat conftest.$ac_ext >&5
8427 ac_header_compiler=no
8429 rm -f conftest.$ac_objext conftest.$ac_ext
8430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431 echo "${ECHO_T}$ac_header_compiler" >&6
8433 # Is the header present?
8434 echo "$as_me:$LINENO: checking krb.h presence" >&5
8435 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8437 #line $LINENO "configure"
8438 #include "confdefs.h"
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8444 egrep -v '^ *\+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } >/dev/null; then
8449 if test -s conftest.err; then
8450 ac_cpp_err=$ac_c_preproc_warn_flag
8457 if test -z "$ac_cpp_err"; then
8458 ac_header_preproc=yes
8460 echo "$as_me: failed program was:" >&5
8461 cat conftest.$ac_ext >&5
8462 ac_header_preproc=no
8464 rm -f conftest.err conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8466 echo "${ECHO_T}$ac_header_preproc" >&6
8468 # So? What about this header?
8469 case $ac_header_compiler:$ac_header_preproc in
8471 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8472 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8474 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8476 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8477 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8479 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8481 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8483 echo "$as_me:$LINENO: checking for krb.h" >&5
8484 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8485 if test "${ac_cv_header_krb_h+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_cv_header_krb_h=$ac_header_preproc
8490 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8491 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8494 if test $ac_cv_header_krb_h = yes; then
8497 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8498 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8499 { (exit 1); exit 1; }; }
8505 if test "$with_krb5" = yes ; then
8506 if test "${ac_cv_header_krb5_h+set}" = set; then
8507 echo "$as_me:$LINENO: checking for krb5.h" >&5
8508 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8509 if test "${ac_cv_header_krb5_h+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8513 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8515 # Is the header compilable?
8516 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8517 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8520 #include "confdefs.h"
8521 $ac_includes_default
8524 rm -f conftest.$ac_objext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526 (eval $ac_compile) 2>&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_header_compiler=yes
8538 echo "$as_me: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8540 ac_header_compiler=no
8542 rm -f conftest.$ac_objext conftest.$ac_ext
8543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8544 echo "${ECHO_T}$ac_header_compiler" >&6
8546 # Is the header present?
8547 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8548 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 #line $LINENO "configure"
8551 #include "confdefs.h"
8554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8557 egrep -v '^ *\+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } >/dev/null; then
8562 if test -s conftest.err; then
8563 ac_cpp_err=$ac_c_preproc_warn_flag
8570 if test -z "$ac_cpp_err"; then
8571 ac_header_preproc=yes
8573 echo "$as_me: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8575 ac_header_preproc=no
8577 rm -f conftest.err conftest.$ac_ext
8578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8579 echo "${ECHO_T}$ac_header_preproc" >&6
8581 # So? What about this header?
8582 case $ac_header_compiler:$ac_header_preproc in
8584 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8585 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8589 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8590 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8592 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8594 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8596 echo "$as_me:$LINENO: checking for krb5.h" >&5
8597 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8598 if test "${ac_cv_header_krb5_h+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 ac_cv_header_krb5_h=$ac_header_preproc
8603 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8604 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8607 if test $ac_cv_header_krb5_h = yes; then
8610 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8611 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8612 { (exit 1); exit 1; }; }
8616 if test "${ac_cv_header_com_err_h+set}" = set; then
8617 echo "$as_me:$LINENO: checking for com_err.h" >&5
8618 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8619 if test "${ac_cv_header_com_err_h+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8625 # Is the header compilable?
8626 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8627 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8631 $ac_includes_default
8632 #include <com_err.h>
8634 rm -f conftest.$ac_objext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8636 (eval $ac_compile) 2>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -s conftest.$ac_objext'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_header_compiler=yes
8648 echo "$as_me: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8650 ac_header_compiler=no
8652 rm -f conftest.$ac_objext conftest.$ac_ext
8653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8654 echo "${ECHO_T}$ac_header_compiler" >&6
8656 # Is the header present?
8657 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8658 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8661 #include "confdefs.h"
8662 #include <com_err.h>
8664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8667 egrep -v '^ *\+' conftest.er1 >conftest.err
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } >/dev/null; then
8672 if test -s conftest.err; then
8673 ac_cpp_err=$ac_c_preproc_warn_flag
8680 if test -z "$ac_cpp_err"; then
8681 ac_header_preproc=yes
8683 echo "$as_me: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8685 ac_header_preproc=no
8687 rm -f conftest.err conftest.$ac_ext
8688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8689 echo "${ECHO_T}$ac_header_preproc" >&6
8691 # So? What about this header?
8692 case $ac_header_compiler:$ac_header_preproc in
8694 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8695 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8696 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8697 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8699 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8700 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8702 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8704 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8706 echo "$as_me:$LINENO: checking for com_err.h" >&5
8707 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8708 if test "${ac_cv_header_com_err_h+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 ac_cv_header_com_err_h=$ac_header_preproc
8713 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8714 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8717 if test $ac_cv_header_com_err_h = yes; then
8720 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8721 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8722 { (exit 1); exit 1; }; }
8728 if test "$with_openssl" = yes ; then
8729 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8730 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8731 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8732 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8736 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8738 # Is the header compilable?
8739 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8740 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8744 $ac_includes_default
8745 #include <openssl/ssl.h>
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -s conftest.$ac_objext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_header_compiler=yes
8761 echo "$as_me: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 ac_header_compiler=no
8765 rm -f conftest.$ac_objext conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8767 echo "${ECHO_T}$ac_header_compiler" >&6
8769 # Is the header present?
8770 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8771 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775 #include <openssl/ssl.h>
8777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8780 egrep -v '^ *\+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } >/dev/null; then
8785 if test -s conftest.err; then
8786 ac_cpp_err=$ac_c_preproc_warn_flag
8793 if test -z "$ac_cpp_err"; then
8794 ac_header_preproc=yes
8796 echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 ac_header_preproc=no
8800 rm -f conftest.err conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802 echo "${ECHO_T}$ac_header_preproc" >&6
8804 # So? What about this header?
8805 case $ac_header_compiler:$ac_header_preproc in
8807 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8808 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8812 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8813 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8815 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8819 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8820 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8821 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8826 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8827 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8830 if test $ac_cv_header_openssl_ssl_h = yes; then
8833 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8834 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8835 { (exit 1); exit 1; }; }
8839 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8840 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8841 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8842 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8846 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8848 # Is the header compilable?
8849 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8850 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8851 cat >conftest.$ac_ext <<_ACEOF
8852 #line $LINENO "configure"
8853 #include "confdefs.h"
8854 $ac_includes_default
8855 #include <openssl/err.h>
8857 rm -f conftest.$ac_objext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8859 (eval $ac_compile) 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_header_compiler=yes
8871 echo "$as_me: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8873 ac_header_compiler=no
8875 rm -f conftest.$ac_objext conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8877 echo "${ECHO_T}$ac_header_compiler" >&6
8879 # Is the header present?
8880 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8881 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 #include "confdefs.h"
8885 #include <openssl/err.h>
8887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8890 egrep -v '^ *\+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } >/dev/null; then
8895 if test -s conftest.err; then
8896 ac_cpp_err=$ac_c_preproc_warn_flag
8903 if test -z "$ac_cpp_err"; then
8904 ac_header_preproc=yes
8906 echo "$as_me: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 ac_header_preproc=no
8910 rm -f conftest.err conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8912 echo "${ECHO_T}$ac_header_preproc" >&6
8914 # So? What about this header?
8915 case $ac_header_compiler:$ac_header_preproc in
8917 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8918 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8920 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8922 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8923 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8925 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8927 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8929 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8930 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8931 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 ac_cv_header_openssl_err_h=$ac_header_preproc
8936 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8937 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8940 if test $ac_cv_header_openssl_err_h = yes; then
8943 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8944 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8945 { (exit 1); exit 1; }; }
8951 if test "$with_pam" = yes ; then
8953 for ac_header in security/pam_appl.h
8955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8957 echo "$as_me:$LINENO: checking for $ac_header" >&5
8958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8965 # Is the header compilable?
8966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8968 cat >conftest.$ac_ext <<_ACEOF
8969 #line $LINENO "configure"
8970 #include "confdefs.h"
8971 $ac_includes_default
8972 #include <$ac_header>
8974 rm -f conftest.$ac_objext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976 (eval $ac_compile) 2>&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_header_compiler=yes
8988 echo "$as_me: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8990 ac_header_compiler=no
8992 rm -f conftest.$ac_objext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8994 echo "${ECHO_T}$ac_header_compiler" >&6
8996 # Is the header present?
8997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8999 cat >conftest.$ac_ext <<_ACEOF
9000 #line $LINENO "configure"
9001 #include "confdefs.h"
9002 #include <$ac_header>
9004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9007 egrep -v '^ *\+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } >/dev/null; then
9012 if test -s conftest.err; then
9013 ac_cpp_err=$ac_c_preproc_warn_flag
9020 if test -z "$ac_cpp_err"; then
9021 ac_header_preproc=yes
9023 echo "$as_me: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9025 ac_header_preproc=no
9027 rm -f conftest.err conftest.$ac_ext
9028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9029 echo "${ECHO_T}$ac_header_preproc" >&6
9031 # So? What about this header?
9032 case $ac_header_compiler:$ac_header_preproc in
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9046 echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 eval "$as_ac_Header=$ac_header_preproc"
9053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9058 cat >>confdefs.h <<_ACEOF
9059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9064 for ac_header in pam/pam_appl.h
9066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068 echo "$as_me:$LINENO: checking for $ac_header" >&5
9069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9076 # Is the header compilable?
9077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9079 cat >conftest.$ac_ext <<_ACEOF
9080 #line $LINENO "configure"
9081 #include "confdefs.h"
9082 $ac_includes_default
9083 #include <$ac_header>
9085 rm -f conftest.$ac_objext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087 (eval $ac_compile) 2>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -s conftest.$ac_objext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_header_compiler=yes
9099 echo "$as_me: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9101 ac_header_compiler=no
9103 rm -f conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9105 echo "${ECHO_T}$ac_header_compiler" >&6
9107 # Is the header present?
9108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9111 #line $LINENO "configure"
9112 #include "confdefs.h"
9113 #include <$ac_header>
9115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9118 egrep -v '^ *\+' conftest.er1 >conftest.err
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } >/dev/null; then
9123 if test -s conftest.err; then
9124 ac_cpp_err=$ac_c_preproc_warn_flag
9131 if test -z "$ac_cpp_err"; then
9132 ac_header_preproc=yes
9134 echo "$as_me: failed program was:" >&5
9135 cat conftest.$ac_ext >&5
9136 ac_header_preproc=no
9138 rm -f conftest.err conftest.$ac_ext
9139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140 echo "${ECHO_T}$ac_header_preproc" >&6
9142 # So? What about this header?
9143 case $ac_header_compiler:$ac_header_preproc in
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9157 echo "$as_me:$LINENO: checking for $ac_header" >&5
9158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 eval "$as_ac_Header=$ac_header_preproc"
9164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9169 cat >>confdefs.h <<_ACEOF
9170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9175 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9176 { (exit 1); exit 1; }; }
9187 if test "$with_rendezvous" = yes ; then
9188 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9189 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9190 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9191 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9195 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9197 # Is the header compilable?
9198 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9199 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 #include "confdefs.h"
9203 $ac_includes_default
9204 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9206 rm -f conftest.$ac_objext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9208 (eval $ac_compile) 2>&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try='test -s conftest.$ac_objext'
9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
9218 ac_header_compiler=yes
9220 echo "$as_me: failed program was:" >&5
9221 cat conftest.$ac_ext >&5
9222 ac_header_compiler=no
9224 rm -f conftest.$ac_objext conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9226 echo "${ECHO_T}$ac_header_compiler" >&6
9228 # Is the header present?
9229 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9230 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9231 cat >conftest.$ac_ext <<_ACEOF
9232 #line $LINENO "configure"
9233 #include "confdefs.h"
9234 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9239 egrep -v '^ *\+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } >/dev/null; then
9244 if test -s conftest.err; then
9245 ac_cpp_err=$ac_c_preproc_warn_flag
9252 if test -z "$ac_cpp_err"; then
9253 ac_header_preproc=yes
9255 echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 ac_header_preproc=no
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9263 # So? What about this header?
9264 case $ac_header_compiler:$ac_header_preproc in
9266 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9269 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9271 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9272 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9274 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9276 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9278 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9279 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9280 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9285 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9286 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9289 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9292 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9293 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9294 { (exit 1); exit 1; }; }
9302 ## Types, structures, compiler characteristics
9306 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9307 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9308 if test "${ac_cv_c_const+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9312 #line $LINENO "configure"
9313 #include "confdefs.h"
9315 #ifdef F77_DUMMY_MAIN
9319 int F77_DUMMY_MAIN() { return 1; }
9324 /* FIXME: Include the comments suggested by Paul. */
9326 /* Ultrix mips cc rejects this. */
9327 typedef int charset[2];
9329 /* SunOS 4.1.1 cc rejects this. */
9330 char const *const *ccp;
9332 /* NEC SVR4.0.2 mips cc rejects this. */
9333 struct point {int x, y;};
9334 static struct point const zero = {0,0};
9335 /* AIX XL C 1.02.0.0 rejects this.
9336 It does not let you subtract one const X* pointer from another in
9337 an arm of an if-expression whose if-part is not a constant
9339 const char *g = "string";
9340 ccp = &g + (g ? g-g : 0);
9341 /* HPUX 7.0 cc rejects these. */
9344 ccp = (char const *const *) p;
9345 { /* SCO 3.2v4 cc rejects this. */
9347 char const *s = 0 ? (char *) 0 : (char const *) 0;
9351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9353 const int *foo = &x[0];
9356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9357 typedef const int *iptr;
9361 { /* AIX XL C 1.02.0.0 rejects this saying
9362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9363 struct s { int j; const int *ap[3]; };
9364 struct s *b; b->j = 5;
9366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9375 rm -f conftest.$ac_objext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9377 (eval $ac_compile) 2>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9389 echo "$as_me: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9393 rm -f conftest.$ac_objext conftest.$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9396 echo "${ECHO_T}$ac_cv_c_const" >&6
9397 if test $ac_cv_c_const = no; then
9399 cat >>confdefs.h <<\_ACEOF
9405 echo "$as_me:$LINENO: checking for inline" >&5
9406 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9407 if test "${ac_cv_c_inline+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 for ac_kw in inline __inline__ __inline; do
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9417 static $ac_kw foo_t static_foo () {return 0; }
9418 $ac_kw int foo () {return 0; }
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424 (eval $ac_compile) 2>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -s conftest.$ac_objext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 ac_cv_c_inline=$ac_kw; break
9436 echo "$as_me: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9439 rm -f conftest.$ac_objext conftest.$ac_ext
9443 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9444 echo "${ECHO_T}$ac_cv_c_inline" >&6
9445 case $ac_cv_c_inline in
9448 cat >>confdefs.h <<\_ACEOF
9452 *) cat >>confdefs.h <<_ACEOF
9453 #define inline $ac_cv_c_inline
9458 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9459 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9460 if test "${ac_cv_c_stringize+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9464 #line $LINENO "configure"
9465 #include "confdefs.h"
9468 char *s = x(teststring);
9470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9471 egrep "#teststring" >/dev/null 2>&1; then
9472 ac_cv_c_stringize=no
9474 ac_cv_c_stringize=yes
9479 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9480 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9481 if test $ac_cv_c_stringize = yes; then
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_STRINGIZE 1
9489 echo "$as_me:$LINENO: checking for signed types" >&5
9490 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9491 if test "${pgac_cv_c_signed+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9498 #ifdef F77_DUMMY_MAIN
9502 int F77_DUMMY_MAIN() { return 1; }
9507 signed char c; signed short s; signed int i;
9512 rm -f conftest.$ac_objext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9514 (eval $ac_compile) 2>&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -s conftest.$ac_objext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 pgac_cv_c_signed=yes
9526 echo "$as_me: failed program was:" >&5
9527 cat conftest.$ac_ext >&5
9530 rm -f conftest.$ac_objext conftest.$ac_ext
9532 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9533 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9534 if test x"$pgac_cv_c_signed" = xno ; then
9536 cat >>confdefs.h <<\_ACEOF
9541 echo "$as_me:$LINENO: checking for working volatile" >&5
9542 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9543 if test "${ac_cv_c_volatile+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9550 #ifdef F77_DUMMY_MAIN
9554 int F77_DUMMY_MAIN() { return 1; }
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568 (eval $ac_compile) 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_c_volatile=yes
9580 echo "$as_me: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9584 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9587 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9588 if test $ac_cv_c_volatile = no; then
9590 cat >>confdefs.h <<\_ACEOF
9596 echo "$as_me:$LINENO: checking for __func__" >&5
9597 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9598 if test "${pgac_cv_funcname_func_support+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9605 #ifdef F77_DUMMY_MAIN
9609 int F77_DUMMY_MAIN() { return 1; }
9614 printf("%s\n", __func__);
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 pgac_cv_funcname_func_support=yes
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 pgac_cv_funcname_func_support=no
9637 rm -f conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9640 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9641 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9643 cat >>confdefs.h <<\_ACEOF
9644 #define HAVE_FUNCNAME__FUNC 1
9648 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9649 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9650 if test "${pgac_cv_funcname_function_support+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 #include "confdefs.h"
9657 #ifdef F77_DUMMY_MAIN
9661 int F77_DUMMY_MAIN() { return 1; }
9666 printf("%s\n", __FUNCTION__);
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 pgac_cv_funcname_function_support=yes
9685 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9687 pgac_cv_funcname_function_support=no
9689 rm -f conftest.$ac_objext conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9692 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9693 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9695 cat >>confdefs.h <<\_ACEOF
9696 #define HAVE_FUNCNAME__FUNCTION 1
9701 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9702 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9703 if test "${ac_cv_struct_tm+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 cat >conftest.$ac_ext <<_ACEOF
9707 #line $LINENO "configure"
9708 #include "confdefs.h"
9709 #include <sys/types.h>
9712 #ifdef F77_DUMMY_MAIN
9716 int F77_DUMMY_MAIN() { return 1; }
9721 struct tm *tp; tp->tm_sec;
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728 (eval $ac_compile) 2>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -s conftest.$ac_objext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_struct_tm=time.h
9740 echo "$as_me: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 ac_cv_struct_tm=sys/time.h
9744 rm -f conftest.$ac_objext conftest.$ac_ext
9746 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9747 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9748 if test $ac_cv_struct_tm = sys/time.h; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define TM_IN_SYS_TIME 1
9756 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9757 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9758 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9762 #line $LINENO "configure"
9763 #include "confdefs.h"
9764 #include <sys/types.h>
9765 #include <$ac_cv_struct_tm>
9768 #ifdef F77_DUMMY_MAIN
9772 int F77_DUMMY_MAIN() { return 1; }
9777 static struct tm ac_aggr;
9778 if (ac_aggr.tm_zone)
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786 (eval $ac_compile) 2>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -s conftest.$ac_objext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_cv_member_struct_tm_tm_zone=yes
9798 echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 ac_cv_member_struct_tm_tm_zone=no
9802 rm -f conftest.$ac_objext conftest.$ac_ext
9804 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9805 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9806 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9808 cat >>confdefs.h <<_ACEOF
9809 #define HAVE_STRUCT_TM_TM_ZONE 1
9815 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_TM_ZONE 1
9822 echo "$as_me:$LINENO: checking for tzname" >&5
9823 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9824 if test "${ac_cv_var_tzname+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9828 #line $LINENO "configure"
9829 #include "confdefs.h"
9831 #ifndef tzname /* For SGI. */
9832 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9835 #ifdef F77_DUMMY_MAIN
9839 int F77_DUMMY_MAIN() { return 1; }
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_var_tzname=yes
9863 echo "$as_me: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9870 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9871 if test $ac_cv_var_tzname = yes; then
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_TZNAME 1
9879 echo "$as_me:$LINENO: checking for union semun" >&5
9880 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9881 if test "${ac_cv_type_union_semun+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9886 #include "confdefs.h"
9887 #include <sys/types.h>
9888 #include <sys/ipc.h>
9889 #include <sys/sem.h>
9891 #ifdef F77_DUMMY_MAIN
9895 int F77_DUMMY_MAIN() { return 1; }
9900 if ((union semun *) 0)
9902 if (sizeof (union semun))
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_cv_type_union_semun=yes
9922 echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 ac_cv_type_union_semun=no
9926 rm -f conftest.$ac_objext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9929 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9930 if test $ac_cv_type_union_semun = yes; then
9932 cat >>confdefs.h <<_ACEOF
9933 #define HAVE_UNION_SEMUN 1
9939 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9940 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9941 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 cat >conftest.$ac_ext <<_ACEOF
9945 #line $LINENO "configure"
9946 #include "confdefs.h"
9947 #include <sys/types.h>
9948 #ifdef HAVE_SYS_UN_H
9953 #ifdef F77_DUMMY_MAIN
9957 int F77_DUMMY_MAIN() { return 1; }
9962 if ((struct sockaddr_un *) 0)
9964 if (sizeof (struct sockaddr_un))
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972 (eval $ac_compile) 2>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -s conftest.$ac_objext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_type_struct_sockaddr_un=yes
9984 echo "$as_me: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9986 ac_cv_type_struct_sockaddr_un=no
9988 rm -f conftest.$ac_objext conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9991 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9992 if test $ac_cv_type_struct_sockaddr_un = yes; then
9994 cat >>confdefs.h <<_ACEOF
9995 #define HAVE_STRUCT_SOCKADDR_UN 1
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_UNIX_SOCKETS 1
10005 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
10006 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10007 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10011 #line $LINENO "configure"
10012 #include "confdefs.h"
10013 #include <sys/types.h>
10014 #ifdef HAVE_SYS_SOCKET_H
10015 #include <sys/socket.h>
10019 #ifdef F77_DUMMY_MAIN
10020 # ifdef __cplusplus
10023 int F77_DUMMY_MAIN() { return 1; }
10028 if ((struct sockaddr_storage *) 0)
10030 if (sizeof (struct sockaddr_storage))
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -s conftest.$ac_objext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_cv_type_struct_sockaddr_storage=yes
10050 echo "$as_me: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10052 ac_cv_type_struct_sockaddr_storage=no
10054 rm -f conftest.$ac_objext conftest.$ac_ext
10056 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10057 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10058 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10067 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
10068 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
10069 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10073 #line $LINENO "configure"
10074 #include "confdefs.h"
10075 #include <sys/types.h>
10076 #ifdef HAVE_SYS_SOCKET_H
10077 #include <sys/socket.h>
10081 #ifdef F77_DUMMY_MAIN
10082 # ifdef __cplusplus
10085 int F77_DUMMY_MAIN() { return 1; }
10090 static struct sockaddr_storage ac_aggr;
10091 if (ac_aggr.ss_family)
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_member_struct_sockaddr_storage_ss_family=yes
10111 echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 ac_cv_member_struct_sockaddr_storage_ss_family=no
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10118 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10119 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10121 cat >>confdefs.h <<_ACEOF
10122 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10127 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10128 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10129 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 #include "confdefs.h"
10135 #include <sys/types.h>
10136 #ifdef HAVE_SYS_SOCKET_H
10137 #include <sys/socket.h>
10141 #ifdef F77_DUMMY_MAIN
10142 # ifdef __cplusplus
10145 int F77_DUMMY_MAIN() { return 1; }
10150 static struct sockaddr_storage ac_aggr;
10151 if (ac_aggr.__ss_family)
10157 rm -f conftest.$ac_objext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -s conftest.$ac_objext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10171 echo "$as_me: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10173 ac_cv_member_struct_sockaddr_storage___ss_family=no
10175 rm -f conftest.$ac_objext conftest.$ac_ext
10177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10178 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10179 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10181 cat >>confdefs.h <<_ACEOF
10182 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10187 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10188 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10189 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 #include "confdefs.h"
10195 #include <sys/types.h>
10196 #ifdef HAVE_SYS_SOCKET_H
10197 #include <sys/socket.h>
10201 #ifdef F77_DUMMY_MAIN
10202 # ifdef __cplusplus
10205 int F77_DUMMY_MAIN() { return 1; }
10210 static struct sockaddr_storage ac_aggr;
10211 if (ac_aggr.ss_len)
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -s conftest.$ac_objext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10231 echo "$as_me: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 ac_cv_member_struct_sockaddr_storage_ss_len=no
10235 rm -f conftest.$ac_objext conftest.$ac_ext
10237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10238 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10239 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10241 cat >>confdefs.h <<_ACEOF
10242 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10247 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10248 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10249 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10253 #line $LINENO "configure"
10254 #include "confdefs.h"
10255 #include <sys/types.h>
10256 #ifdef HAVE_SYS_SOCKET_H
10257 #include <sys/socket.h>
10261 #ifdef F77_DUMMY_MAIN
10262 # ifdef __cplusplus
10265 int F77_DUMMY_MAIN() { return 1; }
10270 static struct sockaddr_storage ac_aggr;
10271 if (ac_aggr.__ss_len)
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -s conftest.$ac_objext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10291 echo "$as_me: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 ac_cv_member_struct_sockaddr_storage___ss_len=no
10295 rm -f conftest.$ac_objext conftest.$ac_ext
10297 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10298 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10299 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10307 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10308 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10309 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 cat >conftest.$ac_ext <<_ACEOF
10313 #line $LINENO "configure"
10314 #include "confdefs.h"
10315 #include <sys/types.h>
10316 #ifdef HAVE_SYS_SOCKET_H
10317 #include <sys/socket.h>
10321 #ifdef F77_DUMMY_MAIN
10322 # ifdef __cplusplus
10325 int F77_DUMMY_MAIN() { return 1; }
10330 static struct sockaddr ac_aggr;
10331 if (ac_aggr.sa_len)
10337 rm -f conftest.$ac_objext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_cv_member_struct_sockaddr_sa_len=yes
10351 echo "$as_me: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 ac_cv_member_struct_sockaddr_sa_len=no
10355 rm -f conftest.$ac_objext conftest.$ac_ext
10357 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10358 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10359 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10368 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10369 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10370 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 cat >conftest.$ac_ext <<_ACEOF
10374 #line $LINENO "configure"
10375 #include "confdefs.h"
10376 #include <sys/types.h>
10377 #include <sys/socket.h>
10381 #ifdef F77_DUMMY_MAIN
10382 # ifdef __cplusplus
10385 int F77_DUMMY_MAIN() { return 1; }
10390 if ((struct addrinfo *) 0)
10392 if (sizeof (struct addrinfo))
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -s conftest.$ac_objext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_cv_type_struct_addrinfo=yes
10412 echo "$as_me: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 ac_cv_type_struct_addrinfo=no
10416 rm -f conftest.$ac_objext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10419 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10420 if test $ac_cv_type_struct_addrinfo = yes; then
10422 cat >>confdefs.h <<_ACEOF
10423 #define HAVE_STRUCT_ADDRINFO 1
10430 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10431 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10432 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 cat >conftest.$ac_ext <<_ACEOF
10436 #line $LINENO "configure"
10437 #include "confdefs.h"
10438 #include <sys/param.h>
10439 #include <sys/types.h>
10440 #include <sys/socket.h>
10441 #include <sys/ucred.h>
10443 #ifdef F77_DUMMY_MAIN
10444 # ifdef __cplusplus
10447 int F77_DUMMY_MAIN() { return 1; }
10452 if ((struct cmsgcred *) 0)
10454 if (sizeof (struct cmsgcred))
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_type_struct_cmsgcred=yes
10474 echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ac_cv_type_struct_cmsgcred=no
10478 rm -f conftest.$ac_objext conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10481 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10482 if test $ac_cv_type_struct_cmsgcred = yes; then
10484 cat >>confdefs.h <<_ACEOF
10485 #define HAVE_STRUCT_CMSGCRED 1
10490 echo "$as_me:$LINENO: checking for struct fcred" >&5
10491 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10492 if test "${ac_cv_type_struct_fcred+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 cat >conftest.$ac_ext <<_ACEOF
10496 #line $LINENO "configure"
10497 #include "confdefs.h"
10498 #include <sys/param.h>
10499 #include <sys/types.h>
10500 #include <sys/socket.h>
10501 #include <sys/ucred.h>
10503 #ifdef F77_DUMMY_MAIN
10504 # ifdef __cplusplus
10507 int F77_DUMMY_MAIN() { return 1; }
10512 if ((struct fcred *) 0)
10514 if (sizeof (struct fcred))
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522 (eval $ac_compile) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -s conftest.$ac_objext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_cv_type_struct_fcred=yes
10534 echo "$as_me: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 ac_cv_type_struct_fcred=no
10538 rm -f conftest.$ac_objext conftest.$ac_ext
10540 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10541 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10542 if test $ac_cv_type_struct_fcred = yes; then
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STRUCT_FCRED 1
10550 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10551 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10552 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 #include "confdefs.h"
10558 #include <sys/param.h>
10559 #include <sys/types.h>
10560 #include <sys/socket.h>
10561 #include <sys/ucred.h>
10563 #ifdef F77_DUMMY_MAIN
10564 # ifdef __cplusplus
10567 int F77_DUMMY_MAIN() { return 1; }
10572 if ((struct sockcred *) 0)
10574 if (sizeof (struct sockcred))
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_type_struct_sockcred=yes
10594 echo "$as_me: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 ac_cv_type_struct_sockcred=no
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10600 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10601 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10602 if test $ac_cv_type_struct_sockcred = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605 #define HAVE_STRUCT_SOCKCRED 1
10612 echo "$as_me:$LINENO: checking for struct option" >&5
10613 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10614 if test "${ac_cv_type_struct_option+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10620 #ifdef HAVE_GETOPT_H
10621 #include <getopt.h>
10624 #ifdef F77_DUMMY_MAIN
10625 # ifdef __cplusplus
10628 int F77_DUMMY_MAIN() { return 1; }
10633 if ((struct option *) 0)
10635 if (sizeof (struct option))
10641 rm -f conftest.$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_type_struct_option=yes
10655 echo "$as_me: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 ac_cv_type_struct_option=no
10659 rm -f conftest.$ac_objext conftest.$ac_ext
10661 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10662 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10663 if test $ac_cv_type_struct_option = yes; then
10665 cat >>confdefs.h <<_ACEOF
10666 #define HAVE_STRUCT_OPTION 1
10673 if test "$with_zlib" = yes; then
10674 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10675 # did not). While we could work around the lack of z_streamp, it
10676 # seems unwise to encourage people to use such old zlib versions...
10677 echo "$as_me:$LINENO: checking for z_streamp" >&5
10678 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10679 if test "${ac_cv_type_z_streamp+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10683 #line $LINENO "configure"
10684 #include "confdefs.h"
10687 #ifdef F77_DUMMY_MAIN
10688 # ifdef __cplusplus
10691 int F77_DUMMY_MAIN() { return 1; }
10696 if ((z_streamp *) 0)
10698 if (sizeof (z_streamp))
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -s conftest.$ac_objext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_type_z_streamp=yes
10718 echo "$as_me: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10720 ac_cv_type_z_streamp=no
10722 rm -f conftest.$ac_objext conftest.$ac_ext
10724 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10725 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10726 if test $ac_cv_type_z_streamp = yes; then
10729 { { echo "$as_me:$LINENO: error: zlib version is too old
10730 Use --without-zlib to disable zlib support." >&5
10731 echo "$as_me: error: zlib version is too old
10732 Use --without-zlib to disable zlib support." >&2;}
10733 { (exit 1); exit 1; }; }
10738 if test "$with_krb5" = yes; then
10739 # Check for differences between MIT and Heimdal (KTH) releases
10740 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10741 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10742 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10747 #include "confdefs.h"
10750 #ifdef F77_DUMMY_MAIN
10751 # ifdef __cplusplus
10754 int F77_DUMMY_MAIN() { return 1; }
10759 static krb5_ticket ac_aggr;
10760 if (ac_aggr.enc_part2)
10766 rm -f conftest.$ac_objext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768 (eval $ac_compile) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -s conftest.$ac_objext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_member_krb5_ticket_enc_part2=yes
10780 echo "$as_me: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 ac_cv_member_krb5_ticket_enc_part2=no
10784 rm -f conftest.$ac_objext conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10787 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10788 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10790 cat >>confdefs.h <<_ACEOF
10791 #define HAVE_KRB5_TICKET_ENC_PART2 1
10796 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10797 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10798 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 cat >conftest.$ac_ext <<_ACEOF
10802 #line $LINENO "configure"
10803 #include "confdefs.h"
10806 #ifdef F77_DUMMY_MAIN
10807 # ifdef __cplusplus
10810 int F77_DUMMY_MAIN() { return 1; }
10815 static krb5_ticket ac_aggr;
10816 if (ac_aggr.client)
10822 rm -f conftest.$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824 (eval $ac_compile) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_cv_member_krb5_ticket_client=yes
10836 echo "$as_me: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10838 ac_cv_member_krb5_ticket_client=no
10840 rm -f conftest.$ac_objext conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10843 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10844 if test $ac_cv_member_krb5_ticket_client = yes; then
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_KRB5_TICKET_CLIENT 1
10852 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10853 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10854 { (exit 1); exit 1; }; }
10859 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10860 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10861 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10869 #ifdef F77_DUMMY_MAIN
10870 # ifdef __cplusplus
10873 int F77_DUMMY_MAIN() { return 1; }
10878 static krb5_error ac_aggr;
10879 if (ac_aggr.text.data)
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 ac_cv_member_krb5_error_text_data=yes
10899 echo "$as_me: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10901 ac_cv_member_krb5_error_text_data=no
10903 rm -f conftest.$ac_objext conftest.$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10906 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10907 if test $ac_cv_member_krb5_error_text_data = yes; then
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10915 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10916 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10917 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 cat >conftest.$ac_ext <<_ACEOF
10921 #line $LINENO "configure"
10922 #include "confdefs.h"
10925 #ifdef F77_DUMMY_MAIN
10926 # ifdef __cplusplus
10929 int F77_DUMMY_MAIN() { return 1; }
10934 static krb5_error ac_aggr;
10935 if (ac_aggr.e_data)
10941 rm -f conftest.$ac_objext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10943 (eval $ac_compile) 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -s conftest.$ac_objext'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 ac_cv_member_krb5_error_e_data=yes
10955 echo "$as_me: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10957 ac_cv_member_krb5_error_e_data=no
10959 rm -f conftest.$ac_objext conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10962 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10963 if test $ac_cv_member_krb5_error_e_data = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_KRB5_ERROR_E_DATA 1
10971 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10972 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10973 { (exit 1); exit 1; }; }
10981 ## Functions, global variables
10984 echo "$as_me:$LINENO: checking for int timezone" >&5
10985 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10986 if test "${pgac_cv_var_int_timezone+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10990 #line $LINENO "configure"
10991 #include "confdefs.h"
10994 #ifdef F77_DUMMY_MAIN
10995 # ifdef __cplusplus
10998 int F77_DUMMY_MAIN() { return 1; }
11004 res = timezone / 60;
11006 res = _timezone / 60;
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -s conftest$ac_exeext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 pgac_cv_var_int_timezone=yes
11026 echo "$as_me: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 pgac_cv_var_int_timezone=no
11030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11032 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
11033 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
11034 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11036 cat >>confdefs.h <<\_ACEOF
11037 #define HAVE_INT_TIMEZONE
11041 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
11042 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
11043 if test "${ac_cv_func_accept_return+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 if test "${ac_cv_func_accept_arg1+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 if test "${ac_cv_func_accept_arg2+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 if test "${ac_cv_func_accept_arg3+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
11056 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
11057 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11058 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11059 cat >conftest.$ac_ext <<_ACEOF
11060 #line $LINENO "configure"
11061 #include "confdefs.h"
11062 #ifdef HAVE_SYS_TYPES_H
11063 #include <sys/types.h>
11065 #ifdef HAVE_SYS_SOCKET_H
11066 #include <sys/socket.h>
11068 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11069 #ifdef F77_DUMMY_MAIN
11070 # ifdef __cplusplus
11073 int F77_DUMMY_MAIN() { return 1; }
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_not_found=no; break 4
11097 echo "$as_me: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11106 if test "$ac_not_found" = yes; then
11107 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11108 echo "$as_me: error: could not determine argument types" >&2;}
11109 { (exit 1); exit 1; }; }
11111 if test "$ac_cv_func_accept_arg3" = "void"; then
11112 ac_cv_func_accept_arg3=int
11122 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
11123 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11125 cat >>confdefs.h <<_ACEOF
11126 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11130 cat >>confdefs.h <<_ACEOF
11131 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11135 cat >>confdefs.h <<_ACEOF
11136 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11140 cat >>confdefs.h <<_ACEOF
11141 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11145 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11146 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11147 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11152 #include "confdefs.h"
11153 #include <sys/time.h>
11154 #ifdef F77_DUMMY_MAIN
11155 # ifdef __cplusplus
11158 int F77_DUMMY_MAIN() { return 1; }
11163 struct timeval *tp;
11164 struct timezone *tzp;
11165 gettimeofday(tp,tzp);
11170 rm -f conftest.$ac_objext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 pgac_cv_func_gettimeofday_1arg=no
11184 echo "$as_me: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 pgac_cv_func_gettimeofday_1arg=yes
11188 rm -f conftest.$ac_objext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11191 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11192 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11194 cat >>confdefs.h <<\_ACEOF
11195 #define GETTIMEOFDAY_1ARG
11202 # SunOS doesn't handle negative byte comparisons properly with +/- return
11203 echo "$as_me:$LINENO: checking for working memcmp" >&5
11204 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11205 if test "${ac_cv_func_memcmp_working+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 if test "$cross_compiling" = yes; then
11209 ac_cv_func_memcmp_working=no
11211 cat >conftest.$ac_ext <<_ACEOF
11212 #line $LINENO "configure"
11213 #include "confdefs.h"
11215 #ifdef F77_DUMMY_MAIN
11216 # ifdef __cplusplus
11219 int F77_DUMMY_MAIN() { return 1; }
11225 /* Some versions of memcmp are not 8-bit clean. */
11226 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11227 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11230 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11231 or more and with at least one buffer not starting on a 4-byte boundary.
11232 William Lewis provided this test program. */
11237 for (i = 0; i < 4; i++)
11241 strcpy (a, "--------01111111");
11242 strcpy (b, "--------10000000");
11243 if (memcmp (a, b, 16) >= 0)
11253 rm -f conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255 (eval $ac_link) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_cv_func_memcmp_working=yes
11266 echo "$as_me: program exited with status $ac_status" >&5
11267 echo "$as_me: failed program was:" >&5
11268 cat conftest.$ac_ext >&5
11269 ( exit $ac_status )
11270 ac_cv_func_memcmp_working=no
11272 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11276 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11277 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11299 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11302 echo "$as_me:$LINENO: checking for $ac_func" >&5
11303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11304 if eval "test \"\${$as_ac_var+set}\" = set"; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 cat >conftest.$ac_ext <<_ACEOF
11308 #line $LINENO "configure"
11309 #include "confdefs.h"
11310 /* System header to define __stub macros and hopefully few prototypes,
11311 which can conflict with char $ac_func (); below. */
11312 #include <assert.h>
11313 /* Override any gcc2 internal prototype to avoid an error. */
11317 /* We use char because int might match the return type of a gcc2
11318 builtin and then its argument prototype would still apply. */
11322 #ifdef F77_DUMMY_MAIN
11323 # ifdef __cplusplus
11326 int F77_DUMMY_MAIN() { return 1; }
11331 /* The GNU C library defines this for functions which it implements
11332 to always fail with ENOSYS. Some functions are actually named
11333 something starting with __ and the normal name is an alias. */
11334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 eval "$as_ac_var=yes"
11358 echo "$as_me: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11360 eval "$as_ac_var=no"
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11375 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11376 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11377 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 cat >conftest.$ac_ext <<_ACEOF
11381 #line $LINENO "configure"
11382 #include "confdefs.h"
11383 #include <unistd.h>
11385 #ifdef F77_DUMMY_MAIN
11386 # ifdef __cplusplus
11389 int F77_DUMMY_MAIN() { return 1; }
11395 char *p = (char *) fdatasync;
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_have_decl_fdatasync=yes
11416 echo "$as_me: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 ac_cv_have_decl_fdatasync=no
11420 rm -f conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11423 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11424 if test $ac_cv_have_decl_fdatasync = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_DECL_FDATASYNC 1
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_DECL_FDATASYNC 0
11442 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11443 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11444 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 #include "confdefs.h"
11450 $ac_includes_default
11451 #include <netinet/in.h>
11453 #ifdef F77_DUMMY_MAIN
11454 # ifdef __cplusplus
11457 int F77_DUMMY_MAIN() { return 1; }
11462 if ((struct sockaddr_in6 *) 0)
11464 if (sizeof (struct sockaddr_in6))
11470 rm -f conftest.$ac_objext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472 (eval $ac_compile) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -s conftest.$ac_objext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_type_struct_sockaddr_in6=yes
11484 echo "$as_me: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 ac_cv_type_struct_sockaddr_in6=no
11488 rm -f conftest.$ac_objext conftest.$ac_ext
11490 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11491 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11492 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11493 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11494 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11495 if test "${ac_cv_func_inet_ntop+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 cat >conftest.$ac_ext <<_ACEOF
11499 #line $LINENO "configure"
11500 #include "confdefs.h"
11501 /* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char inet_ntop (); below. */
11503 #include <assert.h>
11504 /* Override any gcc2 internal prototype to avoid an error. */
11508 /* We use char because int might match the return type of a gcc2
11509 builtin and then its argument prototype would still apply. */
11513 #ifdef F77_DUMMY_MAIN
11514 # ifdef __cplusplus
11517 int F77_DUMMY_MAIN() { return 1; }
11522 /* The GNU C library defines this for functions which it implements
11523 to always fail with ENOSYS. Some functions are actually named
11524 something starting with __ and the normal name is an alias. */
11525 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11535 rm -f conftest.$ac_objext conftest$ac_exeext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -s conftest$ac_exeext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_func_inet_ntop=yes
11549 echo "$as_me: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11551 ac_cv_func_inet_ntop=no
11553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11556 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11557 if test $ac_cv_func_inet_ntop = yes; then
11559 cat >>confdefs.h <<\_ACEOF
11560 #define HAVE_IPV6 1
11570 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11571 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11572 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11577 #include "confdefs.h"
11578 #include <machine/vmparam.h>
11579 #include <sys/exec.h>
11581 #ifdef F77_DUMMY_MAIN
11582 # ifdef __cplusplus
11585 int F77_DUMMY_MAIN() { return 1; }
11590 PS_STRINGS->ps_nargvstr = 1;
11591 PS_STRINGS->ps_argvstr = "foo";
11596 rm -f conftest.$ac_objext conftest$ac_exeext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598 (eval $ac_link) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -s conftest$ac_exeext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 pgac_cv_var_PS_STRINGS=yes
11610 echo "$as_me: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11612 pgac_cv_var_PS_STRINGS=no
11614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11616 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11617 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11618 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11620 cat >>confdefs.h <<\_ACEOF
11621 #define HAVE_PS_STRINGS
11627 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11628 # is missing. Yes, there are machines that have only one. We may
11629 # also decide to use snprintf.c if snprintf() is present but does not
11630 # have working "long long int" support -- see below.
11632 pgac_need_repl_snprintf=no
11634 for ac_func in snprintf
11636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11637 echo "$as_me:$LINENO: checking for $ac_func" >&5
11638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_var+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11643 #line $LINENO "configure"
11644 #include "confdefs.h"
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below. */
11647 #include <assert.h>
11648 /* Override any gcc2 internal prototype to avoid an error. */
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11657 #ifdef F77_DUMMY_MAIN
11658 # ifdef __cplusplus
11661 int F77_DUMMY_MAIN() { return 1; }
11666 /* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
11669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11681 (eval $ac_link) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11693 echo "$as_me: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11695 eval "$as_ac_var=no"
11697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702 cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11707 pgac_need_repl_snprintf=yes
11712 for ac_func in vsnprintf
11714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715 echo "$as_me:$LINENO: checking for $ac_func" >&5
11716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11717 if eval "test \"\${$as_ac_var+set}\" = set"; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 cat >conftest.$ac_ext <<_ACEOF
11721 #line $LINENO "configure"
11722 #include "confdefs.h"
11723 /* System header to define __stub macros and hopefully few prototypes,
11724 which can conflict with char $ac_func (); below. */
11725 #include <assert.h>
11726 /* Override any gcc2 internal prototype to avoid an error. */
11730 /* We use char because int might match the return type of a gcc2
11731 builtin and then its argument prototype would still apply. */
11735 #ifdef F77_DUMMY_MAIN
11736 # ifdef __cplusplus
11739 int F77_DUMMY_MAIN() { return 1; }
11744 /* The GNU C library defines this for functions which it implements
11745 to always fail with ENOSYS. Some functions are actually named
11746 something starting with __ and the normal name is an alias. */
11747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11771 echo "$as_me: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11773 eval "$as_ac_var=no"
11775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11779 if test `eval echo '${'$as_ac_var'}'` = yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 pgac_need_repl_snprintf=yes
11791 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11792 # include/c.h will provide declarations. Note this is a separate test
11793 # from whether the functions exist in the C library --- there are
11794 # systems that have the functions but don't bother to declare them :-(
11796 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11797 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11798 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11802 #line $LINENO "configure"
11803 #include "confdefs.h"
11804 $ac_includes_default
11805 #ifdef F77_DUMMY_MAIN
11806 # ifdef __cplusplus
11809 int F77_DUMMY_MAIN() { return 1; }
11815 char *p = (char *) snprintf;
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_have_decl_snprintf=yes
11836 echo "$as_me: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 ac_cv_have_decl_snprintf=no
11840 rm -f conftest.$ac_objext conftest.$ac_ext
11842 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11843 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11844 if test $ac_cv_have_decl_snprintf = yes; then
11846 cat >>confdefs.h <<_ACEOF
11847 #define HAVE_DECL_SNPRINTF 1
11852 cat >>confdefs.h <<_ACEOF
11853 #define HAVE_DECL_SNPRINTF 0
11858 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11859 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11860 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11864 #line $LINENO "configure"
11865 #include "confdefs.h"
11866 $ac_includes_default
11867 #ifdef F77_DUMMY_MAIN
11868 # ifdef __cplusplus
11871 int F77_DUMMY_MAIN() { return 1; }
11877 char *p = (char *) vsnprintf;
11884 rm -f conftest.$ac_objext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11886 (eval $ac_compile) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -s conftest.$ac_objext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_cv_have_decl_vsnprintf=yes
11898 echo "$as_me: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 ac_cv_have_decl_vsnprintf=no
11902 rm -f conftest.$ac_objext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11905 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11906 if test $ac_cv_have_decl_vsnprintf = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909 #define HAVE_DECL_VSNPRINTF 1
11914 cat >>confdefs.h <<_ACEOF
11915 #define HAVE_DECL_VSNPRINTF 0
11924 # do this one the hard way in case isinf() is a macro
11925 echo "$as_me:$LINENO: checking for isinf" >&5
11926 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11927 if test "${ac_cv_func_isinf+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11931 #line $LINENO "configure"
11932 #include "confdefs.h"
11935 #ifdef F77_DUMMY_MAIN
11936 # ifdef __cplusplus
11939 int F77_DUMMY_MAIN() { return 1; }
11944 double x = 0.0; int res = isinf(x);
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest$ac_exeext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_func_isinf=yes
11963 echo "$as_me: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 ac_cv_func_isinf=no
11967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11969 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11970 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11972 if test $ac_cv_func_isinf = yes ; then
11974 cat >>confdefs.h <<\_ACEOF
11975 #define HAVE_ISINF 1
11979 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11980 # Look for a way to implement a substitute for isinf()
11985 for ac_func in fpclass fp_class fp_class_d class
11987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11988 echo "$as_me:$LINENO: checking for $ac_func" >&5
11989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11990 if eval "test \"\${$as_ac_var+set}\" = set"; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 cat >conftest.$ac_ext <<_ACEOF
11994 #line $LINENO "configure"
11995 #include "confdefs.h"
11996 /* System header to define __stub macros and hopefully few prototypes,
11997 which can conflict with char $ac_func (); below. */
11998 #include <assert.h>
11999 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12008 #ifdef F77_DUMMY_MAIN
12009 # ifdef __cplusplus
12012 int F77_DUMMY_MAIN() { return 1; }
12017 /* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 eval "$as_ac_var=yes"
12044 echo "$as_me: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 eval "$as_ac_var=no"
12048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12052 if test `eval echo '${'$as_ac_var'}'` = yes; then
12053 cat >>confdefs.h <<_ACEOF
12054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12075 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
12077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078 echo "$as_me:$LINENO: checking for $ac_func" >&5
12079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12080 if eval "test \"\${$as_ac_var+set}\" = set"; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12084 #line $LINENO "configure"
12085 #include "confdefs.h"
12086 /* System header to define __stub macros and hopefully few prototypes,
12087 which can conflict with char $ac_func (); below. */
12088 #include <assert.h>
12089 /* Override any gcc2 internal prototype to avoid an error. */
12093 /* We use char because int might match the return type of a gcc2
12094 builtin and then its argument prototype would still apply. */
12098 #ifdef F77_DUMMY_MAIN
12099 # ifdef __cplusplus
12102 int F77_DUMMY_MAIN() { return 1; }
12107 /* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
12110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_var=yes"
12134 echo "$as_me: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 eval "$as_ac_var=no"
12138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12142 if test `eval echo '${'$as_ac_var'}'` = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12148 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12154 # system's version of getaddrinfo(), if any, may be used only if we found
12155 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12156 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12158 for ac_func in getaddrinfo
12160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12161 echo "$as_me:$LINENO: checking for $ac_func" >&5
12162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12163 if eval "test \"\${$as_ac_var+set}\" = set"; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 cat >conftest.$ac_ext <<_ACEOF
12167 #line $LINENO "configure"
12168 #include "confdefs.h"
12169 /* System header to define __stub macros and hopefully few prototypes,
12170 which can conflict with char $ac_func (); below. */
12171 #include <assert.h>
12172 /* Override any gcc2 internal prototype to avoid an error. */
12176 /* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12181 #ifdef F77_DUMMY_MAIN
12182 # ifdef __cplusplus
12185 int F77_DUMMY_MAIN() { return 1; }
12190 /* The GNU C library defines this for functions which it implements
12191 to always fail with ENOSYS. Some functions are actually named
12192 something starting with __ and the normal name is an alias. */
12193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205 (eval $ac_link) 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 eval "$as_ac_var=yes"
12217 echo "$as_me: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 eval "$as_ac_var=no"
12221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12225 if test `eval echo '${'$as_ac_var'}'` = yes; then
12226 cat >>confdefs.h <<_ACEOF
12227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12231 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12237 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12240 # similarly, use system's getopt_long() only if system provides struct option.
12241 if test x"$ac_cv_type_struct_option" = xyes ; then
12243 for ac_func in getopt_long
12245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12246 echo "$as_me:$LINENO: checking for $ac_func" >&5
12247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12248 if eval "test \"\${$as_ac_var+set}\" = set"; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12252 #line $LINENO "configure"
12253 #include "confdefs.h"
12254 /* System header to define __stub macros and hopefully few prototypes,
12255 which can conflict with char $ac_func (); below. */
12256 #include <assert.h>
12257 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12266 #ifdef F77_DUMMY_MAIN
12267 # ifdef __cplusplus
12270 int F77_DUMMY_MAIN() { return 1; }
12275 /* The GNU C library defines this for functions which it implements
12276 to always fail with ENOSYS. Some functions are actually named
12277 something starting with __ and the normal name is an alias. */
12278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 eval "$as_ac_var=yes"
12302 echo "$as_me: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12304 eval "$as_ac_var=no"
12306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12310 if test `eval echo '${'$as_ac_var'}'` = yes; then
12311 cat >>confdefs.h <<_ACEOF
12312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12322 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12325 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12326 # We override the previous test that said fseeko/ftello didn't exist
12327 # OS tests are also done in include/c.h and port/fseeko.c
12328 case $host_os in bsdi*|netbsd*)
12329 ac_cv_func_fseeko=yes
12332 # Solaris has a very slow qsort in certain cases, so we replace it.
12333 if test "$PORTNAME" = "solaris"; then
12334 LIBOBJS="$LIBOBJS qsort.$ac_objext"
12338 if test "$PORTNAME" = "win32"; then
12339 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12340 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12341 LIBOBJS="$LIBOBJS kill.$ac_objext"
12342 LIBOBJS="$LIBOBJS open.$ac_objext"
12343 LIBOBJS="$LIBOBJS rand.$ac_objext"
12345 cat >>confdefs.h <<\_ACEOF
12346 #define HAVE_SYMLINK 1
12351 if test "$with_readline" = yes; then
12352 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12353 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12354 cat >conftest.$ac_ext <<_ACEOF
12355 #line $LINENO "configure"
12356 #include "confdefs.h"
12358 #ifdef HAVE_READLINE_READLINE_H
12359 # include <readline/readline.h>
12360 #elif defined(HAVE_READLINE_H)
12361 # include <readline.h>
12364 #ifdef F77_DUMMY_MAIN
12365 # ifdef __cplusplus
12368 int F77_DUMMY_MAIN() { return 1; }
12373 rl_completion_append_character = 'x';
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -s conftest$ac_exeext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 echo "$as_me:$LINENO: result: yes" >&5
12391 echo "${ECHO_T}yes" >&6
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12398 echo "$as_me: failed program was:" >&5
12399 cat conftest.$ac_ext >&5
12400 echo "$as_me:$LINENO: result: no" >&5
12401 echo "${ECHO_T}no" >&6
12403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12406 for ac_func in rl_completion_matches rl_filename_completion_function
12408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12409 echo "$as_me:$LINENO: checking for $ac_func" >&5
12410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12411 if eval "test \"\${$as_ac_var+set}\" = set"; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 cat >conftest.$ac_ext <<_ACEOF
12415 #line $LINENO "configure"
12416 #include "confdefs.h"
12417 /* System header to define __stub macros and hopefully few prototypes,
12418 which can conflict with char $ac_func (); below. */
12419 #include <assert.h>
12420 /* Override any gcc2 internal prototype to avoid an error. */
12424 /* We use char because int might match the return type of a gcc2
12425 builtin and then its argument prototype would still apply. */
12429 #ifdef F77_DUMMY_MAIN
12430 # ifdef __cplusplus
12433 int F77_DUMMY_MAIN() { return 1; }
12438 /* The GNU C library defines this for functions which it implements
12439 to always fail with ENOSYS. Some functions are actually named
12440 something starting with __ and the normal name is an alias. */
12441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12451 rm -f conftest.$ac_objext conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 eval "$as_ac_var=yes"
12465 echo "$as_me: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 eval "$as_ac_var=no"
12469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12473 if test `eval echo '${'$as_ac_var'}'` = yes; then
12474 cat >>confdefs.h <<_ACEOF
12475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12482 for ac_func in replace_history_entry
12484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12485 echo "$as_me:$LINENO: checking for $ac_func" >&5
12486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12487 if eval "test \"\${$as_ac_var+set}\" = set"; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12491 #line $LINENO "configure"
12492 #include "confdefs.h"
12493 /* System header to define __stub macros and hopefully few prototypes,
12494 which can conflict with char $ac_func (); below. */
12495 #include <assert.h>
12496 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12505 #ifdef F77_DUMMY_MAIN
12506 # ifdef __cplusplus
12509 int F77_DUMMY_MAIN() { return 1; }
12514 /* The GNU C library defines this for functions which it implements
12515 to always fail with ENOSYS. Some functions are actually named
12516 something starting with __ and the normal name is an alias. */
12517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529 (eval $ac_link) 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 eval "$as_ac_var=yes"
12541 echo "$as_me: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 eval "$as_ac_var=no"
12545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12549 if test `eval echo '${'$as_ac_var'}'` = yes; then
12550 cat >>confdefs.h <<_ACEOF
12551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 echo "$as_me:$LINENO: checking for finite" >&5
12561 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12562 cat >conftest.$ac_ext <<_ACEOF
12563 #line $LINENO "configure"
12564 #include "confdefs.h"
12566 #ifdef F77_DUMMY_MAIN
12567 # ifdef __cplusplus
12570 int F77_DUMMY_MAIN() { return 1; }
12575 int dummy=finite(1.0);
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12582 (eval $ac_link) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -s conftest$ac_exeext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_FINITE 1
12597 echo "$as_me:$LINENO: result: yes" >&5
12598 echo "${ECHO_T}yes" >&6
12600 echo "$as_me: failed program was:" >&5
12601 cat conftest.$ac_ext >&5
12602 echo "$as_me:$LINENO: result: no" >&5
12603 echo "${ECHO_T}no" >&6
12605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12607 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12608 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12610 #line $LINENO "configure"
12611 #include "confdefs.h"
12612 #include <setjmp.h>
12613 #ifdef F77_DUMMY_MAIN
12614 # ifdef __cplusplus
12617 int F77_DUMMY_MAIN() { return 1; }
12622 sigjmp_buf x; sigsetjmp(x, 1);
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12629 (eval $ac_link) 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -s conftest$ac_exeext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_SIGSETJMP 1
12644 echo "$as_me:$LINENO: result: yes" >&5
12645 echo "${ECHO_T}yes" >&6
12647 echo "$as_me: failed program was:" >&5
12648 cat conftest.$ac_ext >&5
12649 echo "$as_me:$LINENO: result: no" >&5
12650 echo "${ECHO_T}no" >&6
12652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12654 echo "$as_me:$LINENO: checking for syslog" >&5
12655 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12656 if test "${ac_cv_func_syslog+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 cat >conftest.$ac_ext <<_ACEOF
12660 #line $LINENO "configure"
12661 #include "confdefs.h"
12662 /* System header to define __stub macros and hopefully few prototypes,
12663 which can conflict with char syslog (); below. */
12664 #include <assert.h>
12665 /* Override any gcc2 internal prototype to avoid an error. */
12669 /* We use char because int might match the return type of a gcc2
12670 builtin and then its argument prototype would still apply. */
12674 #ifdef F77_DUMMY_MAIN
12675 # ifdef __cplusplus
12678 int F77_DUMMY_MAIN() { return 1; }
12683 /* The GNU C library defines this for functions which it implements
12684 to always fail with ENOSYS. Some functions are actually named
12685 something starting with __ and the normal name is an alias. */
12686 #if defined (__stub_syslog) || defined (__stub___syslog)
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698 (eval $ac_link) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 ac_cv_func_syslog=yes
12710 echo "$as_me: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12712 ac_cv_func_syslog=no
12714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12716 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12717 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12718 if test $ac_cv_func_syslog = yes; then
12719 if test "${ac_cv_header_syslog_h+set}" = set; then
12720 echo "$as_me:$LINENO: checking for syslog.h" >&5
12721 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12722 if test "${ac_cv_header_syslog_h+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12726 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12728 # Is the header compilable?
12729 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12730 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12731 cat >conftest.$ac_ext <<_ACEOF
12732 #line $LINENO "configure"
12733 #include "confdefs.h"
12734 $ac_includes_default
12735 #include <syslog.h>
12737 rm -f conftest.$ac_objext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739 (eval $ac_compile) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_header_compiler=yes
12751 echo "$as_me: failed program was:" >&5
12752 cat conftest.$ac_ext >&5
12753 ac_header_compiler=no
12755 rm -f conftest.$ac_objext conftest.$ac_ext
12756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12757 echo "${ECHO_T}$ac_header_compiler" >&6
12759 # Is the header present?
12760 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12761 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12762 cat >conftest.$ac_ext <<_ACEOF
12763 #line $LINENO "configure"
12764 #include "confdefs.h"
12765 #include <syslog.h>
12767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12770 egrep -v '^ *\+' conftest.er1 >conftest.err
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } >/dev/null; then
12775 if test -s conftest.err; then
12776 ac_cpp_err=$ac_c_preproc_warn_flag
12783 if test -z "$ac_cpp_err"; then
12784 ac_header_preproc=yes
12786 echo "$as_me: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12788 ac_header_preproc=no
12790 rm -f conftest.err conftest.$ac_ext
12791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792 echo "${ECHO_T}$ac_header_preproc" >&6
12794 # So? What about this header?
12795 case $ac_header_compiler:$ac_header_preproc in
12797 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12798 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12800 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12802 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12803 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12805 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12807 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12809 echo "$as_me:$LINENO: checking for syslog.h" >&5
12810 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12811 if test "${ac_cv_header_syslog_h+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 ac_cv_header_syslog_h=$ac_header_preproc
12816 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12817 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12820 if test $ac_cv_header_syslog_h = yes; then
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_SYSLOG 1
12832 echo "$as_me:$LINENO: checking for optreset" >&5
12833 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12834 if test "${pgac_cv_var_int_optreset+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 cat >conftest.$ac_ext <<_ACEOF
12838 #line $LINENO "configure"
12839 #include "confdefs.h"
12840 #include <unistd.h>
12841 #ifdef F77_DUMMY_MAIN
12842 # ifdef __cplusplus
12845 int F77_DUMMY_MAIN() { return 1; }
12850 extern int optreset; optreset = 1;
12855 rm -f conftest.$ac_objext conftest$ac_exeext
12856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12857 (eval $ac_link) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } &&
12861 { ac_try='test -s conftest$ac_exeext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 pgac_cv_var_int_optreset=yes
12869 echo "$as_me: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12871 pgac_cv_var_int_optreset=no
12873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12875 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12876 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12877 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_INT_OPTRESET 1
12887 for ac_func in strtoll strtoq
12889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12890 echo "$as_me:$LINENO: checking for $ac_func" >&5
12891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12892 if eval "test \"\${$as_ac_var+set}\" = set"; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 cat >conftest.$ac_ext <<_ACEOF
12896 #line $LINENO "configure"
12897 #include "confdefs.h"
12898 /* System header to define __stub macros and hopefully few prototypes,
12899 which can conflict with char $ac_func (); below. */
12900 #include <assert.h>
12901 /* Override any gcc2 internal prototype to avoid an error. */
12905 /* We use char because int might match the return type of a gcc2
12906 builtin and then its argument prototype would still apply. */
12910 #ifdef F77_DUMMY_MAIN
12911 # ifdef __cplusplus
12914 int F77_DUMMY_MAIN() { return 1; }
12919 /* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934 (eval $ac_link) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 eval "$as_ac_var=yes"
12946 echo "$as_me: failed program was:" >&5
12947 cat conftest.$ac_ext >&5
12948 eval "$as_ac_var=no"
12950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12954 if test `eval echo '${'$as_ac_var'}'` = yes; then
12955 cat >>confdefs.h <<_ACEOF
12956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12964 for ac_func in strtoull strtouq
12966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 echo "$as_me:$LINENO: checking for $ac_func" >&5
12968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12969 if eval "test \"\${$as_ac_var+set}\" = set"; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 cat >conftest.$ac_ext <<_ACEOF
12973 #line $LINENO "configure"
12974 #include "confdefs.h"
12975 /* System header to define __stub macros and hopefully few prototypes,
12976 which can conflict with char $ac_func (); below. */
12977 #include <assert.h>
12978 /* Override any gcc2 internal prototype to avoid an error. */
12982 /* We use char because int might match the return type of a gcc2
12983 builtin and then its argument prototype would still apply. */
12987 #ifdef F77_DUMMY_MAIN
12988 # ifdef __cplusplus
12991 int F77_DUMMY_MAIN() { return 1; }
12996 /* The GNU C library defines this for functions which it implements
12997 to always fail with ENOSYS. Some functions are actually named
12998 something starting with __ and the normal name is an alias. */
12999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13009 rm -f conftest.$ac_objext conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011 (eval $ac_link) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } &&
13015 { ac_try='test -s conftest$ac_exeext'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13021 eval "$as_ac_var=yes"
13023 echo "$as_me: failed program was:" >&5
13024 cat conftest.$ac_ext >&5
13025 eval "$as_ac_var=no"
13027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13031 if test `eval echo '${'$as_ac_var'}'` = yes; then
13032 cat >>confdefs.h <<_ACEOF
13033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13040 # Check for one of atexit() or on_exit()
13042 for ac_func in atexit
13044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045 echo "$as_me:$LINENO: checking for $ac_func" >&5
13046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13047 if eval "test \"\${$as_ac_var+set}\" = set"; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.$ac_ext <<_ACEOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13053 /* System header to define __stub macros and hopefully few prototypes,
13054 which can conflict with char $ac_func (); below. */
13055 #include <assert.h>
13056 /* Override any gcc2 internal prototype to avoid an error. */
13060 /* We use char because int might match the return type of a gcc2
13061 builtin and then its argument prototype would still apply. */
13065 #ifdef F77_DUMMY_MAIN
13066 # ifdef __cplusplus
13069 int F77_DUMMY_MAIN() { return 1; }
13074 /* The GNU C library defines this for functions which it implements
13075 to always fail with ENOSYS. Some functions are actually named
13076 something starting with __ and the normal name is an alias. */
13077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 eval "$as_ac_var=yes"
13101 echo "$as_me: failed program was:" >&5
13102 cat conftest.$ac_ext >&5
13103 eval "$as_ac_var=no"
13105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13109 if test `eval echo '${'$as_ac_var'}'` = yes; then
13110 cat >>confdefs.h <<_ACEOF
13111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13116 for ac_func in on_exit
13118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13119 echo "$as_me:$LINENO: checking for $ac_func" >&5
13120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13121 if eval "test \"\${$as_ac_var+set}\" = set"; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 cat >conftest.$ac_ext <<_ACEOF
13125 #line $LINENO "configure"
13126 #include "confdefs.h"
13127 /* System header to define __stub macros and hopefully few prototypes,
13128 which can conflict with char $ac_func (); below. */
13129 #include <assert.h>
13130 /* Override any gcc2 internal prototype to avoid an error. */
13134 /* We use char because int might match the return type of a gcc2
13135 builtin and then its argument prototype would still apply. */
13139 #ifdef F77_DUMMY_MAIN
13140 # ifdef __cplusplus
13143 int F77_DUMMY_MAIN() { return 1; }
13148 /* The GNU C library defines this for functions which it implements
13149 to always fail with ENOSYS. Some functions are actually named
13150 something starting with __ and the normal name is an alias. */
13151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163 (eval $ac_link) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -s conftest$ac_exeext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 eval "$as_ac_var=yes"
13175 echo "$as_me: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13177 eval "$as_ac_var=no"
13179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13183 if test `eval echo '${'$as_ac_var'}'` = yes; then
13184 cat >>confdefs.h <<_ACEOF
13185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13189 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13190 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13191 { (exit 1); exit 1; }; }
13199 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13200 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13201 if test "${ac_cv_sys_largefile_source+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 ac_cv_sys_largefile_source=no
13206 cat >conftest.$ac_ext <<_ACEOF
13207 #line $LINENO "configure"
13208 #include "confdefs.h"
13210 #ifdef F77_DUMMY_MAIN
13211 # ifdef __cplusplus
13214 int F77_DUMMY_MAIN() { return 1; }
13224 rm -f conftest.$ac_objext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13226 (eval $ac_compile) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -s conftest.$ac_objext'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13238 echo "$as_me: failed program was:" >&5
13239 cat conftest.$ac_ext >&5
13241 rm -f conftest.$ac_objext conftest.$ac_ext
13242 cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13244 #include "confdefs.h"
13245 #define _LARGEFILE_SOURCE 1
13247 #ifdef F77_DUMMY_MAIN
13248 # ifdef __cplusplus
13251 int F77_DUMMY_MAIN() { return 1; }
13261 rm -f conftest.$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -s conftest.$ac_objext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_cv_sys_largefile_source=1; break
13275 echo "$as_me: failed program was:" >&5
13276 cat conftest.$ac_ext >&5
13278 rm -f conftest.$ac_objext conftest.$ac_ext
13282 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13283 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13284 if test "$ac_cv_sys_largefile_source" != no; then
13286 cat >>confdefs.h <<_ACEOF
13287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13294 # in glibc 2.1.3, but that breaks too many other things.
13295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13296 echo "$as_me:$LINENO: checking for fseeko" >&5
13297 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13298 if test "${ac_cv_func_fseeko+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 cat >conftest.$ac_ext <<_ACEOF
13302 #line $LINENO "configure"
13303 #include "confdefs.h"
13305 #ifdef F77_DUMMY_MAIN
13306 # ifdef __cplusplus
13309 int F77_DUMMY_MAIN() { return 1; }
13314 return fseeko && fseeko (stdin, 0, 0);
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321 (eval $ac_link) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_func_fseeko=yes
13333 echo "$as_me: failed program was:" >&5
13334 cat conftest.$ac_ext >&5
13335 ac_cv_func_fseeko=no
13337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13339 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13340 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13341 if test $ac_cv_func_fseeko = yes; then
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_FSEEKO 1
13353 # For each platform, we need to know about any special compile and link
13354 # libraries, and whether the normal C function names are thread-safe.
13355 # See the comment at the top of src/port/thread.c for more information.
13357 if test "$enable_thread_safety" = yes; then
13363 ac_cpp='$CPP $CPPFLAGS'
13364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13370 # We used to check for pthread.h first, but this fails if pthread.h
13371 # requires special compiler flags (e.g. on True64 or Sequent).
13372 # It gets checked for in the link test anyway.
13374 # First of all, check if the user has set any of the PTHREAD_LIBS,
13375 # etcetera environment variables, and if threads linking works using
13377 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13378 save_CFLAGS="$CFLAGS"
13379 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13381 LIBS="$PTHREAD_LIBS $LIBS"
13382 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13383 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13384 cat >conftest.$ac_ext <<_ACEOF
13385 #line $LINENO "configure"
13386 #include "confdefs.h"
13388 /* Override any gcc2 internal prototype to avoid an error. */
13392 /* We use char because int might match the return type of a gcc2
13393 builtin and then its argument prototype would still apply. */
13394 char pthread_join ();
13395 #ifdef F77_DUMMY_MAIN
13396 # ifdef __cplusplus
13399 int F77_DUMMY_MAIN() { return 1; }
13409 rm -f conftest.$ac_objext conftest$ac_exeext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411 (eval $ac_link) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -s conftest$ac_exeext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13423 echo "$as_me: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13427 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13428 echo "${ECHO_T}$acx_pthread_ok" >&6
13429 if test x"$acx_pthread_ok" = xno; then
13434 CFLAGS="$save_CFLAGS"
13437 # We must check for the threads library under a number of different
13438 # names; the ordering is very important because some systems
13439 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13440 # libraries is broken (non-POSIX).
13442 # Create a list of thread flags to try. Items starting with a "-" are
13443 # C compiler flags, and other items are library names, except for "none"
13444 # which indicates that we try without any flags at all, and "pthread-config"
13445 # which is a program returning the flags for the Pth emulation library.
13447 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13449 # The ordering *is* (sometimes) important. Some notes on the
13450 # individual items follow:
13452 # pthreads: AIX (must check this before -lpthread)
13453 # none: in case threads are in libc; should be tried before -Kthread and
13454 # other compiler flags to prevent continual compiler warnings
13455 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13456 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13457 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13458 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13459 # -pthreads: Solaris/gcc
13460 # -mthreads: Mingw32/gcc, Lynx/gcc
13461 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13462 # doesn't hurt to check since this sometimes defines pthreads too;
13463 # also defines -D_REENTRANT)
13464 # pthread: Linux, etcetera
13465 # --thread-safe: KAI C++
13466 # pthread-config: use pthread-config program (for GNU Pth library)
13468 case "${host_cpu}-${host_os}" in
13471 # On Solaris (at least, for some versions), libc contains stubbed
13472 # (non-functional) versions of the pthreads routines, so link-based
13473 # tests will erroneously succeed. (We need to link with -pthread or
13474 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13475 # a function called by this macro, so we could check for that, but
13476 # who knows whether they'll stub that too in a future libc.) So,
13477 # we'll just look for -pthreads and -lpthread first:
13479 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13483 if test x"$acx_pthread_ok" = xno; then
13484 for flag in $acx_pthread_flags; do
13486 tryPTHREAD_CFLAGS=""
13490 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13491 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13495 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13496 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13497 tryPTHREAD_CFLAGS="$flag"
13501 # skip this if we already have flags defined, for PostgreSQL
13502 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13503 # Extract the first word of "pthread-config", so it can be a program name with args.
13504 set dummy pthread-config; ac_word=$2
13505 echo "$as_me:$LINENO: checking for $ac_word" >&5
13506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13507 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 if test -n "$acx_pthread_config"; then
13511 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514 for as_dir in $PATH
13517 test -z "$as_dir" && as_dir=.
13518 for ac_exec_ext in '' $ac_executable_extensions; do
13519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13520 ac_cv_prog_acx_pthread_config="yes"
13521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13527 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13530 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13531 if test -n "$acx_pthread_config"; then
13532 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13533 echo "${ECHO_T}$acx_pthread_config" >&6
13535 echo "$as_me:$LINENO: result: no" >&5
13536 echo "${ECHO_T}no" >&6
13539 if test x"$acx_pthread_config" = xno; then continue; fi
13540 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
13541 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13545 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13546 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13547 tryPTHREAD_LIBS="-l$flag"
13552 save_CFLAGS="$CFLAGS"
13553 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
13554 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13556 # Check for various functions. We must include pthread.h,
13557 # since some functions may be macros. (On the Sequent, we
13558 # need a special flag -Kthread to make this header compile.)
13559 # We check for pthread_join because it is in -lpthread on IRIX
13560 # while pthread_create is in libc. We check for pthread_attr_init
13561 # due to DEC craziness with -lpthreads. We check for
13562 # pthread_cleanup_push because it is one of the few pthread
13563 # functions on Solaris that doesn't have a non-functional libc stub.
13564 # We try pthread_create on general principles.
13565 cat >conftest.$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13567 #include "confdefs.h"
13568 #include <pthread.h>
13569 #ifdef F77_DUMMY_MAIN
13570 # ifdef __cplusplus
13573 int F77_DUMMY_MAIN() { return 1; }
13578 pthread_t th; pthread_join(th, 0);
13579 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13580 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13587 (eval $ac_link) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } &&
13591 { ac_try='test -s conftest$ac_exeext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13599 echo "$as_me: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13605 if test "x$acx_pthread_ok" = xyes; then
13606 # Don't use options that are ignored by the compiler.
13607 # We find them by checking stderror.
13608 cat >conftest.$ac_ext <<_ACEOF
13610 main (int argc, char **argv)
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
13619 # we continue with more flags because Linux needs -lpthread
13620 # for libpq builds on PostgreSQL. The test above only
13621 # tests for building binaries, not shared libraries.
13622 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
13623 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13624 else acx_pthread_ok=no
13629 CFLAGS="$save_CFLAGS"
13631 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13632 echo "${ECHO_T}$acx_pthread_ok" >&6
13636 # Various other checks:
13637 if test "x$acx_pthread_ok" = xyes; then
13639 LIBS="$PTHREAD_LIBS $LIBS"
13640 save_CFLAGS="$CFLAGS"
13641 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13643 # Detect AIX lossage: threads are created detached by default
13644 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13645 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13646 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13647 cat >conftest.$ac_ext <<_ACEOF
13648 #line $LINENO "configure"
13649 #include "confdefs.h"
13650 #include <pthread.h>
13651 #ifdef F77_DUMMY_MAIN
13652 # ifdef __cplusplus
13655 int F77_DUMMY_MAIN() { return 1; }
13660 int attr=PTHREAD_CREATE_JOINABLE;
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667 (eval $ac_link) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -s conftest$ac_exeext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ok=PTHREAD_CREATE_JOINABLE
13679 echo "$as_me: failed program was:" >&5
13680 cat conftest.$ac_ext >&5
13683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13684 if test x"$ok" = xunknown; then
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 #include <pthread.h>
13689 #ifdef F77_DUMMY_MAIN
13690 # ifdef __cplusplus
13693 int F77_DUMMY_MAIN() { return 1; }
13698 int attr=PTHREAD_CREATE_UNDETACHED;
13703 rm -f conftest.$ac_objext conftest$ac_exeext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705 (eval $ac_link) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ok=PTHREAD_CREATE_UNDETACHED
13717 echo "$as_me: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13723 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13725 cat >>confdefs.h <<\_ACEOF
13726 #define PTHREAD_CREATE_JOINABLE $ok
13730 echo "$as_me:$LINENO: result: ${ok}" >&5
13731 echo "${ECHO_T}${ok}" >&6
13732 if test x"$ok" = xunknown; then
13733 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13734 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13737 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13738 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13740 # We always add these in PostgreSQL
13741 # case "${host_cpu}-${host_os}" in
13742 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13743 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13745 echo "$as_me:$LINENO: result: ${flag}" >&5
13746 echo "${ECHO_T}${flag}" >&6
13747 if test "x$flag" != xno; then
13748 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13752 CFLAGS="$save_CFLAGS"
13754 # More AIX lossage: must compile with cc_r
13755 # Extract the first word of "cc_r", so it can be a program name with args.
13756 set dummy cc_r; ac_word=$2
13757 echo "$as_me:$LINENO: checking for $ac_word" >&5
13758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13759 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 if test -n "$PTHREAD_CC"; then
13763 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_PTHREAD_CC="cc_r"
13773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13779 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13782 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13783 if test -n "$PTHREAD_CC"; then
13784 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13785 echo "${ECHO_T}$PTHREAD_CC" >&6
13787 echo "$as_me:$LINENO: result: no" >&5
13788 echo "${ECHO_T}no" >&6
13799 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13800 if test x"$acx_pthread_ok" = xyes; then
13802 cat >>confdefs.h <<\_ACEOF
13803 #define HAVE_PTHREAD 1
13812 ac_cpp='$CPP $CPPFLAGS'
13813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13819 # Some platforms use these, so just defineed them. They can't hurt if they
13820 # are not supported.
13821 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13824 # At this point, we don't want to muck with the compiler name for threading.
13825 # Let's see who fails, perhaps AIX. 2004-04-23
13826 if test "$PTHREAD_CC" != "$CC"; then
13827 { { echo "$as_me:$LINENO: error:
13828 PostgreSQL does not support platforms that require a special
13829 compiler binary for thread-safety.
13831 echo "$as_me: error:
13832 PostgreSQL does not support platforms that require a special
13833 compiler binary for thread-safety.
13835 { (exit 1); exit 1; }; }
13838 if test "$THREAD_SUPPORT" = no; then
13839 { { echo "$as_me:$LINENO: error:
13840 Cannot enable threads on your platform.
13841 Your platform is known to not support thread-safe programs.
13842 For details, compile and run src/bin/pg_thread_test.
13844 echo "$as_me: error:
13845 Cannot enable threads on your platform.
13846 Your platform is known to not support thread-safe programs.
13847 For details, compile and run src/bin/pg_thread_test.
13849 { (exit 1); exit 1; }; }
13852 # Check for *_r functions
13855 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13856 LIBS="$LIBS $PTHREAD_LIBS"
13858 if test "${ac_cv_header_pthread_h+set}" = set; then
13859 echo "$as_me:$LINENO: checking for pthread.h" >&5
13860 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13861 if test "${ac_cv_header_pthread_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13865 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13867 # Is the header compilable?
13868 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13869 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13870 cat >conftest.$ac_ext <<_ACEOF
13871 #line $LINENO "configure"
13872 #include "confdefs.h"
13873 $ac_includes_default
13874 #include <pthread.h>
13876 rm -f conftest.$ac_objext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13878 (eval $ac_compile) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -s conftest.$ac_objext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_header_compiler=yes
13890 echo "$as_me: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 ac_header_compiler=no
13894 rm -f conftest.$ac_objext conftest.$ac_ext
13895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13896 echo "${ECHO_T}$ac_header_compiler" >&6
13898 # Is the header present?
13899 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13900 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13901 cat >conftest.$ac_ext <<_ACEOF
13902 #line $LINENO "configure"
13903 #include "confdefs.h"
13904 #include <pthread.h>
13906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13909 egrep -v '^ *\+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } >/dev/null; then
13914 if test -s conftest.err; then
13915 ac_cpp_err=$ac_c_preproc_warn_flag
13922 if test -z "$ac_cpp_err"; then
13923 ac_header_preproc=yes
13925 echo "$as_me: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13927 ac_header_preproc=no
13929 rm -f conftest.err conftest.$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13931 echo "${ECHO_T}$ac_header_preproc" >&6
13933 # So? What about this header?
13934 case $ac_header_compiler:$ac_header_preproc in
13936 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13937 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13939 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13941 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13942 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13944 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13946 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13948 echo "$as_me:$LINENO: checking for pthread.h" >&5
13949 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13950 if test "${ac_cv_header_pthread_h+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 ac_cv_header_pthread_h=$ac_header_preproc
13955 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13956 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13959 if test $ac_cv_header_pthread_h = yes; then
13962 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13963 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13964 { (exit 1); exit 1; }; }
13972 for ac_func in strerror_r getpwuid_r gethostbyname_r
13974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13975 echo "$as_me:$LINENO: checking for $ac_func" >&5
13976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13977 if eval "test \"\${$as_ac_var+set}\" = set"; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 cat >conftest.$ac_ext <<_ACEOF
13981 #line $LINENO "configure"
13982 #include "confdefs.h"
13983 /* System header to define __stub macros and hopefully few prototypes,
13984 which can conflict with char $ac_func (); below. */
13985 #include <assert.h>
13986 /* Override any gcc2 internal prototype to avoid an error. */
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
13995 #ifdef F77_DUMMY_MAIN
13996 # ifdef __cplusplus
13999 int F77_DUMMY_MAIN() { return 1; }
14004 /* The GNU C library defines this for functions which it implements
14005 to always fail with ENOSYS. Some functions are actually named
14006 something starting with __ and the normal name is an alias. */
14007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14017 rm -f conftest.$ac_objext conftest$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -s conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 eval "$as_ac_var=yes"
14031 echo "$as_me: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 eval "$as_ac_var=no"
14035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14039 if test `eval echo '${'$as_ac_var'}'` = yes; then
14040 cat >>confdefs.h <<_ACEOF
14041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14048 # Do test here with the proper thread flags
14049 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
14050 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
14051 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 cat >conftest.$ac_ext <<_ACEOF
14055 #line $LINENO "configure"
14056 #include "confdefs.h"
14057 #include <sys/types.h>
14059 #ifdef F77_DUMMY_MAIN
14060 # ifdef __cplusplus
14063 int F77_DUMMY_MAIN() { return 1; }
14069 struct passwd *space;
14072 struct passwd **result;
14073 getpwuid_r(uid, space, buf, bufsize, result);
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -s conftest.$ac_objext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 pgac_func_getpwuid_r_5arg=yes
14092 echo "$as_me: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 pgac_func_getpwuid_r_5arg=no
14096 rm -f conftest.$ac_objext conftest.$ac_ext
14098 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
14099 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
14100 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
14102 cat >>confdefs.h <<\_ACEOF
14103 #define GETPWUID_R_5ARG
14108 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
14109 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
14110 if test "${pgac_func_strerror_r_int+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 cat >conftest.$ac_ext <<_ACEOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14116 #include <string.h>
14117 #ifdef F77_DUMMY_MAIN
14118 # ifdef __cplusplus
14121 int F77_DUMMY_MAIN() { return 1; }
14126 int strerror_r(int, char *, size_t);
14131 rm -f conftest.$ac_objext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133 (eval $ac_compile) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 pgac_func_strerror_r_int=yes
14145 echo "$as_me: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14147 pgac_func_strerror_r_int=no
14149 rm -f conftest.$ac_objext conftest.$ac_ext
14151 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
14152 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
14153 if test x"$pgac_func_strerror_r_int" = xyes ; then
14155 cat >>confdefs.h <<\_ACEOF
14156 #define STRERROR_R_INT
14166 # do not use values from template file
14175 # This test makes sure that run tests work at all. Sometimes a shared
14176 # library is found by the linker, but the runtime linker can't find it.
14177 # This check should come after all modifications of compiler or linker
14178 # variables, and before any other run tests.
14179 echo "$as_me:$LINENO: checking test program" >&5
14180 echo $ECHO_N "checking test program... $ECHO_C" >&6
14181 if test "$cross_compiling" = yes; then
14182 echo "$as_me:$LINENO: result: cross-compiling" >&5
14183 echo "${ECHO_T}cross-compiling" >&6
14185 cat >conftest.$ac_ext <<_ACEOF
14186 #line $LINENO "configure"
14187 #include "confdefs.h"
14188 int main() { return 0; }
14190 rm -f conftest$ac_exeext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14192 (eval $ac_link) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; }; then
14201 echo "$as_me:$LINENO: result: ok" >&5
14202 echo "${ECHO_T}ok" >&6
14204 echo "$as_me: program exited with status $ac_status" >&5
14205 echo "$as_me: failed program was:" >&5
14206 cat conftest.$ac_ext >&5
14207 ( exit $ac_status )
14208 echo "$as_me:$LINENO: result: failed" >&5
14209 echo "${ECHO_T}failed" >&6
14210 { { echo "$as_me:$LINENO: error:
14211 *** Could not execute a simple test program. This may be a problem
14212 *** related to locating shared libraries. Check the file 'config.log'
14213 *** for the exact reason." >&5
14214 echo "$as_me: error:
14215 *** Could not execute a simple test program. This may be a problem
14216 *** related to locating shared libraries. Check the file 'config.log'
14217 *** for the exact reason." >&2;}
14218 { (exit 1); exit 1; }; }
14220 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14225 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
14226 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
14227 if test "${pgac_cv_type_long_int_64+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 if test "$cross_compiling" = yes; then
14231 # If cross-compiling, check the size reported by the compiler and
14232 # trust that the arithmetic works.
14233 cat >conftest.$ac_ext <<_ACEOF
14234 #line $LINENO "configure"
14235 #include "confdefs.h"
14237 #ifdef F77_DUMMY_MAIN
14238 # ifdef __cplusplus
14241 int F77_DUMMY_MAIN() { return 1; }
14246 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 pgac_cv_type_long_int_64=yes
14267 echo "$as_me: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14269 pgac_cv_type_long_int_64=no
14271 rm -f conftest.$ac_objext conftest.$ac_ext
14273 cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14275 #include "confdefs.h"
14276 typedef long int int64;
14279 * These are globals to discourage the compiler from folding all the
14280 * arithmetic tests down to compile-time constants.
14282 int64 a = 20000001;
14283 int64 b = 40000005;
14285 int does_int64_work()
14289 if (sizeof(int64) != 8)
14290 return 0; /* definitely not the right size */
14292 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14300 exit(! does_int64_work());
14303 rm -f conftest$ac_exeext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14305 (eval $ac_link) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 pgac_cv_type_long_int_64=yes
14316 echo "$as_me: program exited with status $ac_status" >&5
14317 echo "$as_me: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14319 ( exit $ac_status )
14320 pgac_cv_type_long_int_64=no
14322 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14325 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14326 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14328 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14329 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14331 cat >>confdefs.h <<\_ACEOF
14332 #define HAVE_LONG_INT_64
14338 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14339 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14340 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14341 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 if test "$cross_compiling" = yes; then
14345 # If cross-compiling, check the size reported by the compiler and
14346 # trust that the arithmetic works.
14347 cat >conftest.$ac_ext <<_ACEOF
14348 #line $LINENO "configure"
14349 #include "confdefs.h"
14351 #ifdef F77_DUMMY_MAIN
14352 # ifdef __cplusplus
14355 int F77_DUMMY_MAIN() { return 1; }
14360 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369 (eval $ac_compile) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -s conftest.$ac_objext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 pgac_cv_type_long_long_int_64=yes
14381 echo "$as_me: failed program was:" >&5
14382 cat conftest.$ac_ext >&5
14383 pgac_cv_type_long_long_int_64=no
14385 rm -f conftest.$ac_objext conftest.$ac_ext
14387 cat >conftest.$ac_ext <<_ACEOF
14388 #line $LINENO "configure"
14389 #include "confdefs.h"
14390 typedef long long int int64;
14393 * These are globals to discourage the compiler from folding all the
14394 * arithmetic tests down to compile-time constants.
14396 int64 a = 20000001;
14397 int64 b = 40000005;
14399 int does_int64_work()
14403 if (sizeof(int64) != 8)
14404 return 0; /* definitely not the right size */
14406 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14414 exit(! does_int64_work());
14417 rm -f conftest$ac_exeext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419 (eval $ac_link) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 pgac_cv_type_long_long_int_64=yes
14430 echo "$as_me: program exited with status $ac_status" >&5
14431 echo "$as_me: failed program was:" >&5
14432 cat conftest.$ac_ext >&5
14433 ( exit $ac_status )
14434 pgac_cv_type_long_long_int_64=no
14436 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14439 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14440 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14442 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14443 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14445 cat >>confdefs.h <<\_ACEOF
14446 #define HAVE_LONG_LONG_INT_64
14455 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14456 cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14458 #include "confdefs.h"
14460 #define INT64CONST(x) x##LL
14461 long long int foo = INT64CONST(0x1234567890123456);
14463 #ifdef F77_DUMMY_MAIN
14464 # ifdef __cplusplus
14467 int F77_DUMMY_MAIN() { return 1; }
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479 (eval $ac_compile) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_LL_CONSTANTS 1
14495 echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14502 # If we found "long int" is 64 bits, assume snprintf handles it. If
14503 # we found we need to use "long long int", better check. We cope with
14504 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14505 # work, fall back to our own snprintf emulation (which we know uses %lld).
14507 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14508 if test $pgac_need_repl_snprintf = no; then
14509 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14510 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14511 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 for pgac_format in '%lld' '%qd' '%I64d'; do
14515 if test "$cross_compiling" = yes; then
14516 pgac_cv_snprintf_long_long_int_format=cross; break
14518 cat >conftest.$ac_ext <<_ACEOF
14519 #line $LINENO "configure"
14520 #include "confdefs.h"
14522 typedef long long int int64;
14523 #define INT64_FORMAT "$pgac_format"
14525 int64 a = 20000001;
14526 int64 b = 40000005;
14528 int does_int64_snprintf_work()
14533 if (sizeof(int64) != 8)
14534 return 0; /* doesn't look like the right size */
14537 snprintf(buf, 100, INT64_FORMAT, c);
14538 if (strcmp(buf, "800000140000005") != 0)
14539 return 0; /* either multiply or snprintf is busted */
14543 exit(! does_int64_snprintf_work());
14546 rm -f conftest$ac_exeext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14548 (eval $ac_link) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14559 echo "$as_me: program exited with status $ac_status" >&5
14560 echo "$as_me: failed program was:" >&5
14561 cat conftest.$ac_ext >&5
14563 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14568 LONG_LONG_INT_FORMAT=''
14570 case $pgac_cv_snprintf_long_long_int_format in
14571 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14572 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14573 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14574 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14575 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14576 *) echo "$as_me:$LINENO: result: none" >&5
14577 echo "${ECHO_T}none" >&6;;
14579 if test "$LONG_LONG_INT_FORMAT" = ""; then
14580 # Force usage of our own snprintf, since system snprintf is broken
14581 pgac_need_repl_snprintf=yes
14582 LONG_LONG_INT_FORMAT='%lld'
14585 # Here if we previously decided we needed to use our own snprintf
14586 LONG_LONG_INT_FORMAT='%lld'
14588 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14589 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14590 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14592 # Here if we are not using 'long long int' at all
14593 INT64_FORMAT='"%ld"'
14594 UINT64_FORMAT='"%lu"'
14598 cat >>confdefs.h <<_ACEOF
14599 #define INT64_FORMAT $INT64_FORMAT
14604 cat >>confdefs.h <<_ACEOF
14605 #define UINT64_FORMAT $UINT64_FORMAT
14609 if test $pgac_need_repl_snprintf = yes; then
14610 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14613 # Need a #define for the size of Datum (unsigned long)
14614 echo "$as_me:$LINENO: checking for unsigned long" >&5
14615 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14616 if test "${ac_cv_type_unsigned_long+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 cat >conftest.$ac_ext <<_ACEOF
14620 #line $LINENO "configure"
14621 #include "confdefs.h"
14622 $ac_includes_default
14623 #ifdef F77_DUMMY_MAIN
14624 # ifdef __cplusplus
14627 int F77_DUMMY_MAIN() { return 1; }
14632 if ((unsigned long *) 0)
14634 if (sizeof (unsigned long))
14640 rm -f conftest.$ac_objext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14642 (eval $ac_compile) 2>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try='test -s conftest.$ac_objext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_type_unsigned_long=yes
14654 echo "$as_me: failed program was:" >&5
14655 cat conftest.$ac_ext >&5
14656 ac_cv_type_unsigned_long=no
14658 rm -f conftest.$ac_objext conftest.$ac_ext
14660 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14661 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14663 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14664 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14665 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 if test "$ac_cv_type_unsigned_long" = yes; then
14669 # The cast to unsigned long works around a bug in the HP C Compiler
14670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14672 # This bug is HP SR number 8606223364.
14673 if test "$cross_compiling" = yes; then
14674 # Depending upon the size, compute the lo and hi bounds.
14675 cat >conftest.$ac_ext <<_ACEOF
14676 #line $LINENO "configure"
14677 #include "confdefs.h"
14678 $ac_includes_default
14679 #ifdef F77_DUMMY_MAIN
14680 # ifdef __cplusplus
14683 int F77_DUMMY_MAIN() { return 1; }
14688 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14695 rm -f conftest.$ac_objext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697 (eval $ac_compile) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -s conftest.$ac_objext'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14709 cat >conftest.$ac_ext <<_ACEOF
14710 #line $LINENO "configure"
14711 #include "confdefs.h"
14712 $ac_includes_default
14713 #ifdef F77_DUMMY_MAIN
14714 # ifdef __cplusplus
14717 int F77_DUMMY_MAIN() { return 1; }
14722 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_hi=$ac_mid; break
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 ac_lo=`expr $ac_mid + 1`
14746 if test $ac_lo -le $ac_mid; then
14750 ac_mid=`expr 2 '*' $ac_mid + 1`
14752 rm -f conftest.$ac_objext conftest.$ac_ext
14755 echo "$as_me: failed program was:" >&5
14756 cat conftest.$ac_ext >&5
14757 cat >conftest.$ac_ext <<_ACEOF
14758 #line $LINENO "configure"
14759 #include "confdefs.h"
14760 $ac_includes_default
14761 #ifdef F77_DUMMY_MAIN
14762 # ifdef __cplusplus
14765 int F77_DUMMY_MAIN() { return 1; }
14770 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14777 rm -f conftest.$ac_objext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14779 (eval $ac_compile) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14791 cat >conftest.$ac_ext <<_ACEOF
14792 #line $LINENO "configure"
14793 #include "confdefs.h"
14794 $ac_includes_default
14795 #ifdef F77_DUMMY_MAIN
14796 # ifdef __cplusplus
14799 int F77_DUMMY_MAIN() { return 1; }
14804 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14811 rm -f conftest.$ac_objext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14813 (eval $ac_compile) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 ac_lo=$ac_mid; break
14825 echo "$as_me: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14827 ac_hi=`expr '(' $ac_mid ')' - 1`
14828 if test $ac_mid -le $ac_hi; then
14832 ac_mid=`expr 2 '*' $ac_mid`
14834 rm -f conftest.$ac_objext conftest.$ac_ext
14837 echo "$as_me: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14841 rm -f conftest.$ac_objext conftest.$ac_ext
14843 rm -f conftest.$ac_objext conftest.$ac_ext
14844 # Binary search between lo and hi bounds.
14845 while test "x$ac_lo" != "x$ac_hi"; do
14846 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14847 cat >conftest.$ac_ext <<_ACEOF
14848 #line $LINENO "configure"
14849 #include "confdefs.h"
14850 $ac_includes_default
14851 #ifdef F77_DUMMY_MAIN
14852 # ifdef __cplusplus
14855 int F77_DUMMY_MAIN() { return 1; }
14860 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869 (eval $ac_compile) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -s conftest.$ac_objext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14881 echo "$as_me: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14883 ac_lo=`expr '(' $ac_mid ')' + 1`
14885 rm -f conftest.$ac_objext conftest.$ac_ext
14888 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14889 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14890 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14891 { (exit 1); exit 1; }; } ;;
14894 if test "$cross_compiling" = yes; then
14895 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14896 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14897 { (exit 1); exit 1; }; }
14899 cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14901 #include "confdefs.h"
14902 $ac_includes_default
14903 long longval () { return (long) (sizeof (unsigned long)); }
14904 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14906 #include <stdlib.h>
14907 #ifdef F77_DUMMY_MAIN
14908 # ifdef __cplusplus
14911 int F77_DUMMY_MAIN() { return 1; }
14917 FILE *f = fopen ("conftest.val", "w");
14920 if (((long) (sizeof (unsigned long))) < 0)
14922 long i = longval ();
14923 if (i != ((long) (sizeof (unsigned long))))
14925 fprintf (f, "%ld\n", i);
14929 unsigned long i = ulongval ();
14930 if (i != ((long) (sizeof (unsigned long))))
14932 fprintf (f, "%lu\n", i);
14934 exit (ferror (f) || fclose (f) != 0);
14940 rm -f conftest$ac_exeext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14942 (eval $ac_link) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14953 echo "$as_me: program exited with status $ac_status" >&5
14954 echo "$as_me: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14956 ( exit $ac_status )
14957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14958 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14959 { (exit 1); exit 1; }; }
14961 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14966 ac_cv_sizeof_unsigned_long=0
14969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14970 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14971 cat >>confdefs.h <<_ACEOF
14972 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14977 # Determine memory alignment requirements for the basic C data types.
14979 echo "$as_me:$LINENO: checking for short" >&5
14980 echo $ECHO_N "checking for short... $ECHO_C" >&6
14981 if test "${ac_cv_type_short+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14986 #include "confdefs.h"
14987 $ac_includes_default
14988 #ifdef F77_DUMMY_MAIN
14989 # ifdef __cplusplus
14992 int F77_DUMMY_MAIN() { return 1; }
14999 if (sizeof (short))
15005 rm -f conftest.$ac_objext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15007 (eval $ac_compile) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -s conftest.$ac_objext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_type_short=yes
15019 echo "$as_me: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15021 ac_cv_type_short=no
15023 rm -f conftest.$ac_objext conftest.$ac_ext
15025 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15026 echo "${ECHO_T}$ac_cv_type_short" >&6
15028 echo "$as_me:$LINENO: checking alignment of short" >&5
15029 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
15030 if test "${pgac_cv_alignof_short+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 if test "$ac_cv_type_short" = yes; then
15034 if test "$cross_compiling" = yes; then
15035 # Depending upon the size, compute the lo and hi bounds.
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15038 #include "confdefs.h"
15039 $ac_includes_default
15040 struct { char filler; short field; } pgac_struct;
15041 #ifdef F77_DUMMY_MAIN
15042 # ifdef __cplusplus
15045 int F77_DUMMY_MAIN() { return 1; }
15050 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15057 rm -f conftest.$ac_objext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15059 (eval $ac_compile) 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -s conftest.$ac_objext'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15071 cat >conftest.$ac_ext <<_ACEOF
15072 #line $LINENO "configure"
15073 #include "confdefs.h"
15074 $ac_includes_default
15075 struct { char filler; short field; } pgac_struct;
15076 #ifdef F77_DUMMY_MAIN
15077 # ifdef __cplusplus
15080 int F77_DUMMY_MAIN() { return 1; }
15085 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15092 rm -f conftest.$ac_objext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -s conftest.$ac_objext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_hi=$ac_mid; break
15106 echo "$as_me: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15108 ac_lo=`expr $ac_mid + 1`
15109 if test $ac_lo -le $ac_mid; then
15113 ac_mid=`expr 2 '*' $ac_mid + 1`
15115 rm -f conftest.$ac_objext conftest.$ac_ext
15118 echo "$as_me: failed program was:" >&5
15119 cat conftest.$ac_ext >&5
15120 cat >conftest.$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15122 #include "confdefs.h"
15123 $ac_includes_default
15124 struct { char filler; short field; } pgac_struct;
15125 #ifdef F77_DUMMY_MAIN
15126 # ifdef __cplusplus
15129 int F77_DUMMY_MAIN() { return 1; }
15134 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15141 rm -f conftest.$ac_objext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15143 (eval $ac_compile) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -s conftest.$ac_objext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15155 cat >conftest.$ac_ext <<_ACEOF
15156 #line $LINENO "configure"
15157 #include "confdefs.h"
15158 $ac_includes_default
15159 struct { char filler; short field; } pgac_struct;
15160 #ifdef F77_DUMMY_MAIN
15161 # ifdef __cplusplus
15164 int F77_DUMMY_MAIN() { return 1; }
15169 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15176 rm -f conftest.$ac_objext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15178 (eval $ac_compile) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_lo=$ac_mid; break
15190 echo "$as_me: failed program was:" >&5
15191 cat conftest.$ac_ext >&5
15192 ac_hi=`expr '(' $ac_mid ')' - 1`
15193 if test $ac_mid -le $ac_hi; then
15197 ac_mid=`expr 2 '*' $ac_mid`
15199 rm -f conftest.$ac_objext conftest.$ac_ext
15202 echo "$as_me: failed program was:" >&5
15203 cat conftest.$ac_ext >&5
15206 rm -f conftest.$ac_objext conftest.$ac_ext
15208 rm -f conftest.$ac_objext conftest.$ac_ext
15209 # Binary search between lo and hi bounds.
15210 while test "x$ac_lo" != "x$ac_hi"; do
15211 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15212 cat >conftest.$ac_ext <<_ACEOF
15213 #line $LINENO "configure"
15214 #include "confdefs.h"
15215 $ac_includes_default
15216 struct { char filler; short field; } pgac_struct;
15217 #ifdef F77_DUMMY_MAIN
15218 # ifdef __cplusplus
15221 int F77_DUMMY_MAIN() { return 1; }
15226 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15233 rm -f conftest.$ac_objext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15247 echo "$as_me: failed program was:" >&5
15248 cat conftest.$ac_ext >&5
15249 ac_lo=`expr '(' $ac_mid ')' + 1`
15251 rm -f conftest.$ac_objext conftest.$ac_ext
15254 ?*) pgac_cv_alignof_short=$ac_lo;;
15255 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15256 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15257 { (exit 1); exit 1; }; } ;;
15260 if test "$cross_compiling" = yes; then
15261 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15262 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15263 { (exit 1); exit 1; }; }
15265 cat >conftest.$ac_ext <<_ACEOF
15266 #line $LINENO "configure"
15267 #include "confdefs.h"
15268 $ac_includes_default
15269 struct { char filler; short field; } pgac_struct;
15270 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15271 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15273 #include <stdlib.h>
15274 #ifdef F77_DUMMY_MAIN
15275 # ifdef __cplusplus
15278 int F77_DUMMY_MAIN() { return 1; }
15284 FILE *f = fopen ("conftest.val", "w");
15287 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15289 long i = longval ();
15290 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15292 fprintf (f, "%ld\n", i);
15296 unsigned long i = ulongval ();
15297 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15299 fprintf (f, "%lu\n", i);
15301 exit (ferror (f) || fclose (f) != 0);
15307 rm -f conftest$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309 (eval $ac_link) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 pgac_cv_alignof_short=`cat conftest.val`
15320 echo "$as_me: program exited with status $ac_status" >&5
15321 echo "$as_me: failed program was:" >&5
15322 cat conftest.$ac_ext >&5
15323 ( exit $ac_status )
15324 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15325 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15326 { (exit 1); exit 1; }; }
15328 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15333 pgac_cv_alignof_short=0
15336 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15337 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15338 cat >>confdefs.h <<_ACEOF
15339 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15343 echo "$as_me:$LINENO: checking for int" >&5
15344 echo $ECHO_N "checking for int... $ECHO_C" >&6
15345 if test "${ac_cv_type_int+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 cat >conftest.$ac_ext <<_ACEOF
15349 #line $LINENO "configure"
15350 #include "confdefs.h"
15351 $ac_includes_default
15352 #ifdef F77_DUMMY_MAIN
15353 # ifdef __cplusplus
15356 int F77_DUMMY_MAIN() { return 1; }
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15383 echo "$as_me: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15387 rm -f conftest.$ac_objext conftest.$ac_ext
15389 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15390 echo "${ECHO_T}$ac_cv_type_int" >&6
15392 echo "$as_me:$LINENO: checking alignment of int" >&5
15393 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15394 if test "${pgac_cv_alignof_int+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 if test "$ac_cv_type_int" = yes; then
15398 if test "$cross_compiling" = yes; then
15399 # Depending upon the size, compute the lo and hi bounds.
15400 cat >conftest.$ac_ext <<_ACEOF
15401 #line $LINENO "configure"
15402 #include "confdefs.h"
15403 $ac_includes_default
15404 struct { char filler; int field; } pgac_struct;
15405 #ifdef F77_DUMMY_MAIN
15406 # ifdef __cplusplus
15409 int F77_DUMMY_MAIN() { return 1; }
15414 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15421 rm -f conftest.$ac_objext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15423 (eval $ac_compile) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -s conftest.$ac_objext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15435 cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 #include "confdefs.h"
15438 $ac_includes_default
15439 struct { char filler; int field; } pgac_struct;
15440 #ifdef F77_DUMMY_MAIN
15441 # ifdef __cplusplus
15444 int F77_DUMMY_MAIN() { return 1; }
15449 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15456 rm -f conftest.$ac_objext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15458 (eval $ac_compile) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 ac_hi=$ac_mid; break
15470 echo "$as_me: failed program was:" >&5
15471 cat conftest.$ac_ext >&5
15472 ac_lo=`expr $ac_mid + 1`
15473 if test $ac_lo -le $ac_mid; then
15477 ac_mid=`expr 2 '*' $ac_mid + 1`
15479 rm -f conftest.$ac_objext conftest.$ac_ext
15482 echo "$as_me: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15484 cat >conftest.$ac_ext <<_ACEOF
15485 #line $LINENO "configure"
15486 #include "confdefs.h"
15487 $ac_includes_default
15488 struct { char filler; int field; } pgac_struct;
15489 #ifdef F77_DUMMY_MAIN
15490 # ifdef __cplusplus
15493 int F77_DUMMY_MAIN() { return 1; }
15498 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507 (eval $ac_compile) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15519 cat >conftest.$ac_ext <<_ACEOF
15520 #line $LINENO "configure"
15521 #include "confdefs.h"
15522 $ac_includes_default
15523 struct { char filler; int field; } pgac_struct;
15524 #ifdef F77_DUMMY_MAIN
15525 # ifdef __cplusplus
15528 int F77_DUMMY_MAIN() { return 1; }
15533 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15540 rm -f conftest.$ac_objext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_lo=$ac_mid; break
15554 echo "$as_me: failed program was:" >&5
15555 cat conftest.$ac_ext >&5
15556 ac_hi=`expr '(' $ac_mid ')' - 1`
15557 if test $ac_mid -le $ac_hi; then
15561 ac_mid=`expr 2 '*' $ac_mid`
15563 rm -f conftest.$ac_objext conftest.$ac_ext
15566 echo "$as_me: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15570 rm -f conftest.$ac_objext conftest.$ac_ext
15572 rm -f conftest.$ac_objext conftest.$ac_ext
15573 # Binary search between lo and hi bounds.
15574 while test "x$ac_lo" != "x$ac_hi"; do
15575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15576 cat >conftest.$ac_ext <<_ACEOF
15577 #line $LINENO "configure"
15578 #include "confdefs.h"
15579 $ac_includes_default
15580 struct { char filler; int field; } pgac_struct;
15581 #ifdef F77_DUMMY_MAIN
15582 # ifdef __cplusplus
15585 int F77_DUMMY_MAIN() { return 1; }
15590 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15597 rm -f conftest.$ac_objext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15599 (eval $ac_compile) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -s conftest.$ac_objext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15611 echo "$as_me: failed program was:" >&5
15612 cat conftest.$ac_ext >&5
15613 ac_lo=`expr '(' $ac_mid ')' + 1`
15615 rm -f conftest.$ac_objext conftest.$ac_ext
15618 ?*) pgac_cv_alignof_int=$ac_lo;;
15619 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15620 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15621 { (exit 1); exit 1; }; } ;;
15624 if test "$cross_compiling" = yes; then
15625 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15626 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15627 { (exit 1); exit 1; }; }
15629 cat >conftest.$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15631 #include "confdefs.h"
15632 $ac_includes_default
15633 struct { char filler; int field; } pgac_struct;
15634 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15635 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15637 #include <stdlib.h>
15638 #ifdef F77_DUMMY_MAIN
15639 # ifdef __cplusplus
15642 int F77_DUMMY_MAIN() { return 1; }
15648 FILE *f = fopen ("conftest.val", "w");
15651 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15653 long i = longval ();
15654 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15656 fprintf (f, "%ld\n", i);
15660 unsigned long i = ulongval ();
15661 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15663 fprintf (f, "%lu\n", i);
15665 exit (ferror (f) || fclose (f) != 0);
15671 rm -f conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 pgac_cv_alignof_int=`cat conftest.val`
15684 echo "$as_me: program exited with status $ac_status" >&5
15685 echo "$as_me: failed program was:" >&5
15686 cat conftest.$ac_ext >&5
15687 ( exit $ac_status )
15688 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15689 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15690 { (exit 1); exit 1; }; }
15692 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15697 pgac_cv_alignof_int=0
15700 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15701 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15702 cat >>confdefs.h <<_ACEOF
15703 #define ALIGNOF_INT $pgac_cv_alignof_int
15707 echo "$as_me:$LINENO: checking for long" >&5
15708 echo $ECHO_N "checking for long... $ECHO_C" >&6
15709 if test "${ac_cv_type_long+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 cat >conftest.$ac_ext <<_ACEOF
15713 #line $LINENO "configure"
15714 #include "confdefs.h"
15715 $ac_includes_default
15716 #ifdef F77_DUMMY_MAIN
15717 # ifdef __cplusplus
15720 int F77_DUMMY_MAIN() { return 1; }
15733 rm -f conftest.$ac_objext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735 (eval $ac_compile) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_type_long=yes
15747 echo "$as_me: failed program was:" >&5
15748 cat conftest.$ac_ext >&5
15751 rm -f conftest.$ac_objext conftest.$ac_ext
15753 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15754 echo "${ECHO_T}$ac_cv_type_long" >&6
15756 echo "$as_me:$LINENO: checking alignment of long" >&5
15757 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15758 if test "${pgac_cv_alignof_long+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 if test "$ac_cv_type_long" = yes; then
15762 if test "$cross_compiling" = yes; then
15763 # Depending upon the size, compute the lo and hi bounds.
15764 cat >conftest.$ac_ext <<_ACEOF
15765 #line $LINENO "configure"
15766 #include "confdefs.h"
15767 $ac_includes_default
15768 struct { char filler; long field; } pgac_struct;
15769 #ifdef F77_DUMMY_MAIN
15770 # ifdef __cplusplus
15773 int F77_DUMMY_MAIN() { return 1; }
15778 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15785 rm -f conftest.$ac_objext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15787 (eval $ac_compile) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -s conftest.$ac_objext'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15799 cat >conftest.$ac_ext <<_ACEOF
15800 #line $LINENO "configure"
15801 #include "confdefs.h"
15802 $ac_includes_default
15803 struct { char filler; long field; } pgac_struct;
15804 #ifdef F77_DUMMY_MAIN
15805 # ifdef __cplusplus
15808 int F77_DUMMY_MAIN() { return 1; }
15813 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822 (eval $ac_compile) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
15826 { ac_try='test -s conftest.$ac_objext'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_hi=$ac_mid; break
15834 echo "$as_me: failed program was:" >&5
15835 cat conftest.$ac_ext >&5
15836 ac_lo=`expr $ac_mid + 1`
15837 if test $ac_lo -le $ac_mid; then
15841 ac_mid=`expr 2 '*' $ac_mid + 1`
15843 rm -f conftest.$ac_objext conftest.$ac_ext
15846 echo "$as_me: failed program was:" >&5
15847 cat conftest.$ac_ext >&5
15848 cat >conftest.$ac_ext <<_ACEOF
15849 #line $LINENO "configure"
15850 #include "confdefs.h"
15851 $ac_includes_default
15852 struct { char filler; long field; } pgac_struct;
15853 #ifdef F77_DUMMY_MAIN
15854 # ifdef __cplusplus
15857 int F77_DUMMY_MAIN() { return 1; }
15862 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -s conftest.$ac_objext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15883 cat >conftest.$ac_ext <<_ACEOF
15884 #line $LINENO "configure"
15885 #include "confdefs.h"
15886 $ac_includes_default
15887 struct { char filler; long field; } pgac_struct;
15888 #ifdef F77_DUMMY_MAIN
15889 # ifdef __cplusplus
15892 int F77_DUMMY_MAIN() { return 1; }
15897 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15904 rm -f conftest.$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_lo=$ac_mid; break
15918 echo "$as_me: failed program was:" >&5
15919 cat conftest.$ac_ext >&5
15920 ac_hi=`expr '(' $ac_mid ')' - 1`
15921 if test $ac_mid -le $ac_hi; then
15925 ac_mid=`expr 2 '*' $ac_mid`
15927 rm -f conftest.$ac_objext conftest.$ac_ext
15930 echo "$as_me: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15934 rm -f conftest.$ac_objext conftest.$ac_ext
15936 rm -f conftest.$ac_objext conftest.$ac_ext
15937 # Binary search between lo and hi bounds.
15938 while test "x$ac_lo" != "x$ac_hi"; do
15939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15940 cat >conftest.$ac_ext <<_ACEOF
15941 #line $LINENO "configure"
15942 #include "confdefs.h"
15943 $ac_includes_default
15944 struct { char filler; long field; } pgac_struct;
15945 #ifdef F77_DUMMY_MAIN
15946 # ifdef __cplusplus
15949 int F77_DUMMY_MAIN() { return 1; }
15954 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15961 rm -f conftest.$ac_objext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963 (eval $ac_compile) 2>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15975 echo "$as_me: failed program was:" >&5
15976 cat conftest.$ac_ext >&5
15977 ac_lo=`expr '(' $ac_mid ')' + 1`
15979 rm -f conftest.$ac_objext conftest.$ac_ext
15982 ?*) pgac_cv_alignof_long=$ac_lo;;
15983 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15984 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15985 { (exit 1); exit 1; }; } ;;
15988 if test "$cross_compiling" = yes; then
15989 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15990 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15991 { (exit 1); exit 1; }; }
15993 cat >conftest.$ac_ext <<_ACEOF
15994 #line $LINENO "configure"
15995 #include "confdefs.h"
15996 $ac_includes_default
15997 struct { char filler; long field; } pgac_struct;
15998 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15999 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16001 #include <stdlib.h>
16002 #ifdef F77_DUMMY_MAIN
16003 # ifdef __cplusplus
16006 int F77_DUMMY_MAIN() { return 1; }
16012 FILE *f = fopen ("conftest.val", "w");
16015 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16017 long i = longval ();
16018 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16020 fprintf (f, "%ld\n", i);
16024 unsigned long i = ulongval ();
16025 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16027 fprintf (f, "%lu\n", i);
16029 exit (ferror (f) || fclose (f) != 0);
16035 rm -f conftest$ac_exeext
16036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16037 (eval $ac_link) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 pgac_cv_alignof_long=`cat conftest.val`
16048 echo "$as_me: program exited with status $ac_status" >&5
16049 echo "$as_me: failed program was:" >&5
16050 cat conftest.$ac_ext >&5
16051 ( exit $ac_status )
16052 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16053 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16054 { (exit 1); exit 1; }; }
16056 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16061 pgac_cv_alignof_long=0
16064 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
16065 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
16066 cat >>confdefs.h <<_ACEOF
16067 #define ALIGNOF_LONG $pgac_cv_alignof_long
16071 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16072 echo "$as_me:$LINENO: checking for long long int" >&5
16073 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16074 if test "${ac_cv_type_long_long_int+set}" = set; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 cat >conftest.$ac_ext <<_ACEOF
16078 #line $LINENO "configure"
16079 #include "confdefs.h"
16080 $ac_includes_default
16081 #ifdef F77_DUMMY_MAIN
16082 # ifdef __cplusplus
16085 int F77_DUMMY_MAIN() { return 1; }
16090 if ((long long int *) 0)
16092 if (sizeof (long long int))
16098 rm -f conftest.$ac_objext
16099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16100 (eval $ac_compile) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } &&
16104 { ac_try='test -s conftest.$ac_objext'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_cv_type_long_long_int=yes
16112 echo "$as_me: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16114 ac_cv_type_long_long_int=no
16116 rm -f conftest.$ac_objext conftest.$ac_ext
16118 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16119 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16121 echo "$as_me:$LINENO: checking alignment of long long int" >&5
16122 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
16123 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 if test "$ac_cv_type_long_long_int" = yes; then
16127 if test "$cross_compiling" = yes; then
16128 # Depending upon the size, compute the lo and hi bounds.
16129 cat >conftest.$ac_ext <<_ACEOF
16130 #line $LINENO "configure"
16131 #include "confdefs.h"
16132 $ac_includes_default
16133 struct { char filler; long long int field; } pgac_struct;
16134 #ifdef F77_DUMMY_MAIN
16135 # ifdef __cplusplus
16138 int F77_DUMMY_MAIN() { return 1; }
16143 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16150 rm -f conftest.$ac_objext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16152 (eval $ac_compile) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
16156 { ac_try='test -s conftest.$ac_objext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16164 cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16166 #include "confdefs.h"
16167 $ac_includes_default
16168 struct { char filler; long long int field; } pgac_struct;
16169 #ifdef F77_DUMMY_MAIN
16170 # ifdef __cplusplus
16173 int F77_DUMMY_MAIN() { return 1; }
16178 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16185 rm -f conftest.$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187 (eval $ac_compile) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 ac_hi=$ac_mid; break
16199 echo "$as_me: failed program was:" >&5
16200 cat conftest.$ac_ext >&5
16201 ac_lo=`expr $ac_mid + 1`
16202 if test $ac_lo -le $ac_mid; then
16206 ac_mid=`expr 2 '*' $ac_mid + 1`
16208 rm -f conftest.$ac_objext conftest.$ac_ext
16211 echo "$as_me: failed program was:" >&5
16212 cat conftest.$ac_ext >&5
16213 cat >conftest.$ac_ext <<_ACEOF
16214 #line $LINENO "configure"
16215 #include "confdefs.h"
16216 $ac_includes_default
16217 struct { char filler; long long int field; } pgac_struct;
16218 #ifdef F77_DUMMY_MAIN
16219 # ifdef __cplusplus
16222 int F77_DUMMY_MAIN() { return 1; }
16227 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16248 cat >conftest.$ac_ext <<_ACEOF
16249 #line $LINENO "configure"
16250 #include "confdefs.h"
16251 $ac_includes_default
16252 struct { char filler; long long int field; } pgac_struct;
16253 #ifdef F77_DUMMY_MAIN
16254 # ifdef __cplusplus
16257 int F77_DUMMY_MAIN() { return 1; }
16262 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16269 rm -f conftest.$ac_objext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_lo=$ac_mid; break
16283 echo "$as_me: failed program was:" >&5
16284 cat conftest.$ac_ext >&5
16285 ac_hi=`expr '(' $ac_mid ')' - 1`
16286 if test $ac_mid -le $ac_hi; then
16290 ac_mid=`expr 2 '*' $ac_mid`
16292 rm -f conftest.$ac_objext conftest.$ac_ext
16295 echo "$as_me: failed program was:" >&5
16296 cat conftest.$ac_ext >&5
16299 rm -f conftest.$ac_objext conftest.$ac_ext
16301 rm -f conftest.$ac_objext conftest.$ac_ext
16302 # Binary search between lo and hi bounds.
16303 while test "x$ac_lo" != "x$ac_hi"; do
16304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16305 cat >conftest.$ac_ext <<_ACEOF
16306 #line $LINENO "configure"
16307 #include "confdefs.h"
16308 $ac_includes_default
16309 struct { char filler; long long int field; } pgac_struct;
16310 #ifdef F77_DUMMY_MAIN
16311 # ifdef __cplusplus
16314 int F77_DUMMY_MAIN() { return 1; }
16319 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16340 echo "$as_me: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 ac_lo=`expr '(' $ac_mid ')' + 1`
16344 rm -f conftest.$ac_objext conftest.$ac_ext
16347 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16348 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16349 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16350 { (exit 1); exit 1; }; } ;;
16353 if test "$cross_compiling" = yes; then
16354 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16355 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16356 { (exit 1); exit 1; }; }
16358 cat >conftest.$ac_ext <<_ACEOF
16359 #line $LINENO "configure"
16360 #include "confdefs.h"
16361 $ac_includes_default
16362 struct { char filler; long long int field; } pgac_struct;
16363 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16364 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16366 #include <stdlib.h>
16367 #ifdef F77_DUMMY_MAIN
16368 # ifdef __cplusplus
16371 int F77_DUMMY_MAIN() { return 1; }
16377 FILE *f = fopen ("conftest.val", "w");
16380 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16382 long i = longval ();
16383 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16385 fprintf (f, "%ld\n", i);
16389 unsigned long i = ulongval ();
16390 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16392 fprintf (f, "%lu\n", i);
16394 exit (ferror (f) || fclose (f) != 0);
16400 rm -f conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 pgac_cv_alignof_long_long_int=`cat conftest.val`
16413 echo "$as_me: program exited with status $ac_status" >&5
16414 echo "$as_me: failed program was:" >&5
16415 cat conftest.$ac_ext >&5
16416 ( exit $ac_status )
16417 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16418 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16419 { (exit 1); exit 1; }; }
16421 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16426 pgac_cv_alignof_long_long_int=0
16429 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16430 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16431 cat >>confdefs.h <<_ACEOF
16432 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16437 echo "$as_me:$LINENO: checking for double" >&5
16438 echo $ECHO_N "checking for double... $ECHO_C" >&6
16439 if test "${ac_cv_type_double+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 cat >conftest.$ac_ext <<_ACEOF
16443 #line $LINENO "configure"
16444 #include "confdefs.h"
16445 $ac_includes_default
16446 #ifdef F77_DUMMY_MAIN
16447 # ifdef __cplusplus
16450 int F77_DUMMY_MAIN() { return 1; }
16457 if (sizeof (double))
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } &&
16469 { ac_try='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_type_double=yes
16477 echo "$as_me: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16479 ac_cv_type_double=no
16481 rm -f conftest.$ac_objext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16484 echo "${ECHO_T}$ac_cv_type_double" >&6
16486 echo "$as_me:$LINENO: checking alignment of double" >&5
16487 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16488 if test "${pgac_cv_alignof_double+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 if test "$ac_cv_type_double" = yes; then
16492 if test "$cross_compiling" = yes; then
16493 # Depending upon the size, compute the lo and hi bounds.
16494 cat >conftest.$ac_ext <<_ACEOF
16495 #line $LINENO "configure"
16496 #include "confdefs.h"
16497 $ac_includes_default
16498 struct { char filler; double field; } pgac_struct;
16499 #ifdef F77_DUMMY_MAIN
16500 # ifdef __cplusplus
16503 int F77_DUMMY_MAIN() { return 1; }
16508 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16515 rm -f conftest.$ac_objext
16516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16517 (eval $ac_compile) 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -s conftest.$ac_objext'
16522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16523 (eval $ac_try) 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16529 cat >conftest.$ac_ext <<_ACEOF
16530 #line $LINENO "configure"
16531 #include "confdefs.h"
16532 $ac_includes_default
16533 struct { char filler; double field; } pgac_struct;
16534 #ifdef F77_DUMMY_MAIN
16535 # ifdef __cplusplus
16538 int F77_DUMMY_MAIN() { return 1; }
16543 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552 (eval $ac_compile) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -s conftest.$ac_objext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_hi=$ac_mid; break
16564 echo "$as_me: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16566 ac_lo=`expr $ac_mid + 1`
16567 if test $ac_lo -le $ac_mid; then
16571 ac_mid=`expr 2 '*' $ac_mid + 1`
16573 rm -f conftest.$ac_objext conftest.$ac_ext
16576 echo "$as_me: failed program was:" >&5
16577 cat conftest.$ac_ext >&5
16578 cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 #include "confdefs.h"
16581 $ac_includes_default
16582 struct { char filler; double field; } pgac_struct;
16583 #ifdef F77_DUMMY_MAIN
16584 # ifdef __cplusplus
16587 int F77_DUMMY_MAIN() { return 1; }
16592 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16599 rm -f conftest.$ac_objext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16601 (eval $ac_compile) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16613 cat >conftest.$ac_ext <<_ACEOF
16614 #line $LINENO "configure"
16615 #include "confdefs.h"
16616 $ac_includes_default
16617 struct { char filler; double field; } pgac_struct;
16618 #ifdef F77_DUMMY_MAIN
16619 # ifdef __cplusplus
16622 int F77_DUMMY_MAIN() { return 1; }
16627 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16634 rm -f conftest.$ac_objext
16635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16636 (eval $ac_compile) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try='test -s conftest.$ac_objext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_lo=$ac_mid; break
16648 echo "$as_me: failed program was:" >&5
16649 cat conftest.$ac_ext >&5
16650 ac_hi=`expr '(' $ac_mid ')' - 1`
16651 if test $ac_mid -le $ac_hi; then
16655 ac_mid=`expr 2 '*' $ac_mid`
16657 rm -f conftest.$ac_objext conftest.$ac_ext
16660 echo "$as_me: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16664 rm -f conftest.$ac_objext conftest.$ac_ext
16666 rm -f conftest.$ac_objext conftest.$ac_ext
16667 # Binary search between lo and hi bounds.
16668 while test "x$ac_lo" != "x$ac_hi"; do
16669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16672 #include "confdefs.h"
16673 $ac_includes_default
16674 struct { char filler; double field; } pgac_struct;
16675 #ifdef F77_DUMMY_MAIN
16676 # ifdef __cplusplus
16679 int F77_DUMMY_MAIN() { return 1; }
16684 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16691 rm -f conftest.$ac_objext
16692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16693 (eval $ac_compile) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16705 echo "$as_me: failed program was:" >&5
16706 cat conftest.$ac_ext >&5
16707 ac_lo=`expr '(' $ac_mid ')' + 1`
16709 rm -f conftest.$ac_objext conftest.$ac_ext
16712 ?*) pgac_cv_alignof_double=$ac_lo;;
16713 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16714 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16715 { (exit 1); exit 1; }; } ;;
16718 if test "$cross_compiling" = yes; then
16719 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16720 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16721 { (exit 1); exit 1; }; }
16723 cat >conftest.$ac_ext <<_ACEOF
16724 #line $LINENO "configure"
16725 #include "confdefs.h"
16726 $ac_includes_default
16727 struct { char filler; double field; } pgac_struct;
16728 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16729 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16731 #include <stdlib.h>
16732 #ifdef F77_DUMMY_MAIN
16733 # ifdef __cplusplus
16736 int F77_DUMMY_MAIN() { return 1; }
16742 FILE *f = fopen ("conftest.val", "w");
16745 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16747 long i = longval ();
16748 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16750 fprintf (f, "%ld\n", i);
16754 unsigned long i = ulongval ();
16755 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16757 fprintf (f, "%lu\n", i);
16759 exit (ferror (f) || fclose (f) != 0);
16765 rm -f conftest$ac_exeext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16767 (eval $ac_link) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 pgac_cv_alignof_double=`cat conftest.val`
16778 echo "$as_me: program exited with status $ac_status" >&5
16779 echo "$as_me: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16781 ( exit $ac_status )
16782 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16783 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16784 { (exit 1); exit 1; }; }
16786 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16791 pgac_cv_alignof_double=0
16794 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16795 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16796 cat >>confdefs.h <<_ACEOF
16797 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16802 # Compute maximum alignment of any basic type.
16803 # We assume long's alignment is at least as strong as char, short, or int;
16804 # but we must check long long (if it exists) and double.
16806 MAX_ALIGNOF=$pgac_cv_alignof_long
16807 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16808 MAX_ALIGNOF=$pgac_cv_alignof_double
16810 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16811 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16814 cat >>confdefs.h <<_ACEOF
16815 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16820 # Some platforms predefine the types int8, int16, etc. Only check
16821 # a (hopefully) representative subset.
16822 echo "$as_me:$LINENO: checking for int8" >&5
16823 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16824 if test "${ac_cv_type_int8+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16828 #line $LINENO "configure"
16829 #include "confdefs.h"
16831 #ifdef HAVE_SUPPORTDEFS_H
16832 #include <SupportDefs.h>
16835 #ifdef F77_DUMMY_MAIN
16836 # ifdef __cplusplus
16839 int F77_DUMMY_MAIN() { return 1; }
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_type_int8=yes
16866 echo "$as_me: failed program was:" >&5
16867 cat conftest.$ac_ext >&5
16870 rm -f conftest.$ac_objext conftest.$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16873 echo "${ECHO_T}$ac_cv_type_int8" >&6
16874 if test $ac_cv_type_int8 = yes; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define HAVE_INT8 1
16882 echo "$as_me:$LINENO: checking for uint8" >&5
16883 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16884 if test "${ac_cv_type_uint8+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 cat >conftest.$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16889 #include "confdefs.h"
16891 #ifdef HAVE_SUPPORTDEFS_H
16892 #include <SupportDefs.h>
16895 #ifdef F77_DUMMY_MAIN
16896 # ifdef __cplusplus
16899 int F77_DUMMY_MAIN() { return 1; }
16906 if (sizeof (uint8))
16912 rm -f conftest.$ac_objext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16914 (eval $ac_compile) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_type_uint8=yes
16926 echo "$as_me: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16928 ac_cv_type_uint8=no
16930 rm -f conftest.$ac_objext conftest.$ac_ext
16932 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16933 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16934 if test $ac_cv_type_uint8 = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define HAVE_UINT8 1
16942 echo "$as_me:$LINENO: checking for int64" >&5
16943 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16944 if test "${ac_cv_type_int64+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 cat >conftest.$ac_ext <<_ACEOF
16948 #line $LINENO "configure"
16949 #include "confdefs.h"
16951 #ifdef HAVE_SUPPORTDEFS_H
16952 #include <SupportDefs.h>
16955 #ifdef F77_DUMMY_MAIN
16956 # ifdef __cplusplus
16959 int F77_DUMMY_MAIN() { return 1; }
16966 if (sizeof (int64))
16972 rm -f conftest.$ac_objext
16973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16974 (eval $ac_compile) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -s conftest.$ac_objext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_cv_type_int64=yes
16986 echo "$as_me: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16988 ac_cv_type_int64=no
16990 rm -f conftest.$ac_objext conftest.$ac_ext
16992 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16993 echo "${ECHO_T}$ac_cv_type_int64" >&6
16994 if test $ac_cv_type_int64 = yes; then
16996 cat >>confdefs.h <<_ACEOF
16997 #define HAVE_INT64 1
17002 echo "$as_me:$LINENO: checking for uint64" >&5
17003 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
17004 if test "${ac_cv_type_uint64+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 cat >conftest.$ac_ext <<_ACEOF
17008 #line $LINENO "configure"
17009 #include "confdefs.h"
17011 #ifdef HAVE_SUPPORTDEFS_H
17012 #include <SupportDefs.h>
17015 #ifdef F77_DUMMY_MAIN
17016 # ifdef __cplusplus
17019 int F77_DUMMY_MAIN() { return 1; }
17026 if (sizeof (uint64))
17032 rm -f conftest.$ac_objext
17033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17034 (eval $ac_compile) 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -s conftest.$ac_objext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_type_uint64=yes
17046 echo "$as_me: failed program was:" >&5
17047 cat conftest.$ac_ext >&5
17048 ac_cv_type_uint64=no
17050 rm -f conftest.$ac_objext conftest.$ac_ext
17052 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
17053 echo "${ECHO_T}$ac_cv_type_uint64" >&6
17054 if test $ac_cv_type_uint64 = yes; then
17056 cat >>confdefs.h <<_ACEOF
17057 #define HAVE_UINT64 1
17064 # We also check for sig_atomic_t, which *should* be defined per ANSI
17065 # C, but is missing on some old platforms.
17066 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
17067 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
17068 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 cat >conftest.$ac_ext <<_ACEOF
17072 #line $LINENO "configure"
17073 #include "confdefs.h"
17074 #include <signal.h>
17076 #ifdef F77_DUMMY_MAIN
17077 # ifdef __cplusplus
17080 int F77_DUMMY_MAIN() { return 1; }
17085 if ((sig_atomic_t *) 0)
17087 if (sizeof (sig_atomic_t))
17093 rm -f conftest.$ac_objext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17095 (eval $ac_compile) 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -s conftest.$ac_objext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_type_sig_atomic_t=yes
17107 echo "$as_me: failed program was:" >&5
17108 cat conftest.$ac_ext >&5
17109 ac_cv_type_sig_atomic_t=no
17111 rm -f conftest.$ac_objext conftest.$ac_ext
17113 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
17114 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
17115 if test $ac_cv_type_sig_atomic_t = yes; then
17117 cat >>confdefs.h <<_ACEOF
17118 #define HAVE_SIG_ATOMIC_T 1
17126 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
17127 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
17128 if test "${pgac_cv_func_posix_signals+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 cat >conftest.$ac_ext <<_ACEOF
17132 #line $LINENO "configure"
17133 #include "confdefs.h"
17134 #include <signal.h>
17136 #ifdef F77_DUMMY_MAIN
17137 # ifdef __cplusplus
17140 int F77_DUMMY_MAIN() { return 1; }
17145 struct sigaction act, oact;
17146 sigemptyset(&act.sa_mask);
17147 act.sa_flags = SA_RESTART;
17148 sigaction(0, &act, &oact);
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 pgac_cv_func_posix_signals=yes
17167 echo "$as_me: failed program was:" >&5
17168 cat conftest.$ac_ext >&5
17169 pgac_cv_func_posix_signals=no
17171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17173 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
17174 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
17175 if test x"$pgac_cv_func_posix_signals" = xyes ; then
17177 cat >>confdefs.h <<\_ACEOF
17178 #define HAVE_POSIX_SIGNALS
17182 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
17184 if test $ac_cv_func_fseeko = yes; then
17185 # Check whether --enable-largefile or --disable-largefile was given.
17186 if test "${enable_largefile+set}" = set; then
17187 enableval="$enable_largefile"
17190 if test "$enable_largefile" != no; then
17192 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17193 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
17194 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 ac_cv_sys_largefile_CC=no
17198 if test "$GCC" != yes; then
17201 # IRIX 6.2 and later do not support large files by default,
17202 # so use the C compiler's -n32 option if that helps.
17203 cat >conftest.$ac_ext <<_ACEOF
17204 #line $LINENO "configure"
17205 #include "confdefs.h"
17206 #include <sys/types.h>
17207 /* Check that off_t can represent 2**63 - 1 correctly.
17208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17209 since some C++ compilers masquerading as C compilers
17210 incorrectly reject 9223372036854775807. */
17211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17213 && LARGE_OFF_T % 2147483647 == 1)
17215 #ifdef F77_DUMMY_MAIN
17216 # ifdef __cplusplus
17219 int F77_DUMMY_MAIN() { return 1; }
17229 rm -f conftest.$ac_objext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231 (eval $ac_compile) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17243 echo "$as_me: failed program was:" >&5
17244 cat conftest.$ac_ext >&5
17246 rm -f conftest.$ac_objext
17248 rm -f conftest.$ac_objext
17249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17250 (eval $ac_compile) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -s conftest.$ac_objext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_cv_sys_largefile_CC=' -n32'; break
17262 echo "$as_me: failed program was:" >&5
17263 cat conftest.$ac_ext >&5
17265 rm -f conftest.$ac_objext
17269 rm -f conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17273 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
17274 if test "$ac_cv_sys_largefile_CC" != no; then
17275 CC=$CC$ac_cv_sys_largefile_CC
17278 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17279 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17280 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 ac_cv_sys_file_offset_bits=no
17285 cat >conftest.$ac_ext <<_ACEOF
17286 #line $LINENO "configure"
17287 #include "confdefs.h"
17288 #include <sys/types.h>
17289 /* Check that off_t can represent 2**63 - 1 correctly.
17290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17291 since some C++ compilers masquerading as C compilers
17292 incorrectly reject 9223372036854775807. */
17293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17295 && LARGE_OFF_T % 2147483647 == 1)
17297 #ifdef F77_DUMMY_MAIN
17298 # ifdef __cplusplus
17301 int F77_DUMMY_MAIN() { return 1; }
17311 rm -f conftest.$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -s conftest.$ac_objext'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
17325 echo "$as_me: failed program was:" >&5
17326 cat conftest.$ac_ext >&5
17328 rm -f conftest.$ac_objext conftest.$ac_ext
17329 cat >conftest.$ac_ext <<_ACEOF
17330 #line $LINENO "configure"
17331 #include "confdefs.h"
17332 #define _FILE_OFFSET_BITS 64
17333 #include <sys/types.h>
17334 /* Check that off_t can represent 2**63 - 1 correctly.
17335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17336 since some C++ compilers masquerading as C compilers
17337 incorrectly reject 9223372036854775807. */
17338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17340 && LARGE_OFF_T % 2147483647 == 1)
17342 #ifdef F77_DUMMY_MAIN
17343 # ifdef __cplusplus
17346 int F77_DUMMY_MAIN() { return 1; }
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -s conftest.$ac_objext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_sys_file_offset_bits=64; break
17370 echo "$as_me: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17373 rm -f conftest.$ac_objext conftest.$ac_ext
17377 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17378 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17379 if test "$ac_cv_sys_file_offset_bits" != no; then
17381 cat >>confdefs.h <<_ACEOF
17382 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17387 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17388 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17389 if test "${ac_cv_sys_large_files+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 ac_cv_sys_large_files=no
17394 cat >conftest.$ac_ext <<_ACEOF
17395 #line $LINENO "configure"
17396 #include "confdefs.h"
17397 #include <sys/types.h>
17398 /* Check that off_t can represent 2**63 - 1 correctly.
17399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17400 since some C++ compilers masquerading as C compilers
17401 incorrectly reject 9223372036854775807. */
17402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17404 && LARGE_OFF_T % 2147483647 == 1)
17406 #ifdef F77_DUMMY_MAIN
17407 # ifdef __cplusplus
17410 int F77_DUMMY_MAIN() { return 1; }
17420 rm -f conftest.$ac_objext
17421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17422 (eval $ac_compile) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17434 echo "$as_me: failed program was:" >&5
17435 cat conftest.$ac_ext >&5
17437 rm -f conftest.$ac_objext conftest.$ac_ext
17438 cat >conftest.$ac_ext <<_ACEOF
17439 #line $LINENO "configure"
17440 #include "confdefs.h"
17441 #define _LARGE_FILES 1
17442 #include <sys/types.h>
17443 /* Check that off_t can represent 2**63 - 1 correctly.
17444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17445 since some C++ compilers masquerading as C compilers
17446 incorrectly reject 9223372036854775807. */
17447 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17449 && LARGE_OFF_T % 2147483647 == 1)
17451 #ifdef F77_DUMMY_MAIN
17452 # ifdef __cplusplus
17455 int F77_DUMMY_MAIN() { return 1; }
17465 rm -f conftest.$ac_objext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17467 (eval $ac_compile) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -s conftest.$ac_objext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 ac_cv_sys_large_files=1; break
17479 echo "$as_me: failed program was:" >&5
17480 cat conftest.$ac_ext >&5
17482 rm -f conftest.$ac_objext conftest.$ac_ext
17486 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17487 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17488 if test "$ac_cv_sys_large_files" != no; then
17490 cat >>confdefs.h <<_ACEOF
17491 #define _LARGE_FILES $ac_cv_sys_large_files
17501 # Select semaphore implementation type.
17502 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17504 cat >>confdefs.h <<\_ACEOF
17505 #define USE_NAMED_POSIX_SEMAPHORES 1
17508 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17510 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17512 cat >>confdefs.h <<\_ACEOF
17513 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17516 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17519 cat >>confdefs.h <<\_ACEOF
17520 #define USE_SYSV_SEMAPHORES 1
17523 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17528 # Select shared-memory implementation type.
17530 cat >>confdefs.h <<\_ACEOF
17531 #define USE_SYSV_SHARED_MEMORY 1
17534 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17537 if test "$enable_nls" = yes ; then
17539 echo "$as_me:$LINENO: checking for library containing gettext" >&5
17540 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17541 if test "${ac_cv_search_gettext+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 ac_func_search_save_LIBS=$LIBS
17545 ac_cv_search_gettext=no
17546 cat >conftest.$ac_ext <<_ACEOF
17547 #line $LINENO "configure"
17548 #include "confdefs.h"
17550 /* Override any gcc2 internal prototype to avoid an error. */
17554 /* We use char because int might match the return type of a gcc2
17555 builtin and then its argument prototype would still apply. */
17557 #ifdef F77_DUMMY_MAIN
17558 # ifdef __cplusplus
17561 int F77_DUMMY_MAIN() { return 1; }
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17573 (eval $ac_link) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_search_gettext="none required"
17585 echo "$as_me: failed program was:" >&5
17586 cat conftest.$ac_ext >&5
17588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17589 if test "$ac_cv_search_gettext" = no; then
17590 for ac_lib in intl; do
17591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17592 cat >conftest.$ac_ext <<_ACEOF
17593 #line $LINENO "configure"
17594 #include "confdefs.h"
17596 /* Override any gcc2 internal prototype to avoid an error. */
17600 /* We use char because int might match the return type of a gcc2
17601 builtin and then its argument prototype would still apply. */
17603 #ifdef F77_DUMMY_MAIN
17604 # ifdef __cplusplus
17607 int F77_DUMMY_MAIN() { return 1; }
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_search_gettext="-l$ac_lib"
17632 echo "$as_me: failed program was:" >&5
17633 cat conftest.$ac_ext >&5
17635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17638 LIBS=$ac_func_search_save_LIBS
17640 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17641 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17642 if test "$ac_cv_search_gettext" != no; then
17643 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17646 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17647 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17648 { (exit 1); exit 1; }; }
17651 if test "${ac_cv_header_libintl_h+set}" = set; then
17652 echo "$as_me:$LINENO: checking for libintl.h" >&5
17653 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17654 if test "${ac_cv_header_libintl_h+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17658 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17660 # Is the header compilable?
17661 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17662 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17663 cat >conftest.$ac_ext <<_ACEOF
17664 #line $LINENO "configure"
17665 #include "confdefs.h"
17666 $ac_includes_default
17667 #include <libintl.h>
17669 rm -f conftest.$ac_objext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17671 (eval $ac_compile) 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try='test -s conftest.$ac_objext'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_header_compiler=yes
17683 echo "$as_me: failed program was:" >&5
17684 cat conftest.$ac_ext >&5
17685 ac_header_compiler=no
17687 rm -f conftest.$ac_objext conftest.$ac_ext
17688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17689 echo "${ECHO_T}$ac_header_compiler" >&6
17691 # Is the header present?
17692 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17693 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17694 cat >conftest.$ac_ext <<_ACEOF
17695 #line $LINENO "configure"
17696 #include "confdefs.h"
17697 #include <libintl.h>
17699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17702 egrep -v '^ *\+' conftest.er1 >conftest.err
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } >/dev/null; then
17707 if test -s conftest.err; then
17708 ac_cpp_err=$ac_c_preproc_warn_flag
17715 if test -z "$ac_cpp_err"; then
17716 ac_header_preproc=yes
17718 echo "$as_me: failed program was:" >&5
17719 cat conftest.$ac_ext >&5
17720 ac_header_preproc=no
17722 rm -f conftest.err conftest.$ac_ext
17723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17724 echo "${ECHO_T}$ac_header_preproc" >&6
17726 # So? What about this header?
17727 case $ac_header_compiler:$ac_header_preproc in
17729 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17730 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17732 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17734 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17735 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17736 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17737 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17738 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17739 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17741 echo "$as_me:$LINENO: checking for libintl.h" >&5
17742 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17743 if test "${ac_cv_header_libintl_h+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 ac_cv_header_libintl_h=$ac_header_preproc
17748 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17749 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17752 if test $ac_cv_header_libintl_h = yes; then
17755 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17756 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17757 { (exit 1); exit 1; }; }
17761 for ac_prog in msgfmt
17763 # Extract the first word of "$ac_prog", so it can be a program name with args.
17764 set dummy $ac_prog; ac_word=$2
17765 echo "$as_me:$LINENO: checking for $ac_word" >&5
17766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17767 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 if test -n "$MSGFMT"; then
17771 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17774 for as_dir in $PATH
17777 test -z "$as_dir" && as_dir=.
17778 for ac_exec_ext in '' $ac_executable_extensions; do
17779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17780 ac_cv_prog_MSGFMT="$ac_prog"
17781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17789 MSGFMT=$ac_cv_prog_MSGFMT
17790 if test -n "$MSGFMT"; then
17791 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17792 echo "${ECHO_T}$MSGFMT" >&6
17794 echo "$as_me:$LINENO: result: no" >&5
17795 echo "${ECHO_T}no" >&6
17798 test -n "$MSGFMT" && break
17801 if test -z "$MSGFMT"; then
17802 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17803 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17804 { (exit 1); exit 1; }; }
17806 for ac_prog in msgmerge
17808 # Extract the first word of "$ac_prog", so it can be a program name with args.
17809 set dummy $ac_prog; ac_word=$2
17810 echo "$as_me:$LINENO: checking for $ac_word" >&5
17811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17812 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 if test -n "$MSGMERGE"; then
17816 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17819 for as_dir in $PATH
17822 test -z "$as_dir" && as_dir=.
17823 for ac_exec_ext in '' $ac_executable_extensions; do
17824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17825 ac_cv_prog_MSGMERGE="$ac_prog"
17826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17834 MSGMERGE=$ac_cv_prog_MSGMERGE
17835 if test -n "$MSGMERGE"; then
17836 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17837 echo "${ECHO_T}$MSGMERGE" >&6
17839 echo "$as_me:$LINENO: result: no" >&5
17840 echo "${ECHO_T}no" >&6
17843 test -n "$MSGMERGE" && break
17846 for ac_prog in xgettext
17848 # Extract the first word of "$ac_prog", so it can be a program name with args.
17849 set dummy $ac_prog; ac_word=$2
17850 echo "$as_me:$LINENO: checking for $ac_word" >&5
17851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17852 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 if test -n "$XGETTEXT"; then
17856 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17859 for as_dir in $PATH
17862 test -z "$as_dir" && as_dir=.
17863 for ac_exec_ext in '' $ac_executable_extensions; do
17864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17865 ac_cv_prog_XGETTEXT="$ac_prog"
17866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17874 XGETTEXT=$ac_cv_prog_XGETTEXT
17875 if test -n "$XGETTEXT"; then
17876 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17877 echo "${ECHO_T}$XGETTEXT" >&6
17879 echo "$as_me:$LINENO: result: no" >&5
17880 echo "${ECHO_T}no" >&6
17883 test -n "$XGETTEXT" && break
17887 # Note: share/locale is always the default, independent of $datadir
17888 localedir='${prefix}/share/locale'
17889 if test x"$prefix" = x"NONE"; then
17890 exp_localedir="$ac_default_prefix/share/locale"
17892 exp_localedir="$prefix/share/locale"
17897 cat >>confdefs.h <<_ACEOF
17898 #define LOCALEDIR "$exp_localedir"
17904 # Check for Tcl configuration script tclConfig.sh
17905 if test "$with_tcl" = yes; then
17906 for ac_prog in tclsh tcl
17908 # Extract the first word of "$ac_prog", so it can be a program name with args.
17909 set dummy $ac_prog; ac_word=$2
17910 echo "$as_me:$LINENO: checking for $ac_word" >&5
17911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17912 if test "${ac_cv_path_TCLSH+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17921 for as_dir in $PATH
17924 test -z "$as_dir" && as_dir=.
17925 for ac_exec_ext in '' $ac_executable_extensions; do
17926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17927 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17937 TCLSH=$ac_cv_path_TCLSH
17939 if test -n "$TCLSH"; then
17940 echo "$as_me:$LINENO: result: $TCLSH" >&5
17941 echo "${ECHO_T}$TCLSH" >&6
17943 echo "$as_me:$LINENO: result: no" >&5
17944 echo "${ECHO_T}no" >&6
17947 test -n "$TCLSH" && break
17950 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17951 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17952 # Let user override test
17953 if test -z "$TCL_CONFIG_SH"; then
17954 pgac_test_dirs="$with_tclconfig"
17956 set X $pgac_test_dirs; shift
17957 if test $# -eq 0; then
17958 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17959 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17960 { (exit 1); exit 1; }; }
17961 set X `echo 'puts $auto_path' | $TCLSH`; shift
17965 if test -r "$pgac_dir/tclConfig.sh"; then
17966 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17972 if test -z "$TCL_CONFIG_SH"; then
17973 echo "$as_me:$LINENO: result: no" >&5
17974 echo "${ECHO_T}no" >&6
17975 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17976 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17977 { (exit 1); exit 1; }; }
17979 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17980 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17986 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17987 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17988 eval TCL_LIBS=\"$TCL_LIBS\"
17989 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17990 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17995 # Check for DocBook and tools
17997 for ac_prog in onsgmls nsgmls
17999 # Extract the first word of "$ac_prog", so it can be a program name with args.
18000 set dummy $ac_prog; ac_word=$2
18001 echo "$as_me:$LINENO: checking for $ac_word" >&5
18002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18003 if test "${ac_cv_prog_NSGMLS+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 if test -n "$NSGMLS"; then
18007 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
18009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18010 for as_dir in $PATH
18013 test -z "$as_dir" && as_dir=.
18014 for ac_exec_ext in '' $ac_executable_extensions; do
18015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18016 ac_cv_prog_NSGMLS="$ac_prog"
18017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18025 NSGMLS=$ac_cv_prog_NSGMLS
18026 if test -n "$NSGMLS"; then
18027 echo "$as_me:$LINENO: result: $NSGMLS" >&5
18028 echo "${ECHO_T}$NSGMLS" >&6
18030 echo "$as_me:$LINENO: result: no" >&5
18031 echo "${ECHO_T}no" >&6
18034 test -n "$NSGMLS" && break
18037 for ac_prog in openjade jade
18039 # Extract the first word of "$ac_prog", so it can be a program name with args.
18040 set dummy $ac_prog; ac_word=$2
18041 echo "$as_me:$LINENO: checking for $ac_word" >&5
18042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18043 if test "${ac_cv_prog_JADE+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 if test -n "$JADE"; then
18047 ac_cv_prog_JADE="$JADE" # Let the user override the test.
18049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18050 for as_dir in $PATH
18053 test -z "$as_dir" && as_dir=.
18054 for ac_exec_ext in '' $ac_executable_extensions; do
18055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18056 ac_cv_prog_JADE="$ac_prog"
18057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18065 JADE=$ac_cv_prog_JADE
18066 if test -n "$JADE"; then
18067 echo "$as_me:$LINENO: result: $JADE" >&5
18068 echo "${ECHO_T}$JADE" >&6
18070 echo "$as_me:$LINENO: result: no" >&5
18071 echo "${ECHO_T}no" >&6
18074 test -n "$JADE" && break
18078 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
18079 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
18080 if test "${pgac_cv_check_docbook+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 cat >conftest.sgml <<EOF
18084 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
18086 <title>test</title>
18088 <title>random</title>
18090 <title>testsect</title>
18097 pgac_cv_check_docbook=no
18099 if test -n "$NSGMLS"; then
18100 $NSGMLS -s conftest.sgml 1>&5 2>&1
18101 if test $? -eq 0; then
18102 pgac_cv_check_docbook=yes
18105 rm -f conftest.sgml
18107 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
18108 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
18110 have_docbook=$pgac_cv_check_docbook
18113 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
18114 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
18115 if test "${pgac_cv_path_stylesheets+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18118 if test -n "$DOCBOOKSTYLE"; then
18119 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
18121 for pgac_prefix in /usr /usr/local /opt; do
18122 for pgac_infix in share lib; do
18123 for pgac_postfix in \
18124 sgml/stylesheets/nwalsh-modular \
18125 sgml/stylesheets/docbook \
18126 sgml/docbook-dsssl \
18127 sgml/docbook/dsssl/modular \
18128 sgml/docbook/stylesheet/dsssl/modular \
18129 sgml/docbook/dsssl-stylesheets
18131 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
18132 if test -r "$pgac_candidate/html/docbook.dsl" \
18133 && test -r "$pgac_candidate/print/docbook.dsl"
18135 pgac_cv_path_stylesheets=$pgac_candidate
18144 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
18146 if test -n "$DOCBOOKSTYLE"; then
18147 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
18148 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
18150 echo "$as_me:$LINENO: result: no" >&5
18151 echo "${ECHO_T}no" >&6
18153 if test -n "$DOCBOOKSTYLE"; then
18154 for ac_prog in collateindex.pl
18156 # Extract the first word of "$ac_prog", so it can be a program name with args.
18157 set dummy $ac_prog; ac_word=$2
18158 echo "$as_me:$LINENO: checking for $ac_word" >&5
18159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18160 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 case $COLLATEINDEX in
18165 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18169 for as_dir in $DOCBOOKSTYLE/bin $PATH
18172 test -z "$as_dir" && as_dir=.
18173 for ac_exec_ext in '' $ac_executable_extensions; do
18174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18175 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18185 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18187 if test -n "$COLLATEINDEX"; then
18188 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18189 echo "${ECHO_T}$COLLATEINDEX" >&6
18191 echo "$as_me:$LINENO: result: no" >&5
18192 echo "${ECHO_T}no" >&6
18195 test -n "$COLLATEINDEX" && break
18199 for ac_prog in collateindex.pl
18201 # Extract the first word of "$ac_prog", so it can be a program name with args.
18202 set dummy $ac_prog; ac_word=$2
18203 echo "$as_me:$LINENO: checking for $ac_word" >&5
18204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18205 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 case $COLLATEINDEX in
18210 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18214 for as_dir in $PATH
18217 test -z "$as_dir" && as_dir=.
18218 for ac_exec_ext in '' $ac_executable_extensions; do
18219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18220 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18230 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18232 if test -n "$COLLATEINDEX"; then
18233 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18234 echo "${ECHO_T}$COLLATEINDEX" >&6
18236 echo "$as_me:$LINENO: result: no" >&5
18237 echo "${ECHO_T}no" >&6
18240 test -n "$COLLATEINDEX" && break
18244 for ac_prog in sgmlspl
18246 # Extract the first word of "$ac_prog", so it can be a program name with args.
18247 set dummy $ac_prog; ac_word=$2
18248 echo "$as_me:$LINENO: checking for $ac_word" >&5
18249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18250 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 if test -n "$SGMLSPL"; then
18254 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
18256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18257 for as_dir in $PATH
18260 test -z "$as_dir" && as_dir=.
18261 for ac_exec_ext in '' $ac_executable_extensions; do
18262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18263 ac_cv_prog_SGMLSPL="$ac_prog"
18264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18272 SGMLSPL=$ac_cv_prog_SGMLSPL
18273 if test -n "$SGMLSPL"; then
18274 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
18275 echo "${ECHO_T}$SGMLSPL" >&6
18277 echo "$as_me:$LINENO: result: no" >&5
18278 echo "${ECHO_T}no" >&6
18281 test -n "$SGMLSPL" && break
18287 # We have to run the thread test near the end so we have all our symbols
18288 # defined. Cross compiling throws a warning.
18290 if test "$enable_thread_safety_force" = yes; then
18291 { echo "$as_me:$LINENO: WARNING:
18292 *** Skipping thread test program. --enable-thread-safety-force was used.
18293 *** Run the program in src/tools/thread on the your machine and add
18294 proper locking function calls to your applications to guarantee thread
18297 echo "$as_me: WARNING:
18298 *** Skipping thread test program. --enable-thread-safety-force was used.
18299 *** Run the program in src/tools/thread on the your machine and add
18300 proper locking function calls to your applications to guarantee thread
18303 elif test "$enable_thread_safety" = yes; then
18304 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18305 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18309 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18310 LIBS="$LIBS $PTHREAD_LIBS"
18311 if test "$cross_compiling" = yes; then
18312 echo "$as_me:$LINENO: result: maybe" >&5
18313 echo "${ECHO_T}maybe" >&6
18314 { echo "$as_me:$LINENO: WARNING:
18315 *** Skipping thread test program because of cross-compile build.
18316 *** Run the program in src/tools/thread on the target machine.
18318 echo "$as_me: WARNING:
18319 *** Skipping thread test program because of cross-compile build.
18320 *** Run the program in src/tools/thread on the target machine.
18323 cat >conftest.$ac_ext <<_ACEOF
18324 #line $LINENO "configure"
18325 #include "confdefs.h"
18326 #include "$srcdir/src/tools/thread/thread_test.c"
18328 rm -f conftest$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 echo "$as_me:$LINENO: result: yes" >&5
18340 echo "${ECHO_T}yes" >&6
18342 echo "$as_me: program exited with status $ac_status" >&5
18343 echo "$as_me: failed program was:" >&5
18344 cat conftest.$ac_ext >&5
18345 ( exit $ac_status )
18346 echo "$as_me:$LINENO: result: no" >&5
18347 echo "${ECHO_T}no" >&6
18348 { { echo "$as_me:$LINENO: error:
18349 *** Thread test program failed. Your platform is not thread-safe.
18350 *** Check the file 'config.log'for the exact reason.
18352 *** You can use the configure option --enable-thread-safety-force
18353 *** to force threads to be enabled. However, you must then run
18354 *** the program in src/tools/thread and add locking function calls
18355 *** to your applications to guarantee thread safety.
18357 echo "$as_me: error:
18358 *** Thread test program failed. Your platform is not thread-safe.
18359 *** Check the file 'config.log'for the exact reason.
18361 *** You can use the configure option --enable-thread-safety-force
18362 *** to force threads to be enabled. However, you must then run
18363 *** the program in src/tools/thread and add locking function calls
18364 *** to your applications to guarantee thread safety.
18366 { (exit 1); exit 1; }; }
18368 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18374 # prepare build tree if outside source tree
18375 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18376 # Note 2: /bin/pwd might be better than shell's built-in at getting
18377 # a symlink-free name.
18378 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18382 if test "$no_create" != yes; then
18383 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18384 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18385 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18386 || { { echo "$as_me:$LINENO: error: failed" >&5
18387 echo "$as_me: error: failed" >&2;}
18388 { (exit 1); exit 1; }; }
18389 echo "$as_me:$LINENO: result: done" >&5
18390 echo "${ECHO_T}done" >&6
18396 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18399 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}"
18402 if test "$PORTNAME" = "win32"; then
18403 ac_config_commands="$ac_config_commands check_win32_symlinks"
18407 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18410 cat >confcache <<\_ACEOF
18411 # This file is a shell script that caches the results of configure
18412 # tests run on this system so they can be shared between configure
18413 # scripts and configure runs, see configure's option --config-cache.
18414 # It is not useful on other systems. If it contains results you don't
18415 # want to keep, you may remove or edit it.
18417 # config.status only pays attention to the cache file if you give it
18418 # the --recheck option to rerun configure.
18420 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18422 # following values.
18426 # The following way of writing the cache mishandles newlines in values,
18427 # but we know of no workaround that is simple, portable, and efficient.
18428 # So, don't put newlines in cache variables' values.
18429 # Ultrix sh set writes to stderr and can't be redirected directly,
18430 # and sets the high bit in the cache file unless we assign to the vars.
18433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18435 # `set' does not quote correctly, so add quotes (double-quote
18436 # substitution turns \\\\ into \\, and sed turns \\ into \).
18439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18442 # `set' quotes correctly as required by POSIX, so do not add quotes.
18444 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18453 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18455 if cmp -s $cache_file confcache; then :; else
18456 if test -w $cache_file; then
18457 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18458 cat confcache >$cache_file
18460 echo "not updating unwritable cache $cache_file"
18465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18466 # Let make expand exec_prefix.
18467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18469 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18470 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18471 # trailing colons and then remove the whole line if VPATH becomes empty
18472 # (actually we leave an empty line to preserve line numbers).
18473 if test "x$srcdir" = x.; then
18474 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18475 s/:*\$(srcdir):*/:/;
18476 s/:*\${srcdir}:*/:/;
18478 s/^\([^=]*=[ ]*\):*/\1/;
18484 DEFS=-DHAVE_CONFIG_H
18487 : ${CONFIG_STATUS=./config.status}
18488 ac_clean_files_save=$ac_clean_files
18489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18492 cat >$CONFIG_STATUS <<_ACEOF
18494 # Generated by $as_me.
18495 # Run this file to recreate the current configuration.
18496 # Compiler output produced by configure, useful for debugging
18497 # configure, is in config.log if it exists.
18500 SHELL=\${CONFIG_SHELL-$SHELL}
18503 cat >>$CONFIG_STATUS <<\_ACEOF
18505 ## --------------------- ##
18506 ## M4sh Initialization. ##
18507 ## --------------------- ##
18509 # Be Bourne compatible
18510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18513 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18518 # Support unset when possible.
18519 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18525 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18526 { $as_unset LANG || test "${LANG+set}" != set; } ||
18527 { LANG=C; export LANG; }
18528 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18529 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18530 { LC_ALL=C; export LC_ALL; }
18531 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18532 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18533 { LC_TIME=C; export LC_TIME; }
18534 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18535 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18536 { LC_CTYPE=C; export LC_CTYPE; }
18537 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18538 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18539 { LANGUAGE=C; export LANGUAGE; }
18540 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18541 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18542 { LC_COLLATE=C; export LC_COLLATE; }
18543 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18544 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18545 { LC_NUMERIC=C; export LC_NUMERIC; }
18546 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18547 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18548 { LC_MESSAGES=C; export LC_MESSAGES; }
18551 # Name of the executable.
18552 as_me=`(basename "$0") 2>/dev/null ||
18553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18554 X"$0" : 'X\(//\)$' \| \
18555 X"$0" : 'X\(/\)$' \| \
18556 . : '\(.\)' 2>/dev/null ||
18558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18559 /^X\/\(\/\/\)$/{ s//\1/; q; }
18560 /^X\/\(\/\).*/{ s//\1/; q; }
18563 # PATH needs CR, and LINENO needs CR and PATH.
18564 # Avoid depending upon Character Ranges.
18565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18568 as_cr_digits='0123456789'
18569 as_cr_alnum=$as_cr_Letters$as_cr_digits
18571 # The user is always right.
18572 if test "${PATH_SEPARATOR+set}" != set; then
18573 echo "#! /bin/sh" >conftest.sh
18574 echo "exit 0" >>conftest.sh
18575 chmod +x conftest.sh
18576 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18585 as_lineno_1=$LINENO
18586 as_lineno_2=$LINENO
18587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18588 test "x$as_lineno_1" != "x$as_lineno_2" &&
18589 test "x$as_lineno_3" = "x$as_lineno_2" || {
18590 # Find who we are. Look in the path if we contain no path at all
18593 *[\\/]* ) as_myself=$0 ;;
18594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18595 for as_dir in $PATH
18598 test -z "$as_dir" && as_dir=.
18599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18604 # We did not find ourselves, most probably we were run as `sh COMMAND'
18605 # in which case we are not to be found in the path.
18606 if test "x$as_myself" = x; then
18609 if test ! -f "$as_myself"; then
18610 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18611 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18612 { (exit 1); exit 1; }; }
18614 case $CONFIG_SHELL in
18616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18617 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18620 test -z "$as_dir" && as_dir=.
18621 for as_base in sh bash ksh sh5; do
18624 if ("$as_dir/$as_base" -c '
18625 as_lineno_1=$LINENO
18626 as_lineno_2=$LINENO
18627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18628 test "x$as_lineno_1" != "x$as_lineno_2" &&
18629 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18630 CONFIG_SHELL=$as_dir/$as_base
18631 export CONFIG_SHELL
18632 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18640 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18641 # uniformly replaced by the line number. The first 'sed' inserts a
18642 # line-number line before each line; the second 'sed' does the real
18643 # work. The second script uses 'N' to pair each line-number line
18644 # with the numbered line, and appends trailing '-' during
18645 # substitution so that $LINENO is not a special case at line end.
18646 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18647 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18648 sed '=' <$as_myself |
18653 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18656 s,^['$as_cr_digits']*\n,,
18657 ' >$as_me.lineno &&
18658 chmod +x $as_me.lineno ||
18659 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18660 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18661 { (exit 1); exit 1; }; }
18663 # Don't try to exec as it changes $[0], causing all sort of problems
18664 # (the dirname of $[0] is not the place where we might find the
18665 # original and so on. Autoconf is especially sensible to this).
18667 # Exit status is that of the last command.
18672 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18673 *c*,-n*) ECHO_N= ECHO_C='
18675 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18676 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18679 if expr a : '\(a\)' >/dev/null 2>&1; then
18685 rm -f conf$$ conf$$.exe conf$$.file
18687 if ln -s conf$$.file conf$$ 2>/dev/null; then
18688 # We could just check for DJGPP; but this test a) works b) is more generic
18689 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18690 if test -f conf$$.exe; then
18691 # Don't use ln at all; we don't have any links
18696 elif ln conf$$.file conf$$ 2>/dev/null; then
18701 rm -f conf$$ conf$$.exe conf$$.file
18703 as_executable_p="test -f"
18705 # Sed expression to map a string onto a valid CPP name.
18706 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18708 # Sed expression to map a string onto a valid variable name.
18709 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18713 # We need space, tab and new line, in precisely that order.
18719 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18723 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18724 # report actual input values of CONFIG_FILES etc. instead of their
18725 # values after options handling. Logging --version etc. is OK.
18729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18730 ## Running $as_me. ##
18735 This file was extended by PostgreSQL $as_me 8.0.0beta4, which was
18736 generated by GNU Autoconf 2.53. Invocation command line was
18738 CONFIG_FILES = $CONFIG_FILES
18739 CONFIG_HEADERS = $CONFIG_HEADERS
18740 CONFIG_LINKS = $CONFIG_LINKS
18741 CONFIG_COMMANDS = $CONFIG_COMMANDS
18745 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18749 # Files that config.status was made for.
18750 if test -n "$ac_config_files"; then
18751 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18754 if test -n "$ac_config_headers"; then
18755 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18758 if test -n "$ac_config_links"; then
18759 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18762 if test -n "$ac_config_commands"; then
18763 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18766 cat >>$CONFIG_STATUS <<\_ACEOF
18769 \`$as_me' instantiates files from templates according to the
18770 current configuration.
18772 Usage: $0 [OPTIONS] [FILE]...
18774 -h, --help print this help, then exit
18775 -V, --version print version number, then exit
18776 -d, --debug don't remove temporary files
18777 --recheck update $as_me by reconfiguring in the same conditions
18778 --file=FILE[:TEMPLATE]
18779 instantiate the configuration file FILE
18780 --header=FILE[:TEMPLATE]
18781 instantiate the configuration header FILE
18783 Configuration files:
18786 Configuration headers:
18789 Configuration links:
18792 Configuration commands:
18795 Report bugs to <bug-autoconf@gnu.org>."
18798 cat >>$CONFIG_STATUS <<_ACEOF
18800 PostgreSQL config.status 8.0.0beta4
18801 configured by $0, generated by GNU Autoconf 2.53,
18802 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18804 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18805 Free Software Foundation, Inc.
18806 This config.status script is free software; the Free Software Foundation
18807 gives unlimited permission to copy, distribute and modify it."
18811 cat >>$CONFIG_STATUS <<\_ACEOF
18812 # If no file are specified by the user, then we need to provide default
18813 # value. By we need to know if files were specified by the user.
18819 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18820 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18822 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18826 *) # This is not an option, so the user has probably given explicit
18828 ac_need_defaults=false;;
18832 # Handling of the options.
18834 cat >>$CONFIG_STATUS <<_ACEOF
18835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18836 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18837 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18839 cat >>$CONFIG_STATUS <<\_ACEOF
18840 --version | --vers* | -V )
18841 echo "$ac_cs_version"; exit 0 ;;
18843 # Conflict between --help and --header
18844 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18845 Try \`$0 --help' for more information." >&5
18846 echo "$as_me: error: ambiguous option: $1
18847 Try \`$0 --help' for more information." >&2;}
18848 { (exit 1); exit 1; }; };;
18849 --help | --hel | -h )
18850 echo "$ac_cs_usage"; exit 0 ;;
18851 --debug | --d* | -d )
18853 --file | --fil | --fi | --f )
18855 CONFIG_FILES="$CONFIG_FILES $1"
18856 ac_need_defaults=false;;
18857 --header | --heade | --head | --hea )
18859 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18860 ac_need_defaults=false;;
18862 # This is an error.
18863 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18864 Try \`$0 --help' for more information." >&5
18865 echo "$as_me: error: unrecognized option: $1
18866 Try \`$0 --help' for more information." >&2;}
18867 { (exit 1); exit 1; }; } ;;
18869 *) ac_config_targets="$ac_config_targets $1" ;;
18881 cat >>$CONFIG_STATUS <<\_ACEOF
18882 for ac_config_target in $ac_config_targets
18884 case "$ac_config_target" in
18885 # Handling of arguments.
18886 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18887 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18888 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18889 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18890 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18891 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18892 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18893 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18894 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18895 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
18896 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18898 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18899 { (exit 1); exit 1; }; };;
18903 # If the user did not use the arguments to specify the items to instantiate,
18904 # then the envvar interface is used. Set only those that are not.
18905 # We use the long form for the default assignment because of an extremely
18906 # bizarre bug on SunOS 4.1.3.
18907 if $ac_need_defaults; then
18908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18910 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18911 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18914 # Create a temporary directory, and hook for its removal unless debugging.
18917 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18918 trap '{ (exit 1); exit 1; }' 1 2 13 15
18921 # Create a (secure) tmp directory for tmp files.
18924 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18925 test -n "$tmp" && test -d "$tmp"
18928 tmp=$TMPDIR/cs$$-$RANDOM
18929 (umask 077 && mkdir $tmp)
18932 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18933 { (exit 1); exit 1; }
18938 cat >>$CONFIG_STATUS <<_ACEOF
18941 # CONFIG_FILES section.
18944 # No need to generate the scripts if there are no CONFIG_FILES.
18945 # This happens for instance when ./config.status config.h
18946 if test -n "\$CONFIG_FILES"; then
18947 # Protect against being on the right side of a sed subst in config.status.
18948 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18949 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18950 s,@SHELL@,$SHELL,;t t
18951 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18952 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18953 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18954 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18955 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18956 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18957 s,@exec_prefix@,$exec_prefix,;t t
18958 s,@prefix@,$prefix,;t t
18959 s,@program_transform_name@,$program_transform_name,;t t
18960 s,@bindir@,$bindir,;t t
18961 s,@sbindir@,$sbindir,;t t
18962 s,@libexecdir@,$libexecdir,;t t
18963 s,@datadir@,$datadir,;t t
18964 s,@sysconfdir@,$sysconfdir,;t t
18965 s,@sharedstatedir@,$sharedstatedir,;t t
18966 s,@localstatedir@,$localstatedir,;t t
18967 s,@libdir@,$libdir,;t t
18968 s,@includedir@,$includedir,;t t
18969 s,@oldincludedir@,$oldincludedir,;t t
18970 s,@infodir@,$infodir,;t t
18971 s,@mandir@,$mandir,;t t
18972 s,@build_alias@,$build_alias,;t t
18973 s,@host_alias@,$host_alias,;t t
18974 s,@target_alias@,$target_alias,;t t
18975 s,@DEFS@,$DEFS,;t t
18976 s,@ECHO_C@,$ECHO_C,;t t
18977 s,@ECHO_N@,$ECHO_N,;t t
18978 s,@ECHO_T@,$ECHO_T,;t t
18979 s,@LIBS@,$LIBS,;t t
18980 s,@configure_args@,$configure_args,;t t
18981 s,@build@,$build,;t t
18982 s,@build_cpu@,$build_cpu,;t t
18983 s,@build_vendor@,$build_vendor,;t t
18984 s,@build_os@,$build_os,;t t
18985 s,@host@,$host,;t t
18986 s,@host_cpu@,$host_cpu,;t t
18987 s,@host_vendor@,$host_vendor,;t t
18988 s,@host_os@,$host_os,;t t
18989 s,@PORTNAME@,$PORTNAME,;t t
18990 s,@docdir@,$docdir,;t t
18991 s,@enable_nls@,$enable_nls,;t t
18992 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18993 s,@default_port@,$default_port,;t t
18994 s,@enable_shared@,$enable_shared,;t t
18995 s,@enable_rpath@,$enable_rpath,;t t
18996 s,@enable_debug@,$enable_debug,;t t
18998 s,@CFLAGS@,$CFLAGS,;t t
18999 s,@LDFLAGS@,$LDFLAGS,;t t
19000 s,@CPPFLAGS@,$CPPFLAGS,;t t
19001 s,@ac_ct_CC@,$ac_ct_CC,;t t
19002 s,@EXEEXT@,$EXEEXT,;t t
19003 s,@OBJEXT@,$OBJEXT,;t t
19007 s,@autodepend@,$autodepend,;t t
19008 s,@INCLUDES@,$INCLUDES,;t t
19009 s,@enable_thread_safety@,$enable_thread_safety,;t t
19010 s,@with_tcl@,$with_tcl,;t t
19011 s,@with_perl@,$with_perl,;t t
19012 s,@with_python@,$with_python,;t t
19013 s,@with_krb4@,$with_krb4,;t t
19014 s,@with_krb5@,$with_krb5,;t t
19015 s,@krb_srvtab@,$krb_srvtab,;t t
19016 s,@with_pam@,$with_pam,;t t
19017 s,@with_rendezvous@,$with_rendezvous,;t t
19018 s,@with_openssl@,$with_openssl,;t t
19019 s,@ELF_SYS@,$ELF_SYS,;t t
19020 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
19022 s,@FLEX@,$FLEX,;t t
19023 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
19024 s,@LN_S@,$LN_S,;t t
19026 s,@with_gnu_ld@,$with_gnu_ld,;t t
19027 s,@ld_R_works@,$ld_R_works,;t t
19028 s,@RANLIB@,$RANLIB,;t t
19029 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19030 s,@LORDER@,$LORDER,;t t
19032 s,@STRIP@,$STRIP,;t t
19033 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19034 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
19035 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
19036 s,@YACC@,$YACC,;t t
19037 s,@YFLAGS@,$YFLAGS,;t t
19038 s,@PERL@,$PERL,;t t
19039 s,@perl_archlibexp@,$perl_archlibexp,;t t
19040 s,@perl_privlibexp@,$perl_privlibexp,;t t
19041 s,@perl_useshrplib@,$perl_useshrplib,;t t
19042 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
19043 s,@PYTHON@,$PYTHON,;t t
19044 s,@python_version@,$python_version,;t t
19045 s,@python_configdir@,$python_configdir,;t t
19046 s,@python_includespec@,$python_includespec,;t t
19047 s,@python_libdir@,$python_libdir,;t t
19048 s,@python_libspec@,$python_libspec,;t t
19049 s,@python_additional_libs@,$python_additional_libs,;t t
19050 s,@LIBOBJS@,$LIBOBJS,;t t
19051 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
19052 s,@acx_pthread_config@,$acx_pthread_config,;t t
19053 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
19054 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
19055 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
19056 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
19057 s,@MSGFMT@,$MSGFMT,;t t
19058 s,@MSGMERGE@,$MSGMERGE,;t t
19059 s,@XGETTEXT@,$XGETTEXT,;t t
19060 s,@localedir@,$localedir,;t t
19061 s,@TCLSH@,$TCLSH,;t t
19062 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
19063 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
19064 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
19065 s,@TCL_LIBS@,$TCL_LIBS,;t t
19066 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
19067 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
19068 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
19069 s,@NSGMLS@,$NSGMLS,;t t
19070 s,@JADE@,$JADE,;t t
19071 s,@have_docbook@,$have_docbook,;t t
19072 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
19073 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
19074 s,@SGMLSPL@,$SGMLSPL,;t t
19075 s,@vpath_build@,$vpath_build,;t t
19080 cat >>$CONFIG_STATUS <<\_ACEOF
19081 # Split the substitutions into bite-sized pieces for seds with
19082 # small command number limits, like on Digital OSF/1 and HP-UX.
19083 ac_max_sed_lines=48
19084 ac_sed_frag=1 # Number of current file.
19085 ac_beg=1 # First line for current file.
19086 ac_end=$ac_max_sed_lines # Line after last line for current file.
19089 while $ac_more_lines; do
19090 if test $ac_beg -gt 1; then
19091 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19093 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19095 if test ! -s $tmp/subs.frag; then
19096 ac_more_lines=false
19098 # The purpose of the label and of the branching condition is to
19099 # speed up the sed processing (if there are no `@' at all, there
19100 # is no need to browse any of the substitutions).
19101 # These are the two extra sed commands mentioned above.
19103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19104 if test -z "$ac_sed_cmds"; then
19105 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19107 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19109 ac_sed_frag=`expr $ac_sed_frag + 1`
19111 ac_end=`expr $ac_end + $ac_max_sed_lines`
19114 if test -z "$ac_sed_cmds"; then
19117 fi # test -n "$CONFIG_FILES"
19120 cat >>$CONFIG_STATUS <<\_ACEOF
19121 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19124 - | *:- | *:-:* ) # input from stdin
19126 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19128 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19130 * ) ac_file_in=$ac_file.in ;;
19133 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19136 X"$ac_file" : 'X\(//\)[^/]' \| \
19137 X"$ac_file" : 'X\(//\)$' \| \
19138 X"$ac_file" : 'X\(/\)' \| \
19139 . : '\(.\)' 2>/dev/null ||
19141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19143 /^X\(\/\/\)$/{ s//\1/; q; }
19144 /^X\(\/\).*/{ s//\1/; q; }
19146 { case "$ac_dir" in
19147 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19151 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19152 case $as_mkdir_dir in
19153 # Skip DOS drivespec
19154 ?:) as_incr_dir=$as_mkdir_dir ;;
19156 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19157 test -d "$as_incr_dir" ||
19158 mkdir "$as_incr_dir" ||
19159 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19160 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19161 { (exit 1); exit 1; }; }
19168 if test "$ac_dir" != .; then
19169 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19170 # A "../" for each directory in $ac_dir_suffix.
19171 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19173 ac_dir_suffix= ac_top_builddir=
19177 .) # No --srcdir option. We are building in place.
19179 if test -z "$ac_top_builddir"; then
19182 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19184 [\\/]* | ?:[\\/]* ) # Absolute path.
19185 ac_srcdir=$srcdir$ac_dir_suffix;
19186 ac_top_srcdir=$srcdir ;;
19187 *) # Relative path.
19188 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19189 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19191 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19193 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19194 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19195 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19196 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19200 if test x"$ac_file" != x-; then
19201 { echo "$as_me:$LINENO: creating $ac_file" >&5
19202 echo "$as_me: creating $ac_file" >&6;}
19205 # Let's still pretend it is `configure' which instantiates (i.e., don't
19206 # use $as_me), people would be surprised to read:
19207 # /* config.h. Generated by config.status. */
19208 if test x"$ac_file" = x-; then
19211 configure_input="$ac_file. "
19213 configure_input=$configure_input"Generated from `echo $ac_file_in |
19214 sed 's,.*/,,'` by configure."
19216 # First look for the input files in the build tree, otherwise in the
19218 ac_file_inputs=`IFS=:
19219 for f in $ac_file_in; do
19221 -) echo $tmp/stdin ;;
19223 # Absolute (can't be DOS-style, as IFS=:)
19224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19225 echo "$as_me: error: cannot find input file: $f" >&2;}
19226 { (exit 1); exit 1; }; }
19229 if test -f "$f"; then
19232 elif test -f "$srcdir/$f"; then
19237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19238 echo "$as_me: error: cannot find input file: $f" >&2;}
19239 { (exit 1); exit 1; }; }
19242 done` || { (exit 1); exit 1; }
19244 cat >>$CONFIG_STATUS <<_ACEOF
19248 cat >>$CONFIG_STATUS <<\_ACEOF
19250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19251 s,@configure_input@,$configure_input,;t t
19252 s,@srcdir@,$ac_srcdir,;t t
19253 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19254 s,@top_srcdir@,$ac_top_srcdir,;t t
19255 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19256 s,@builddir@,$ac_builddir,;t t
19257 s,@abs_builddir@,$ac_abs_builddir,;t t
19258 s,@top_builddir@,$ac_top_builddir,;t t
19259 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19260 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19262 if test x"$ac_file" != x-; then
19263 mv $tmp/out $ac_file
19271 cat >>$CONFIG_STATUS <<\_ACEOF
19274 # CONFIG_HEADER section.
19277 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19278 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19280 # ac_d sets the value in "#define NAME VALUE" lines.
19281 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19282 ac_dB='[ ].*$,\1#\2'
19285 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19286 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19287 ac_uB='$,\1#\2define\3'
19291 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19294 - | *:- | *:-:* ) # input from stdin
19296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19300 * ) ac_file_in=$ac_file.in ;;
19303 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19304 echo "$as_me: creating $ac_file" >&6;}
19306 # First look for the input files in the build tree, otherwise in the
19308 ac_file_inputs=`IFS=:
19309 for f in $ac_file_in; do
19311 -) echo $tmp/stdin ;;
19313 # Absolute (can't be DOS-style, as IFS=:)
19314 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19315 echo "$as_me: error: cannot find input file: $f" >&2;}
19316 { (exit 1); exit 1; }; }
19319 if test -f "$f"; then
19322 elif test -f "$srcdir/$f"; then
19327 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19328 echo "$as_me: error: cannot find input file: $f" >&2;}
19329 { (exit 1); exit 1; }; }
19332 done` || { (exit 1); exit 1; }
19333 # Remove the trailing spaces.
19334 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19338 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19339 # `conftest.undefs', that substitutes the proper values into
19340 # config.h.in to produce config.h. The first handles `#define'
19341 # templates, and the second `#undef' templates.
19342 # And first: Protect against being on the right side of a sed subst in
19343 # config.status. Protect against being in an unquoted here document
19344 # in config.status.
19345 rm -f conftest.defines conftest.undefs
19346 # Using a here document instead of a string reduces the quoting nightmare.
19347 # Putting comments in sed scripts is not portable.
19349 # `end' is used to avoid that the second main sed command (meant for
19350 # 0-ary CPP macros) applies to n-ary macro definitions.
19351 # See the Autoconf documentation for `clear'.
19352 cat >confdef2sed.sed <<\_ACEOF
19357 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19359 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19362 # If some macros were called several times there might be several times
19363 # the same #defines, which is useless. Nevertheless, we may not want to
19364 # sort them, since we want the *last* AC-DEFINE to be honored.
19365 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19366 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19367 rm -f confdef2sed.sed
19369 # This sed command replaces #undef with comments. This is necessary, for
19370 # example, in the case of _POSIX_SOURCE, which is predefined and required
19371 # on some systems where configure will not decide to define it.
19372 cat >>conftest.undefs <<\_ACEOF
19373 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19376 # Break up conftest.defines because some shells have a limit on the size
19377 # of here documents, and old seds have small limits too (100 cmds).
19378 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19379 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19380 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19381 echo ' :' >>$CONFIG_STATUS
19382 rm -f conftest.tail
19383 while grep . conftest.defines >/dev/null
19385 # Write a limited-size here document to $tmp/defines.sed.
19386 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19387 # Speed up: don't consider the non `#define' lines.
19388 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19389 # Work around the forget-to-reset-the-flag bug.
19390 echo 't clr' >>$CONFIG_STATUS
19391 echo ': clr' >>$CONFIG_STATUS
19392 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19394 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19396 mv $tmp/out $tmp/in
19398 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19399 rm -f conftest.defines
19400 mv conftest.tail conftest.defines
19402 rm -f conftest.defines
19403 echo ' fi # egrep' >>$CONFIG_STATUS
19404 echo >>$CONFIG_STATUS
19406 # Break up conftest.undefs because some shells have a limit on the size
19407 # of here documents, and old seds have small limits too (100 cmds).
19408 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19409 rm -f conftest.tail
19410 while grep . conftest.undefs >/dev/null
19412 # Write a limited-size here document to $tmp/undefs.sed.
19413 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19414 # Speed up: don't consider the non `#undef'
19415 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19416 # Work around the forget-to-reset-the-flag bug.
19417 echo 't clr' >>$CONFIG_STATUS
19418 echo ': clr' >>$CONFIG_STATUS
19419 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19421 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19423 mv $tmp/out $tmp/in
19425 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19426 rm -f conftest.undefs
19427 mv conftest.tail conftest.undefs
19429 rm -f conftest.undefs
19431 cat >>$CONFIG_STATUS <<\_ACEOF
19432 # Let's still pretend it is `configure' which instantiates (i.e., don't
19433 # use $as_me), people would be surprised to read:
19434 # /* config.h. Generated by config.status. */
19435 if test x"$ac_file" = x-; then
19436 echo "/* Generated by configure. */" >$tmp/config.h
19438 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19440 cat $tmp/in >>$tmp/config.h
19442 if test x"$ac_file" != x-; then
19443 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19444 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19445 echo "$as_me: $ac_file is unchanged" >&6;}
19447 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19449 X"$ac_file" : 'X\(//\)[^/]' \| \
19450 X"$ac_file" : 'X\(//\)$' \| \
19451 X"$ac_file" : 'X\(/\)' \| \
19452 . : '\(.\)' 2>/dev/null ||
19454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19456 /^X\(\/\/\)$/{ s//\1/; q; }
19457 /^X\(\/\).*/{ s//\1/; q; }
19459 { case "$ac_dir" in
19460 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19464 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19465 case $as_mkdir_dir in
19466 # Skip DOS drivespec
19467 ?:) as_incr_dir=$as_mkdir_dir ;;
19469 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19470 test -d "$as_incr_dir" ||
19471 mkdir "$as_incr_dir" ||
19472 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19473 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19474 { (exit 1); exit 1; }; }
19480 mv $tmp/config.h $ac_file
19484 rm -f $tmp/config.h
19486 # Run the commands associated with the file.
19488 src/include/pg_config.h )
19489 # Update timestamp for pg_config.h (see Makefile.global)
19490 echo >src/include/stamp-h
19495 cat >>$CONFIG_STATUS <<\_ACEOF
19498 # CONFIG_LINKS section.
19501 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19502 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19503 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19505 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19506 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19508 if test ! -r $srcdir/$ac_source; then
19509 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19510 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19511 { (exit 1); exit 1; }; }
19515 # Make relative symlinks.
19516 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19517 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19518 X"$ac_dest" : 'X\(//\)[^/]' \| \
19519 X"$ac_dest" : 'X\(//\)$' \| \
19520 X"$ac_dest" : 'X\(/\)' \| \
19521 . : '\(.\)' 2>/dev/null ||
19523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19525 /^X\(\/\/\)$/{ s//\1/; q; }
19526 /^X\(\/\).*/{ s//\1/; q; }
19528 { case "$ac_dest_dir" in
19529 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19532 as_dummy="$ac_dest_dir"
19533 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19534 case $as_mkdir_dir in
19535 # Skip DOS drivespec
19536 ?:) as_incr_dir=$as_mkdir_dir ;;
19538 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19539 test -d "$as_incr_dir" ||
19540 mkdir "$as_incr_dir" ||
19541 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19542 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19543 { (exit 1); exit 1; }; }
19550 if test "$ac_dest_dir" != .; then
19551 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19552 # A "../" for each directory in $ac_dir_suffix.
19553 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19555 ac_dir_suffix= ac_top_builddir=
19559 .) # No --srcdir option. We are building in place.
19561 if test -z "$ac_top_builddir"; then
19564 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19566 [\\/]* | ?:[\\/]* ) # Absolute path.
19567 ac_srcdir=$srcdir$ac_dir_suffix;
19568 ac_top_srcdir=$srcdir ;;
19569 *) # Relative path.
19570 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19571 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19573 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19575 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19576 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19577 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19578 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19582 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19583 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19586 # Make a symlink if possible; otherwise try a hard link.
19587 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19588 ln $srcdir/$ac_source $ac_dest ||
19589 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19590 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19591 { (exit 1); exit 1; }; }
19594 cat >>$CONFIG_STATUS <<\_ACEOF
19597 # CONFIG_COMMANDS section.
19599 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19600 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19601 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19602 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19603 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19604 X"$ac_dest" : 'X\(//\)[^/]' \| \
19605 X"$ac_dest" : 'X\(//\)$' \| \
19606 X"$ac_dest" : 'X\(/\)' \| \
19607 . : '\(.\)' 2>/dev/null ||
19609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19611 /^X\(\/\/\)$/{ s//\1/; q; }
19612 /^X\(\/\).*/{ s//\1/; q; }
19616 if test "$ac_dir" != .; then
19617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19618 # A "../" for each directory in $ac_dir_suffix.
19619 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19621 ac_dir_suffix= ac_top_builddir=
19625 .) # No --srcdir option. We are building in place.
19627 if test -z "$ac_top_builddir"; then
19630 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19632 [\\/]* | ?:[\\/]* ) # Absolute path.
19633 ac_srcdir=$srcdir$ac_dir_suffix;
19634 ac_top_srcdir=$srcdir ;;
19635 *) # Relative path.
19636 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19637 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19639 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19641 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19642 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19643 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19644 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19647 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19648 echo "$as_me: executing $ac_dest commands" >&6;}
19650 check_win32_symlinks )
19651 # Links sometimes fail undetected on Mingw -
19652 # so here we detect it and warn the user
19653 for FILE in $CONFIG_LINKS
19655 # test -e works for symlinks in the MinGW console
19656 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19657 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19664 cat >>$CONFIG_STATUS <<\_ACEOF
19666 { (exit 0); exit 0; }
19668 chmod +x $CONFIG_STATUS
19669 ac_clean_files=$ac_clean_files_save
19672 # configure is writing to config.log, and then calls config.status.
19673 # config.status does its own redirection, appending to config.log.
19674 # Unfortunately, on DOS this fails, as config.log is still kept open
19675 # by configure, so config.status won't be able to write to it; its
19676 # output is simply discarded. So we exec the FD to /dev/null,
19677 # effectively closing config.log, so it can be properly (re)opened and
19678 # appended to by config.status. When coming back to configure, we
19679 # need to make the FD available again.
19680 if test "$no_create" != yes; then
19683 $SHELL $CONFIG_STATUS || ac_cs_success=false
19685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19686 # would make configure fail if this is the last instruction.
19687 $ac_cs_success || { (exit 1); exit 1; }