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
861 --disable-largefile omit support for large files
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-includes=DIRS look for additional header files in DIRS
868 --with-libraries=DIRS look for additional libraries in DIRS
869 --with-libs=DIRS alternative spelling of --with-libraries
870 --with-pgport=PORTNUM change default port number 5432
871 --with-maxbackends=N set default maximum number of connections 32
872 --with-tcl build Tcl and Tk interfaces
873 --without-tk do not build Tk interfaces if Tcl is enabled
874 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
875 --with-tkconfig=DIR tkConfig.sh is in DIR
876 --with-perl build Perl interface and PL/Perl
877 --with-python build Python interface module
878 --with-java build JDBC interface and Java tools
879 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
880 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
881 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
882 --with-pam build with PAM support
883 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
884 --without-readline do not use Readline
885 --without-zlib do not use Zlib
886 --with-unixodbc build ODBC driver for unixODBC
887 --with-iodbc build ODBC driver for iODBC
888 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
889 --with-CXX build C++ modules (libpq++)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
900 CXX C++ compiler command
901 CXXFLAGS C++ compiler flags
902 CXXCPP C++ preprocessor
904 location of DocBook stylesheets
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
909 Report bugs to <pgsql-bugs@postgresql.org>.
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 ac_dir_suffix= ac_top_builddir=
929 .) # No --srcdir option. We are building in place.
931 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
945 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
946 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
947 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
948 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
972 PostgreSQL configure 7.3devel
973 generated by GNU Autoconf 2.53
975 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
976 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
980 Copyright 2002 PostgreSQL Global Development Group
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by PostgreSQL $as_me 7.3devel, which was
990 generated by GNU Autoconf 2.53. Invocation command line was
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Also quote any args containing shell meta-characters.
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n ) continue ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 case " $ac_configure_args " in
1057 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1058 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061 # Get rid of the leading space.
1064 # When interrupted or exit'd, cleanup temporary files, and complete
1065 # config.log. We remove comments because anyway the quotes in there
1066 # would cause problems or look ugly.
1067 # WARNING: Be sure not to use single quotes in there, as some shells,
1068 # such as our DU 5.0 friend, will then `close' the trap.
1069 trap 'exit_status=$?
1070 # Save into config.log some information that might help in debugging.
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1079 # The following way of writing the cache mishandles newlines in values,
1082 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 if test -s confdefs.h; then
1102 sed "/^$/d" confdefs.h
1105 test "$ac_signal" != 0 &&
1106 echo "$as_me: caught signal $ac_signal"
1107 echo "$as_me: exit $exit_status"
1109 rm -f core core.* *.core &&
1110 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1113 for ac_signal in 1 2 13 15; do
1114 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1119 rm -rf conftest* confdefs.h
1120 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1123 # Predefined preprocessor variables.
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_NAME "$PACKAGE_NAME"
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_STRING "$PACKAGE_STRING"
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1150 # Let the site file select an alternate cache file if it wants to.
1151 # Prefer explicitly selected file to automatically selected ones.
1152 if test -z "$CONFIG_SITE"; then
1153 if test "x$prefix" != xNONE; then
1154 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1156 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1159 for ac_site_file in $CONFIG_SITE; do
1160 if test -r "$ac_site_file"; then
1161 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162 echo "$as_me: loading site script $ac_site_file" >&6;}
1163 sed 's/^/| /' "$ac_site_file" >&5
1168 if test -r "$cache_file"; then
1169 # Some versions of bash will fail to source /dev/null (special
1170 # files actually), so we avoid doing that.
1171 if test -f "$cache_file"; then
1172 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173 echo "$as_me: loading cache $cache_file" >&6;}
1175 [\\/]* | ?:[\\/]* ) . $cache_file;;
1176 *) . ./$cache_file;;
1180 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181 echo "$as_me: creating cache $cache_file" >&6;}
1185 # Check that the precious variables saved in the cache have kept the same
1187 ac_cache_corrupted=false
1188 for ac_var in `(set) 2>&1 |
1189 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191 eval ac_new_set=\$ac_env_${ac_var}_set
1192 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193 eval ac_new_val="\$ac_env_${ac_var}_value"
1194 case $ac_old_set,$ac_new_set in
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1200 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202 ac_cache_corrupted=: ;;
1205 if test "x$ac_old_val" != "x$ac_new_val"; then
1206 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1209 echo "$as_me: former value: $ac_old_val" >&2;}
1210 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1211 echo "$as_me: current value: $ac_new_val" >&2;}
1212 ac_cache_corrupted=:
1215 # Pass precious variables to config.status.
1216 if test "$ac_new_set" = set; then
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 *) ac_arg=$ac_var=$ac_new_val ;;
1222 case " $ac_configure_args " in
1223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1224 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1228 if $ac_cache_corrupted; then
1229 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233 { (exit 1); exit 1; }; }
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 for ac_dir in config $srcdir/config; do
1276 if test -f $ac_dir/install-sh; then
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh; then
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1284 elif test -f $ac_dir/shtool; then
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300 configure_args=$ac_configure_args
1304 cat >>confdefs.h <<_ACEOF
1305 #define PG_VERSION "$PACKAGE_VERSION"
1309 # Make sure we can run config.sub.
1310 $ac_config_sub sun4 >/dev/null 2>&1 ||
1311 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322 ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326 { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348 ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1365 echo "$as_me:$LINENO: checking which template to use" >&5
1366 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1371 # Check whether --with-template or --without-template was given.
1372 if test "${with_template+set}" = set; then
1373 withval="$with_template"
1377 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1378 echo "$as_me: error: argument required for --with-template option" >&2;}
1379 { (exit 1); exit 1; }; }
1382 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1383 echo "$as_me: error: argument required for --with-template option" >&2;}
1384 { (exit 1); exit 1; }; }
1389 list) echo; ls "$srcdir/src/template"; exit;;
1390 *) if test -f "$srcdir/src/template/$with_template" ; then
1393 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1394 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1395 { (exit 1); exit 1; }; }
1404 # --with-template not given
1407 aix*) template=aix ;;
1408 beos*) template=beos ;;
1409 bsdi*) template=bsdi ;;
1410 cygwin*) template=win ;;
1411 darwin*) template=darwin ;;
1412 dgux*) template=dgux ;;
1413 freebsd*) template=freebsd ;;
1414 hpux*) template=hpux ;;
1415 irix*) template=irix5 ;;
1416 linux*) template=linux ;;
1417 netbsd*) template=netbsd ;;
1418 nextstep*) template=nextstep ;;
1419 openbsd*) template=openbsd ;;
1420 osf*) template=osf ;;
1421 qnx*) template=qnx4 ;;
1422 sco*) template=sco ;;
1423 solaris*) template=solaris ;;
1424 sunos*) template=sunos4 ;;
1426 case $host_vendor in
1427 univel) template=univel ;;
1429 sysv4*) template=svr4 ;;
1430 sysv5*) template=unixware ;;
1431 ultrix*) template=ultrix4 ;;
1434 if test x"$template" = x"" ; then
1435 { { echo "$as_me:$LINENO: error:
1436 *******************************************************************
1437 PostgreSQL has apparently not been ported to your platform yet.
1438 To try a manual configuration, look into the src/template directory
1439 for a similar platform and use the '--with-template=' option.
1441 Please also contact <pgsql-ports@postgresql.org> to see about
1442 rectifying this. Include the above 'checking host system type...'
1444 *******************************************************************
1446 echo "$as_me: error:
1447 *******************************************************************
1448 PostgreSQL has apparently not been ported to your platform yet.
1449 To try a manual configuration, look into the src/template directory
1450 for a similar platform and use the '--with-template=' option.
1452 Please also contact <pgsql-ports@postgresql.org> to see about
1453 rectifying this. Include the above 'checking host system type...'
1455 *******************************************************************
1457 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $template" >&5
1465 echo "${ECHO_T}$template" >&6
1470 # Pick right test-and-set (TAS) code. Most platforms have inline
1471 # assembler code in src/include/storage/s_lock.h, so we just use
1472 # a dummy file here.
1474 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1475 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1476 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1477 *) need_tas=no; tas_file=dummy.s ;;
1479 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1482 if test "$need_tas" = yes ; then
1490 ## Command line options
1495 # Add non-standard directories to the include path
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502 withval="$with_includes"
1506 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508 { (exit 1); exit 1; }; }
1511 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513 { (exit 1); exit 1; }; }
1525 # Add non-standard directories to the library search path
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532 withval="$with_libraries"
1536 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538 { (exit 1); exit 1; }; }
1541 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543 { (exit 1); exit 1; }; }
1546 LIBRARY_DIRS=$withval
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558 withval="$with_libs"
1562 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564 { (exit 1); exit 1; }; }
1567 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569 { (exit 1); exit 1; }; }
1572 LIBRARY_DIRS=$withval
1581 # 64-bit integer date/time storage (--enable-integer-datetimes)
1583 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1584 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1587 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1588 if test "${enable_integer_datetimes+set}" = set; then
1589 enableval="$enable_integer_datetimes"
1594 cat >>confdefs.h <<\_ACEOF
1595 #define USE_INTEGER_DATETIMES 1
1603 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1604 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1605 { (exit 1); exit 1; }; }
1610 enable_integer_datetimes=no
1614 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1615 echo "${ECHO_T}$enable_integer_datetimes" >&6
1618 # Character set recode (--enable-recode)
1620 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1621 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1624 # Check whether --enable-recode or --disable-recode was given.
1625 if test "${enable_recode+set}" = set; then
1626 enableval="$enable_recode"
1631 cat >>confdefs.h <<\_ACEOF
1632 #define CYR_RECODE 1
1640 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1641 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1642 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $enable_recode" >&5
1652 echo "${ECHO_T}$enable_recode" >&6
1660 cat >>confdefs.h <<\_ACEOF
1669 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1670 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1673 # Check whether --enable-nls or --disable-nls was given.
1674 if test "${enable_nls+set}" = set; then
1675 enableval="$enable_nls"
1686 WANTED_LANGUAGES=$enableval
1695 if test "$enable_nls" = yes; then
1697 cat >>confdefs.h <<\_ACEOF
1698 #define ENABLE_NLS 1
1703 echo "$as_me:$LINENO: result: $enable_nls" >&5
1704 echo "${ECHO_T}$enable_nls" >&6
1709 # Default port number (--with-pgport), default 5432
1711 echo "$as_me:$LINENO: checking for default port number" >&5
1712 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1716 # Check whether --with-pgport or --without-pgport was given.
1717 if test "${with_pgport+set}" = set; then
1718 withval="$with_pgport"
1722 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1723 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1724 { (exit 1); exit 1; }; }
1727 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1728 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1729 { (exit 1); exit 1; }; }
1732 default_port=$withval
1740 echo "$as_me:$LINENO: result: $default_port" >&5
1741 echo "${ECHO_T}$default_port" >&6
1742 # Need both of these because some places want an integer and some a string
1744 cat >>confdefs.h <<_ACEOF
1745 #define DEF_PGPORT ${default_port}
1749 cat >>confdefs.h <<_ACEOF
1750 #define DEF_PGPORT_STR "${default_port}"
1756 # Maximum number of allowed connections (--with-maxbackends), default 32
1758 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1759 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1763 # Check whether --with-maxbackends or --without-maxbackends was given.
1764 if test "${with_maxbackends+set}" = set; then
1765 withval="$with_maxbackends"
1769 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1770 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1771 { (exit 1); exit 1; }; }
1774 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1775 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1776 { (exit 1); exit 1; }; }
1787 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1788 echo "${ECHO_T}$with_maxbackends" >&6
1790 cat >>confdefs.h <<_ACEOF
1791 #define DEF_MAXBACKENDS $with_maxbackends
1797 # Option to disable shared libraries
1801 # Check whether --enable-shared or --disable-shared was given.
1802 if test "${enable_shared+set}" = set; then
1803 enableval="$enable_shared"
1813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1814 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1815 { (exit 1); exit 1; }; }
1827 # '-rpath'-like feature can be disabled
1831 # Check whether --enable-rpath or --disable-rpath was given.
1832 if test "${enable_rpath+set}" = set; then
1833 enableval="$enable_rpath"
1843 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1844 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1845 { (exit 1); exit 1; }; }
1858 # --enable-debug adds -g to compiler flags
1862 # Check whether --enable-debug or --disable-debug was given.
1863 if test "${enable_debug+set}" = set; then
1864 enableval="$enable_debug"
1874 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1875 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1876 { (exit 1); exit 1; }; }
1891 # For historical reasons you can also use --with-CC to specify the C compiler
1892 # to use, although the standard way to do this is to set the CC environment
1897 # Check whether --with-CC or --without-CC was given.
1898 if test "${with_CC+set}" = set; then
1903 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1904 echo "$as_me: error: argument required for --with-CC option" >&2;}
1905 { (exit 1); exit 1; }; }
1908 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1909 echo "$as_me: error: argument required for --with-CC option" >&2;}
1910 { (exit 1); exit 1; }; }
1920 # Set here so it can be over-ridden in the template file
1925 aix) pgac_cc_list="gcc xlc";;
1926 irix) pgac_cc_list="cc";; # no gcc
1927 *) pgac_cc_list="gcc cc";;
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 if test -n "$ac_tool_prefix"; then
1936 for ac_prog in $pgac_cc_list
1938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1973 test -n "$CC" && break
1976 if test -z "$CC"; then
1978 for ac_prog in $pgac_cc_list
1980 # Extract the first word of "$ac_prog", so it can be a program name with args.
1981 set dummy $ac_prog; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$ac_ct_CC"; then
1988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_CC="$ac_prog"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2007 if test -n "$ac_ct_CC"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009 echo "${ECHO_T}$ac_ct_CC" >&6
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2015 test -n "$ac_ct_CC" && break
2022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2023 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2024 { (exit 1); exit 1; }; }
2026 # Provide some information about the compiler.
2027 echo "$as_me:$LINENO:" \
2028 "checking for C compiler version" >&5
2029 ac_compiler=`set X $ac_compile; echo $2`
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2031 (eval $ac_compiler --version </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); }
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2041 (eval $ac_compiler -V </dev/null >&5) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2050 #ifdef F77_DUMMY_MAIN
2054 int F77_DUMMY_MAIN() { return 1; }
2064 ac_clean_files_save=$ac_clean_files
2065 ac_clean_files="$ac_clean_files a.out a.exe"
2066 # Try to create an executable without -o first, disregard a.out.
2067 # It will help us diagnose broken compilers, and finding out an intuition
2069 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2070 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2073 (eval $ac_link_default) 2>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; then
2077 # Find the output, starting from the most likely. This scheme is
2078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2081 # Be careful to initialize this variable, since it used to be cached.
2082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2084 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2085 ls a.out conftest 2>/dev/null;
2086 ls a.* conftest.* 2>/dev/null`; do
2088 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2089 a.out ) # We found the default executable, but exeext='' is most
2092 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2093 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2103 echo "$as_me: error: C compiler cannot create executables" >&2;}
2104 { (exit 77); exit 77; }; }
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2111 # Check the compiler produces executables we can run. If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2114 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118 if { ac_try='./$ac_file'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2126 if test "$cross_compiling" = maybe; then
2129 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2130 If you meant to cross compile, use \`--host'." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'." >&2;}
2133 { (exit 1); exit 1; }; }
2137 echo "$as_me:$LINENO: result: yes" >&5
2138 echo "${ECHO_T}yes" >&6
2140 rm -f a.out a.exe conftest$ac_cv_exeext
2141 ac_clean_files=$ac_clean_files_save
2142 # Check the compiler produces executables we can run. If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2145 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2146 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2147 echo "${ECHO_T}$cross_compiling" >&6
2149 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2150 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2152 (eval $ac_link) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2157 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2158 # work properly (i.e., refer to `conftest.exe'), while it won't with
2160 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2162 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2171 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2172 { (exit 1); exit 1; }; }
2175 rm -f conftest$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2182 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2183 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2184 if test "${ac_cv_objext+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2189 #include "confdefs.h"
2191 #ifdef F77_DUMMY_MAIN
2195 int F77_DUMMY_MAIN() { return 1; }
2205 rm -f conftest.o conftest.obj
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2214 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2223 { (exit 1); exit 1; }; }
2226 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2228 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2229 echo "${ECHO_T}$ac_cv_objext" >&6
2230 OBJEXT=$ac_cv_objext
2232 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2233 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2234 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 #include "confdefs.h"
2241 #ifdef F77_DUMMY_MAIN
2245 int F77_DUMMY_MAIN() { return 1; }
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2272 echo "$as_me: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2276 rm -f conftest.$ac_objext conftest.$ac_ext
2277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2282 GCC=`test $ac_compiler_gnu = yes && echo yes`
2283 ac_test_CFLAGS=${CFLAGS+set}
2284 ac_save_CFLAGS=$CFLAGS
2286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2288 if test "${ac_cv_prog_cc_g+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 #include "confdefs.h"
2295 #ifdef F77_DUMMY_MAIN
2299 int F77_DUMMY_MAIN() { return 1; }
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2323 echo "$as_me: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331 if test "$ac_test_CFLAGS" = set; then
2332 CFLAGS=$ac_save_CFLAGS
2333 elif test $ac_cv_prog_cc_g = yes; then
2334 if test "$GCC" = yes; then
2340 if test "$GCC" = yes; then
2346 # Some people use a C++ compiler to compile C. Since we use `exit',
2347 # in C++ we need to declare it. In case someone uses the same compiler
2348 # for both compiling C and C++ we need to have the C++ compiler decide
2349 # the declaration of exit, since it's the most demanding environment.
2350 cat >conftest.$ac_ext <<_ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 for ac_declaration in \
2369 '#include <stdlib.h>' \
2370 'extern "C" void std::exit (int) throw (); using std::exit;' \
2371 'extern "C" void std::exit (int); using std::exit;' \
2372 'extern "C" void exit (int) throw ();' \
2373 'extern "C" void exit (int);' \
2376 cat >conftest.$ac_ext <<_ACEOF
2377 #line $LINENO "configure"
2378 #include "confdefs.h"
2381 #ifdef F77_DUMMY_MAIN
2385 int F77_DUMMY_MAIN() { return 1; }
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2409 echo "$as_me: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2413 rm -f conftest.$ac_objext conftest.$ac_ext
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #line $LINENO "configure"
2416 #include "confdefs.h"
2418 #ifdef F77_DUMMY_MAIN
2422 int F77_DUMMY_MAIN() { return 1; }
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2452 if test -n "$ac_declaration"; then
2453 echo '#ifdef __cplusplus' >>confdefs.h
2454 echo $ac_declaration >>confdefs.h
2455 echo '#endif' >>confdefs.h
2459 echo "$as_me: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 rm -f conftest.$ac_objext conftest.$ac_ext
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 . "$srcdir/src/template/$template" || exit
2472 if test "$ac_env_CFLAGS_set" = set; then
2473 CFLAGS=$ac_env_CFLAGS_value
2475 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2478 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2479 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2480 # Check if the compiler still works with the template settings
2481 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2482 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2486 #include "confdefs.h"
2488 #ifdef F77_DUMMY_MAIN
2492 int F77_DUMMY_MAIN() { return 1; }
2502 rm -f conftest.$ac_objext conftest$ac_exeext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2504 (eval $ac_link) 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -s conftest$ac_exeext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 echo "$as_me:$LINENO: result: yes" >&5
2515 echo "${ECHO_T}yes" >&6
2517 echo "$as_me: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2522 echo "$as_me: error: cannot proceed" >&2;}
2523 { (exit 1); exit 1; }; }
2525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2532 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2533 # On Suns, sometimes $CPP names a directory.
2534 if test -n "$CPP" && test -d "$CPP"; then
2537 if test -z "$CPP"; then
2538 if test "${ac_cv_prog_CPP+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 # Double quotes because CPP needs to be expanded
2542 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2545 for ac_c_preproc_warn_flag in '' yes
2547 # Use a header file that comes with gcc, so configuring glibc
2548 # with a fresh cross-compiler works.
2549 # On the NeXT, cc -E runs the code through the compiler's parser,
2550 # not just through cpp. "Syntax error" is here to catch this case.
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 #include "confdefs.h"
2557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2560 egrep -v '^ *\+' conftest.er1 >conftest.err
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } >/dev/null; then
2565 if test -s conftest.err; then
2566 ac_cpp_err=$ac_c_preproc_warn_flag
2573 if test -z "$ac_cpp_err"; then
2576 echo "$as_me: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2578 # Broken: fails on valid input.
2581 rm -f conftest.err conftest.$ac_ext
2583 # OK, works on sane cases. Now check whether non-existent headers
2584 # can be detected and how.
2585 cat >conftest.$ac_ext <<_ACEOF
2586 #line $LINENO "configure"
2587 #include "confdefs.h"
2588 #include <ac_nonexistent.h>
2590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593 egrep -v '^ *\+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } >/dev/null; then
2598 if test -s conftest.err; then
2599 ac_cpp_err=$ac_c_preproc_warn_flag
2606 if test -z "$ac_cpp_err"; then
2607 # Broken: success on invalid input.
2610 echo "$as_me: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2612 # Passes both tests.
2616 rm -f conftest.err conftest.$ac_ext
2619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2620 rm -f conftest.err conftest.$ac_ext
2621 if $ac_preproc_ok; then
2633 echo "$as_me:$LINENO: result: $CPP" >&5
2634 echo "${ECHO_T}$CPP" >&6
2636 for ac_c_preproc_warn_flag in '' yes
2638 # Use a header file that comes with gcc, so configuring glibc
2639 # with a fresh cross-compiler works.
2640 # On the NeXT, cc -E runs the code through the compiler's parser,
2641 # not just through cpp. "Syntax error" is here to catch this case.
2642 cat >conftest.$ac_ext <<_ACEOF
2643 #line $LINENO "configure"
2644 #include "confdefs.h"
2648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2651 egrep -v '^ *\+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } >/dev/null; then
2656 if test -s conftest.err; then
2657 ac_cpp_err=$ac_c_preproc_warn_flag
2664 if test -z "$ac_cpp_err"; then
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 # Broken: fails on valid input.
2672 rm -f conftest.err conftest.$ac_ext
2674 # OK, works on sane cases. Now check whether non-existent headers
2675 # can be detected and how.
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #line $LINENO "configure"
2678 #include "confdefs.h"
2679 #include <ac_nonexistent.h>
2681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2684 egrep -v '^ *\+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } >/dev/null; then
2689 if test -s conftest.err; then
2690 ac_cpp_err=$ac_c_preproc_warn_flag
2697 if test -z "$ac_cpp_err"; then
2698 # Broken: success on invalid input.
2701 echo "$as_me: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 # Passes both tests.
2707 rm -f conftest.err conftest.$ac_ext
2710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2711 rm -f conftest.err conftest.$ac_ext
2712 if $ac_preproc_ok; then
2715 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2716 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2717 { (exit 1); exit 1; }; }
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 # Create compiler version string
2729 if test x"$GCC" = x"yes" ; then
2730 cc_string="GCC `${CC} --version | sed q`"
2735 cat >>confdefs.h <<_ACEOF
2736 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2742 # Automatic dependency tracking
2746 # Check whether --enable-depend or --disable-depend was given.
2747 if test "${enable_depend+set}" = set; then
2748 enableval="$enable_depend"
2758 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2759 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2760 { (exit 1); exit 1; }; }
2773 # Enable assert checks
2777 # Check whether --enable-cassert or --disable-cassert was given.
2778 if test "${enable_cassert+set}" = set; then
2779 enableval="$enable_cassert"
2784 cat >>confdefs.h <<\_ACEOF
2785 #define USE_ASSERT_CHECKING 1
2793 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2794 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2795 { (exit 1); exit 1; }; }
2807 # Include directories
2811 # SRCH_INC comes from the template file
2812 for dir in $with_includes $SRCH_INC; do
2813 if test -d "$dir"; then
2814 INCLUDES="$INCLUDES -I$dir"
2816 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2817 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2825 # Library directories
2829 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2830 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2831 if test -d "$dir"; then
2832 LIBDIRS="$LIBDIRS -L$dir"
2834 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2835 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2844 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2845 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2849 # Check whether --with-tcl or --without-tcl was given.
2850 if test "${with_tcl+set}" = set; then
2861 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2862 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2863 { (exit 1); exit 1; }; }
2872 echo "$as_me:$LINENO: result: $with_tcl" >&5
2873 echo "${ECHO_T}$with_tcl" >&6
2876 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2877 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2878 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2879 if test "$with_tcl" = yes; then
2883 # Check whether --with-tk or --without-tk was given.
2884 if test "${with_tk+set}" = set; then
2895 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2896 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2897 { (exit 1); exit 1; }; }
2909 echo "$as_me:$LINENO: result: $with_tk" >&5
2910 echo "${ECHO_T}$with_tk" >&6
2914 # We see if the path to the Tcl/Tk configuration scripts is specified.
2915 # This will override the use of tclsh to find the paths to search.
2920 # Check whether --with-tclconfig or --without-tclconfig was given.
2921 if test "${with_tclconfig+set}" = set; then
2922 withval="$with_tclconfig"
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; }; }
2931 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2932 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2933 { (exit 1); exit 1; }; }
2943 # We see if the path to the Tk configuration scripts is specified.
2944 # This will override the use of tclsh to find the paths to search.
2949 # Check whether --with-tkconfig or --without-tkconfig was given.
2950 if test "${with_tkconfig+set}" = set; then
2951 withval="$with_tkconfig"
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; }; }
2960 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2961 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2962 { (exit 1); exit 1; }; }
2973 # Optionally build Perl modules (Pg.pm and PL/Perl)
2975 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2976 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2980 # Check whether --with-perl or --without-perl was given.
2981 if test "${with_perl+set}" = set; then
2982 withval="$with_perl"
2992 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2993 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2994 { (exit 1); exit 1; }; }
3003 echo "$as_me:$LINENO: result: $with_perl" >&5
3004 echo "${ECHO_T}$with_perl" >&6
3008 # Optionally build Python interface module
3010 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3011 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3015 # Check whether --with-python or --without-python was given.
3016 if test "${with_python+set}" = set; then
3017 withval="$with_python"
3027 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3028 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3029 { (exit 1); exit 1; }; }
3038 echo "$as_me:$LINENO: result: $with_python" >&5
3039 echo "${ECHO_T}$with_python" >&6
3043 # Optionally build the Java/JDBC tools
3045 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3046 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3050 # Check whether --with-java or --without-java was given.
3051 if test "${with_java+set}" = set; then
3052 withval="$with_java"
3056 echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3059 for ac_prog in jakarta-ant ant ant.sh ant.bat
3061 # Extract the first word of "$ac_prog", so it can be a program name with args.
3062 set dummy $ac_prog; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_path_ANT+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$ANT"; then
3093 echo "$as_me:$LINENO: result: $ANT" >&5
3094 echo "${ECHO_T}$ANT" >&6
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3100 test -n "$ANT" && break
3104 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3105 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3106 if test "${pgac_cv_prog_ant_works+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 cat > conftest.java << EOF
3111 public class conftest {
3112 int testmethod(int a, int b) {
3118 cat > conftest.xml << EOF
3119 <project name="conftest" default="conftest">
3120 <target name="conftest">
3121 <javac srcdir="." includes="conftest.java">
3127 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3128 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3129 (eval $pgac_cmd) 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3134 if test $? = 0 && test -f ./conftest.class ; then
3135 pgac_cv_prog_ant_works=yes
3137 echo "configure: failed java program was:" >&5
3138 cat conftest.java >&5
3139 echo "configure: failed build file was:" >&5
3140 cat conftest.xml >&5
3141 pgac_cv_prog_ant_works=no
3144 rm -f conftest* core core.* *.core
3147 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3148 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3150 if test "$pgac_cv_prog_ant_works" != yes; then
3151 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3152 echo "$as_me: error: ant does not work" >&2;}
3153 { (exit 1); exit 1; }; }
3157 if test -z "$ANT"; then
3158 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3159 echo "$as_me: error: Ant is required to build Java components" >&2;}
3160 { (exit 1); exit 1; }; }
3164 echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3168 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3169 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3170 { (exit 1); exit 1; }; }
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3186 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3187 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3191 # Check whether --with-krb4 or --without-krb4 was given.
3192 if test "${with_krb4+set}" = set; then
3193 withval="$with_krb4"
3197 krb4_prefix=/usr/athena
3204 krb4_prefix=$withval
3213 if test "$with_krb4" = yes; then
3215 echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6
3218 cat >>confdefs.h <<\_ACEOF
3223 if test -d "$krb4_prefix/include"; then
3224 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3226 if test -d "$krb4_prefix/lib"; then
3227 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3230 krb_srvtab="/etc/srvtab"
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3244 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3245 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3249 # Check whether --with-krb5 or --without-krb5 was given.
3250 if test "${with_krb5+set}" = set; then
3251 withval="$with_krb5"
3255 krb5_prefix=/usr/athena
3262 krb5_prefix=$withval
3271 if test "$with_krb5" = yes; then
3273 echo "$as_me:$LINENO: result: yes" >&5
3274 echo "${ECHO_T}yes" >&6
3276 cat >>confdefs.h <<\_ACEOF
3281 if test -d "$krb5_prefix/include"; then
3282 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3284 if test -d "$krb5_prefix/lib"; then
3285 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3288 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3299 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3300 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3301 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3302 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3303 { (exit 1); exit 1; }; }
3310 # Kerberos configuration parameters
3315 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3316 if test "${with_krb_srvnam+set}" = set; then
3317 withval="$with_krb_srvnam"
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; }; }
3326 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3327 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3328 { (exit 1); exit 1; }; }
3336 with_krb_srvnam="postgres"
3340 cat >>confdefs.h <<_ACEOF
3341 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3349 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3350 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3354 # Check whether --with-pam or --without-pam was given.
3355 if test "${with_pam+set}" = set; then
3361 cat >>confdefs.h <<\_ACEOF
3370 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3371 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3372 { (exit 1); exit 1; }; }
3381 echo "$as_me:$LINENO: result: $with_pam" >&5
3382 echo "${ECHO_T}$with_pam" >&6
3392 # Check whether --with-openssl or --without-openssl was given.
3393 if test "${with_openssl+set}" = set; then
3394 withval="$with_openssl"
3398 openssl_prefix=/usr/local/ssl
3405 openssl_prefix=$withval
3414 if test "$with_openssl" = yes; then
3416 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3417 echo "${ECHO_T}building with OpenSSL support" >&6
3419 cat >>confdefs.h <<\_ACEOF
3424 if test -d "${openssl_prefix}/include" ; then
3425 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3427 if test -d "${openssl_prefix}/lib" ; then
3428 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3443 # Check whether --with-readline or --without-readline was given.
3444 if test "${with_readline+set}" = set; then
3445 withval="$with_readline"
3455 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3456 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3457 { (exit 1); exit 1; }; }
3473 # Check whether --with-zlib or --without-zlib was given.
3474 if test "${with_zlib+set}" = set; then
3475 withval="$with_zlib"
3485 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3486 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3487 { (exit 1); exit 1; }; }
3500 # Optionally enable the building of the ODBC driver
3504 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3505 enable_odbc=$with_odbc
3508 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3509 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3512 # Check whether --enable-odbc or --disable-odbc was given.
3513 if test "${enable_odbc+set}" = set; then
3514 enableval="$enable_odbc"
3524 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3525 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3526 { (exit 1); exit 1; }; }
3538 # Check whether --with-unixodbc or --without-unixodbc was given.
3539 if test "${with_unixodbc+set}" = set; then
3540 withval="$with_unixodbc"
3550 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3551 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3552 { (exit 1); exit 1; }; }
3564 # Check whether --with-iodbc or --without-iodbc was given.
3565 if test "${with_iodbc+set}" = set; then
3566 withval="$with_iodbc"
3576 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3577 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3578 { (exit 1); exit 1; }; }
3587 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3588 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3589 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3590 { (exit 1); exit 1; }; }
3592 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3595 case $enable_odbc:$with_unixodbc:$with_iodbc in
3596 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3597 echo "${ECHO_T}yes (stand-alone)" >&6;;
3598 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3599 echo "${ECHO_T}yes (unixODBC)" >&6
3601 cat >>confdefs.h <<\_ACEOF
3602 #define WITH_UNIXODBC 1
3606 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3607 echo "${ECHO_T}yes (iODBC)" >&6
3609 cat >>confdefs.h <<\_ACEOF
3610 #define WITH_IODBC 1
3614 no:*) echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6;;
3622 # Allow for overriding the default location of the odbcinst.ini
3623 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3627 # Check whether --with-odbcinst or --without-odbcinst was given.
3628 if test "${with_odbcinst+set}" = set; then
3629 withval="$with_odbcinst"
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 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3639 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3640 { (exit 1); exit 1; }; }
3643 odbcinst_ini_dir=$withval
3648 odbcinst_ini_dir="\${sysconfdir}"
3655 # Assume system is ELF if it predefines __ELF__ as 1,
3656 # otherwise believe host_os based default.
3658 freebsd1*|freebsd2*) elf=no;;
3659 freebsd3*|freebsd4*) elf=yes;;
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3672 egrep "yes" >/dev/null 2>&1; then
3675 if test "X$elf" = "Xyes" ; then
3688 # Optionally build C++ code (i.e., libpq++)
3690 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3691 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3695 # Check whether --with-CXX or --without-CXX was given.
3696 if test "${with_CXX+set}" = set; then
3717 if test "$with_CXX" = yes; then
3719 echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6
3722 # If the user has specified CXXFLAGS in the environment, leave it
3723 # alone, else use a default.
3726 ac_cpp='$CXXCPP $CPPFLAGS'
3727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3730 if test -n "$ac_tool_prefix"; then
3731 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_CXX+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$CXX"; then
3741 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 if test -n "$CXX"; then
3761 echo "$as_me:$LINENO: result: $CXX" >&5
3762 echo "${ECHO_T}$CXX" >&6
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 test -n "$CXX" && break
3771 if test -z "$CXX"; then
3773 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3775 # Extract the first word of "$ac_prog", so it can be a program name with args.
3776 set dummy $ac_prog; ac_word=$2
3777 echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3779 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 if test -n "$ac_ct_CXX"; then
3783 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_ac_ct_CXX="$ac_prog"
3793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3802 if test -n "$ac_ct_CXX"; then
3803 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3804 echo "${ECHO_T}$ac_ct_CXX" >&6
3806 echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6
3810 test -n "$ac_ct_CXX" && break
3812 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3818 # Provide some information about the compiler.
3819 echo "$as_me:$LINENO:" \
3820 "checking for C++ compiler version" >&5
3821 ac_compiler=`set X $ac_compile; echo $2`
3822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3823 (eval $ac_compiler --version </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); }
3832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3833 (eval $ac_compiler -V </dev/null >&5) 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }
3838 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3839 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3840 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 cat >conftest.$ac_ext <<_ACEOF
3844 #line $LINENO "configure"
3845 #include "confdefs.h"
3847 #ifdef F77_DUMMY_MAIN
3851 int F77_DUMMY_MAIN() { return 1; }
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -s conftest.$ac_objext'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3878 echo "$as_me: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3882 rm -f conftest.$ac_objext conftest.$ac_ext
3883 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3886 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3887 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3888 GXX=`test $ac_compiler_gnu = yes && echo yes`
3889 ac_test_CXXFLAGS=${CXXFLAGS+set}
3890 ac_save_CXXFLAGS=$CXXFLAGS
3892 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3893 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3894 if test "${ac_cv_prog_cxx_g+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3899 #include "confdefs.h"
3901 #ifdef F77_DUMMY_MAIN
3905 int F77_DUMMY_MAIN() { return 1; }
3915 rm -f conftest.$ac_objext
3916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3917 (eval $ac_compile) 2>&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_prog_cxx_g=yes
3929 echo "$as_me: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3933 rm -f conftest.$ac_objext conftest.$ac_ext
3935 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3936 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3937 if test "$ac_test_CXXFLAGS" = set; then
3938 CXXFLAGS=$ac_save_CXXFLAGS
3939 elif test $ac_cv_prog_cxx_g = yes; then
3940 if test "$GXX" = yes; then
3946 if test "$GXX" = yes; then
3952 for ac_declaration in \
3954 '#include <stdlib.h>' \
3955 'extern "C" void std::exit (int) throw (); using std::exit;' \
3956 'extern "C" void std::exit (int); using std::exit;' \
3957 'extern "C" void exit (int) throw ();' \
3958 'extern "C" void exit (int);' \
3961 cat >conftest.$ac_ext <<_ACEOF
3962 #line $LINENO "configure"
3963 #include "confdefs.h"
3966 #ifdef F77_DUMMY_MAIN
3970 int F77_DUMMY_MAIN() { return 1; }
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3998 rm -f conftest.$ac_objext conftest.$ac_ext
3999 cat >conftest.$ac_ext <<_ACEOF
4000 #line $LINENO "configure"
4001 #include "confdefs.h"
4003 #ifdef F77_DUMMY_MAIN
4007 int F77_DUMMY_MAIN() { return 1; }
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } &&
4023 { ac_try='test -s conftest.$ac_objext'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; }; then
4031 echo "$as_me: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4034 rm -f conftest.$ac_objext conftest.$ac_ext
4037 if test -n "$ac_declaration"; then
4038 echo '#ifdef __cplusplus' >>confdefs.h
4039 echo $ac_declaration >>confdefs.h
4040 echo '#endif' >>confdefs.h
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 if test "$ac_env_CXXFLAGS" != set; then
4050 if test "$GXX" = yes; then
4051 CXXFLAGS="$GCC_CXXFLAGS"
4053 CXXFLAGS="$VENDOR_CXXFLAGS"
4056 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4057 CXXFLAGS="$CXXFLAGS -g"
4059 { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4060 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4063 ac_cpp='$CXXCPP $CPPFLAGS'
4064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4067 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4068 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4069 if test -z "$CXXCPP"; then
4070 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 # Double quotes because CXXCPP needs to be expanded
4074 for CXXCPP in "$CXX -E" "/lib/cpp"
4077 for ac_cxx_preproc_warn_flag in '' yes
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # On the NeXT, cc -E runs the code through the compiler's parser,
4082 # not just through cpp. "Syntax error" is here to catch this case.
4083 cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4085 #include "confdefs.h"
4089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4092 egrep -v '^ *\+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } >/dev/null; then
4097 if test -s conftest.err; then
4098 ac_cpp_err=$ac_cxx_preproc_warn_flag
4105 if test -z "$ac_cpp_err"; then
4108 echo "$as_me: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 # Broken: fails on valid input.
4113 rm -f conftest.err conftest.$ac_ext
4115 # OK, works on sane cases. Now check whether non-existent headers
4116 # can be detected and how.
4117 cat >conftest.$ac_ext <<_ACEOF
4118 #line $LINENO "configure"
4119 #include "confdefs.h"
4120 #include <ac_nonexistent.h>
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4125 egrep -v '^ *\+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null; then
4130 if test -s conftest.err; then
4131 ac_cpp_err=$ac_cxx_preproc_warn_flag
4138 if test -z "$ac_cpp_err"; then
4139 # Broken: success on invalid input.
4142 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 # Passes both tests.
4148 rm -f conftest.err conftest.$ac_ext
4151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152 rm -f conftest.err conftest.$ac_ext
4153 if $ac_preproc_ok; then
4158 ac_cv_prog_CXXCPP=$CXXCPP
4161 CXXCPP=$ac_cv_prog_CXXCPP
4163 ac_cv_prog_CXXCPP=$CXXCPP
4165 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4166 echo "${ECHO_T}$CXXCPP" >&6
4168 for ac_cxx_preproc_warn_flag in '' yes
4170 # Use a header file that comes with gcc, so configuring glibc
4171 # with a fresh cross-compiler works.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4183 egrep -v '^ *\+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev/null; then
4188 if test -s conftest.err; then
4189 ac_cpp_err=$ac_cxx_preproc_warn_flag
4196 if test -z "$ac_cpp_err"; then
4199 echo "$as_me: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 # Broken: fails on valid input.
4204 rm -f conftest.err conftest.$ac_ext
4206 # OK, works on sane cases. Now check whether non-existent headers
4207 # can be detected and how.
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4210 #include "confdefs.h"
4211 #include <ac_nonexistent.h>
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216 egrep -v '^ *\+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null; then
4221 if test -s conftest.err; then
4222 ac_cpp_err=$ac_cxx_preproc_warn_flag
4229 if test -z "$ac_cpp_err"; then
4230 # Broken: success on invalid input.
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 # Passes both tests.
4239 rm -f conftest.err conftest.$ac_ext
4242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4243 rm -f conftest.err conftest.$ac_ext
4244 if $ac_preproc_ok; then
4247 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4248 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4249 { (exit 1); exit 1; }; }
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4267 CPPFLAGS="$CPPFLAGS $INCLUDES"
4268 LDFLAGS="$LDFLAGS $LIBDIRS"
4270 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4271 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4272 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4273 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4276 for ac_prog in gawk mawk nawk awk
4278 # Extract the first word of "$ac_prog", so it can be a program name with args.
4279 set dummy $ac_prog; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_AWK+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$AWK"; then
4286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_AWK="$ac_prog"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 if test -n "$AWK"; then
4306 echo "$as_me:$LINENO: result: $AWK" >&5
4307 echo "${ECHO_T}$AWK" >&6
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4313 test -n "$AWK" && break
4316 echo "$as_me:$LINENO: checking for flex" >&5
4317 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4318 if test "${pgac_cv_path_flex+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 # Let the user override the test
4322 if test -n "$FLEX"; then
4323 pgac_cv_path_flex=$FLEX
4327 for pgac_dir in $PATH; do
4328 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4331 for pgac_prog in flex lex; do
4332 pgac_candidate="$pgac_dir/$pgac_prog"
4333 if test -f "$pgac_candidate" \
4334 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4336 echo '%%' > conftest.l
4337 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4338 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4339 pgac_broken_flex=$pgac_candidate
4343 pgac_cv_path_flex=$pgac_candidate
4351 : ${pgac_cv_path_flex=no}
4355 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4356 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4357 if test x"$pgac_cv_path_flex" = x"no"; then
4358 if test -n "$pgac_broken_flex"; then
4359 { echo "$as_me:$LINENO: WARNING:
4360 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4361 *** should get version 2.5.4 or later." >&5
4362 echo "$as_me: WARNING:
4363 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4364 *** should get version 2.5.4 or later." >&2;}
4367 { echo "$as_me:$LINENO: WARNING:
4368 *** Without Flex you will not be able to build PostgreSQL from CVS or
4369 *** change any of the scanner definition files. You can obtain Flex from
4370 *** a GNU mirror site. (If you are using the official distribution of
4371 *** PostgreSQL then you do not need to worry about this because the Flex
4372 *** output is pre-generated.)" >&5
4373 echo "$as_me: WARNING:
4374 *** Without Flex you will not be able to build PostgreSQL from CVS or
4375 *** change any of the scanner definition files. You can obtain Flex from
4376 *** a GNU mirror site. (If you are using the official distribution of
4377 *** PostgreSQL then you do not need to worry about this because the Flex
4378 *** output is pre-generated.)" >&2;}
4381 if test x"$pgac_cv_path_flex" = x"no"; then
4384 FLEX=$pgac_cv_path_flex
4390 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4391 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4393 if test "$LN_S" = "ln -s"; then
4394 echo "$as_me:$LINENO: result: yes" >&5
4395 echo "${ECHO_T}yes" >&6
4397 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4398 echo "${ECHO_T}no, using $LN_S" >&6
4402 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4403 if test "${with_gnu_ld+set}" = set; then
4404 withval="$with_gnu_ld"
4405 test "$withval" = no || with_gnu_ld=yes
4410 if test "$GCC" = yes; then
4411 # Check if gcc -print-prog-name=ld gives a path.
4412 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4413 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4416 # gcc leaves a trailing carriage return which upsets mingw
4417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4422 # Accept absolute paths.
4423 [\\/]* | [A-Za-z]:[\\/]*)
4424 re_direlt='/[^/][^/]*/\.\./'
4425 # Canonicalize the path of ld
4426 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4427 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4428 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4430 test -z "$LD" && LD="$ac_prog"
4433 # If it fails, then pretend we aren't using GCC.
4437 # If it is relative, then search for the first ld in PATH.
4441 elif test "$with_gnu_ld" = yes; then
4442 echo "$as_me:$LINENO: checking for GNU ld" >&5
4443 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4445 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4446 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4448 if test "${ac_cv_path_LD+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 if test -z "$LD"; then
4452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4453 for ac_dir in $PATH; do
4454 test -z "$ac_dir" && ac_dir=.
4455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4456 ac_cv_path_LD="$ac_dir/$ac_prog"
4457 # Check to see if the program is GNU ld. I'd rather use --version,
4458 # but apparently some GNU ld's only accept -v.
4459 # Break only if it was the GNU/non-GNU ld that we prefer.
4460 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4461 test "$with_gnu_ld" != no && break
4463 test "$with_gnu_ld" != yes && break
4469 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4474 if test -n "$LD"; then
4475 echo "$as_me:$LINENO: result: $LD" >&5
4476 echo "${ECHO_T}$LD" >&6
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4481 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4482 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4483 { (exit 1); exit 1; }; }
4484 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4485 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4486 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4490 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4491 ac_cv_prog_gnu_ld=yes
4493 ac_cv_prog_gnu_ld=no
4496 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4497 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4498 with_gnu_ld=$ac_cv_prog_gnu_ld
4503 case $host_os in sysv5*)
4504 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4505 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4506 if test "${pgac_cv_prog_ld_R+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4511 cat >conftest.$ac_ext <<_ACEOF
4512 #line $LINENO "configure"
4513 #include "confdefs.h"
4515 #ifdef F77_DUMMY_MAIN
4519 int F77_DUMMY_MAIN() { return 1; }
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531 (eval $ac_link) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -s conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 pgac_cv_prog_ld_R=yes
4543 echo "$as_me: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 pgac_cv_prog_ld_R=no
4547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4548 LDFLAGS=$pgac_save_LDFLAGS
4551 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4552 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4553 ld_R_works=$pgac_cv_prog_ld_R
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4558 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_prog_RANLIB+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 if test -n "$RANLIB"; then
4565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 RANLIB=$ac_cv_prog_RANLIB
4584 if test -n "$RANLIB"; then
4585 echo "$as_me:$LINENO: result: $RANLIB" >&5
4586 echo "${ECHO_T}$RANLIB" >&6
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4593 if test -z "$ac_cv_prog_RANLIB"; then
4594 ac_ct_RANLIB=$RANLIB
4595 # Extract the first word of "ranlib", so it can be a program name with args.
4596 set dummy ranlib; ac_word=$2
4597 echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4599 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 if test -n "$ac_ct_RANLIB"; then
4603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_ac_ct_RANLIB="ranlib"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4623 if test -n "$ac_ct_RANLIB"; then
4624 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4625 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4627 echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4631 RANLIB=$ac_ct_RANLIB
4633 RANLIB="$ac_cv_prog_RANLIB"
4636 for ac_prog in lorder
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_LORDER+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 if test -n "$LORDER"; then
4646 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_LORDER="$ac_prog"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 LORDER=$ac_cv_prog_LORDER
4665 if test -n "$LORDER"; then
4666 echo "$as_me:$LINENO: result: $LORDER" >&5
4667 echo "${ECHO_T}$LORDER" >&6
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4673 test -n "$LORDER" && break
4676 # Extract the first word of "tar", so it can be a program name with args.
4677 set dummy tar; ac_word=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_path_TAR+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test -n "$TAR"; then
4708 echo "$as_me:$LINENO: result: $TAR" >&5
4709 echo "${ECHO_T}$TAR" >&6
4711 echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}strip; ac_word=$2
4719 echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721 if test "${ac_cv_prog_STRIP+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 if test -n "$STRIP"; then
4725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 STRIP=$ac_cv_prog_STRIP
4744 if test -n "$STRIP"; then
4745 echo "$as_me:$LINENO: result: $STRIP" >&5
4746 echo "${ECHO_T}$STRIP" >&6
4748 echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6
4753 if test -z "$ac_cv_prog_STRIP"; then
4755 # Extract the first word of "strip", so it can be a program name with args.
4756 set dummy strip; ac_word=$2
4757 echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4759 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 if test -n "$ac_ct_STRIP"; then
4763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772 ac_cv_prog_ac_ct_STRIP="strip"
4773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4782 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4783 if test -n "$ac_ct_STRIP"; then
4784 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4785 echo "${ECHO_T}$ac_ct_STRIP" >&6
4787 echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4793 STRIP="$ac_cv_prog_STRIP"
4797 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4798 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4799 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4800 STRIP_STATIC_LIB="$STRIP -x"
4801 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4802 echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6
4807 echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4814 for ac_prog in 'bison -y'
4816 # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_YACC+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$YACC"; then
4824 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_YACC="$ac_prog"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 YACC=$ac_cv_prog_YACC
4843 if test -n "$YACC"; then
4844 echo "$as_me:$LINENO: result: $YACC" >&5
4845 echo "${ECHO_T}$YACC" >&6
4847 echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4851 test -n "$YACC" && break
4854 if test -z "$YACC"; then
4855 { echo "$as_me:$LINENO: WARNING:
4856 *** Without Bison you will not be able to build PostgreSQL from CVS or
4857 *** change any of the parser definition files. You can obtain Bison from
4858 *** a GNU mirror site. (If you are using the official distribution of
4859 *** PostgreSQL then you do not need to worry about this because the Bison
4860 *** output is pre-generated.) To use a different yacc program (possible,
4861 *** but not recommended), set the environment variable YACC before running
4862 *** 'configure'." >&5
4863 echo "$as_me: WARNING:
4864 *** Without Bison you will not be able to build PostgreSQL from CVS or
4865 *** change any of the parser definition files. You can obtain Bison from
4866 *** a GNU mirror site. (If you are using the official distribution of
4867 *** PostgreSQL then you do not need to worry about this because the Bison
4868 *** output is pre-generated.) To use a different yacc program (possible,
4869 *** but not recommended), set the environment variable YACC before running
4870 *** 'configure'." >&2;}
4874 if test "$with_tk" = yes; then
4875 # Extract the first word of "wish", so it can be a program name with args.
4876 set dummy wish; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_path_WISH+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 WISH=$ac_cv_path_WISH
4906 if test -n "$WISH"; then
4907 echo "$as_me:$LINENO: result: $WISH" >&5
4908 echo "${ECHO_T}$WISH" >&6
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4914 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4915 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4916 { (exit 1); exit 1; }; }
4919 # Extract the first word of "perl", so it can be a program name with args.
4920 set dummy perl; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_path_PERL+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 PERL=$ac_cv_path_PERL
4950 if test -n "$PERL"; then
4951 echo "$as_me:$LINENO: result: $PERL" >&5
4952 echo "${ECHO_T}$PERL" >&6
4954 echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6
4958 if test "$with_perl" = yes; then
4960 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4961 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4962 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4963 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4964 echo "${ECHO_T}$perl_installsitearch" >&6
4965 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4966 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4967 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4968 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4969 echo "${ECHO_T}$perl_installman3dir" >&6
4970 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4971 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4972 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4973 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4974 echo "${ECHO_T}$perl_archlibexp" >&6
4975 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4976 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4977 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4978 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4979 echo "${ECHO_T}$perl_privlibexp" >&6
4980 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4981 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4982 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4983 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4984 echo "${ECHO_T}$perl_useshrplib" >&6
4985 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4986 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4987 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4988 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4989 echo "${ECHO_T}$perl_man3ext" >&6
4991 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4992 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4993 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4994 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4995 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4996 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4997 echo "${ECHO_T}$perl_embed_ldflags" >&6
5000 if test "$with_python" = yes; then
5001 # Extract the first word of "python", so it can be a program name with args.
5002 set dummy python; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_path_PYTHON+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 PYTHON=$ac_cv_path_PYTHON
5032 if test -n "$PYTHON"; then
5033 echo "$as_me:$LINENO: result: $PYTHON" >&5
5034 echo "${ECHO_T}$PYTHON" >&6
5036 echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5040 if test x"$PYTHON" = x""; then
5041 { { echo "$as_me:$LINENO: error: Python not found" >&5
5042 echo "$as_me: error: Python not found" >&2;}
5043 { (exit 1); exit 1; }; }
5047 echo "$as_me:$LINENO: checking Python installation directories" >&5
5048 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5049 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5050 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5051 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5052 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5053 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5054 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5055 python_includespec="-I${python_prefix}/include/python${python_version}"
5056 if test "$python_prefix" != "$python_execprefix"; then
5057 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5060 # This should be enough of a message.
5061 if test "$python_prefix" != "$python_execprefix"; then
5062 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5063 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5065 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5066 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5073 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5074 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5076 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5079 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5080 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5082 pgac_tab=" " # tab character
5083 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"`
5085 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5086 echo "${ECHO_T}${python_libspec}" >&6
5096 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5099 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5100 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5101 if test "${ac_cv_lib_bsd_main+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 ac_check_lib_save_LIBS=$LIBS
5106 cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 #include "confdefs.h"
5111 #ifdef F77_DUMMY_MAIN
5115 int F77_DUMMY_MAIN() { return 1; }
5125 rm -f conftest.$ac_objext conftest$ac_exeext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5127 (eval $ac_link) 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -s conftest$ac_exeext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_lib_bsd_main=yes
5139 echo "$as_me: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5141 ac_cv_lib_bsd_main=no
5143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5146 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5147 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5148 if test $ac_cv_lib_bsd_main = yes; then
5149 cat >>confdefs.h <<_ACEOF
5150 #define HAVE_LIBBSD 1
5159 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5160 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5161 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 ac_check_lib_save_LIBS=$LIBS
5166 cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 #include "confdefs.h"
5170 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5176 char setproctitle ();
5177 #ifdef F77_DUMMY_MAIN
5181 int F77_DUMMY_MAIN() { return 1; }
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_lib_util_setproctitle=yes
5205 echo "$as_me: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 ac_cv_lib_util_setproctitle=no
5209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5210 LIBS=$ac_check_lib_save_LIBS
5212 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5213 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5214 if test $ac_cv_lib_util_setproctitle = yes; then
5215 cat >>confdefs.h <<_ACEOF
5216 #define HAVE_LIBUTIL 1
5224 echo "$as_me:$LINENO: checking for main in -lm" >&5
5225 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5226 if test "${ac_cv_lib_m_main+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 ac_check_lib_save_LIBS=$LIBS
5231 cat >conftest.$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5233 #include "confdefs.h"
5236 #ifdef F77_DUMMY_MAIN
5240 int F77_DUMMY_MAIN() { return 1; }
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_cv_lib_m_main=yes
5264 echo "$as_me: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5269 LIBS=$ac_check_lib_save_LIBS
5271 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5272 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5273 if test $ac_cv_lib_m_main = yes; then
5274 cat >>confdefs.h <<_ACEOF
5283 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5284 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5285 if test "${ac_cv_lib_dl_main+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_check_lib_save_LIBS=$LIBS
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5295 #ifdef F77_DUMMY_MAIN
5299 int F77_DUMMY_MAIN() { return 1; }
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311 (eval $ac_link) 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -s conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_lib_dl_main=yes
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 ac_cv_lib_dl_main=no
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_check_lib_save_LIBS
5330 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5331 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5332 if test $ac_cv_lib_dl_main = yes; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define HAVE_LIBDL 1
5342 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5343 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5344 if test "${ac_cv_lib_nsl_main+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_check_lib_save_LIBS=$LIBS
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5354 #ifdef F77_DUMMY_MAIN
5358 int F77_DUMMY_MAIN() { return 1; }
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -s conftest$ac_exeext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_lib_nsl_main=yes
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 ac_cv_lib_nsl_main=no
5386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5387 LIBS=$ac_check_lib_save_LIBS
5389 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5390 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5391 if test $ac_cv_lib_nsl_main = yes; then
5392 cat >>confdefs.h <<_ACEOF
5393 #define HAVE_LIBNSL 1
5401 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5402 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5403 if test "${ac_cv_lib_socket_main+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 ac_check_lib_save_LIBS=$LIBS
5407 LIBS="-lsocket $LIBS"
5408 cat >conftest.$ac_ext <<_ACEOF
5409 #line $LINENO "configure"
5410 #include "confdefs.h"
5413 #ifdef F77_DUMMY_MAIN
5417 int F77_DUMMY_MAIN() { return 1; }
5427 rm -f conftest.$ac_objext conftest$ac_exeext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5429 (eval $ac_link) 2>&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -s conftest$ac_exeext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_lib_socket_main=yes
5441 echo "$as_me: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5443 ac_cv_lib_socket_main=no
5445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446 LIBS=$ac_check_lib_save_LIBS
5448 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5449 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5450 if test $ac_cv_lib_socket_main = yes; then
5451 cat >>confdefs.h <<_ACEOF
5452 #define HAVE_LIBSOCKET 1
5455 LIBS="-lsocket $LIBS"
5460 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5461 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5462 if test "${ac_cv_lib_ipc_main+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_check_lib_save_LIBS=$LIBS
5467 cat >conftest.$ac_ext <<_ACEOF
5468 #line $LINENO "configure"
5469 #include "confdefs.h"
5472 #ifdef F77_DUMMY_MAIN
5476 int F77_DUMMY_MAIN() { return 1; }
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_lib_ipc_main=yes
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 ac_cv_lib_ipc_main=no
5504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5507 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5508 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5509 if test $ac_cv_lib_ipc_main = yes; then
5510 cat >>confdefs.h <<_ACEOF
5511 #define HAVE_LIBIPC 1
5519 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5520 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5521 if test "${ac_cv_lib_IPC_main+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 ac_check_lib_save_LIBS=$LIBS
5526 cat >conftest.$ac_ext <<_ACEOF
5527 #line $LINENO "configure"
5528 #include "confdefs.h"
5531 #ifdef F77_DUMMY_MAIN
5535 int F77_DUMMY_MAIN() { return 1; }
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_lib_IPC_main=yes
5559 echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5561 ac_cv_lib_IPC_main=no
5563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5566 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5567 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5568 if test $ac_cv_lib_IPC_main = yes; then
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_LIBIPC 1
5578 echo "$as_me:$LINENO: checking for main in -llc" >&5
5579 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5580 if test "${ac_cv_lib_lc_main+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 ac_check_lib_save_LIBS=$LIBS
5585 cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 #include "confdefs.h"
5590 #ifdef F77_DUMMY_MAIN
5594 int F77_DUMMY_MAIN() { return 1; }
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_lc_main=yes
5618 echo "$as_me: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 ac_cv_lib_lc_main=no
5622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5623 LIBS=$ac_check_lib_save_LIBS
5625 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5626 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5627 if test $ac_cv_lib_lc_main = yes; then
5628 cat >>confdefs.h <<_ACEOF
5629 #define HAVE_LIBLC 1
5637 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5638 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5639 if test "${ac_cv_lib_dld_main+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 ac_check_lib_save_LIBS=$LIBS
5644 cat >conftest.$ac_ext <<_ACEOF
5645 #line $LINENO "configure"
5646 #include "confdefs.h"
5649 #ifdef F77_DUMMY_MAIN
5653 int F77_DUMMY_MAIN() { return 1; }
5663 rm -f conftest.$ac_objext conftest$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -s conftest$ac_exeext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_lib_dld_main=yes
5677 echo "$as_me: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 ac_cv_lib_dld_main=no
5681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5682 LIBS=$ac_check_lib_save_LIBS
5684 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5685 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5686 if test $ac_cv_lib_dld_main = yes; then
5687 cat >>confdefs.h <<_ACEOF
5688 #define HAVE_LIBDLD 1
5696 echo "$as_me:$LINENO: checking for main in -lld" >&5
5697 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5698 if test "${ac_cv_lib_ld_main+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 ac_check_lib_save_LIBS=$LIBS
5703 cat >conftest.$ac_ext <<_ACEOF
5704 #line $LINENO "configure"
5705 #include "confdefs.h"
5708 #ifdef F77_DUMMY_MAIN
5712 int F77_DUMMY_MAIN() { return 1; }
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724 (eval $ac_link) 2>&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -s conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_lib_ld_main=yes
5736 echo "$as_me: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5738 ac_cv_lib_ld_main=no
5740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741 LIBS=$ac_check_lib_save_LIBS
5743 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5744 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5745 if test $ac_cv_lib_ld_main = yes; then
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_LIBLD 1
5755 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5756 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5757 if test "${ac_cv_lib_compat_main+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 ac_check_lib_save_LIBS=$LIBS
5761 LIBS="-lcompat $LIBS"
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 #include "confdefs.h"
5767 #ifdef F77_DUMMY_MAIN
5771 int F77_DUMMY_MAIN() { return 1; }
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_cv_lib_compat_main=yes
5795 echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 ac_cv_lib_compat_main=no
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5803 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5804 if test $ac_cv_lib_compat_main = yes; then
5805 cat >>confdefs.h <<_ACEOF
5806 #define HAVE_LIBCOMPAT 1
5809 LIBS="-lcompat $LIBS"
5814 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5815 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5816 if test "${ac_cv_lib_BSD_main+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_check_lib_save_LIBS=$LIBS
5821 cat >conftest.$ac_ext <<_ACEOF
5822 #line $LINENO "configure"
5823 #include "confdefs.h"
5826 #ifdef F77_DUMMY_MAIN
5830 int F77_DUMMY_MAIN() { return 1; }
5840 rm -f conftest.$ac_objext conftest$ac_exeext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842 (eval $ac_link) 2>&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -s conftest$ac_exeext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 ac_cv_lib_BSD_main=yes
5854 echo "$as_me: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5856 ac_cv_lib_BSD_main=no
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5862 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5863 if test $ac_cv_lib_BSD_main = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define HAVE_LIBBSD 1
5873 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5874 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5875 if test "${ac_cv_lib_gen_main+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_check_lib_save_LIBS=$LIBS
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 #include "confdefs.h"
5885 #ifdef F77_DUMMY_MAIN
5889 int F77_DUMMY_MAIN() { return 1; }
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -s conftest$ac_exeext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_lib_gen_main=yes
5913 echo "$as_me: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 ac_cv_lib_gen_main=no
5917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5918 LIBS=$ac_check_lib_save_LIBS
5920 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5921 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5922 if test $ac_cv_lib_gen_main = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924 #define HAVE_LIBGEN 1
5932 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5933 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5934 if test "${ac_cv_lib_PW_main+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 ac_check_lib_save_LIBS=$LIBS
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 #include "confdefs.h"
5944 #ifdef F77_DUMMY_MAIN
5948 int F77_DUMMY_MAIN() { return 1; }
5958 rm -f conftest.$ac_objext conftest$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960 (eval $ac_link) 2>&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } &&
5964 { ac_try='test -s conftest$ac_exeext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_cv_lib_PW_main=yes
5972 echo "$as_me: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5974 ac_cv_lib_PW_main=no
5976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5977 LIBS=$ac_check_lib_save_LIBS
5979 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5980 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5981 if test $ac_cv_lib_PW_main = yes; then
5982 cat >>confdefs.h <<_ACEOF
5983 #define HAVE_LIBPW 1
5991 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5992 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5993 if test "${ac_cv_lib_resolv_main+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 ac_check_lib_save_LIBS=$LIBS
5997 LIBS="-lresolv $LIBS"
5998 cat >conftest.$ac_ext <<_ACEOF
5999 #line $LINENO "configure"
6000 #include "confdefs.h"
6003 #ifdef F77_DUMMY_MAIN
6007 int F77_DUMMY_MAIN() { return 1; }
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_lib_resolv_main=yes
6031 echo "$as_me: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033 ac_cv_lib_resolv_main=no
6035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6036 LIBS=$ac_check_lib_save_LIBS
6038 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6039 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6040 if test $ac_cv_lib_resolv_main = yes; then
6041 cat >>confdefs.h <<_ACEOF
6042 #define HAVE_LIBRESOLV 1
6045 LIBS="-lresolv $LIBS"
6049 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6050 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6051 if test "${ac_cv_search_getopt_long+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_func_search_save_LIBS=$LIBS
6055 ac_cv_search_getopt_long=no
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6060 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6066 char getopt_long ();
6067 #ifdef F77_DUMMY_MAIN
6071 int F77_DUMMY_MAIN() { return 1; }
6081 rm -f conftest.$ac_objext conftest$ac_exeext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6083 (eval $ac_link) 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_search_getopt_long="none required"
6095 echo "$as_me: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099 if test "$ac_cv_search_getopt_long" = no; then
6100 for ac_lib in getopt; do
6101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6104 #include "confdefs.h"
6106 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6112 char getopt_long ();
6113 #ifdef F77_DUMMY_MAIN
6117 int F77_DUMMY_MAIN() { return 1; }
6127 rm -f conftest.$ac_objext conftest$ac_exeext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6129 (eval $ac_link) 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -s conftest$ac_exeext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_search_getopt_long="-l$ac_lib"
6142 echo "$as_me: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6148 LIBS=$ac_func_search_save_LIBS
6150 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6151 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6152 if test "$ac_cv_search_getopt_long" != no; then
6153 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6159 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6160 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6161 if test "${ac_cv_lib_unix_main+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 ac_check_lib_save_LIBS=$LIBS
6166 cat >conftest.$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6171 #ifdef F77_DUMMY_MAIN
6175 int F77_DUMMY_MAIN() { return 1; }
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_lib_unix_main=yes
6199 echo "$as_me: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6201 ac_cv_lib_unix_main=no
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 LIBS=$ac_check_lib_save_LIBS
6206 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6207 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6208 if test $ac_cv_lib_unix_main = yes; then
6209 cat >>confdefs.h <<_ACEOF
6210 #define HAVE_LIBUNIX 1
6217 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6218 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6219 if test "${ac_cv_search_crypt+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 ac_func_search_save_LIBS=$LIBS
6223 ac_cv_search_crypt=no
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6226 #include "confdefs.h"
6228 /* Override any gcc2 internal prototype to avoid an error. */
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
6235 #ifdef F77_DUMMY_MAIN
6239 int F77_DUMMY_MAIN() { return 1; }
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 ac_cv_search_crypt="none required"
6263 echo "$as_me: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6267 if test "$ac_cv_search_crypt" = no; then
6268 for ac_lib in crypt; do
6269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6270 cat >conftest.$ac_ext <<_ACEOF
6271 #line $LINENO "configure"
6272 #include "confdefs.h"
6274 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6281 #ifdef F77_DUMMY_MAIN
6285 int F77_DUMMY_MAIN() { return 1; }
6295 rm -f conftest.$ac_objext conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297 (eval $ac_link) 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -s conftest$ac_exeext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_search_crypt="-l$ac_lib"
6310 echo "$as_me: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6316 LIBS=$ac_func_search_save_LIBS
6318 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6319 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6320 if test "$ac_cv_search_crypt" != no; then
6321 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6327 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6328 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6329 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 ac_check_lib_save_LIBS=$LIBS
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 #include "confdefs.h"
6338 /* Override any gcc2 internal prototype to avoid an error. */
6342 /* We use char because int might match the return type of a gcc2
6343 builtin and then its argument prototype would still apply. */
6344 char __inet_ntoa ();
6345 #ifdef F77_DUMMY_MAIN
6349 int F77_DUMMY_MAIN() { return 1; }
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_lib_bind___inet_ntoa=yes
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 ac_cv_lib_bind___inet_ntoa=no
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_check_lib_save_LIBS
6380 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6381 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6382 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6383 cat >>confdefs.h <<_ACEOF
6384 #define HAVE_LIBBIND 1
6392 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6393 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6394 if test "${ac_cv_search_fdatasync+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 ac_func_search_save_LIBS=$LIBS
6398 ac_cv_search_fdatasync=no
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6403 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6410 #ifdef F77_DUMMY_MAIN
6414 int F77_DUMMY_MAIN() { return 1; }
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -s conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_cv_search_fdatasync="none required"
6438 echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test "$ac_cv_search_fdatasync" = no; then
6443 for ac_lib in rt posix4; do
6444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6449 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6456 #ifdef F77_DUMMY_MAIN
6460 int F77_DUMMY_MAIN() { return 1; }
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_search_fdatasync="-l$ac_lib"
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6491 LIBS=$ac_func_search_save_LIBS
6493 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6494 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6495 if test "$ac_cv_search_fdatasync" != no; then
6496 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6501 if test "$with_readline" = yes; then
6503 echo "$as_me:$LINENO: checking for readline" >&5
6504 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6506 if test "${pgac_cv_check_readline+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 pgac_cv_check_readline=no
6510 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6511 for pgac_rllib in -lreadline -ledit ; do
6512 pgac_save_LIBS=$LIBS
6513 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6514 cat >conftest.$ac_ext <<_ACEOF
6515 #line $LINENO "configure"
6516 #include "confdefs.h"
6518 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6525 #ifdef F77_DUMMY_MAIN
6529 int F77_DUMMY_MAIN() { return 1; }
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541 (eval $ac_link) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6552 # NetBSD and OpenBSD have a broken linker that does not
6553 # recognize dependent libraries
6554 case $host_os in netbsd* | openbsd* )
6557 *) pgac_lib=" -lcurses" ;;
6561 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6565 echo "$as_me: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6569 LIBS=$pgac_save_LIBS
6572 LIBS=$pgac_save_LIBS
6576 if test "$pgac_cv_check_readline" != no ; then
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_LIBREADLINE 1
6582 LIBS="$pgac_cv_check_readline $LIBS"
6583 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6584 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6586 echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6
6589 if test x"$pgac_cv_check_readline" = x"no"; then
6590 { { echo "$as_me:$LINENO: error: readline library not found
6591 Use --without-readline to disable readline support." >&5
6592 echo "$as_me: error: readline library not found
6593 Use --without-readline to disable readline support." >&2;}
6594 { (exit 1); exit 1; }; }
6598 if test "$with_zlib" = yes; then
6600 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6601 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6602 if test "${ac_cv_lib_z_inflate+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 ac_check_lib_save_LIBS=$LIBS
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 #include "confdefs.h"
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6618 #ifdef F77_DUMMY_MAIN
6622 int F77_DUMMY_MAIN() { return 1; }
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634 (eval $ac_link) 2>&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -s conftest$ac_exeext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_cv_lib_z_inflate=yes
6646 echo "$as_me: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 ac_cv_lib_z_inflate=no
6650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 LIBS=$ac_check_lib_save_LIBS
6653 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6654 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6655 if test $ac_cv_lib_z_inflate = yes; then
6656 cat >>confdefs.h <<_ACEOF
6663 { { echo "$as_me:$LINENO: error: zlib library not found
6664 Use --without-zlib to disable zlib support." >&5
6665 echo "$as_me: error: zlib library not found
6666 Use --without-zlib to disable zlib support." >&2;}
6667 { (exit 1); exit 1; }; }
6672 if test "$with_krb4" = yes ; then
6674 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6675 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6676 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 ac_check_lib_save_LIBS=$LIBS
6681 cat >conftest.$ac_ext <<_ACEOF
6682 #line $LINENO "configure"
6683 #include "confdefs.h"
6685 /* Override any gcc2 internal prototype to avoid an error. */
6689 /* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */
6691 char des_encrypt ();
6692 #ifdef F77_DUMMY_MAIN
6696 int F77_DUMMY_MAIN() { return 1; }
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6708 (eval $ac_link) 2>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -s conftest$ac_exeext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_lib_des_des_encrypt=yes
6720 echo "$as_me: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6722 ac_cv_lib_des_des_encrypt=no
6724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_check_lib_save_LIBS
6727 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6728 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6729 if test $ac_cv_lib_des_des_encrypt = yes; then
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_LIBDES 1
6737 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6738 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6739 { (exit 1); exit 1; }; }
6743 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6744 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6745 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_check_lib_save_LIBS=$LIBS
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 #include "confdefs.h"
6754 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6760 char krb_sendauth ();
6761 #ifdef F77_DUMMY_MAIN
6765 int F77_DUMMY_MAIN() { return 1; }
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_lib_krb_krb_sendauth=yes
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 ac_cv_lib_krb_krb_sendauth=no
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6794 LIBS=$ac_check_lib_save_LIBS
6796 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6797 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6798 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_LIBKRB 1
6806 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6807 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6808 { (exit 1); exit 1; }; }
6813 if test "$with_krb5" = yes ; then
6814 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6815 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6816 if test "${ac_cv_search_com_err+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_func_search_save_LIBS=$LIBS
6820 ac_cv_search_com_err=no
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6823 #include "confdefs.h"
6825 /* Override any gcc2 internal prototype to avoid an error. */
6829 /* We use char because int might match the return type of a gcc2
6830 builtin and then its argument prototype would still apply. */
6832 #ifdef F77_DUMMY_MAIN
6836 int F77_DUMMY_MAIN() { return 1; }
6846 rm -f conftest.$ac_objext conftest$ac_exeext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6848 (eval $ac_link) 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -s conftest$ac_exeext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6858 ac_cv_search_com_err="none required"
6860 echo "$as_me: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6864 if test "$ac_cv_search_com_err" = no; then
6865 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6867 cat >conftest.$ac_ext <<_ACEOF
6868 #line $LINENO "configure"
6869 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6878 #ifdef F77_DUMMY_MAIN
6882 int F77_DUMMY_MAIN() { return 1; }
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_search_com_err="-l$ac_lib"
6907 echo "$as_me: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6913 LIBS=$ac_func_search_save_LIBS
6915 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6916 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6917 if test "$ac_cv_search_com_err" != no; then
6918 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6921 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6922 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6923 { (exit 1); exit 1; }; }
6926 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6927 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6928 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_func_search_save_LIBS=$LIBS
6932 ac_cv_search_krb5_encrypt=no
6933 cat >conftest.$ac_ext <<_ACEOF
6934 #line $LINENO "configure"
6935 #include "confdefs.h"
6937 /* Override any gcc2 internal prototype to avoid an error. */
6941 /* We use char because int might match the return type of a gcc2
6942 builtin and then its argument prototype would still apply. */
6943 char krb5_encrypt ();
6944 #ifdef F77_DUMMY_MAIN
6948 int F77_DUMMY_MAIN() { return 1; }
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960 (eval $ac_link) 2>&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -s conftest$ac_exeext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_cv_search_krb5_encrypt="none required"
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6976 if test "$ac_cv_search_krb5_encrypt" = no; then
6977 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6979 cat >conftest.$ac_ext <<_ACEOF
6980 #line $LINENO "configure"
6981 #include "confdefs.h"
6983 /* Override any gcc2 internal prototype to avoid an error. */
6987 /* We use char because int might match the return type of a gcc2
6988 builtin and then its argument prototype would still apply. */
6989 char krb5_encrypt ();
6990 #ifdef F77_DUMMY_MAIN
6994 int F77_DUMMY_MAIN() { return 1; }
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -s conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_search_krb5_encrypt="-l$ac_lib"
7019 echo "$as_me: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7025 LIBS=$ac_func_search_save_LIBS
7027 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
7028 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
7029 if test "$ac_cv_search_krb5_encrypt" != no; then
7030 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
7033 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
7034 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
7035 { (exit 1); exit 1; }; }
7038 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7039 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7040 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_func_search_save_LIBS=$LIBS
7044 ac_cv_search_krb5_sendauth=no
7045 cat >conftest.$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7047 #include "confdefs.h"
7049 /* Override any gcc2 internal prototype to avoid an error. */
7053 /* We use char because int might match the return type of a gcc2
7054 builtin and then its argument prototype would still apply. */
7055 char krb5_sendauth ();
7056 #ifdef F77_DUMMY_MAIN
7060 int F77_DUMMY_MAIN() { return 1; }
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_search_krb5_sendauth="none required"
7084 echo "$as_me: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7088 if test "$ac_cv_search_krb5_sendauth" = no; then
7089 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7091 cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7093 #include "confdefs.h"
7095 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7101 char krb5_sendauth ();
7102 #ifdef F77_DUMMY_MAIN
7106 int F77_DUMMY_MAIN() { return 1; }
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_cv_search_krb5_sendauth="-l$ac_lib"
7131 echo "$as_me: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7137 LIBS=$ac_func_search_save_LIBS
7139 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7140 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7141 if test "$ac_cv_search_krb5_sendauth" != no; then
7142 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7145 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7146 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7147 { (exit 1); exit 1; }; }
7152 if test "$with_openssl" = yes ; then
7154 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7155 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7156 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 ac_check_lib_save_LIBS=$LIBS
7160 LIBS="-lcrypto $LIBS"
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line $LINENO "configure"
7163 #include "confdefs.h"
7165 /* Override any gcc2 internal prototype to avoid an error. */
7169 /* We use char because int might match the return type of a gcc2
7170 builtin and then its argument prototype would still apply. */
7171 char CRYPTO_new_ex_data ();
7172 #ifdef F77_DUMMY_MAIN
7176 int F77_DUMMY_MAIN() { return 1; }
7181 CRYPTO_new_ex_data ();
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -s conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7200 echo "$as_me: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7202 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7205 LIBS=$ac_check_lib_save_LIBS
7207 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7208 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7209 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7210 cat >>confdefs.h <<_ACEOF
7211 #define HAVE_LIBCRYPTO 1
7214 LIBS="-lcrypto $LIBS"
7217 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7218 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7219 { (exit 1); exit 1; }; }
7223 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7224 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7225 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_check_lib_save_LIBS=$LIBS
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 #include "confdefs.h"
7234 /* Override any gcc2 internal prototype to avoid an error. */
7238 /* We use char because int might match the return type of a gcc2
7239 builtin and then its argument prototype would still apply. */
7240 char SSL_library_init ();
7241 #ifdef F77_DUMMY_MAIN
7245 int F77_DUMMY_MAIN() { return 1; }
7250 SSL_library_init ();
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257 (eval $ac_link) 2>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_cv_lib_ssl_SSL_library_init=yes
7269 echo "$as_me: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 ac_cv_lib_ssl_SSL_library_init=no
7273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7274 LIBS=$ac_check_lib_save_LIBS
7276 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7277 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7278 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7279 cat >>confdefs.h <<_ACEOF
7280 #define HAVE_LIBSSL 1
7286 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7287 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7288 { (exit 1); exit 1; }; }
7293 if test "$with_pam" = yes ; then
7295 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7296 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7297 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 ac_check_lib_save_LIBS=$LIBS
7302 cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 #include "confdefs.h"
7306 /* Override any gcc2 internal prototype to avoid an error. */
7310 /* We use char because int might match the return type of a gcc2
7311 builtin and then its argument prototype would still apply. */
7313 #ifdef F77_DUMMY_MAIN
7317 int F77_DUMMY_MAIN() { return 1; }
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329 (eval $ac_link) 2>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try='test -s conftest$ac_exeext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_cv_lib_pam_pam_start=yes
7341 echo "$as_me: failed program was:" >&5
7342 cat conftest.$ac_ext >&5
7343 ac_cv_lib_pam_pam_start=no
7345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7346 LIBS=$ac_check_lib_save_LIBS
7348 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7349 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7350 if test $ac_cv_lib_pam_pam_start = yes; then
7351 cat >>confdefs.h <<_ACEOF
7352 #define HAVE_LIBPAM 1
7358 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7359 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7360 { (exit 1); exit 1; }; }
7370 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7371 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7372 if test "${ac_cv_header_stdc+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 cat >conftest.$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7377 #include "confdefs.h"
7384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7387 egrep -v '^ *\+' conftest.er1 >conftest.err
7389 cat conftest.err >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } >/dev/null; then
7392 if test -s conftest.err; then
7393 ac_cpp_err=$ac_c_preproc_warn_flag
7400 if test -z "$ac_cpp_err"; then
7401 ac_cv_header_stdc=yes
7403 echo "$as_me: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 ac_cv_header_stdc=no
7407 rm -f conftest.err conftest.$ac_ext
7409 if test $ac_cv_header_stdc = yes; then
7410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7411 cat >conftest.$ac_ext <<_ACEOF
7412 #line $LINENO "configure"
7413 #include "confdefs.h"
7417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7418 egrep "memchr" >/dev/null 2>&1; then
7421 ac_cv_header_stdc=no
7427 if test $ac_cv_header_stdc = yes; then
7428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7429 cat >conftest.$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7436 egrep "free" >/dev/null 2>&1; then
7439 ac_cv_header_stdc=no
7445 if test $ac_cv_header_stdc = yes; then
7446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7447 if test "$cross_compiling" = yes; then
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7452 #include "confdefs.h"
7454 #if ((' ' & 0x0FF) == 0x020)
7455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7458 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7459 || ('j' <= (c) && (c) <= 'r') \
7460 || ('s' <= (c) && (c) <= 'z'))
7461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7469 for (i = 0; i < 256; i++)
7470 if (XOR (islower (i), ISLOWER (i))
7471 || toupper (i) != TOUPPER (i))
7476 rm -f conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7489 echo "$as_me: program exited with status $ac_status" >&5
7490 echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7493 ac_cv_header_stdc=no
7495 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7500 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7501 if test $ac_cv_header_stdc = yes; then
7503 cat >>confdefs.h <<\_ACEOF
7504 #define STDC_HEADERS 1
7509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7519 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7520 inttypes.h stdint.h unistd.h
7522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7523 echo "$as_me:$LINENO: checking for $ac_header" >&5
7524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 cat >conftest.$ac_ext <<_ACEOF
7529 #line $LINENO "configure"
7530 #include "confdefs.h"
7531 $ac_includes_default
7533 #include <$ac_header>
7535 rm -f conftest.$ac_objext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7537 (eval $ac_compile) 2>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 eval "$as_ac_Header=yes"
7549 echo "$as_me: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7551 eval "$as_ac_Header=no"
7553 rm -f conftest.$ac_objext conftest.$ac_ext
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7558 cat >>confdefs.h <<_ACEOF
7559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7585 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
7587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7597 # Is the header compilable?
7598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 #include "confdefs.h"
7603 $ac_includes_default
7604 #include <$ac_header>
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_header_compiler=yes
7620 echo "$as_me: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 ac_header_compiler=no
7624 rm -f conftest.$ac_objext conftest.$ac_ext
7625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7626 echo "${ECHO_T}$ac_header_compiler" >&6
7628 # Is the header present?
7629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7631 cat >conftest.$ac_ext <<_ACEOF
7632 #line $LINENO "configure"
7633 #include "confdefs.h"
7634 #include <$ac_header>
7636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7639 egrep -v '^ *\+' conftest.er1 >conftest.err
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } >/dev/null; then
7644 if test -s conftest.err; then
7645 ac_cpp_err=$ac_c_preproc_warn_flag
7652 if test -z "$ac_cpp_err"; then
7653 ac_header_preproc=yes
7655 echo "$as_me: failed program was:" >&5
7656 cat conftest.$ac_ext >&5
7657 ac_header_preproc=no
7659 rm -f conftest.err conftest.$ac_ext
7660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7661 echo "${ECHO_T}$ac_header_preproc" >&6
7663 # So? What about this header?
7664 case $ac_header_compiler:$ac_header_preproc in
7666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7678 echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 eval "$as_ac_Header=$ac_header_preproc"
7685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7700 # netinet/in.h is included first.
7702 for ac_header in netinet/in.h
7704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7706 echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7714 # Is the header compilable?
7715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7717 cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7719 #include "confdefs.h"
7720 $ac_includes_default
7721 #include <$ac_header>
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -s conftest.$ac_objext'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 ac_header_compiler=yes
7737 echo "$as_me: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7739 ac_header_compiler=no
7741 rm -f conftest.$ac_objext conftest.$ac_ext
7742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7743 echo "${ECHO_T}$ac_header_compiler" >&6
7745 # Is the header present?
7746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7749 #line $LINENO "configure"
7750 #include "confdefs.h"
7751 #include <$ac_header>
7753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7756 egrep -v '^ *\+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } >/dev/null; then
7761 if test -s conftest.err; then
7762 ac_cpp_err=$ac_c_preproc_warn_flag
7769 if test -z "$ac_cpp_err"; then
7770 ac_header_preproc=yes
7772 echo "$as_me: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 ac_header_preproc=no
7776 rm -f conftest.err conftest.$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7778 echo "${ECHO_T}$ac_header_preproc" >&6
7780 # So? What about this header?
7781 case $ac_header_compiler:$ac_header_preproc in
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7795 echo "$as_me:$LINENO: checking for $ac_header" >&5
7796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 eval "$as_ac_Header=$ac_header_preproc"
7802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7807 cat >>confdefs.h <<_ACEOF
7808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816 for ac_header in netinet/tcp.h
7818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7819 echo "$as_me:$LINENO: checking for $ac_header" >&5
7820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827 $ac_includes_default
7828 #ifdef HAVE_NETINET_IN_H
7829 #include <netinet/in.h>
7833 #include <$ac_header>
7835 rm -f conftest.$ac_objext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7837 (eval $ac_compile) 2>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -s conftest.$ac_objext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 eval "$as_ac_Header=yes"
7849 echo "$as_me: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 eval "$as_ac_Header=no"
7853 rm -f conftest.$ac_objext conftest.$ac_ext
7855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858 cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7867 if test "$with_readline" = yes; then
7869 for ac_header in readline/readline.h
7871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7873 echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7881 # Is the header compilable?
7882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 #include "confdefs.h"
7887 $ac_includes_default
7888 #include <$ac_header>
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_header_compiler=yes
7904 echo "$as_me: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 ac_header_compiler=no
7908 rm -f conftest.$ac_objext conftest.$ac_ext
7909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7910 echo "${ECHO_T}$ac_header_compiler" >&6
7912 # Is the header present?
7913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 #include <$ac_header>
7920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7923 egrep -v '^ *\+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } >/dev/null; then
7928 if test -s conftest.err; then
7929 ac_cpp_err=$ac_c_preproc_warn_flag
7936 if test -z "$ac_cpp_err"; then
7937 ac_header_preproc=yes
7939 echo "$as_me: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7941 ac_header_preproc=no
7943 rm -f conftest.err conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7945 echo "${ECHO_T}$ac_header_preproc" >&6
7947 # So? What about this header?
7948 case $ac_header_compiler:$ac_header_preproc in
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7962 echo "$as_me:$LINENO: checking for $ac_header" >&5
7963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 eval "$as_ac_Header=$ac_header_preproc"
7969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7974 cat >>confdefs.h <<_ACEOF
7975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7980 for ac_header in readline.h
7982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7984 echo "$as_me:$LINENO: checking for $ac_header" >&5
7985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7992 # Is the header compilable?
7993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 #include "confdefs.h"
7998 $ac_includes_default
7999 #include <$ac_header>
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003 (eval $ac_compile) 2>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -s conftest.$ac_objext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_header_compiler=yes
8015 echo "$as_me: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 ac_header_compiler=no
8019 rm -f conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8021 echo "${ECHO_T}$ac_header_compiler" >&6
8023 # Is the header present?
8024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8027 #line $LINENO "configure"
8028 #include "confdefs.h"
8029 #include <$ac_header>
8031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8034 egrep -v '^ *\+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } >/dev/null; then
8039 if test -s conftest.err; then
8040 ac_cpp_err=$ac_c_preproc_warn_flag
8047 if test -z "$ac_cpp_err"; then
8048 ac_header_preproc=yes
8050 echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 ac_header_preproc=no
8054 rm -f conftest.err conftest.$ac_ext
8055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8056 echo "${ECHO_T}$ac_header_preproc" >&6
8058 # So? What about this header?
8059 case $ac_header_compiler:$ac_header_preproc in
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8073 echo "$as_me:$LINENO: checking for $ac_header" >&5
8074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 eval "$as_ac_Header=$ac_header_preproc"
8080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8085 cat >>confdefs.h <<_ACEOF
8086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090 { { echo "$as_me:$LINENO: error: readline header not found
8091 Use --without-readline to disable readline support." >&5
8092 echo "$as_me: error: readline header not found
8093 Use --without-readline to disable readline support." >&2;}
8094 { (exit 1); exit 1; }; }
8104 for ac_header in readline/history.h
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108 echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8116 # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 $ac_includes_default
8123 #include <$ac_header>
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 (eval $ac_compile) 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_header_compiler=yes
8139 echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 ac_header_compiler=no
8143 rm -f conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8153 #include <$ac_header>
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158 egrep -v '^ *\+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8171 if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8174 echo "$as_me: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 ac_header_preproc=no
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8182 # So? What about this header?
8183 case $ac_header_compiler:$ac_header_preproc in
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8197 echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 eval "$as_ac_Header=$ac_header_preproc"
8204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209 cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8215 for ac_header in history.h
8217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219 echo "$as_me:$LINENO: checking for $ac_header" >&5
8220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8227 # Is the header compilable?
8228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 #include "confdefs.h"
8233 $ac_includes_default
8234 #include <$ac_header>
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_header_compiler=yes
8250 echo "$as_me: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8252 ac_header_compiler=no
8254 rm -f conftest.$ac_objext conftest.$ac_ext
8255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8256 echo "${ECHO_T}$ac_header_compiler" >&6
8258 # Is the header present?
8259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8263 #include "confdefs.h"
8264 #include <$ac_header>
8266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8269 egrep -v '^ *\+' conftest.er1 >conftest.err
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } >/dev/null; then
8274 if test -s conftest.err; then
8275 ac_cpp_err=$ac_c_preproc_warn_flag
8282 if test -z "$ac_cpp_err"; then
8283 ac_header_preproc=yes
8285 echo "$as_me: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 ac_header_preproc=no
8289 rm -f conftest.err conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8291 echo "${ECHO_T}$ac_header_preproc" >&6
8293 # So? What about this header?
8294 case $ac_header_compiler:$ac_header_preproc in
8296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8308 echo "$as_me:$LINENO: checking for $ac_header" >&5
8309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 eval "$as_ac_Header=$ac_header_preproc"
8315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8320 cat >>confdefs.h <<_ACEOF
8321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8325 { { echo "$as_me:$LINENO: error: history header not found
8326 Use --without-readline to disable readline support." >&5
8327 echo "$as_me: error: history header not found
8328 Use --without-readline to disable readline support." >&2;}
8329 { (exit 1); exit 1; }; }
8340 if test "$with_zlib" = yes; then
8341 if test "${ac_cv_header_zlib_h+set}" = set; then
8342 echo "$as_me:$LINENO: checking for zlib.h" >&5
8343 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8344 if test "${ac_cv_header_zlib_h+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8348 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8350 # Is the header compilable?
8351 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8352 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8354 #line $LINENO "configure"
8355 #include "confdefs.h"
8356 $ac_includes_default
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_header_compiler=yes
8373 echo "$as_me: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 ac_header_compiler=no
8377 rm -f conftest.$ac_objext conftest.$ac_ext
8378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8379 echo "${ECHO_T}$ac_header_compiler" >&6
8381 # Is the header present?
8382 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8383 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8385 #line $LINENO "configure"
8386 #include "confdefs.h"
8389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8392 egrep -v '^ *\+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } >/dev/null; then
8397 if test -s conftest.err; then
8398 ac_cpp_err=$ac_c_preproc_warn_flag
8405 if test -z "$ac_cpp_err"; then
8406 ac_header_preproc=yes
8408 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 ac_header_preproc=no
8412 rm -f conftest.err conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8414 echo "${ECHO_T}$ac_header_preproc" >&6
8416 # So? What about this header?
8417 case $ac_header_compiler:$ac_header_preproc in
8419 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8420 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8422 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8424 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8429 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8431 echo "$as_me:$LINENO: checking for zlib.h" >&5
8432 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8433 if test "${ac_cv_header_zlib_h+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 ac_cv_header_zlib_h=$ac_header_preproc
8438 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8439 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8442 if test $ac_cv_header_zlib_h = yes; then
8445 { { echo "$as_me:$LINENO: error: zlib header not found
8446 Use --without-zlib to disable zlib support." >&5
8447 echo "$as_me: error: zlib header not found
8448 Use --without-zlib to disable zlib support." >&2;}
8449 { (exit 1); exit 1; }; }
8455 if test "$with_krb4" = yes ; then
8456 if test "${ac_cv_header_krb_h+set}" = set; then
8457 echo "$as_me:$LINENO: checking for krb.h" >&5
8458 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8459 if test "${ac_cv_header_krb_h+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8463 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8465 # Is the header compilable?
8466 echo "$as_me:$LINENO: checking krb.h usability" >&5
8467 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8471 $ac_includes_default
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_header_compiler=yes
8488 echo "$as_me: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 ac_header_compiler=no
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking krb.h presence" >&5
8498 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8507 egrep -v '^ *\+' conftest.er1 >conftest.err
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } >/dev/null; then
8512 if test -s conftest.err; then
8513 ac_cpp_err=$ac_c_preproc_warn_flag
8520 if test -z "$ac_cpp_err"; then
8521 ac_header_preproc=yes
8523 echo "$as_me: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8525 ac_header_preproc=no
8527 rm -f conftest.err conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529 echo "${ECHO_T}$ac_header_preproc" >&6
8531 # So? What about this header?
8532 case $ac_header_compiler:$ac_header_preproc in
8534 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8535 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8539 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8546 echo "$as_me:$LINENO: checking for krb.h" >&5
8547 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8548 if test "${ac_cv_header_krb_h+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 ac_cv_header_krb_h=$ac_header_preproc
8553 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8554 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8557 if test $ac_cv_header_krb_h = yes; then
8560 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8561 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8562 { (exit 1); exit 1; }; }
8568 if test "$with_krb5" = yes ; then
8569 if test "${ac_cv_header_krb5_h+set}" = set; then
8570 echo "$as_me:$LINENO: checking for krb5.h" >&5
8571 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8572 if test "${ac_cv_header_krb5_h+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8576 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8578 # Is the header compilable?
8579 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8580 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 #include "confdefs.h"
8584 $ac_includes_default
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_header_compiler=yes
8601 echo "$as_me: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 ac_header_compiler=no
8605 rm -f conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8607 echo "${ECHO_T}$ac_header_compiler" >&6
8609 # Is the header present?
8610 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8611 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 #include "confdefs.h"
8617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8620 egrep -v '^ *\+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } >/dev/null; then
8625 if test -s conftest.err; then
8626 ac_cpp_err=$ac_c_preproc_warn_flag
8633 if test -z "$ac_cpp_err"; then
8634 ac_header_preproc=yes
8636 echo "$as_me: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8638 ac_header_preproc=no
8640 rm -f conftest.err conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642 echo "${ECHO_T}$ac_header_preproc" >&6
8644 # So? What about this header?
8645 case $ac_header_compiler:$ac_header_preproc in
8647 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8648 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8652 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8653 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8655 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8657 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8659 echo "$as_me:$LINENO: checking for krb5.h" >&5
8660 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8661 if test "${ac_cv_header_krb5_h+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 ac_cv_header_krb5_h=$ac_header_preproc
8666 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8667 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8670 if test $ac_cv_header_krb5_h = yes; then
8673 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8674 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8675 { (exit 1); exit 1; }; }
8679 if test "${ac_cv_header_com_err_h+set}" = set; then
8680 echo "$as_me:$LINENO: checking for com_err.h" >&5
8681 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8682 if test "${ac_cv_header_com_err_h+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8686 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8688 # Is the header compilable?
8689 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8690 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 #include "confdefs.h"
8694 $ac_includes_default
8695 #include <com_err.h>
8697 rm -f conftest.$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699 (eval $ac_compile) 2>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_header_compiler=yes
8711 echo "$as_me: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 ac_header_compiler=no
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8717 echo "${ECHO_T}$ac_header_compiler" >&6
8719 # Is the header present?
8720 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8721 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 #include <com_err.h>
8727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8730 egrep -v '^ *\+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } >/dev/null; then
8735 if test -s conftest.err; then
8736 ac_cpp_err=$ac_c_preproc_warn_flag
8743 if test -z "$ac_cpp_err"; then
8744 ac_header_preproc=yes
8746 echo "$as_me: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 ac_header_preproc=no
8750 rm -f conftest.err conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8752 echo "${ECHO_T}$ac_header_preproc" >&6
8754 # So? What about this header?
8755 case $ac_header_compiler:$ac_header_preproc in
8757 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8758 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8760 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8762 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8767 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8769 echo "$as_me:$LINENO: checking for com_err.h" >&5
8770 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8771 if test "${ac_cv_header_com_err_h+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 ac_cv_header_com_err_h=$ac_header_preproc
8776 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8777 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8780 if test $ac_cv_header_com_err_h = yes; then
8783 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8784 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8785 { (exit 1); exit 1; }; }
8791 if test "$with_openssl" = yes ; then
8792 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8793 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8794 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8795 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8799 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8801 # Is the header compilable?
8802 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8803 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8806 #include "confdefs.h"
8807 $ac_includes_default
8808 #include <openssl/ssl.h>
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812 (eval $ac_compile) 2>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -s conftest.$ac_objext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_header_compiler=yes
8824 echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_header_compiler=no
8828 rm -f conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8834 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 #include <openssl/ssl.h>
8840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8843 egrep -v '^ *\+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } >/dev/null; then
8848 if test -s conftest.err; then
8849 ac_cpp_err=$ac_c_preproc_warn_flag
8856 if test -z "$ac_cpp_err"; then
8857 ac_header_preproc=yes
8859 echo "$as_me: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8861 ac_header_preproc=no
8863 rm -f conftest.err conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6
8867 # So? What about this header?
8868 case $ac_header_compiler:$ac_header_preproc in
8870 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8875 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8876 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8878 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8882 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8883 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8884 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8889 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8890 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8893 if test $ac_cv_header_openssl_ssl_h = yes; then
8896 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8897 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8898 { (exit 1); exit 1; }; }
8902 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8903 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8904 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8905 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8909 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8911 # Is the header compilable?
8912 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8913 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8916 #include "confdefs.h"
8917 $ac_includes_default
8918 #include <openssl/err.h>
8920 rm -f conftest.$ac_objext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922 (eval $ac_compile) 2>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -s conftest.$ac_objext'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 ac_header_compiler=yes
8934 echo "$as_me: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 ac_header_compiler=no
8938 rm -f conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 echo "${ECHO_T}$ac_header_compiler" >&6
8942 # Is the header present?
8943 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8944 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8946 #line $LINENO "configure"
8947 #include "confdefs.h"
8948 #include <openssl/err.h>
8950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953 egrep -v '^ *\+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } >/dev/null; then
8958 if test -s conftest.err; then
8959 ac_cpp_err=$ac_c_preproc_warn_flag
8966 if test -z "$ac_cpp_err"; then
8967 ac_header_preproc=yes
8969 echo "$as_me: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 ac_header_preproc=no
8973 rm -f conftest.err conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8975 echo "${ECHO_T}$ac_header_preproc" >&6
8977 # So? What about this header?
8978 case $ac_header_compiler:$ac_header_preproc in
8980 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8981 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8982 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8983 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8985 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8986 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8988 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8990 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8992 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8993 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8994 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 ac_cv_header_openssl_err_h=$ac_header_preproc
8999 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9000 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9003 if test $ac_cv_header_openssl_err_h = yes; then
9006 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9007 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9008 { (exit 1); exit 1; }; }
9014 if test "$with_pam" = yes ; then
9015 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9016 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9017 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9018 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9022 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9024 # Is the header compilable?
9025 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
9026 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9028 #line $LINENO "configure"
9029 #include "confdefs.h"
9030 $ac_includes_default
9031 #include <security/pam_appl.h>
9033 rm -f conftest.$ac_objext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9035 (eval $ac_compile) 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -s conftest.$ac_objext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_header_compiler=yes
9047 echo "$as_me: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9049 ac_header_compiler=no
9051 rm -f conftest.$ac_objext conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9053 echo "${ECHO_T}$ac_header_compiler" >&6
9055 # Is the header present?
9056 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9057 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 #include "confdefs.h"
9061 #include <security/pam_appl.h>
9063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9066 egrep -v '^ *\+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } >/dev/null; then
9071 if test -s conftest.err; then
9072 ac_cpp_err=$ac_c_preproc_warn_flag
9079 if test -z "$ac_cpp_err"; then
9080 ac_header_preproc=yes
9082 echo "$as_me: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084 ac_header_preproc=no
9086 rm -f conftest.err conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9088 echo "${ECHO_T}$ac_header_preproc" >&6
9090 # So? What about this header?
9091 case $ac_header_compiler:$ac_header_preproc in
9093 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9094 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9096 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9098 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9099 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9101 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9103 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9105 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9106 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9107 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_cv_header_security_pam_appl_h=$ac_header_preproc
9112 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9113 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9116 if test $ac_cv_header_security_pam_appl_h = yes; then
9119 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9120 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9121 { (exit 1); exit 1; }; }
9129 ## Types, structures, compiler characteristics
9133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9135 if test "${ac_cv_c_const+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9139 #line $LINENO "configure"
9140 #include "confdefs.h"
9142 #ifdef F77_DUMMY_MAIN
9146 int F77_DUMMY_MAIN() { return 1; }
9151 /* FIXME: Include the comments suggested by Paul. */
9153 /* Ultrix mips cc rejects this. */
9154 typedef int charset[2];
9156 /* SunOS 4.1.1 cc rejects this. */
9157 char const *const *ccp;
9159 /* NEC SVR4.0.2 mips cc rejects this. */
9160 struct point {int x, y;};
9161 static struct point const zero = {0,0};
9162 /* AIX XL C 1.02.0.0 rejects this.
9163 It does not let you subtract one const X* pointer from another in
9164 an arm of an if-expression whose if-part is not a constant
9166 const char *g = "string";
9167 ccp = &g + (g ? g-g : 0);
9168 /* HPUX 7.0 cc rejects these. */
9171 ccp = (char const *const *) p;
9172 { /* SCO 3.2v4 cc rejects this. */
9174 char const *s = 0 ? (char *) 0 : (char const *) 0;
9178 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9180 const int *foo = &x[0];
9183 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9184 typedef const int *iptr;
9188 { /* AIX XL C 1.02.0.0 rejects this saying
9189 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9190 struct s { int j; const int *ap[3]; };
9191 struct s *b; b->j = 5;
9193 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
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
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: $ac_cv_c_const" >&5
9223 echo "${ECHO_T}$ac_cv_c_const" >&6
9224 if test $ac_cv_c_const = no; then
9226 cat >>confdefs.h <<\_ACEOF
9232 echo "$as_me:$LINENO: checking for inline" >&5
9233 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9234 if test "${ac_cv_c_inline+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 for ac_kw in inline __inline__ __inline; do
9239 cat >conftest.$ac_ext <<_ACEOF
9240 #line $LINENO "configure"
9241 #include "confdefs.h"
9243 static $ac_kw int static_foo () {return 0; }
9244 $ac_kw int foo () {return 0; }
9248 rm -f conftest.$ac_objext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9250 (eval $ac_compile) 2>&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -s conftest.$ac_objext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_c_inline=$ac_kw; break
9262 echo "$as_me: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 rm -f conftest.$ac_objext conftest.$ac_ext
9269 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9270 echo "${ECHO_T}$ac_cv_c_inline" >&6
9271 case $ac_cv_c_inline in
9274 cat >>confdefs.h <<\_ACEOF
9278 *) cat >>confdefs.h <<_ACEOF
9279 #define inline $ac_cv_c_inline
9284 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9285 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9286 if test "${ac_cv_c_stringize+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 cat >conftest.$ac_ext <<_ACEOF
9290 #line $LINENO "configure"
9291 #include "confdefs.h"
9294 char *s = x(teststring);
9296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9297 egrep "#teststring" >/dev/null 2>&1; then
9298 ac_cv_c_stringize=no
9300 ac_cv_c_stringize=yes
9305 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9306 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9307 if test $ac_cv_c_stringize = yes; then
9309 cat >>confdefs.h <<\_ACEOF
9310 #define HAVE_STRINGIZE 1
9315 echo "$as_me:$LINENO: checking for signed types" >&5
9316 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9317 if test "${pgac_cv_c_signed+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 cat >conftest.$ac_ext <<_ACEOF
9321 #line $LINENO "configure"
9322 #include "confdefs.h"
9324 #ifdef F77_DUMMY_MAIN
9328 int F77_DUMMY_MAIN() { return 1; }
9333 signed char c; signed short s; signed int i;
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -s conftest.$ac_objext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 pgac_cv_c_signed=yes
9352 echo "$as_me: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9356 rm -f conftest.$ac_objext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9359 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9360 if test x"$pgac_cv_c_signed" = xno ; then
9362 cat >>confdefs.h <<\_ACEOF
9367 echo "$as_me:$LINENO: checking for working volatile" >&5
9368 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9369 if test "${ac_cv_c_volatile+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 cat >conftest.$ac_ext <<_ACEOF
9373 #line $LINENO "configure"
9374 #include "confdefs.h"
9376 #ifdef F77_DUMMY_MAIN
9380 int F77_DUMMY_MAIN() { return 1; }
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -s conftest.$ac_objext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 ac_cv_c_volatile=yes
9406 echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9410 rm -f conftest.$ac_objext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9413 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9414 if test $ac_cv_c_volatile = no; then
9416 cat >>confdefs.h <<\_ACEOF
9422 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9423 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9424 if test "${ac_cv_struct_tm+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 cat >conftest.$ac_ext <<_ACEOF
9428 #line $LINENO "configure"
9429 #include "confdefs.h"
9430 #include <sys/types.h>
9433 #ifdef F77_DUMMY_MAIN
9437 int F77_DUMMY_MAIN() { return 1; }
9442 struct tm *tp; tp->tm_sec;
9447 rm -f conftest.$ac_objext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449 (eval $ac_compile) 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -s conftest.$ac_objext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_cv_struct_tm=time.h
9461 echo "$as_me: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 ac_cv_struct_tm=sys/time.h
9465 rm -f conftest.$ac_objext conftest.$ac_ext
9467 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9468 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9469 if test $ac_cv_struct_tm = sys/time.h; then
9471 cat >>confdefs.h <<\_ACEOF
9472 #define TM_IN_SYS_TIME 1
9477 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9478 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9479 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9484 #include "confdefs.h"
9485 #include <sys/types.h>
9486 #include <$ac_cv_struct_tm>
9489 #ifdef F77_DUMMY_MAIN
9493 int F77_DUMMY_MAIN() { return 1; }
9498 static struct tm ac_aggr;
9499 if (ac_aggr.tm_zone)
9505 rm -f conftest.$ac_objext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507 (eval $ac_compile) 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_member_struct_tm_tm_zone=yes
9519 echo "$as_me: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 ac_cv_member_struct_tm_tm_zone=no
9523 rm -f conftest.$ac_objext conftest.$ac_ext
9525 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9526 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9527 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530 #define HAVE_STRUCT_TM_TM_ZONE 1
9536 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_TM_ZONE 1
9543 echo "$as_me:$LINENO: checking for tzname" >&5
9544 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9545 if test "${ac_cv_var_tzname+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 #include "confdefs.h"
9552 #ifndef tzname /* For SGI. */
9553 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9556 #ifdef F77_DUMMY_MAIN
9560 int F77_DUMMY_MAIN() { return 1; }
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_var_tzname=yes
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.$ac_ext >&5
9588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9590 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9591 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9592 if test $ac_cv_var_tzname = yes; then
9594 cat >>confdefs.h <<\_ACEOF
9595 #define HAVE_TZNAME 1
9601 echo "$as_me:$LINENO: checking for union semun" >&5
9602 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9603 if test "${ac_cv_type_union_semun+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9608 #include "confdefs.h"
9609 #include <sys/types.h>
9610 #include <sys/ipc.h>
9611 #include <sys/sem.h>
9613 #ifdef F77_DUMMY_MAIN
9617 int F77_DUMMY_MAIN() { return 1; }
9622 if ((union semun *) 0)
9624 if (sizeof (union semun))
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -s conftest.$ac_objext'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9642 ac_cv_type_union_semun=yes
9644 echo "$as_me: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 ac_cv_type_union_semun=no
9648 rm -f conftest.$ac_objext conftest.$ac_ext
9650 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9651 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9652 if test $ac_cv_type_union_semun = yes; then
9654 cat >>confdefs.h <<_ACEOF
9655 #define HAVE_UNION_SEMUN 1
9661 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9662 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9663 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 cat >conftest.$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9668 #include "confdefs.h"
9669 #include <sys/types.h>
9670 #ifdef HAVE_SYS_UN_H
9675 #ifdef F77_DUMMY_MAIN
9679 int F77_DUMMY_MAIN() { return 1; }
9684 if ((struct sockaddr_un *) 0)
9686 if (sizeof (struct sockaddr_un))
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_type_struct_sockaddr_un=yes
9706 echo "$as_me: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 ac_cv_type_struct_sockaddr_un=no
9710 rm -f conftest.$ac_objext conftest.$ac_ext
9712 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9713 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9714 if test $ac_cv_type_struct_sockaddr_un = yes; then
9716 cat >>confdefs.h <<_ACEOF
9717 #define HAVE_STRUCT_SOCKADDR_UN 1
9724 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9725 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9726 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 #include "confdefs.h"
9732 #include <sys/param.h>
9733 #include <sys/socket.h>
9734 #include <sys/ucred.h>
9736 #ifdef F77_DUMMY_MAIN
9740 int F77_DUMMY_MAIN() { return 1; }
9745 if ((struct cmsgcred *) 0)
9747 if (sizeof (struct cmsgcred))
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_type_struct_cmsgcred=yes
9767 echo "$as_me: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 ac_cv_type_struct_cmsgcred=no
9771 rm -f conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9774 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9775 if test $ac_cv_type_struct_cmsgcred = yes; then
9777 cat >>confdefs.h <<_ACEOF
9778 #define HAVE_STRUCT_CMSGCRED 1
9783 echo "$as_me:$LINENO: checking for struct fcred" >&5
9784 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9785 if test "${ac_cv_type_struct_fcred+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9789 #line $LINENO "configure"
9790 #include "confdefs.h"
9791 #include <sys/param.h>
9792 #include <sys/socket.h>
9793 #include <sys/ucred.h>
9795 #ifdef F77_DUMMY_MAIN
9799 int F77_DUMMY_MAIN() { return 1; }
9804 if ((struct fcred *) 0)
9806 if (sizeof (struct fcred))
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814 (eval $ac_compile) 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -s conftest.$ac_objext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_type_struct_fcred=yes
9826 echo "$as_me: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9828 ac_cv_type_struct_fcred=no
9830 rm -f conftest.$ac_objext conftest.$ac_ext
9832 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9833 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9834 if test $ac_cv_type_struct_fcred = yes; then
9836 cat >>confdefs.h <<_ACEOF
9837 #define HAVE_STRUCT_FCRED 1
9842 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9843 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9844 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9849 #include "confdefs.h"
9850 #include <sys/param.h>
9851 #include <sys/socket.h>
9852 #include <sys/ucred.h>
9854 #ifdef F77_DUMMY_MAIN
9858 int F77_DUMMY_MAIN() { return 1; }
9863 if ((struct sockcred *) 0)
9865 if (sizeof (struct sockcred))
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873 (eval $ac_compile) 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_type_struct_sockcred=yes
9885 echo "$as_me: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 ac_cv_type_struct_sockcred=no
9889 rm -f conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9892 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9893 if test $ac_cv_type_struct_sockcred = yes; then
9895 cat >>confdefs.h <<_ACEOF
9896 #define HAVE_STRUCT_SOCKCRED 1
9903 if test "$with_zlib" = yes; then
9904 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9905 # did not). While we could work around the lack of z_streamp, it
9906 # seems unwise to encourage people to use such old zlib versions...
9907 echo "$as_me:$LINENO: checking for z_streamp" >&5
9908 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9909 if test "${ac_cv_type_z_streamp+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 #line $LINENO "configure"
9914 #include "confdefs.h"
9917 #ifdef F77_DUMMY_MAIN
9921 int F77_DUMMY_MAIN() { return 1; }
9926 if ((z_streamp *) 0)
9928 if (sizeof (z_streamp))
9934 rm -f conftest.$ac_objext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9936 (eval $ac_compile) 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_type_z_streamp=yes
9948 echo "$as_me: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9950 ac_cv_type_z_streamp=no
9952 rm -f conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9955 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9956 if test $ac_cv_type_z_streamp = yes; then
9959 { { echo "$as_me:$LINENO: error: zlib version is too old
9960 Use --without-zlib to disable zlib support." >&5
9961 echo "$as_me: error: zlib version is too old
9962 Use --without-zlib to disable zlib support." >&2;}
9963 { (exit 1); exit 1; }; }
9968 if test "$with_krb5" = yes; then
9969 # Check for differences between MIT and Heimdal (KTH) releases
9970 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9971 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9972 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 cat >conftest.$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9977 #include "confdefs.h"
9980 #ifdef F77_DUMMY_MAIN
9984 int F77_DUMMY_MAIN() { return 1; }
9989 static krb5_ticket ac_aggr;
9990 if (ac_aggr.enc_part2)
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998 (eval $ac_compile) 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -s conftest.$ac_objext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_member_krb5_ticket_enc_part2=yes
10010 echo "$as_me: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 ac_cv_member_krb5_ticket_enc_part2=no
10014 rm -f conftest.$ac_objext conftest.$ac_ext
10016 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10017 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10018 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE_KRB5_TICKET_ENC_PART2 1
10026 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10027 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10028 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10033 #include "confdefs.h"
10036 #ifdef F77_DUMMY_MAIN
10037 # ifdef __cplusplus
10040 int F77_DUMMY_MAIN() { return 1; }
10045 static krb5_ticket ac_aggr;
10046 if (ac_aggr.client)
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest.$ac_objext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_member_krb5_ticket_client=yes
10066 echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_member_krb5_ticket_client=no
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10073 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10074 if test $ac_cv_member_krb5_ticket_client = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_KRB5_TICKET_CLIENT 1
10082 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10083 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10084 { (exit 1); exit 1; }; }
10089 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10090 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10091 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 cat >conftest.$ac_ext <<_ACEOF
10095 #line $LINENO "configure"
10096 #include "confdefs.h"
10099 #ifdef F77_DUMMY_MAIN
10100 # ifdef __cplusplus
10103 int F77_DUMMY_MAIN() { return 1; }
10108 static krb5_error ac_aggr;
10109 if (ac_aggr.text.data)
10115 rm -f conftest.$ac_objext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10117 (eval $ac_compile) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -s conftest.$ac_objext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_member_krb5_error_text_data=yes
10129 echo "$as_me: failed program was:" >&5
10130 cat conftest.$ac_ext >&5
10131 ac_cv_member_krb5_error_text_data=no
10133 rm -f conftest.$ac_objext conftest.$ac_ext
10135 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10136 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10137 if test $ac_cv_member_krb5_error_text_data = yes; then
10139 cat >>confdefs.h <<_ACEOF
10140 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10145 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10146 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10147 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10152 #include "confdefs.h"
10155 #ifdef F77_DUMMY_MAIN
10156 # ifdef __cplusplus
10159 int F77_DUMMY_MAIN() { return 1; }
10164 static krb5_error ac_aggr;
10165 if (ac_aggr.e_data)
10171 rm -f conftest.$ac_objext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10173 (eval $ac_compile) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_member_krb5_error_e_data=yes
10185 echo "$as_me: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 ac_cv_member_krb5_error_e_data=no
10189 rm -f conftest.$ac_objext conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10192 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10193 if test $ac_cv_member_krb5_error_e_data = yes; then
10196 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10197 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10198 { (exit 1); exit 1; }; }
10207 ## Functions, global variables
10210 echo "$as_me:$LINENO: checking for int timezone" >&5
10211 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10212 if test "${pgac_cv_var_int_timezone+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10216 #line $LINENO "configure"
10217 #include "confdefs.h"
10220 #ifdef F77_DUMMY_MAIN
10221 # ifdef __cplusplus
10224 int F77_DUMMY_MAIN() { return 1; }
10229 res = timezone / 60;
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236 (eval $ac_link) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 pgac_cv_var_int_timezone=yes
10248 echo "$as_me: failed program was:" >&5
10249 cat conftest.$ac_ext >&5
10250 pgac_cv_var_int_timezone=no
10252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10254 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10255 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10256 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10258 cat >>confdefs.h <<\_ACEOF
10259 #define HAVE_INT_TIMEZONE
10263 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10264 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10265 if test "${ac_cv_func_accept_arg1+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 if test "${ac_cv_func_accept_arg2+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 if test "${ac_cv_func_accept_arg3+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10275 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10276 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 #include "confdefs.h"
10280 #ifdef HAVE_SYS_TYPES_H
10281 #include <sys/types.h>
10283 #ifdef HAVE_SYS_SOCKET_H
10284 #include <sys/socket.h>
10286 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10287 #ifdef F77_DUMMY_MAIN
10288 # ifdef __cplusplus
10291 int F77_DUMMY_MAIN() { return 1; }
10301 rm -f conftest.$ac_objext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10303 (eval $ac_compile) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -s conftest.$ac_objext'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_not_found=no; break 3
10315 echo "$as_me: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10319 rm -f conftest.$ac_objext conftest.$ac_ext
10323 if test "$ac_not_found" = yes; then
10324 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10325 echo "$as_me: error: could not determine argument types" >&2;}
10326 { (exit 1); exit 1; }; }
10328 if test "$ac_cv_func_accept_arg3" = "void"; then
10329 ac_cv_func_accept_arg3=int
10337 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10338 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10340 cat >>confdefs.h <<_ACEOF
10341 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10345 cat >>confdefs.h <<_ACEOF
10346 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10350 cat >>confdefs.h <<_ACEOF
10351 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10355 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10356 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10357 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10363 #include <sys/time.h>
10364 #ifdef F77_DUMMY_MAIN
10365 # ifdef __cplusplus
10368 int F77_DUMMY_MAIN() { return 1; }
10373 struct timeval *tp;
10374 struct timezone *tzp;
10375 gettimeofday(tp,tzp);
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -s conftest.$ac_objext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 pgac_cv_func_gettimeofday_1arg=no
10394 echo "$as_me: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10396 pgac_cv_func_gettimeofday_1arg=yes
10398 rm -f conftest.$ac_objext conftest.$ac_ext
10400 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10401 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10402 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define GETTIMEOFDAY_1ARG
10410 # SunOS doesn't handle negative byte comparisons properly with +/- return
10411 echo "$as_me:$LINENO: checking for working memcmp" >&5
10412 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10413 if test "${ac_cv_func_memcmp_working+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 if test "$cross_compiling" = yes; then
10417 ac_cv_func_memcmp_working=no
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 #include "confdefs.h"
10423 #ifdef F77_DUMMY_MAIN
10424 # ifdef __cplusplus
10427 int F77_DUMMY_MAIN() { return 1; }
10433 /* Some versions of memcmp are not 8-bit clean. */
10434 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10435 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10438 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10439 or more and with at least one buffer not starting on a 4-byte boundary.
10440 William Lewis provided this test program. */
10445 for (i = 0; i < 4; i++)
10449 strcpy (a, "--------01111111");
10450 strcpy (b, "--------10000000");
10451 if (memcmp (a, b, 16) >= 0)
10461 rm -f conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_func_memcmp_working=yes
10474 echo "$as_me: program exited with status $ac_status" >&5
10475 echo "$as_me: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 ( exit $ac_status )
10478 ac_cv_func_memcmp_working=no
10480 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10483 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10484 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10485 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10500 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10503 echo "$as_me:$LINENO: checking for $ac_func" >&5
10504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10505 if eval "test \"\${$as_ac_var+set}\" = set"; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 /* System header to define __stub macros and hopefully few prototypes,
10512 which can conflict with char $ac_func (); below. */
10513 #include <assert.h>
10514 /* Override any gcc2 internal prototype to avoid an error. */
10518 /* We use char because int might match the return type of a gcc2
10519 builtin and then its argument prototype would still apply. */
10523 #ifdef F77_DUMMY_MAIN
10524 # ifdef __cplusplus
10527 int F77_DUMMY_MAIN() { return 1; }
10532 /* The GNU C library defines this for functions which it implements
10533 to always fail with ENOSYS. Some functions are actually named
10534 something starting with __ and the normal name is an alias. */
10535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547 (eval $ac_link) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -s conftest$ac_exeext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 eval "$as_ac_var=yes"
10559 echo "$as_me: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 eval "$as_ac_var=no"
10563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10567 if test `eval echo '${'$as_ac_var'}'` = yes; then
10568 cat >>confdefs.h <<_ACEOF
10569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10576 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10577 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10578 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10584 #include <unistd.h>
10586 #ifdef F77_DUMMY_MAIN
10587 # ifdef __cplusplus
10590 int F77_DUMMY_MAIN() { return 1; }
10596 char *p = (char *) fdatasync;
10603 rm -f conftest.$ac_objext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605 (eval $ac_compile) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -s conftest.$ac_objext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_have_decl_fdatasync=yes
10617 echo "$as_me: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10619 ac_cv_have_decl_fdatasync=no
10621 rm -f conftest.$ac_objext conftest.$ac_ext
10623 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10624 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10625 if test $ac_cv_have_decl_fdatasync = yes; then
10627 cat >>confdefs.h <<_ACEOF
10628 #define HAVE_DECL_FDATASYNC 1
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_DECL_FDATASYNC 0
10642 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10643 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10644 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 cat >conftest.$ac_ext <<_ACEOF
10648 #line $LINENO "configure"
10649 #include "confdefs.h"
10650 #include <machine/vmparam.h>
10651 #include <sys/exec.h>
10653 #ifdef F77_DUMMY_MAIN
10654 # ifdef __cplusplus
10657 int F77_DUMMY_MAIN() { return 1; }
10662 PS_STRINGS->ps_nargvstr = 1;
10663 PS_STRINGS->ps_argvstr = "foo";
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } &&
10674 { ac_try='test -s conftest$ac_exeext'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; }; then
10680 pgac_cv_var_PS_STRINGS=yes
10682 echo "$as_me: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10684 pgac_cv_var_PS_STRINGS=no
10686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10688 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10689 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10690 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define HAVE_PS_STRINGS
10699 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10700 # is missing. Yes, there are machines that have only one. We may
10701 # also decide to use snprintf.c if snprintf() is present but does not
10702 # have working "long long int" support -- see below.
10704 pgac_need_repl_snprintf=no
10706 for ac_func in snprintf
10708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10709 echo "$as_me:$LINENO: checking for $ac_func" >&5
10710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10711 if eval "test \"\${$as_ac_var+set}\" = set"; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 cat >conftest.$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10717 /* System header to define __stub macros and hopefully few prototypes,
10718 which can conflict with char $ac_func (); below. */
10719 #include <assert.h>
10720 /* Override any gcc2 internal prototype to avoid an error. */
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
10729 #ifdef F77_DUMMY_MAIN
10730 # ifdef __cplusplus
10733 int F77_DUMMY_MAIN() { return 1; }
10738 /* The GNU C library defines this for functions which it implements
10739 to always fail with ENOSYS. Some functions are actually named
10740 something starting with __ and the normal name is an alias. */
10741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -s conftest$ac_exeext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 eval "$as_ac_var=yes"
10765 echo "$as_me: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10767 eval "$as_ac_var=no"
10769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10773 if test `eval echo '${'$as_ac_var'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10779 pgac_need_repl_snprintf=yes
10784 for ac_func in vsnprintf
10786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 echo "$as_me:$LINENO: checking for $ac_func" >&5
10788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10789 if eval "test \"\${$as_ac_var+set}\" = set"; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10794 #include "confdefs.h"
10795 /* System header to define __stub macros and hopefully few prototypes,
10796 which can conflict with char $ac_func (); below. */
10797 #include <assert.h>
10798 /* Override any gcc2 internal prototype to avoid an error. */
10802 /* We use char because int might match the return type of a gcc2
10803 builtin and then its argument prototype would still apply. */
10807 #ifdef F77_DUMMY_MAIN
10808 # ifdef __cplusplus
10811 int F77_DUMMY_MAIN() { return 1; }
10816 /* The GNU C library defines this for functions which it implements
10817 to always fail with ENOSYS. Some functions are actually named
10818 something starting with __ and the normal name is an alias. */
10819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -s conftest$ac_exeext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 eval "$as_ac_var=yes"
10843 echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 eval "$as_ac_var=no"
10847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10851 if test `eval echo '${'$as_ac_var'}'` = yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10857 pgac_need_repl_snprintf=yes
10863 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10864 # include/c.h will provide declarations. Note this is a separate test
10865 # from whether the functions exist in the C library --- there are
10866 # systems that have the functions but don't bother to declare them :-(
10868 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10869 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10870 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10875 #include "confdefs.h"
10876 $ac_includes_default
10877 #ifdef F77_DUMMY_MAIN
10878 # ifdef __cplusplus
10881 int F77_DUMMY_MAIN() { return 1; }
10887 char *p = (char *) snprintf;
10894 rm -f conftest.$ac_objext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10896 (eval $ac_compile) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -s conftest.$ac_objext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_have_decl_snprintf=yes
10908 echo "$as_me: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 ac_cv_have_decl_snprintf=no
10912 rm -f conftest.$ac_objext conftest.$ac_ext
10914 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10915 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10916 if test $ac_cv_have_decl_snprintf = yes; then
10918 cat >>confdefs.h <<_ACEOF
10919 #define HAVE_DECL_SNPRINTF 1
10924 cat >>confdefs.h <<_ACEOF
10925 #define HAVE_DECL_SNPRINTF 0
10930 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10931 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10932 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10937 #include "confdefs.h"
10938 $ac_includes_default
10939 #ifdef F77_DUMMY_MAIN
10940 # ifdef __cplusplus
10943 int F77_DUMMY_MAIN() { return 1; }
10949 char *p = (char *) vsnprintf;
10956 rm -f conftest.$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958 (eval $ac_compile) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try='test -s conftest.$ac_objext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_cv_have_decl_vsnprintf=yes
10970 echo "$as_me: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 ac_cv_have_decl_vsnprintf=no
10974 rm -f conftest.$ac_objext conftest.$ac_ext
10976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10977 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10978 if test $ac_cv_have_decl_vsnprintf = yes; then
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_DECL_VSNPRINTF 1
10986 cat >>confdefs.h <<_ACEOF
10987 #define HAVE_DECL_VSNPRINTF 0
10996 # do this one the hard way in case isinf() is a macro
10997 echo "$as_me:$LINENO: checking for isinf" >&5
10998 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10999 if test "${ac_cv_func_isinf+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11004 #include "confdefs.h"
11007 #ifdef F77_DUMMY_MAIN
11008 # ifdef __cplusplus
11011 int F77_DUMMY_MAIN() { return 1; }
11016 double x = 0.0; int res = isinf(x);
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -s conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_func_isinf=yes
11035 echo "$as_me: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 ac_cv_func_isinf=no
11039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11041 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11042 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11044 if test $ac_cv_func_isinf = yes ; then
11046 cat >>confdefs.h <<\_ACEOF
11047 #define HAVE_ISINF 1
11051 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11052 # Look for a way to implement a substitute for isinf()
11057 for ac_func in fpclass fp_class fp_class_d class
11059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11060 echo "$as_me:$LINENO: checking for $ac_func" >&5
11061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_var+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 cat >conftest.$ac_ext <<_ACEOF
11066 #line $LINENO "configure"
11067 #include "confdefs.h"
11068 /* System header to define __stub macros and hopefully few prototypes,
11069 which can conflict with char $ac_func (); below. */
11070 #include <assert.h>
11071 /* Override any gcc2 internal prototype to avoid an error. */
11075 /* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11080 #ifdef F77_DUMMY_MAIN
11081 # ifdef __cplusplus
11084 int F77_DUMMY_MAIN() { return 1; }
11089 /* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
11108 { ac_try='test -s conftest$ac_exeext'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 eval "$as_ac_var=yes"
11116 echo "$as_me: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11118 eval "$as_ac_var=no"
11120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11144 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
11146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 echo "$as_me:$LINENO: checking for $ac_func" >&5
11148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11149 if eval "test \"\${$as_ac_var+set}\" = set"; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11154 #include "confdefs.h"
11155 /* System header to define __stub macros and hopefully few prototypes,
11156 which can conflict with char $ac_func (); below. */
11157 #include <assert.h>
11158 /* Override any gcc2 internal prototype to avoid an error. */
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11167 #ifdef F77_DUMMY_MAIN
11168 # ifdef __cplusplus
11171 int F77_DUMMY_MAIN() { return 1; }
11176 /* The GNU C library defines this for functions which it implements
11177 to always fail with ENOSYS. Some functions are actually named
11178 something starting with __ and the normal name is an alias. */
11179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -s conftest$ac_exeext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 eval "$as_ac_var=yes"
11203 echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 eval "$as_ac_var=no"
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11211 if test `eval echo '${'$as_ac_var'}'` = yes; then
11212 cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11217 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11223 # Solaris has a very slow qsort in certain cases.
11225 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11228 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11229 # this hackery with HPUXMATHLIB allows us to cope.
11233 if [ -r /lib/pa1.1/libm.a ] ; then
11234 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11240 for ac_func in rint
11242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 echo "$as_me:$LINENO: checking for $ac_func" >&5
11244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11245 if eval "test \"\${$as_ac_var+set}\" = set"; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 #include "confdefs.h"
11251 /* System header to define __stub macros and hopefully few prototypes,
11252 which can conflict with char $ac_func (); below. */
11253 #include <assert.h>
11254 /* Override any gcc2 internal prototype to avoid an error. */
11258 /* We use char because int might match the return type of a gcc2
11259 builtin and then its argument prototype would still apply. */
11263 #ifdef F77_DUMMY_MAIN
11264 # ifdef __cplusplus
11267 int F77_DUMMY_MAIN() { return 1; }
11272 /* The GNU C library defines this for functions which it implements
11273 to always fail with ENOSYS. Some functions are actually named
11274 something starting with __ and the normal name is an alias. */
11275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -s conftest$ac_exeext'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 eval "$as_ac_var=yes"
11299 echo "$as_me: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11301 eval "$as_ac_var=no"
11303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11307 if test `eval echo '${'$as_ac_var'}'` = yes; then
11308 cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11313 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11314 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11315 if test "${ac_cv_lib_m_rint+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 ac_check_lib_save_LIBS=$LIBS
11319 LIBS="-lm $HPUXMATHLIB $LIBS"
11320 cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11322 #include "confdefs.h"
11324 /* Override any gcc2 internal prototype to avoid an error. */
11328 /* We use char because int might match the return type of a gcc2
11329 builtin and then its argument prototype would still apply. */
11331 #ifdef F77_DUMMY_MAIN
11332 # ifdef __cplusplus
11335 int F77_DUMMY_MAIN() { return 1; }
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347 (eval $ac_link) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -s conftest$ac_exeext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 ac_cv_lib_m_rint=yes
11359 echo "$as_me: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 ac_cv_lib_m_rint=no
11363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11366 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11367 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11368 if test $ac_cv_lib_m_rint = yes; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_RINT 1
11380 if test "$with_readline" = yes; then
11381 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11382 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11387 #ifdef HAVE_READLINE_READLINE_H
11388 # include <readline/readline.h>
11389 #elif defined(HAVE_READLINE_H)
11390 # include <readline.h>
11393 #ifdef F77_DUMMY_MAIN
11394 # ifdef __cplusplus
11397 int F77_DUMMY_MAIN() { return 1; }
11402 rl_completion_append_character = 'x';
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409 (eval $ac_link) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
11413 { ac_try='test -s conftest$ac_exeext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 echo "$as_me:$LINENO: result: yes" >&5
11420 echo "${ECHO_T}yes" >&6
11422 cat >>confdefs.h <<\_ACEOF
11423 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11427 echo "$as_me: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11429 echo "$as_me:$LINENO: result: no" >&5
11430 echo "${ECHO_T}no" >&6
11432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11435 for ac_func in rl_completion_matches rl_filename_completion_function
11437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11438 echo "$as_me:$LINENO: checking for $ac_func" >&5
11439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11440 if eval "test \"\${$as_ac_var+set}\" = set"; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 cat >conftest.$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 #include "confdefs.h"
11446 /* System header to define __stub macros and hopefully few prototypes,
11447 which can conflict with char $ac_func (); below. */
11448 #include <assert.h>
11449 /* Override any gcc2 internal prototype to avoid an error. */
11453 /* We use char because int might match the return type of a gcc2
11454 builtin and then its argument prototype would still apply. */
11458 #ifdef F77_DUMMY_MAIN
11459 # ifdef __cplusplus
11462 int F77_DUMMY_MAIN() { return 1; }
11467 /* The GNU C library defines this for functions which it implements
11468 to always fail with ENOSYS. Some functions are actually named
11469 something starting with __ and the normal name is an alias. */
11470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11482 (eval $ac_link) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -s conftest$ac_exeext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 eval "$as_ac_var=yes"
11494 echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 eval "$as_ac_var=no"
11498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11502 if test `eval echo '${'$as_ac_var'}'` = yes; then
11503 cat >>confdefs.h <<_ACEOF
11504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11513 echo "$as_me:$LINENO: checking for finite" >&5
11514 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 #include "confdefs.h"
11519 #ifdef F77_DUMMY_MAIN
11520 # ifdef __cplusplus
11523 int F77_DUMMY_MAIN() { return 1; }
11528 int dummy=finite(1.0);
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11535 (eval $ac_link) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -s conftest$ac_exeext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define HAVE_FINITE 1
11550 echo "$as_me:$LINENO: result: yes" >&5
11551 echo "${ECHO_T}yes" >&6
11553 echo "$as_me: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11555 echo "$as_me:$LINENO: result: no" >&5
11556 echo "${ECHO_T}no" >&6
11558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11560 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11561 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 #include "confdefs.h"
11565 #include <setjmp.h>
11566 #ifdef F77_DUMMY_MAIN
11567 # ifdef __cplusplus
11570 int F77_DUMMY_MAIN() { return 1; }
11575 sigjmp_buf x; sigsetjmp(x, 1);
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -s conftest$ac_exeext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11593 cat >>confdefs.h <<\_ACEOF
11594 #define HAVE_SIGSETJMP 1
11597 echo "$as_me:$LINENO: result: yes" >&5
11598 echo "${ECHO_T}yes" >&6
11600 echo "$as_me: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 echo "$as_me:$LINENO: result: no" >&5
11603 echo "${ECHO_T}no" >&6
11605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11607 echo "$as_me:$LINENO: checking for syslog" >&5
11608 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11609 if test "${ac_cv_func_syslog+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11613 #line $LINENO "configure"
11614 #include "confdefs.h"
11615 /* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char syslog (); below. */
11617 #include <assert.h>
11618 /* Override any gcc2 internal prototype to avoid an error. */
11622 /* We use char because int might match the return type of a gcc2
11623 builtin and then its argument prototype would still apply. */
11627 #ifdef F77_DUMMY_MAIN
11628 # ifdef __cplusplus
11631 int F77_DUMMY_MAIN() { return 1; }
11636 /* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639 #if defined (__stub_syslog) || defined (__stub___syslog)
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11651 (eval $ac_link) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -s conftest$ac_exeext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_cv_func_syslog=yes
11663 echo "$as_me: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11665 ac_cv_func_syslog=no
11667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11669 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11670 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11671 if test $ac_cv_func_syslog = yes; then
11672 if test "${ac_cv_header_syslog_h+set}" = set; then
11673 echo "$as_me:$LINENO: checking for syslog.h" >&5
11674 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11675 if test "${ac_cv_header_syslog_h+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11679 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11681 # Is the header compilable?
11682 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11683 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11684 cat >conftest.$ac_ext <<_ACEOF
11685 #line $LINENO "configure"
11686 #include "confdefs.h"
11687 $ac_includes_default
11688 #include <syslog.h>
11690 rm -f conftest.$ac_objext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11692 (eval $ac_compile) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -s conftest.$ac_objext'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 ac_header_compiler=yes
11704 echo "$as_me: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 ac_header_compiler=no
11708 rm -f conftest.$ac_objext conftest.$ac_ext
11709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11710 echo "${ECHO_T}$ac_header_compiler" >&6
11712 # Is the header present?
11713 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11714 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11716 #line $LINENO "configure"
11717 #include "confdefs.h"
11718 #include <syslog.h>
11720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11723 egrep -v '^ *\+' conftest.er1 >conftest.err
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } >/dev/null; then
11728 if test -s conftest.err; then
11729 ac_cpp_err=$ac_c_preproc_warn_flag
11736 if test -z "$ac_cpp_err"; then
11737 ac_header_preproc=yes
11739 echo "$as_me: failed program was:" >&5
11740 cat conftest.$ac_ext >&5
11741 ac_header_preproc=no
11743 rm -f conftest.err conftest.$ac_ext
11744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11745 echo "${ECHO_T}$ac_header_preproc" >&6
11747 # So? What about this header?
11748 case $ac_header_compiler:$ac_header_preproc in
11750 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11751 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11753 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11755 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11760 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11762 echo "$as_me:$LINENO: checking for syslog.h" >&5
11763 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11764 if test "${ac_cv_header_syslog_h+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 ac_cv_header_syslog_h=$ac_header_preproc
11769 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11770 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11773 if test $ac_cv_header_syslog_h = yes; then
11774 cat >>confdefs.h <<\_ACEOF
11775 #define HAVE_SYSLOG 1
11784 echo "$as_me:$LINENO: checking for optreset" >&5
11785 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11786 if test "${pgac_cv_var_int_optreset+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 cat >conftest.$ac_ext <<_ACEOF
11790 #line $LINENO "configure"
11791 #include "confdefs.h"
11792 #include <unistd.h>
11793 #ifdef F77_DUMMY_MAIN
11794 # ifdef __cplusplus
11797 int F77_DUMMY_MAIN() { return 1; }
11802 extern int optreset; optreset = 1;
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11809 (eval $ac_link) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 pgac_cv_var_int_optreset=yes
11821 echo "$as_me: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11823 pgac_cv_var_int_optreset=no
11825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11827 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11828 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11829 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11831 cat >>confdefs.h <<\_ACEOF
11832 #define HAVE_INT_OPTRESET 1
11839 for ac_func in strtoll strtoq
11841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11842 echo "$as_me:$LINENO: checking for $ac_func" >&5
11843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11844 if eval "test \"\${$as_ac_var+set}\" = set"; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 #include "confdefs.h"
11850 /* System header to define __stub macros and hopefully few prototypes,
11851 which can conflict with char $ac_func (); below. */
11852 #include <assert.h>
11853 /* Override any gcc2 internal prototype to avoid an error. */
11857 /* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11862 #ifdef F77_DUMMY_MAIN
11863 # ifdef __cplusplus
11866 int F77_DUMMY_MAIN() { return 1; }
11871 /* The GNU C library defines this for functions which it implements
11872 to always fail with ENOSYS. Some functions are actually named
11873 something starting with __ and the normal name is an alias. */
11874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 eval "$as_ac_var=yes"
11898 echo "$as_me: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 eval "$as_ac_var=no"
11902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11916 for ac_func in strtoull strtouq
11918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11921 if eval "test \"\${$as_ac_var+set}\" = set"; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11926 #include "confdefs.h"
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func (); below. */
11929 #include <assert.h>
11930 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11939 #ifdef F77_DUMMY_MAIN
11940 # ifdef __cplusplus
11943 int F77_DUMMY_MAIN() { return 1; }
11948 /* The GNU C library defines this for functions which it implements
11949 to always fail with ENOSYS. Some functions are actually named
11950 something starting with __ and the normal name is an alias. */
11951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963 (eval $ac_link) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 eval "$as_ac_var=yes"
11975 echo "$as_me: failed program was:" >&5
11976 cat conftest.$ac_ext >&5
11977 eval "$as_ac_var=no"
11979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11983 if test `eval echo '${'$as_ac_var'}'` = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11992 # Check for one of atexit() or on_exit()
11994 for ac_func in atexit
11996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11997 echo "$as_me:$LINENO: checking for $ac_func" >&5
11998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11999 if eval "test \"\${$as_ac_var+set}\" = set"; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 cat >conftest.$ac_ext <<_ACEOF
12003 #line $LINENO "configure"
12004 #include "confdefs.h"
12005 /* System header to define __stub macros and hopefully few prototypes,
12006 which can conflict with char $ac_func (); below. */
12007 #include <assert.h>
12008 /* Override any gcc2 internal prototype to avoid an error. */
12012 /* We use char because int might match the return type of a gcc2
12013 builtin and then its argument prototype would still apply. */
12017 #ifdef F77_DUMMY_MAIN
12018 # ifdef __cplusplus
12021 int F77_DUMMY_MAIN() { return 1; }
12026 /* The GNU C library defines this for functions which it implements
12027 to always fail with ENOSYS. Some functions are actually named
12028 something starting with __ and the normal name is an alias. */
12029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12039 rm -f conftest.$ac_objext conftest$ac_exeext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041 (eval $ac_link) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 eval "$as_ac_var=yes"
12053 echo "$as_me: failed program was:" >&5
12054 cat conftest.$ac_ext >&5
12055 eval "$as_ac_var=no"
12057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12061 if test `eval echo '${'$as_ac_var'}'` = yes; then
12062 cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12068 for ac_func in on_exit
12070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12071 echo "$as_me:$LINENO: checking for $ac_func" >&5
12072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12073 if eval "test \"\${$as_ac_var+set}\" = set"; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 #line $LINENO "configure"
12078 #include "confdefs.h"
12079 /* System header to define __stub macros and hopefully few prototypes,
12080 which can conflict with char $ac_func (); below. */
12081 #include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12091 #ifdef F77_DUMMY_MAIN
12092 # ifdef __cplusplus
12095 int F77_DUMMY_MAIN() { return 1; }
12100 /* The GNU C library defines this for functions which it implements
12101 to always fail with ENOSYS. Some functions are actually named
12102 something starting with __ and the normal name is an alias. */
12103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 eval "$as_ac_var=yes"
12127 echo "$as_me: failed program was:" >&5
12128 cat conftest.$ac_ext >&5
12129 eval "$as_ac_var=no"
12131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12135 if test `eval echo '${'$as_ac_var'}'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12141 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12142 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12143 { (exit 1); exit 1; }; }
12151 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12152 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12153 if test "${ac_cv_sys_largefile_source+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 ac_cv_sys_largefile_source=no
12158 cat >conftest.$ac_ext <<_ACEOF
12159 #line $LINENO "configure"
12160 #include "confdefs.h"
12162 #ifdef F77_DUMMY_MAIN
12163 # ifdef __cplusplus
12166 int F77_DUMMY_MAIN() { return 1; }
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -s conftest.$ac_objext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12190 echo "$as_me: failed program was:" >&5
12191 cat conftest.$ac_ext >&5
12193 rm -f conftest.$ac_objext conftest.$ac_ext
12194 cat >conftest.$ac_ext <<_ACEOF
12195 #line $LINENO "configure"
12196 #include "confdefs.h"
12197 #define _LARGEFILE_SOURCE 1
12199 #ifdef F77_DUMMY_MAIN
12200 # ifdef __cplusplus
12203 int F77_DUMMY_MAIN() { return 1; }
12213 rm -f conftest.$ac_objext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_sys_largefile_source=1; break
12227 echo "$as_me: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12230 rm -f conftest.$ac_objext conftest.$ac_ext
12234 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12235 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12236 if test "$ac_cv_sys_largefile_source" != no; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12245 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12246 # in glibc 2.1.3, but that breaks too many other things.
12247 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12248 echo "$as_me:$LINENO: checking for fseeko" >&5
12249 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12250 if test "${ac_cv_func_fseeko+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12255 #include "confdefs.h"
12257 #ifdef F77_DUMMY_MAIN
12258 # ifdef __cplusplus
12261 int F77_DUMMY_MAIN() { return 1; }
12266 return fseeko && fseeko (stdin, 0, 0);
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273 (eval $ac_link) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_func_fseeko=yes
12285 echo "$as_me: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12287 ac_cv_func_fseeko=no
12289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12291 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12292 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12293 if test $ac_cv_func_fseeko = yes; then
12295 cat >>confdefs.h <<\_ACEOF
12296 #define HAVE_FSEEKO 1
12303 # This test makes sure that run tests work at all. Sometimes a shared
12304 # library is found by the linker, but the runtime linker can't find it.
12305 # This check should come after all modifications of compiler or linker
12306 # variables, and before any other run tests.
12307 echo "$as_me:$LINENO: checking test program" >&5
12308 echo $ECHO_N "checking test program... $ECHO_C" >&6
12309 if test "$cross_compiling" = yes; then
12310 echo "$as_me:$LINENO: result: cross-compiling" >&5
12311 echo "${ECHO_T}cross-compiling" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12314 #line $LINENO "configure"
12315 #include "confdefs.h"
12316 int main() { return 0; }
12318 rm -f conftest$ac_exeext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12320 (eval $ac_link) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 echo "$as_me:$LINENO: result: ok" >&5
12330 echo "${ECHO_T}ok" >&6
12332 echo "$as_me: program exited with status $ac_status" >&5
12333 echo "$as_me: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12335 ( exit $ac_status )
12336 echo "$as_me:$LINENO: result: failed" >&5
12337 echo "${ECHO_T}failed" >&6
12338 { { echo "$as_me:$LINENO: error:
12339 *** Could not execute a simple test program. This may be a problem
12340 *** related to locating shared libraries. Check the file 'config.log'
12341 *** for the exact reason." >&5
12342 echo "$as_me: error:
12343 *** Could not execute a simple test program. This may be a problem
12344 *** related to locating shared libraries. Check the file 'config.log'
12345 *** for the exact reason." >&2;}
12346 { (exit 1); exit 1; }; }
12348 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12353 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12354 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12355 if test "${pgac_cv_type_long_int_64+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 if test "$cross_compiling" = yes; then
12359 pgac_cv_type_long_int_64=no
12360 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12361 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12363 cat >conftest.$ac_ext <<_ACEOF
12364 #line $LINENO "configure"
12365 #include "confdefs.h"
12366 typedef long int int64;
12369 * These are globals to discourage the compiler from folding all the
12370 * arithmetic tests down to compile-time constants.
12372 int64 a = 20000001;
12373 int64 b = 40000005;
12375 int does_int64_work()
12379 if (sizeof(int64) != 8)
12380 return 0; /* definitely not the right size */
12382 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12390 exit(! does_int64_work());
12393 rm -f conftest$ac_exeext
12394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12395 (eval $ac_link) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 pgac_cv_type_long_int_64=yes
12406 echo "$as_me: program exited with status $ac_status" >&5
12407 echo "$as_me: failed program was:" >&5
12408 cat conftest.$ac_ext >&5
12409 ( exit $ac_status )
12410 pgac_cv_type_long_int_64=no
12412 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12415 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12416 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12418 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12419 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_LONG_INT_64
12428 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12429 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12430 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12431 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 if test "$cross_compiling" = yes; then
12435 pgac_cv_type_long_long_int_64=no
12436 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12437 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12439 cat >conftest.$ac_ext <<_ACEOF
12440 #line $LINENO "configure"
12441 #include "confdefs.h"
12442 typedef long long int int64;
12445 * These are globals to discourage the compiler from folding all the
12446 * arithmetic tests down to compile-time constants.
12448 int64 a = 20000001;
12449 int64 b = 40000005;
12451 int does_int64_work()
12455 if (sizeof(int64) != 8)
12456 return 0; /* definitely not the right size */
12458 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12466 exit(! does_int64_work());
12469 rm -f conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 pgac_cv_type_long_long_int_64=yes
12482 echo "$as_me: program exited with status $ac_status" >&5
12483 echo "$as_me: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 ( exit $ac_status )
12486 pgac_cv_type_long_long_int_64=no
12488 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12491 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12492 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12494 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12495 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_LONG_LONG_INT_64
12507 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12508 cat >conftest.$ac_ext <<_ACEOF
12509 #line $LINENO "configure"
12510 #include "confdefs.h"
12512 #define INT64CONST(x) x##LL
12513 long long int foo = INT64CONST(0x1234567890123456);
12515 #ifdef F77_DUMMY_MAIN
12516 # ifdef __cplusplus
12519 int F77_DUMMY_MAIN() { return 1; }
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12542 cat >>confdefs.h <<\_ACEOF
12543 #define HAVE_LL_CONSTANTS 1
12547 echo "$as_me: failed program was:" >&5
12548 cat conftest.$ac_ext >&5
12550 rm -f conftest.$ac_objext conftest.$ac_ext
12555 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12556 if test $pgac_need_repl_snprintf = no; then
12557 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12558 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12559 if test "$cross_compiling" = yes; then
12560 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12561 echo "${ECHO_T}cannot test (not on host machine)" >&6
12562 # Force usage of our own snprintf, since we cannot test foreign snprintf
12563 pgac_need_repl_snprintf=yes
12564 INT64_FORMAT='"%lld"'
12567 cat >conftest.$ac_ext <<_ACEOF
12568 #line $LINENO "configure"
12569 #include "confdefs.h"
12571 typedef long long int int64;
12572 #define INT64_FORMAT "%lld"
12574 int64 a = 20000001;
12575 int64 b = 40000005;
12577 int does_int64_snprintf_work()
12582 if (sizeof(int64) != 8)
12583 return 0; /* doesn't look like the right size */
12586 snprintf(buf, 100, INT64_FORMAT, c);
12587 if (strcmp(buf, "800000140000005") != 0)
12588 return 0; /* either multiply or snprintf is busted */
12592 exit(! does_int64_snprintf_work());
12595 rm -f conftest$ac_exeext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 echo "$as_me:$LINENO: result: yes" >&5
12607 echo "${ECHO_T}yes" >&6
12608 INT64_FORMAT='"%lld"'
12611 echo "$as_me: program exited with status $ac_status" >&5
12612 echo "$as_me: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12614 ( exit $ac_status )
12615 echo "$as_me:$LINENO: result: no" >&5
12616 echo "${ECHO_T}no" >&6
12617 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12618 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12619 if test "$cross_compiling" = yes; then
12620 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12621 echo "${ECHO_T}cannot test (not on host machine)" >&6
12622 # Force usage of our own snprintf, since we cannot test foreign snprintf
12623 pgac_need_repl_snprintf=yes
12624 INT64_FORMAT='"%lld"'
12627 cat >conftest.$ac_ext <<_ACEOF
12628 #line $LINENO "configure"
12629 #include "confdefs.h"
12631 typedef long long int int64;
12632 #define INT64_FORMAT "%qd"
12634 int64 a = 20000001;
12635 int64 b = 40000005;
12637 int does_int64_snprintf_work()
12642 if (sizeof(int64) != 8)
12643 return 0; /* doesn't look like the right size */
12646 snprintf(buf, 100, INT64_FORMAT, c);
12647 if (strcmp(buf, "800000140000005") != 0)
12648 return 0; /* either multiply or snprintf is busted */
12652 exit(! does_int64_snprintf_work());
12655 rm -f conftest$ac_exeext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657 (eval $ac_link) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 echo "$as_me:$LINENO: result: yes" >&5
12667 echo "${ECHO_T}yes" >&6
12668 INT64_FORMAT='"%qd"'
12671 echo "$as_me: program exited with status $ac_status" >&5
12672 echo "$as_me: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12674 ( exit $ac_status )
12675 echo "$as_me:$LINENO: result: no" >&5
12676 echo "${ECHO_T}no" >&6
12677 # Force usage of our own snprintf, since system snprintf is broken
12678 pgac_need_repl_snprintf=yes
12679 INT64_FORMAT='"%lld"'
12682 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12685 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12688 # here if we previously decided we needed to use our own snprintf
12689 INT64_FORMAT='"%lld"'
12692 # Here if we are not using 'long long int' at all
12693 INT64_FORMAT='"%ld"'
12697 cat >>confdefs.h <<_ACEOF
12698 #define INT64_FORMAT $INT64_FORMAT
12702 if test $pgac_need_repl_snprintf = yes; then
12703 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12707 echo "$as_me:$LINENO: checking for unsigned long" >&5
12708 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12709 if test "${ac_cv_type_unsigned_long+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 cat >conftest.$ac_ext <<_ACEOF
12713 #line $LINENO "configure"
12714 #include "confdefs.h"
12715 $ac_includes_default
12716 #ifdef F77_DUMMY_MAIN
12717 # ifdef __cplusplus
12720 int F77_DUMMY_MAIN() { return 1; }
12725 if ((unsigned long *) 0)
12727 if (sizeof (unsigned long))
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735 (eval $ac_compile) 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -s conftest.$ac_objext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_type_unsigned_long=yes
12747 echo "$as_me: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 ac_cv_type_unsigned_long=no
12751 rm -f conftest.$ac_objext conftest.$ac_ext
12753 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12754 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12756 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12757 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12758 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 if test "$ac_cv_type_unsigned_long" = yes; then
12762 # The cast to unsigned long works around a bug in the HP C Compiler
12763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12765 # This bug is HP SR number 8606223364.
12766 if test "$cross_compiling" = yes; then
12767 # Depending upon the size, compute the lo and hi bounds.
12768 cat >conftest.$ac_ext <<_ACEOF
12769 #line $LINENO "configure"
12770 #include "confdefs.h"
12771 $ac_includes_default
12772 #ifdef F77_DUMMY_MAIN
12773 # ifdef __cplusplus
12776 int F77_DUMMY_MAIN() { return 1; }
12781 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12788 rm -f conftest.$ac_objext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790 (eval $ac_compile) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -s conftest.$ac_objext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12802 cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12805 $ac_includes_default
12806 #ifdef F77_DUMMY_MAIN
12807 # ifdef __cplusplus
12810 int F77_DUMMY_MAIN() { return 1; }
12815 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -s conftest.$ac_objext'
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 ac_hi=$ac_mid; break
12836 echo "$as_me: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 ac_lo=`expr $ac_mid + 1`
12839 if test $ac_lo -le $ac_mid; then
12843 ac_mid=`expr 2 '*' $ac_mid + 1`
12845 rm -f conftest.$ac_objext conftest.$ac_ext
12848 echo "$as_me: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12853 $ac_includes_default
12854 #ifdef F77_DUMMY_MAIN
12855 # ifdef __cplusplus
12858 int F77_DUMMY_MAIN() { return 1; }
12863 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12870 rm -f conftest.$ac_objext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872 (eval $ac_compile) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try='test -s conftest.$ac_objext'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12884 cat >conftest.$ac_ext <<_ACEOF
12885 #line $LINENO "configure"
12886 #include "confdefs.h"
12887 $ac_includes_default
12888 #ifdef F77_DUMMY_MAIN
12889 # ifdef __cplusplus
12892 int F77_DUMMY_MAIN() { return 1; }
12897 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_lo=$ac_mid; break
12918 echo "$as_me: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12920 ac_hi=`expr '(' $ac_mid ')' - 1`
12921 if test $ac_mid -le $ac_hi; then
12925 ac_mid=`expr 2 '*' $ac_mid`
12927 rm -f conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12934 rm -f conftest.$ac_objext conftest.$ac_ext
12936 rm -f conftest.$ac_objext conftest.$ac_ext
12937 # Binary search between lo and hi bounds.
12938 while test "x$ac_lo" != "x$ac_hi"; do
12939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 $ac_includes_default
12944 #ifdef F77_DUMMY_MAIN
12945 # ifdef __cplusplus
12948 int F77_DUMMY_MAIN() { return 1; }
12953 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } &&
12966 { ac_try='test -s conftest.$ac_objext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12974 echo "$as_me: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 ac_lo=`expr '(' $ac_mid ')' + 1`
12978 rm -f conftest.$ac_objext conftest.$ac_ext
12981 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12983 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12984 { (exit 1); exit 1; }; } ;;
12987 if test "$cross_compiling" = yes; then
12988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12989 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12990 { (exit 1); exit 1; }; }
12992 cat >conftest.$ac_ext <<_ACEOF
12993 #line $LINENO "configure"
12994 #include "confdefs.h"
12995 $ac_includes_default
12996 long longval () { return (long) (sizeof (unsigned long)); }
12997 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12999 #include <stdlib.h>
13000 #ifdef F77_DUMMY_MAIN
13001 # ifdef __cplusplus
13004 int F77_DUMMY_MAIN() { return 1; }
13010 FILE *f = fopen ("conftest.val", "w");
13013 if (((long) (sizeof (unsigned long))) < 0)
13015 long i = longval ();
13016 if (i != ((long) (sizeof (unsigned long))))
13018 fprintf (f, "%ld\n", i);
13022 unsigned long i = ulongval ();
13023 if (i != ((long) (sizeof (unsigned long))))
13025 fprintf (f, "%lu\n", i);
13027 exit (ferror (f) || fclose (f) != 0);
13033 rm -f conftest$ac_exeext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035 (eval $ac_link) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13046 echo "$as_me: program exited with status $ac_status" >&5
13047 echo "$as_me: failed program was:" >&5
13048 cat conftest.$ac_ext >&5
13049 ( exit $ac_status )
13050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13051 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13052 { (exit 1); exit 1; }; }
13054 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13059 ac_cv_sizeof_unsigned_long=0
13062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13063 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13064 cat >>confdefs.h <<_ACEOF
13065 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13070 cat >>confdefs.h <<_ACEOF
13071 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13075 # Determine memory alignment requirements for the basic C data types.
13077 echo "$as_me:$LINENO: checking for short" >&5
13078 echo $ECHO_N "checking for short... $ECHO_C" >&6
13079 if test "${ac_cv_type_short+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 cat >conftest.$ac_ext <<_ACEOF
13083 #line $LINENO "configure"
13084 #include "confdefs.h"
13085 $ac_includes_default
13086 #ifdef F77_DUMMY_MAIN
13087 # ifdef __cplusplus
13090 int F77_DUMMY_MAIN() { return 1; }
13097 if (sizeof (short))
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105 (eval $ac_compile) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -s conftest.$ac_objext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_type_short=yes
13117 echo "$as_me: failed program was:" >&5
13118 cat conftest.$ac_ext >&5
13119 ac_cv_type_short=no
13121 rm -f conftest.$ac_objext conftest.$ac_ext
13123 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13124 echo "${ECHO_T}$ac_cv_type_short" >&6
13126 echo "$as_me:$LINENO: checking alignment of short" >&5
13127 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13128 if test "${pgac_cv_alignof_short+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 if test "$ac_cv_type_short" = yes; then
13132 if test "$cross_compiling" = yes; then
13133 # Depending upon the size, compute the lo and hi bounds.
13134 cat >conftest.$ac_ext <<_ACEOF
13135 #line $LINENO "configure"
13136 #include "confdefs.h"
13137 $ac_includes_default
13138 struct { char filler; short field; } pgac_struct;
13139 #ifdef F77_DUMMY_MAIN
13140 # ifdef __cplusplus
13143 int F77_DUMMY_MAIN() { return 1; }
13148 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -s conftest.$ac_objext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13169 cat >conftest.$ac_ext <<_ACEOF
13170 #line $LINENO "configure"
13171 #include "confdefs.h"
13172 $ac_includes_default
13173 struct { char filler; short field; } pgac_struct;
13174 #ifdef F77_DUMMY_MAIN
13175 # ifdef __cplusplus
13178 int F77_DUMMY_MAIN() { return 1; }
13183 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192 (eval $ac_compile) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -s conftest.$ac_objext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_hi=$ac_mid; break
13204 echo "$as_me: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13206 ac_lo=`expr $ac_mid + 1`
13207 if test $ac_lo -le $ac_mid; then
13211 ac_mid=`expr 2 '*' $ac_mid + 1`
13213 rm -f conftest.$ac_objext conftest.$ac_ext
13216 echo "$as_me: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13218 cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 #include "confdefs.h"
13221 $ac_includes_default
13222 struct { char filler; short field; } pgac_struct;
13223 #ifdef F77_DUMMY_MAIN
13224 # ifdef __cplusplus
13227 int F77_DUMMY_MAIN() { return 1; }
13232 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13239 rm -f conftest.$ac_objext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241 (eval $ac_compile) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -s conftest.$ac_objext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13253 cat >conftest.$ac_ext <<_ACEOF
13254 #line $LINENO "configure"
13255 #include "confdefs.h"
13256 $ac_includes_default
13257 struct { char filler; short field; } pgac_struct;
13258 #ifdef F77_DUMMY_MAIN
13259 # ifdef __cplusplus
13262 int F77_DUMMY_MAIN() { return 1; }
13267 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13274 rm -f conftest.$ac_objext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276 (eval $ac_compile) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_lo=$ac_mid; break
13288 echo "$as_me: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13290 ac_hi=`expr '(' $ac_mid ')' - 1`
13291 if test $ac_mid -le $ac_hi; then
13295 ac_mid=`expr 2 '*' $ac_mid`
13297 rm -f conftest.$ac_objext conftest.$ac_ext
13300 echo "$as_me: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13304 rm -f conftest.$ac_objext conftest.$ac_ext
13306 rm -f conftest.$ac_objext conftest.$ac_ext
13307 # Binary search between lo and hi bounds.
13308 while test "x$ac_lo" != "x$ac_hi"; do
13309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13310 cat >conftest.$ac_ext <<_ACEOF
13311 #line $LINENO "configure"
13312 #include "confdefs.h"
13313 $ac_includes_default
13314 struct { char filler; short field; } pgac_struct;
13315 #ifdef F77_DUMMY_MAIN
13316 # ifdef __cplusplus
13319 int F77_DUMMY_MAIN() { return 1; }
13324 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13331 rm -f conftest.$ac_objext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13333 (eval $ac_compile) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -s conftest.$ac_objext'
13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 (eval $ac_try) 2>&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
13345 echo "$as_me: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13347 ac_lo=`expr '(' $ac_mid ')' + 1`
13349 rm -f conftest.$ac_objext conftest.$ac_ext
13352 ?*) pgac_cv_alignof_short=$ac_lo;;
13353 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13354 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13355 { (exit 1); exit 1; }; } ;;
13358 if test "$cross_compiling" = yes; then
13359 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13360 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13361 { (exit 1); exit 1; }; }
13363 cat >conftest.$ac_ext <<_ACEOF
13364 #line $LINENO "configure"
13365 #include "confdefs.h"
13366 $ac_includes_default
13367 struct { char filler; short field; } pgac_struct;
13368 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13369 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13371 #include <stdlib.h>
13372 #ifdef F77_DUMMY_MAIN
13373 # ifdef __cplusplus
13376 int F77_DUMMY_MAIN() { return 1; }
13382 FILE *f = fopen ("conftest.val", "w");
13385 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13387 long i = longval ();
13388 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13390 fprintf (f, "%ld\n", i);
13394 unsigned long i = ulongval ();
13395 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13397 fprintf (f, "%lu\n", i);
13399 exit (ferror (f) || fclose (f) != 0);
13405 rm -f conftest$ac_exeext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13407 (eval $ac_link) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 pgac_cv_alignof_short=`cat conftest.val`
13418 echo "$as_me: program exited with status $ac_status" >&5
13419 echo "$as_me: failed program was:" >&5
13420 cat conftest.$ac_ext >&5
13421 ( exit $ac_status )
13422 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13423 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13424 { (exit 1); exit 1; }; }
13426 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13431 pgac_cv_alignof_short=0
13434 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13435 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13436 cat >>confdefs.h <<_ACEOF
13437 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13441 echo "$as_me:$LINENO: checking for int" >&5
13442 echo $ECHO_N "checking for int... $ECHO_C" >&6
13443 if test "${ac_cv_type_int+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13447 #line $LINENO "configure"
13448 #include "confdefs.h"
13449 $ac_includes_default
13450 #ifdef F77_DUMMY_MAIN
13451 # ifdef __cplusplus
13454 int F77_DUMMY_MAIN() { return 1; }
13467 rm -f conftest.$ac_objext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469 (eval $ac_compile) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } &&
13473 { ac_try='test -s conftest.$ac_objext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13481 echo "$as_me: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13485 rm -f conftest.$ac_objext conftest.$ac_ext
13487 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13488 echo "${ECHO_T}$ac_cv_type_int" >&6
13490 echo "$as_me:$LINENO: checking alignment of int" >&5
13491 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13492 if test "${pgac_cv_alignof_int+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 if test "$ac_cv_type_int" = yes; then
13496 if test "$cross_compiling" = yes; then
13497 # Depending upon the size, compute the lo and hi bounds.
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501 $ac_includes_default
13502 struct { char filler; int field; } pgac_struct;
13503 #ifdef F77_DUMMY_MAIN
13504 # ifdef __cplusplus
13507 int F77_DUMMY_MAIN() { return 1; }
13512 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13519 rm -f conftest.$ac_objext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line $LINENO "configure"
13535 #include "confdefs.h"
13536 $ac_includes_default
13537 struct { char filler; int field; } pgac_struct;
13538 #ifdef F77_DUMMY_MAIN
13539 # ifdef __cplusplus
13542 int F77_DUMMY_MAIN() { return 1; }
13547 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 ac_hi=$ac_mid; break
13568 echo "$as_me: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 ac_lo=`expr $ac_mid + 1`
13571 if test $ac_lo -le $ac_mid; then
13575 ac_mid=`expr 2 '*' $ac_mid + 1`
13577 rm -f conftest.$ac_objext conftest.$ac_ext
13580 echo "$as_me: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13582 cat >conftest.$ac_ext <<_ACEOF
13583 #line $LINENO "configure"
13584 #include "confdefs.h"
13585 $ac_includes_default
13586 struct { char filler; int field; } pgac_struct;
13587 #ifdef F77_DUMMY_MAIN
13588 # ifdef __cplusplus
13591 int F77_DUMMY_MAIN() { return 1; }
13596 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
13609 { ac_try='test -s conftest.$ac_objext'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13617 cat >conftest.$ac_ext <<_ACEOF
13618 #line $LINENO "configure"
13619 #include "confdefs.h"
13620 $ac_includes_default
13621 struct { char filler; int field; } pgac_struct;
13622 #ifdef F77_DUMMY_MAIN
13623 # ifdef __cplusplus
13626 int F77_DUMMY_MAIN() { return 1; }
13631 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -s conftest.$ac_objext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_lo=$ac_mid; break
13652 echo "$as_me: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13654 ac_hi=`expr '(' $ac_mid ')' - 1`
13655 if test $ac_mid -le $ac_hi; then
13659 ac_mid=`expr 2 '*' $ac_mid`
13661 rm -f conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me: failed program was:" >&5
13665 cat conftest.$ac_ext >&5
13668 rm -f conftest.$ac_objext conftest.$ac_ext
13670 rm -f conftest.$ac_objext conftest.$ac_ext
13671 # Binary search between lo and hi bounds.
13672 while test "x$ac_lo" != "x$ac_hi"; do
13673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13674 cat >conftest.$ac_ext <<_ACEOF
13675 #line $LINENO "configure"
13676 #include "confdefs.h"
13677 $ac_includes_default
13678 struct { char filler; int field; } pgac_struct;
13679 #ifdef F77_DUMMY_MAIN
13680 # ifdef __cplusplus
13683 int F77_DUMMY_MAIN() { return 1; }
13688 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13695 rm -f conftest.$ac_objext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13697 (eval $ac_compile) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13709 echo "$as_me: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 ac_lo=`expr '(' $ac_mid ')' + 1`
13713 rm -f conftest.$ac_objext conftest.$ac_ext
13716 ?*) pgac_cv_alignof_int=$ac_lo;;
13717 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13718 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13719 { (exit 1); exit 1; }; } ;;
13722 if test "$cross_compiling" = yes; then
13723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13724 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13725 { (exit 1); exit 1; }; }
13727 cat >conftest.$ac_ext <<_ACEOF
13728 #line $LINENO "configure"
13729 #include "confdefs.h"
13730 $ac_includes_default
13731 struct { char filler; int field; } pgac_struct;
13732 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13733 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13735 #include <stdlib.h>
13736 #ifdef F77_DUMMY_MAIN
13737 # ifdef __cplusplus
13740 int F77_DUMMY_MAIN() { return 1; }
13746 FILE *f = fopen ("conftest.val", "w");
13749 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13751 long i = longval ();
13752 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13754 fprintf (f, "%ld\n", i);
13758 unsigned long i = ulongval ();
13759 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13761 fprintf (f, "%lu\n", i);
13763 exit (ferror (f) || fclose (f) != 0);
13769 rm -f conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 pgac_cv_alignof_int=`cat conftest.val`
13782 echo "$as_me: program exited with status $ac_status" >&5
13783 echo "$as_me: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13785 ( exit $ac_status )
13786 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13787 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13788 { (exit 1); exit 1; }; }
13790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13795 pgac_cv_alignof_int=0
13798 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13799 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13800 cat >>confdefs.h <<_ACEOF
13801 #define ALIGNOF_INT $pgac_cv_alignof_int
13805 echo "$as_me:$LINENO: checking for long" >&5
13806 echo $ECHO_N "checking for long... $ECHO_C" >&6
13807 if test "${ac_cv_type_long+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 cat >conftest.$ac_ext <<_ACEOF
13811 #line $LINENO "configure"
13812 #include "confdefs.h"
13813 $ac_includes_default
13814 #ifdef F77_DUMMY_MAIN
13815 # ifdef __cplusplus
13818 int F77_DUMMY_MAIN() { return 1; }
13831 rm -f conftest.$ac_objext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -s conftest.$ac_objext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_cv_type_long=yes
13845 echo "$as_me: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13849 rm -f conftest.$ac_objext conftest.$ac_ext
13851 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13852 echo "${ECHO_T}$ac_cv_type_long" >&6
13854 echo "$as_me:$LINENO: checking alignment of long" >&5
13855 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13856 if test "${pgac_cv_alignof_long+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 if test "$ac_cv_type_long" = yes; then
13860 if test "$cross_compiling" = yes; then
13861 # Depending upon the size, compute the lo and hi bounds.
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13864 #include "confdefs.h"
13865 $ac_includes_default
13866 struct { char filler; long field; } pgac_struct;
13867 #ifdef F77_DUMMY_MAIN
13868 # ifdef __cplusplus
13871 int F77_DUMMY_MAIN() { return 1; }
13876 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885 (eval $ac_compile) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -s conftest.$ac_objext'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13897 cat >conftest.$ac_ext <<_ACEOF
13898 #line $LINENO "configure"
13899 #include "confdefs.h"
13900 $ac_includes_default
13901 struct { char filler; long field; } pgac_struct;
13902 #ifdef F77_DUMMY_MAIN
13903 # ifdef __cplusplus
13906 int F77_DUMMY_MAIN() { return 1; }
13911 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13918 rm -f conftest.$ac_objext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920 (eval $ac_compile) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_hi=$ac_mid; break
13932 echo "$as_me: failed program was:" >&5
13933 cat conftest.$ac_ext >&5
13934 ac_lo=`expr $ac_mid + 1`
13935 if test $ac_lo -le $ac_mid; then
13939 ac_mid=`expr 2 '*' $ac_mid + 1`
13941 rm -f conftest.$ac_objext conftest.$ac_ext
13944 echo "$as_me: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13946 cat >conftest.$ac_ext <<_ACEOF
13947 #line $LINENO "configure"
13948 #include "confdefs.h"
13949 $ac_includes_default
13950 struct { char filler; long field; } pgac_struct;
13951 #ifdef F77_DUMMY_MAIN
13952 # ifdef __cplusplus
13955 int F77_DUMMY_MAIN() { return 1; }
13960 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969 (eval $ac_compile) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -s conftest.$ac_objext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13981 cat >conftest.$ac_ext <<_ACEOF
13982 #line $LINENO "configure"
13983 #include "confdefs.h"
13984 $ac_includes_default
13985 struct { char filler; long field; } pgac_struct;
13986 #ifdef F77_DUMMY_MAIN
13987 # ifdef __cplusplus
13990 int F77_DUMMY_MAIN() { return 1; }
13995 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004 (eval $ac_compile) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_lo=$ac_mid; break
14016 echo "$as_me: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 ac_hi=`expr '(' $ac_mid ')' - 1`
14019 if test $ac_mid -le $ac_hi; then
14023 ac_mid=`expr 2 '*' $ac_mid`
14025 rm -f conftest.$ac_objext conftest.$ac_ext
14028 echo "$as_me: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14032 rm -f conftest.$ac_objext conftest.$ac_ext
14034 rm -f conftest.$ac_objext conftest.$ac_ext
14035 # Binary search between lo and hi bounds.
14036 while test "x$ac_lo" != "x$ac_hi"; do
14037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14038 cat >conftest.$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14040 #include "confdefs.h"
14041 $ac_includes_default
14042 struct { char filler; long field; } pgac_struct;
14043 #ifdef F77_DUMMY_MAIN
14044 # ifdef __cplusplus
14047 int F77_DUMMY_MAIN() { return 1; }
14052 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061 (eval $ac_compile) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -s conftest.$ac_objext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14073 echo "$as_me: failed program was:" >&5
14074 cat conftest.$ac_ext >&5
14075 ac_lo=`expr '(' $ac_mid ')' + 1`
14077 rm -f conftest.$ac_objext conftest.$ac_ext
14080 ?*) pgac_cv_alignof_long=$ac_lo;;
14081 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14082 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14083 { (exit 1); exit 1; }; } ;;
14086 if test "$cross_compiling" = yes; then
14087 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14088 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14089 { (exit 1); exit 1; }; }
14091 cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 #include "confdefs.h"
14094 $ac_includes_default
14095 struct { char filler; long field; } pgac_struct;
14096 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14097 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14099 #include <stdlib.h>
14100 #ifdef F77_DUMMY_MAIN
14101 # ifdef __cplusplus
14104 int F77_DUMMY_MAIN() { return 1; }
14110 FILE *f = fopen ("conftest.val", "w");
14113 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14115 long i = longval ();
14116 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14118 fprintf (f, "%ld\n", i);
14122 unsigned long i = ulongval ();
14123 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14125 fprintf (f, "%lu\n", i);
14127 exit (ferror (f) || fclose (f) != 0);
14133 rm -f conftest$ac_exeext
14134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14135 (eval $ac_link) 2>&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 pgac_cv_alignof_long=`cat conftest.val`
14146 echo "$as_me: program exited with status $ac_status" >&5
14147 echo "$as_me: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 ( exit $ac_status )
14150 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14151 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14152 { (exit 1); exit 1; }; }
14154 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14159 pgac_cv_alignof_long=0
14162 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14163 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14164 cat >>confdefs.h <<_ACEOF
14165 #define ALIGNOF_LONG $pgac_cv_alignof_long
14169 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14170 echo "$as_me:$LINENO: checking for long long int" >&5
14171 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14172 if test "${ac_cv_type_long_long_int+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 cat >conftest.$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14177 #include "confdefs.h"
14178 $ac_includes_default
14179 #ifdef F77_DUMMY_MAIN
14180 # ifdef __cplusplus
14183 int F77_DUMMY_MAIN() { return 1; }
14188 if ((long long int *) 0)
14190 if (sizeof (long long int))
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198 (eval $ac_compile) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -s conftest.$ac_objext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_type_long_long_int=yes
14210 echo "$as_me: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 ac_cv_type_long_long_int=no
14214 rm -f conftest.$ac_objext conftest.$ac_ext
14216 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14217 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14219 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14220 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14221 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 if test "$ac_cv_type_long_long_int" = yes; then
14225 if test "$cross_compiling" = yes; then
14226 # Depending upon the size, compute the lo and hi bounds.
14227 cat >conftest.$ac_ext <<_ACEOF
14228 #line $LINENO "configure"
14229 #include "confdefs.h"
14230 $ac_includes_default
14231 struct { char filler; long long int field; } pgac_struct;
14232 #ifdef F77_DUMMY_MAIN
14233 # ifdef __cplusplus
14236 int F77_DUMMY_MAIN() { return 1; }
14241 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try='test -s conftest.$ac_objext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14262 cat >conftest.$ac_ext <<_ACEOF
14263 #line $LINENO "configure"
14264 #include "confdefs.h"
14265 $ac_includes_default
14266 struct { char filler; long long int field; } pgac_struct;
14267 #ifdef F77_DUMMY_MAIN
14268 # ifdef __cplusplus
14271 int F77_DUMMY_MAIN() { return 1; }
14276 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 ac_hi=$ac_mid; break
14297 echo "$as_me: failed program was:" >&5
14298 cat conftest.$ac_ext >&5
14299 ac_lo=`expr $ac_mid + 1`
14300 if test $ac_lo -le $ac_mid; then
14304 ac_mid=`expr 2 '*' $ac_mid + 1`
14306 rm -f conftest.$ac_objext conftest.$ac_ext
14309 echo "$as_me: failed program was:" >&5
14310 cat conftest.$ac_ext >&5
14311 cat >conftest.$ac_ext <<_ACEOF
14312 #line $LINENO "configure"
14313 #include "confdefs.h"
14314 $ac_includes_default
14315 struct { char filler; long long int field; } pgac_struct;
14316 #ifdef F77_DUMMY_MAIN
14317 # ifdef __cplusplus
14320 int F77_DUMMY_MAIN() { return 1; }
14325 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14332 rm -f conftest.$ac_objext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14346 cat >conftest.$ac_ext <<_ACEOF
14347 #line $LINENO "configure"
14348 #include "confdefs.h"
14349 $ac_includes_default
14350 struct { char filler; long long int field; } pgac_struct;
14351 #ifdef F77_DUMMY_MAIN
14352 # ifdef __cplusplus
14355 int F77_DUMMY_MAIN() { return 1; }
14360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369 (eval $ac_compile) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -s conftest.$ac_objext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_lo=$ac_mid; break
14381 echo "$as_me: failed program was:" >&5
14382 cat conftest.$ac_ext >&5
14383 ac_hi=`expr '(' $ac_mid ')' - 1`
14384 if test $ac_mid -le $ac_hi; then
14388 ac_mid=`expr 2 '*' $ac_mid`
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14393 echo "$as_me: failed program was:" >&5
14394 cat conftest.$ac_ext >&5
14397 rm -f conftest.$ac_objext conftest.$ac_ext
14399 rm -f conftest.$ac_objext conftest.$ac_ext
14400 # Binary search between lo and hi bounds.
14401 while test "x$ac_lo" != "x$ac_hi"; do
14402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14403 cat >conftest.$ac_ext <<_ACEOF
14404 #line $LINENO "configure"
14405 #include "confdefs.h"
14406 $ac_includes_default
14407 struct { char filler; long long int field; } pgac_struct;
14408 #ifdef F77_DUMMY_MAIN
14409 # ifdef __cplusplus
14412 int F77_DUMMY_MAIN() { return 1; }
14417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426 (eval $ac_compile) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14438 echo "$as_me: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14440 ac_lo=`expr '(' $ac_mid ')' + 1`
14442 rm -f conftest.$ac_objext conftest.$ac_ext
14445 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14446 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14447 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14448 { (exit 1); exit 1; }; } ;;
14451 if test "$cross_compiling" = yes; then
14452 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14453 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14454 { (exit 1); exit 1; }; }
14456 cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14458 #include "confdefs.h"
14459 $ac_includes_default
14460 struct { char filler; long long int field; } pgac_struct;
14461 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14462 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14464 #include <stdlib.h>
14465 #ifdef F77_DUMMY_MAIN
14466 # ifdef __cplusplus
14469 int F77_DUMMY_MAIN() { return 1; }
14475 FILE *f = fopen ("conftest.val", "w");
14478 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14480 long i = longval ();
14481 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14483 fprintf (f, "%ld\n", i);
14487 unsigned long i = ulongval ();
14488 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14490 fprintf (f, "%lu\n", i);
14492 exit (ferror (f) || fclose (f) != 0);
14498 rm -f conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500 (eval $ac_link) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14509 pgac_cv_alignof_long_long_int=`cat conftest.val`
14511 echo "$as_me: program exited with status $ac_status" >&5
14512 echo "$as_me: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14514 ( exit $ac_status )
14515 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14516 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14517 { (exit 1); exit 1; }; }
14519 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14524 pgac_cv_alignof_long_long_int=0
14527 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14528 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14529 cat >>confdefs.h <<_ACEOF
14530 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14535 echo "$as_me:$LINENO: checking for double" >&5
14536 echo $ECHO_N "checking for double... $ECHO_C" >&6
14537 if test "${ac_cv_type_double+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 cat >conftest.$ac_ext <<_ACEOF
14541 #line $LINENO "configure"
14542 #include "confdefs.h"
14543 $ac_includes_default
14544 #ifdef F77_DUMMY_MAIN
14545 # ifdef __cplusplus
14548 int F77_DUMMY_MAIN() { return 1; }
14555 if (sizeof (double))
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_cv_type_double=yes
14575 echo "$as_me: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14577 ac_cv_type_double=no
14579 rm -f conftest.$ac_objext conftest.$ac_ext
14581 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14582 echo "${ECHO_T}$ac_cv_type_double" >&6
14584 echo "$as_me:$LINENO: checking alignment of double" >&5
14585 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14586 if test "${pgac_cv_alignof_double+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 if test "$ac_cv_type_double" = yes; then
14590 if test "$cross_compiling" = yes; then
14591 # Depending upon the size, compute the lo and hi bounds.
14592 cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14594 #include "confdefs.h"
14595 $ac_includes_default
14596 struct { char filler; double field; } pgac_struct;
14597 #ifdef F77_DUMMY_MAIN
14598 # ifdef __cplusplus
14601 int F77_DUMMY_MAIN() { return 1; }
14606 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14627 cat >conftest.$ac_ext <<_ACEOF
14628 #line $LINENO "configure"
14629 #include "confdefs.h"
14630 $ac_includes_default
14631 struct { char filler; double field; } pgac_struct;
14632 #ifdef F77_DUMMY_MAIN
14633 # ifdef __cplusplus
14636 int F77_DUMMY_MAIN() { return 1; }
14641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -s conftest.$ac_objext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_hi=$ac_mid; break
14662 echo "$as_me: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 ac_lo=`expr $ac_mid + 1`
14665 if test $ac_lo -le $ac_mid; then
14669 ac_mid=`expr 2 '*' $ac_mid + 1`
14671 rm -f conftest.$ac_objext conftest.$ac_ext
14674 echo "$as_me: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 cat >conftest.$ac_ext <<_ACEOF
14677 #line $LINENO "configure"
14678 #include "confdefs.h"
14679 $ac_includes_default
14680 struct { char filler; double field; } pgac_struct;
14681 #ifdef F77_DUMMY_MAIN
14682 # ifdef __cplusplus
14685 int F77_DUMMY_MAIN() { return 1; }
14690 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14697 rm -f conftest.$ac_objext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14699 (eval $ac_compile) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -s conftest.$ac_objext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14711 cat >conftest.$ac_ext <<_ACEOF
14712 #line $LINENO "configure"
14713 #include "confdefs.h"
14714 $ac_includes_default
14715 struct { char filler; double field; } pgac_struct;
14716 #ifdef F77_DUMMY_MAIN
14717 # ifdef __cplusplus
14720 int F77_DUMMY_MAIN() { return 1; }
14725 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14732 rm -f conftest.$ac_objext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14734 (eval $ac_compile) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_lo=$ac_mid; break
14746 echo "$as_me: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 ac_hi=`expr '(' $ac_mid ')' - 1`
14749 if test $ac_mid -le $ac_hi; then
14753 ac_mid=`expr 2 '*' $ac_mid`
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14758 echo "$as_me: failed program was:" >&5
14759 cat conftest.$ac_ext >&5
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14764 rm -f conftest.$ac_objext conftest.$ac_ext
14765 # Binary search between lo and hi bounds.
14766 while test "x$ac_lo" != "x$ac_hi"; do
14767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 #include "confdefs.h"
14771 $ac_includes_default
14772 struct { char filler; double field; } pgac_struct;
14773 #ifdef F77_DUMMY_MAIN
14774 # ifdef __cplusplus
14777 int F77_DUMMY_MAIN() { return 1; }
14782 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 (eval $ac_compile) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14803 echo "$as_me: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 ac_lo=`expr '(' $ac_mid ')' + 1`
14807 rm -f conftest.$ac_objext conftest.$ac_ext
14810 ?*) pgac_cv_alignof_double=$ac_lo;;
14811 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14812 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14813 { (exit 1); exit 1; }; } ;;
14816 if test "$cross_compiling" = yes; then
14817 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14818 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14819 { (exit 1); exit 1; }; }
14821 cat >conftest.$ac_ext <<_ACEOF
14822 #line $LINENO "configure"
14823 #include "confdefs.h"
14824 $ac_includes_default
14825 struct { char filler; double field; } pgac_struct;
14826 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14827 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14829 #include <stdlib.h>
14830 #ifdef F77_DUMMY_MAIN
14831 # ifdef __cplusplus
14834 int F77_DUMMY_MAIN() { return 1; }
14840 FILE *f = fopen ("conftest.val", "w");
14843 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14845 long i = longval ();
14846 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14848 fprintf (f, "%ld\n", i);
14852 unsigned long i = ulongval ();
14853 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14855 fprintf (f, "%lu\n", i);
14857 exit (ferror (f) || fclose (f) != 0);
14863 rm -f conftest$ac_exeext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865 (eval $ac_link) 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 pgac_cv_alignof_double=`cat conftest.val`
14876 echo "$as_me: program exited with status $ac_status" >&5
14877 echo "$as_me: failed program was:" >&5
14878 cat conftest.$ac_ext >&5
14879 ( exit $ac_status )
14880 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14881 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14882 { (exit 1); exit 1; }; }
14884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14889 pgac_cv_alignof_double=0
14892 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14893 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14894 cat >>confdefs.h <<_ACEOF
14895 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14900 # Compute maximum alignment of any basic type.
14901 # We assume long's alignment is at least as strong as char, short, or int;
14902 # but we must check long long (if it exists) and double.
14904 MAX_ALIGNOF=$pgac_cv_alignof_long
14905 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14906 MAX_ALIGNOF=$pgac_cv_alignof_double
14908 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14909 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14912 cat >>confdefs.h <<_ACEOF
14913 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14918 # Some platforms predefine the types int8, int16, etc. Only check
14919 # a (hopefully) representative subset.
14920 echo "$as_me:$LINENO: checking for int8" >&5
14921 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14922 if test "${ac_cv_type_int8+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 cat >conftest.$ac_ext <<_ACEOF
14926 #line $LINENO "configure"
14927 #include "confdefs.h"
14929 #ifdef HAVE_SUPPORTDEFS_H
14930 #include <SupportDefs.h>
14933 #ifdef F77_DUMMY_MAIN
14934 # ifdef __cplusplus
14937 int F77_DUMMY_MAIN() { return 1; }
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -s conftest.$ac_objext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_type_int8=yes
14964 echo "$as_me: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14968 rm -f conftest.$ac_objext conftest.$ac_ext
14970 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14971 echo "${ECHO_T}$ac_cv_type_int8" >&6
14972 if test $ac_cv_type_int8 = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_INT8 1
14980 echo "$as_me:$LINENO: checking for uint8" >&5
14981 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14982 if test "${ac_cv_type_uint8+set}" = set; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 cat >conftest.$ac_ext <<_ACEOF
14986 #line $LINENO "configure"
14987 #include "confdefs.h"
14989 #ifdef HAVE_SUPPORTDEFS_H
14990 #include <SupportDefs.h>
14993 #ifdef F77_DUMMY_MAIN
14994 # ifdef __cplusplus
14997 int F77_DUMMY_MAIN() { return 1; }
15004 if (sizeof (uint8))
15010 rm -f conftest.$ac_objext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15012 (eval $ac_compile) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -s conftest.$ac_objext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_cv_type_uint8=yes
15024 echo "$as_me: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15026 ac_cv_type_uint8=no
15028 rm -f conftest.$ac_objext conftest.$ac_ext
15030 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15031 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15032 if test $ac_cv_type_uint8 = yes; then
15034 cat >>confdefs.h <<_ACEOF
15035 #define HAVE_UINT8 1
15040 echo "$as_me:$LINENO: checking for int64" >&5
15041 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15042 if test "${ac_cv_type_int64+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 cat >conftest.$ac_ext <<_ACEOF
15046 #line $LINENO "configure"
15047 #include "confdefs.h"
15049 #ifdef HAVE_SUPPORTDEFS_H
15050 #include <SupportDefs.h>
15053 #ifdef F77_DUMMY_MAIN
15054 # ifdef __cplusplus
15057 int F77_DUMMY_MAIN() { return 1; }
15064 if (sizeof (int64))
15070 rm -f conftest.$ac_objext
15071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15072 (eval $ac_compile) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -s conftest.$ac_objext'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15082 ac_cv_type_int64=yes
15084 echo "$as_me: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 ac_cv_type_int64=no
15088 rm -f conftest.$ac_objext conftest.$ac_ext
15090 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15091 echo "${ECHO_T}$ac_cv_type_int64" >&6
15092 if test $ac_cv_type_int64 = yes; then
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_INT64 1
15100 echo "$as_me:$LINENO: checking for uint64" >&5
15101 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15102 if test "${ac_cv_type_uint64+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 #include "confdefs.h"
15109 #ifdef HAVE_SUPPORTDEFS_H
15110 #include <SupportDefs.h>
15113 #ifdef F77_DUMMY_MAIN
15114 # ifdef __cplusplus
15117 int F77_DUMMY_MAIN() { return 1; }
15124 if (sizeof (uint64))
15130 rm -f conftest.$ac_objext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132 (eval $ac_compile) 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -s conftest.$ac_objext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142 ac_cv_type_uint64=yes
15144 echo "$as_me: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15146 ac_cv_type_uint64=no
15148 rm -f conftest.$ac_objext conftest.$ac_ext
15150 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15151 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15152 if test $ac_cv_type_uint64 = yes; then
15154 cat >>confdefs.h <<_ACEOF
15155 #define HAVE_UINT64 1
15162 # We also check for sig_atomic_t, which *should* be defined per ANSI
15163 # C, but is missing on some old platforms.
15164 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15165 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15166 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 cat >conftest.$ac_ext <<_ACEOF
15170 #line $LINENO "configure"
15171 #include "confdefs.h"
15172 #include <signal.h>
15174 #ifdef F77_DUMMY_MAIN
15175 # ifdef __cplusplus
15178 int F77_DUMMY_MAIN() { return 1; }
15183 if ((sig_atomic_t *) 0)
15185 if (sizeof (sig_atomic_t))
15191 rm -f conftest.$ac_objext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_type_sig_atomic_t=yes
15205 echo "$as_me: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 ac_cv_type_sig_atomic_t=no
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15211 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15212 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15213 if test $ac_cv_type_sig_atomic_t = yes; then
15215 cat >>confdefs.h <<_ACEOF
15216 #define HAVE_SIG_ATOMIC_T 1
15224 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15225 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15226 if test "${pgac_cv_func_posix_signals+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232 #include <signal.h>
15234 #ifdef F77_DUMMY_MAIN
15235 # ifdef __cplusplus
15238 int F77_DUMMY_MAIN() { return 1; }
15243 struct sigaction act, oact;
15244 sigemptyset(&act.sa_mask);
15245 act.sa_flags = SA_RESTART;
15246 sigaction(0, &act, &oact);
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 pgac_cv_func_posix_signals=yes
15265 echo "$as_me: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15267 pgac_cv_func_posix_signals=no
15269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15271 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15272 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15273 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_POSIX_SIGNALS
15280 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15282 if test $ac_cv_func_fseeko = yes; then
15283 # Check whether --enable-largefile or --disable-largefile was given.
15284 if test "${enable_largefile+set}" = set; then
15285 enableval="$enable_largefile"
15288 if test "$enable_largefile" != no; then
15290 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15291 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15292 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 ac_cv_sys_largefile_CC=no
15296 if test "$GCC" != yes; then
15299 # IRIX 6.2 and later do not support large files by default,
15300 # so use the C compiler's -n32 option if that helps.
15301 cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15303 #include "confdefs.h"
15304 #include <sys/types.h>
15305 /* Check that off_t can represent 2**63 - 1 correctly.
15306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15307 since some C++ compilers masquerading as C compilers
15308 incorrectly reject 9223372036854775807. */
15309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15311 && LARGE_OFF_T % 2147483647 == 1)
15313 #ifdef F77_DUMMY_MAIN
15314 # ifdef __cplusplus
15317 int F77_DUMMY_MAIN() { return 1; }
15327 rm -f conftest.$ac_objext
15328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15329 (eval $ac_compile) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -s conftest.$ac_objext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15341 echo "$as_me: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15344 rm -f conftest.$ac_objext
15346 rm -f conftest.$ac_objext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348 (eval $ac_compile) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -s conftest.$ac_objext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_cv_sys_largefile_CC=' -n32'; break
15360 echo "$as_me: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15363 rm -f conftest.$ac_objext
15367 rm -f conftest.$ac_ext
15370 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15371 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15372 if test "$ac_cv_sys_largefile_CC" != no; then
15373 CC=$CC$ac_cv_sys_largefile_CC
15376 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15377 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15378 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 ac_cv_sys_file_offset_bits=no
15383 cat >conftest.$ac_ext <<_ACEOF
15384 #line $LINENO "configure"
15385 #include "confdefs.h"
15386 #include <sys/types.h>
15387 /* Check that off_t can represent 2**63 - 1 correctly.
15388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15389 since some C++ compilers masquerading as C compilers
15390 incorrectly reject 9223372036854775807. */
15391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15393 && LARGE_OFF_T % 2147483647 == 1)
15395 #ifdef F77_DUMMY_MAIN
15396 # ifdef __cplusplus
15399 int F77_DUMMY_MAIN() { return 1; }
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15423 echo "$as_me: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15426 rm -f conftest.$ac_objext conftest.$ac_ext
15427 cat >conftest.$ac_ext <<_ACEOF
15428 #line $LINENO "configure"
15429 #include "confdefs.h"
15430 #define _FILE_OFFSET_BITS 64
15431 #include <sys/types.h>
15432 /* Check that off_t can represent 2**63 - 1 correctly.
15433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15434 since some C++ compilers masquerading as C compilers
15435 incorrectly reject 9223372036854775807. */
15436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15438 && LARGE_OFF_T % 2147483647 == 1)
15440 #ifdef F77_DUMMY_MAIN
15441 # ifdef __cplusplus
15444 int F77_DUMMY_MAIN() { return 1; }
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456 (eval $ac_compile) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_cv_sys_file_offset_bits=64; break
15468 echo "$as_me: failed program was:" >&5
15469 cat conftest.$ac_ext >&5
15471 rm -f conftest.$ac_objext conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15476 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
15477 if test "$ac_cv_sys_file_offset_bits" != no; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15485 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15486 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
15487 if test "${ac_cv_sys_large_files+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 ac_cv_sys_large_files=no
15492 cat >conftest.$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15494 #include "confdefs.h"
15495 #include <sys/types.h>
15496 /* Check that off_t can represent 2**63 - 1 correctly.
15497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15498 since some C++ compilers masquerading as C compilers
15499 incorrectly reject 9223372036854775807. */
15500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15502 && LARGE_OFF_T % 2147483647 == 1)
15504 #ifdef F77_DUMMY_MAIN
15505 # ifdef __cplusplus
15508 int F77_DUMMY_MAIN() { return 1; }
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15532 echo "$as_me: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15535 rm -f conftest.$ac_objext conftest.$ac_ext
15536 cat >conftest.$ac_ext <<_ACEOF
15537 #line $LINENO "configure"
15538 #include "confdefs.h"
15539 #define _LARGE_FILES 1
15540 #include <sys/types.h>
15541 /* Check that off_t can represent 2**63 - 1 correctly.
15542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15543 since some C++ compilers masquerading as C compilers
15544 incorrectly reject 9223372036854775807. */
15545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15547 && LARGE_OFF_T % 2147483647 == 1)
15549 #ifdef F77_DUMMY_MAIN
15550 # ifdef __cplusplus
15553 int F77_DUMMY_MAIN() { return 1; }
15563 rm -f conftest.$ac_objext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15565 (eval $ac_compile) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 ac_cv_sys_large_files=1; break
15577 echo "$as_me: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15584 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15585 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15586 if test "$ac_cv_sys_large_files" != no; then
15588 cat >>confdefs.h <<_ACEOF
15589 #define _LARGE_FILES $ac_cv_sys_large_files
15599 # Select semaphore implementation type.
15600 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15602 cat >>confdefs.h <<\_ACEOF
15603 #define USE_NAMED_POSIX_SEMAPHORES 1
15606 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15608 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15610 cat >>confdefs.h <<\_ACEOF
15611 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15614 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15617 cat >>confdefs.h <<\_ACEOF
15618 #define USE_SYSV_SEMAPHORES 1
15621 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15626 # Select shared-memory implementation type.
15628 cat >>confdefs.h <<\_ACEOF
15629 #define USE_SYSV_SHARED_MEMORY 1
15632 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15635 if test "$enable_nls" = yes ; then
15637 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15638 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15639 if test "${ac_cv_search_gettext+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 ac_func_search_save_LIBS=$LIBS
15643 ac_cv_search_gettext=no
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15646 #include "confdefs.h"
15648 /* Override any gcc2 internal prototype to avoid an error. */
15652 /* We use char because int might match the return type of a gcc2
15653 builtin and then its argument prototype would still apply. */
15655 #ifdef F77_DUMMY_MAIN
15656 # ifdef __cplusplus
15659 int F77_DUMMY_MAIN() { return 1; }
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -s conftest$ac_exeext'
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
15681 ac_cv_search_gettext="none required"
15683 echo "$as_me: failed program was:" >&5
15684 cat conftest.$ac_ext >&5
15686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15687 if test "$ac_cv_search_gettext" = no; then
15688 for ac_lib in intl; do
15689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15690 cat >conftest.$ac_ext <<_ACEOF
15691 #line $LINENO "configure"
15692 #include "confdefs.h"
15694 /* Override any gcc2 internal prototype to avoid an error. */
15698 /* We use char because int might match the return type of a gcc2
15699 builtin and then its argument prototype would still apply. */
15701 #ifdef F77_DUMMY_MAIN
15702 # ifdef __cplusplus
15705 int F77_DUMMY_MAIN() { return 1; }
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -s conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_search_gettext="-l$ac_lib"
15730 echo "$as_me: failed program was:" >&5
15731 cat conftest.$ac_ext >&5
15733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15736 LIBS=$ac_func_search_save_LIBS
15738 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15739 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15740 if test "$ac_cv_search_gettext" != no; then
15741 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15744 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15745 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15746 { (exit 1); exit 1; }; }
15749 if test "${ac_cv_header_libintl_h+set}" = set; then
15750 echo "$as_me:$LINENO: checking for libintl.h" >&5
15751 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15752 if test "${ac_cv_header_libintl_h+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15756 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15758 # Is the header compilable?
15759 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15760 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15763 #include "confdefs.h"
15764 $ac_includes_default
15765 #include <libintl.h>
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_header_compiler=yes
15781 echo "$as_me: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15783 ac_header_compiler=no
15785 rm -f conftest.$ac_objext conftest.$ac_ext
15786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15787 echo "${ECHO_T}$ac_header_compiler" >&6
15789 # Is the header present?
15790 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15791 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15792 cat >conftest.$ac_ext <<_ACEOF
15793 #line $LINENO "configure"
15794 #include "confdefs.h"
15795 #include <libintl.h>
15797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15800 egrep -v '^ *\+' conftest.er1 >conftest.err
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null; then
15805 if test -s conftest.err; then
15806 ac_cpp_err=$ac_c_preproc_warn_flag
15813 if test -z "$ac_cpp_err"; then
15814 ac_header_preproc=yes
15816 echo "$as_me: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15818 ac_header_preproc=no
15820 rm -f conftest.err conftest.$ac_ext
15821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6
15824 # So? What about this header?
15825 case $ac_header_compiler:$ac_header_preproc in
15827 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15830 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15832 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15833 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15835 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15837 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15839 echo "$as_me:$LINENO: checking for libintl.h" >&5
15840 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15841 if test "${ac_cv_header_libintl_h+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 ac_cv_header_libintl_h=$ac_header_preproc
15846 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15847 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15850 if test $ac_cv_header_libintl_h = yes; then
15853 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15854 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15855 { (exit 1); exit 1; }; }
15859 for ac_prog in msgfmt
15861 # Extract the first word of "$ac_prog", so it can be a program name with args.
15862 set dummy $ac_prog; ac_word=$2
15863 echo "$as_me:$LINENO: checking for $ac_word" >&5
15864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15865 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 if test -n "$MSGFMT"; then
15869 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15875 test -z "$as_dir" && as_dir=.
15876 for ac_exec_ext in '' $ac_executable_extensions; do
15877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15878 ac_cv_prog_MSGFMT="$ac_prog"
15879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15887 MSGFMT=$ac_cv_prog_MSGFMT
15888 if test -n "$MSGFMT"; then
15889 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15890 echo "${ECHO_T}$MSGFMT" >&6
15892 echo "$as_me:$LINENO: result: no" >&5
15893 echo "${ECHO_T}no" >&6
15896 test -n "$MSGFMT" && break
15899 if test -z "$MSGFMT"; then
15900 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15901 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15902 { (exit 1); exit 1; }; }
15904 for ac_prog in msgmerge
15906 # Extract the first word of "$ac_prog", so it can be a program name with args.
15907 set dummy $ac_prog; ac_word=$2
15908 echo "$as_me:$LINENO: checking for $ac_word" >&5
15909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15910 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 if test -n "$MSGMERGE"; then
15914 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917 for as_dir in $PATH
15920 test -z "$as_dir" && as_dir=.
15921 for ac_exec_ext in '' $ac_executable_extensions; do
15922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15923 ac_cv_prog_MSGMERGE="$ac_prog"
15924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15932 MSGMERGE=$ac_cv_prog_MSGMERGE
15933 if test -n "$MSGMERGE"; then
15934 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15935 echo "${ECHO_T}$MSGMERGE" >&6
15937 echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6
15941 test -n "$MSGMERGE" && break
15944 for ac_prog in xgettext
15946 # Extract the first word of "$ac_prog", so it can be a program name with args.
15947 set dummy $ac_prog; ac_word=$2
15948 echo "$as_me:$LINENO: checking for $ac_word" >&5
15949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15950 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 if test -n "$XGETTEXT"; then
15954 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957 for as_dir in $PATH
15960 test -z "$as_dir" && as_dir=.
15961 for ac_exec_ext in '' $ac_executable_extensions; do
15962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15963 ac_cv_prog_XGETTEXT="$ac_prog"
15964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15972 XGETTEXT=$ac_cv_prog_XGETTEXT
15973 if test -n "$XGETTEXT"; then
15974 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15975 echo "${ECHO_T}$XGETTEXT" >&6
15977 echo "$as_me:$LINENO: result: no" >&5
15978 echo "${ECHO_T}no" >&6
15981 test -n "$XGETTEXT" && break
15985 # Note: share/locale is always the default, independent of $datadir
15986 localedir='${prefix}/share/locale'
15987 if test x"$prefix" = x"NONE"; then
15988 exp_localedir="$ac_default_prefix/share/locale"
15990 exp_localedir="$prefix/share/locale"
15995 cat >>confdefs.h <<_ACEOF
15996 #define LOCALEDIR "$exp_localedir"
16002 if test "$with_CXX" = yes; then
16006 ac_cpp='$CXXCPP $CPPFLAGS'
16007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16011 if test "${ac_cv_header_string+set}" = set; then
16012 echo "$as_me:$LINENO: checking for string" >&5
16013 echo $ECHO_N "checking for string... $ECHO_C" >&6
16014 if test "${ac_cv_header_string+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16018 echo "${ECHO_T}$ac_cv_header_string" >&6
16020 # Is the header compilable?
16021 echo "$as_me:$LINENO: checking string usability" >&5
16022 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 #include "confdefs.h"
16026 $ac_includes_default
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031 (eval $ac_compile) 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -s conftest.$ac_objext'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_header_compiler=yes
16043 echo "$as_me: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16045 ac_header_compiler=no
16047 rm -f conftest.$ac_objext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6
16051 # Is the header present?
16052 echo "$as_me:$LINENO: checking string presence" >&5
16053 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16055 #line $LINENO "configure"
16056 #include "confdefs.h"
16059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16062 egrep -v '^ *\+' conftest.er1 >conftest.err
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } >/dev/null; then
16067 if test -s conftest.err; then
16068 ac_cpp_err=$ac_cxx_preproc_warn_flag
16075 if test -z "$ac_cpp_err"; then
16076 ac_header_preproc=yes
16078 echo "$as_me: failed program was:" >&5
16079 cat conftest.$ac_ext >&5
16080 ac_header_preproc=no
16082 rm -f conftest.err conftest.$ac_ext
16083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16084 echo "${ECHO_T}$ac_header_preproc" >&6
16086 # So? What about this header?
16087 case $ac_header_compiler:$ac_header_preproc in
16089 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16090 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16092 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16094 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16095 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16097 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16099 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16101 echo "$as_me:$LINENO: checking for string" >&5
16102 echo $ECHO_N "checking for string... $ECHO_C" >&6
16103 if test "${ac_cv_header_string+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16106 ac_cv_header_string=$ac_header_preproc
16108 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16109 echo "${ECHO_T}$ac_cv_header_string" >&6
16112 if test $ac_cv_header_string = yes; then
16114 cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_CXX_STRING_HEADER 1
16119 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16120 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16121 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 cat >conftest.$ac_ext <<_ACEOF
16125 #line $LINENO "configure"
16126 #include "confdefs.h"
16128 #include <stdlib.h>
16129 #include <string.h>
16131 #ifdef F77_DUMMY_MAIN
16132 # ifdef __cplusplus
16135 int F77_DUMMY_MAIN() { return 1; }
16140 string foo = "test"
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 pgac_cv_class_string_in_string_h=yes
16159 echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 pgac_cv_class_string_in_string_h=no
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16166 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16168 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16169 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16170 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16171 { (exit 1); exit 1; }; }
16178 ac_cpp='$CPP $CPPFLAGS'
16179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16184 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16185 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16186 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 ac_cpp='$CXXCPP $CPPFLAGS'
16192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16196 cat >conftest.$ac_ext <<_ACEOF
16197 #line $LINENO "configure"
16198 #include "confdefs.h"
16200 #include <stdlib.h>
16201 #ifdef HAVE_CXX_STRING_HEADER
16204 using namespace std;
16206 #ifdef F77_DUMMY_MAIN
16207 # ifdef __cplusplus
16210 int F77_DUMMY_MAIN() { return 1; }
16220 rm -f conftest.$ac_objext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222 (eval $ac_compile) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try='test -s conftest.$ac_objext'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 pgac_cv_cxx_namespace_std=yes
16234 echo "$as_me: failed program was:" >&5
16235 cat conftest.$ac_ext >&5
16236 pgac_cv_cxx_namespace_std=no
16238 rm -f conftest.$ac_objext conftest.$ac_ext
16240 ac_cpp='$CPP $CPPFLAGS'
16241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16246 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16247 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16249 if test $pgac_cv_cxx_namespace_std = yes ; then
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_NAMESPACE_STD 1
16259 # Check for Tcl configuration script tclConfig.sh
16260 if test "$with_tcl" = yes; then
16261 for ac_prog in tclsh tcl
16263 # Extract the first word of "$ac_prog", so it can be a program name with args.
16264 set dummy $ac_prog; ac_word=$2
16265 echo "$as_me:$LINENO: checking for $ac_word" >&5
16266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16267 if test "${ac_cv_path_TCLSH+set}" = set; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16276 for as_dir in $PATH
16279 test -z "$as_dir" && as_dir=.
16280 for ac_exec_ext in '' $ac_executable_extensions; do
16281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16282 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16292 TCLSH=$ac_cv_path_TCLSH
16294 if test -n "$TCLSH"; then
16295 echo "$as_me:$LINENO: result: $TCLSH" >&5
16296 echo "${ECHO_T}$TCLSH" >&6
16298 echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6
16302 test -n "$TCLSH" && break
16305 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16306 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16307 # Let user override test
16308 if test -z "$TCL_CONFIG_SH"; then
16309 pgac_test_dirs="$with_tclconfig"
16311 set X $pgac_test_dirs; shift
16312 if test $# -eq 0; then
16313 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16314 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16315 { (exit 1); exit 1; }; }
16316 set X `echo 'puts $auto_path' | $TCLSH`; shift
16320 if test -r "$pgac_dir/tclConfig.sh"; then
16321 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16327 if test -z "$TCL_CONFIG_SH"; then
16328 echo "$as_me:$LINENO: result: no" >&5
16329 echo "${ECHO_T}no" >&6
16330 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16331 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16332 { (exit 1); exit 1; }; }
16334 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16335 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16341 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16342 eval TCL_LIBS=\"$TCL_LIBS\"
16343 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16344 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16348 # Check for Tk configuration script tkConfig.sh
16349 if test "$with_tk" = yes; then
16350 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16351 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16352 # Let user override test
16353 if test -z "$TK_CONFIG_SH"; then
16354 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16356 set X $pgac_test_dirs; shift
16357 if test $# -eq 0; then
16358 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16359 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16360 { (exit 1); exit 1; }; }
16361 set X `echo 'puts $auto_path' | $TCLSH`; shift
16365 if test -r "$pgac_dir/tkConfig.sh"; then
16366 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16372 if test -z "$TK_CONFIG_SH"; then
16373 echo "$as_me:$LINENO: result: no" >&5
16374 echo "${ECHO_T}no" >&6
16375 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16376 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16377 { (exit 1); exit 1; }; }
16379 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16380 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16386 eval TK_LIBS=\"$TK_LIBS\"
16387 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16388 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16394 # Check for DocBook and tools
16396 for ac_prog in onsgmls nsgmls
16398 # Extract the first word of "$ac_prog", so it can be a program name with args.
16399 set dummy $ac_prog; ac_word=$2
16400 echo "$as_me:$LINENO: checking for $ac_word" >&5
16401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16402 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 if test -n "$NSGMLS"; then
16406 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_NSGMLS="$ac_prog"
16416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16424 NSGMLS=$ac_cv_prog_NSGMLS
16425 if test -n "$NSGMLS"; then
16426 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16427 echo "${ECHO_T}$NSGMLS" >&6
16429 echo "$as_me:$LINENO: result: no" >&5
16430 echo "${ECHO_T}no" >&6
16433 test -n "$NSGMLS" && break
16436 for ac_prog in openjade jade
16438 # Extract the first word of "$ac_prog", so it can be a program name with args.
16439 set dummy $ac_prog; ac_word=$2
16440 echo "$as_me:$LINENO: checking for $ac_word" >&5
16441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16442 if test "${ac_cv_prog_JADE+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 if test -n "$JADE"; then
16446 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16449 for as_dir in $PATH
16452 test -z "$as_dir" && as_dir=.
16453 for ac_exec_ext in '' $ac_executable_extensions; do
16454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16455 ac_cv_prog_JADE="$ac_prog"
16456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16464 JADE=$ac_cv_prog_JADE
16465 if test -n "$JADE"; then
16466 echo "$as_me:$LINENO: result: $JADE" >&5
16467 echo "${ECHO_T}$JADE" >&6
16469 echo "$as_me:$LINENO: result: no" >&5
16470 echo "${ECHO_T}no" >&6
16473 test -n "$JADE" && break
16477 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16478 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16479 if test "${pgac_cv_check_docbook+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 cat >conftest.sgml <<EOF
16483 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16485 <title>test</title>
16487 <title>random</title>
16489 <title>testsect</title>
16496 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16497 if test $? -eq 0; then
16498 pgac_cv_check_docbook=yes
16500 pgac_cv_check_docbook=no
16502 rm -f conftest.sgml
16504 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16505 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16507 have_docbook=$pgac_cv_check_docbook
16510 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16511 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16512 if test "${pgac_cv_path_stylesheets+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 if test -n "$DOCBOOKSTYLE"; then
16516 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16518 for pgac_prefix in /usr /usr/local /opt; do
16519 for pgac_infix in share lib; do
16520 for pgac_postfix in \
16521 sgml/stylesheets/nwalsh-modular \
16522 sgml/stylesheets/docbook \
16523 sgml/docbook/dsssl/modular \
16524 sgml/docbook/stylesheet/dsssl/modular \
16525 sgml/docbook/dsssl-stylesheets
16527 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16528 if test -r "$pgac_candidate/html/docbook.dsl" \
16529 && test -r "$pgac_candidate/print/docbook.dsl"
16531 pgac_cv_path_stylesheets=$pgac_candidate
16540 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16542 if test -n "$DOCBOOKSTYLE"; then
16543 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16544 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16546 echo "$as_me:$LINENO: result: no" >&5
16547 echo "${ECHO_T}no" >&6
16549 if test -n "$DOCBOOKSTYLE"; then
16550 for ac_prog in collateindex.pl
16552 # Extract the first word of "$ac_prog", so it can be a program name with args.
16553 set dummy $ac_prog; ac_word=$2
16554 echo "$as_me:$LINENO: checking for $ac_word" >&5
16555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16556 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 case $COLLATEINDEX in
16561 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565 for as_dir in $DOCBOOKSTYLE/bin $PATH
16568 test -z "$as_dir" && as_dir=.
16569 for ac_exec_ext in '' $ac_executable_extensions; do
16570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16571 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16581 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16583 if test -n "$COLLATEINDEX"; then
16584 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16585 echo "${ECHO_T}$COLLATEINDEX" >&6
16587 echo "$as_me:$LINENO: result: no" >&5
16588 echo "${ECHO_T}no" >&6
16591 test -n "$COLLATEINDEX" && break
16595 for ac_prog in collateindex.pl
16597 # Extract the first word of "$ac_prog", so it can be a program name with args.
16598 set dummy $ac_prog; ac_word=$2
16599 echo "$as_me:$LINENO: checking for $ac_word" >&5
16600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16601 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 case $COLLATEINDEX in
16606 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $PATH
16613 test -z "$as_dir" && as_dir=.
16614 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16626 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16628 if test -n "$COLLATEINDEX"; then
16629 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16630 echo "${ECHO_T}$COLLATEINDEX" >&6
16632 echo "$as_me:$LINENO: result: no" >&5
16633 echo "${ECHO_T}no" >&6
16636 test -n "$COLLATEINDEX" && break
16640 for ac_prog in sgmlspl
16642 # Extract the first word of "$ac_prog", so it can be a program name with args.
16643 set dummy $ac_prog; ac_word=$2
16644 echo "$as_me:$LINENO: checking for $ac_word" >&5
16645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16646 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 if test -n "$SGMLSPL"; then
16650 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16653 for as_dir in $PATH
16656 test -z "$as_dir" && as_dir=.
16657 for ac_exec_ext in '' $ac_executable_extensions; do
16658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16659 ac_cv_prog_SGMLSPL="$ac_prog"
16660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16668 SGMLSPL=$ac_cv_prog_SGMLSPL
16669 if test -n "$SGMLSPL"; then
16670 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16671 echo "${ECHO_T}$SGMLSPL" >&6
16673 echo "$as_me:$LINENO: result: no" >&5
16674 echo "${ECHO_T}no" >&6
16677 test -n "$SGMLSPL" && break
16682 # prepare build tree if outside source tree
16683 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16684 # Note 2: /bin/pwd might be better than shell's built-in at getting
16685 # a symlink-free name.
16686 if test "$no_create" != yes; then
16687 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16692 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16693 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16694 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16695 || { { echo "$as_me:$LINENO: error: failed" >&5
16696 echo "$as_me: error: failed" >&2;}
16697 { (exit 1); exit 1; }; }
16698 echo "$as_me:$LINENO: result: done" >&5
16699 echo "${ECHO_T}done" >&6
16704 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16707 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}"
16710 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16713 cat >confcache <<\_ACEOF
16714 # This file is a shell script that caches the results of configure
16715 # tests run on this system so they can be shared between configure
16716 # scripts and configure runs, see configure's option --config-cache.
16717 # It is not useful on other systems. If it contains results you don't
16718 # want to keep, you may remove or edit it.
16720 # config.status only pays attention to the cache file if you give it
16721 # the --recheck option to rerun configure.
16723 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16724 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16725 # following values.
16729 # The following way of writing the cache mishandles newlines in values,
16730 # but we know of no workaround that is simple, portable, and efficient.
16731 # So, don't put newlines in cache variables' values.
16732 # Ultrix sh set writes to stderr and can't be redirected directly,
16733 # and sets the high bit in the cache file unless we assign to the vars.
16736 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16738 # `set' does not quote correctly, so add quotes (double-quote
16739 # substitution turns \\\\ into \\, and sed turns \\ into \).
16742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16745 # `set' quotes correctly as required by POSIX, so do not add quotes.
16747 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16756 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16758 if cmp -s $cache_file confcache; then :; else
16759 if test -w $cache_file; then
16760 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16761 cat confcache >$cache_file
16763 echo "not updating unwritable cache $cache_file"
16768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16769 # Let make expand exec_prefix.
16770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16772 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16773 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16774 # trailing colons and then remove the whole line if VPATH becomes empty
16775 # (actually we leave an empty line to preserve line numbers).
16776 if test "x$srcdir" = x.; then
16777 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16778 s/:*\$(srcdir):*/:/;
16779 s/:*\${srcdir}:*/:/;
16781 s/^\([^=]*=[ ]*\):*/\1/;
16787 DEFS=-DHAVE_CONFIG_H
16790 : ${CONFIG_STATUS=./config.status}
16791 ac_clean_files_save=$ac_clean_files
16792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16795 cat >$CONFIG_STATUS <<_ACEOF
16797 # Generated by $as_me.
16798 # Run this file to recreate the current configuration.
16799 # Compiler output produced by configure, useful for debugging
16800 # configure, is in config.log if it exists.
16803 SHELL=\${CONFIG_SHELL-$SHELL}
16806 cat >>$CONFIG_STATUS <<\_ACEOF
16808 ## --------------------- ##
16809 ## M4sh Initialization. ##
16810 ## --------------------- ##
16812 # Be Bourne compatible
16813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16816 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16821 # Support unset when possible.
16822 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16828 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16829 { $as_unset LANG || test "${LANG+set}" != set; } ||
16830 { LANG=C; export LANG; }
16831 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16832 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16833 { LC_ALL=C; export LC_ALL; }
16834 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16835 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16836 { LC_TIME=C; export LC_TIME; }
16837 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16838 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16839 { LC_CTYPE=C; export LC_CTYPE; }
16840 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16841 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16842 { LANGUAGE=C; export LANGUAGE; }
16843 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16844 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16845 { LC_COLLATE=C; export LC_COLLATE; }
16846 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16847 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16848 { LC_NUMERIC=C; export LC_NUMERIC; }
16849 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16850 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16851 { LC_MESSAGES=C; export LC_MESSAGES; }
16854 # Name of the executable.
16855 as_me=`(basename "$0") 2>/dev/null ||
16856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16857 X"$0" : 'X\(//\)$' \| \
16858 X"$0" : 'X\(/\)$' \| \
16859 . : '\(.\)' 2>/dev/null ||
16861 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16862 /^X\/\(\/\/\)$/{ s//\1/; q; }
16863 /^X\/\(\/\).*/{ s//\1/; q; }
16866 # PATH needs CR, and LINENO needs CR and PATH.
16867 # Avoid depending upon Character Ranges.
16868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16871 as_cr_digits='0123456789'
16872 as_cr_alnum=$as_cr_Letters$as_cr_digits
16874 # The user is always right.
16875 if test "${PATH_SEPARATOR+set}" != set; then
16876 echo "#! /bin/sh" >conftest.sh
16877 echo "exit 0" >>conftest.sh
16878 chmod +x conftest.sh
16879 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16888 as_lineno_1=$LINENO
16889 as_lineno_2=$LINENO
16890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16891 test "x$as_lineno_1" != "x$as_lineno_2" &&
16892 test "x$as_lineno_3" = "x$as_lineno_2" || {
16893 # Find who we are. Look in the path if we contain no path at all
16896 *[\\/]* ) as_myself=$0 ;;
16897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898 for as_dir in $PATH
16901 test -z "$as_dir" && as_dir=.
16902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16907 # We did not find ourselves, most probably we were run as `sh COMMAND'
16908 # in which case we are not to be found in the path.
16909 if test "x$as_myself" = x; then
16912 if test ! -f "$as_myself"; then
16913 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16914 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16915 { (exit 1); exit 1; }; }
16917 case $CONFIG_SHELL in
16919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16923 test -z "$as_dir" && as_dir=.
16924 for as_base in sh bash ksh sh5; do
16927 if ("$as_dir/$as_base" -c '
16928 as_lineno_1=$LINENO
16929 as_lineno_2=$LINENO
16930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16931 test "x$as_lineno_1" != "x$as_lineno_2" &&
16932 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16933 CONFIG_SHELL=$as_dir/$as_base
16934 export CONFIG_SHELL
16935 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16943 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16944 # uniformly replaced by the line number. The first 'sed' inserts a
16945 # line-number line before each line; the second 'sed' does the real
16946 # work. The second script uses 'N' to pair each line-number line
16947 # with the numbered line, and appends trailing '-' during
16948 # substitution so that $LINENO is not a special case at line end.
16949 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16950 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16951 sed '=' <$as_myself |
16956 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16959 s,^['$as_cr_digits']*\n,,
16960 ' >$as_me.lineno &&
16961 chmod +x $as_me.lineno ||
16962 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16963 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16964 { (exit 1); exit 1; }; }
16966 # Don't try to exec as it changes $[0], causing all sort of problems
16967 # (the dirname of $[0] is not the place where we might find the
16968 # original and so on. Autoconf is especially sensible to this).
16970 # Exit status is that of the last command.
16975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16976 *c*,-n*) ECHO_N= ECHO_C='
16978 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16979 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16982 if expr a : '\(a\)' >/dev/null 2>&1; then
16988 rm -f conf$$ conf$$.exe conf$$.file
16990 if ln -s conf$$.file conf$$ 2>/dev/null; then
16991 # We could just check for DJGPP; but this test a) works b) is more generic
16992 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16993 if test -f conf$$.exe; then
16994 # Don't use ln at all; we don't have any links
16999 elif ln conf$$.file conf$$ 2>/dev/null; then
17004 rm -f conf$$ conf$$.exe conf$$.file
17006 as_executable_p="test -f"
17008 # Sed expression to map a string onto a valid CPP name.
17009 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17011 # Sed expression to map a string onto a valid variable name.
17012 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17016 # We need space, tab and new line, in precisely that order.
17022 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17026 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17027 # report actual input values of CONFIG_FILES etc. instead of their
17028 # values after options handling. Logging --version etc. is OK.
17032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17033 ## Running $as_me. ##
17038 This file was extended by PostgreSQL $as_me 7.3devel, which was
17039 generated by GNU Autoconf 2.53. Invocation command line was
17041 CONFIG_FILES = $CONFIG_FILES
17042 CONFIG_HEADERS = $CONFIG_HEADERS
17043 CONFIG_LINKS = $CONFIG_LINKS
17044 CONFIG_COMMANDS = $CONFIG_COMMANDS
17048 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17052 # Files that config.status was made for.
17053 if test -n "$ac_config_files"; then
17054 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17057 if test -n "$ac_config_headers"; then
17058 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17061 if test -n "$ac_config_links"; then
17062 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17065 if test -n "$ac_config_commands"; then
17066 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17069 cat >>$CONFIG_STATUS <<\_ACEOF
17072 \`$as_me' instantiates files from templates according to the
17073 current configuration.
17075 Usage: $0 [OPTIONS] [FILE]...
17077 -h, --help print this help, then exit
17078 -V, --version print version number, then exit
17079 -d, --debug don't remove temporary files
17080 --recheck update $as_me by reconfiguring in the same conditions
17081 --file=FILE[:TEMPLATE]
17082 instantiate the configuration file FILE
17083 --header=FILE[:TEMPLATE]
17084 instantiate the configuration header FILE
17086 Configuration files:
17089 Configuration headers:
17092 Configuration links:
17095 Report bugs to <bug-autoconf@gnu.org>."
17098 cat >>$CONFIG_STATUS <<_ACEOF
17100 PostgreSQL config.status 7.3devel
17101 configured by $0, generated by GNU Autoconf 2.53,
17102 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17104 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17105 Free Software Foundation, Inc.
17106 This config.status script is free software; the Free Software Foundation
17107 gives unlimited permission to copy, distribute and modify it."
17111 cat >>$CONFIG_STATUS <<\_ACEOF
17112 # If no file are specified by the user, then we need to provide default
17113 # value. By we need to know if files were specified by the user.
17119 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17120 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17122 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17126 *) # This is not an option, so the user has probably given explicit
17128 ac_need_defaults=false;;
17132 # Handling of the options.
17134 cat >>$CONFIG_STATUS <<_ACEOF
17135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17136 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17137 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17139 cat >>$CONFIG_STATUS <<\_ACEOF
17140 --version | --vers* | -V )
17141 echo "$ac_cs_version"; exit 0 ;;
17143 # Conflict between --help and --header
17144 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17145 Try \`$0 --help' for more information." >&5
17146 echo "$as_me: error: ambiguous option: $1
17147 Try \`$0 --help' for more information." >&2;}
17148 { (exit 1); exit 1; }; };;
17149 --help | --hel | -h )
17150 echo "$ac_cs_usage"; exit 0 ;;
17151 --debug | --d* | -d )
17153 --file | --fil | --fi | --f )
17155 CONFIG_FILES="$CONFIG_FILES $1"
17156 ac_need_defaults=false;;
17157 --header | --heade | --head | --hea )
17159 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17160 ac_need_defaults=false;;
17162 # This is an error.
17163 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17164 Try \`$0 --help' for more information." >&5
17165 echo "$as_me: error: unrecognized option: $1
17166 Try \`$0 --help' for more information." >&2;}
17167 { (exit 1); exit 1; }; } ;;
17169 *) ac_config_targets="$ac_config_targets $1" ;;
17181 cat >>$CONFIG_STATUS <<\_ACEOF
17182 for ac_config_target in $ac_config_targets
17184 case "$ac_config_target" in
17185 # Handling of arguments.
17186 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17187 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17188 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17189 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17190 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17191 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17192 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17193 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17194 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17195 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17196 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17198 { (exit 1); exit 1; }; };;
17202 # If the user did not use the arguments to specify the items to instantiate,
17203 # then the envvar interface is used. Set only those that are not.
17204 # We use the long form for the default assignment because of an extremely
17205 # bizarre bug on SunOS 4.1.3.
17206 if $ac_need_defaults; then
17207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17209 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17212 # Create a temporary directory, and hook for its removal unless debugging.
17215 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17216 trap '{ (exit 1); exit 1; }' 1 2 13 15
17219 # Create a (secure) tmp directory for tmp files.
17222 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17223 test -n "$tmp" && test -d "$tmp"
17226 tmp=$TMPDIR/cs$$-$RANDOM
17227 (umask 077 && mkdir $tmp)
17230 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17231 { (exit 1); exit 1; }
17236 cat >>$CONFIG_STATUS <<_ACEOF
17239 # CONFIG_FILES section.
17242 # No need to generate the scripts if there are no CONFIG_FILES.
17243 # This happens for instance when ./config.status config.h
17244 if test -n "\$CONFIG_FILES"; then
17245 # Protect against being on the right side of a sed subst in config.status.
17246 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17247 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17248 s,@SHELL@,$SHELL,;t t
17249 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17250 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17251 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17252 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17253 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17254 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17255 s,@exec_prefix@,$exec_prefix,;t t
17256 s,@prefix@,$prefix,;t t
17257 s,@program_transform_name@,$program_transform_name,;t t
17258 s,@bindir@,$bindir,;t t
17259 s,@sbindir@,$sbindir,;t t
17260 s,@libexecdir@,$libexecdir,;t t
17261 s,@datadir@,$datadir,;t t
17262 s,@sysconfdir@,$sysconfdir,;t t
17263 s,@sharedstatedir@,$sharedstatedir,;t t
17264 s,@localstatedir@,$localstatedir,;t t
17265 s,@libdir@,$libdir,;t t
17266 s,@includedir@,$includedir,;t t
17267 s,@oldincludedir@,$oldincludedir,;t t
17268 s,@infodir@,$infodir,;t t
17269 s,@mandir@,$mandir,;t t
17270 s,@build_alias@,$build_alias,;t t
17271 s,@host_alias@,$host_alias,;t t
17272 s,@target_alias@,$target_alias,;t t
17273 s,@DEFS@,$DEFS,;t t
17274 s,@ECHO_C@,$ECHO_C,;t t
17275 s,@ECHO_N@,$ECHO_N,;t t
17276 s,@ECHO_T@,$ECHO_T,;t t
17277 s,@LIBS@,$LIBS,;t t
17278 s,@docdir@,$docdir,;t t
17279 s,@configure_args@,$configure_args,;t t
17280 s,@build@,$build,;t t
17281 s,@build_cpu@,$build_cpu,;t t
17282 s,@build_vendor@,$build_vendor,;t t
17283 s,@build_os@,$build_os,;t t
17284 s,@host@,$host,;t t
17285 s,@host_cpu@,$host_cpu,;t t
17286 s,@host_vendor@,$host_vendor,;t t
17287 s,@host_os@,$host_os,;t t
17288 s,@PORTNAME@,$PORTNAME,;t t
17290 s,@MULTIBYTE@,$MULTIBYTE,;t t
17291 s,@enable_nls@,$enable_nls,;t t
17292 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17293 s,@default_port@,$default_port,;t t
17294 s,@enable_shared@,$enable_shared,;t t
17295 s,@enable_rpath@,$enable_rpath,;t t
17296 s,@enable_debug@,$enable_debug,;t t
17298 s,@CFLAGS@,$CFLAGS,;t t
17299 s,@LDFLAGS@,$LDFLAGS,;t t
17300 s,@CPPFLAGS@,$CPPFLAGS,;t t
17301 s,@ac_ct_CC@,$ac_ct_CC,;t t
17302 s,@EXEEXT@,$EXEEXT,;t t
17303 s,@OBJEXT@,$OBJEXT,;t t
17306 s,@autodepend@,$autodepend,;t t
17307 s,@INCLUDES@,$INCLUDES,;t t
17308 s,@with_tcl@,$with_tcl,;t t
17309 s,@with_tk@,$with_tk,;t t
17310 s,@with_perl@,$with_perl,;t t
17311 s,@with_python@,$with_python,;t t
17313 s,@with_java@,$with_java,;t t
17314 s,@with_krb4@,$with_krb4,;t t
17315 s,@with_krb5@,$with_krb5,;t t
17316 s,@krb_srvtab@,$krb_srvtab,;t t
17317 s,@with_pam@,$with_pam,;t t
17318 s,@with_openssl@,$with_openssl,;t t
17319 s,@enable_odbc@,$enable_odbc,;t t
17320 s,@with_unixodbc@,$with_unixodbc,;t t
17321 s,@with_iodbc@,$with_iodbc,;t t
17322 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17323 s,@ELF_SYS@,$ELF_SYS,;t t
17325 s,@CXXFLAGS@,$CXXFLAGS,;t t
17326 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17327 s,@CXXCPP@,$CXXCPP,;t t
17328 s,@with_CXX@,$with_CXX,;t t
17331 s,@FLEX@,$FLEX,;t t
17332 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17333 s,@LN_S@,$LN_S,;t t
17335 s,@with_gnu_ld@,$with_gnu_ld,;t t
17336 s,@ld_R_works@,$ld_R_works,;t t
17337 s,@RANLIB@,$RANLIB,;t t
17338 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17339 s,@LORDER@,$LORDER,;t t
17341 s,@STRIP@,$STRIP,;t t
17342 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17343 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17344 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17345 s,@YACC@,$YACC,;t t
17346 s,@YFLAGS@,$YFLAGS,;t t
17347 s,@WISH@,$WISH,;t t
17348 s,@PERL@,$PERL,;t t
17349 s,@perl_installsitearch@,$perl_installsitearch,;t t
17350 s,@perl_installman3dir@,$perl_installman3dir,;t t
17351 s,@perl_archlibexp@,$perl_archlibexp,;t t
17352 s,@perl_privlibexp@,$perl_privlibexp,;t t
17353 s,@perl_useshrplib@,$perl_useshrplib,;t t
17354 s,@perl_man3ext@,$perl_man3ext,;t t
17355 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17356 s,@PYTHON@,$PYTHON,;t t
17357 s,@python_version@,$python_version,;t t
17358 s,@python_prefix@,$python_prefix,;t t
17359 s,@python_execprefix@,$python_execprefix,;t t
17360 s,@python_configdir@,$python_configdir,;t t
17361 s,@python_moduledir@,$python_moduledir,;t t
17362 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17363 s,@python_includespec@,$python_includespec,;t t
17364 s,@python_libspec@,$python_libspec,;t t
17365 s,@LIBOBJS@,$LIBOBJS,;t t
17366 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17367 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17368 s,@MSGFMT@,$MSGFMT,;t t
17369 s,@MSGMERGE@,$MSGMERGE,;t t
17370 s,@XGETTEXT@,$XGETTEXT,;t t
17371 s,@localedir@,$localedir,;t t
17372 s,@TCLSH@,$TCLSH,;t t
17373 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17374 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17375 s,@TCL_LIBS@,$TCL_LIBS,;t t
17376 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17377 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17378 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17379 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17380 s,@TK_LIBS@,$TK_LIBS,;t t
17381 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17382 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17383 s,@NSGMLS@,$NSGMLS,;t t
17384 s,@JADE@,$JADE,;t t
17385 s,@have_docbook@,$have_docbook,;t t
17386 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17387 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17388 s,@SGMLSPL@,$SGMLSPL,;t t
17389 s,@vpath_build@,$vpath_build,;t t
17394 cat >>$CONFIG_STATUS <<\_ACEOF
17395 # Split the substitutions into bite-sized pieces for seds with
17396 # small command number limits, like on Digital OSF/1 and HP-UX.
17397 ac_max_sed_lines=48
17398 ac_sed_frag=1 # Number of current file.
17399 ac_beg=1 # First line for current file.
17400 ac_end=$ac_max_sed_lines # Line after last line for current file.
17403 while $ac_more_lines; do
17404 if test $ac_beg -gt 1; then
17405 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17407 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17409 if test ! -s $tmp/subs.frag; then
17410 ac_more_lines=false
17412 # The purpose of the label and of the branching condition is to
17413 # speed up the sed processing (if there are no `@' at all, there
17414 # is no need to browse any of the substitutions).
17415 # These are the two extra sed commands mentioned above.
17417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17418 if test -z "$ac_sed_cmds"; then
17419 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17421 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17423 ac_sed_frag=`expr $ac_sed_frag + 1`
17425 ac_end=`expr $ac_end + $ac_max_sed_lines`
17428 if test -z "$ac_sed_cmds"; then
17431 fi # test -n "$CONFIG_FILES"
17434 cat >>$CONFIG_STATUS <<\_ACEOF
17435 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17438 - | *:- | *:-:* ) # input from stdin
17440 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17442 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17444 * ) ac_file_in=$ac_file.in ;;
17447 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17448 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17450 X"$ac_file" : 'X\(//\)[^/]' \| \
17451 X"$ac_file" : 'X\(//\)$' \| \
17452 X"$ac_file" : 'X\(/\)' \| \
17453 . : '\(.\)' 2>/dev/null ||
17455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17457 /^X\(\/\/\)$/{ s//\1/; q; }
17458 /^X\(\/\).*/{ s//\1/; q; }
17460 { case "$ac_dir" in
17461 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17465 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17466 case $as_mkdir_dir in
17467 # Skip DOS drivespec
17468 ?:) as_incr_dir=$as_mkdir_dir ;;
17470 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17471 test -d "$as_incr_dir" ||
17472 mkdir "$as_incr_dir" ||
17473 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17474 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17475 { (exit 1); exit 1; }; }
17482 if test "$ac_dir" != .; then
17483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17484 # A "../" for each directory in $ac_dir_suffix.
17485 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17487 ac_dir_suffix= ac_top_builddir=
17491 .) # No --srcdir option. We are building in place.
17493 if test -z "$ac_top_builddir"; then
17496 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17498 [\\/]* | ?:[\\/]* ) # Absolute path.
17499 ac_srcdir=$srcdir$ac_dir_suffix;
17500 ac_top_srcdir=$srcdir ;;
17501 *) # Relative path.
17502 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17503 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17505 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17507 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17508 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17509 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17510 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17514 if test x"$ac_file" != x-; then
17515 { echo "$as_me:$LINENO: creating $ac_file" >&5
17516 echo "$as_me: creating $ac_file" >&6;}
17519 # Let's still pretend it is `configure' which instantiates (i.e., don't
17520 # use $as_me), people would be surprised to read:
17521 # /* config.h. Generated by config.status. */
17522 if test x"$ac_file" = x-; then
17525 configure_input="$ac_file. "
17527 configure_input=$configure_input"Generated from `echo $ac_file_in |
17528 sed 's,.*/,,'` by configure."
17530 # First look for the input files in the build tree, otherwise in the
17532 ac_file_inputs=`IFS=:
17533 for f in $ac_file_in; do
17535 -) echo $tmp/stdin ;;
17537 # Absolute (can't be DOS-style, as IFS=:)
17538 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17539 echo "$as_me: error: cannot find input file: $f" >&2;}
17540 { (exit 1); exit 1; }; }
17543 if test -f "$f"; then
17546 elif test -f "$srcdir/$f"; then
17551 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17552 echo "$as_me: error: cannot find input file: $f" >&2;}
17553 { (exit 1); exit 1; }; }
17556 done` || { (exit 1); exit 1; }
17558 cat >>$CONFIG_STATUS <<_ACEOF
17562 cat >>$CONFIG_STATUS <<\_ACEOF
17564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17565 s,@configure_input@,$configure_input,;t t
17566 s,@srcdir@,$ac_srcdir,;t t
17567 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17568 s,@top_srcdir@,$ac_top_srcdir,;t t
17569 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17570 s,@builddir@,$ac_builddir,;t t
17571 s,@abs_builddir@,$ac_abs_builddir,;t t
17572 s,@top_builddir@,$ac_top_builddir,;t t
17573 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17576 if test x"$ac_file" != x-; then
17577 mv $tmp/out $ac_file
17585 cat >>$CONFIG_STATUS <<\_ACEOF
17588 # CONFIG_HEADER section.
17591 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17592 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17594 # ac_d sets the value in "#define NAME VALUE" lines.
17595 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17596 ac_dB='[ ].*$,\1#\2'
17599 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17601 ac_uB='$,\1#\2define\3'
17605 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17608 - | *:- | *:-:* ) # input from stdin
17610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17614 * ) ac_file_in=$ac_file.in ;;
17617 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17618 echo "$as_me: creating $ac_file" >&6;}
17620 # First look for the input files in the build tree, otherwise in the
17622 ac_file_inputs=`IFS=:
17623 for f in $ac_file_in; do
17625 -) echo $tmp/stdin ;;
17627 # Absolute (can't be DOS-style, as IFS=:)
17628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629 echo "$as_me: error: cannot find input file: $f" >&2;}
17630 { (exit 1); exit 1; }; }
17633 if test -f "$f"; then
17636 elif test -f "$srcdir/$f"; then
17641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642 echo "$as_me: error: cannot find input file: $f" >&2;}
17643 { (exit 1); exit 1; }; }
17646 done` || { (exit 1); exit 1; }
17647 # Remove the trailing spaces.
17648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17653 # `conftest.undefs', that substitutes the proper values into
17654 # config.h.in to produce config.h. The first handles `#define'
17655 # templates, and the second `#undef' templates.
17656 # And first: Protect against being on the right side of a sed subst in
17657 # config.status. Protect against being in an unquoted here document
17658 # in config.status.
17659 rm -f conftest.defines conftest.undefs
17660 # Using a here document instead of a string reduces the quoting nightmare.
17661 # Putting comments in sed scripts is not portable.
17663 # `end' is used to avoid that the second main sed command (meant for
17664 # 0-ary CPP macros) applies to n-ary macro definitions.
17665 # See the Autoconf documentation for `clear'.
17666 cat >confdef2sed.sed <<\_ACEOF
17671 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17673 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17676 # If some macros were called several times there might be several times
17677 # the same #defines, which is useless. Nevertheless, we may not want to
17678 # sort them, since we want the *last* AC-DEFINE to be honored.
17679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681 rm -f confdef2sed.sed
17683 # This sed command replaces #undef with comments. This is necessary, for
17684 # example, in the case of _POSIX_SOURCE, which is predefined and required
17685 # on some systems where configure will not decide to define it.
17686 cat >>conftest.undefs <<\_ACEOF
17687 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17690 # Break up conftest.defines because some shells have a limit on the size
17691 # of here documents, and old seds have small limits too (100 cmds).
17692 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695 echo ' :' >>$CONFIG_STATUS
17696 rm -f conftest.tail
17697 while grep . conftest.defines >/dev/null
17699 # Write a limited-size here document to $tmp/defines.sed.
17700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#define' lines.
17702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17710 mv $tmp/out $tmp/in
17712 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713 rm -f conftest.defines
17714 mv conftest.tail conftest.defines
17716 rm -f conftest.defines
17717 echo ' fi # egrep' >>$CONFIG_STATUS
17718 echo >>$CONFIG_STATUS
17720 # Break up conftest.undefs because some shells have a limit on the size
17721 # of here documents, and old seds have small limits too (100 cmds).
17722 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17723 rm -f conftest.tail
17724 while grep . conftest.undefs >/dev/null
17726 # Write a limited-size here document to $tmp/undefs.sed.
17727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728 # Speed up: don't consider the non `#undef'
17729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17730 # Work around the forget-to-reset-the-flag bug.
17731 echo 't clr' >>$CONFIG_STATUS
17732 echo ': clr' >>$CONFIG_STATUS
17733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17737 mv $tmp/out $tmp/in
17739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740 rm -f conftest.undefs
17741 mv conftest.tail conftest.undefs
17743 rm -f conftest.undefs
17745 cat >>$CONFIG_STATUS <<\_ACEOF
17746 # Let's still pretend it is `configure' which instantiates (i.e., don't
17747 # use $as_me), people would be surprised to read:
17748 # /* config.h. Generated by config.status. */
17749 if test x"$ac_file" = x-; then
17750 echo "/* Generated by configure. */" >$tmp/config.h
17752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17754 cat $tmp/in >>$tmp/config.h
17756 if test x"$ac_file" != x-; then
17757 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759 echo "$as_me: $ac_file is unchanged" >&6;}
17761 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763 X"$ac_file" : 'X\(//\)[^/]' \| \
17764 X"$ac_file" : 'X\(//\)$' \| \
17765 X"$ac_file" : 'X\(/\)' \| \
17766 . : '\(.\)' 2>/dev/null ||
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770 /^X\(\/\/\)$/{ s//\1/; q; }
17771 /^X\(\/\).*/{ s//\1/; q; }
17773 { case "$ac_dir" in
17774 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17778 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17779 case $as_mkdir_dir in
17780 # Skip DOS drivespec
17781 ?:) as_incr_dir=$as_mkdir_dir ;;
17783 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17784 test -d "$as_incr_dir" ||
17785 mkdir "$as_incr_dir" ||
17786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17787 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788 { (exit 1); exit 1; }; }
17794 mv $tmp/config.h $ac_file
17798 rm -f $tmp/config.h
17800 # Run the commands associated with the file.
17802 src/include/pg_config.h )
17803 # Update timestamp for pg_config.h (see Makefile.global)
17804 echo >src/include/stamp-h
17809 cat >>$CONFIG_STATUS <<\_ACEOF
17812 # CONFIG_LINKS section.
17815 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17819 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17820 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17822 if test ! -r $srcdir/$ac_source; then
17823 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17824 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17825 { (exit 1); exit 1; }; }
17829 # Make relative symlinks.
17830 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17831 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17832 X"$ac_dest" : 'X\(//\)[^/]' \| \
17833 X"$ac_dest" : 'X\(//\)$' \| \
17834 X"$ac_dest" : 'X\(/\)' \| \
17835 . : '\(.\)' 2>/dev/null ||
17837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17839 /^X\(\/\/\)$/{ s//\1/; q; }
17840 /^X\(\/\).*/{ s//\1/; q; }
17842 { case "$ac_dest_dir" in
17843 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17846 as_dummy="$ac_dest_dir"
17847 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17848 case $as_mkdir_dir in
17849 # Skip DOS drivespec
17850 ?:) as_incr_dir=$as_mkdir_dir ;;
17852 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17853 test -d "$as_incr_dir" ||
17854 mkdir "$as_incr_dir" ||
17855 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17856 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17857 { (exit 1); exit 1; }; }
17864 if test "$ac_dest_dir" != .; then
17865 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17866 # A "../" for each directory in $ac_dir_suffix.
17867 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17869 ac_dir_suffix= ac_top_builddir=
17873 .) # No --srcdir option. We are building in place.
17875 if test -z "$ac_top_builddir"; then
17878 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17880 [\\/]* | ?:[\\/]* ) # Absolute path.
17881 ac_srcdir=$srcdir$ac_dir_suffix;
17882 ac_top_srcdir=$srcdir ;;
17883 *) # Relative path.
17884 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17885 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17887 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17889 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17890 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17891 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17892 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17896 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17897 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17900 # Make a symlink if possible; otherwise try a hard link.
17901 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17902 ln $srcdir/$ac_source $ac_dest ||
17903 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17904 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17905 { (exit 1); exit 1; }; }
17909 cat >>$CONFIG_STATUS <<\_ACEOF
17911 { (exit 0); exit 0; }
17913 chmod +x $CONFIG_STATUS
17914 ac_clean_files=$ac_clean_files_save
17917 # configure is writing to config.log, and then calls config.status.
17918 # config.status does its own redirection, appending to config.log.
17919 # Unfortunately, on DOS this fails, as config.log is still kept open
17920 # by configure, so config.status won't be able to write to it; its
17921 # output is simply discarded. So we exec the FD to /dev/null,
17922 # effectively closing config.log, so it can be properly (re)opened and
17923 # appended to by config.status. When coming back to configure, we
17924 # need to make the FD available again.
17925 if test "$no_create" != yes; then
17928 $SHELL $CONFIG_STATUS || ac_cs_success=false
17930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17931 # would make configure fail if this is the last instruction.
17932 $ac_cs_success || { (exit 1); exit 1; }