2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
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 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-integer-datetimes enable 64-bit integer date/time support
853 --enable-recode enable character set recode support
854 --enable-nls[=LANGUAGES] enable Native Language Support
855 --disable-shared do not build shared libraries
856 --disable-rpath do not embed shared library search path in executables
857 --enable-debug build with debugging symbols (-g)
858 --enable-depend turn on automatic dependency tracking
859 --enable-cassert enable assertion checks (for debugging)
860 --enable-odbc build the ODBC driver package
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-includes=DIRS look for additional header files in DIRS
867 --with-libraries=DIRS look for additional libraries in DIRS
868 --with-libs=DIRS alternative spelling of --with-libraries
869 --with-pgport=PORTNUM change default port number 5432
870 --with-maxbackends=N set default maximum number of connections 32
871 --with-tcl build Tcl and Tk interfaces
872 --without-tk do not build Tk interfaces if Tcl is enabled
873 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
874 --with-tkconfig=DIR tkConfig.sh is in DIR
875 --with-perl build Perl interface and PL/Perl
876 --with-python build Python interface module
877 --with-java build JDBC interface and Java tools
878 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
879 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
880 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
881 --with-pam build with PAM support
882 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
883 --without-readline do not use Readline
884 --without-zlib do not use Zlib
885 --with-unixodbc build ODBC driver for unixODBC
886 --with-iodbc build ODBC driver for iODBC
887 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
888 --with-CXX build C++ modules (libpq++)
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
899 CXX C++ compiler command
900 CXXFLAGS C++ compiler flags
901 CXXCPP C++ preprocessor
903 location of DocBook stylesheets
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
908 Report bugs to <pgsql-bugs@postgresql.org>.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
971 PostgreSQL configure 7.3devel
972 generated by GNU Autoconf 2.53
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
979 Copyright 2002 PostgreSQL Global Development Group
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by PostgreSQL $as_me 7.3devel, which was
989 generated by GNU Autoconf 2.53. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Also quote any args containing shell meta-characters.
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n ) continue ;;
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 case " $ac_configure_args " in
1056 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1057 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060 # Get rid of the leading space.
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log. We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069 # Save into config.log some information that might help in debugging.
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1078 # The following way of writing the cache mishandles newlines in values,
1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094 if test -s confdefs.h; then
1101 sed "/^$/d" confdefs.h
1104 test "$ac_signal" != 0 &&
1105 echo "$as_me: caught signal $ac_signal"
1106 echo "$as_me: exit $exit_status"
1108 rm -f core core.* *.core &&
1109 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1112 for ac_signal in 1 2 13 15; do
1113 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1122 # Predefined preprocessor variables.
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152 if test "x$prefix" != xNONE; then
1153 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1158 for ac_site_file in $CONFIG_SITE; do
1159 if test -r "$ac_site_file"; then
1160 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162 sed 's/^/| /' "$ac_site_file" >&5
1167 if test -r "$cache_file"; then
1168 # Some versions of bash will fail to source /dev/null (special
1169 # files actually), so we avoid doing that.
1170 if test -f "$cache_file"; then
1171 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1174 [\\/]* | ?:[\\/]* ) . $cache_file;;
1175 *) . ./$cache_file;;
1179 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1184 # Check that the precious variables saved in the cache have kept the same
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190 eval ac_new_set=\$ac_env_${ac_var}_set
1191 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192 eval ac_new_val="\$ac_env_${ac_var}_value"
1193 case $ac_old_set,$ac_new_set in
1195 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197 ac_cache_corrupted=: ;;
1199 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201 ac_cache_corrupted=: ;;
1204 if test "x$ac_old_val" != "x$ac_new_val"; then
1205 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208 echo "$as_me: former value: $ac_old_val" >&2;}
1209 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210 echo "$as_me: current value: $ac_new_val" >&2;}
1211 ac_cache_corrupted=:
1214 # Pass precious variables to config.status.
1215 if test "$ac_new_set" = set; then
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 *) ac_arg=$ac_var=$ac_new_val ;;
1221 case " $ac_configure_args " in
1222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1223 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1227 if $ac_cache_corrupted; then
1228 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232 { (exit 1); exit 1; }; }
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274 for ac_dir in config $srcdir/config; do
1275 if test -f $ac_dir/install-sh; then
1277 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 elif test -f $ac_dir/install.sh; then
1281 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 elif test -f $ac_dir/shtool; then
1285 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 if test -z "$ac_aux_dir"; then
1290 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292 { (exit 1); exit 1; }; }
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1299 configure_args=$ac_configure_args
1303 cat >>confdefs.h <<_ACEOF
1304 #define PG_VERSION "$PACKAGE_VERSION"
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321 ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325 { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329 { (exit 1); exit 1; }; }
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347 ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364 echo "$as_me:$LINENO: checking which template to use" >&5
1365 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1370 # Check whether --with-template or --without-template was given.
1371 if test "${with_template+set}" = set; then
1372 withval="$with_template"
1376 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378 { (exit 1); exit 1; }; }
1381 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382 echo "$as_me: error: argument required for --with-template option" >&2;}
1383 { (exit 1); exit 1; }; }
1388 list) echo; ls "$srcdir/src/template"; exit;;
1389 *) if test -f "$srcdir/src/template/$with_template" ; then
1392 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394 { (exit 1); exit 1; }; }
1403 # --with-template not given
1406 aix*) template=aix ;;
1407 beos*) template=beos ;;
1408 bsdi*) template=bsdi ;;
1409 cygwin*) template=win ;;
1410 darwin*) template=darwin ;;
1411 dgux*) template=dgux ;;
1412 freebsd*) template=freebsd ;;
1413 hpux*) template=hpux ;;
1414 irix*) template=irix5 ;;
1415 linux*) template=linux ;;
1416 netbsd*) template=netbsd ;;
1417 nextstep*) template=nextstep ;;
1418 openbsd*) template=openbsd ;;
1419 osf*) template=osf ;;
1420 qnx*) template=qnx4 ;;
1421 sco*) template=sco ;;
1422 solaris*) template=solaris ;;
1423 sunos*) template=sunos4 ;;
1425 case $host_vendor in
1426 univel) template=univel ;;
1428 sysv4*) template=svr4 ;;
1429 sysv5*) template=unixware ;;
1430 ultrix*) template=ultrix4 ;;
1433 if test x"$template" = x"" ; then
1434 { { echo "$as_me:$LINENO: error:
1435 *******************************************************************
1436 PostgreSQL has apparently not been ported to your platform yet.
1437 To try a manual configuration, look into the src/template directory
1438 for a similar platform and use the '--with-template=' option.
1440 Please also contact <pgsql-ports@postgresql.org> to see about
1441 rectifying this. Include the above 'checking host system type...'
1443 *******************************************************************
1445 echo "$as_me: error:
1446 *******************************************************************
1447 PostgreSQL has apparently not been ported to your platform yet.
1448 To try a manual configuration, look into the src/template directory
1449 for a similar platform and use the '--with-template=' option.
1451 Please also contact <pgsql-ports@postgresql.org> to see about
1452 rectifying this. Include the above 'checking host system type...'
1454 *******************************************************************
1456 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: $template" >&5
1464 echo "${ECHO_T}$template" >&6
1469 # Pick right test-and-set (TAS) code. Most platforms have inline
1470 # assembler code in src/include/storage/s_lock.h, so we just use
1471 # a dummy file here.
1473 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1474 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1475 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1476 *) need_tas=no; tas_file=dummy.s ;;
1478 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1481 if test "$need_tas" = yes ; then
1489 ## Command line options
1494 # Add non-standard directories to the include path
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501 withval="$with_includes"
1505 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507 { (exit 1); exit 1; }; }
1510 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512 { (exit 1); exit 1; }; }
1524 # Add non-standard directories to the library search path
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531 withval="$with_libraries"
1535 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537 { (exit 1); exit 1; }; }
1540 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542 { (exit 1); exit 1; }; }
1545 LIBRARY_DIRS=$withval
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557 withval="$with_libs"
1561 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563 { (exit 1); exit 1; }; }
1566 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568 { (exit 1); exit 1; }; }
1571 LIBRARY_DIRS=$withval
1580 # 64-bit integer date/time storage (--enable-integer-datetimes)
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588 enableval="$enable_integer_datetimes"
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1602 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604 { (exit 1); exit 1; }; }
1609 enable_integer_datetimes=no
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1617 # Character set recode (--enable-recode)
1619 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1620 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1623 # Check whether --enable-recode or --disable-recode was given.
1624 if test "${enable_recode+set}" = set; then
1625 enableval="$enable_recode"
1630 cat >>confdefs.h <<\_ACEOF
1631 #define CYR_RECODE 1
1639 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1640 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1641 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: $enable_recode" >&5
1651 echo "${ECHO_T}$enable_recode" >&6
1659 cat >>confdefs.h <<\_ACEOF
1668 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1669 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1672 # Check whether --enable-nls or --disable-nls was given.
1673 if test "${enable_nls+set}" = set; then
1674 enableval="$enable_nls"
1685 WANTED_LANGUAGES=$enableval
1694 if test "$enable_nls" = yes; then
1696 cat >>confdefs.h <<\_ACEOF
1697 #define ENABLE_NLS 1
1702 echo "$as_me:$LINENO: result: $enable_nls" >&5
1703 echo "${ECHO_T}$enable_nls" >&6
1708 # Default port number (--with-pgport), default 5432
1710 echo "$as_me:$LINENO: checking for default port number" >&5
1711 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1715 # Check whether --with-pgport or --without-pgport was given.
1716 if test "${with_pgport+set}" = set; then
1717 withval="$with_pgport"
1721 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1722 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1723 { (exit 1); exit 1; }; }
1726 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1727 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1728 { (exit 1); exit 1; }; }
1731 default_port=$withval
1739 echo "$as_me:$LINENO: result: $default_port" >&5
1740 echo "${ECHO_T}$default_port" >&6
1741 # Need both of these because some places want an integer and some a string
1743 cat >>confdefs.h <<_ACEOF
1744 #define DEF_PGPORT ${default_port}
1748 cat >>confdefs.h <<_ACEOF
1749 #define DEF_PGPORT_STR "${default_port}"
1755 # Maximum number of allowed connections (--with-maxbackends), default 32
1757 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1758 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1762 # Check whether --with-maxbackends or --without-maxbackends was given.
1763 if test "${with_maxbackends+set}" = set; then
1764 withval="$with_maxbackends"
1768 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1769 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1770 { (exit 1); exit 1; }; }
1773 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1774 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1775 { (exit 1); exit 1; }; }
1786 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1787 echo "${ECHO_T}$with_maxbackends" >&6
1789 cat >>confdefs.h <<_ACEOF
1790 #define DEF_MAXBACKENDS $with_maxbackends
1796 # Option to disable shared libraries
1800 # Check whether --enable-shared or --disable-shared was given.
1801 if test "${enable_shared+set}" = set; then
1802 enableval="$enable_shared"
1812 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1813 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1814 { (exit 1); exit 1; }; }
1826 # '-rpath'-like feature can be disabled
1830 # Check whether --enable-rpath or --disable-rpath was given.
1831 if test "${enable_rpath+set}" = set; then
1832 enableval="$enable_rpath"
1842 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1843 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1844 { (exit 1); exit 1; }; }
1857 # --enable-debug adds -g to compiler flags
1861 # Check whether --enable-debug or --disable-debug was given.
1862 if test "${enable_debug+set}" = set; then
1863 enableval="$enable_debug"
1873 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1874 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1875 { (exit 1); exit 1; }; }
1890 # For historical reasons you can also use --with-CC to specify the C compiler
1891 # to use, although the standard way to do this is to set the CC environment
1896 # Check whether --with-CC or --without-CC was given.
1897 if test "${with_CC+set}" = set; then
1902 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1903 echo "$as_me: error: argument required for --with-CC option" >&2;}
1904 { (exit 1); exit 1; }; }
1907 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1908 echo "$as_me: error: argument required for --with-CC option" >&2;}
1909 { (exit 1); exit 1; }; }
1920 aix) pgac_cc_list="gcc xlc";;
1921 irix) pgac_cc_list="cc";; # no gcc
1922 *) pgac_cc_list="gcc cc";;
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 if test -n "$ac_tool_prefix"; then
1931 for ac_prog in $pgac_cc_list
1933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 if test -n "$CC"; then
1961 echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1968 test -n "$CC" && break
1971 if test -z "$CC"; then
1973 for ac_prog in $pgac_cc_list
1975 # Extract the first word of "$ac_prog", so it can be a program name with args.
1976 set dummy $ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$ac_ct_CC"; then
1983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_ac_ct_CC="$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2002 if test -n "$ac_ct_CC"; then
2003 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2004 echo "${ECHO_T}$ac_ct_CC" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2010 test -n "$ac_ct_CC" && break
2017 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2018 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2019 { (exit 1); exit 1; }; }
2021 # Provide some information about the compiler.
2022 echo "$as_me:$LINENO:" \
2023 "checking for C compiler version" >&5
2024 ac_compiler=`set X $ac_compile; echo $2`
2025 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2026 (eval $ac_compiler --version </dev/null >&5) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2031 (eval $ac_compiler -v </dev/null >&5) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }
2035 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2036 (eval $ac_compiler -V </dev/null >&5) 2>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 #include "confdefs.h"
2045 #ifdef F77_DUMMY_MAIN
2049 int F77_DUMMY_MAIN() { return 1; }
2059 ac_clean_files_save=$ac_clean_files
2060 ac_clean_files="$ac_clean_files a.out a.exe"
2061 # Try to create an executable without -o first, disregard a.out.
2062 # It will help us diagnose broken compilers, and finding out an intuition
2064 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2065 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2066 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2068 (eval $ac_link_default) 2>&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # Find the output, starting from the most likely. This scheme is
2073 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2076 # Be careful to initialize this variable, since it used to be cached.
2077 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2079 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2080 ls a.out conftest 2>/dev/null;
2081 ls a.* conftest.* 2>/dev/null`; do
2083 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2084 a.out ) # We found the default executable, but exeext='' is most
2087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2095 echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2098 echo "$as_me: error: C compiler cannot create executables" >&2;}
2099 { (exit 77); exit 77; }; }
2102 ac_exeext=$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_file" >&5
2104 echo "${ECHO_T}$ac_file" >&6
2106 # Check the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113 if { ac_try='./$ac_file'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2121 if test "$cross_compiling" = maybe; then
2124 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'." >&5
2126 echo "$as_me: error: cannot run C compiled programs.
2127 If you meant to cross compile, use \`--host'." >&2;}
2128 { (exit 1); exit 1; }; }
2132 echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6
2135 rm -f a.out a.exe conftest$ac_cv_exeext
2136 ac_clean_files=$ac_clean_files_save
2137 # Check the compiler produces executables we can run. If not, either
2138 # the compiler is broken, or we cross compile.
2139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2142 echo "${ECHO_T}$cross_compiling" >&6
2144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2147 (eval $ac_link) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2153 # work properly (i.e., refer to `conftest.exe'), while it won't with
2155 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2157 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2165 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2167 { (exit 1); exit 1; }; }
2170 rm -f conftest$ac_cv_exeext
2171 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2172 echo "${ECHO_T}$ac_cv_exeext" >&6
2174 rm -f conftest.$ac_ext
2175 EXEEXT=$ac_cv_exeext
2177 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2178 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2179 if test "${ac_cv_objext+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line $LINENO "configure"
2184 #include "confdefs.h"
2186 #ifdef F77_DUMMY_MAIN
2190 int F77_DUMMY_MAIN() { return 1; }
2200 rm -f conftest.o conftest.obj
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; then
2206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2214 echo "$as_me: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2216 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2217 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224 echo "${ECHO_T}$ac_cv_objext" >&6
2225 OBJEXT=$ac_cv_objext
2227 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2228 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2229 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2234 #include "confdefs.h"
2236 #ifdef F77_DUMMY_MAIN
2240 int F77_DUMMY_MAIN() { return 1; }
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2267 echo "$as_me: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2271 rm -f conftest.$ac_objext conftest.$ac_ext
2272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2275 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2277 GCC=`test $ac_compiler_gnu = yes && echo yes`
2278 ac_test_CFLAGS=${CFLAGS+set}
2279 ac_save_CFLAGS=$CFLAGS
2281 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2282 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2283 if test "${ac_cv_prog_cc_g+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2288 #include "confdefs.h"
2290 #ifdef F77_DUMMY_MAIN
2294 int F77_DUMMY_MAIN() { return 1; }
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2318 echo "$as_me: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2322 rm -f conftest.$ac_objext conftest.$ac_ext
2324 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2325 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2326 if test "$ac_test_CFLAGS" = set; then
2327 CFLAGS=$ac_save_CFLAGS
2328 elif test $ac_cv_prog_cc_g = yes; then
2329 if test "$GCC" = yes; then
2335 if test "$GCC" = yes; then
2341 # Some people use a C++ compiler to compile C. Since we use `exit',
2342 # in C++ we need to declare it. In case someone uses the same compiler
2343 # for both compiling C and C++ we need to have the C++ compiler decide
2344 # the declaration of exit, since it's the most demanding environment.
2345 cat >conftest.$ac_ext <<_ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 for ac_declaration in \
2364 '#include <stdlib.h>' \
2365 'extern "C" void std::exit (int) throw (); using std::exit;' \
2366 'extern "C" void std::exit (int); using std::exit;' \
2367 'extern "C" void exit (int) throw ();' \
2368 'extern "C" void exit (int);' \
2371 cat >conftest.$ac_ext <<_ACEOF
2372 #line $LINENO "configure"
2373 #include "confdefs.h"
2376 #ifdef F77_DUMMY_MAIN
2380 int F77_DUMMY_MAIN() { return 1; }
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 echo "$as_me: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2408 rm -f conftest.$ac_objext conftest.$ac_ext
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 #include "confdefs.h"
2413 #ifdef F77_DUMMY_MAIN
2417 int F77_DUMMY_MAIN() { return 1; }
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 rm -f conftest.$ac_objext conftest.$ac_ext
2447 if test -n "$ac_declaration"; then
2448 echo '#ifdef __cplusplus' >>confdefs.h
2449 echo $ac_declaration >>confdefs.h
2450 echo '#endif' >>confdefs.h
2454 echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2457 rm -f conftest.$ac_objext conftest.$ac_ext
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465 . "$srcdir/src/template/$template" || exit
2467 if test "$ac_env_CFLAGS_set" = set; then
2468 CFLAGS=$ac_env_CFLAGS_value
2470 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2473 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2474 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2475 # Check if the compiler still works with the template settings
2476 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2477 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line $LINENO "configure"
2481 #include "confdefs.h"
2483 #ifdef F77_DUMMY_MAIN
2487 int F77_DUMMY_MAIN() { return 1; }
2497 rm -f conftest.$ac_objext conftest$ac_exeext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2499 (eval $ac_link) 2>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -s conftest$ac_exeext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 echo "$as_me:$LINENO: result: yes" >&5
2510 echo "${ECHO_T}yes" >&6
2512 echo "$as_me: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2517 echo "$as_me: error: cannot proceed" >&2;}
2518 { (exit 1); exit 1; }; }
2520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2528 # On Suns, sometimes $CPP names a directory.
2529 if test -n "$CPP" && test -d "$CPP"; then
2532 if test -z "$CPP"; then
2533 if test "${ac_cv_prog_CPP+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 # Double quotes because CPP needs to be expanded
2537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2540 for ac_c_preproc_warn_flag in '' yes
2542 # Use a header file that comes with gcc, so configuring glibc
2543 # with a fresh cross-compiler works.
2544 # On the NeXT, cc -E runs the code through the compiler's parser,
2545 # not just through cpp. "Syntax error" is here to catch this case.
2546 cat >conftest.$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 #include "confdefs.h"
2552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2555 egrep -v '^ *\+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } >/dev/null; then
2560 if test -s conftest.err; then
2561 ac_cpp_err=$ac_c_preproc_warn_flag
2568 if test -z "$ac_cpp_err"; then
2571 echo "$as_me: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2573 # Broken: fails on valid input.
2576 rm -f conftest.err conftest.$ac_ext
2578 # OK, works on sane cases. Now check whether non-existent headers
2579 # can be detected and how.
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2583 #include <ac_nonexistent.h>
2585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2588 egrep -v '^ *\+' conftest.er1 >conftest.err
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } >/dev/null; then
2593 if test -s conftest.err; then
2594 ac_cpp_err=$ac_c_preproc_warn_flag
2601 if test -z "$ac_cpp_err"; then
2602 # Broken: success on invalid input.
2605 echo "$as_me: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 # Passes both tests.
2611 rm -f conftest.err conftest.$ac_ext
2614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2615 rm -f conftest.err conftest.$ac_ext
2616 if $ac_preproc_ok; then
2628 echo "$as_me:$LINENO: result: $CPP" >&5
2629 echo "${ECHO_T}$CPP" >&6
2631 for ac_c_preproc_warn_flag in '' yes
2633 # Use a header file that comes with gcc, so configuring glibc
2634 # with a fresh cross-compiler works.
2635 # On the NeXT, cc -E runs the code through the compiler's parser,
2636 # not just through cpp. "Syntax error" is here to catch this case.
2637 cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 #include "confdefs.h"
2643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2646 egrep -v '^ *\+' conftest.er1 >conftest.err
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } >/dev/null; then
2651 if test -s conftest.err; then
2652 ac_cpp_err=$ac_c_preproc_warn_flag
2659 if test -z "$ac_cpp_err"; then
2662 echo "$as_me: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 # Broken: fails on valid input.
2667 rm -f conftest.err conftest.$ac_ext
2669 # OK, works on sane cases. Now check whether non-existent headers
2670 # can be detected and how.
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 #include "confdefs.h"
2674 #include <ac_nonexistent.h>
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2679 egrep -v '^ *\+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } >/dev/null; then
2684 if test -s conftest.err; then
2685 ac_cpp_err=$ac_c_preproc_warn_flag
2692 if test -z "$ac_cpp_err"; then
2693 # Broken: success on invalid input.
2696 echo "$as_me: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698 # Passes both tests.
2702 rm -f conftest.err conftest.$ac_ext
2705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2706 rm -f conftest.err conftest.$ac_ext
2707 if $ac_preproc_ok; then
2710 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2711 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2712 { (exit 1); exit 1; }; }
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 # Create compiler version string
2724 if test x"$GCC" = x"yes" ; then
2725 cc_string="GCC `${CC} --version | sed q`"
2730 cat >>confdefs.h <<_ACEOF
2731 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2737 # Automatic dependency tracking
2741 # Check whether --enable-depend or --disable-depend was given.
2742 if test "${enable_depend+set}" = set; then
2743 enableval="$enable_depend"
2753 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2754 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2755 { (exit 1); exit 1; }; }
2768 # Enable assert checks
2772 # Check whether --enable-cassert or --disable-cassert was given.
2773 if test "${enable_cassert+set}" = set; then
2774 enableval="$enable_cassert"
2779 cat >>confdefs.h <<\_ACEOF
2780 #define USE_ASSERT_CHECKING 1
2788 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2789 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2790 { (exit 1); exit 1; }; }
2802 # Include directories
2806 # SRCH_INC comes from the template file
2807 for dir in $with_includes $SRCH_INC; do
2808 if test -d "$dir"; then
2809 INCLUDES="$INCLUDES -I$dir"
2811 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2812 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2820 # Library directories
2824 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2825 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2826 if test -d "$dir"; then
2827 LIBDIRS="$LIBDIRS -L$dir"
2829 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2830 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2839 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2840 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2844 # Check whether --with-tcl or --without-tcl was given.
2845 if test "${with_tcl+set}" = set; then
2856 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2857 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2858 { (exit 1); exit 1; }; }
2867 echo "$as_me:$LINENO: result: $with_tcl" >&5
2868 echo "${ECHO_T}$with_tcl" >&6
2871 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2872 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2873 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2874 if test "$with_tcl" = yes; then
2878 # Check whether --with-tk or --without-tk was given.
2879 if test "${with_tk+set}" = set; then
2890 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2891 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2892 { (exit 1); exit 1; }; }
2904 echo "$as_me:$LINENO: result: $with_tk" >&5
2905 echo "${ECHO_T}$with_tk" >&6
2909 # We see if the path to the Tcl/Tk configuration scripts is specified.
2910 # This will override the use of tclsh to find the paths to search.
2915 # Check whether --with-tclconfig or --without-tclconfig was given.
2916 if test "${with_tclconfig+set}" = set; then
2917 withval="$with_tclconfig"
2921 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2922 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2923 { (exit 1); exit 1; }; }
2926 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2927 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2928 { (exit 1); exit 1; }; }
2938 # We see if the path to the Tk configuration scripts is specified.
2939 # This will override the use of tclsh to find the paths to search.
2944 # Check whether --with-tkconfig or --without-tkconfig was given.
2945 if test "${with_tkconfig+set}" = set; then
2946 withval="$with_tkconfig"
2950 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2951 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2952 { (exit 1); exit 1; }; }
2955 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2956 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2957 { (exit 1); exit 1; }; }
2968 # Optionally build Perl modules (Pg.pm and PL/Perl)
2970 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2971 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2975 # Check whether --with-perl or --without-perl was given.
2976 if test "${with_perl+set}" = set; then
2977 withval="$with_perl"
2987 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2988 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2989 { (exit 1); exit 1; }; }
2998 echo "$as_me:$LINENO: result: $with_perl" >&5
2999 echo "${ECHO_T}$with_perl" >&6
3003 # Optionally build Python interface module
3005 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3006 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3010 # Check whether --with-python or --without-python was given.
3011 if test "${with_python+set}" = set; then
3012 withval="$with_python"
3022 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3023 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3024 { (exit 1); exit 1; }; }
3033 echo "$as_me:$LINENO: result: $with_python" >&5
3034 echo "${ECHO_T}$with_python" >&6
3038 # Optionally build the Java/JDBC tools
3040 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3041 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3045 # Check whether --with-java or --without-java was given.
3046 if test "${with_java+set}" = set; then
3047 withval="$with_java"
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3054 for ac_prog in jakarta-ant ant ant.sh ant.bat
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_path_ANT+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 if test -n "$ANT"; then
3088 echo "$as_me:$LINENO: result: $ANT" >&5
3089 echo "${ECHO_T}$ANT" >&6
3091 echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3095 test -n "$ANT" && break
3099 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3100 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3101 if test "${pgac_cv_prog_ant_works+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 cat > conftest.java << EOF
3106 public class conftest {
3107 int testmethod(int a, int b) {
3113 cat > conftest.xml << EOF
3114 <project name="conftest" default="conftest">
3115 <target name="conftest">
3116 <javac srcdir="." includes="conftest.java">
3122 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3123 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3124 (eval $pgac_cmd) 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3129 if test $? = 0 && test -f ./conftest.class ; then
3130 pgac_cv_prog_ant_works=yes
3132 echo "configure: failed java program was:" >&5
3133 cat conftest.java >&5
3134 echo "configure: failed build file was:" >&5
3135 cat conftest.xml >&5
3136 pgac_cv_prog_ant_works=no
3139 rm -f conftest* core core.* *.core
3142 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3143 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3145 if test "$pgac_cv_prog_ant_works" != yes; then
3146 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3147 echo "$as_me: error: ant does not work" >&2;}
3148 { (exit 1); exit 1; }; }
3152 if test -z "$ANT"; then
3153 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3154 echo "$as_me: error: Ant is required to build Java components" >&2;}
3155 { (exit 1); exit 1; }; }
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3163 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3164 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3165 { (exit 1); exit 1; }; }
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3181 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3182 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3186 # Check whether --with-krb4 or --without-krb4 was given.
3187 if test "${with_krb4+set}" = set; then
3188 withval="$with_krb4"
3192 krb4_prefix=/usr/athena
3199 krb4_prefix=$withval
3208 if test "$with_krb4" = yes; then
3210 echo "$as_me:$LINENO: result: yes" >&5
3211 echo "${ECHO_T}yes" >&6
3213 cat >>confdefs.h <<\_ACEOF
3218 if test -d "$krb4_prefix/include"; then
3219 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3221 if test -d "$krb4_prefix/lib"; then
3222 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3225 krb_srvtab="/etc/srvtab"
3228 echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3239 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3240 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3244 # Check whether --with-krb5 or --without-krb5 was given.
3245 if test "${with_krb5+set}" = set; then
3246 withval="$with_krb5"
3250 krb5_prefix=/usr/athena
3257 krb5_prefix=$withval
3266 if test "$with_krb5" = yes; then
3268 echo "$as_me:$LINENO: result: yes" >&5
3269 echo "${ECHO_T}yes" >&6
3271 cat >>confdefs.h <<\_ACEOF
3276 if test -d "$krb5_prefix/include"; then
3277 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3279 if test -d "$krb5_prefix/lib"; then
3280 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3283 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3286 echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3294 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3295 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3296 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3297 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3298 { (exit 1); exit 1; }; }
3305 # Kerberos configuration parameters
3310 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3311 if test "${with_krb_srvnam+set}" = set; then
3312 withval="$with_krb_srvnam"
3316 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3317 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3318 { (exit 1); exit 1; }; }
3321 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3322 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3323 { (exit 1); exit 1; }; }
3331 with_krb_srvnam="postgres"
3335 cat >>confdefs.h <<_ACEOF
3336 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3344 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3345 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3349 # Check whether --with-pam or --without-pam was given.
3350 if test "${with_pam+set}" = set; then
3356 cat >>confdefs.h <<\_ACEOF
3365 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3366 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3367 { (exit 1); exit 1; }; }
3376 echo "$as_me:$LINENO: result: $with_pam" >&5
3377 echo "${ECHO_T}$with_pam" >&6
3387 # Check whether --with-openssl or --without-openssl was given.
3388 if test "${with_openssl+set}" = set; then
3389 withval="$with_openssl"
3393 openssl_prefix=/usr/local/ssl
3400 openssl_prefix=$withval
3409 if test "$with_openssl" = yes; then
3411 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3412 echo "${ECHO_T}building with OpenSSL support" >&6
3414 cat >>confdefs.h <<\_ACEOF
3419 if test -d "${openssl_prefix}/include" ; then
3420 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3422 if test -d "${openssl_prefix}/lib" ; then
3423 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3438 # Check whether --with-readline or --without-readline was given.
3439 if test "${with_readline+set}" = set; then
3440 withval="$with_readline"
3450 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3451 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3452 { (exit 1); exit 1; }; }
3468 # Check whether --with-zlib or --without-zlib was given.
3469 if test "${with_zlib+set}" = set; then
3470 withval="$with_zlib"
3480 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3481 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3482 { (exit 1); exit 1; }; }
3495 # Optionally enable the building of the ODBC driver
3499 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3500 enable_odbc=$with_odbc
3503 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3504 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3507 # Check whether --enable-odbc or --disable-odbc was given.
3508 if test "${enable_odbc+set}" = set; then
3509 enableval="$enable_odbc"
3519 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3520 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3521 { (exit 1); exit 1; }; }
3533 # Check whether --with-unixodbc or --without-unixodbc was given.
3534 if test "${with_unixodbc+set}" = set; then
3535 withval="$with_unixodbc"
3545 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3546 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3547 { (exit 1); exit 1; }; }
3559 # Check whether --with-iodbc or --without-iodbc was given.
3560 if test "${with_iodbc+set}" = set; then
3561 withval="$with_iodbc"
3571 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3572 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3573 { (exit 1); exit 1; }; }
3582 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3583 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3584 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3585 { (exit 1); exit 1; }; }
3587 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3590 case $enable_odbc:$with_unixodbc:$with_iodbc in
3591 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3592 echo "${ECHO_T}yes (stand-alone)" >&6;;
3593 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3594 echo "${ECHO_T}yes (unixODBC)" >&6
3596 cat >>confdefs.h <<\_ACEOF
3597 #define WITH_UNIXODBC 1
3601 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3602 echo "${ECHO_T}yes (iODBC)" >&6
3604 cat >>confdefs.h <<\_ACEOF
3605 #define WITH_IODBC 1
3609 no:*) echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6;;
3617 # Allow for overriding the default location of the odbcinst.ini
3618 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3622 # Check whether --with-odbcinst or --without-odbcinst was given.
3623 if test "${with_odbcinst+set}" = set; then
3624 withval="$with_odbcinst"
3628 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3629 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3630 { (exit 1); exit 1; }; }
3633 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3634 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3635 { (exit 1); exit 1; }; }
3638 odbcinst_ini_dir=$withval
3643 odbcinst_ini_dir="\${sysconfdir}"
3650 # Assume system is ELF if it predefines __ELF__ as 1,
3651 # otherwise believe host_os based default.
3653 freebsd1*|freebsd2*) elf=no;;
3654 freebsd3*|freebsd4*) elf=yes;;
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667 egrep "yes" >/dev/null 2>&1; then
3670 if test "X$elf" = "Xyes" ; then
3683 # Optionally build C++ code (i.e., libpq++)
3685 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3686 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3690 # Check whether --with-CXX or --without-CXX was given.
3691 if test "${with_CXX+set}" = set; then
3712 if test "$with_CXX" = yes; then
3714 echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3717 # If the user has specified CXXFLAGS in the environment, leave it
3718 # alone, else use a default.
3721 ac_cpp='$CXXCPP $CPPFLAGS'
3722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_CXX+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if test -n "$CXX"; then
3736 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test -n "$CXX"; then
3756 echo "$as_me:$LINENO: result: $CXX" >&5
3757 echo "${ECHO_T}$CXX" >&6
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3763 test -n "$CXX" && break
3766 if test -z "$CXX"; then
3768 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy $ac_prog; ac_word=$2
3772 echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 if test -n "$ac_ct_CXX"; then
3778 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_ac_ct_CXX="$ac_prog"
3788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3797 if test -n "$ac_ct_CXX"; then
3798 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3799 echo "${ECHO_T}$ac_ct_CXX" >&6
3801 echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6
3805 test -n "$ac_ct_CXX" && break
3807 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3813 # Provide some information about the compiler.
3814 echo "$as_me:$LINENO:" \
3815 "checking for C++ compiler version" >&5
3816 ac_compiler=`set X $ac_compile; echo $2`
3817 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3818 (eval $ac_compiler --version </dev/null >&5) 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }
3822 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3823 (eval $ac_compiler -v </dev/null >&5) 2>&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }
3827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3828 (eval $ac_compiler -V </dev/null >&5) 2>&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }
3833 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3834 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3840 #include "confdefs.h"
3842 #ifdef F77_DUMMY_MAIN
3846 int F77_DUMMY_MAIN() { return 1; }
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -s conftest.$ac_objext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3873 echo "$as_me: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3877 rm -f conftest.$ac_objext conftest.$ac_ext
3878 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3881 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3882 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3883 GXX=`test $ac_compiler_gnu = yes && echo yes`
3884 ac_test_CXXFLAGS=${CXXFLAGS+set}
3885 ac_save_CXXFLAGS=$CXXFLAGS
3887 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3888 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3889 if test "${ac_cv_prog_cxx_g+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 #include "confdefs.h"
3896 #ifdef F77_DUMMY_MAIN
3900 int F77_DUMMY_MAIN() { return 1; }
3910 rm -f conftest.$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -s conftest.$ac_objext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_prog_cxx_g=yes
3924 echo "$as_me: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3928 rm -f conftest.$ac_objext conftest.$ac_ext
3930 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3931 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3932 if test "$ac_test_CXXFLAGS" = set; then
3933 CXXFLAGS=$ac_save_CXXFLAGS
3934 elif test $ac_cv_prog_cxx_g = yes; then
3935 if test "$GXX" = yes; then
3941 if test "$GXX" = yes; then
3947 for ac_declaration in \
3949 '#include <stdlib.h>' \
3950 'extern "C" void std::exit (int) throw (); using std::exit;' \
3951 'extern "C" void std::exit (int); using std::exit;' \
3952 'extern "C" void exit (int) throw ();' \
3953 'extern "C" void exit (int);' \
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 #include "confdefs.h"
3961 #ifdef F77_DUMMY_MAIN
3965 int F77_DUMMY_MAIN() { return 1; }
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3989 echo "$as_me: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3993 rm -f conftest.$ac_objext conftest.$ac_ext
3994 cat >conftest.$ac_ext <<_ACEOF
3995 #line $LINENO "configure"
3996 #include "confdefs.h"
3998 #ifdef F77_DUMMY_MAIN
4002 int F77_DUMMY_MAIN() { return 1; }
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4026 echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 rm -f conftest.$ac_objext conftest.$ac_ext
4032 if test -n "$ac_declaration"; then
4033 echo '#ifdef __cplusplus' >>confdefs.h
4034 echo $ac_declaration >>confdefs.h
4035 echo '#endif' >>confdefs.h
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 if test "$ac_env_CXXFLAGS" != set; then
4045 if test "$GXX" = yes; then
4049 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
4050 unixware) CXXFLAGS='-O' ;;
4055 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4056 CXXFLAGS="$CXXFLAGS -g"
4058 { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4059 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4067 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4068 if test -z "$CXXCPP"; then
4069 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 # Double quotes because CXXCPP needs to be expanded
4073 for CXXCPP in "$CXX -E" "/lib/cpp"
4076 for ac_cxx_preproc_warn_flag in '' yes
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # On the NeXT, cc -E runs the code through the compiler's parser,
4081 # not just through cpp. "Syntax error" is here to catch this case.
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4091 egrep -v '^ *\+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } >/dev/null; then
4096 if test -s conftest.err; then
4097 ac_cpp_err=$ac_cxx_preproc_warn_flag
4104 if test -z "$ac_cpp_err"; then
4107 echo "$as_me: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether non-existent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 #include "confdefs.h"
4119 #include <ac_nonexistent.h>
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124 egrep -v '^ *\+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_cxx_preproc_warn_flag
4137 if test -z "$ac_cpp_err"; then
4138 # Broken: success on invalid input.
4141 echo "$as_me: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4143 # Passes both tests.
4147 rm -f conftest.err conftest.$ac_ext
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4157 ac_cv_prog_CXXCPP=$CXXCPP
4160 CXXCPP=$ac_cv_prog_CXXCPP
4162 ac_cv_prog_CXXCPP=$CXXCPP
4164 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4165 echo "${ECHO_T}$CXXCPP" >&6
4167 for ac_cxx_preproc_warn_flag in '' yes
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182 egrep -v '^ *\+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null; then
4187 if test -s conftest.err; then
4188 ac_cpp_err=$ac_cxx_preproc_warn_flag
4195 if test -z "$ac_cpp_err"; then
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 # Broken: fails on valid input.
4203 rm -f conftest.err conftest.$ac_ext
4205 # OK, works on sane cases. Now check whether non-existent headers
4206 # can be detected and how.
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #include <ac_nonexistent.h>
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215 egrep -v '^ *\+' conftest.er1 >conftest.err
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev/null; then
4220 if test -s conftest.err; then
4221 ac_cpp_err=$ac_cxx_preproc_warn_flag
4228 if test -z "$ac_cpp_err"; then
4229 # Broken: success on invalid input.
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 # Passes both tests.
4238 rm -f conftest.err conftest.$ac_ext
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then
4246 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4247 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4248 { (exit 1); exit 1; }; }
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4266 CPPFLAGS="$CPPFLAGS $INCLUDES"
4267 LDFLAGS="$LDFLAGS $LIBDIRS"
4269 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4270 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4271 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4272 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4275 for ac_prog in gawk mawk nawk awk
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AWK+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test -n "$AWK"; then
4285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_AWK="$ac_prog"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test -n "$AWK"; then
4305 echo "$as_me:$LINENO: result: $AWK" >&5
4306 echo "${ECHO_T}$AWK" >&6
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4312 test -n "$AWK" && break
4315 echo "$as_me:$LINENO: checking for flex" >&5
4316 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4317 if test "${pgac_cv_path_flex+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 # Let the user override the test
4321 if test -n "$FLEX"; then
4322 pgac_cv_path_flex=$FLEX
4326 for pgac_dir in $PATH; do
4327 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4330 for pgac_prog in flex lex; do
4331 pgac_candidate="$pgac_dir/$pgac_prog"
4332 if test -f "$pgac_candidate" \
4333 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4335 echo '%%' > conftest.l
4336 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4337 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4338 pgac_broken_flex=$pgac_candidate
4342 pgac_cv_path_flex=$pgac_candidate
4350 : ${pgac_cv_path_flex=no}
4354 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4355 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4356 if test x"$pgac_cv_path_flex" = x"no"; then
4357 if test -n "$pgac_broken_flex"; then
4358 { echo "$as_me:$LINENO: WARNING:
4359 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4360 *** should get version 2.5.4 or later." >&5
4361 echo "$as_me: WARNING:
4362 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4363 *** should get version 2.5.4 or later." >&2;}
4366 { echo "$as_me:$LINENO: WARNING:
4367 *** Without Flex you will not be able to build PostgreSQL from CVS or
4368 *** change any of the scanner definition files. You can obtain Flex from
4369 *** a GNU mirror site. (If you are using the official distribution of
4370 *** PostgreSQL then you do not need to worry about this because the Flex
4371 *** output is pre-generated.)" >&5
4372 echo "$as_me: WARNING:
4373 *** Without Flex you will not be able to build PostgreSQL from CVS or
4374 *** change any of the scanner definition files. You can obtain Flex from
4375 *** a GNU mirror site. (If you are using the official distribution of
4376 *** PostgreSQL then you do not need to worry about this because the Flex
4377 *** output is pre-generated.)" >&2;}
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4383 FLEX=$pgac_cv_path_flex
4389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4392 if test "$LN_S" = "ln -s"; then
4393 echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6
4396 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4397 echo "${ECHO_T}no, using $LN_S" >&6
4401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402 if test "${with_gnu_ld+set}" = set; then
4403 withval="$with_gnu_ld"
4404 test "$withval" = no || with_gnu_ld=yes
4409 if test "$GCC" = yes; then
4410 # Check if gcc -print-prog-name=ld gives a path.
4411 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4412 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4415 # gcc leaves a trailing carriage return which upsets mingw
4416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4421 # Accept absolute paths.
4422 [\\/]* | [A-Za-z]:[\\/]*)
4423 re_direlt='/[^/][^/]*/\.\./'
4424 # Canonicalize the path of ld
4425 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4426 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4427 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4429 test -z "$LD" && LD="$ac_prog"
4432 # If it fails, then pretend we aren't using GCC.
4436 # If it is relative, then search for the first ld in PATH.
4440 elif test "$with_gnu_ld" = yes; then
4441 echo "$as_me:$LINENO: checking for GNU ld" >&5
4442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4444 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4447 if test "${ac_cv_path_LD+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if test -z "$LD"; then
4451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4452 for ac_dir in $PATH; do
4453 test -z "$ac_dir" && ac_dir=.
4454 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455 ac_cv_path_LD="$ac_dir/$ac_prog"
4456 # Check to see if the program is GNU ld. I'd rather use --version,
4457 # but apparently some GNU ld's only accept -v.
4458 # Break only if it was the GNU/non-GNU ld that we prefer.
4459 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4460 test "$with_gnu_ld" != no && break
4462 test "$with_gnu_ld" != yes && break
4468 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4473 if test -n "$LD"; then
4474 echo "$as_me:$LINENO: result: $LD" >&5
4475 echo "${ECHO_T}$LD" >&6
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4482 { (exit 1); exit 1; }; }
4483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4485 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4489 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4490 ac_cv_prog_gnu_ld=yes
4492 ac_cv_prog_gnu_ld=no
4495 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$ac_cv_prog_gnu_ld
4502 case $host_os in sysv5*)
4503 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4504 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4505 if test "${pgac_cv_prog_ld_R+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4510 cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 #include "confdefs.h"
4514 #ifdef F77_DUMMY_MAIN
4518 int F77_DUMMY_MAIN() { return 1; }
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530 (eval $ac_link) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -s conftest$ac_exeext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 pgac_cv_prog_ld_R=yes
4542 echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 pgac_cv_prog_ld_R=no
4546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4547 LDFLAGS=$pgac_save_LDFLAGS
4550 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4551 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4552 ld_R_works=$pgac_cv_prog_ld_R
4555 if test -n "$ac_tool_prefix"; then
4556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$RANLIB"; then
4564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584 echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593 ac_ct_RANLIB=$RANLIB
4594 # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$ac_ct_RANLIB"; then
4602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_ac_ct_RANLIB="ranlib"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4626 echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4630 RANLIB=$ac_ct_RANLIB
4632 RANLIB="$ac_cv_prog_RANLIB"
4635 for ac_prog in lorder
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_LORDER+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$LORDER"; then
4645 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_LORDER="$ac_prog"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 LORDER=$ac_cv_prog_LORDER
4664 if test -n "$LORDER"; then
4665 echo "$as_me:$LINENO: result: $LORDER" >&5
4666 echo "${ECHO_T}$LORDER" >&6
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4672 test -n "$LORDER" && break
4675 # Extract the first word of "tar", so it can be a program name with args.
4676 set dummy tar; ac_word=$2
4677 echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679 if test "${ac_cv_path_TAR+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 if test -n "$TAR"; then
4707 echo "$as_me:$LINENO: result: $TAR" >&5
4708 echo "${ECHO_T}$TAR" >&6
4710 echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 if test -n "$STRIP"; then
4724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744 echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_STRIP"; then
4754 # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$ac_ct_STRIP"; then
4762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_STRIP="strip"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4792 STRIP="$ac_cv_prog_STRIP"
4796 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4797 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4798 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4799 STRIP_STATIC_LIB="$STRIP -x"
4800 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4801 echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6
4806 echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4813 for ac_prog in 'bison -y'
4815 # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy $ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_YACC+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$YACC"; then
4823 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_YACC="$ac_prog"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 YACC=$ac_cv_prog_YACC
4842 if test -n "$YACC"; then
4843 echo "$as_me:$LINENO: result: $YACC" >&5
4844 echo "${ECHO_T}$YACC" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4850 test -n "$YACC" && break
4853 if test -z "$YACC"; then
4854 { echo "$as_me:$LINENO: WARNING:
4855 *** Without Bison you will not be able to build PostgreSQL from CVS or
4856 *** change any of the parser definition files. You can obtain Bison from
4857 *** a GNU mirror site. (If you are using the official distribution of
4858 *** PostgreSQL then you do not need to worry about this because the Bison
4859 *** output is pre-generated.) To use a different yacc program (possible,
4860 *** but not recommended), set the environment variable YACC before running
4861 *** 'configure'." >&5
4862 echo "$as_me: WARNING:
4863 *** Without Bison you will not be able to build PostgreSQL from CVS or
4864 *** change any of the parser definition files. You can obtain Bison from
4865 *** a GNU mirror site. (If you are using the official distribution of
4866 *** PostgreSQL then you do not need to worry about this because the Bison
4867 *** output is pre-generated.) To use a different yacc program (possible,
4868 *** but not recommended), set the environment variable YACC before running
4869 *** 'configure'." >&2;}
4873 if test "$with_tk" = yes; then
4874 # Extract the first word of "wish", so it can be a program name with args.
4875 set dummy wish; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_WISH+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 WISH=$ac_cv_path_WISH
4905 if test -n "$WISH"; then
4906 echo "$as_me:$LINENO: result: $WISH" >&5
4907 echo "${ECHO_T}$WISH" >&6
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4913 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4914 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4915 { (exit 1); exit 1; }; }
4918 # Extract the first word of "perl", so it can be a program name with args.
4919 set dummy perl; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_path_PERL+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 PERL=$ac_cv_path_PERL
4949 if test -n "$PERL"; then
4950 echo "$as_me:$LINENO: result: $PERL" >&5
4951 echo "${ECHO_T}$PERL" >&6
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4957 if test "$with_perl" = yes; then
4960 echo "$as_me:$LINENO: checking Perl installation directories" >&5
4961 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
4963 # These are the ones we currently need. Others can be added easily.
4964 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4965 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4966 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4969 echo "$as_me:$LINENO: result: done" >&5
4970 echo "${ECHO_T}done" >&6
4974 if test "$with_python" = yes; then
4975 # Extract the first word of "python", so it can be a program name with args.
4976 set dummy python; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_path_PYTHON+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 PYTHON=$ac_cv_path_PYTHON
5006 if test -n "$PYTHON"; then
5007 echo "$as_me:$LINENO: result: $PYTHON" >&5
5008 echo "${ECHO_T}$PYTHON" >&6
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5014 if test x"$PYTHON" = x""; then
5015 { { echo "$as_me:$LINENO: error: Python not found" >&5
5016 echo "$as_me: error: Python not found" >&2;}
5017 { (exit 1); exit 1; }; }
5021 echo "$as_me:$LINENO: checking Python installation directories" >&5
5022 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5023 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5024 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5025 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5026 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5027 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5028 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5029 python_includespec="-I${python_prefix}/include/python${python_version}"
5030 if test "$python_prefix" != "$python_execprefix"; then
5031 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5034 # This should be enough of a message.
5035 if test "$python_prefix" != "$python_execprefix"; then
5036 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5037 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5039 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5040 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5047 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5048 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5050 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5051 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5052 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5053 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5054 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5056 pgac_tab=" " # tab character
5057 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
5059 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5060 echo "${ECHO_T}${python_libspec}" >&6
5070 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5073 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5074 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5075 if test "${ac_cv_lib_bsd_main+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 ac_check_lib_save_LIBS=$LIBS
5080 cat >conftest.$ac_ext <<_ACEOF
5081 #line $LINENO "configure"
5082 #include "confdefs.h"
5085 #ifdef F77_DUMMY_MAIN
5089 int F77_DUMMY_MAIN() { return 1; }
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest$ac_exeext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_lib_bsd_main=yes
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 ac_cv_lib_bsd_main=no
5117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5118 LIBS=$ac_check_lib_save_LIBS
5120 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5121 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5122 if test $ac_cv_lib_bsd_main = yes; then
5123 cat >>confdefs.h <<_ACEOF
5124 #define HAVE_LIBBSD 1
5133 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5134 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5135 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_check_lib_save_LIBS=$LIBS
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 #include "confdefs.h"
5144 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5150 char setproctitle ();
5151 #ifdef F77_DUMMY_MAIN
5155 int F77_DUMMY_MAIN() { return 1; }
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167 (eval $ac_link) 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -s conftest$ac_exeext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_lib_util_setproctitle=yes
5179 echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 ac_cv_lib_util_setproctitle=no
5183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5184 LIBS=$ac_check_lib_save_LIBS
5186 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5187 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5188 if test $ac_cv_lib_util_setproctitle = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LIBUTIL 1
5198 echo "$as_me:$LINENO: checking for main in -lm" >&5
5199 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5200 if test "${ac_cv_lib_m_main+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 ac_check_lib_save_LIBS=$LIBS
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 #include "confdefs.h"
5210 #ifdef F77_DUMMY_MAIN
5214 int F77_DUMMY_MAIN() { return 1; }
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -s conftest$ac_exeext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 ac_cv_lib_m_main=yes
5238 echo "$as_me: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243 LIBS=$ac_check_lib_save_LIBS
5245 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5246 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5247 if test $ac_cv_lib_m_main = yes; then
5248 cat >>confdefs.h <<_ACEOF
5257 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5258 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5259 if test "${ac_cv_lib_dl_main+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 ac_check_lib_save_LIBS=$LIBS
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 #include "confdefs.h"
5269 #ifdef F77_DUMMY_MAIN
5273 int F77_DUMMY_MAIN() { return 1; }
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_lib_dl_main=yes
5297 echo "$as_me: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 ac_cv_lib_dl_main=no
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5304 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5305 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5306 if test $ac_cv_lib_dl_main = yes; then
5307 cat >>confdefs.h <<_ACEOF
5308 #define HAVE_LIBDL 1
5316 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5317 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5318 if test "${ac_cv_lib_nsl_main+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 ac_check_lib_save_LIBS=$LIBS
5323 cat >conftest.$ac_ext <<_ACEOF
5324 #line $LINENO "configure"
5325 #include "confdefs.h"
5328 #ifdef F77_DUMMY_MAIN
5332 int F77_DUMMY_MAIN() { return 1; }
5342 rm -f conftest.$ac_objext conftest$ac_exeext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5344 (eval $ac_link) 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -s conftest$ac_exeext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_lib_nsl_main=yes
5356 echo "$as_me: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 ac_cv_lib_nsl_main=no
5360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5361 LIBS=$ac_check_lib_save_LIBS
5363 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5364 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5365 if test $ac_cv_lib_nsl_main = yes; then
5366 cat >>confdefs.h <<_ACEOF
5367 #define HAVE_LIBNSL 1
5375 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5376 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5377 if test "${ac_cv_lib_socket_main+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 ac_check_lib_save_LIBS=$LIBS
5381 LIBS="-lsocket $LIBS"
5382 cat >conftest.$ac_ext <<_ACEOF
5383 #line $LINENO "configure"
5384 #include "confdefs.h"
5387 #ifdef F77_DUMMY_MAIN
5391 int F77_DUMMY_MAIN() { return 1; }
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_lib_socket_main=yes
5415 echo "$as_me: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 ac_cv_lib_socket_main=no
5419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5420 LIBS=$ac_check_lib_save_LIBS
5422 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5423 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5424 if test $ac_cv_lib_socket_main = yes; then
5425 cat >>confdefs.h <<_ACEOF
5426 #define HAVE_LIBSOCKET 1
5429 LIBS="-lsocket $LIBS"
5434 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5435 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5436 if test "${ac_cv_lib_ipc_main+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_check_lib_save_LIBS=$LIBS
5441 cat >conftest.$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 #include "confdefs.h"
5446 #ifdef F77_DUMMY_MAIN
5450 int F77_DUMMY_MAIN() { return 1; }
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_lib_ipc_main=yes
5474 echo "$as_me: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5476 ac_cv_lib_ipc_main=no
5478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5481 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5482 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5483 if test $ac_cv_lib_ipc_main = yes; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define HAVE_LIBIPC 1
5493 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5494 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5495 if test "${ac_cv_lib_IPC_main+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_check_lib_save_LIBS=$LIBS
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 #include "confdefs.h"
5505 #ifdef F77_DUMMY_MAIN
5509 int F77_DUMMY_MAIN() { return 1; }
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -s conftest$ac_exeext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_cv_lib_IPC_main=yes
5533 echo "$as_me: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5535 ac_cv_lib_IPC_main=no
5537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5538 LIBS=$ac_check_lib_save_LIBS
5540 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5541 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5542 if test $ac_cv_lib_IPC_main = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define HAVE_LIBIPC 1
5552 echo "$as_me:$LINENO: checking for main in -llc" >&5
5553 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5554 if test "${ac_cv_lib_lc_main+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 ac_check_lib_save_LIBS=$LIBS
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line $LINENO "configure"
5561 #include "confdefs.h"
5564 #ifdef F77_DUMMY_MAIN
5568 int F77_DUMMY_MAIN() { return 1; }
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -s conftest$ac_exeext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_cv_lib_lc_main=yes
5592 echo "$as_me: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5594 ac_cv_lib_lc_main=no
5596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5599 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5600 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5601 if test $ac_cv_lib_lc_main = yes; then
5602 cat >>confdefs.h <<_ACEOF
5603 #define HAVE_LIBLC 1
5611 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5612 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5613 if test "${ac_cv_lib_dld_main+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 ac_check_lib_save_LIBS=$LIBS
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 #include "confdefs.h"
5623 #ifdef F77_DUMMY_MAIN
5627 int F77_DUMMY_MAIN() { return 1; }
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -s conftest$ac_exeext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_cv_lib_dld_main=yes
5651 echo "$as_me: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5653 ac_cv_lib_dld_main=no
5655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5656 LIBS=$ac_check_lib_save_LIBS
5658 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5659 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5660 if test $ac_cv_lib_dld_main = yes; then
5661 cat >>confdefs.h <<_ACEOF
5662 #define HAVE_LIBDLD 1
5670 echo "$as_me:$LINENO: checking for main in -lld" >&5
5671 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5672 if test "${ac_cv_lib_ld_main+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 ac_check_lib_save_LIBS=$LIBS
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 #include "confdefs.h"
5682 #ifdef F77_DUMMY_MAIN
5686 int F77_DUMMY_MAIN() { return 1; }
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_lib_ld_main=yes
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 ac_cv_lib_ld_main=no
5714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715 LIBS=$ac_check_lib_save_LIBS
5717 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5718 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5719 if test $ac_cv_lib_ld_main = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define HAVE_LIBLD 1
5729 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5730 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5731 if test "${ac_cv_lib_compat_main+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 ac_check_lib_save_LIBS=$LIBS
5735 LIBS="-lcompat $LIBS"
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5741 #ifdef F77_DUMMY_MAIN
5745 int F77_DUMMY_MAIN() { return 1; }
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -s conftest$ac_exeext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_lib_compat_main=yes
5769 echo "$as_me: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5771 ac_cv_lib_compat_main=no
5773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5774 LIBS=$ac_check_lib_save_LIBS
5776 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5777 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5778 if test $ac_cv_lib_compat_main = yes; then
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_LIBCOMPAT 1
5783 LIBS="-lcompat $LIBS"
5788 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5789 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5790 if test "${ac_cv_lib_BSD_main+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 ac_check_lib_save_LIBS=$LIBS
5795 cat >conftest.$ac_ext <<_ACEOF
5796 #line $LINENO "configure"
5797 #include "confdefs.h"
5800 #ifdef F77_DUMMY_MAIN
5804 int F77_DUMMY_MAIN() { return 1; }
5814 rm -f conftest.$ac_objext conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816 (eval $ac_link) 2>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_lib_BSD_main=yes
5828 echo "$as_me: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5830 ac_cv_lib_BSD_main=no
5832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5833 LIBS=$ac_check_lib_save_LIBS
5835 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5836 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5837 if test $ac_cv_lib_BSD_main = yes; then
5838 cat >>confdefs.h <<_ACEOF
5839 #define HAVE_LIBBSD 1
5847 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5848 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5849 if test "${ac_cv_lib_gen_main+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 ac_check_lib_save_LIBS=$LIBS
5854 cat >conftest.$ac_ext <<_ACEOF
5855 #line $LINENO "configure"
5856 #include "confdefs.h"
5859 #ifdef F77_DUMMY_MAIN
5863 int F77_DUMMY_MAIN() { return 1; }
5873 rm -f conftest.$ac_objext conftest$ac_exeext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_lib_gen_main=yes
5887 echo "$as_me: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5889 ac_cv_lib_gen_main=no
5891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5892 LIBS=$ac_check_lib_save_LIBS
5894 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5895 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5896 if test $ac_cv_lib_gen_main = yes; then
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE_LIBGEN 1
5906 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5907 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5908 if test "${ac_cv_lib_PW_main+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_check_lib_save_LIBS=$LIBS
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 #include "confdefs.h"
5918 #ifdef F77_DUMMY_MAIN
5922 int F77_DUMMY_MAIN() { return 1; }
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -s conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 ac_cv_lib_PW_main=yes
5946 echo "$as_me: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 ac_cv_lib_PW_main=no
5950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5954 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5955 if test $ac_cv_lib_PW_main = yes; then
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_LIBPW 1
5965 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5966 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5967 if test "${ac_cv_lib_resolv_main+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lresolv $LIBS"
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 #include "confdefs.h"
5977 #ifdef F77_DUMMY_MAIN
5981 int F77_DUMMY_MAIN() { return 1; }
5991 rm -f conftest.$ac_objext conftest$ac_exeext
5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993 (eval $ac_link) 2>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try='test -s conftest$ac_exeext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_lib_resolv_main=yes
6005 echo "$as_me: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6007 ac_cv_lib_resolv_main=no
6009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6010 LIBS=$ac_check_lib_save_LIBS
6012 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6013 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6014 if test $ac_cv_lib_resolv_main = yes; then
6015 cat >>confdefs.h <<_ACEOF
6016 #define HAVE_LIBRESOLV 1
6019 LIBS="-lresolv $LIBS"
6025 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6026 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6027 if test "${ac_cv_lib_unix_main+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_check_lib_save_LIBS=$LIBS
6032 cat >conftest.$ac_ext <<_ACEOF
6033 #line $LINENO "configure"
6034 #include "confdefs.h"
6037 #ifdef F77_DUMMY_MAIN
6041 int F77_DUMMY_MAIN() { return 1; }
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053 (eval $ac_link) 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest$ac_exeext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_lib_unix_main=yes
6065 echo "$as_me: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6067 ac_cv_lib_unix_main=no
6069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_check_lib_save_LIBS
6072 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6073 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6074 if test $ac_cv_lib_unix_main = yes; then
6075 cat >>confdefs.h <<_ACEOF
6076 #define HAVE_LIBUNIX 1
6083 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6084 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6085 if test "${ac_cv_search_crypt+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_func_search_save_LIBS=$LIBS
6089 ac_cv_search_crypt=no
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 #include "confdefs.h"
6094 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6101 #ifdef F77_DUMMY_MAIN
6105 int F77_DUMMY_MAIN() { return 1; }
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_search_crypt="none required"
6129 echo "$as_me: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6133 if test "$ac_cv_search_crypt" = no; then
6134 for ac_lib in crypt; do
6135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6136 cat >conftest.$ac_ext <<_ACEOF
6137 #line $LINENO "configure"
6138 #include "confdefs.h"
6140 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6147 #ifdef F77_DUMMY_MAIN
6151 int F77_DUMMY_MAIN() { return 1; }
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163 (eval $ac_link) 2>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -s conftest$ac_exeext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_search_crypt="-l$ac_lib"
6176 echo "$as_me: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6182 LIBS=$ac_func_search_save_LIBS
6184 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6185 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6186 if test "$ac_cv_search_crypt" != no; then
6187 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6193 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6194 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6195 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 ac_check_lib_save_LIBS=$LIBS
6200 cat >conftest.$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 #include "confdefs.h"
6204 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6210 char __inet_ntoa ();
6211 #ifdef F77_DUMMY_MAIN
6215 int F77_DUMMY_MAIN() { return 1; }
6225 rm -f conftest.$ac_objext conftest$ac_exeext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227 (eval $ac_link) 2>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_cv_lib_bind___inet_ntoa=yes
6239 echo "$as_me: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6241 ac_cv_lib_bind___inet_ntoa=no
6243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6244 LIBS=$ac_check_lib_save_LIBS
6246 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6247 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6248 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250 #define HAVE_LIBBIND 1
6258 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6259 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6260 if test "${ac_cv_search_fdatasync+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 ac_func_search_save_LIBS=$LIBS
6264 ac_cv_search_fdatasync=no
6265 cat >conftest.$ac_ext <<_ACEOF
6266 #line $LINENO "configure"
6267 #include "confdefs.h"
6269 /* Override any gcc2 internal prototype to avoid an error. */
6273 /* We use char because int might match the return type of a gcc2
6274 builtin and then its argument prototype would still apply. */
6276 #ifdef F77_DUMMY_MAIN
6280 int F77_DUMMY_MAIN() { return 1; }
6290 rm -f conftest.$ac_objext conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_search_fdatasync="none required"
6304 echo "$as_me: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6308 if test "$ac_cv_search_fdatasync" = no; then
6309 for ac_lib in rt posix4; do
6310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6311 cat >conftest.$ac_ext <<_ACEOF
6312 #line $LINENO "configure"
6313 #include "confdefs.h"
6315 /* Override any gcc2 internal prototype to avoid an error. */
6319 /* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */
6322 #ifdef F77_DUMMY_MAIN
6326 int F77_DUMMY_MAIN() { return 1; }
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -s conftest$ac_exeext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_cv_search_fdatasync="-l$ac_lib"
6351 echo "$as_me: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6357 LIBS=$ac_func_search_save_LIBS
6359 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6360 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6361 if test "$ac_cv_search_fdatasync" != no; then
6362 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6367 if test "$with_readline" = yes; then
6369 echo "$as_me:$LINENO: checking for readline" >&5
6370 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6372 if test "${pgac_cv_check_readline+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 pgac_cv_check_readline=no
6376 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6377 for pgac_rllib in -lreadline -ledit ; do
6378 pgac_save_LIBS=$LIBS
6379 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6380 cat >conftest.$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6382 #include "confdefs.h"
6384 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6391 #ifdef F77_DUMMY_MAIN
6395 int F77_DUMMY_MAIN() { return 1; }
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try='test -s conftest$ac_exeext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6418 # NetBSD and OpenBSD have a broken linker that does not
6419 # recognize dependent libraries
6420 case $host_os in netbsd* | openbsd* )
6423 *) pgac_lib=" -lcurses" ;;
6427 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6431 echo "$as_me: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6435 LIBS=$pgac_save_LIBS
6438 LIBS=$pgac_save_LIBS
6442 if test "$pgac_cv_check_readline" != no ; then
6444 cat >>confdefs.h <<\_ACEOF
6445 #define HAVE_LIBREADLINE 1
6448 LIBS="$pgac_cv_check_readline $LIBS"
6449 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6450 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6452 echo "$as_me:$LINENO: result: no" >&5
6453 echo "${ECHO_T}no" >&6
6455 if test x"$pgac_cv_check_readline" = x"no"; then
6456 { { echo "$as_me:$LINENO: error: readline library not found
6457 Use --without-readline to disable readline support." >&5
6458 echo "$as_me: error: readline library not found
6459 Use --without-readline to disable readline support." >&2;}
6460 { (exit 1); exit 1; }; }
6464 if test "$with_zlib" = yes; then
6466 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6467 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6468 if test "${ac_cv_lib_z_inflate+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 ac_check_lib_save_LIBS=$LIBS
6473 cat >conftest.$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6477 /* Override any gcc2 internal prototype to avoid an error. */
6481 /* We use char because int might match the return type of a gcc2
6482 builtin and then its argument prototype would still apply. */
6484 #ifdef F77_DUMMY_MAIN
6488 int F77_DUMMY_MAIN() { return 1; }
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500 (eval $ac_link) 2>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -s conftest$ac_exeext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_cv_lib_z_inflate=yes
6512 echo "$as_me: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6514 ac_cv_lib_z_inflate=no
6516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6517 LIBS=$ac_check_lib_save_LIBS
6519 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6520 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6521 if test $ac_cv_lib_z_inflate = yes; then
6522 cat >>confdefs.h <<_ACEOF
6529 { { echo "$as_me:$LINENO: error: zlib library not found
6530 Use --without-zlib to disable zlib support." >&5
6531 echo "$as_me: error: zlib library not found
6532 Use --without-zlib to disable zlib support." >&2;}
6533 { (exit 1); exit 1; }; }
6538 if test "$with_krb4" = yes ; then
6540 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6541 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6542 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 ac_check_lib_save_LIBS=$LIBS
6547 cat >conftest.$ac_ext <<_ACEOF
6548 #line $LINENO "configure"
6549 #include "confdefs.h"
6551 /* Override any gcc2 internal prototype to avoid an error. */
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6557 char des_encrypt ();
6558 #ifdef F77_DUMMY_MAIN
6562 int F77_DUMMY_MAIN() { return 1; }
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -s conftest$ac_exeext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_lib_des_des_encrypt=yes
6586 echo "$as_me: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 ac_cv_lib_des_des_encrypt=no
6590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6591 LIBS=$ac_check_lib_save_LIBS
6593 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6594 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6595 if test $ac_cv_lib_des_des_encrypt = yes; then
6596 cat >>confdefs.h <<_ACEOF
6597 #define HAVE_LIBDES 1
6603 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6604 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6605 { (exit 1); exit 1; }; }
6609 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6610 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6611 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 ac_check_lib_save_LIBS=$LIBS
6616 cat >conftest.$ac_ext <<_ACEOF
6617 #line $LINENO "configure"
6618 #include "confdefs.h"
6620 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6626 char krb_sendauth ();
6627 #ifdef F77_DUMMY_MAIN
6631 int F77_DUMMY_MAIN() { return 1; }
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -s conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_cv_lib_krb_krb_sendauth=yes
6655 echo "$as_me: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6657 ac_cv_lib_krb_krb_sendauth=no
6659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6660 LIBS=$ac_check_lib_save_LIBS
6662 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6663 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6664 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6665 cat >>confdefs.h <<_ACEOF
6666 #define HAVE_LIBKRB 1
6672 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6673 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6674 { (exit 1); exit 1; }; }
6679 if test "$with_krb5" = yes ; then
6680 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6681 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6682 if test "${ac_cv_search_com_err+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 ac_func_search_save_LIBS=$LIBS
6686 ac_cv_search_com_err=no
6687 cat >conftest.$ac_ext <<_ACEOF
6688 #line $LINENO "configure"
6689 #include "confdefs.h"
6691 /* Override any gcc2 internal prototype to avoid an error. */
6695 /* We use char because int might match the return type of a gcc2
6696 builtin and then its argument prototype would still apply. */
6698 #ifdef F77_DUMMY_MAIN
6702 int F77_DUMMY_MAIN() { return 1; }
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -s conftest$ac_exeext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_search_com_err="none required"
6726 echo "$as_me: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6730 if test "$ac_cv_search_com_err" = no; then
6731 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6733 cat >conftest.$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6735 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6744 #ifdef F77_DUMMY_MAIN
6748 int F77_DUMMY_MAIN() { return 1; }
6758 rm -f conftest.$ac_objext conftest$ac_exeext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest$ac_exeext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_search_com_err="-l$ac_lib"
6773 echo "$as_me: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6779 LIBS=$ac_func_search_save_LIBS
6781 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6782 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6783 if test "$ac_cv_search_com_err" != no; then
6784 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6787 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6788 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6789 { (exit 1); exit 1; }; }
6792 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6793 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6794 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_func_search_save_LIBS=$LIBS
6798 ac_cv_search_krb5_encrypt=no
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6809 char krb5_encrypt ();
6810 #ifdef F77_DUMMY_MAIN
6814 int F77_DUMMY_MAIN() { return 1; }
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -s conftest$ac_exeext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_cv_search_krb5_encrypt="none required"
6838 echo "$as_me: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6842 if test "$ac_cv_search_krb5_encrypt" = no; then
6843 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6845 cat >conftest.$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 #include "confdefs.h"
6849 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6855 char krb5_encrypt ();
6856 #ifdef F77_DUMMY_MAIN
6860 int F77_DUMMY_MAIN() { return 1; }
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872 (eval $ac_link) 2>&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_search_krb5_encrypt="-l$ac_lib"
6885 echo "$as_me: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6891 LIBS=$ac_func_search_save_LIBS
6893 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6894 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6895 if test "$ac_cv_search_krb5_encrypt" != no; then
6896 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6899 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6900 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6901 { (exit 1); exit 1; }; }
6904 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6905 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6906 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_func_search_save_LIBS=$LIBS
6910 ac_cv_search_krb5_sendauth=no
6911 cat >conftest.$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6913 #include "confdefs.h"
6915 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6921 char krb5_sendauth ();
6922 #ifdef F77_DUMMY_MAIN
6926 int F77_DUMMY_MAIN() { return 1; }
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -s conftest$ac_exeext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_search_krb5_sendauth="none required"
6950 echo "$as_me: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954 if test "$ac_cv_search_krb5_sendauth" = no; then
6955 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6957 cat >conftest.$ac_ext <<_ACEOF
6958 #line $LINENO "configure"
6959 #include "confdefs.h"
6961 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6967 char krb5_sendauth ();
6968 #ifdef F77_DUMMY_MAIN
6972 int F77_DUMMY_MAIN() { return 1; }
6982 rm -f conftest.$ac_objext conftest$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -s conftest$ac_exeext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 ac_cv_search_krb5_sendauth="-l$ac_lib"
6997 echo "$as_me: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
7000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7003 LIBS=$ac_func_search_save_LIBS
7005 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7006 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7007 if test "$ac_cv_search_krb5_sendauth" != no; then
7008 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7011 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7012 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7013 { (exit 1); exit 1; }; }
7018 if test "$with_openssl" = yes ; then
7020 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7021 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7022 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 ac_check_lib_save_LIBS=$LIBS
7026 LIBS="-lcrypto $LIBS"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line $LINENO "configure"
7029 #include "confdefs.h"
7031 /* Override any gcc2 internal prototype to avoid an error. */
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7037 char CRYPTO_new_ex_data ();
7038 #ifdef F77_DUMMY_MAIN
7042 int F77_DUMMY_MAIN() { return 1; }
7047 CRYPTO_new_ex_data ();
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054 (eval $ac_link) 2>&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -s conftest$ac_exeext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7066 echo "$as_me: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7074 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7075 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7076 cat >>confdefs.h <<_ACEOF
7077 #define HAVE_LIBCRYPTO 1
7080 LIBS="-lcrypto $LIBS"
7083 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7084 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7085 { (exit 1); exit 1; }; }
7089 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7090 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7091 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_check_lib_save_LIBS=$LIBS
7096 cat >conftest.$ac_ext <<_ACEOF
7097 #line $LINENO "configure"
7098 #include "confdefs.h"
7100 /* Override any gcc2 internal prototype to avoid an error. */
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7106 char SSL_library_init ();
7107 #ifdef F77_DUMMY_MAIN
7111 int F77_DUMMY_MAIN() { return 1; }
7116 SSL_library_init ();
7121 rm -f conftest.$ac_objext conftest$ac_exeext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -s conftest$ac_exeext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_lib_ssl_SSL_library_init=yes
7135 echo "$as_me: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7137 ac_cv_lib_ssl_SSL_library_init=no
7139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7140 LIBS=$ac_check_lib_save_LIBS
7142 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7143 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7144 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7145 cat >>confdefs.h <<_ACEOF
7146 #define HAVE_LIBSSL 1
7152 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7153 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7154 { (exit 1); exit 1; }; }
7159 if test "$with_pam" = yes ; then
7161 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7162 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7163 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_check_lib_save_LIBS=$LIBS
7168 cat >conftest.$ac_ext <<_ACEOF
7169 #line $LINENO "configure"
7170 #include "confdefs.h"
7172 /* Override any gcc2 internal prototype to avoid an error. */
7176 /* We use char because int might match the return type of a gcc2
7177 builtin and then its argument prototype would still apply. */
7179 #ifdef F77_DUMMY_MAIN
7183 int F77_DUMMY_MAIN() { return 1; }
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_lib_pam_pam_start=yes
7207 echo "$as_me: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 ac_cv_lib_pam_pam_start=no
7211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7212 LIBS=$ac_check_lib_save_LIBS
7214 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7215 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7216 if test $ac_cv_lib_pam_pam_start = yes; then
7217 cat >>confdefs.h <<_ACEOF
7218 #define HAVE_LIBPAM 1
7224 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7225 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7226 { (exit 1); exit 1; }; }
7235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7237 if test "${ac_cv_header_stdc+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line $LINENO "configure"
7242 #include "confdefs.h"
7249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7252 egrep -v '^ *\+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } >/dev/null; then
7257 if test -s conftest.err; then
7258 ac_cpp_err=$ac_c_preproc_warn_flag
7265 if test -z "$ac_cpp_err"; then
7266 ac_cv_header_stdc=yes
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_cv_header_stdc=no
7272 rm -f conftest.err conftest.$ac_ext
7274 if test $ac_cv_header_stdc = yes; then
7275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276 cat >conftest.$ac_ext <<_ACEOF
7277 #line $LINENO "configure"
7278 #include "confdefs.h"
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283 egrep "memchr" >/dev/null 2>&1; then
7286 ac_cv_header_stdc=no
7292 if test $ac_cv_header_stdc = yes; then
7293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7294 cat >conftest.$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7296 #include "confdefs.h"
7300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7301 egrep "free" >/dev/null 2>&1; then
7304 ac_cv_header_stdc=no
7310 if test $ac_cv_header_stdc = yes; then
7311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7312 if test "$cross_compiling" = yes; then
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 #include "confdefs.h"
7319 #if ((' ' & 0x0FF) == 0x020)
7320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7323 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7324 || ('j' <= (c) && (c) <= 'r') \
7325 || ('s' <= (c) && (c) <= 'z'))
7326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7334 for (i = 0; i < 256; i++)
7335 if (XOR (islower (i), ISLOWER (i))
7336 || toupper (i) != TOUPPER (i))
7341 rm -f conftest$ac_exeext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343 (eval $ac_link) 2>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7354 echo "$as_me: program exited with status $ac_status" >&5
7355 echo "$as_me: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 ac_cv_header_stdc=no
7360 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7365 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7366 if test $ac_cv_header_stdc = yes; then
7368 cat >>confdefs.h <<\_ACEOF
7369 #define STDC_HEADERS 1
7374 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7385 inttypes.h stdint.h unistd.h
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 cat >conftest.$ac_ext <<_ACEOF
7394 #line $LINENO "configure"
7395 #include "confdefs.h"
7396 $ac_includes_default
7398 #include <$ac_header>
7400 rm -f conftest.$ac_objext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402 (eval $ac_compile) 2>&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 eval "$as_ac_Header=yes"
7414 echo "$as_me: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 eval "$as_ac_Header=no"
7418 rm -f conftest.$ac_objext conftest.$ac_ext
7420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7423 cat >>confdefs.h <<_ACEOF
7424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7450 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
7452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7454 echo "$as_me:$LINENO: checking for $ac_header" >&5
7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7462 # Is the header compilable?
7463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7465 cat >conftest.$ac_ext <<_ACEOF
7466 #line $LINENO "configure"
7467 #include "confdefs.h"
7468 $ac_includes_default
7469 #include <$ac_header>
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473 (eval $ac_compile) 2>&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_header_compiler=yes
7485 echo "$as_me: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7487 ac_header_compiler=no
7489 rm -f conftest.$ac_objext conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491 echo "${ECHO_T}$ac_header_compiler" >&6
7493 # Is the header present?
7494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7498 #include "confdefs.h"
7499 #include <$ac_header>
7501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7504 egrep -v '^ *\+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } >/dev/null; then
7509 if test -s conftest.err; then
7510 ac_cpp_err=$ac_c_preproc_warn_flag
7517 if test -z "$ac_cpp_err"; then
7518 ac_header_preproc=yes
7520 echo "$as_me: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 ac_header_preproc=no
7524 rm -f conftest.err conftest.$ac_ext
7525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7526 echo "${ECHO_T}$ac_header_preproc" >&6
7528 # So? What about this header?
7529 case $ac_header_compiler:$ac_header_preproc in
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7543 echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 eval "$as_ac_Header=$ac_header_preproc"
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7555 cat >>confdefs.h <<_ACEOF
7556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7564 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7565 # netinet/in.h is included first.
7567 for ac_header in netinet/in.h
7569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571 echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7579 # Is the header compilable?
7580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7582 cat >conftest.$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7584 #include "confdefs.h"
7585 $ac_includes_default
7586 #include <$ac_header>
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_header_compiler=yes
7602 echo "$as_me: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 ac_header_compiler=no
7606 rm -f conftest.$ac_objext conftest.$ac_ext
7607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7608 echo "${ECHO_T}$ac_header_compiler" >&6
7610 # Is the header present?
7611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7613 cat >conftest.$ac_ext <<_ACEOF
7614 #line $LINENO "configure"
7615 #include "confdefs.h"
7616 #include <$ac_header>
7618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7621 egrep -v '^ *\+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } >/dev/null; then
7626 if test -s conftest.err; then
7627 ac_cpp_err=$ac_c_preproc_warn_flag
7634 if test -z "$ac_cpp_err"; then
7635 ac_header_preproc=yes
7637 echo "$as_me: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7639 ac_header_preproc=no
7641 rm -f conftest.err conftest.$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7643 echo "${ECHO_T}$ac_header_preproc" >&6
7645 # So? What about this header?
7646 case $ac_header_compiler:$ac_header_preproc in
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7660 echo "$as_me:$LINENO: checking for $ac_header" >&5
7661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 eval "$as_ac_Header=$ac_header_preproc"
7667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681 for ac_header in netinet/tcp.h
7683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 echo "$as_me:$LINENO: checking for $ac_header" >&5
7685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 #include "confdefs.h"
7692 $ac_includes_default
7693 #ifdef HAVE_NETINET_IN_H
7694 #include <netinet/in.h>
7698 #include <$ac_header>
7700 rm -f conftest.$ac_objext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702 (eval $ac_compile) 2>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -s conftest.$ac_objext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 eval "$as_ac_Header=yes"
7714 echo "$as_me: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7716 eval "$as_ac_Header=no"
7718 rm -f conftest.$ac_objext conftest.$ac_ext
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7723 cat >>confdefs.h <<_ACEOF
7724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7732 if test "$with_readline" = yes; then
7734 for ac_header in readline/readline.h
7736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738 echo "$as_me:$LINENO: checking for $ac_header" >&5
7739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7746 # Is the header compilable?
7747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 #include "confdefs.h"
7752 $ac_includes_default
7753 #include <$ac_header>
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -s conftest.$ac_objext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_header_compiler=yes
7769 echo "$as_me: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 ac_header_compiler=no
7773 rm -f conftest.$ac_objext conftest.$ac_ext
7774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7775 echo "${ECHO_T}$ac_header_compiler" >&6
7777 # Is the header present?
7778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7780 cat >conftest.$ac_ext <<_ACEOF
7781 #line $LINENO "configure"
7782 #include "confdefs.h"
7783 #include <$ac_header>
7785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7788 egrep -v '^ *\+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } >/dev/null; then
7793 if test -s conftest.err; then
7794 ac_cpp_err=$ac_c_preproc_warn_flag
7801 if test -z "$ac_cpp_err"; then
7802 ac_header_preproc=yes
7804 echo "$as_me: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7806 ac_header_preproc=no
7808 rm -f conftest.err conftest.$ac_ext
7809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7810 echo "${ECHO_T}$ac_header_preproc" >&6
7812 # So? What about this header?
7813 case $ac_header_compiler:$ac_header_preproc in
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7827 echo "$as_me:$LINENO: checking for $ac_header" >&5
7828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 eval "$as_ac_Header=$ac_header_preproc"
7834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7839 cat >>confdefs.h <<_ACEOF
7840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7845 for ac_header in readline.h
7847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849 echo "$as_me:$LINENO: checking for $ac_header" >&5
7850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 # Is the header compilable?
7858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7862 #include "confdefs.h"
7863 $ac_includes_default
7864 #include <$ac_header>
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868 (eval $ac_compile) 2>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -s conftest.$ac_objext'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 ac_header_compiler=yes
7880 echo "$as_me: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 ac_header_compiler=no
7884 rm -f conftest.$ac_objext conftest.$ac_ext
7885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7886 echo "${ECHO_T}$ac_header_compiler" >&6
7888 # Is the header present?
7889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line $LINENO "configure"
7893 #include "confdefs.h"
7894 #include <$ac_header>
7896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7899 egrep -v '^ *\+' conftest.er1 >conftest.err
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } >/dev/null; then
7904 if test -s conftest.err; then
7905 ac_cpp_err=$ac_c_preproc_warn_flag
7912 if test -z "$ac_cpp_err"; then
7913 ac_header_preproc=yes
7915 echo "$as_me: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7917 ac_header_preproc=no
7919 rm -f conftest.err conftest.$ac_ext
7920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7921 echo "${ECHO_T}$ac_header_preproc" >&6
7923 # So? What about this header?
7924 case $ac_header_compiler:$ac_header_preproc in
7926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7938 echo "$as_me:$LINENO: checking for $ac_header" >&5
7939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 eval "$as_ac_Header=$ac_header_preproc"
7945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7950 cat >>confdefs.h <<_ACEOF
7951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7955 { { echo "$as_me:$LINENO: error: readline header not found
7956 Use --without-readline to disable readline support." >&5
7957 echo "$as_me: error: readline header not found
7958 Use --without-readline to disable readline support." >&2;}
7959 { (exit 1); exit 1; }; }
7969 for ac_header in readline/history.h
7971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7973 echo "$as_me:$LINENO: checking for $ac_header" >&5
7974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7981 # Is the header compilable?
7982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 #include "confdefs.h"
7987 $ac_includes_default
7988 #include <$ac_header>
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_header_compiler=yes
8004 echo "$as_me: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8006 ac_header_compiler=no
8008 rm -f conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010 echo "${ECHO_T}$ac_header_compiler" >&6
8012 # Is the header present?
8013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 #include "confdefs.h"
8018 #include <$ac_header>
8020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8023 egrep -v '^ *\+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } >/dev/null; then
8028 if test -s conftest.err; then
8029 ac_cpp_err=$ac_c_preproc_warn_flag
8036 if test -z "$ac_cpp_err"; then
8037 ac_header_preproc=yes
8039 echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 ac_header_preproc=no
8043 rm -f conftest.err conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8045 echo "${ECHO_T}$ac_header_preproc" >&6
8047 # So? What about this header?
8048 case $ac_header_compiler:$ac_header_preproc in
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8062 echo "$as_me:$LINENO: checking for $ac_header" >&5
8063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 eval "$as_ac_Header=$ac_header_preproc"
8069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 for ac_header in history.h
8082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084 echo "$as_me:$LINENO: checking for $ac_header" >&5
8085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092 # Is the header compilable?
8093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8095 cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8097 #include "confdefs.h"
8098 $ac_includes_default
8099 #include <$ac_header>
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_header_compiler=yes
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 ac_header_compiler=no
8119 rm -f conftest.$ac_objext conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121 echo "${ECHO_T}$ac_header_compiler" >&6
8123 # Is the header present?
8124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8128 #include "confdefs.h"
8129 #include <$ac_header>
8131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8134 egrep -v '^ *\+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } >/dev/null; then
8139 if test -s conftest.err; then
8140 ac_cpp_err=$ac_c_preproc_warn_flag
8147 if test -z "$ac_cpp_err"; then
8148 ac_header_preproc=yes
8150 echo "$as_me: failed program was:" >&5
8151 cat conftest.$ac_ext >&5
8152 ac_header_preproc=no
8154 rm -f conftest.err conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8156 echo "${ECHO_T}$ac_header_preproc" >&6
8158 # So? What about this header?
8159 case $ac_header_compiler:$ac_header_preproc in
8161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8173 echo "$as_me:$LINENO: checking for $ac_header" >&5
8174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 eval "$as_ac_Header=$ac_header_preproc"
8180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8185 cat >>confdefs.h <<_ACEOF
8186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8190 { { echo "$as_me:$LINENO: error: history header not found
8191 Use --without-readline to disable readline support." >&5
8192 echo "$as_me: error: history header not found
8193 Use --without-readline to disable readline support." >&2;}
8194 { (exit 1); exit 1; }; }
8205 if test "$with_zlib" = yes; then
8206 if test "${ac_cv_header_zlib_h+set}" = set; then
8207 echo "$as_me:$LINENO: checking for zlib.h" >&5
8208 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8209 if test "${ac_cv_header_zlib_h+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8213 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8215 # Is the header compilable?
8216 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8217 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8220 #include "confdefs.h"
8221 $ac_includes_default
8224 rm -f conftest.$ac_objext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226 (eval $ac_compile) 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -s conftest.$ac_objext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_header_compiler=yes
8238 echo "$as_me: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 ac_header_compiler=no
8242 rm -f conftest.$ac_objext conftest.$ac_ext
8243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8244 echo "${ECHO_T}$ac_header_compiler" >&6
8246 # Is the header present?
8247 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8248 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8249 cat >conftest.$ac_ext <<_ACEOF
8250 #line $LINENO "configure"
8251 #include "confdefs.h"
8254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8257 egrep -v '^ *\+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } >/dev/null; then
8262 if test -s conftest.err; then
8263 ac_cpp_err=$ac_c_preproc_warn_flag
8270 if test -z "$ac_cpp_err"; then
8271 ac_header_preproc=yes
8273 echo "$as_me: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8275 ac_header_preproc=no
8277 rm -f conftest.err conftest.$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8279 echo "${ECHO_T}$ac_header_preproc" >&6
8281 # So? What about this header?
8282 case $ac_header_compiler:$ac_header_preproc in
8284 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8285 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8286 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8287 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8289 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8290 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8291 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8292 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8294 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8296 echo "$as_me:$LINENO: checking for zlib.h" >&5
8297 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8298 if test "${ac_cv_header_zlib_h+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_cv_header_zlib_h=$ac_header_preproc
8303 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8304 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8307 if test $ac_cv_header_zlib_h = yes; then
8310 { { echo "$as_me:$LINENO: error: zlib header not found
8311 Use --without-zlib to disable zlib support." >&5
8312 echo "$as_me: error: zlib header not found
8313 Use --without-zlib to disable zlib support." >&2;}
8314 { (exit 1); exit 1; }; }
8320 if test "$with_krb4" = yes ; then
8321 if test "${ac_cv_header_krb_h+set}" = set; then
8322 echo "$as_me:$LINENO: checking for krb.h" >&5
8323 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8324 if test "${ac_cv_header_krb_h+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8330 # Is the header compilable?
8331 echo "$as_me:$LINENO: checking krb.h usability" >&5
8332 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8334 #line $LINENO "configure"
8335 #include "confdefs.h"
8336 $ac_includes_default
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -s conftest.$ac_objext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_header_compiler=yes
8353 echo "$as_me: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8355 ac_header_compiler=no
8357 rm -f conftest.$ac_objext conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8359 echo "${ECHO_T}$ac_header_compiler" >&6
8361 # Is the header present?
8362 echo "$as_me:$LINENO: checking krb.h presence" >&5
8363 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8366 #include "confdefs.h"
8369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8372 egrep -v '^ *\+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } >/dev/null; then
8377 if test -s conftest.err; then
8378 ac_cpp_err=$ac_c_preproc_warn_flag
8385 if test -z "$ac_cpp_err"; then
8386 ac_header_preproc=yes
8388 echo "$as_me: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 ac_header_preproc=no
8392 rm -f conftest.err conftest.$ac_ext
8393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8394 echo "${ECHO_T}$ac_header_preproc" >&6
8396 # So? What about this header?
8397 case $ac_header_compiler:$ac_header_preproc in
8399 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8400 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8401 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8404 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8405 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8407 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8408 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8409 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8411 echo "$as_me:$LINENO: checking for krb.h" >&5
8412 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8413 if test "${ac_cv_header_krb_h+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_cv_header_krb_h=$ac_header_preproc
8418 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8419 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8422 if test $ac_cv_header_krb_h = yes; then
8425 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8426 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8427 { (exit 1); exit 1; }; }
8433 if test "$with_krb5" = yes ; then
8434 if test "${ac_cv_header_krb5_h+set}" = set; then
8435 echo "$as_me:$LINENO: checking for krb5.h" >&5
8436 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8437 if test "${ac_cv_header_krb5_h+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8441 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8443 # Is the header compilable?
8444 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8445 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8447 #line $LINENO "configure"
8448 #include "confdefs.h"
8449 $ac_includes_default
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_header_compiler=yes
8466 echo "$as_me: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8468 ac_header_compiler=no
8470 rm -f conftest.$ac_objext conftest.$ac_ext
8471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8472 echo "${ECHO_T}$ac_header_compiler" >&6
8474 # Is the header present?
8475 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8476 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8478 #line $LINENO "configure"
8479 #include "confdefs.h"
8482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8485 egrep -v '^ *\+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } >/dev/null; then
8490 if test -s conftest.err; then
8491 ac_cpp_err=$ac_c_preproc_warn_flag
8498 if test -z "$ac_cpp_err"; then
8499 ac_header_preproc=yes
8501 echo "$as_me: failed program was:" >&5
8502 cat conftest.$ac_ext >&5
8503 ac_header_preproc=no
8505 rm -f conftest.err conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507 echo "${ECHO_T}$ac_header_preproc" >&6
8509 # So? What about this header?
8510 case $ac_header_compiler:$ac_header_preproc in
8512 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8513 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8515 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8517 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8518 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8520 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8522 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8524 echo "$as_me:$LINENO: checking for krb5.h" >&5
8525 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8526 if test "${ac_cv_header_krb5_h+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 ac_cv_header_krb5_h=$ac_header_preproc
8531 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8532 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8535 if test $ac_cv_header_krb5_h = yes; then
8538 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8539 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8540 { (exit 1); exit 1; }; }
8544 if test "${ac_cv_header_com_err_h+set}" = set; then
8545 echo "$as_me:$LINENO: checking for com_err.h" >&5
8546 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8547 if test "${ac_cv_header_com_err_h+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8553 # Is the header compilable?
8554 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8555 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8556 cat >conftest.$ac_ext <<_ACEOF
8557 #line $LINENO "configure"
8558 #include "confdefs.h"
8559 $ac_includes_default
8560 #include <com_err.h>
8562 rm -f conftest.$ac_objext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564 (eval $ac_compile) 2>&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -s conftest.$ac_objext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_header_compiler=yes
8576 echo "$as_me: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 ac_header_compiler=no
8580 rm -f conftest.$ac_objext conftest.$ac_ext
8581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8582 echo "${ECHO_T}$ac_header_compiler" >&6
8584 # Is the header present?
8585 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8586 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line $LINENO "configure"
8589 #include "confdefs.h"
8590 #include <com_err.h>
8592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8595 egrep -v '^ *\+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } >/dev/null; then
8600 if test -s conftest.err; then
8601 ac_cpp_err=$ac_c_preproc_warn_flag
8608 if test -z "$ac_cpp_err"; then
8609 ac_header_preproc=yes
8611 echo "$as_me: failed program was:" >&5
8612 cat conftest.$ac_ext >&5
8613 ac_header_preproc=no
8615 rm -f conftest.err conftest.$ac_ext
8616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8617 echo "${ECHO_T}$ac_header_preproc" >&6
8619 # So? What about this header?
8620 case $ac_header_compiler:$ac_header_preproc in
8622 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8623 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8625 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8627 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8628 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8629 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8630 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8632 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8634 echo "$as_me:$LINENO: checking for com_err.h" >&5
8635 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8636 if test "${ac_cv_header_com_err_h+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 ac_cv_header_com_err_h=$ac_header_preproc
8641 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8642 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8645 if test $ac_cv_header_com_err_h = yes; then
8648 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8649 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8650 { (exit 1); exit 1; }; }
8656 if test "$with_openssl" = yes ; then
8657 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8658 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8659 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8660 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8664 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8666 # Is the header compilable?
8667 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8668 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 #line $LINENO "configure"
8671 #include "confdefs.h"
8672 $ac_includes_default
8673 #include <openssl/ssl.h>
8675 rm -f conftest.$ac_objext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677 (eval $ac_compile) 2>&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -s conftest.$ac_objext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 ac_header_compiler=yes
8689 echo "$as_me: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8691 ac_header_compiler=no
8693 rm -f conftest.$ac_objext conftest.$ac_ext
8694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8695 echo "${ECHO_T}$ac_header_compiler" >&6
8697 # Is the header present?
8698 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8699 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8701 #line $LINENO "configure"
8702 #include "confdefs.h"
8703 #include <openssl/ssl.h>
8705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8708 egrep -v '^ *\+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } >/dev/null; then
8713 if test -s conftest.err; then
8714 ac_cpp_err=$ac_c_preproc_warn_flag
8721 if test -z "$ac_cpp_err"; then
8722 ac_header_preproc=yes
8724 echo "$as_me: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 ac_header_preproc=no
8728 rm -f conftest.err conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730 echo "${ECHO_T}$ac_header_preproc" >&6
8732 # So? What about this header?
8733 case $ac_header_compiler:$ac_header_preproc in
8735 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8736 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8738 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8740 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8741 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8743 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8745 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8747 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8748 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8749 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8754 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8755 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8758 if test $ac_cv_header_openssl_ssl_h = yes; then
8761 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8762 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8763 { (exit 1); exit 1; }; }
8767 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8768 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8769 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8770 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8774 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8776 # Is the header compilable?
8777 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8778 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 $ac_includes_default
8783 #include <openssl/err.h>
8785 rm -f conftest.$ac_objext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787 (eval $ac_compile) 2>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -s conftest.$ac_objext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8797 ac_header_compiler=yes
8799 echo "$as_me: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 ac_header_compiler=no
8803 rm -f conftest.$ac_objext conftest.$ac_ext
8804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8805 echo "${ECHO_T}$ac_header_compiler" >&6
8807 # Is the header present?
8808 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8809 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8813 #include <openssl/err.h>
8815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8818 egrep -v '^ *\+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } >/dev/null; then
8823 if test -s conftest.err; then
8824 ac_cpp_err=$ac_c_preproc_warn_flag
8831 if test -z "$ac_cpp_err"; then
8832 ac_header_preproc=yes
8834 echo "$as_me: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 ac_header_preproc=no
8838 rm -f conftest.err conftest.$ac_ext
8839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8840 echo "${ECHO_T}$ac_header_preproc" >&6
8842 # So? What about this header?
8843 case $ac_header_compiler:$ac_header_preproc in
8845 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8846 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8850 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8851 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8853 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8855 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8857 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8858 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8859 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_cv_header_openssl_err_h=$ac_header_preproc
8864 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8865 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8868 if test $ac_cv_header_openssl_err_h = yes; then
8871 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8872 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8873 { (exit 1); exit 1; }; }
8879 if test "$with_pam" = yes ; then
8880 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8881 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8882 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8887 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8889 # Is the header compilable?
8890 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8891 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8893 #line $LINENO "configure"
8894 #include "confdefs.h"
8895 $ac_includes_default
8896 #include <security/pam_appl.h>
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_header_compiler=yes
8912 echo "$as_me: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 ac_header_compiler=no
8916 rm -f conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918 echo "${ECHO_T}$ac_header_compiler" >&6
8920 # Is the header present?
8921 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8922 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8923 cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <security/pam_appl.h>
8928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8931 egrep -v '^ *\+' conftest.er1 >conftest.err
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } >/dev/null; then
8936 if test -s conftest.err; then
8937 ac_cpp_err=$ac_c_preproc_warn_flag
8944 if test -z "$ac_cpp_err"; then
8945 ac_header_preproc=yes
8947 echo "$as_me: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8949 ac_header_preproc=no
8951 rm -f conftest.err conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8953 echo "${ECHO_T}$ac_header_preproc" >&6
8955 # So? What about this header?
8956 case $ac_header_compiler:$ac_header_preproc in
8958 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8959 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8961 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8963 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8964 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8966 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8970 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8971 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8972 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8977 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8978 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8981 if test $ac_cv_header_security_pam_appl_h = yes; then
8984 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8985 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8986 { (exit 1); exit 1; }; }
8994 ## Types, structures, compiler characteristics
8997 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8998 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8999 if test "${ac_cv_c_const+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9004 #include "confdefs.h"
9006 #ifdef F77_DUMMY_MAIN
9010 int F77_DUMMY_MAIN() { return 1; }
9015 /* FIXME: Include the comments suggested by Paul. */
9017 /* Ultrix mips cc rejects this. */
9018 typedef int charset[2];
9020 /* SunOS 4.1.1 cc rejects this. */
9021 char const *const *ccp;
9023 /* NEC SVR4.0.2 mips cc rejects this. */
9024 struct point {int x, y;};
9025 static struct point const zero = {0,0};
9026 /* AIX XL C 1.02.0.0 rejects this.
9027 It does not let you subtract one const X* pointer from another in
9028 an arm of an if-expression whose if-part is not a constant
9030 const char *g = "string";
9031 ccp = &g + (g ? g-g : 0);
9032 /* HPUX 7.0 cc rejects these. */
9035 ccp = (char const *const *) p;
9036 { /* SCO 3.2v4 cc rejects this. */
9038 char const *s = 0 ? (char *) 0 : (char const *) 0;
9042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9044 const int *foo = &x[0];
9047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9048 typedef const int *iptr;
9052 { /* AIX XL C 1.02.0.0 rejects this saying
9053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9054 struct s { int j; const int *ap[3]; };
9055 struct s *b; b->j = 5;
9057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068 (eval $ac_compile) 2>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -s conftest.$ac_objext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9080 echo "$as_me: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9084 rm -f conftest.$ac_objext conftest.$ac_ext
9086 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9087 echo "${ECHO_T}$ac_cv_c_const" >&6
9088 if test $ac_cv_c_const = no; then
9090 cat >>confdefs.h <<\_ACEOF
9096 echo "$as_me:$LINENO: checking for inline" >&5
9097 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9098 if test "${ac_cv_c_inline+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 for ac_kw in inline __inline__ __inline; do
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9107 static $ac_kw int static_foo () {return 0; }
9108 $ac_kw int foo () {return 0; }
9112 rm -f conftest.$ac_objext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114 (eval $ac_compile) 2>&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
9118 { ac_try='test -s conftest.$ac_objext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 ac_cv_c_inline=$ac_kw; break
9126 echo "$as_me: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9129 rm -f conftest.$ac_objext conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9134 echo "${ECHO_T}$ac_cv_c_inline" >&6
9135 case $ac_cv_c_inline in
9138 cat >>confdefs.h <<\_ACEOF
9142 *) cat >>confdefs.h <<_ACEOF
9143 #define inline $ac_cv_c_inline
9148 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9149 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9150 if test "${ac_cv_c_stringize+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 #include "confdefs.h"
9158 char *s = x(teststring);
9160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161 egrep "#teststring" >/dev/null 2>&1; then
9162 ac_cv_c_stringize=no
9164 ac_cv_c_stringize=yes
9169 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9170 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9171 if test $ac_cv_c_stringize = yes; then
9173 cat >>confdefs.h <<\_ACEOF
9174 #define HAVE_STRINGIZE 1
9179 echo "$as_me:$LINENO: checking for signed types" >&5
9180 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9181 if test "${pgac_cv_c_signed+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 cat >conftest.$ac_ext <<_ACEOF
9185 #line $LINENO "configure"
9186 #include "confdefs.h"
9188 #ifdef F77_DUMMY_MAIN
9192 int F77_DUMMY_MAIN() { return 1; }
9197 signed char c; signed short s; signed int i;
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204 (eval $ac_compile) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 pgac_cv_c_signed=yes
9216 echo "$as_me: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9220 rm -f conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9223 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9224 if test x"$pgac_cv_c_signed" = xno ; then
9226 cat >>confdefs.h <<\_ACEOF
9231 echo "$as_me:$LINENO: checking for working volatile" >&5
9232 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9233 if test "${ac_cv_c_volatile+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 #include "confdefs.h"
9240 #ifdef F77_DUMMY_MAIN
9244 int F77_DUMMY_MAIN() { return 1; }
9256 rm -f conftest.$ac_objext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_cv_c_volatile=yes
9270 echo "$as_me: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9277 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9278 if test $ac_cv_c_volatile = no; then
9280 cat >>confdefs.h <<\_ACEOF
9286 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9287 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9288 if test "${ac_cv_struct_tm+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9293 #include "confdefs.h"
9294 #include <sys/types.h>
9297 #ifdef F77_DUMMY_MAIN
9301 int F77_DUMMY_MAIN() { return 1; }
9306 struct tm *tp; tp->tm_sec;
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_cv_struct_tm=time.h
9325 echo "$as_me: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9327 ac_cv_struct_tm=sys/time.h
9329 rm -f conftest.$ac_objext conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9332 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9333 if test $ac_cv_struct_tm = sys/time.h; then
9335 cat >>confdefs.h <<\_ACEOF
9336 #define TM_IN_SYS_TIME 1
9341 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9342 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9343 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9347 #line $LINENO "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9350 #include <$ac_cv_struct_tm>
9353 #ifdef F77_DUMMY_MAIN
9357 int F77_DUMMY_MAIN() { return 1; }
9362 static struct tm ac_aggr;
9363 if (ac_aggr.tm_zone)
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371 (eval $ac_compile) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_member_struct_tm_tm_zone=yes
9383 echo "$as_me: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 ac_cv_member_struct_tm_tm_zone=no
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9390 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9391 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_STRUCT_TM_TM_ZONE 1
9400 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9402 cat >>confdefs.h <<\_ACEOF
9403 #define HAVE_TM_ZONE 1
9407 echo "$as_me:$LINENO: checking for tzname" >&5
9408 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9409 if test "${ac_cv_var_tzname+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9416 #ifndef tzname /* For SGI. */
9417 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9420 #ifdef F77_DUMMY_MAIN
9424 int F77_DUMMY_MAIN() { return 1; }
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_var_tzname=yes
9448 echo "$as_me: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9455 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9456 if test $ac_cv_var_tzname = yes; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_TZNAME 1
9465 echo "$as_me:$LINENO: checking for union semun" >&5
9466 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9467 if test "${ac_cv_type_union_semun+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 cat >conftest.$ac_ext <<_ACEOF
9471 #line $LINENO "configure"
9472 #include "confdefs.h"
9473 #include <sys/types.h>
9474 #include <sys/ipc.h>
9475 #include <sys/sem.h>
9477 #ifdef F77_DUMMY_MAIN
9481 int F77_DUMMY_MAIN() { return 1; }
9486 if ((union semun *) 0)
9488 if (sizeof (union semun))
9494 rm -f conftest.$ac_objext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496 (eval $ac_compile) 2>&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_cv_type_union_semun=yes
9508 echo "$as_me: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 ac_cv_type_union_semun=no
9512 rm -f conftest.$ac_objext conftest.$ac_ext
9514 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9515 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9516 if test $ac_cv_type_union_semun = yes; then
9518 cat >>confdefs.h <<_ACEOF
9519 #define HAVE_UNION_SEMUN 1
9525 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9526 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9527 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9531 #line $LINENO "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9534 #ifdef HAVE_SYS_UN_H
9539 #ifdef F77_DUMMY_MAIN
9543 int F77_DUMMY_MAIN() { return 1; }
9548 if ((struct sockaddr_un *) 0)
9550 if (sizeof (struct sockaddr_un))
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558 (eval $ac_compile) 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_type_struct_sockaddr_un=yes
9570 echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 ac_cv_type_struct_sockaddr_un=no
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9576 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9577 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9578 if test $ac_cv_type_struct_sockaddr_un = yes; then
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_STRUCT_SOCKADDR_UN 1
9588 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9589 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9590 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 cat >conftest.$ac_ext <<_ACEOF
9594 #line $LINENO "configure"
9595 #include "confdefs.h"
9596 #include <sys/param.h>
9597 #include <sys/socket.h>
9598 #include <sys/ucred.h>
9600 #ifdef F77_DUMMY_MAIN
9604 int F77_DUMMY_MAIN() { return 1; }
9609 if ((struct cmsgcred *) 0)
9611 if (sizeof (struct cmsgcred))
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619 (eval $ac_compile) 2>&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -s conftest.$ac_objext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_type_struct_cmsgcred=yes
9631 echo "$as_me: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 ac_cv_type_struct_cmsgcred=no
9635 rm -f conftest.$ac_objext conftest.$ac_ext
9637 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9638 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9639 if test $ac_cv_type_struct_cmsgcred = yes; then
9641 cat >>confdefs.h <<_ACEOF
9642 #define HAVE_STRUCT_CMSGCRED 1
9647 echo "$as_me:$LINENO: checking for struct fcred" >&5
9648 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9649 if test "${ac_cv_type_struct_fcred+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9655 #include <sys/param.h>
9656 #include <sys/socket.h>
9657 #include <sys/ucred.h>
9659 #ifdef F77_DUMMY_MAIN
9663 int F77_DUMMY_MAIN() { return 1; }
9668 if ((struct fcred *) 0)
9670 if (sizeof (struct fcred))
9676 rm -f conftest.$ac_objext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9678 (eval $ac_compile) 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -s conftest.$ac_objext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_type_struct_fcred=yes
9690 echo "$as_me: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9692 ac_cv_type_struct_fcred=no
9694 rm -f conftest.$ac_objext conftest.$ac_ext
9696 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9697 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9698 if test $ac_cv_type_struct_fcred = yes; then
9700 cat >>confdefs.h <<_ACEOF
9701 #define HAVE_STRUCT_FCRED 1
9706 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9707 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9708 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 cat >conftest.$ac_ext <<_ACEOF
9712 #line $LINENO "configure"
9713 #include "confdefs.h"
9714 #include <sys/param.h>
9715 #include <sys/socket.h>
9716 #include <sys/ucred.h>
9718 #ifdef F77_DUMMY_MAIN
9722 int F77_DUMMY_MAIN() { return 1; }
9727 if ((struct sockcred *) 0)
9729 if (sizeof (struct sockcred))
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_type_struct_sockcred=yes
9749 echo "$as_me: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 ac_cv_type_struct_sockcred=no
9753 rm -f conftest.$ac_objext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9756 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9757 if test $ac_cv_type_struct_sockcred = yes; then
9759 cat >>confdefs.h <<_ACEOF
9760 #define HAVE_STRUCT_SOCKCRED 1
9767 if test "$with_zlib" = yes; then
9768 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9769 # did not). While we could work around the lack of z_streamp, it
9770 # seems unwise to encourage people to use such old zlib versions...
9771 echo "$as_me:$LINENO: checking for z_streamp" >&5
9772 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9773 if test "${ac_cv_type_z_streamp+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 cat >conftest.$ac_ext <<_ACEOF
9777 #line $LINENO "configure"
9778 #include "confdefs.h"
9781 #ifdef F77_DUMMY_MAIN
9785 int F77_DUMMY_MAIN() { return 1; }
9790 if ((z_streamp *) 0)
9792 if (sizeof (z_streamp))
9798 rm -f conftest.$ac_objext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800 (eval $ac_compile) 2>&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest.$ac_objext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_type_z_streamp=yes
9812 echo "$as_me: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 ac_cv_type_z_streamp=no
9816 rm -f conftest.$ac_objext conftest.$ac_ext
9818 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9819 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9820 if test $ac_cv_type_z_streamp = yes; then
9823 { { echo "$as_me:$LINENO: error: zlib version is too old
9824 Use --without-zlib to disable zlib support." >&5
9825 echo "$as_me: error: zlib version is too old
9826 Use --without-zlib to disable zlib support." >&2;}
9827 { (exit 1); exit 1; }; }
9832 if test "$with_krb5" = yes; then
9833 # Check for differences between MIT and Heimdal (KTH) releases
9834 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9835 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9836 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 cat >conftest.$ac_ext <<_ACEOF
9840 #line $LINENO "configure"
9841 #include "confdefs.h"
9844 #ifdef F77_DUMMY_MAIN
9848 int F77_DUMMY_MAIN() { return 1; }
9853 static krb5_ticket ac_aggr;
9854 if (ac_aggr.enc_part2)
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862 (eval $ac_compile) 2>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_member_krb5_ticket_enc_part2=yes
9874 echo "$as_me: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9876 ac_cv_member_krb5_ticket_enc_part2=no
9878 rm -f conftest.$ac_objext conftest.$ac_ext
9880 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9881 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9882 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9884 cat >>confdefs.h <<_ACEOF
9885 #define HAVE_KRB5_TICKET_ENC_PART2 1
9890 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9891 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9892 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 cat >conftest.$ac_ext <<_ACEOF
9896 #line $LINENO "configure"
9897 #include "confdefs.h"
9900 #ifdef F77_DUMMY_MAIN
9904 int F77_DUMMY_MAIN() { return 1; }
9909 static krb5_ticket ac_aggr;
9916 rm -f conftest.$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918 (eval $ac_compile) 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -s conftest.$ac_objext'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_member_krb5_ticket_client=yes
9930 echo "$as_me: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9932 ac_cv_member_krb5_ticket_client=no
9934 rm -f conftest.$ac_objext conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9937 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9938 if test $ac_cv_member_krb5_ticket_client = yes; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define HAVE_KRB5_TICKET_CLIENT 1
9946 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9947 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9948 { (exit 1); exit 1; }; }
9953 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9954 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9955 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9960 #include "confdefs.h"
9963 #ifdef F77_DUMMY_MAIN
9967 int F77_DUMMY_MAIN() { return 1; }
9972 static krb5_error ac_aggr;
9973 if (ac_aggr.text.data)
9979 rm -f conftest.$ac_objext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9981 (eval $ac_compile) 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -s conftest.$ac_objext'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
9991 ac_cv_member_krb5_error_text_data=yes
9993 echo "$as_me: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 ac_cv_member_krb5_error_text_data=no
9997 rm -f conftest.$ac_objext conftest.$ac_ext
9999 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10000 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10001 if test $ac_cv_member_krb5_error_text_data = yes; then
10003 cat >>confdefs.h <<_ACEOF
10004 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10009 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10010 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10011 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 cat >conftest.$ac_ext <<_ACEOF
10015 #line $LINENO "configure"
10016 #include "confdefs.h"
10019 #ifdef F77_DUMMY_MAIN
10020 # ifdef __cplusplus
10023 int F77_DUMMY_MAIN() { return 1; }
10028 static krb5_error ac_aggr;
10029 if (ac_aggr.e_data)
10035 rm -f conftest.$ac_objext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10037 (eval $ac_compile) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -s conftest.$ac_objext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 ac_cv_member_krb5_error_e_data=yes
10049 echo "$as_me: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 ac_cv_member_krb5_error_e_data=no
10053 rm -f conftest.$ac_objext conftest.$ac_ext
10055 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10056 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10057 if test $ac_cv_member_krb5_error_e_data = yes; then
10060 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10061 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10062 { (exit 1); exit 1; }; }
10071 ## Functions, global variables
10073 echo "$as_me:$LINENO: checking for int timezone" >&5
10074 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10075 if test "${pgac_cv_var_int_timezone+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 #include "confdefs.h"
10083 #ifdef F77_DUMMY_MAIN
10084 # ifdef __cplusplus
10087 int F77_DUMMY_MAIN() { return 1; }
10092 res = timezone / 60;
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10099 (eval $ac_link) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -s conftest$ac_exeext'
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 pgac_cv_var_int_timezone=yes
10111 echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 pgac_cv_var_int_timezone=no
10115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10118 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10119 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10121 cat >>confdefs.h <<\_ACEOF
10122 #define HAVE_INT_TIMEZONE
10126 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10127 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10128 if test "${ac_cv_func_accept_arg1+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 if test "${ac_cv_func_accept_arg2+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 if test "${ac_cv_func_accept_arg3+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10138 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10139 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10140 cat >conftest.$ac_ext <<_ACEOF
10141 #line $LINENO "configure"
10142 #include "confdefs.h"
10143 #ifdef HAVE_SYS_TYPES_H
10144 #include <sys/types.h>
10146 #ifdef HAVE_SYS_SOCKET_H
10147 #include <sys/socket.h>
10149 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10150 #ifdef F77_DUMMY_MAIN
10151 # ifdef __cplusplus
10154 int F77_DUMMY_MAIN() { return 1; }
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -s conftest.$ac_objext'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_not_found=no; break 3
10178 echo "$as_me: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10182 rm -f conftest.$ac_objext conftest.$ac_ext
10186 if test "$ac_not_found" = yes; then
10187 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10188 echo "$as_me: error: could not determine argument types" >&2;}
10189 { (exit 1); exit 1; }; }
10191 if test "$ac_cv_func_accept_arg3" = "void"; then
10192 ac_cv_func_accept_arg3=int
10200 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10201 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10203 cat >>confdefs.h <<_ACEOF
10204 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10208 cat >>confdefs.h <<_ACEOF
10209 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10213 cat >>confdefs.h <<_ACEOF
10214 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10218 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10219 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10220 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 #include "confdefs.h"
10226 #include <sys/time.h>
10227 #ifdef F77_DUMMY_MAIN
10228 # ifdef __cplusplus
10231 int F77_DUMMY_MAIN() { return 1; }
10236 struct timeval *tp;
10237 struct timezone *tzp;
10238 gettimeofday(tp,tzp);
10243 rm -f conftest.$ac_objext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245 (eval $ac_compile) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 pgac_cv_func_gettimeofday_1arg=no
10257 echo "$as_me: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10259 pgac_cv_func_gettimeofday_1arg=yes
10261 rm -f conftest.$ac_objext conftest.$ac_ext
10263 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10264 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10265 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10267 cat >>confdefs.h <<\_ACEOF
10268 #define GETTIMEOFDAY_1ARG
10273 # SunOS doesn't handle negative byte comparisons properly with +/- return
10274 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10275 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10276 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 if test "$cross_compiling" = yes; then
10280 pgac_cv_func_memcmp_clean=no
10282 cat >conftest.$ac_ext <<_ACEOF
10283 #line $LINENO "configure"
10284 #include "confdefs.h"
10288 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10289 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10293 rm -f conftest$ac_exeext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295 (eval $ac_link) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 pgac_cv_func_memcmp_clean=yes
10306 echo "$as_me: program exited with status $ac_status" >&5
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ( exit $ac_status )
10310 pgac_cv_func_memcmp_clean=no
10312 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10315 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10316 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10317 if test $pgac_cv_func_memcmp_clean = no ; then
10336 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10339 echo "$as_me:$LINENO: checking for $ac_func" >&5
10340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10341 if eval "test \"\${$as_ac_var+set}\" = set"; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 cat >conftest.$ac_ext <<_ACEOF
10345 #line $LINENO "configure"
10346 #include "confdefs.h"
10347 /* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char $ac_func (); below. */
10349 #include <assert.h>
10350 /* Override any gcc2 internal prototype to avoid an error. */
10354 /* We use char because int might match the return type of a gcc2
10355 builtin and then its argument prototype would still apply. */
10359 #ifdef F77_DUMMY_MAIN
10360 # ifdef __cplusplus
10363 int F77_DUMMY_MAIN() { return 1; }
10368 /* The GNU C library defines this for functions which it implements
10369 to always fail with ENOSYS. Some functions are actually named
10370 something starting with __ and the normal name is an alias. */
10371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 eval "$as_ac_var=yes"
10395 echo "$as_me: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10397 eval "$as_ac_var=no"
10399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10403 if test `eval echo '${'$as_ac_var'}'` = yes; then
10404 cat >>confdefs.h <<_ACEOF
10405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10412 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10413 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10414 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 cat >conftest.$ac_ext <<_ACEOF
10418 #line $LINENO "configure"
10419 #include "confdefs.h"
10420 #include <unistd.h>
10422 #ifdef F77_DUMMY_MAIN
10423 # ifdef __cplusplus
10426 int F77_DUMMY_MAIN() { return 1; }
10432 char *p = (char *) fdatasync;
10439 rm -f conftest.$ac_objext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_cv_have_decl_fdatasync=yes
10453 echo "$as_me: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10455 ac_cv_have_decl_fdatasync=no
10457 rm -f conftest.$ac_objext conftest.$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10460 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10461 if test $ac_cv_have_decl_fdatasync = yes; then
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_DECL_FDATASYNC 1
10469 cat >>confdefs.h <<_ACEOF
10470 #define HAVE_DECL_FDATASYNC 0
10478 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10479 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10480 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10485 #include "confdefs.h"
10486 #include <machine/vmparam.h>
10487 #include <sys/exec.h>
10489 #ifdef F77_DUMMY_MAIN
10490 # ifdef __cplusplus
10493 int F77_DUMMY_MAIN() { return 1; }
10498 PS_STRINGS->ps_nargvstr = 1;
10499 PS_STRINGS->ps_argvstr = "foo";
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506 (eval $ac_link) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -s conftest$ac_exeext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 pgac_cv_var_PS_STRINGS=yes
10518 echo "$as_me: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 pgac_cv_var_PS_STRINGS=no
10522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10525 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10526 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10528 cat >>confdefs.h <<\_ACEOF
10529 #define HAVE_PS_STRINGS
10535 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10536 # is missing. Yes, there are machines that have only one. We may
10537 # also decide to use snprintf.c if snprintf() is present but does not
10538 # have working "long long int" support -- see below.
10542 for ac_func in snprintf
10544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10545 echo "$as_me:$LINENO: checking for $ac_func" >&5
10546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10547 if eval "test \"\${$as_ac_var+set}\" = set"; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 #include "confdefs.h"
10553 /* System header to define __stub macros and hopefully few prototypes,
10554 which can conflict with char $ac_func (); below. */
10555 #include <assert.h>
10556 /* Override any gcc2 internal prototype to avoid an error. */
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10565 #ifdef F77_DUMMY_MAIN
10566 # ifdef __cplusplus
10569 int F77_DUMMY_MAIN() { return 1; }
10574 /* The GNU C library defines this for functions which it implements
10575 to always fail with ENOSYS. Some functions are actually named
10576 something starting with __ and the normal name is an alias. */
10577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589 (eval $ac_link) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -s conftest$ac_exeext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 eval "$as_ac_var=yes"
10601 echo "$as_me: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10603 eval "$as_ac_var=no"
10605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10609 if test `eval echo '${'$as_ac_var'}'` = yes; then
10610 cat >>confdefs.h <<_ACEOF
10611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10615 SNPRINTF='snprintf.o'
10620 for ac_func in vsnprintf
10622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623 echo "$as_me:$LINENO: checking for $ac_func" >&5
10624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10625 if eval "test \"\${$as_ac_var+set}\" = set"; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 cat >conftest.$ac_ext <<_ACEOF
10629 #line $LINENO "configure"
10630 #include "confdefs.h"
10631 /* System header to define __stub macros and hopefully few prototypes,
10632 which can conflict with char $ac_func (); below. */
10633 #include <assert.h>
10634 /* Override any gcc2 internal prototype to avoid an error. */
10638 /* We use char because int might match the return type of a gcc2
10639 builtin and then its argument prototype would still apply. */
10643 #ifdef F77_DUMMY_MAIN
10644 # ifdef __cplusplus
10647 int F77_DUMMY_MAIN() { return 1; }
10652 /* The GNU C library defines this for functions which it implements
10653 to always fail with ENOSYS. Some functions are actually named
10654 something starting with __ and the normal name is an alias. */
10655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 eval "$as_ac_var=yes"
10679 echo "$as_me: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 eval "$as_ac_var=no"
10683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10687 if test `eval echo '${'$as_ac_var'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10693 SNPRINTF='snprintf.o'
10700 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10701 # include/c.h will provide declarations. Note this is a separate test
10702 # from whether the functions exist in the C library --- there are
10703 # systems that have the functions but don't bother to declare them :-(
10705 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10706 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10707 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 cat >conftest.$ac_ext <<_ACEOF
10711 #line $LINENO "configure"
10712 #include "confdefs.h"
10713 $ac_includes_default
10714 #ifdef F77_DUMMY_MAIN
10715 # ifdef __cplusplus
10718 int F77_DUMMY_MAIN() { return 1; }
10724 char *p = (char *) snprintf;
10731 rm -f conftest.$ac_objext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10733 (eval $ac_compile) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -s conftest.$ac_objext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_cv_have_decl_snprintf=yes
10745 echo "$as_me: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 ac_cv_have_decl_snprintf=no
10749 rm -f conftest.$ac_objext conftest.$ac_ext
10751 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10752 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10753 if test $ac_cv_have_decl_snprintf = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_DECL_SNPRINTF 1
10761 cat >>confdefs.h <<_ACEOF
10762 #define HAVE_DECL_SNPRINTF 0
10767 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10768 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10769 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775 $ac_includes_default
10776 #ifdef F77_DUMMY_MAIN
10777 # ifdef __cplusplus
10780 int F77_DUMMY_MAIN() { return 1; }
10786 char *p = (char *) vsnprintf;
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -s conftest.$ac_objext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_have_decl_vsnprintf=yes
10807 echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 ac_cv_have_decl_vsnprintf=no
10811 rm -f conftest.$ac_objext conftest.$ac_ext
10813 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10814 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10815 if test $ac_cv_have_decl_vsnprintf = yes; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define HAVE_DECL_VSNPRINTF 1
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_DECL_VSNPRINTF 0
10833 # do this one the hard way in case isinf() is a macro
10834 echo "$as_me:$LINENO: checking for isinf" >&5
10835 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10836 if test "${ac_cv_func_isinf+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 cat >conftest.$ac_ext <<_ACEOF
10840 #line $LINENO "configure"
10841 #include "confdefs.h"
10844 #ifdef F77_DUMMY_MAIN
10845 # ifdef __cplusplus
10848 int F77_DUMMY_MAIN() { return 1; }
10853 double x = 0.0; int res = isinf(x);
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10860 (eval $ac_link) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -s conftest$ac_exeext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 ac_cv_func_isinf=yes
10872 echo "$as_me: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10874 ac_cv_func_isinf=no
10876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10878 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10879 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10881 if test $ac_cv_func_isinf = yes ; then
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_ISINF 1
10890 # Look for a way to implement a substitute for isinf()
10895 for ac_func in fpclass fp_class fp_class_d class
10897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10898 echo "$as_me:$LINENO: checking for $ac_func" >&5
10899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10900 if eval "test \"\${$as_ac_var+set}\" = set"; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 cat >conftest.$ac_ext <<_ACEOF
10904 #line $LINENO "configure"
10905 #include "confdefs.h"
10906 /* System header to define __stub macros and hopefully few prototypes,
10907 which can conflict with char $ac_func (); below. */
10908 #include <assert.h>
10909 /* Override any gcc2 internal prototype to avoid an error. */
10913 /* We use char because int might match the return type of a gcc2
10914 builtin and then its argument prototype would still apply. */
10918 #ifdef F77_DUMMY_MAIN
10919 # ifdef __cplusplus
10922 int F77_DUMMY_MAIN() { return 1; }
10927 /* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942 (eval $ac_link) 2>&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -s conftest$ac_exeext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 eval "$as_ac_var=yes"
10954 echo "$as_me: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10956 eval "$as_ac_var=no"
10958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10962 if test `eval echo '${'$as_ac_var'}'` = yes; then
10963 cat >>confdefs.h <<_ACEOF
10964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10975 for ac_func in getrusage
10977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10978 echo "$as_me:$LINENO: checking for $ac_func" >&5
10979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10980 if eval "test \"\${$as_ac_var+set}\" = set"; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 cat >conftest.$ac_ext <<_ACEOF
10984 #line $LINENO "configure"
10985 #include "confdefs.h"
10986 /* System header to define __stub macros and hopefully few prototypes,
10987 which can conflict with char $ac_func (); below. */
10988 #include <assert.h>
10989 /* Override any gcc2 internal prototype to avoid an error. */
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10998 #ifdef F77_DUMMY_MAIN
10999 # ifdef __cplusplus
11002 int F77_DUMMY_MAIN() { return 1; }
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -s conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 eval "$as_ac_var=yes"
11034 echo "$as_me: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 eval "$as_ac_var=no"
11038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11042 if test `eval echo '${'$as_ac_var'}'` = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 GETRUSAGE='getrusage.o'
11054 for ac_func in srandom
11056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 echo "$as_me:$LINENO: checking for $ac_func" >&5
11058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_var+set}\" = set"; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066 which can conflict with char $ac_func (); below. */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error. */
11072 /* We use char because int might match the return type of a gcc2
11073 builtin and then its argument prototype would still apply. */
11077 #ifdef F77_DUMMY_MAIN
11078 # ifdef __cplusplus
11081 int F77_DUMMY_MAIN() { return 1; }
11086 /* The GNU C library defines this for functions which it implements
11087 to always fail with ENOSYS. Some functions are actually named
11088 something starting with __ and the normal name is an alias. */
11089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 eval "$as_ac_var=yes"
11113 echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 eval "$as_ac_var=no"
11117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11121 if test `eval echo '${'$as_ac_var'}'` = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 SRANDOM='srandom.o'
11133 for ac_func in gethostname
11135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11136 echo "$as_me:$LINENO: checking for $ac_func" >&5
11137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11138 if eval "test \"\${$as_ac_var+set}\" = set"; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11144 /* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char $ac_func (); below. */
11146 #include <assert.h>
11147 /* Override any gcc2 internal prototype to avoid an error. */
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11156 #ifdef F77_DUMMY_MAIN
11157 # ifdef __cplusplus
11160 int F77_DUMMY_MAIN() { return 1; }
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
11184 { ac_try='test -s conftest$ac_exeext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 eval "$as_ac_var=yes"
11192 echo "$as_me: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 eval "$as_ac_var=no"
11196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11200 if test `eval echo '${'$as_ac_var'}'` = yes; then
11201 cat >>confdefs.h <<_ACEOF
11202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11206 GETHOSTNAME='gethostname.o'
11212 for ac_func in random
11214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11217 if eval "test \"\${$as_ac_var+set}\" = set"; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 #include "confdefs.h"
11223 /* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char $ac_func (); below. */
11225 #include <assert.h>
11226 /* Override any gcc2 internal prototype to avoid an error. */
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11235 #ifdef F77_DUMMY_MAIN
11236 # ifdef __cplusplus
11239 int F77_DUMMY_MAIN() { return 1; }
11244 /* The GNU C library defines this for functions which it implements
11245 to always fail with ENOSYS. Some functions are actually named
11246 something starting with __ and the normal name is an alias. */
11247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -s conftest$ac_exeext'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11269 eval "$as_ac_var=yes"
11271 echo "$as_me: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 eval "$as_ac_var=no"
11275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11279 if test `eval echo '${'$as_ac_var'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11285 MISSING_RANDOM='random.o'
11291 for ac_func in inet_aton
11293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294 echo "$as_me:$LINENO: checking for $ac_func" >&5
11295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11296 if eval "test \"\${$as_ac_var+set}\" = set"; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11300 #line $LINENO "configure"
11301 #include "confdefs.h"
11302 /* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below. */
11304 #include <assert.h>
11305 /* Override any gcc2 internal prototype to avoid an error. */
11309 /* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11314 #ifdef F77_DUMMY_MAIN
11315 # ifdef __cplusplus
11318 int F77_DUMMY_MAIN() { return 1; }
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338 (eval $ac_link) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest$ac_exeext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 eval "$as_ac_var=yes"
11350 echo "$as_me: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11352 eval "$as_ac_var=no"
11354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11358 if test `eval echo '${'$as_ac_var'}'` = yes; then
11359 cat >>confdefs.h <<_ACEOF
11360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11364 INET_ATON='inet_aton.o'
11370 for ac_func in strerror
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11375 if eval "test \"\${$as_ac_var+set}\" = set"; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11379 #line $LINENO "configure"
11380 #include "confdefs.h"
11381 /* System header to define __stub macros and hopefully few prototypes,
11382 which can conflict with char $ac_func (); below. */
11383 #include <assert.h>
11384 /* Override any gcc2 internal prototype to avoid an error. */
11388 /* We use char because int might match the return type of a gcc2
11389 builtin and then its argument prototype would still apply. */
11393 #ifdef F77_DUMMY_MAIN
11394 # ifdef __cplusplus
11397 int F77_DUMMY_MAIN() { return 1; }
11402 /* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
11405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417 (eval $ac_link) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -s conftest$ac_exeext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 eval "$as_ac_var=yes"
11429 echo "$as_me: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11431 eval "$as_ac_var=no"
11433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11437 if test `eval echo '${'$as_ac_var'}'` = yes; then
11438 cat >>confdefs.h <<_ACEOF
11439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11443 STRERROR='strerror.o'
11449 for ac_func in strdup
11451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452 echo "$as_me:$LINENO: checking for $ac_func" >&5
11453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11454 if eval "test \"\${$as_ac_var+set}\" = set"; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 cat >conftest.$ac_ext <<_ACEOF
11458 #line $LINENO "configure"
11459 #include "confdefs.h"
11460 /* System header to define __stub macros and hopefully few prototypes,
11461 which can conflict with char $ac_func (); below. */
11462 #include <assert.h>
11463 /* Override any gcc2 internal prototype to avoid an error. */
11467 /* We use char because int might match the return type of a gcc2
11468 builtin and then its argument prototype would still apply. */
11472 #ifdef F77_DUMMY_MAIN
11473 # ifdef __cplusplus
11476 int F77_DUMMY_MAIN() { return 1; }
11481 /* The GNU C library defines this for functions which it implements
11482 to always fail with ENOSYS. Some functions are actually named
11483 something starting with __ and the normal name is an alias. */
11484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 eval "$as_ac_var=yes"
11508 echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 eval "$as_ac_var=no"
11512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11516 if test `eval echo '${'$as_ac_var'}'` = yes; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11522 STRDUP='../../utils/strdup.o'
11528 for ac_func in strtol
11530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531 echo "$as_me:$LINENO: checking for $ac_func" >&5
11532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11533 if eval "test \"\${$as_ac_var+set}\" = set"; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11538 #include "confdefs.h"
11539 /* System header to define __stub macros and hopefully few prototypes,
11540 which can conflict with char $ac_func (); below. */
11541 #include <assert.h>
11542 /* Override any gcc2 internal prototype to avoid an error. */
11546 /* We use char because int might match the return type of a gcc2
11547 builtin and then its argument prototype would still apply. */
11551 #ifdef F77_DUMMY_MAIN
11552 # ifdef __cplusplus
11555 int F77_DUMMY_MAIN() { return 1; }
11560 /* The GNU C library defines this for functions which it implements
11561 to always fail with ENOSYS. Some functions are actually named
11562 something starting with __ and the normal name is an alias. */
11563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575 (eval $ac_link) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -s conftest$ac_exeext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 eval "$as_ac_var=yes"
11587 echo "$as_me: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11589 eval "$as_ac_var=no"
11591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11595 if test `eval echo '${'$as_ac_var'}'` = yes; then
11596 cat >>confdefs.h <<_ACEOF
11597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11607 for ac_func in strtoul
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11612 if eval "test \"\${$as_ac_var+set}\" = set"; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618 /* System header to define __stub macros and hopefully few prototypes,
11619 which can conflict with char $ac_func (); below. */
11620 #include <assert.h>
11621 /* Override any gcc2 internal prototype to avoid an error. */
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11630 #ifdef F77_DUMMY_MAIN
11631 # ifdef __cplusplus
11634 int F77_DUMMY_MAIN() { return 1; }
11639 /* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654 (eval $ac_link) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 eval "$as_ac_var=yes"
11666 echo "$as_me: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11668 eval "$as_ac_var=no"
11670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11674 if test `eval echo '${'$as_ac_var'}'` = yes; then
11675 cat >>confdefs.h <<_ACEOF
11676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11680 STRTOUL='strtoul.o'
11686 for ac_func in strcasecmp
11688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689 echo "$as_me:$LINENO: checking for $ac_func" >&5
11690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11691 if eval "test \"\${$as_ac_var+set}\" = set"; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11695 #line $LINENO "configure"
11696 #include "confdefs.h"
11697 /* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below. */
11699 #include <assert.h>
11700 /* Override any gcc2 internal prototype to avoid an error. */
11704 /* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
11709 #ifdef F77_DUMMY_MAIN
11710 # ifdef __cplusplus
11713 int F77_DUMMY_MAIN() { return 1; }
11718 /* The GNU C library defines this for functions which it implements
11719 to always fail with ENOSYS. Some functions are actually named
11720 something starting with __ and the normal name is an alias. */
11721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "$as_ac_var=yes"
11745 echo "$as_me: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 eval "$as_ac_var=no"
11749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759 STRCASECMP='strcasecmp.o'
11765 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11766 # this hackery with HPUXMATHLIB allows us to cope.
11770 if [ -r /lib/pa1.1/libm.a ] ; then
11771 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11777 for ac_func in rint
11779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11780 echo "$as_me:$LINENO: checking for $ac_func" >&5
11781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11782 if eval "test \"\${$as_ac_var+set}\" = set"; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 cat >conftest.$ac_ext <<_ACEOF
11786 #line $LINENO "configure"
11787 #include "confdefs.h"
11788 /* System header to define __stub macros and hopefully few prototypes,
11789 which can conflict with char $ac_func (); below. */
11790 #include <assert.h>
11791 /* Override any gcc2 internal prototype to avoid an error. */
11795 /* We use char because int might match the return type of a gcc2
11796 builtin and then its argument prototype would still apply. */
11800 #ifdef F77_DUMMY_MAIN
11801 # ifdef __cplusplus
11804 int F77_DUMMY_MAIN() { return 1; }
11809 /* The GNU C library defines this for functions which it implements
11810 to always fail with ENOSYS. Some functions are actually named
11811 something starting with __ and the normal name is an alias. */
11812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
11836 echo "$as_me: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 eval "$as_ac_var=no"
11840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11844 if test `eval echo '${'$as_ac_var'}'` = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11851 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11852 if test "${ac_cv_lib_m_rint+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lm $HPUXMATHLIB $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 #line $LINENO "configure"
11859 #include "confdefs.h"
11861 /* Override any gcc2 internal prototype to avoid an error. */
11865 /* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11868 #ifdef F77_DUMMY_MAIN
11869 # ifdef __cplusplus
11872 int F77_DUMMY_MAIN() { return 1; }
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884 (eval $ac_link) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -s conftest$ac_exeext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_lib_m_rint=yes
11896 echo "$as_me: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 ac_cv_lib_m_rint=no
11900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11903 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11904 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11905 if test $ac_cv_lib_m_rint = yes; then
11906 cat >>confdefs.h <<\_ACEOF
11907 #define HAVE_RINT 1
11917 if test "$with_readline" = yes; then
11918 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11919 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11920 cat >conftest.$ac_ext <<_ACEOF
11921 #line $LINENO "configure"
11922 #include "confdefs.h"
11924 #ifdef HAVE_READLINE_READLINE_H
11925 # include <readline/readline.h>
11926 #elif defined(HAVE_READLINE_H)
11927 # include <readline.h>
11930 #ifdef F77_DUMMY_MAIN
11931 # ifdef __cplusplus
11934 int F77_DUMMY_MAIN() { return 1; }
11939 rl_completion_append_character = 'x';
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 echo "$as_me:$LINENO: result: yes" >&5
11957 echo "${ECHO_T}yes" >&6
11959 cat >>confdefs.h <<\_ACEOF
11960 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11964 echo "$as_me: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 echo "$as_me:$LINENO: result: no" >&5
11967 echo "${ECHO_T}no" >&6
11969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11972 for ac_func in rl_completion_matches rl_filename_completion_function
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_var+set}\" = set"; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11981 #line $LINENO "configure"
11982 #include "confdefs.h"
11983 /* System header to define __stub macros and hopefully few prototypes,
11984 which can conflict with char $ac_func (); below. */
11985 #include <assert.h>
11986 /* Override any gcc2 internal prototype to avoid an error. */
11990 /* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11995 #ifdef F77_DUMMY_MAIN
11996 # ifdef __cplusplus
11999 int F77_DUMMY_MAIN() { return 1; }
12004 /* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
12007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest$ac_exeext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 eval "$as_ac_var=yes"
12031 echo "$as_me: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 eval "$as_ac_var=no"
12035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12050 echo "$as_me:$LINENO: checking for finite" >&5
12051 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 #include "confdefs.h"
12056 #ifdef F77_DUMMY_MAIN
12057 # ifdef __cplusplus
12060 int F77_DUMMY_MAIN() { return 1; }
12065 int dummy=finite(1.0);
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_FINITE 1
12087 echo "$as_me:$LINENO: result: yes" >&5
12088 echo "${ECHO_T}yes" >&6
12090 echo "$as_me: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12092 echo "$as_me:$LINENO: result: no" >&5
12093 echo "${ECHO_T}no" >&6
12095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12097 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12098 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102 #include <setjmp.h>
12103 #ifdef F77_DUMMY_MAIN
12104 # ifdef __cplusplus
12107 int F77_DUMMY_MAIN() { return 1; }
12112 sigjmp_buf x; sigsetjmp(x, 1);
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119 (eval $ac_link) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12130 cat >>confdefs.h <<\_ACEOF
12131 #define HAVE_SIGSETJMP 1
12134 echo "$as_me:$LINENO: result: yes" >&5
12135 echo "${ECHO_T}yes" >&6
12137 echo "$as_me: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12144 echo "$as_me:$LINENO: checking for syslog" >&5
12145 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12146 if test "${ac_cv_func_syslog+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12151 #include "confdefs.h"
12152 /* System header to define __stub macros and hopefully few prototypes,
12153 which can conflict with char syslog (); below. */
12154 #include <assert.h>
12155 /* Override any gcc2 internal prototype to avoid an error. */
12159 /* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12164 #ifdef F77_DUMMY_MAIN
12165 # ifdef __cplusplus
12168 int F77_DUMMY_MAIN() { return 1; }
12173 /* The GNU C library defines this for functions which it implements
12174 to always fail with ENOSYS. Some functions are actually named
12175 something starting with __ and the normal name is an alias. */
12176 #if defined (__stub_syslog) || defined (__stub___syslog)
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_func_syslog=yes
12200 echo "$as_me: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 ac_cv_func_syslog=no
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12206 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12207 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12208 if test $ac_cv_func_syslog = yes; then
12209 if test "${ac_cv_header_syslog_h+set}" = set; then
12210 echo "$as_me:$LINENO: checking for syslog.h" >&5
12211 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12212 if test "${ac_cv_header_syslog_h+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12216 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12218 # Is the header compilable?
12219 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12220 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12222 #line $LINENO "configure"
12223 #include "confdefs.h"
12224 $ac_includes_default
12225 #include <syslog.h>
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_header_compiler=yes
12241 echo "$as_me: failed program was:" >&5
12242 cat conftest.$ac_ext >&5
12243 ac_header_compiler=no
12245 rm -f conftest.$ac_objext conftest.$ac_ext
12246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12247 echo "${ECHO_T}$ac_header_compiler" >&6
12249 # Is the header present?
12250 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12251 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 #include "confdefs.h"
12255 #include <syslog.h>
12257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12260 egrep -v '^ *\+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null; then
12265 if test -s conftest.err; then
12266 ac_cpp_err=$ac_c_preproc_warn_flag
12273 if test -z "$ac_cpp_err"; then
12274 ac_header_preproc=yes
12276 echo "$as_me: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 ac_header_preproc=no
12280 rm -f conftest.err conftest.$ac_ext
12281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12282 echo "${ECHO_T}$ac_header_preproc" >&6
12284 # So? What about this header?
12285 case $ac_header_compiler:$ac_header_preproc in
12287 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12288 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12290 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12292 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12293 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12295 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12297 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12299 echo "$as_me:$LINENO: checking for syslog.h" >&5
12300 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12301 if test "${ac_cv_header_syslog_h+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 ac_cv_header_syslog_h=$ac_header_preproc
12306 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12307 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12310 if test $ac_cv_header_syslog_h = yes; then
12311 cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_SYSLOG 1
12321 echo "$as_me:$LINENO: checking for optreset" >&5
12322 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12323 if test "${pgac_cv_var_int_optreset+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12327 #line $LINENO "configure"
12328 #include "confdefs.h"
12329 #include <unistd.h>
12330 #ifdef F77_DUMMY_MAIN
12331 # ifdef __cplusplus
12334 int F77_DUMMY_MAIN() { return 1; }
12339 extern int optreset; optreset = 1;
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346 (eval $ac_link) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 pgac_cv_var_int_optreset=yes
12358 echo "$as_me: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 pgac_cv_var_int_optreset=no
12362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12364 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12365 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12366 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_INT_OPTRESET 1
12375 # This test makes sure that run tests work at all. Sometimes a shared
12376 # library is found by the linker, but the runtime linker can't find it.
12377 # This check should come after all modifications of compiler or linker
12378 # variables, and before any other run tests.
12379 echo "$as_me:$LINENO: checking test program" >&5
12380 echo $ECHO_N "checking test program... $ECHO_C" >&6
12381 if test "$cross_compiling" = yes; then
12382 echo "$as_me:$LINENO: result: cross-compiling" >&5
12383 echo "${ECHO_T}cross-compiling" >&6
12385 cat >conftest.$ac_ext <<_ACEOF
12386 #line $LINENO "configure"
12387 #include "confdefs.h"
12388 int main() { return 0; }
12390 rm -f conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 echo "$as_me:$LINENO: result: ok" >&5
12402 echo "${ECHO_T}ok" >&6
12404 echo "$as_me: program exited with status $ac_status" >&5
12405 echo "$as_me: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12407 ( exit $ac_status )
12408 echo "$as_me:$LINENO: result: failed" >&5
12409 echo "${ECHO_T}failed" >&6
12410 { { echo "$as_me:$LINENO: error:
12411 *** Could not execute a simple test program. This may be a problem
12412 *** related to locating shared libraries. Check the file 'config.log'
12413 *** for the exact reason." >&5
12414 echo "$as_me: error:
12415 *** Could not execute a simple test program. This may be a problem
12416 *** related to locating shared libraries. Check the file 'config.log'
12417 *** for the exact reason." >&2;}
12418 { (exit 1); exit 1; }; }
12420 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12425 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12426 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12427 if test "${pgac_cv_type_long_int_64+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 if test "$cross_compiling" = yes; then
12431 pgac_cv_type_long_int_64=no
12432 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12433 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12435 cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12437 #include "confdefs.h"
12438 typedef long int int64;
12441 * These are globals to discourage the compiler from folding all the
12442 * arithmetic tests down to compile-time constants.
12444 int64 a = 20000001;
12445 int64 b = 40000005;
12447 int does_int64_work()
12451 if (sizeof(int64) != 8)
12452 return 0; /* definitely not the right size */
12454 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12462 exit(! does_int64_work());
12465 rm -f conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 pgac_cv_type_long_int_64=yes
12478 echo "$as_me: program exited with status $ac_status" >&5
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ( exit $ac_status )
12482 pgac_cv_type_long_int_64=no
12484 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12487 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12488 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12490 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12491 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_LONG_INT_64
12500 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12501 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12502 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12503 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 if test "$cross_compiling" = yes; then
12507 pgac_cv_type_long_long_int_64=no
12508 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12509 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12511 cat >conftest.$ac_ext <<_ACEOF
12512 #line $LINENO "configure"
12513 #include "confdefs.h"
12514 typedef long long int int64;
12517 * These are globals to discourage the compiler from folding all the
12518 * arithmetic tests down to compile-time constants.
12520 int64 a = 20000001;
12521 int64 b = 40000005;
12523 int does_int64_work()
12527 if (sizeof(int64) != 8)
12528 return 0; /* definitely not the right size */
12530 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12538 exit(! does_int64_work());
12541 rm -f conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 pgac_cv_type_long_long_int_64=yes
12554 echo "$as_me: program exited with status $ac_status" >&5
12555 echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 ( exit $ac_status )
12558 pgac_cv_type_long_long_int_64=no
12560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12563 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12564 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12566 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12567 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12569 cat >>confdefs.h <<\_ACEOF
12570 #define HAVE_LONG_LONG_INT_64
12579 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12580 cat >conftest.$ac_ext <<_ACEOF
12581 #line $LINENO "configure"
12582 #include "confdefs.h"
12584 #define INT64CONST(x) x##LL
12585 long long int foo = INT64CONST(0x1234567890123456);
12587 #ifdef F77_DUMMY_MAIN
12588 # ifdef __cplusplus
12591 int F77_DUMMY_MAIN() { return 1; }
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -s conftest.$ac_objext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12614 cat >>confdefs.h <<\_ACEOF
12615 #define HAVE_LL_CONSTANTS 1
12619 echo "$as_me: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12622 rm -f conftest.$ac_objext conftest.$ac_ext
12627 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12628 if [ x$SNPRINTF = x ] ; then
12629 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12630 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12631 if test "$cross_compiling" = yes; then
12632 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12633 echo "${ECHO_T}assuming not on target machine" >&6
12634 # Force usage of our own snprintf, since we cannot test foreign snprintf
12635 SNPRINTF='snprintf.o'
12636 INT64_FORMAT='"%lld"'
12639 cat >conftest.$ac_ext <<_ACEOF
12640 #line $LINENO "configure"
12641 #include "confdefs.h"
12643 typedef long long int int64;
12644 #define INT64_FORMAT "%lld"
12646 int64 a = 20000001;
12647 int64 b = 40000005;
12649 int does_int64_snprintf_work()
12654 if (sizeof(int64) != 8)
12655 return 0; /* doesn't look like the right size */
12658 snprintf(buf, 100, INT64_FORMAT, c);
12659 if (strcmp(buf, "800000140000005") != 0)
12660 return 0; /* either multiply or snprintf is busted */
12664 exit(! does_int64_snprintf_work());
12667 rm -f conftest$ac_exeext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669 (eval $ac_link) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 echo "$as_me:$LINENO: result: yes" >&5
12679 echo "${ECHO_T}yes" >&6
12680 INT64_FORMAT='"%lld"'
12683 echo "$as_me: program exited with status $ac_status" >&5
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 ( exit $ac_status )
12687 echo "$as_me:$LINENO: result: no" >&5
12688 echo "${ECHO_T}no" >&6
12689 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12690 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12691 if test "$cross_compiling" = yes; then
12692 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12693 echo "${ECHO_T}assuming not on target machine" >&6
12694 # Force usage of our own snprintf, since we cannot test foreign snprintf
12695 SNPRINTF='snprintf.o'
12696 INT64_FORMAT='"%lld"'
12699 cat >conftest.$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12701 #include "confdefs.h"
12703 typedef long long int int64;
12704 #define INT64_FORMAT "%qd"
12706 int64 a = 20000001;
12707 int64 b = 40000005;
12709 int does_int64_snprintf_work()
12714 if (sizeof(int64) != 8)
12715 return 0; /* doesn't look like the right size */
12718 snprintf(buf, 100, INT64_FORMAT, c);
12719 if (strcmp(buf, "800000140000005") != 0)
12720 return 0; /* either multiply or snprintf is busted */
12724 exit(! does_int64_snprintf_work());
12727 rm -f conftest$ac_exeext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729 (eval $ac_link) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 echo "$as_me:$LINENO: result: yes" >&5
12739 echo "${ECHO_T}yes" >&6
12740 INT64_FORMAT='"%qd"'
12743 echo "$as_me: program exited with status $ac_status" >&5
12744 echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 ( exit $ac_status )
12747 echo "$as_me:$LINENO: result: no" >&5
12748 echo "${ECHO_T}no" >&6
12749 # Force usage of our own snprintf, since system snprintf is broken
12750 SNPRINTF='snprintf.o'
12751 INT64_FORMAT='"%lld"'
12754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12757 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12760 # here if we previously decided we needed to use our own snprintf
12761 INT64_FORMAT='"%lld"'
12764 # Here if we are not using 'long long int' at all
12765 INT64_FORMAT='"%ld"'
12769 cat >>confdefs.h <<_ACEOF
12770 #define INT64_FORMAT $INT64_FORMAT
12777 for ac_func in strtoll strtoq
12779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12780 echo "$as_me:$LINENO: checking for $ac_func" >&5
12781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12782 if eval "test \"\${$as_ac_var+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12787 #include "confdefs.h"
12788 /* System header to define __stub macros and hopefully few prototypes,
12789 which can conflict with char $ac_func (); below. */
12790 #include <assert.h>
12791 /* Override any gcc2 internal prototype to avoid an error. */
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
12800 #ifdef F77_DUMMY_MAIN
12801 # ifdef __cplusplus
12804 int F77_DUMMY_MAIN() { return 1; }
12809 /* The GNU C library defines this for functions which it implements
12810 to always fail with ENOSYS. Some functions are actually named
12811 something starting with __ and the normal name is an alias. */
12812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -s conftest$ac_exeext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 eval "$as_ac_var=yes"
12836 echo "$as_me: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 eval "$as_ac_var=no"
12840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12844 if test `eval echo '${'$as_ac_var'}'` = yes; then
12845 cat >>confdefs.h <<_ACEOF
12846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12854 for ac_func in strtoull strtouq
12856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12857 echo "$as_me:$LINENO: checking for $ac_func" >&5
12858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12859 if eval "test \"\${$as_ac_var+set}\" = set"; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 cat >conftest.$ac_ext <<_ACEOF
12863 #line $LINENO "configure"
12864 #include "confdefs.h"
12865 /* System header to define __stub macros and hopefully few prototypes,
12866 which can conflict with char $ac_func (); below. */
12867 #include <assert.h>
12868 /* Override any gcc2 internal prototype to avoid an error. */
12872 /* We use char because int might match the return type of a gcc2
12873 builtin and then its argument prototype would still apply. */
12877 #ifdef F77_DUMMY_MAIN
12878 # ifdef __cplusplus
12881 int F77_DUMMY_MAIN() { return 1; }
12886 /* The GNU C library defines this for functions which it implements
12887 to always fail with ENOSYS. Some functions are actually named
12888 something starting with __ and the normal name is an alias. */
12889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 eval "$as_ac_var=yes"
12913 echo "$as_me: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 eval "$as_ac_var=no"
12917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12921 if test `eval echo '${'$as_ac_var'}'` = yes; then
12922 cat >>confdefs.h <<_ACEOF
12923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12930 # Check for one of atexit() or on_exit()
12932 for ac_func in atexit
12934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935 echo "$as_me:$LINENO: checking for $ac_func" >&5
12936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937 if eval "test \"\${$as_ac_var+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 /* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below. */
12945 #include <assert.h>
12946 /* Override any gcc2 internal prototype to avoid an error. */
12950 /* We use char because int might match the return type of a gcc2
12951 builtin and then its argument prototype would still apply. */
12955 #ifdef F77_DUMMY_MAIN
12956 # ifdef __cplusplus
12959 int F77_DUMMY_MAIN() { return 1; }
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979 (eval $ac_link) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -s conftest$ac_exeext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 eval "$as_ac_var=yes"
12991 echo "$as_me: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12993 eval "$as_ac_var=no"
12995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12999 if test `eval echo '${'$as_ac_var'}'` = yes; then
13000 cat >>confdefs.h <<_ACEOF
13001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13006 for ac_func in on_exit
13008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009 echo "$as_me:$LINENO: checking for $ac_func" >&5
13010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13011 if eval "test \"\${$as_ac_var+set}\" = set"; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 cat >conftest.$ac_ext <<_ACEOF
13015 #line $LINENO "configure"
13016 #include "confdefs.h"
13017 /* System header to define __stub macros and hopefully few prototypes,
13018 which can conflict with char $ac_func (); below. */
13019 #include <assert.h>
13020 /* Override any gcc2 internal prototype to avoid an error. */
13024 /* We use char because int might match the return type of a gcc2
13025 builtin and then its argument prototype would still apply. */
13029 #ifdef F77_DUMMY_MAIN
13030 # ifdef __cplusplus
13033 int F77_DUMMY_MAIN() { return 1; }
13038 /* The GNU C library defines this for functions which it implements
13039 to always fail with ENOSYS. Some functions are actually named
13040 something starting with __ and the normal name is an alias. */
13041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -s conftest$ac_exeext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 eval "$as_ac_var=yes"
13065 echo "$as_me: failed program was:" >&5
13066 cat conftest.$ac_ext >&5
13067 eval "$as_ac_var=no"
13069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13073 if test `eval echo '${'$as_ac_var'}'` = yes; then
13074 cat >>confdefs.h <<_ACEOF
13075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13079 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13080 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13081 { (exit 1); exit 1; }; }
13090 echo "$as_me:$LINENO: checking for unsigned long" >&5
13091 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13092 if test "${ac_cv_type_unsigned_long+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 cat >conftest.$ac_ext <<_ACEOF
13096 #line $LINENO "configure"
13097 #include "confdefs.h"
13098 $ac_includes_default
13099 #ifdef F77_DUMMY_MAIN
13100 # ifdef __cplusplus
13103 int F77_DUMMY_MAIN() { return 1; }
13108 if ((unsigned long *) 0)
13110 if (sizeof (unsigned long))
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_cv_type_unsigned_long=yes
13130 echo "$as_me: failed program was:" >&5
13131 cat conftest.$ac_ext >&5
13132 ac_cv_type_unsigned_long=no
13134 rm -f conftest.$ac_objext conftest.$ac_ext
13136 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13137 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13139 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13140 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13141 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 if test "$ac_cv_type_unsigned_long" = yes; then
13145 # The cast to unsigned long works around a bug in the HP C Compiler
13146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13148 # This bug is HP SR number 8606223364.
13149 if test "$cross_compiling" = yes; then
13150 # Depending upon the size, compute the lo and hi bounds.
13151 cat >conftest.$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13153 #include "confdefs.h"
13154 $ac_includes_default
13155 #ifdef F77_DUMMY_MAIN
13156 # ifdef __cplusplus
13159 int F77_DUMMY_MAIN() { return 1; }
13164 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13171 rm -f conftest.$ac_objext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13173 (eval $ac_compile) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 { ac_try='test -s conftest.$ac_objext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13185 cat >conftest.$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13188 $ac_includes_default
13189 #ifdef F77_DUMMY_MAIN
13190 # ifdef __cplusplus
13193 int F77_DUMMY_MAIN() { return 1; }
13198 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207 (eval $ac_compile) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_hi=$ac_mid; break
13219 echo "$as_me: failed program was:" >&5
13220 cat conftest.$ac_ext >&5
13221 ac_lo=`expr $ac_mid + 1`
13222 if test $ac_lo -le $ac_mid; then
13226 ac_mid=`expr 2 '*' $ac_mid + 1`
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13231 echo "$as_me: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13233 cat >conftest.$ac_ext <<_ACEOF
13234 #line $LINENO "configure"
13235 #include "confdefs.h"
13236 $ac_includes_default
13237 #ifdef F77_DUMMY_MAIN
13238 # ifdef __cplusplus
13241 int F77_DUMMY_MAIN() { return 1; }
13246 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13267 cat >conftest.$ac_ext <<_ACEOF
13268 #line $LINENO "configure"
13269 #include "confdefs.h"
13270 $ac_includes_default
13271 #ifdef F77_DUMMY_MAIN
13272 # ifdef __cplusplus
13275 int F77_DUMMY_MAIN() { return 1; }
13280 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13287 rm -f conftest.$ac_objext
13288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289 (eval $ac_compile) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try='test -s conftest.$ac_objext'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_lo=$ac_mid; break
13301 echo "$as_me: failed program was:" >&5
13302 cat conftest.$ac_ext >&5
13303 ac_hi=`expr '(' $ac_mid ')' - 1`
13304 if test $ac_mid -le $ac_hi; then
13308 ac_mid=`expr 2 '*' $ac_mid`
13310 rm -f conftest.$ac_objext conftest.$ac_ext
13313 echo "$as_me: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13317 rm -f conftest.$ac_objext conftest.$ac_ext
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13320 # Binary search between lo and hi bounds.
13321 while test "x$ac_lo" != "x$ac_hi"; do
13322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13323 cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13325 #include "confdefs.h"
13326 $ac_includes_default
13327 #ifdef F77_DUMMY_MAIN
13328 # ifdef __cplusplus
13331 int F77_DUMMY_MAIN() { return 1; }
13336 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13343 rm -f conftest.$ac_objext
13344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13345 (eval $ac_compile) 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13357 echo "$as_me: failed program was:" >&5
13358 cat conftest.$ac_ext >&5
13359 ac_lo=`expr '(' $ac_mid ')' + 1`
13361 rm -f conftest.$ac_objext conftest.$ac_ext
13364 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13365 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13366 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13367 { (exit 1); exit 1; }; } ;;
13370 if test "$cross_compiling" = yes; then
13371 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13372 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13373 { (exit 1); exit 1; }; }
13375 cat >conftest.$ac_ext <<_ACEOF
13376 #line $LINENO "configure"
13377 #include "confdefs.h"
13378 $ac_includes_default
13379 long longval () { return (long) (sizeof (unsigned long)); }
13380 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13382 #include <stdlib.h>
13383 #ifdef F77_DUMMY_MAIN
13384 # ifdef __cplusplus
13387 int F77_DUMMY_MAIN() { return 1; }
13393 FILE *f = fopen ("conftest.val", "w");
13396 if (((long) (sizeof (unsigned long))) < 0)
13398 long i = longval ();
13399 if (i != ((long) (sizeof (unsigned long))))
13401 fprintf (f, "%ld\n", i);
13405 unsigned long i = ulongval ();
13406 if (i != ((long) (sizeof (unsigned long))))
13408 fprintf (f, "%lu\n", i);
13410 exit (ferror (f) || fclose (f) != 0);
13416 rm -f conftest$ac_exeext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418 (eval $ac_link) 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13429 echo "$as_me: program exited with status $ac_status" >&5
13430 echo "$as_me: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 ( exit $ac_status )
13433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13434 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13435 { (exit 1); exit 1; }; }
13437 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13442 ac_cv_sizeof_unsigned_long=0
13445 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13446 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13447 cat >>confdefs.h <<_ACEOF
13448 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13453 cat >>confdefs.h <<_ACEOF
13454 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13458 # Determine memory alignment requirements for the basic C data types.
13460 echo "$as_me:$LINENO: checking for short" >&5
13461 echo $ECHO_N "checking for short... $ECHO_C" >&6
13462 if test "${ac_cv_type_short+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13467 #include "confdefs.h"
13468 $ac_includes_default
13469 #ifdef F77_DUMMY_MAIN
13470 # ifdef __cplusplus
13473 int F77_DUMMY_MAIN() { return 1; }
13480 if (sizeof (short))
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_type_short=yes
13500 echo "$as_me: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13502 ac_cv_type_short=no
13504 rm -f conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13507 echo "${ECHO_T}$ac_cv_type_short" >&6
13509 echo "$as_me:$LINENO: checking alignment of short" >&5
13510 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13511 if test "${pgac_cv_alignof_short+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 if test "$ac_cv_type_short" = yes; then
13515 if test "$cross_compiling" = yes; then
13516 # Depending upon the size, compute the lo and hi bounds.
13517 cat >conftest.$ac_ext <<_ACEOF
13518 #line $LINENO "configure"
13519 #include "confdefs.h"
13520 $ac_includes_default
13521 struct { char filler; short field; } pgac_struct;
13522 #ifdef F77_DUMMY_MAIN
13523 # ifdef __cplusplus
13526 int F77_DUMMY_MAIN() { return 1; }
13531 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -s conftest.$ac_objext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13552 cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13555 $ac_includes_default
13556 struct { char filler; short field; } pgac_struct;
13557 #ifdef F77_DUMMY_MAIN
13558 # ifdef __cplusplus
13561 int F77_DUMMY_MAIN() { return 1; }
13566 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13573 rm -f conftest.$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575 (eval $ac_compile) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_hi=$ac_mid; break
13587 echo "$as_me: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13589 ac_lo=`expr $ac_mid + 1`
13590 if test $ac_lo -le $ac_mid; then
13594 ac_mid=`expr 2 '*' $ac_mid + 1`
13596 rm -f conftest.$ac_objext conftest.$ac_ext
13599 echo "$as_me: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 #include "confdefs.h"
13604 $ac_includes_default
13605 struct { char filler; short field; } pgac_struct;
13606 #ifdef F77_DUMMY_MAIN
13607 # ifdef __cplusplus
13610 int F77_DUMMY_MAIN() { return 1; }
13615 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13622 rm -f conftest.$ac_objext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -s conftest.$ac_objext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13636 cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13639 $ac_includes_default
13640 struct { char filler; short field; } pgac_struct;
13641 #ifdef F77_DUMMY_MAIN
13642 # ifdef __cplusplus
13645 int F77_DUMMY_MAIN() { return 1; }
13650 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -s conftest.$ac_objext'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 ac_lo=$ac_mid; break
13671 echo "$as_me: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13673 ac_hi=`expr '(' $ac_mid ')' - 1`
13674 if test $ac_mid -le $ac_hi; then
13678 ac_mid=`expr 2 '*' $ac_mid`
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13683 echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13689 rm -f conftest.$ac_objext conftest.$ac_ext
13690 # Binary search between lo and hi bounds.
13691 while test "x$ac_lo" != "x$ac_hi"; do
13692 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13693 cat >conftest.$ac_ext <<_ACEOF
13694 #line $LINENO "configure"
13695 #include "confdefs.h"
13696 $ac_includes_default
13697 struct { char filler; short field; } pgac_struct;
13698 #ifdef F77_DUMMY_MAIN
13699 # ifdef __cplusplus
13702 int F77_DUMMY_MAIN() { return 1; }
13707 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13728 echo "$as_me: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 ac_lo=`expr '(' $ac_mid ')' + 1`
13732 rm -f conftest.$ac_objext conftest.$ac_ext
13735 ?*) pgac_cv_alignof_short=$ac_lo;;
13736 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13737 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13738 { (exit 1); exit 1; }; } ;;
13741 if test "$cross_compiling" = yes; then
13742 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13743 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13744 { (exit 1); exit 1; }; }
13746 cat >conftest.$ac_ext <<_ACEOF
13747 #line $LINENO "configure"
13748 #include "confdefs.h"
13749 $ac_includes_default
13750 struct { char filler; short field; } pgac_struct;
13751 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13752 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13754 #include <stdlib.h>
13755 #ifdef F77_DUMMY_MAIN
13756 # ifdef __cplusplus
13759 int F77_DUMMY_MAIN() { return 1; }
13765 FILE *f = fopen ("conftest.val", "w");
13768 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13770 long i = longval ();
13771 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13773 fprintf (f, "%ld\n", i);
13777 unsigned long i = ulongval ();
13778 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13780 fprintf (f, "%lu\n", i);
13782 exit (ferror (f) || fclose (f) != 0);
13788 rm -f conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790 (eval $ac_link) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 pgac_cv_alignof_short=`cat conftest.val`
13801 echo "$as_me: program exited with status $ac_status" >&5
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 ( exit $ac_status )
13805 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13806 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13807 { (exit 1); exit 1; }; }
13809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13814 pgac_cv_alignof_short=0
13817 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13818 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13819 cat >>confdefs.h <<_ACEOF
13820 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13824 echo "$as_me:$LINENO: checking for int" >&5
13825 echo $ECHO_N "checking for int... $ECHO_C" >&6
13826 if test "${ac_cv_type_int+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 cat >conftest.$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13831 #include "confdefs.h"
13832 $ac_includes_default
13833 #ifdef F77_DUMMY_MAIN
13834 # ifdef __cplusplus
13837 int F77_DUMMY_MAIN() { return 1; }
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13864 echo "$as_me: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13868 rm -f conftest.$ac_objext conftest.$ac_ext
13870 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13871 echo "${ECHO_T}$ac_cv_type_int" >&6
13873 echo "$as_me:$LINENO: checking alignment of int" >&5
13874 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13875 if test "${pgac_cv_alignof_int+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 if test "$ac_cv_type_int" = yes; then
13879 if test "$cross_compiling" = yes; then
13880 # Depending upon the size, compute the lo and hi bounds.
13881 cat >conftest.$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13883 #include "confdefs.h"
13884 $ac_includes_default
13885 struct { char filler; int field; } pgac_struct;
13886 #ifdef F77_DUMMY_MAIN
13887 # ifdef __cplusplus
13890 int F77_DUMMY_MAIN() { return 1; }
13895 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13902 rm -f conftest.$ac_objext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904 (eval $ac_compile) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13916 cat >conftest.$ac_ext <<_ACEOF
13917 #line $LINENO "configure"
13918 #include "confdefs.h"
13919 $ac_includes_default
13920 struct { char filler; int field; } pgac_struct;
13921 #ifdef F77_DUMMY_MAIN
13922 # ifdef __cplusplus
13925 int F77_DUMMY_MAIN() { return 1; }
13930 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -s conftest.$ac_objext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 ac_hi=$ac_mid; break
13951 echo "$as_me: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13953 ac_lo=`expr $ac_mid + 1`
13954 if test $ac_lo -le $ac_mid; then
13958 ac_mid=`expr 2 '*' $ac_mid + 1`
13960 rm -f conftest.$ac_objext conftest.$ac_ext
13963 echo "$as_me: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968 $ac_includes_default
13969 struct { char filler; int field; } pgac_struct;
13970 #ifdef F77_DUMMY_MAIN
13971 # ifdef __cplusplus
13974 int F77_DUMMY_MAIN() { return 1; }
13979 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
14000 cat >conftest.$ac_ext <<_ACEOF
14001 #line $LINENO "configure"
14002 #include "confdefs.h"
14003 $ac_includes_default
14004 struct { char filler; int field; } pgac_struct;
14005 #ifdef F77_DUMMY_MAIN
14006 # ifdef __cplusplus
14009 int F77_DUMMY_MAIN() { return 1; }
14014 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_lo=$ac_mid; break
14035 echo "$as_me: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 ac_hi=`expr '(' $ac_mid ')' - 1`
14038 if test $ac_mid -le $ac_hi; then
14042 ac_mid=`expr 2 '*' $ac_mid`
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14051 rm -f conftest.$ac_objext conftest.$ac_ext
14053 rm -f conftest.$ac_objext conftest.$ac_ext
14054 # Binary search between lo and hi bounds.
14055 while test "x$ac_lo" != "x$ac_hi"; do
14056 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 #include "confdefs.h"
14060 $ac_includes_default
14061 struct { char filler; int field; } pgac_struct;
14062 #ifdef F77_DUMMY_MAIN
14063 # ifdef __cplusplus
14066 int F77_DUMMY_MAIN() { return 1; }
14071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
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
14092 echo "$as_me: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 ac_lo=`expr '(' $ac_mid ')' + 1`
14096 rm -f conftest.$ac_objext conftest.$ac_ext
14099 ?*) pgac_cv_alignof_int=$ac_lo;;
14100 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14101 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14102 { (exit 1); exit 1; }; } ;;
14105 if test "$cross_compiling" = yes; then
14106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14107 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14108 { (exit 1); exit 1; }; }
14110 cat >conftest.$ac_ext <<_ACEOF
14111 #line $LINENO "configure"
14112 #include "confdefs.h"
14113 $ac_includes_default
14114 struct { char filler; int field; } pgac_struct;
14115 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14116 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14118 #include <stdlib.h>
14119 #ifdef F77_DUMMY_MAIN
14120 # ifdef __cplusplus
14123 int F77_DUMMY_MAIN() { return 1; }
14129 FILE *f = fopen ("conftest.val", "w");
14132 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14134 long i = longval ();
14135 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14137 fprintf (f, "%ld\n", i);
14141 unsigned long i = ulongval ();
14142 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14144 fprintf (f, "%lu\n", i);
14146 exit (ferror (f) || fclose (f) != 0);
14152 rm -f conftest$ac_exeext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154 (eval $ac_link) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14163 pgac_cv_alignof_int=`cat conftest.val`
14165 echo "$as_me: program exited with status $ac_status" >&5
14166 echo "$as_me: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 ( exit $ac_status )
14169 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14170 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14171 { (exit 1); exit 1; }; }
14173 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14178 pgac_cv_alignof_int=0
14181 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14182 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14183 cat >>confdefs.h <<_ACEOF
14184 #define ALIGNOF_INT $pgac_cv_alignof_int
14188 echo "$as_me:$LINENO: checking for long" >&5
14189 echo $ECHO_N "checking for long... $ECHO_C" >&6
14190 if test "${ac_cv_type_long+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14194 #line $LINENO "configure"
14195 #include "confdefs.h"
14196 $ac_includes_default
14197 #ifdef F77_DUMMY_MAIN
14198 # ifdef __cplusplus
14201 int F77_DUMMY_MAIN() { return 1; }
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216 (eval $ac_compile) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -s conftest.$ac_objext'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_type_long=yes
14228 echo "$as_me: failed program was:" >&5
14229 cat conftest.$ac_ext >&5
14232 rm -f conftest.$ac_objext conftest.$ac_ext
14234 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14235 echo "${ECHO_T}$ac_cv_type_long" >&6
14237 echo "$as_me:$LINENO: checking alignment of long" >&5
14238 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14239 if test "${pgac_cv_alignof_long+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 if test "$ac_cv_type_long" = yes; then
14243 if test "$cross_compiling" = yes; then
14244 # Depending upon the size, compute the lo and hi bounds.
14245 cat >conftest.$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14247 #include "confdefs.h"
14248 $ac_includes_default
14249 struct { char filler; long field; } pgac_struct;
14250 #ifdef F77_DUMMY_MAIN
14251 # ifdef __cplusplus
14254 int F77_DUMMY_MAIN() { return 1; }
14259 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -s conftest.$ac_objext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14280 cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14282 #include "confdefs.h"
14283 $ac_includes_default
14284 struct { char filler; long field; } pgac_struct;
14285 #ifdef F77_DUMMY_MAIN
14286 # ifdef __cplusplus
14289 int F77_DUMMY_MAIN() { return 1; }
14294 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_hi=$ac_mid; break
14315 echo "$as_me: failed program was:" >&5
14316 cat conftest.$ac_ext >&5
14317 ac_lo=`expr $ac_mid + 1`
14318 if test $ac_lo -le $ac_mid; then
14322 ac_mid=`expr 2 '*' $ac_mid + 1`
14324 rm -f conftest.$ac_objext conftest.$ac_ext
14327 echo "$as_me: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; long field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 # ifdef __cplusplus
14338 int F77_DUMMY_MAIN() { return 1; }
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352 (eval $ac_compile) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; long field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 # ifdef __cplusplus
14373 int F77_DUMMY_MAIN() { return 1; }
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_lo=$ac_mid; break
14399 echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_hi=`expr '(' $ac_mid ')' - 1`
14402 if test $ac_mid -le $ac_hi; then
14406 ac_mid=`expr 2 '*' $ac_mid`
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14415 rm -f conftest.$ac_objext conftest.$ac_ext
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14418 # Binary search between lo and hi bounds.
14419 while test "x$ac_lo" != "x$ac_hi"; do
14420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14421 cat >conftest.$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14423 #include "confdefs.h"
14424 $ac_includes_default
14425 struct { char filler; long field; } pgac_struct;
14426 #ifdef F77_DUMMY_MAIN
14427 # ifdef __cplusplus
14430 int F77_DUMMY_MAIN() { return 1; }
14435 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14456 echo "$as_me: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14458 ac_lo=`expr '(' $ac_mid ')' + 1`
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14463 ?*) pgac_cv_alignof_long=$ac_lo;;
14464 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14465 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14466 { (exit 1); exit 1; }; } ;;
14469 if test "$cross_compiling" = yes; then
14470 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14471 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14472 { (exit 1); exit 1; }; }
14474 cat >conftest.$ac_ext <<_ACEOF
14475 #line $LINENO "configure"
14476 #include "confdefs.h"
14477 $ac_includes_default
14478 struct { char filler; long field; } pgac_struct;
14479 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14480 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14482 #include <stdlib.h>
14483 #ifdef F77_DUMMY_MAIN
14484 # ifdef __cplusplus
14487 int F77_DUMMY_MAIN() { return 1; }
14493 FILE *f = fopen ("conftest.val", "w");
14496 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14498 long i = longval ();
14499 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14501 fprintf (f, "%ld\n", i);
14505 unsigned long i = ulongval ();
14506 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14508 fprintf (f, "%lu\n", i);
14510 exit (ferror (f) || fclose (f) != 0);
14516 rm -f conftest$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518 (eval $ac_link) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 pgac_cv_alignof_long=`cat conftest.val`
14529 echo "$as_me: program exited with status $ac_status" >&5
14530 echo "$as_me: failed program was:" >&5
14531 cat conftest.$ac_ext >&5
14532 ( exit $ac_status )
14533 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14534 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14535 { (exit 1); exit 1; }; }
14537 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14542 pgac_cv_alignof_long=0
14545 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14546 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14547 cat >>confdefs.h <<_ACEOF
14548 #define ALIGNOF_LONG $pgac_cv_alignof_long
14552 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14553 echo "$as_me:$LINENO: checking for long long int" >&5
14554 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14555 if test "${ac_cv_type_long_long_int+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 #ifdef F77_DUMMY_MAIN
14563 # ifdef __cplusplus
14566 int F77_DUMMY_MAIN() { return 1; }
14571 if ((long long int *) 0)
14573 if (sizeof (long long int))
14579 rm -f conftest.$ac_objext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581 (eval $ac_compile) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -s conftest.$ac_objext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14591 ac_cv_type_long_long_int=yes
14593 echo "$as_me: failed program was:" >&5
14594 cat conftest.$ac_ext >&5
14595 ac_cv_type_long_long_int=no
14597 rm -f conftest.$ac_objext conftest.$ac_ext
14599 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14600 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14602 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14603 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14604 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 if test "$ac_cv_type_long_long_int" = yes; then
14608 if test "$cross_compiling" = yes; then
14609 # Depending upon the size, compute the lo and hi bounds.
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 #include "confdefs.h"
14613 $ac_includes_default
14614 struct { char filler; long long int field; } pgac_struct;
14615 #ifdef F77_DUMMY_MAIN
14616 # ifdef __cplusplus
14619 int F77_DUMMY_MAIN() { return 1; }
14624 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14631 rm -f conftest.$ac_objext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14633 (eval $ac_compile) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14645 cat >conftest.$ac_ext <<_ACEOF
14646 #line $LINENO "configure"
14647 #include "confdefs.h"
14648 $ac_includes_default
14649 struct { char filler; long long int field; } pgac_struct;
14650 #ifdef F77_DUMMY_MAIN
14651 # ifdef __cplusplus
14654 int F77_DUMMY_MAIN() { return 1; }
14659 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -s conftest.$ac_objext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_hi=$ac_mid; break
14680 echo "$as_me: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 ac_lo=`expr $ac_mid + 1`
14683 if test $ac_lo -le $ac_mid; then
14687 ac_mid=`expr 2 '*' $ac_mid + 1`
14689 rm -f conftest.$ac_objext conftest.$ac_ext
14692 echo "$as_me: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; long long int field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 # ifdef __cplusplus
14703 int F77_DUMMY_MAIN() { return 1; }
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14729 cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 #include "confdefs.h"
14732 $ac_includes_default
14733 struct { char filler; long long int field; } pgac_struct;
14734 #ifdef F77_DUMMY_MAIN
14735 # ifdef __cplusplus
14738 int F77_DUMMY_MAIN() { return 1; }
14743 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_lo=$ac_mid; break
14764 echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 ac_hi=`expr '(' $ac_mid ')' - 1`
14767 if test $ac_mid -le $ac_hi; then
14771 ac_mid=`expr 2 '*' $ac_mid`
14773 rm -f conftest.$ac_objext conftest.$ac_ext
14776 echo "$as_me: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14782 rm -f conftest.$ac_objext conftest.$ac_ext
14783 # Binary search between lo and hi bounds.
14784 while test "x$ac_lo" != "x$ac_hi"; do
14785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14786 cat >conftest.$ac_ext <<_ACEOF
14787 #line $LINENO "configure"
14788 #include "confdefs.h"
14789 $ac_includes_default
14790 struct { char filler; long long int field; } pgac_struct;
14791 #ifdef F77_DUMMY_MAIN
14792 # ifdef __cplusplus
14795 int F77_DUMMY_MAIN() { return 1; }
14800 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809 (eval $ac_compile) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -s conftest.$ac_objext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14821 echo "$as_me: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14823 ac_lo=`expr '(' $ac_mid ')' + 1`
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14828 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14829 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14830 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14831 { (exit 1); exit 1; }; } ;;
14834 if test "$cross_compiling" = yes; then
14835 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14836 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14837 { (exit 1); exit 1; }; }
14839 cat >conftest.$ac_ext <<_ACEOF
14840 #line $LINENO "configure"
14841 #include "confdefs.h"
14842 $ac_includes_default
14843 struct { char filler; long long int field; } pgac_struct;
14844 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14845 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14847 #include <stdlib.h>
14848 #ifdef F77_DUMMY_MAIN
14849 # ifdef __cplusplus
14852 int F77_DUMMY_MAIN() { return 1; }
14858 FILE *f = fopen ("conftest.val", "w");
14861 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14863 long i = longval ();
14864 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14866 fprintf (f, "%ld\n", i);
14870 unsigned long i = ulongval ();
14871 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14873 fprintf (f, "%lu\n", i);
14875 exit (ferror (f) || fclose (f) != 0);
14881 rm -f conftest$ac_exeext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14883 (eval $ac_link) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 pgac_cv_alignof_long_long_int=`cat conftest.val`
14894 echo "$as_me: program exited with status $ac_status" >&5
14895 echo "$as_me: failed program was:" >&5
14896 cat conftest.$ac_ext >&5
14897 ( exit $ac_status )
14898 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14899 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14900 { (exit 1); exit 1; }; }
14902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14907 pgac_cv_alignof_long_long_int=0
14910 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14911 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14912 cat >>confdefs.h <<_ACEOF
14913 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14918 echo "$as_me:$LINENO: checking for double" >&5
14919 echo $ECHO_N "checking for double... $ECHO_C" >&6
14920 if test "${ac_cv_type_double+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 #include "confdefs.h"
14926 $ac_includes_default
14927 #ifdef F77_DUMMY_MAIN
14928 # ifdef __cplusplus
14931 int F77_DUMMY_MAIN() { return 1; }
14938 if (sizeof (double))
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946 (eval $ac_compile) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_type_double=yes
14958 echo "$as_me: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 ac_cv_type_double=no
14962 rm -f conftest.$ac_objext conftest.$ac_ext
14964 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14965 echo "${ECHO_T}$ac_cv_type_double" >&6
14967 echo "$as_me:$LINENO: checking alignment of double" >&5
14968 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14969 if test "${pgac_cv_alignof_double+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 if test "$ac_cv_type_double" = yes; then
14973 if test "$cross_compiling" = yes; then
14974 # Depending upon the size, compute the lo and hi bounds.
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14977 #include "confdefs.h"
14978 $ac_includes_default
14979 struct { char filler; double field; } pgac_struct;
14980 #ifdef F77_DUMMY_MAIN
14981 # ifdef __cplusplus
14984 int F77_DUMMY_MAIN() { return 1; }
14989 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998 (eval $ac_compile) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15010 cat >conftest.$ac_ext <<_ACEOF
15011 #line $LINENO "configure"
15012 #include "confdefs.h"
15013 $ac_includes_default
15014 struct { char filler; double field; } pgac_struct;
15015 #ifdef F77_DUMMY_MAIN
15016 # ifdef __cplusplus
15019 int F77_DUMMY_MAIN() { return 1; }
15024 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15031 rm -f conftest.$ac_objext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033 (eval $ac_compile) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_hi=$ac_mid; break
15045 echo "$as_me: failed program was:" >&5
15046 cat conftest.$ac_ext >&5
15047 ac_lo=`expr $ac_mid + 1`
15048 if test $ac_lo -le $ac_mid; then
15052 ac_mid=`expr 2 '*' $ac_mid + 1`
15054 rm -f conftest.$ac_objext conftest.$ac_ext
15057 echo "$as_me: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 $ac_includes_default
15063 struct { char filler; double field; } pgac_struct;
15064 #ifdef F77_DUMMY_MAIN
15065 # ifdef __cplusplus
15068 int F77_DUMMY_MAIN() { return 1; }
15073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line $LINENO "configure"
15096 #include "confdefs.h"
15097 $ac_includes_default
15098 struct { char filler; double field; } pgac_struct;
15099 #ifdef F77_DUMMY_MAIN
15100 # ifdef __cplusplus
15103 int F77_DUMMY_MAIN() { return 1; }
15108 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15115 rm -f conftest.$ac_objext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117 (eval $ac_compile) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -s conftest.$ac_objext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_lo=$ac_mid; break
15129 echo "$as_me: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 ac_hi=`expr '(' $ac_mid ')' - 1`
15132 if test $ac_mid -le $ac_hi; then
15136 ac_mid=`expr 2 '*' $ac_mid`
15138 rm -f conftest.$ac_objext conftest.$ac_ext
15141 echo "$as_me: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15145 rm -f conftest.$ac_objext conftest.$ac_ext
15147 rm -f conftest.$ac_objext conftest.$ac_ext
15148 # Binary search between lo and hi bounds.
15149 while test "x$ac_lo" != "x$ac_hi"; do
15150 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15151 cat >conftest.$ac_ext <<_ACEOF
15152 #line $LINENO "configure"
15153 #include "confdefs.h"
15154 $ac_includes_default
15155 struct { char filler; double field; } pgac_struct;
15156 #ifdef F77_DUMMY_MAIN
15157 # ifdef __cplusplus
15160 int F77_DUMMY_MAIN() { return 1; }
15165 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15172 rm -f conftest.$ac_objext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174 (eval $ac_compile) 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15186 echo "$as_me: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 ac_lo=`expr '(' $ac_mid ')' + 1`
15190 rm -f conftest.$ac_objext conftest.$ac_ext
15193 ?*) pgac_cv_alignof_double=$ac_lo;;
15194 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15195 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15196 { (exit 1); exit 1; }; } ;;
15199 if test "$cross_compiling" = yes; then
15200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15201 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15202 { (exit 1); exit 1; }; }
15204 cat >conftest.$ac_ext <<_ACEOF
15205 #line $LINENO "configure"
15206 #include "confdefs.h"
15207 $ac_includes_default
15208 struct { char filler; double field; } pgac_struct;
15209 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15210 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15212 #include <stdlib.h>
15213 #ifdef F77_DUMMY_MAIN
15214 # ifdef __cplusplus
15217 int F77_DUMMY_MAIN() { return 1; }
15223 FILE *f = fopen ("conftest.val", "w");
15226 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15228 long i = longval ();
15229 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15231 fprintf (f, "%ld\n", i);
15235 unsigned long i = ulongval ();
15236 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15238 fprintf (f, "%lu\n", i);
15240 exit (ferror (f) || fclose (f) != 0);
15246 rm -f conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 pgac_cv_alignof_double=`cat conftest.val`
15259 echo "$as_me: program exited with status $ac_status" >&5
15260 echo "$as_me: failed program was:" >&5
15261 cat conftest.$ac_ext >&5
15262 ( exit $ac_status )
15263 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15264 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15265 { (exit 1); exit 1; }; }
15267 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15272 pgac_cv_alignof_double=0
15275 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15276 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15277 cat >>confdefs.h <<_ACEOF
15278 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15283 # Compute maximum alignment of any basic type.
15284 # We assume long's alignment is at least as strong as char, short, or int;
15285 # but we must check long long (if it exists) and double.
15287 MAX_ALIGNOF=$pgac_cv_alignof_long
15288 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15289 MAX_ALIGNOF=$pgac_cv_alignof_double
15291 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15292 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15295 cat >>confdefs.h <<_ACEOF
15296 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15301 # Some platforms predefine the types int8, int16, etc. Only check
15302 # a (hopefully) representative subset.
15303 echo "$as_me:$LINENO: checking for int8" >&5
15304 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15305 if test "${ac_cv_type_int8+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 cat >conftest.$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 #include "confdefs.h"
15312 #ifdef HAVE_SUPPORTDEFS_H
15313 #include <SupportDefs.h>
15316 #ifdef F77_DUMMY_MAIN
15317 # ifdef __cplusplus
15320 int F77_DUMMY_MAIN() { return 1; }
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_type_int8=yes
15347 echo "$as_me: failed program was:" >&5
15348 cat conftest.$ac_ext >&5
15351 rm -f conftest.$ac_objext conftest.$ac_ext
15353 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15354 echo "${ECHO_T}$ac_cv_type_int8" >&6
15355 if test $ac_cv_type_int8 = yes; then
15357 cat >>confdefs.h <<_ACEOF
15358 #define HAVE_INT8 1
15363 echo "$as_me:$LINENO: checking for uint8" >&5
15364 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15365 if test "${ac_cv_type_uint8+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 cat >conftest.$ac_ext <<_ACEOF
15369 #line $LINENO "configure"
15370 #include "confdefs.h"
15372 #ifdef HAVE_SUPPORTDEFS_H
15373 #include <SupportDefs.h>
15376 #ifdef F77_DUMMY_MAIN
15377 # ifdef __cplusplus
15380 int F77_DUMMY_MAIN() { return 1; }
15387 if (sizeof (uint8))
15393 rm -f conftest.$ac_objext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15395 (eval $ac_compile) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -s conftest.$ac_objext'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_cv_type_uint8=yes
15407 echo "$as_me: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 ac_cv_type_uint8=no
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15413 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15414 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15415 if test $ac_cv_type_uint8 = yes; then
15417 cat >>confdefs.h <<_ACEOF
15418 #define HAVE_UINT8 1
15423 echo "$as_me:$LINENO: checking for int64" >&5
15424 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15425 if test "${ac_cv_type_int64+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 cat >conftest.$ac_ext <<_ACEOF
15429 #line $LINENO "configure"
15430 #include "confdefs.h"
15432 #ifdef HAVE_SUPPORTDEFS_H
15433 #include <SupportDefs.h>
15436 #ifdef F77_DUMMY_MAIN
15437 # ifdef __cplusplus
15440 int F77_DUMMY_MAIN() { return 1; }
15447 if (sizeof (int64))
15453 rm -f conftest.$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -s conftest.$ac_objext'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_cv_type_int64=yes
15467 echo "$as_me: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15469 ac_cv_type_int64=no
15471 rm -f conftest.$ac_objext conftest.$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15474 echo "${ECHO_T}$ac_cv_type_int64" >&6
15475 if test $ac_cv_type_int64 = yes; then
15477 cat >>confdefs.h <<_ACEOF
15478 #define HAVE_INT64 1
15483 echo "$as_me:$LINENO: checking for uint64" >&5
15484 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15485 if test "${ac_cv_type_uint64+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 cat >conftest.$ac_ext <<_ACEOF
15489 #line $LINENO "configure"
15490 #include "confdefs.h"
15492 #ifdef HAVE_SUPPORTDEFS_H
15493 #include <SupportDefs.h>
15496 #ifdef F77_DUMMY_MAIN
15497 # ifdef __cplusplus
15500 int F77_DUMMY_MAIN() { return 1; }
15507 if (sizeof (uint64))
15513 rm -f conftest.$ac_objext
15514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15515 (eval $ac_compile) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -s conftest.$ac_objext'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; }; then
15525 ac_cv_type_uint64=yes
15527 echo "$as_me: failed program was:" >&5
15528 cat conftest.$ac_ext >&5
15529 ac_cv_type_uint64=no
15531 rm -f conftest.$ac_objext conftest.$ac_ext
15533 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15534 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15535 if test $ac_cv_type_uint64 = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_UINT64 1
15545 # We also check for sig_atomic_t, which *should* be defined per ANSI
15546 # C, but is missing on some old platforms.
15547 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15548 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15549 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15554 #include "confdefs.h"
15555 #include <signal.h>
15557 #ifdef F77_DUMMY_MAIN
15558 # ifdef __cplusplus
15561 int F77_DUMMY_MAIN() { return 1; }
15566 if ((sig_atomic_t *) 0)
15568 if (sizeof (sig_atomic_t))
15574 rm -f conftest.$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -s conftest.$ac_objext'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; }; then
15586 ac_cv_type_sig_atomic_t=yes
15588 echo "$as_me: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 ac_cv_type_sig_atomic_t=no
15592 rm -f conftest.$ac_objext conftest.$ac_ext
15594 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15595 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15596 if test $ac_cv_type_sig_atomic_t = yes; then
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_SIG_ATOMIC_T 1
15607 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15608 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15609 if test "${pgac_cv_func_posix_signals+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 cat >conftest.$ac_ext <<_ACEOF
15613 #line $LINENO "configure"
15614 #include "confdefs.h"
15615 #include <signal.h>
15617 #ifdef F77_DUMMY_MAIN
15618 # ifdef __cplusplus
15621 int F77_DUMMY_MAIN() { return 1; }
15626 struct sigaction act, oact;
15627 sigemptyset(&act.sa_mask);
15628 act.sa_flags = SA_RESTART;
15629 sigaction(0, &act, &oact);
15634 rm -f conftest.$ac_objext conftest$ac_exeext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636 (eval $ac_link) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -s conftest$ac_exeext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 pgac_cv_func_posix_signals=yes
15648 echo "$as_me: failed program was:" >&5
15649 cat conftest.$ac_ext >&5
15650 pgac_cv_func_posix_signals=no
15652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15654 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15655 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15656 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_POSIX_SIGNALS
15663 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15667 # Select semaphore implementation type.
15668 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15670 cat >>confdefs.h <<\_ACEOF
15671 #define USE_NAMED_POSIX_SEMAPHORES 1
15674 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15676 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15678 cat >>confdefs.h <<\_ACEOF
15679 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15682 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15685 cat >>confdefs.h <<\_ACEOF
15686 #define USE_SYSV_SEMAPHORES 1
15689 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15694 # Select shared-memory implementation type.
15696 cat >>confdefs.h <<\_ACEOF
15697 #define USE_SYSV_SHARED_MEMORY 1
15700 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15703 if test "$enable_nls" = yes ; then
15705 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15706 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15707 if test "${ac_cv_search_gettext+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 ac_func_search_save_LIBS=$LIBS
15711 ac_cv_search_gettext=no
15712 cat >conftest.$ac_ext <<_ACEOF
15713 #line $LINENO "configure"
15714 #include "confdefs.h"
15716 /* Override any gcc2 internal prototype to avoid an error. */
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15723 #ifdef F77_DUMMY_MAIN
15724 # ifdef __cplusplus
15727 int F77_DUMMY_MAIN() { return 1; }
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739 (eval $ac_link) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_search_gettext="none required"
15751 echo "$as_me: failed program was:" >&5
15752 cat conftest.$ac_ext >&5
15754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15755 if test "$ac_cv_search_gettext" = no; then
15756 for ac_lib in intl; do
15757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15758 cat >conftest.$ac_ext <<_ACEOF
15759 #line $LINENO "configure"
15760 #include "confdefs.h"
15762 /* Override any gcc2 internal prototype to avoid an error. */
15766 /* We use char because int might match the return type of a gcc2
15767 builtin and then its argument prototype would still apply. */
15769 #ifdef F77_DUMMY_MAIN
15770 # ifdef __cplusplus
15773 int F77_DUMMY_MAIN() { return 1; }
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785 (eval $ac_link) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -s conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_search_gettext="-l$ac_lib"
15798 echo "$as_me: failed program was:" >&5
15799 cat conftest.$ac_ext >&5
15801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15804 LIBS=$ac_func_search_save_LIBS
15806 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15807 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15808 if test "$ac_cv_search_gettext" != no; then
15809 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15812 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15813 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15814 { (exit 1); exit 1; }; }
15817 if test "${ac_cv_header_libintl_h+set}" = set; then
15818 echo "$as_me:$LINENO: checking for libintl.h" >&5
15819 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15820 if test "${ac_cv_header_libintl_h+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15824 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15826 # Is the header compilable?
15827 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15828 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line $LINENO "configure"
15831 #include "confdefs.h"
15832 $ac_includes_default
15833 #include <libintl.h>
15835 rm -f conftest.$ac_objext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837 (eval $ac_compile) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_header_compiler=yes
15849 echo "$as_me: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 ac_header_compiler=no
15853 rm -f conftest.$ac_objext conftest.$ac_ext
15854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15855 echo "${ECHO_T}$ac_header_compiler" >&6
15857 # Is the header present?
15858 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15859 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15862 #include "confdefs.h"
15863 #include <libintl.h>
15865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15868 egrep -v '^ *\+' conftest.er1 >conftest.err
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } >/dev/null; then
15873 if test -s conftest.err; then
15874 ac_cpp_err=$ac_c_preproc_warn_flag
15881 if test -z "$ac_cpp_err"; then
15882 ac_header_preproc=yes
15884 echo "$as_me: failed program was:" >&5
15885 cat conftest.$ac_ext >&5
15886 ac_header_preproc=no
15888 rm -f conftest.err conftest.$ac_ext
15889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15890 echo "${ECHO_T}$ac_header_preproc" >&6
15892 # So? What about this header?
15893 case $ac_header_compiler:$ac_header_preproc in
15895 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15896 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15898 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15900 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15901 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15902 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15903 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15905 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15907 echo "$as_me:$LINENO: checking for libintl.h" >&5
15908 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15909 if test "${ac_cv_header_libintl_h+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 ac_cv_header_libintl_h=$ac_header_preproc
15914 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15915 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15918 if test $ac_cv_header_libintl_h = yes; then
15921 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15922 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15923 { (exit 1); exit 1; }; }
15927 for ac_prog in msgfmt
15929 # Extract the first word of "$ac_prog", so it can be a program name with args.
15930 set dummy $ac_prog; ac_word=$2
15931 echo "$as_me:$LINENO: checking for $ac_word" >&5
15932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15933 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 if test -n "$MSGFMT"; then
15937 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940 for as_dir in $PATH
15943 test -z "$as_dir" && as_dir=.
15944 for ac_exec_ext in '' $ac_executable_extensions; do
15945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15946 ac_cv_prog_MSGFMT="$ac_prog"
15947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 MSGFMT=$ac_cv_prog_MSGFMT
15956 if test -n "$MSGFMT"; then
15957 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15958 echo "${ECHO_T}$MSGFMT" >&6
15960 echo "$as_me:$LINENO: result: no" >&5
15961 echo "${ECHO_T}no" >&6
15964 test -n "$MSGFMT" && break
15967 if test -z "$MSGFMT"; then
15968 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15969 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15970 { (exit 1); exit 1; }; }
15972 for ac_prog in msgmerge
15974 # Extract the first word of "$ac_prog", so it can be a program name with args.
15975 set dummy $ac_prog; ac_word=$2
15976 echo "$as_me:$LINENO: checking for $ac_word" >&5
15977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15978 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 if test -n "$MSGMERGE"; then
15982 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15985 for as_dir in $PATH
15988 test -z "$as_dir" && as_dir=.
15989 for ac_exec_ext in '' $ac_executable_extensions; do
15990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15991 ac_cv_prog_MSGMERGE="$ac_prog"
15992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16000 MSGMERGE=$ac_cv_prog_MSGMERGE
16001 if test -n "$MSGMERGE"; then
16002 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16003 echo "${ECHO_T}$MSGMERGE" >&6
16005 echo "$as_me:$LINENO: result: no" >&5
16006 echo "${ECHO_T}no" >&6
16009 test -n "$MSGMERGE" && break
16012 for ac_prog in xgettext
16014 # Extract the first word of "$ac_prog", so it can be a program name with args.
16015 set dummy $ac_prog; ac_word=$2
16016 echo "$as_me:$LINENO: checking for $ac_word" >&5
16017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16018 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 if test -n "$XGETTEXT"; then
16022 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025 for as_dir in $PATH
16028 test -z "$as_dir" && as_dir=.
16029 for ac_exec_ext in '' $ac_executable_extensions; do
16030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16031 ac_cv_prog_XGETTEXT="$ac_prog"
16032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16040 XGETTEXT=$ac_cv_prog_XGETTEXT
16041 if test -n "$XGETTEXT"; then
16042 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16043 echo "${ECHO_T}$XGETTEXT" >&6
16045 echo "$as_me:$LINENO: result: no" >&5
16046 echo "${ECHO_T}no" >&6
16049 test -n "$XGETTEXT" && break
16053 # Note: share/locale is always the default, independent of $datadir
16054 localedir='${prefix}/share/locale'
16055 if test x"$prefix" = x"NONE"; then
16056 exp_localedir="$ac_default_prefix/share/locale"
16058 exp_localedir="$prefix/share/locale"
16063 cat >>confdefs.h <<_ACEOF
16064 #define LOCALEDIR "$exp_localedir"
16070 if test "$with_CXX" = yes; then
16074 ac_cpp='$CXXCPP $CPPFLAGS'
16075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16079 if test "${ac_cv_header_string+set}" = set; then
16080 echo "$as_me:$LINENO: checking for string" >&5
16081 echo $ECHO_N "checking for string... $ECHO_C" >&6
16082 if test "${ac_cv_header_string+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16086 echo "${ECHO_T}$ac_cv_header_string" >&6
16088 # Is the header compilable?
16089 echo "$as_me:$LINENO: checking string usability" >&5
16090 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16092 #line $LINENO "configure"
16093 #include "confdefs.h"
16094 $ac_includes_default
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099 (eval $ac_compile) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16111 echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 ac_header_compiler=no
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16117 echo "${ECHO_T}$ac_header_compiler" >&6
16119 # Is the header present?
16120 echo "$as_me:$LINENO: checking string presence" >&5
16121 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16122 cat >conftest.$ac_ext <<_ACEOF
16123 #line $LINENO "configure"
16124 #include "confdefs.h"
16127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16130 egrep -v '^ *\+' conftest.er1 >conftest.err
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } >/dev/null; then
16135 if test -s conftest.err; then
16136 ac_cpp_err=$ac_cxx_preproc_warn_flag
16143 if test -z "$ac_cpp_err"; then
16144 ac_header_preproc=yes
16146 echo "$as_me: failed program was:" >&5
16147 cat conftest.$ac_ext >&5
16148 ac_header_preproc=no
16150 rm -f conftest.err conftest.$ac_ext
16151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16152 echo "${ECHO_T}$ac_header_preproc" >&6
16154 # So? What about this header?
16155 case $ac_header_compiler:$ac_header_preproc in
16157 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16158 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16160 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16162 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16163 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16165 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16167 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16169 echo "$as_me:$LINENO: checking for string" >&5
16170 echo $ECHO_N "checking for string... $ECHO_C" >&6
16171 if test "${ac_cv_header_string+set}" = set; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 ac_cv_header_string=$ac_header_preproc
16176 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16177 echo "${ECHO_T}$ac_cv_header_string" >&6
16180 if test $ac_cv_header_string = yes; then
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_CXX_STRING_HEADER 1
16187 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16188 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16189 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 #include "confdefs.h"
16196 #include <stdlib.h>
16197 #include <string.h>
16199 #ifdef F77_DUMMY_MAIN
16200 # ifdef __cplusplus
16203 int F77_DUMMY_MAIN() { return 1; }
16208 string foo = "test"
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } &&
16219 { ac_try='test -s conftest.$ac_objext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 pgac_cv_class_string_in_string_h=yes
16227 echo "$as_me: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16229 pgac_cv_class_string_in_string_h=no
16231 rm -f conftest.$ac_objext conftest.$ac_ext
16233 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16234 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16236 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16237 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16238 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16239 { (exit 1); exit 1; }; }
16246 ac_cpp='$CPP $CPPFLAGS'
16247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16252 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16253 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16254 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 ac_cpp='$CXXCPP $CPPFLAGS'
16260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16264 cat >conftest.$ac_ext <<_ACEOF
16265 #line $LINENO "configure"
16266 #include "confdefs.h"
16268 #include <stdlib.h>
16269 #ifdef HAVE_CXX_STRING_HEADER
16272 using namespace std;
16274 #ifdef F77_DUMMY_MAIN
16275 # ifdef __cplusplus
16278 int F77_DUMMY_MAIN() { return 1; }
16288 rm -f conftest.$ac_objext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -s conftest.$ac_objext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 pgac_cv_cxx_namespace_std=yes
16302 echo "$as_me: failed program was:" >&5
16303 cat conftest.$ac_ext >&5
16304 pgac_cv_cxx_namespace_std=no
16306 rm -f conftest.$ac_objext conftest.$ac_ext
16308 ac_cpp='$CPP $CPPFLAGS'
16309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16314 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16315 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16317 if test $pgac_cv_cxx_namespace_std = yes ; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_NAMESPACE_STD 1
16327 # Check for Tcl configuration script tclConfig.sh
16328 if test "$with_tcl" = yes; then
16329 for ac_prog in tclsh tcl
16331 # Extract the first word of "$ac_prog", so it can be a program name with args.
16332 set dummy $ac_prog; ac_word=$2
16333 echo "$as_me:$LINENO: checking for $ac_word" >&5
16334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16335 if test "${ac_cv_path_TCLSH+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16344 for as_dir in $PATH
16347 test -z "$as_dir" && as_dir=.
16348 for ac_exec_ext in '' $ac_executable_extensions; do
16349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16350 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16360 TCLSH=$ac_cv_path_TCLSH
16362 if test -n "$TCLSH"; then
16363 echo "$as_me:$LINENO: result: $TCLSH" >&5
16364 echo "${ECHO_T}$TCLSH" >&6
16366 echo "$as_me:$LINENO: result: no" >&5
16367 echo "${ECHO_T}no" >&6
16370 test -n "$TCLSH" && break
16373 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16374 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16375 # Let user override test
16376 if test -z "$TCL_CONFIG_SH"; then
16377 pgac_test_dirs="$with_tclconfig"
16379 set X $pgac_test_dirs; shift
16380 if test $# -eq 0; then
16381 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16382 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16383 { (exit 1); exit 1; }; }
16384 set X `echo 'puts $auto_path' | $TCLSH`; shift
16388 if test -r "$pgac_dir/tclConfig.sh"; then
16389 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16395 if test -z "$TCL_CONFIG_SH"; then
16396 echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6
16398 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16399 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16400 { (exit 1); exit 1; }; }
16402 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16403 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16410 # Check for Tk configuration script tkConfig.sh
16411 if test "$with_tk" = yes; then
16412 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16413 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16414 # Let user override test
16415 if test -z "$TK_CONFIG_SH"; then
16416 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16418 set X $pgac_test_dirs; shift
16419 if test $# -eq 0; then
16420 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16421 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16422 { (exit 1); exit 1; }; }
16423 set X `echo 'puts $auto_path' | $TCLSH`; shift
16427 if test -r "$pgac_dir/tkConfig.sh"; then
16428 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16434 if test -z "$TK_CONFIG_SH"; then
16435 echo "$as_me:$LINENO: result: no" >&5
16436 echo "${ECHO_T}no" >&6
16437 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16438 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16439 { (exit 1); exit 1; }; }
16441 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16442 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16451 # Check for DocBook and tools
16453 for ac_prog in onsgmls nsgmls
16455 # Extract the first word of "$ac_prog", so it can be a program name with args.
16456 set dummy $ac_prog; ac_word=$2
16457 echo "$as_me:$LINENO: checking for $ac_word" >&5
16458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16459 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 if test -n "$NSGMLS"; then
16463 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16466 for as_dir in $PATH
16469 test -z "$as_dir" && as_dir=.
16470 for ac_exec_ext in '' $ac_executable_extensions; do
16471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16472 ac_cv_prog_NSGMLS="$ac_prog"
16473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16481 NSGMLS=$ac_cv_prog_NSGMLS
16482 if test -n "$NSGMLS"; then
16483 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16484 echo "${ECHO_T}$NSGMLS" >&6
16486 echo "$as_me:$LINENO: result: no" >&5
16487 echo "${ECHO_T}no" >&6
16490 test -n "$NSGMLS" && break
16493 for ac_prog in openjade jade
16495 # Extract the first word of "$ac_prog", so it can be a program name with args.
16496 set dummy $ac_prog; ac_word=$2
16497 echo "$as_me:$LINENO: checking for $ac_word" >&5
16498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16499 if test "${ac_cv_prog_JADE+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 if test -n "$JADE"; then
16503 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16506 for as_dir in $PATH
16509 test -z "$as_dir" && as_dir=.
16510 for ac_exec_ext in '' $ac_executable_extensions; do
16511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16512 ac_cv_prog_JADE="$ac_prog"
16513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16521 JADE=$ac_cv_prog_JADE
16522 if test -n "$JADE"; then
16523 echo "$as_me:$LINENO: result: $JADE" >&5
16524 echo "${ECHO_T}$JADE" >&6
16526 echo "$as_me:$LINENO: result: no" >&5
16527 echo "${ECHO_T}no" >&6
16530 test -n "$JADE" && break
16534 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16535 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16536 if test "${pgac_cv_check_docbook+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 cat >conftest.sgml <<EOF
16540 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16542 <title>test</title>
16544 <title>random</title>
16546 <title>testsect</title>
16553 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16554 if test $? -eq 0; then
16555 pgac_cv_check_docbook=yes
16557 pgac_cv_check_docbook=no
16559 rm -f conftest.sgml
16561 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16562 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16564 have_docbook=$pgac_cv_check_docbook
16567 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16568 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16569 if test "${pgac_cv_path_stylesheets+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 if test -n "$DOCBOOKSTYLE"; then
16573 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16575 for pgac_prefix in /usr /usr/local /opt; do
16576 for pgac_infix in share lib; do
16577 for pgac_postfix in \
16578 sgml/stylesheets/nwalsh-modular \
16579 sgml/stylesheets/docbook \
16580 sgml/docbook/dsssl/modular \
16581 sgml/docbook/dsssl-stylesheets
16583 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16584 if test -r "$pgac_candidate/html/docbook.dsl" \
16585 && test -r "$pgac_candidate/print/docbook.dsl"
16587 pgac_cv_path_stylesheets=$pgac_candidate
16596 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16598 if test -n "$DOCBOOKSTYLE"; then
16599 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16600 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16602 echo "$as_me:$LINENO: result: no" >&5
16603 echo "${ECHO_T}no" >&6
16605 if test -n "$DOCBOOKSTYLE"; then
16606 for ac_prog in collateindex.pl
16608 # Extract the first word of "$ac_prog", so it can be a program name with args.
16609 set dummy $ac_prog; ac_word=$2
16610 echo "$as_me:$LINENO: checking for $ac_word" >&5
16611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16612 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 case $COLLATEINDEX in
16617 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $DOCBOOKSTYLE/bin $PATH
16624 test -z "$as_dir" && as_dir=.
16625 for ac_exec_ext in '' $ac_executable_extensions; do
16626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16627 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16637 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16639 if test -n "$COLLATEINDEX"; then
16640 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16641 echo "${ECHO_T}$COLLATEINDEX" >&6
16643 echo "$as_me:$LINENO: result: no" >&5
16644 echo "${ECHO_T}no" >&6
16647 test -n "$COLLATEINDEX" && break
16651 for ac_prog in collateindex.pl
16653 # Extract the first word of "$ac_prog", so it can be a program name with args.
16654 set dummy $ac_prog; ac_word=$2
16655 echo "$as_me:$LINENO: checking for $ac_word" >&5
16656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16657 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 case $COLLATEINDEX in
16662 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666 for as_dir in $PATH
16669 test -z "$as_dir" && as_dir=.
16670 for ac_exec_ext in '' $ac_executable_extensions; do
16671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16682 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16684 if test -n "$COLLATEINDEX"; then
16685 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16686 echo "${ECHO_T}$COLLATEINDEX" >&6
16688 echo "$as_me:$LINENO: result: no" >&5
16689 echo "${ECHO_T}no" >&6
16692 test -n "$COLLATEINDEX" && break
16696 for ac_prog in sgmlspl
16698 # Extract the first word of "$ac_prog", so it can be a program name with args.
16699 set dummy $ac_prog; ac_word=$2
16700 echo "$as_me:$LINENO: checking for $ac_word" >&5
16701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16702 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 if test -n "$SGMLSPL"; then
16706 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16709 for as_dir in $PATH
16712 test -z "$as_dir" && as_dir=.
16713 for ac_exec_ext in '' $ac_executable_extensions; do
16714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16715 ac_cv_prog_SGMLSPL="$ac_prog"
16716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16724 SGMLSPL=$ac_cv_prog_SGMLSPL
16725 if test -n "$SGMLSPL"; then
16726 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16727 echo "${ECHO_T}$SGMLSPL" >&6
16729 echo "$as_me:$LINENO: result: no" >&5
16730 echo "${ECHO_T}no" >&6
16733 test -n "$SGMLSPL" && break
16738 # prepare build tree if outside source tree
16739 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16740 # Note 2: /bin/pwd might be better than shell's built-in at getting
16741 # a symlink-free name.
16742 if test "$no_create" != yes; then
16743 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16748 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16749 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16750 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16751 || { { echo "$as_me:$LINENO: error: failed" >&5
16752 echo "$as_me: error: failed" >&2;}
16753 { (exit 1); exit 1; }; }
16754 echo "$as_me:$LINENO: result: done" >&5
16755 echo "${ECHO_T}done" >&6
16760 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16763 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}"
16766 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16769 cat >confcache <<\_ACEOF
16770 # This file is a shell script that caches the results of configure
16771 # tests run on this system so they can be shared between configure
16772 # scripts and configure runs, see configure's option --config-cache.
16773 # It is not useful on other systems. If it contains results you don't
16774 # want to keep, you may remove or edit it.
16776 # config.status only pays attention to the cache file if you give it
16777 # the --recheck option to rerun configure.
16779 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16781 # following values.
16785 # The following way of writing the cache mishandles newlines in values,
16786 # but we know of no workaround that is simple, portable, and efficient.
16787 # So, don't put newlines in cache variables' values.
16788 # Ultrix sh set writes to stderr and can't be redirected directly,
16789 # and sets the high bit in the cache file unless we assign to the vars.
16792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16794 # `set' does not quote correctly, so add quotes (double-quote
16795 # substitution turns \\\\ into \\, and sed turns \\ into \).
16798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16801 # `set' quotes correctly as required by POSIX, so do not add quotes.
16803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16814 if cmp -s $cache_file confcache; then :; else
16815 if test -w $cache_file; then
16816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16817 cat confcache >$cache_file
16819 echo "not updating unwritable cache $cache_file"
16824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16825 # Let make expand exec_prefix.
16826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16830 # trailing colons and then remove the whole line if VPATH becomes empty
16831 # (actually we leave an empty line to preserve line numbers).
16832 if test "x$srcdir" = x.; then
16833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16834 s/:*\$(srcdir):*/:/;
16835 s/:*\${srcdir}:*/:/;
16837 s/^\([^=]*=[ ]*\):*/\1/;
16843 DEFS=-DHAVE_CONFIG_H
16846 : ${CONFIG_STATUS=./config.status}
16847 ac_clean_files_save=$ac_clean_files
16848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16849 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16850 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16851 cat >$CONFIG_STATUS <<_ACEOF
16853 # Generated by $as_me.
16854 # Run this file to recreate the current configuration.
16855 # Compiler output produced by configure, useful for debugging
16856 # configure, is in config.log if it exists.
16859 SHELL=\${CONFIG_SHELL-$SHELL}
16862 cat >>$CONFIG_STATUS <<\_ACEOF
16864 ## --------------------- ##
16865 ## M4sh Initialization. ##
16866 ## --------------------- ##
16868 # Be Bourne compatible
16869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16872 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16877 # Support unset when possible.
16878 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16884 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16885 { $as_unset LANG || test "${LANG+set}" != set; } ||
16886 { LANG=C; export LANG; }
16887 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16888 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16889 { LC_ALL=C; export LC_ALL; }
16890 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16891 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16892 { LC_TIME=C; export LC_TIME; }
16893 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16894 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16895 { LC_CTYPE=C; export LC_CTYPE; }
16896 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16897 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16898 { LANGUAGE=C; export LANGUAGE; }
16899 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16900 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16901 { LC_COLLATE=C; export LC_COLLATE; }
16902 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16903 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16904 { LC_NUMERIC=C; export LC_NUMERIC; }
16905 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16906 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16907 { LC_MESSAGES=C; export LC_MESSAGES; }
16910 # Name of the executable.
16911 as_me=`(basename "$0") 2>/dev/null ||
16912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913 X"$0" : 'X\(//\)$' \| \
16914 X"$0" : 'X\(/\)$' \| \
16915 . : '\(.\)' 2>/dev/null ||
16917 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16918 /^X\/\(\/\/\)$/{ s//\1/; q; }
16919 /^X\/\(\/\).*/{ s//\1/; q; }
16922 # PATH needs CR, and LINENO needs CR and PATH.
16923 # Avoid depending upon Character Ranges.
16924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16927 as_cr_digits='0123456789'
16928 as_cr_alnum=$as_cr_Letters$as_cr_digits
16930 # The user is always right.
16931 if test "${PATH_SEPARATOR+set}" != set; then
16932 echo "#! /bin/sh" >conftest.sh
16933 echo "exit 0" >>conftest.sh
16934 chmod +x conftest.sh
16935 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16944 as_lineno_1=$LINENO
16945 as_lineno_2=$LINENO
16946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16947 test "x$as_lineno_1" != "x$as_lineno_2" &&
16948 test "x$as_lineno_3" = "x$as_lineno_2" || {
16949 # Find who we are. Look in the path if we contain no path at all
16952 *[\\/]* ) as_myself=$0 ;;
16953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16957 test -z "$as_dir" && as_dir=.
16958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16963 # We did not find ourselves, most probably we were run as `sh COMMAND'
16964 # in which case we are not to be found in the path.
16965 if test "x$as_myself" = x; then
16968 if test ! -f "$as_myself"; then
16969 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16970 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16971 { (exit 1); exit 1; }; }
16973 case $CONFIG_SHELL in
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16979 test -z "$as_dir" && as_dir=.
16980 for as_base in sh bash ksh sh5; do
16983 if ("$as_dir/$as_base" -c '
16984 as_lineno_1=$LINENO
16985 as_lineno_2=$LINENO
16986 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16987 test "x$as_lineno_1" != "x$as_lineno_2" &&
16988 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16989 CONFIG_SHELL=$as_dir/$as_base
16990 export CONFIG_SHELL
16991 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17000 # uniformly replaced by the line number. The first 'sed' inserts a
17001 # line-number line before each line; the second 'sed' does the real
17002 # work. The second script uses 'N' to pair each line-number line
17003 # with the numbered line, and appends trailing '-' during
17004 # substitution so that $LINENO is not a special case at line end.
17005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17006 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17007 sed '=' <$as_myself |
17012 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17015 s,^['$as_cr_digits']*\n,,
17016 ' >$as_me.lineno &&
17017 chmod +x $as_me.lineno ||
17018 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17019 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17020 { (exit 1); exit 1; }; }
17022 # Don't try to exec as it changes $[0], causing all sort of problems
17023 # (the dirname of $[0] is not the place where we might find the
17024 # original and so on. Autoconf is especially sensible to this).
17026 # Exit status is that of the last command.
17031 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17032 *c*,-n*) ECHO_N= ECHO_C='
17034 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17035 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17038 if expr a : '\(a\)' >/dev/null 2>&1; then
17044 rm -f conf$$ conf$$.exe conf$$.file
17046 if ln -s conf$$.file conf$$ 2>/dev/null; then
17047 # We could just check for DJGPP; but this test a) works b) is more generic
17048 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17049 if test -f conf$$.exe; then
17050 # Don't use ln at all; we don't have any links
17055 elif ln conf$$.file conf$$ 2>/dev/null; then
17060 rm -f conf$$ conf$$.exe conf$$.file
17062 as_executable_p="test -f"
17064 # Sed expression to map a string onto a valid CPP name.
17065 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17067 # Sed expression to map a string onto a valid variable name.
17068 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17072 # We need space, tab and new line, in precisely that order.
17078 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17082 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17083 # report actual input values of CONFIG_FILES etc. instead of their
17084 # values after options handling. Logging --version etc. is OK.
17088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17089 ## Running $as_me. ##
17094 This file was extended by PostgreSQL $as_me 7.3devel, which was
17095 generated by GNU Autoconf 2.53. Invocation command line was
17097 CONFIG_FILES = $CONFIG_FILES
17098 CONFIG_HEADERS = $CONFIG_HEADERS
17099 CONFIG_LINKS = $CONFIG_LINKS
17100 CONFIG_COMMANDS = $CONFIG_COMMANDS
17104 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17108 # Files that config.status was made for.
17109 if test -n "$ac_config_files"; then
17110 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17113 if test -n "$ac_config_headers"; then
17114 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17117 if test -n "$ac_config_links"; then
17118 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17121 if test -n "$ac_config_commands"; then
17122 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17125 cat >>$CONFIG_STATUS <<\_ACEOF
17128 \`$as_me' instantiates files from templates according to the
17129 current configuration.
17131 Usage: $0 [OPTIONS] [FILE]...
17133 -h, --help print this help, then exit
17134 -V, --version print version number, then exit
17135 -d, --debug don't remove temporary files
17136 --recheck update $as_me by reconfiguring in the same conditions
17137 --file=FILE[:TEMPLATE]
17138 instantiate the configuration file FILE
17139 --header=FILE[:TEMPLATE]
17140 instantiate the configuration header FILE
17142 Configuration files:
17145 Configuration headers:
17148 Configuration links:
17151 Report bugs to <bug-autoconf@gnu.org>."
17154 cat >>$CONFIG_STATUS <<_ACEOF
17156 PostgreSQL config.status 7.3devel
17157 configured by $0, generated by GNU Autoconf 2.53,
17158 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17160 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17161 Free Software Foundation, Inc.
17162 This config.status script is free software; the Free Software Foundation
17163 gives unlimited permission to copy, distribute and modify it."
17167 cat >>$CONFIG_STATUS <<\_ACEOF
17168 # If no file are specified by the user, then we need to provide default
17169 # value. By we need to know if files were specified by the user.
17175 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17176 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17178 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17182 *) # This is not an option, so the user has probably given explicit
17184 ac_need_defaults=false;;
17188 # Handling of the options.
17190 cat >>$CONFIG_STATUS <<_ACEOF
17191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17192 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17193 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17195 cat >>$CONFIG_STATUS <<\_ACEOF
17196 --version | --vers* | -V )
17197 echo "$ac_cs_version"; exit 0 ;;
17199 # Conflict between --help and --header
17200 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17201 Try \`$0 --help' for more information." >&5
17202 echo "$as_me: error: ambiguous option: $1
17203 Try \`$0 --help' for more information." >&2;}
17204 { (exit 1); exit 1; }; };;
17205 --help | --hel | -h )
17206 echo "$ac_cs_usage"; exit 0 ;;
17207 --debug | --d* | -d )
17209 --file | --fil | --fi | --f )
17211 CONFIG_FILES="$CONFIG_FILES $1"
17212 ac_need_defaults=false;;
17213 --header | --heade | --head | --hea )
17215 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17216 ac_need_defaults=false;;
17218 # This is an error.
17219 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17220 Try \`$0 --help' for more information." >&5
17221 echo "$as_me: error: unrecognized option: $1
17222 Try \`$0 --help' for more information." >&2;}
17223 { (exit 1); exit 1; }; } ;;
17225 *) ac_config_targets="$ac_config_targets $1" ;;
17237 cat >>$CONFIG_STATUS <<\_ACEOF
17238 for ac_config_target in $ac_config_targets
17240 case "$ac_config_target" in
17241 # Handling of arguments.
17242 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17243 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17244 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17245 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17246 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17247 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17248 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17249 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17250 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17251 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17252 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17254 { (exit 1); exit 1; }; };;
17258 # If the user did not use the arguments to specify the items to instantiate,
17259 # then the envvar interface is used. Set only those that are not.
17260 # We use the long form for the default assignment because of an extremely
17261 # bizarre bug on SunOS 4.1.3.
17262 if $ac_need_defaults; then
17263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17265 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17268 # Create a temporary directory, and hook for its removal unless debugging.
17271 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17272 trap '{ (exit 1); exit 1; }' 1 2 13 15
17275 # Create a (secure) tmp directory for tmp files.
17278 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17279 test -n "$tmp" && test -d "$tmp"
17282 tmp=$TMPDIR/cs$$-$RANDOM
17283 (umask 077 && mkdir $tmp)
17286 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17287 { (exit 1); exit 1; }
17292 cat >>$CONFIG_STATUS <<_ACEOF
17295 # CONFIG_FILES section.
17298 # No need to generate the scripts if there are no CONFIG_FILES.
17299 # This happens for instance when ./config.status config.h
17300 if test -n "\$CONFIG_FILES"; then
17301 # Protect against being on the right side of a sed subst in config.status.
17302 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17303 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17304 s,@SHELL@,$SHELL,;t t
17305 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17306 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17307 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17308 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17309 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17310 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17311 s,@exec_prefix@,$exec_prefix,;t t
17312 s,@prefix@,$prefix,;t t
17313 s,@program_transform_name@,$program_transform_name,;t t
17314 s,@bindir@,$bindir,;t t
17315 s,@sbindir@,$sbindir,;t t
17316 s,@libexecdir@,$libexecdir,;t t
17317 s,@datadir@,$datadir,;t t
17318 s,@sysconfdir@,$sysconfdir,;t t
17319 s,@sharedstatedir@,$sharedstatedir,;t t
17320 s,@localstatedir@,$localstatedir,;t t
17321 s,@libdir@,$libdir,;t t
17322 s,@includedir@,$includedir,;t t
17323 s,@oldincludedir@,$oldincludedir,;t t
17324 s,@infodir@,$infodir,;t t
17325 s,@mandir@,$mandir,;t t
17326 s,@build_alias@,$build_alias,;t t
17327 s,@host_alias@,$host_alias,;t t
17328 s,@target_alias@,$target_alias,;t t
17329 s,@DEFS@,$DEFS,;t t
17330 s,@ECHO_C@,$ECHO_C,;t t
17331 s,@ECHO_N@,$ECHO_N,;t t
17332 s,@ECHO_T@,$ECHO_T,;t t
17333 s,@LIBS@,$LIBS,;t t
17334 s,@docdir@,$docdir,;t t
17335 s,@configure_args@,$configure_args,;t t
17336 s,@build@,$build,;t t
17337 s,@build_cpu@,$build_cpu,;t t
17338 s,@build_vendor@,$build_vendor,;t t
17339 s,@build_os@,$build_os,;t t
17340 s,@host@,$host,;t t
17341 s,@host_cpu@,$host_cpu,;t t
17342 s,@host_vendor@,$host_vendor,;t t
17343 s,@host_os@,$host_os,;t t
17344 s,@PORTNAME@,$PORTNAME,;t t
17346 s,@MULTIBYTE@,$MULTIBYTE,;t t
17347 s,@enable_nls@,$enable_nls,;t t
17348 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17349 s,@default_port@,$default_port,;t t
17350 s,@enable_shared@,$enable_shared,;t t
17351 s,@enable_rpath@,$enable_rpath,;t t
17352 s,@enable_debug@,$enable_debug,;t t
17354 s,@CFLAGS@,$CFLAGS,;t t
17355 s,@LDFLAGS@,$LDFLAGS,;t t
17356 s,@CPPFLAGS@,$CPPFLAGS,;t t
17357 s,@ac_ct_CC@,$ac_ct_CC,;t t
17358 s,@EXEEXT@,$EXEEXT,;t t
17359 s,@OBJEXT@,$OBJEXT,;t t
17362 s,@autodepend@,$autodepend,;t t
17363 s,@INCLUDES@,$INCLUDES,;t t
17364 s,@with_tcl@,$with_tcl,;t t
17365 s,@with_tk@,$with_tk,;t t
17366 s,@with_perl@,$with_perl,;t t
17367 s,@with_python@,$with_python,;t t
17369 s,@with_java@,$with_java,;t t
17370 s,@with_krb4@,$with_krb4,;t t
17371 s,@with_krb5@,$with_krb5,;t t
17372 s,@krb_srvtab@,$krb_srvtab,;t t
17373 s,@with_pam@,$with_pam,;t t
17374 s,@with_openssl@,$with_openssl,;t t
17375 s,@enable_odbc@,$enable_odbc,;t t
17376 s,@with_unixodbc@,$with_unixodbc,;t t
17377 s,@with_iodbc@,$with_iodbc,;t t
17378 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17379 s,@ELF_SYS@,$ELF_SYS,;t t
17381 s,@CXXFLAGS@,$CXXFLAGS,;t t
17382 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17383 s,@CXXCPP@,$CXXCPP,;t t
17384 s,@with_CXX@,$with_CXX,;t t
17387 s,@FLEX@,$FLEX,;t t
17388 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17389 s,@LN_S@,$LN_S,;t t
17391 s,@with_gnu_ld@,$with_gnu_ld,;t t
17392 s,@ld_R_works@,$ld_R_works,;t t
17393 s,@RANLIB@,$RANLIB,;t t
17394 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17395 s,@LORDER@,$LORDER,;t t
17397 s,@STRIP@,$STRIP,;t t
17398 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17399 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17400 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17401 s,@YACC@,$YACC,;t t
17402 s,@YFLAGS@,$YFLAGS,;t t
17403 s,@WISH@,$WISH,;t t
17404 s,@PERL@,$PERL,;t t
17405 s,@perl_installsitearch@,$perl_installsitearch,;t t
17406 s,@perl_installsitelib@,$perl_installsitelib,;t t
17407 s,@perl_installman3dir@,$perl_installman3dir,;t t
17408 s,@PYTHON@,$PYTHON,;t t
17409 s,@python_version@,$python_version,;t t
17410 s,@python_prefix@,$python_prefix,;t t
17411 s,@python_execprefix@,$python_execprefix,;t t
17412 s,@python_configdir@,$python_configdir,;t t
17413 s,@python_moduledir@,$python_moduledir,;t t
17414 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17415 s,@python_includespec@,$python_includespec,;t t
17416 s,@python_libspec@,$python_libspec,;t t
17417 s,@MEMCMP@,$MEMCMP,;t t
17418 s,@SNPRINTF@,$SNPRINTF,;t t
17419 s,@ISINF@,$ISINF,;t t
17420 s,@GETRUSAGE@,$GETRUSAGE,;t t
17421 s,@SRANDOM@,$SRANDOM,;t t
17422 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17423 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17424 s,@INET_ATON@,$INET_ATON,;t t
17425 s,@STRERROR@,$STRERROR,;t t
17426 s,@STRDUP@,$STRDUP,;t t
17427 s,@STRTOL@,$STRTOL,;t t
17428 s,@STRTOUL@,$STRTOUL,;t t
17429 s,@STRCASECMP@,$STRCASECMP,;t t
17430 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17431 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17432 s,@MSGFMT@,$MSGFMT,;t t
17433 s,@MSGMERGE@,$MSGMERGE,;t t
17434 s,@XGETTEXT@,$XGETTEXT,;t t
17435 s,@localedir@,$localedir,;t t
17436 s,@TCLSH@,$TCLSH,;t t
17437 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17438 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17439 s,@NSGMLS@,$NSGMLS,;t t
17440 s,@JADE@,$JADE,;t t
17441 s,@have_docbook@,$have_docbook,;t t
17442 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17443 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17444 s,@SGMLSPL@,$SGMLSPL,;t t
17445 s,@vpath_build@,$vpath_build,;t t
17450 cat >>$CONFIG_STATUS <<\_ACEOF
17451 # Split the substitutions into bite-sized pieces for seds with
17452 # small command number limits, like on Digital OSF/1 and HP-UX.
17453 ac_max_sed_lines=48
17454 ac_sed_frag=1 # Number of current file.
17455 ac_beg=1 # First line for current file.
17456 ac_end=$ac_max_sed_lines # Line after last line for current file.
17459 while $ac_more_lines; do
17460 if test $ac_beg -gt 1; then
17461 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17463 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17465 if test ! -s $tmp/subs.frag; then
17466 ac_more_lines=false
17468 # The purpose of the label and of the branching condition is to
17469 # speed up the sed processing (if there are no `@' at all, there
17470 # is no need to browse any of the substitutions).
17471 # These are the two extra sed commands mentioned above.
17473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17474 if test -z "$ac_sed_cmds"; then
17475 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17477 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17479 ac_sed_frag=`expr $ac_sed_frag + 1`
17481 ac_end=`expr $ac_end + $ac_max_sed_lines`
17484 if test -z "$ac_sed_cmds"; then
17487 fi # test -n "$CONFIG_FILES"
17490 cat >>$CONFIG_STATUS <<\_ACEOF
17491 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17492 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17494 - | *:- | *:-:* ) # input from stdin
17496 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17497 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17498 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17499 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17500 * ) ac_file_in=$ac_file.in ;;
17503 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17504 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17506 X"$ac_file" : 'X\(//\)[^/]' \| \
17507 X"$ac_file" : 'X\(//\)$' \| \
17508 X"$ac_file" : 'X\(/\)' \| \
17509 . : '\(.\)' 2>/dev/null ||
17511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17513 /^X\(\/\/\)$/{ s//\1/; q; }
17514 /^X\(\/\).*/{ s//\1/; q; }
17516 { case "$ac_dir" in
17517 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17521 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17522 case $as_mkdir_dir in
17523 # Skip DOS drivespec
17524 ?:) as_incr_dir=$as_mkdir_dir ;;
17526 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17527 test -d "$as_incr_dir" ||
17528 mkdir "$as_incr_dir" ||
17529 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17530 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17531 { (exit 1); exit 1; }; }
17538 if test "$ac_dir" != .; then
17539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17540 # A "../" for each directory in $ac_dir_suffix.
17541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17543 ac_dir_suffix= ac_top_builddir=
17547 .) # No --srcdir option. We are building in place.
17549 if test -z "$ac_top_builddir"; then
17552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17554 [\\/]* | ?:[\\/]* ) # Absolute path.
17555 ac_srcdir=$srcdir$ac_dir_suffix;
17556 ac_top_srcdir=$srcdir ;;
17557 *) # Relative path.
17558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17561 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17563 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17564 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17565 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17566 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17570 if test x"$ac_file" != x-; then
17571 { echo "$as_me:$LINENO: creating $ac_file" >&5
17572 echo "$as_me: creating $ac_file" >&6;}
17575 # Let's still pretend it is `configure' which instantiates (i.e., don't
17576 # use $as_me), people would be surprised to read:
17577 # /* config.h. Generated by config.status. */
17578 if test x"$ac_file" = x-; then
17581 configure_input="$ac_file. "
17583 configure_input=$configure_input"Generated from `echo $ac_file_in |
17584 sed 's,.*/,,'` by configure."
17586 # First look for the input files in the build tree, otherwise in the
17588 ac_file_inputs=`IFS=:
17589 for f in $ac_file_in; do
17591 -) echo $tmp/stdin ;;
17593 # Absolute (can't be DOS-style, as IFS=:)
17594 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17595 echo "$as_me: error: cannot find input file: $f" >&2;}
17596 { (exit 1); exit 1; }; }
17599 if test -f "$f"; then
17602 elif test -f "$srcdir/$f"; then
17607 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17608 echo "$as_me: error: cannot find input file: $f" >&2;}
17609 { (exit 1); exit 1; }; }
17612 done` || { (exit 1); exit 1; }
17614 cat >>$CONFIG_STATUS <<_ACEOF
17618 cat >>$CONFIG_STATUS <<\_ACEOF
17620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17621 s,@configure_input@,$configure_input,;t t
17622 s,@srcdir@,$ac_srcdir,;t t
17623 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17624 s,@top_srcdir@,$ac_top_srcdir,;t t
17625 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17626 s,@builddir@,$ac_builddir,;t t
17627 s,@abs_builddir@,$ac_abs_builddir,;t t
17628 s,@top_builddir@,$ac_top_builddir,;t t
17629 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17630 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17632 if test x"$ac_file" != x-; then
17633 mv $tmp/out $ac_file
17641 cat >>$CONFIG_STATUS <<\_ACEOF
17644 # CONFIG_HEADER section.
17647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17650 # ac_d sets the value in "#define NAME VALUE" lines.
17651 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17652 ac_dB='[ ].*$,\1#\2'
17655 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17656 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17657 ac_uB='$,\1#\2define\3'
17661 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17664 - | *:- | *:-:* ) # input from stdin
17666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17670 * ) ac_file_in=$ac_file.in ;;
17673 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17674 echo "$as_me: creating $ac_file" >&6;}
17676 # First look for the input files in the build tree, otherwise in the
17678 ac_file_inputs=`IFS=:
17679 for f in $ac_file_in; do
17681 -) echo $tmp/stdin ;;
17683 # Absolute (can't be DOS-style, as IFS=:)
17684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17685 echo "$as_me: error: cannot find input file: $f" >&2;}
17686 { (exit 1); exit 1; }; }
17689 if test -f "$f"; then
17692 elif test -f "$srcdir/$f"; then
17697 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17698 echo "$as_me: error: cannot find input file: $f" >&2;}
17699 { (exit 1); exit 1; }; }
17702 done` || { (exit 1); exit 1; }
17703 # Remove the trailing spaces.
17704 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17708 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17709 # `conftest.undefs', that substitutes the proper values into
17710 # config.h.in to produce config.h. The first handles `#define'
17711 # templates, and the second `#undef' templates.
17712 # And first: Protect against being on the right side of a sed subst in
17713 # config.status. Protect against being in an unquoted here document
17714 # in config.status.
17715 rm -f conftest.defines conftest.undefs
17716 # Using a here document instead of a string reduces the quoting nightmare.
17717 # Putting comments in sed scripts is not portable.
17719 # `end' is used to avoid that the second main sed command (meant for
17720 # 0-ary CPP macros) applies to n-ary macro definitions.
17721 # See the Autoconf documentation for `clear'.
17722 cat >confdef2sed.sed <<\_ACEOF
17727 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17729 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17732 # If some macros were called several times there might be several times
17733 # the same #defines, which is useless. Nevertheless, we may not want to
17734 # sort them, since we want the *last* AC-DEFINE to be honored.
17735 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17736 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17737 rm -f confdef2sed.sed
17739 # This sed command replaces #undef with comments. This is necessary, for
17740 # example, in the case of _POSIX_SOURCE, which is predefined and required
17741 # on some systems where configure will not decide to define it.
17742 cat >>conftest.undefs <<\_ACEOF
17743 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17746 # Break up conftest.defines because some shells have a limit on the size
17747 # of here documents, and old seds have small limits too (100 cmds).
17748 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17749 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17750 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17751 echo ' :' >>$CONFIG_STATUS
17752 rm -f conftest.tail
17753 while grep . conftest.defines >/dev/null
17755 # Write a limited-size here document to $tmp/defines.sed.
17756 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17757 # Speed up: don't consider the non `#define' lines.
17758 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17759 # Work around the forget-to-reset-the-flag bug.
17760 echo 't clr' >>$CONFIG_STATUS
17761 echo ': clr' >>$CONFIG_STATUS
17762 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17764 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17766 mv $tmp/out $tmp/in
17768 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17769 rm -f conftest.defines
17770 mv conftest.tail conftest.defines
17772 rm -f conftest.defines
17773 echo ' fi # egrep' >>$CONFIG_STATUS
17774 echo >>$CONFIG_STATUS
17776 # Break up conftest.undefs because some shells have a limit on the size
17777 # of here documents, and old seds have small limits too (100 cmds).
17778 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17779 rm -f conftest.tail
17780 while grep . conftest.undefs >/dev/null
17782 # Write a limited-size here document to $tmp/undefs.sed.
17783 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17784 # Speed up: don't consider the non `#undef'
17785 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17786 # Work around the forget-to-reset-the-flag bug.
17787 echo 't clr' >>$CONFIG_STATUS
17788 echo ': clr' >>$CONFIG_STATUS
17789 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17791 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17793 mv $tmp/out $tmp/in
17795 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17796 rm -f conftest.undefs
17797 mv conftest.tail conftest.undefs
17799 rm -f conftest.undefs
17801 cat >>$CONFIG_STATUS <<\_ACEOF
17802 # Let's still pretend it is `configure' which instantiates (i.e., don't
17803 # use $as_me), people would be surprised to read:
17804 # /* config.h. Generated by config.status. */
17805 if test x"$ac_file" = x-; then
17806 echo "/* Generated by configure. */" >$tmp/config.h
17808 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17810 cat $tmp/in >>$tmp/config.h
17812 if test x"$ac_file" != x-; then
17813 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17814 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17815 echo "$as_me: $ac_file is unchanged" >&6;}
17817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17819 X"$ac_file" : 'X\(//\)[^/]' \| \
17820 X"$ac_file" : 'X\(//\)$' \| \
17821 X"$ac_file" : 'X\(/\)' \| \
17822 . : '\(.\)' 2>/dev/null ||
17824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17826 /^X\(\/\/\)$/{ s//\1/; q; }
17827 /^X\(\/\).*/{ s//\1/; q; }
17829 { case "$ac_dir" in
17830 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17834 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17835 case $as_mkdir_dir in
17836 # Skip DOS drivespec
17837 ?:) as_incr_dir=$as_mkdir_dir ;;
17839 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17840 test -d "$as_incr_dir" ||
17841 mkdir "$as_incr_dir" ||
17842 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17843 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17844 { (exit 1); exit 1; }; }
17850 mv $tmp/config.h $ac_file
17854 rm -f $tmp/config.h
17856 # Run the commands associated with the file.
17858 src/include/pg_config.h )
17859 # Update timestamp for pg_config.h (see Makefile.global)
17860 echo >src/include/stamp-h
17865 cat >>$CONFIG_STATUS <<\_ACEOF
17868 # CONFIG_LINKS section.
17871 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17872 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17873 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17875 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17876 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17878 if test ! -r $srcdir/$ac_source; then
17879 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17880 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17881 { (exit 1); exit 1; }; }
17885 # Make relative symlinks.
17886 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17887 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17888 X"$ac_dest" : 'X\(//\)[^/]' \| \
17889 X"$ac_dest" : 'X\(//\)$' \| \
17890 X"$ac_dest" : 'X\(/\)' \| \
17891 . : '\(.\)' 2>/dev/null ||
17893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17895 /^X\(\/\/\)$/{ s//\1/; q; }
17896 /^X\(\/\).*/{ s//\1/; q; }
17898 { case "$ac_dest_dir" in
17899 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17902 as_dummy="$ac_dest_dir"
17903 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17904 case $as_mkdir_dir in
17905 # Skip DOS drivespec
17906 ?:) as_incr_dir=$as_mkdir_dir ;;
17908 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17909 test -d "$as_incr_dir" ||
17910 mkdir "$as_incr_dir" ||
17911 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17912 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17913 { (exit 1); exit 1; }; }
17920 if test "$ac_dest_dir" != .; then
17921 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17922 # A "../" for each directory in $ac_dir_suffix.
17923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17925 ac_dir_suffix= ac_top_builddir=
17929 .) # No --srcdir option. We are building in place.
17931 if test -z "$ac_top_builddir"; then
17934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17936 [\\/]* | ?:[\\/]* ) # Absolute path.
17937 ac_srcdir=$srcdir$ac_dir_suffix;
17938 ac_top_srcdir=$srcdir ;;
17939 *) # Relative path.
17940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17943 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17945 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17946 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17947 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17948 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17952 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17953 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17956 # Make a symlink if possible; otherwise try a hard link.
17957 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17958 ln $srcdir/$ac_source $ac_dest ||
17959 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17960 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17961 { (exit 1); exit 1; }; }
17965 cat >>$CONFIG_STATUS <<\_ACEOF
17967 { (exit 0); exit 0; }
17969 chmod +x $CONFIG_STATUS
17970 ac_clean_files=$ac_clean_files_save
17973 # configure is writing to config.log, and then calls config.status.
17974 # config.status does its own redirection, appending to config.log.
17975 # Unfortunately, on DOS this fails, as config.log is still kept open
17976 # by configure, so config.status won't be able to write to it; its
17977 # output is simply discarded. So we exec the FD to /dev/null,
17978 # effectively closing config.log, so it can be properly (re)opened and
17979 # appended to by config.status. When coming back to configure, we
17980 # need to make the FD available again.
17981 if test "$no_create" != yes; then
17984 $SHELL $CONFIG_STATUS || ac_cs_success=false
17986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17987 # would make configure fail if this is the last instruction.
17988 $ac_cs_success || { (exit 1); exit 1; }