2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
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.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable single-byte recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-tcl build Tcl and Tk interfaces
859 --without-tk do not build Tk interfaces if Tcl is enabled
860 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
861 --with-tkconfig=DIR tkConfig.sh is in DIR
862 --with-perl build Perl modules (PL/Perl)
863 --with-python build Python interface module
864 --with-java build JDBC interface and Java tools
865 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
866 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
867 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
868 --with-pam build with PAM support
869 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
870 --without-readline do not use Readline
871 --without-zlib do not use Zlib
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
883 location of DocBook stylesheets
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
888 Report bugs to <pgsql-bugs@postgresql.org>.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 ac_dir_suffix= ac_top_builddir=
908 .) # No --srcdir option. We are building in place.
910 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
925 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
926 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
927 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930 # Check for guested configure; otherwise get Cygnus style configure.
931 if test -f $ac_srcdir/configure.gnu; then
933 $SHELL $ac_srcdir/configure.gnu --help=recursive
934 elif test -f $ac_srcdir/configure; then
936 $SHELL $ac_srcdir/configure --help=recursive
937 elif test -f $ac_srcdir/configure.ac ||
938 test -f $ac_srcdir/configure.in; then
942 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
951 PostgreSQL configure 7.4devel
952 generated by GNU Autoconf 2.53
954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
959 Copyright 2002 PostgreSQL Global Development Group
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by PostgreSQL $as_me 7.4devel, which was
969 generated by GNU Autoconf 2.53. Invocation command line was
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n ) continue ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035 case " $ac_configure_args " in
1036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1037 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log. We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close' the trap.
1048 trap 'exit_status=$?
1049 # Save into config.log some information that might help in debugging.
1053 ## ---------------- ##
1054 ## Cache variables. ##
1055 ## ---------------- ##
1058 # The following way of writing the cache mishandles newlines in values,
1061 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1069 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074 if test -s confdefs.h; then
1081 sed "/^$/d" confdefs.h
1084 test "$ac_signal" != 0 &&
1085 echo "$as_me: caught signal $ac_signal"
1086 echo "$as_me: exit $exit_status"
1088 rm -f core core.* *.core &&
1089 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092 for ac_signal in 1 2 13 15; do
1093 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1098 rm -rf conftest* confdefs.h
1099 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 # Predefined preprocessor variables.
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_NAME "$PACKAGE_NAME"
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_STRING "$PACKAGE_STRING"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1129 # Let the site file select an alternate cache file if it wants to.
1130 # Prefer explicitly selected file to automatically selected ones.
1131 if test -z "$CONFIG_SITE"; then
1132 if test "x$prefix" != xNONE; then
1133 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138 for ac_site_file in $CONFIG_SITE; do
1139 if test -r "$ac_site_file"; then
1140 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1141 echo "$as_me: loading site script $ac_site_file" >&6;}
1142 sed 's/^/| /' "$ac_site_file" >&5
1147 if test -r "$cache_file"; then
1148 # Some versions of bash will fail to source /dev/null (special
1149 # files actually), so we avoid doing that.
1150 if test -f "$cache_file"; then
1151 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1152 echo "$as_me: loading cache $cache_file" >&6;}
1154 [\\/]* | ?:[\\/]* ) . $cache_file;;
1155 *) . ./$cache_file;;
1159 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1160 echo "$as_me: creating cache $cache_file" >&6;}
1164 # Check that the precious variables saved in the cache have kept the same
1166 ac_cache_corrupted=false
1167 for ac_var in `(set) 2>&1 |
1168 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1170 eval ac_new_set=\$ac_env_${ac_var}_set
1171 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1172 eval ac_new_val="\$ac_env_${ac_var}_value"
1173 case $ac_old_set,$ac_new_set in
1175 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1176 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1177 ac_cache_corrupted=: ;;
1179 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1181 ac_cache_corrupted=: ;;
1184 if test "x$ac_old_val" != "x$ac_new_val"; then
1185 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1186 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1187 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1188 echo "$as_me: former value: $ac_old_val" >&2;}
1189 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1190 echo "$as_me: current value: $ac_new_val" >&2;}
1191 ac_cache_corrupted=:
1194 # Pass precious variables to config.status.
1195 if test "$ac_new_set" = set; then
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1199 *) ac_arg=$ac_var=$ac_new_val ;;
1201 case " $ac_configure_args " in
1202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1203 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1207 if $ac_cache_corrupted; then
1208 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1209 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1210 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1211 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1212 { (exit 1); exit 1; }; }
1216 ac_cpp='$CPP $CPPFLAGS'
1217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254 for ac_dir in config $srcdir/config; do
1255 if test -f $ac_dir/install-sh; then
1257 ac_install_sh="$ac_aux_dir/install-sh -c"
1259 elif test -f $ac_dir/install.sh; then
1261 ac_install_sh="$ac_aux_dir/install.sh -c"
1263 elif test -f $ac_dir/shtool; then
1265 ac_install_sh="$ac_aux_dir/shtool install -c"
1269 if test -z "$ac_aux_dir"; then
1270 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1271 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1272 { (exit 1); exit 1; }; }
1274 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1275 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1276 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1279 configure_args=$ac_configure_args
1283 cat >>confdefs.h <<_ACEOF
1284 #define PG_VERSION "$PACKAGE_VERSION"
1288 # Make sure we can run config.sub.
1289 $ac_config_sub sun4 >/dev/null 2>&1 ||
1290 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1291 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1292 { (exit 1); exit 1; }; }
1294 echo "$as_me:$LINENO: checking build system type" >&5
1295 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1296 if test "${ac_cv_build+set}" = set; then
1297 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 ac_cv_build_alias=$build_alias
1300 test -z "$ac_cv_build_alias" &&
1301 ac_cv_build_alias=`$ac_config_guess`
1302 test -z "$ac_cv_build_alias" &&
1303 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1304 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1305 { (exit 1); exit 1; }; }
1306 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1307 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1313 echo "${ECHO_T}$ac_cv_build" >&6
1315 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo "$as_me:$LINENO: checking host system type" >&5
1321 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1322 if test "${ac_cv_host+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1325 ac_cv_host_alias=$host_alias
1326 test -z "$ac_cv_host_alias" &&
1327 ac_cv_host_alias=$ac_cv_build_alias
1328 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1329 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1330 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1331 { (exit 1); exit 1; }; }
1334 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1335 echo "${ECHO_T}$ac_cv_host" >&6
1337 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$as_me:$LINENO: checking which template to use" >&5
1345 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1350 # Check whether --with-template or --without-template was given.
1351 if test "${with_template+set}" = set; then
1352 withval="$with_template"
1356 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1357 echo "$as_me: error: argument required for --with-template option" >&2;}
1358 { (exit 1); exit 1; }; }
1361 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1362 echo "$as_me: error: argument required for --with-template option" >&2;}
1363 { (exit 1); exit 1; }; }
1368 list) echo; ls "$srcdir/src/template"; exit;;
1369 *) if test -f "$srcdir/src/template/$with_template" ; then
1372 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1373 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1374 { (exit 1); exit 1; }; }
1383 # --with-template not given
1386 aix*) template=aix ;;
1387 beos*) template=beos ;;
1388 bsdi*) template=bsdi ;;
1389 cygwin*) template=cygwin ;;
1390 darwin*) template=darwin ;;
1391 dgux*) template=dgux ;;
1392 freebsd*) template=freebsd ;;
1393 hpux*) template=hpux ;;
1394 irix*) template=irix5 ;;
1395 linux*) template=linux ;;
1396 mingw*) template=win ;;
1397 netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399 openbsd*) template=openbsd ;;
1400 osf*) template=osf ;;
1401 qnx*) template=qnx4 ;;
1402 sco*) template=sco ;;
1403 solaris*) template=solaris ;;
1404 sunos*) template=sunos4 ;;
1406 case $host_vendor in
1407 univel) template=univel ;;
1409 sysv4*) template=svr4 ;;
1410 sysv5*) template=unixware ;;
1411 ultrix*) template=ultrix4 ;;
1414 if test x"$template" = x"" ; then
1415 { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this. Include the above 'checking host system type...'
1424 *******************************************************************
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this. Include the above 'checking host system type...'
1435 *******************************************************************
1437 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1450 # Pick right test-and-set (TAS) code. Most platforms have inline
1451 # assembler code in src/include/storage/s_lock.h, so we just use
1452 # a dummy file here.
1454 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1455 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1456 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1457 *) need_tas=no; tas_file=dummy.s ;;
1459 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1462 if test "$need_tas" = yes ; then
1470 ## Command line options
1475 # Add non-standard directories to the include path
1480 # Check whether --with-includes or --without-includes was given.
1481 if test "${with_includes+set}" = set; then
1482 withval="$with_includes"
1486 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1487 echo "$as_me: error: argument required for --with-includes option" >&2;}
1488 { (exit 1); exit 1; }; }
1491 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1492 echo "$as_me: error: argument required for --with-includes option" >&2;}
1493 { (exit 1); exit 1; }; }
1505 # Add non-standard directories to the library search path
1510 # Check whether --with-libraries or --without-libraries was given.
1511 if test "${with_libraries+set}" = set; then
1512 withval="$with_libraries"
1516 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1517 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1518 { (exit 1); exit 1; }; }
1521 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1522 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1523 { (exit 1); exit 1; }; }
1526 LIBRARY_DIRS=$withval
1536 # Check whether --with-libs or --without-libs was given.
1537 if test "${with_libs+set}" = set; then
1538 withval="$with_libs"
1542 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1543 echo "$as_me: error: argument required for --with-libs option" >&2;}
1544 { (exit 1); exit 1; }; }
1547 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1548 echo "$as_me: error: argument required for --with-libs option" >&2;}
1549 { (exit 1); exit 1; }; }
1552 LIBRARY_DIRS=$withval
1561 # 64-bit integer date/time storage (--enable-integer-datetimes)
1563 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1564 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1567 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1568 if test "${enable_integer_datetimes+set}" = set; then
1569 enableval="$enable_integer_datetimes"
1574 cat >>confdefs.h <<\_ACEOF
1575 #define USE_INTEGER_DATETIMES 1
1583 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1584 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1585 { (exit 1); exit 1; }; }
1590 enable_integer_datetimes=no
1594 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1595 echo "${ECHO_T}$enable_integer_datetimes" >&6
1598 # Character set recode (--enable-recode)
1600 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1601 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1604 # Check whether --enable-recode or --disable-recode was given.
1605 if test "${enable_recode+set}" = set; then
1606 enableval="$enable_recode"
1611 cat >>confdefs.h <<\_ACEOF
1612 #define CYR_RECODE 1
1620 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1621 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1622 { (exit 1); exit 1; }; }
1631 echo "$as_me:$LINENO: result: $enable_recode" >&5
1632 echo "${ECHO_T}$enable_recode" >&6
1638 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1639 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1642 # Check whether --enable-nls or --disable-nls was given.
1643 if test "${enable_nls+set}" = set; then
1644 enableval="$enable_nls"
1655 WANTED_LANGUAGES=$enableval
1664 if test "$enable_nls" = yes; then
1666 cat >>confdefs.h <<\_ACEOF
1667 #define ENABLE_NLS 1
1672 echo "$as_me:$LINENO: result: $enable_nls" >&5
1673 echo "${ECHO_T}$enable_nls" >&6
1678 # Default port number (--with-pgport), default 5432
1680 echo "$as_me:$LINENO: checking for default port number" >&5
1681 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1685 # Check whether --with-pgport or --without-pgport was given.
1686 if test "${with_pgport+set}" = set; then
1687 withval="$with_pgport"
1691 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1692 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1693 { (exit 1); exit 1; }; }
1696 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1697 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1698 { (exit 1); exit 1; }; }
1701 default_port=$withval
1709 echo "$as_me:$LINENO: result: $default_port" >&5
1710 echo "${ECHO_T}$default_port" >&6
1711 # Need both of these because some places want an integer and some a string
1713 cat >>confdefs.h <<_ACEOF
1714 #define DEF_PGPORT ${default_port}
1718 cat >>confdefs.h <<_ACEOF
1719 #define DEF_PGPORT_STR "${default_port}"
1725 # Option to disable shared libraries
1729 # Check whether --enable-shared or --disable-shared was given.
1730 if test "${enable_shared+set}" = set; then
1731 enableval="$enable_shared"
1741 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1742 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1743 { (exit 1); exit 1; }; }
1755 # '-rpath'-like feature can be disabled
1759 # Check whether --enable-rpath or --disable-rpath was given.
1760 if test "${enable_rpath+set}" = set; then
1761 enableval="$enable_rpath"
1771 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1772 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1773 { (exit 1); exit 1; }; }
1786 # --enable-debug adds -g to compiler flags
1790 # Check whether --enable-debug or --disable-debug was given.
1791 if test "${enable_debug+set}" = set; then
1792 enableval="$enable_debug"
1802 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1803 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1804 { (exit 1); exit 1; }; }
1819 # For historical reasons you can also use --with-CC to specify the C compiler
1820 # to use, although the standard way to do this is to set the CC environment
1825 # Check whether --with-CC or --without-CC was given.
1826 if test "${with_CC+set}" = set; then
1831 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1832 echo "$as_me: error: argument required for --with-CC option" >&2;}
1833 { (exit 1); exit 1; }; }
1836 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1837 echo "$as_me: error: argument required for --with-CC option" >&2;}
1838 { (exit 1); exit 1; }; }
1849 aix) pgac_cc_list="gcc xlc";;
1850 irix) pgac_cc_list="cc";; # no gcc
1851 *) pgac_cc_list="gcc cc";;
1855 ac_cpp='$CPP $CPPFLAGS'
1856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1859 if test -n "$ac_tool_prefix"; then
1860 for ac_prog in $pgac_cc_list
1862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1897 test -n "$CC" && break
1900 if test -z "$CC"; then
1902 for ac_prog in $pgac_cc_list
1904 # Extract the first word of "$ac_prog", so it can be a program name with args.
1905 set dummy $ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 if test -n "$ac_ct_CC"; then
1912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_ac_ct_CC="$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1939 test -n "$ac_ct_CC" && break
1946 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1947 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1948 { (exit 1); exit 1; }; }
1950 # Provide some information about the compiler.
1951 echo "$as_me:$LINENO:" \
1952 "checking for C compiler version" >&5
1953 ac_compiler=`set X $ac_compile; echo $2`
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1955 (eval $ac_compiler --version </dev/null >&5) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1960 (eval $ac_compiler -v </dev/null >&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1965 (eval $ac_compiler -V </dev/null >&5) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1970 cat >conftest.$ac_ext <<_ACEOF
1971 #line $LINENO "configure"
1972 #include "confdefs.h"
1974 #ifdef F77_DUMMY_MAIN
1978 int F77_DUMMY_MAIN() { return 1; }
1988 ac_clean_files_save=$ac_clean_files
1989 ac_clean_files="$ac_clean_files a.out a.exe"
1990 # Try to create an executable without -o first, disregard a.out.
1991 # It will help us diagnose broken compilers, and finding out an intuition
1993 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1994 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1995 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997 (eval $ac_link_default) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 # Find the output, starting from the most likely. This scheme is
2002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # Be careful to initialize this variable, since it used to be cached.
2006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2009 ls a.out conftest 2>/dev/null;
2010 ls a.* conftest.* 2>/dev/null`; do
2012 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2013 a.out ) # We found the default executable, but exeext='' is most
2016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2024 echo "$as_me: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2027 echo "$as_me: error: C compiler cannot create executables" >&2;}
2028 { (exit 77); exit 77; }; }
2031 ac_exeext=$ac_cv_exeext
2032 echo "$as_me:$LINENO: result: $ac_file" >&5
2033 echo "${ECHO_T}$ac_file" >&6
2035 # Check the compiler produces executables we can run. If not, either
2036 # the compiler is broken, or we cross compile.
2037 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2040 # If not cross compiling, check that we can run a simple program.
2041 if test "$cross_compiling" != yes; then
2042 if { ac_try='./$ac_file'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 if test "$cross_compiling" = maybe; then
2053 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2054 If you meant to cross compile, use \`--host'." >&5
2055 echo "$as_me: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&2;}
2057 { (exit 1); exit 1; }; }
2061 echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6
2064 rm -f a.out a.exe conftest$ac_cv_exeext
2065 ac_clean_files=$ac_clean_files_save
2066 # Check the compiler produces executables we can run. If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2070 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2071 echo "${ECHO_T}$cross_compiling" >&6
2073 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2076 (eval $ac_link) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2086 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2094 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2095 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2096 { (exit 1); exit 1; }; }
2099 rm -f conftest$ac_cv_exeext
2100 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2101 echo "${ECHO_T}$ac_cv_exeext" >&6
2103 rm -f conftest.$ac_ext
2104 EXEEXT=$ac_cv_exeext
2106 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2107 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2108 if test "${ac_cv_objext+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 cat >conftest.$ac_ext <<_ACEOF
2112 #line $LINENO "configure"
2113 #include "confdefs.h"
2115 #ifdef F77_DUMMY_MAIN
2119 int F77_DUMMY_MAIN() { return 1; }
2129 rm -f conftest.o conftest.obj
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2138 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2143 echo "$as_me: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2145 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2146 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2147 { (exit 1); exit 1; }; }
2150 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2152 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2153 echo "${ECHO_T}$ac_cv_objext" >&6
2154 OBJEXT=$ac_cv_objext
2156 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2157 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2158 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 cat >conftest.$ac_ext <<_ACEOF
2162 #line $LINENO "configure"
2163 #include "confdefs.h"
2165 #ifdef F77_DUMMY_MAIN
2169 int F77_DUMMY_MAIN() { return 1; }
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2196 echo "$as_me: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2200 rm -f conftest.$ac_objext conftest.$ac_ext
2201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206 GCC=`test $ac_compiler_gnu = yes && echo yes`
2207 ac_test_CFLAGS=${CFLAGS+set}
2208 ac_save_CFLAGS=$CFLAGS
2210 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_g+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #line $LINENO "configure"
2217 #include "confdefs.h"
2219 #ifdef F77_DUMMY_MAIN
2223 int F77_DUMMY_MAIN() { return 1; }
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 echo "$as_me: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2251 rm -f conftest.$ac_objext conftest.$ac_ext
2253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2255 if test "$ac_test_CFLAGS" = set; then
2256 CFLAGS=$ac_save_CFLAGS
2257 elif test $ac_cv_prog_cc_g = yes; then
2258 if test "$GCC" = yes; then
2264 if test "$GCC" = yes; then
2270 # Some people use a C++ compiler to compile C. Since we use `exit',
2271 # in C++ we need to declare it. In case someone uses the same compiler
2272 # for both compiling C and C++ we need to have the C++ compiler decide
2273 # the declaration of exit, since it's the most demanding environment.
2274 cat >conftest.$ac_ext <<_ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 for ac_declaration in \
2293 '#include <stdlib.h>' \
2294 'extern "C" void std::exit (int) throw (); using std::exit;' \
2295 'extern "C" void std::exit (int); using std::exit;' \
2296 'extern "C" void exit (int) throw ();' \
2297 'extern "C" void exit (int);' \
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #line $LINENO "configure"
2302 #include "confdefs.h"
2305 #ifdef F77_DUMMY_MAIN
2309 int F77_DUMMY_MAIN() { return 1; }
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2338 cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 #include "confdefs.h"
2342 #ifdef F77_DUMMY_MAIN
2346 int F77_DUMMY_MAIN() { return 1; }
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2370 echo "$as_me: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2376 if test -n "$ac_declaration"; then
2377 echo '#ifdef __cplusplus' >>confdefs.h
2378 echo $ac_declaration >>confdefs.h
2379 echo '#endif' >>confdefs.h
2383 echo "$as_me: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2386 rm -f conftest.$ac_objext conftest.$ac_ext
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 . "$srcdir/src/template/$template" || exit
2396 if test "$ac_env_CFLAGS_set" = set; then
2397 CFLAGS=$ac_env_CFLAGS_value
2399 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2402 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2403 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2405 # Check if the compiler still works with the template settings
2406 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2407 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 #include "confdefs.h"
2413 #ifdef F77_DUMMY_MAIN
2417 int F77_DUMMY_MAIN() { return 1; }
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429 (eval $ac_link) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest$ac_exeext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 echo "$as_me:$LINENO: result: yes" >&5
2440 echo "${ECHO_T}yes" >&6
2442 echo "$as_me: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6
2446 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2447 echo "$as_me: error: cannot proceed" >&2;}
2448 { (exit 1); exit 1; }; }
2450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2452 # Defend against gcc -ffastmath
2453 if test "$GCC" = yes; then
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 #include "confdefs.h"
2458 #ifdef F77_DUMMY_MAIN
2462 int F77_DUMMY_MAIN() { return 1; }
2467 #ifdef __FAST_MATH__
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2488 echo "$as_me: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2491 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2492 { (exit 1); exit 1; }; }
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2503 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2504 # On Suns, sometimes $CPP names a directory.
2505 if test -n "$CPP" && test -d "$CPP"; then
2508 if test -z "$CPP"; then
2509 if test "${ac_cv_prog_CPP+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 # Double quotes because CPP needs to be expanded
2513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2516 for ac_c_preproc_warn_flag in '' yes
2518 # Use a header file that comes with gcc, so configuring glibc
2519 # with a fresh cross-compiler works.
2520 # On the NeXT, cc -E runs the code through the compiler's parser,
2521 # not just through cpp. "Syntax error" is here to catch this case.
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 #include "confdefs.h"
2528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 egrep -v '^ *\+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } >/dev/null; then
2536 if test -s conftest.err; then
2537 ac_cpp_err=$ac_c_preproc_warn_flag
2544 if test -z "$ac_cpp_err"; then
2547 echo "$as_me: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 # Broken: fails on valid input.
2552 rm -f conftest.err conftest.$ac_ext
2554 # OK, works on sane cases. Now check whether non-existent headers
2555 # can be detected and how.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2559 #include <ac_nonexistent.h>
2561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2564 egrep -v '^ *\+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } >/dev/null; then
2569 if test -s conftest.err; then
2570 ac_cpp_err=$ac_c_preproc_warn_flag
2577 if test -z "$ac_cpp_err"; then
2578 # Broken: success on invalid input.
2581 echo "$as_me: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 # Passes both tests.
2587 rm -f conftest.err conftest.$ac_ext
2590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2591 rm -f conftest.err conftest.$ac_ext
2592 if $ac_preproc_ok; then
2604 echo "$as_me:$LINENO: result: $CPP" >&5
2605 echo "${ECHO_T}$CPP" >&6
2607 for ac_c_preproc_warn_flag in '' yes
2609 # Use a header file that comes with gcc, so configuring glibc
2610 # with a fresh cross-compiler works.
2611 # On the NeXT, cc -E runs the code through the compiler's parser,
2612 # not just through cpp. "Syntax error" is here to catch this case.
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 #include "confdefs.h"
2619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622 egrep -v '^ *\+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } >/dev/null; then
2627 if test -s conftest.err; then
2628 ac_cpp_err=$ac_c_preproc_warn_flag
2635 if test -z "$ac_cpp_err"; then
2638 echo "$as_me: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2640 # Broken: fails on valid input.
2643 rm -f conftest.err conftest.$ac_ext
2645 # OK, works on sane cases. Now check whether non-existent headers
2646 # can be detected and how.
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 #include "confdefs.h"
2650 #include <ac_nonexistent.h>
2652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2655 egrep -v '^ *\+' conftest.er1 >conftest.err
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } >/dev/null; then
2660 if test -s conftest.err; then
2661 ac_cpp_err=$ac_c_preproc_warn_flag
2668 if test -z "$ac_cpp_err"; then
2669 # Broken: success on invalid input.
2672 echo "$as_me: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 # Passes both tests.
2678 rm -f conftest.err conftest.$ac_ext
2681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2682 rm -f conftest.err conftest.$ac_ext
2683 if $ac_preproc_ok; then
2686 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2688 { (exit 1); exit 1; }; }
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 # Create compiler version string
2700 if test x"$GCC" = x"yes" ; then
2701 cc_string="GCC `${CC} --version | sed q`"
2706 cat >>confdefs.h <<_ACEOF
2707 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2713 # Automatic dependency tracking
2717 # Check whether --enable-depend or --disable-depend was given.
2718 if test "${enable_depend+set}" = set; then
2719 enableval="$enable_depend"
2729 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2730 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2731 { (exit 1); exit 1; }; }
2744 # Enable assert checks
2748 # Check whether --enable-cassert or --disable-cassert was given.
2749 if test "${enable_cassert+set}" = set; then
2750 enableval="$enable_cassert"
2755 cat >>confdefs.h <<\_ACEOF
2756 #define USE_ASSERT_CHECKING 1
2764 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2765 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2766 { (exit 1); exit 1; }; }
2778 # Include directories
2782 # SRCH_INC comes from the template file
2783 for dir in $with_includes $SRCH_INC; do
2784 if test -d "$dir"; then
2785 INCLUDES="$INCLUDES -I$dir"
2787 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2788 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2796 # Library directories
2800 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2801 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2802 if test -d "$dir"; then
2803 LIBDIRS="$LIBDIRS -L$dir"
2805 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2806 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2815 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2816 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2820 # Check whether --with-tcl or --without-tcl was given.
2821 if test "${with_tcl+set}" = set; then
2832 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2833 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2834 { (exit 1); exit 1; }; }
2843 echo "$as_me:$LINENO: result: $with_tcl" >&5
2844 echo "${ECHO_T}$with_tcl" >&6
2847 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2848 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2849 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2850 if test "$with_tcl" = yes; then
2854 # Check whether --with-tk or --without-tk was given.
2855 if test "${with_tk+set}" = set; then
2866 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2867 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2868 { (exit 1); exit 1; }; }
2880 echo "$as_me:$LINENO: result: $with_tk" >&5
2881 echo "${ECHO_T}$with_tk" >&6
2885 # We see if the path to the Tcl/Tk configuration scripts is specified.
2886 # This will override the use of tclsh to find the paths to search.
2891 # Check whether --with-tclconfig or --without-tclconfig was given.
2892 if test "${with_tclconfig+set}" = set; then
2893 withval="$with_tclconfig"
2897 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2898 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2899 { (exit 1); exit 1; }; }
2902 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2903 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2904 { (exit 1); exit 1; }; }
2914 # We see if the path to the Tk configuration scripts is specified.
2915 # This will override the use of tclsh to find the paths to search.
2920 # Check whether --with-tkconfig or --without-tkconfig was given.
2921 if test "${with_tkconfig+set}" = set; then
2922 withval="$with_tkconfig"
2926 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2927 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2928 { (exit 1); exit 1; }; }
2931 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2932 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2933 { (exit 1); exit 1; }; }
2944 # Optionally build Perl modules (PL/Perl)
2946 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2947 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2951 # Check whether --with-perl or --without-perl was given.
2952 if test "${with_perl+set}" = set; then
2953 withval="$with_perl"
2963 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2964 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2965 { (exit 1); exit 1; }; }
2974 echo "$as_me:$LINENO: result: $with_perl" >&5
2975 echo "${ECHO_T}$with_perl" >&6
2979 # Optionally build Python interface module
2981 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2982 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2986 # Check whether --with-python or --without-python was given.
2987 if test "${with_python+set}" = set; then
2988 withval="$with_python"
2998 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
2999 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3000 { (exit 1); exit 1; }; }
3009 echo "$as_me:$LINENO: result: $with_python" >&5
3010 echo "${ECHO_T}$with_python" >&6
3014 # Optionally build the Java/JDBC tools
3016 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3017 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3021 # Check whether --with-java or --without-java was given.
3022 if test "${with_java+set}" = set; then
3023 withval="$with_java"
3027 echo "$as_me:$LINENO: result: yes" >&5
3028 echo "${ECHO_T}yes" >&6
3030 for ac_prog in jakarta-ant ant ant.sh ant.bat
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_path_ANT+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 if test -n "$ANT"; then
3064 echo "$as_me:$LINENO: result: $ANT" >&5
3065 echo "${ECHO_T}$ANT" >&6
3067 echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6
3071 test -n "$ANT" && break
3075 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3076 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3077 if test "${pgac_cv_prog_ant_works+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 cat > conftest.java << EOF
3082 public class conftest {
3083 int testmethod(int a, int b) {
3089 cat > conftest.xml << EOF
3090 <project name="conftest" default="conftest">
3091 <target name="conftest">
3092 <javac srcdir="." includes="conftest.java">
3098 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3099 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3100 (eval $pgac_cmd) 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }
3105 if test $? = 0 && test -f ./conftest.class ; then
3106 pgac_cv_prog_ant_works=yes
3108 echo "configure: failed java program was:" >&5
3109 cat conftest.java >&5
3110 echo "configure: failed build file was:" >&5
3111 cat conftest.xml >&5
3112 pgac_cv_prog_ant_works=no
3115 rm -f conftest* core core.* *.core
3118 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3119 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3121 if test "$pgac_cv_prog_ant_works" != yes; then
3122 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3123 echo "$as_me: error: ant does not work" >&2;}
3124 { (exit 1); exit 1; }; }
3128 if test -z "$ANT"; then
3129 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3130 If you have Ant already installed, see config.log for details on the failure." >&5
3131 echo "$as_me: error: Ant is required to build Java components
3132 If you have Ant already installed, see config.log for details on the failure." >&2;}
3133 { (exit 1); exit 1; }; }
3135 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3136 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3137 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3138 { (exit 1); exit 1; }; }
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3146 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3147 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3148 { (exit 1); exit 1; }; }
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3164 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3165 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3169 # Check whether --with-krb4 or --without-krb4 was given.
3170 if test "${with_krb4+set}" = set; then
3171 withval="$with_krb4"
3175 krb4_prefix=/usr/athena
3182 krb4_prefix=$withval
3191 if test "$with_krb4" = yes; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194 echo "${ECHO_T}yes" >&6
3196 cat >>confdefs.h <<\_ACEOF
3201 if test -d "$krb4_prefix/include"; then
3202 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3204 if test -d "$krb4_prefix/lib"; then
3205 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3208 krb_srvtab="/etc/srvtab"
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3222 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3223 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3227 # Check whether --with-krb5 or --without-krb5 was given.
3228 if test "${with_krb5+set}" = set; then
3229 withval="$with_krb5"
3233 krb5_prefix=/usr/athena
3240 krb5_prefix=$withval
3249 if test "$with_krb5" = yes; then
3251 echo "$as_me:$LINENO: result: yes" >&5
3252 echo "${ECHO_T}yes" >&6
3254 cat >>confdefs.h <<\_ACEOF
3259 if test -d "$krb5_prefix/include"; then
3260 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3262 if test -d "$krb5_prefix/lib"; then
3263 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3266 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3277 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3278 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3279 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3280 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3281 { (exit 1); exit 1; }; }
3288 # Kerberos configuration parameters
3293 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3294 if test "${with_krb_srvnam+set}" = set; then
3295 withval="$with_krb_srvnam"
3299 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3300 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3301 { (exit 1); exit 1; }; }
3304 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3305 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3306 { (exit 1); exit 1; }; }
3314 with_krb_srvnam="postgres"
3318 cat >>confdefs.h <<_ACEOF
3319 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3327 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3328 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3332 # Check whether --with-pam or --without-pam was given.
3333 if test "${with_pam+set}" = set; then
3339 cat >>confdefs.h <<\_ACEOF
3348 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3349 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3350 { (exit 1); exit 1; }; }
3359 echo "$as_me:$LINENO: result: $with_pam" >&5
3360 echo "${ECHO_T}$with_pam" >&6
3370 # Check whether --with-openssl or --without-openssl was given.
3371 if test "${with_openssl+set}" = set; then
3372 withval="$with_openssl"
3376 openssl_prefix=/usr/local/ssl
3383 openssl_prefix=$withval
3392 if test "$with_openssl" = yes; then
3394 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3395 echo "${ECHO_T}building with OpenSSL support" >&6
3397 cat >>confdefs.h <<\_ACEOF
3402 if test -d "${openssl_prefix}/include" ; then
3403 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3405 if test -d "${openssl_prefix}/lib" ; then
3406 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3421 # Check whether --with-readline or --without-readline was given.
3422 if test "${with_readline+set}" = set; then
3423 withval="$with_readline"
3433 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3434 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3435 { (exit 1); exit 1; }; }
3451 # Check whether --with-zlib or --without-zlib was given.
3452 if test "${with_zlib+set}" = set; then
3453 withval="$with_zlib"
3463 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3464 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3465 { (exit 1); exit 1; }; }
3477 # Assume system is ELF if it predefines __ELF__ as 1,
3478 # otherwise believe host_os based default.
3480 freebsd1*|freebsd2*) elf=no;;
3481 freebsd3*|freebsd4*) elf=yes;;
3485 cat >conftest.$ac_ext <<_ACEOF
3486 #line $LINENO "configure"
3487 #include "confdefs.h"
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 egrep "yes" >/dev/null 2>&1; then
3497 if test "X$elf" = "Xyes" ; then
3509 CPPFLAGS="$CPPFLAGS $INCLUDES"
3510 LDFLAGS="$LDFLAGS $LIBDIRS"
3512 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3513 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3514 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3515 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3518 for ac_prog in gawk mawk nawk awk
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524 if test "${ac_cv_prog_AWK+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 if test -n "$AWK"; then
3528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_AWK="$ac_prog"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 if test -n "$AWK"; then
3548 echo "$as_me:$LINENO: result: $AWK" >&5
3549 echo "${ECHO_T}$AWK" >&6
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3555 test -n "$AWK" && break
3558 echo "$as_me:$LINENO: checking for flex" >&5
3559 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3560 if test "${pgac_cv_path_flex+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 # Let the user override the test
3564 if test -n "$FLEX"; then
3565 pgac_cv_path_flex=$FLEX
3569 for pgac_dir in $PATH; do
3570 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3573 for pgac_prog in flex lex; do
3574 pgac_candidate="$pgac_dir/$pgac_prog"
3575 if test -f "$pgac_candidate" \
3576 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3578 echo '%%' > conftest.l
3579 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3580 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3581 pgac_broken_flex=$pgac_candidate
3585 pgac_cv_path_flex=$pgac_candidate
3593 : ${pgac_cv_path_flex=no}
3597 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3598 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3599 if test x"$pgac_cv_path_flex" = x"no"; then
3600 if test -n "$pgac_broken_flex"; then
3601 { echo "$as_me:$LINENO: WARNING:
3602 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3603 *** should get version 2.5.4 or later." >&5
3604 echo "$as_me: WARNING:
3605 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3606 *** should get version 2.5.4 or later." >&2;}
3609 { echo "$as_me:$LINENO: WARNING:
3610 *** Without Flex you will not be able to build PostgreSQL from CVS or
3611 *** change any of the scanner definition files. You can obtain Flex from
3612 *** a GNU mirror site. (If you are using the official distribution of
3613 *** PostgreSQL then you do not need to worry about this because the Flex
3614 *** output is pre-generated.)" >&5
3615 echo "$as_me: WARNING:
3616 *** Without Flex you will not be able to build PostgreSQL from CVS or
3617 *** change any of the scanner definition files. You can obtain Flex from
3618 *** a GNU mirror site. (If you are using the official distribution of
3619 *** PostgreSQL then you do not need to worry about this because the Flex
3620 *** output is pre-generated.)" >&2;}
3623 if test x"$pgac_cv_path_flex" = x"no"; then
3626 FLEX=$pgac_cv_path_flex
3632 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3633 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3635 if test "$LN_S" = "ln -s"; then
3636 echo "$as_me:$LINENO: result: yes" >&5
3637 echo "${ECHO_T}yes" >&6
3639 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3640 echo "${ECHO_T}no, using $LN_S" >&6
3644 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3645 if test "${with_gnu_ld+set}" = set; then
3646 withval="$with_gnu_ld"
3647 test "$withval" = no || with_gnu_ld=yes
3652 if test "$GCC" = yes; then
3653 # Check if gcc -print-prog-name=ld gives a path.
3654 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3655 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3658 # gcc leaves a trailing carriage return which upsets mingw
3659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3664 # Accept absolute paths.
3665 [\\/]* | [A-Za-z]:[\\/]*)
3666 re_direlt='/[^/][^/]*/\.\./'
3667 # Canonicalize the path of ld
3668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3672 test -z "$LD" && LD="$ac_prog"
3675 # If it fails, then pretend we aren't using GCC.
3679 # If it is relative, then search for the first ld in PATH.
3683 elif test "$with_gnu_ld" = yes; then
3684 echo "$as_me:$LINENO: checking for GNU ld" >&5
3685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3687 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3690 if test "${ac_cv_path_LD+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 if test -z "$LD"; then
3694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3695 for ac_dir in $PATH; do
3696 test -z "$ac_dir" && ac_dir=.
3697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3698 ac_cv_path_LD="$ac_dir/$ac_prog"
3699 # Check to see if the program is GNU ld. I'd rather use --version,
3700 # but apparently some GNU ld's only accept -v.
3701 # Break only if it was the GNU/non-GNU ld that we prefer.
3702 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3703 test "$with_gnu_ld" != no && break
3705 test "$with_gnu_ld" != yes && break
3711 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3716 if test -n "$LD"; then
3717 echo "$as_me:$LINENO: result: $LD" >&5
3718 echo "${ECHO_T}$LD" >&6
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3725 { (exit 1); exit 1; }; }
3726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3728 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3732 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3733 ac_cv_prog_gnu_ld=yes
3735 ac_cv_prog_gnu_ld=no
3738 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3739 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3740 with_gnu_ld=$ac_cv_prog_gnu_ld
3745 case $host_os in sysv5*)
3746 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3747 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3748 if test "${pgac_cv_prog_ld_R+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3753 cat >conftest.$ac_ext <<_ACEOF
3754 #line $LINENO "configure"
3755 #include "confdefs.h"
3757 #ifdef F77_DUMMY_MAIN
3761 int F77_DUMMY_MAIN() { return 1; }
3771 rm -f conftest.$ac_objext conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773 (eval $ac_link) 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -s conftest$ac_exeext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 pgac_cv_prog_ld_R=yes
3785 echo "$as_me: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 pgac_cv_prog_ld_R=no
3789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3790 LDFLAGS=$pgac_save_LDFLAGS
3793 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3794 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3795 ld_R_works=$pgac_cv_prog_ld_R
3798 if test -n "$ac_tool_prefix"; then
3799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_RANLIB+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 if test -n "$RANLIB"; then
3807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 RANLIB=$ac_cv_prog_RANLIB
3826 if test -n "$RANLIB"; then
3827 echo "$as_me:$LINENO: result: $RANLIB" >&5
3828 echo "${ECHO_T}$RANLIB" >&6
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3835 if test -z "$ac_cv_prog_RANLIB"; then
3836 ac_ct_RANLIB=$RANLIB
3837 # Extract the first word of "ranlib", so it can be a program name with args.
3838 set dummy ranlib; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 if test -n "$ac_ct_RANLIB"; then
3845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_ac_ct_RANLIB="ranlib"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3865 if test -n "$ac_ct_RANLIB"; then
3866 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3867 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3869 echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 RANLIB=$ac_ct_RANLIB
3875 RANLIB="$ac_cv_prog_RANLIB"
3878 for ac_prog in lorder
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_LORDER+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 if test -n "$LORDER"; then
3888 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_LORDER="$ac_prog"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 LORDER=$ac_cv_prog_LORDER
3907 if test -n "$LORDER"; then
3908 echo "$as_me:$LINENO: result: $LORDER" >&5
3909 echo "${ECHO_T}$LORDER" >&6
3911 echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3915 test -n "$LORDER" && break
3918 # Extract the first word of "tar", so it can be a program name with args.
3919 set dummy tar; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_path_TAR+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 if test -n "$TAR"; then
3950 echo "$as_me:$LINENO: result: $TAR" >&5
3951 echo "${ECHO_T}$TAR" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -n "$ac_tool_prefix"; then
3959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3960 set dummy ${ac_tool_prefix}strip; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_STRIP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if test -n "$STRIP"; then
3967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 STRIP=$ac_cv_prog_STRIP
3986 if test -n "$STRIP"; then
3987 echo "$as_me:$LINENO: result: $STRIP" >&5
3988 echo "${ECHO_T}$STRIP" >&6
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3995 if test -z "$ac_cv_prog_STRIP"; then
3997 # Extract the first word of "strip", so it can be a program name with args.
3998 set dummy strip; ac_word=$2
3999 echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 if test -n "$ac_ct_STRIP"; then
4005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_ac_ct_STRIP="strip"
4015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4024 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4025 if test -n "$ac_ct_STRIP"; then
4026 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4027 echo "${ECHO_T}$ac_ct_STRIP" >&6
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4035 STRIP="$ac_cv_prog_STRIP"
4039 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4040 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4041 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4042 STRIP_STATIC_LIB="$STRIP -x"
4043 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4044 echo "$as_me:$LINENO: result: yes" >&5
4045 echo "${ECHO_T}yes" >&6
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4056 for ac_prog in 'bison -y'
4058 # Extract the first word of "$ac_prog", so it can be a program name with args.
4059 set dummy $ac_prog; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_YACC+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if test -n "$YACC"; then
4066 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_YACC="$ac_prog"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 YACC=$ac_cv_prog_YACC
4085 if test -n "$YACC"; then
4086 echo "$as_me:$LINENO: result: $YACC" >&5
4087 echo "${ECHO_T}$YACC" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4093 test -n "$YACC" && break
4096 if test -z "$YACC"; then
4097 { echo "$as_me:$LINENO: WARNING:
4098 *** Without Bison you will not be able to build PostgreSQL from CVS or
4099 *** change any of the parser definition files. You can obtain Bison from
4100 *** a GNU mirror site. (If you are using the official distribution of
4101 *** PostgreSQL then you do not need to worry about this because the Bison
4102 *** output is pre-generated.) To use a different yacc program (possible,
4103 *** but not recommended), set the environment variable YACC before running
4104 *** 'configure'." >&5
4105 echo "$as_me: WARNING:
4106 *** Without Bison you will not be able to build PostgreSQL from CVS or
4107 *** change any of the parser definition files. You can obtain Bison from
4108 *** a GNU mirror site. (If you are using the official distribution of
4109 *** PostgreSQL then you do not need to worry about this because the Bison
4110 *** output is pre-generated.) To use a different yacc program (possible,
4111 *** but not recommended), set the environment variable YACC before running
4112 *** 'configure'." >&2;}
4116 # Extract the first word of "perl", so it can be a program name with args.
4117 set dummy perl; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_path_PERL+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 PERL=$ac_cv_path_PERL
4147 if test -n "$PERL"; then
4148 echo "$as_me:$LINENO: result: $PERL" >&5
4149 echo "${ECHO_T}$PERL" >&6
4151 echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4155 if test "$with_perl" = yes; then
4157 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4158 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4159 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4160 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4161 echo "${ECHO_T}$perl_archlibexp" >&6
4162 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4163 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4164 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4165 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4166 echo "${ECHO_T}$perl_privlibexp" >&6
4167 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4168 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4169 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4170 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4171 echo "${ECHO_T}$perl_useshrplib" >&6
4173 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4174 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4175 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4176 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4177 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4178 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4179 echo "${ECHO_T}$perl_embed_ldflags" >&6
4182 if test "$with_python" = yes; then
4183 # Extract the first word of "python", so it can be a program name with args.
4184 set dummy python; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_path_PYTHON+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 PYTHON=$ac_cv_path_PYTHON
4214 if test -n "$PYTHON"; then
4215 echo "$as_me:$LINENO: result: $PYTHON" >&5
4216 echo "${ECHO_T}$PYTHON" >&6
4218 echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4222 if test x"$PYTHON" = x""; then
4223 { { echo "$as_me:$LINENO: error: Python not found" >&5
4224 echo "$as_me: error: Python not found" >&2;}
4225 { (exit 1); exit 1; }; }
4229 echo "$as_me:$LINENO: checking Python installation directories" >&5
4230 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4231 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4232 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4233 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4234 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4235 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4236 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4237 python_includespec="-I${python_prefix}/include/python${python_version}"
4238 if test "$python_prefix" != "$python_execprefix"; then
4239 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4242 # This should be enough of a message.
4243 if test "$python_prefix" != "$python_execprefix"; then
4244 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4245 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4247 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4248 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4255 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4256 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4258 if test ! -f "$python_configdir/Makefile"; then
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4262 echo "$as_me: error: Python Makefile not found" >&2;}
4263 { (exit 1); exit 1; }; }
4266 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4267 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4268 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4269 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4270 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4272 pgac_tab=" " # tab character
4273 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"`
4275 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4276 echo "${ECHO_T}${python_libspec}" >&6
4286 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4289 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4290 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4291 if test "${ac_cv_lib_bsd_main+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 ac_check_lib_save_LIBS=$LIBS
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4301 #ifdef F77_DUMMY_MAIN
4305 int F77_DUMMY_MAIN() { return 1; }
4315 rm -f conftest.$ac_objext conftest$ac_exeext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317 (eval $ac_link) 2>&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } &&
4321 { ac_try='test -s conftest$ac_exeext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ac_cv_lib_bsd_main=yes
4329 echo "$as_me: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 ac_cv_lib_bsd_main=no
4333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4334 LIBS=$ac_check_lib_save_LIBS
4336 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4337 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4338 if test $ac_cv_lib_bsd_main = yes; then
4339 cat >>confdefs.h <<_ACEOF
4340 #define HAVE_LIBBSD 1
4349 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4350 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4351 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 ac_check_lib_save_LIBS=$LIBS
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4360 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4366 char setproctitle ();
4367 #ifdef F77_DUMMY_MAIN
4371 int F77_DUMMY_MAIN() { return 1; }
4381 rm -f conftest.$ac_objext conftest$ac_exeext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383 (eval $ac_link) 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -s conftest$ac_exeext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_lib_util_setproctitle=yes
4395 echo "$as_me: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4397 ac_cv_lib_util_setproctitle=no
4399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4400 LIBS=$ac_check_lib_save_LIBS
4402 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4403 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4404 if test $ac_cv_lib_util_setproctitle = yes; then
4405 cat >>confdefs.h <<_ACEOF
4406 #define HAVE_LIBUTIL 1
4414 echo "$as_me:$LINENO: checking for main in -lm" >&5
4415 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4416 if test "${ac_cv_lib_m_main+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 ac_check_lib_save_LIBS=$LIBS
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4423 #include "confdefs.h"
4426 #ifdef F77_DUMMY_MAIN
4430 int F77_DUMMY_MAIN() { return 1; }
4440 rm -f conftest.$ac_objext conftest$ac_exeext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442 (eval $ac_link) 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -s conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_lib_m_main=yes
4454 echo "$as_me: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4459 LIBS=$ac_check_lib_save_LIBS
4461 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4462 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4463 if test $ac_cv_lib_m_main = yes; then
4464 cat >>confdefs.h <<_ACEOF
4473 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4474 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4475 if test "${ac_cv_lib_dl_main+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_check_lib_save_LIBS=$LIBS
4480 cat >conftest.$ac_ext <<_ACEOF
4481 #line $LINENO "configure"
4482 #include "confdefs.h"
4485 #ifdef F77_DUMMY_MAIN
4489 int F77_DUMMY_MAIN() { return 1; }
4499 rm -f conftest.$ac_objext conftest$ac_exeext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501 (eval $ac_link) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -s conftest$ac_exeext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_lib_dl_main=yes
4513 echo "$as_me: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4515 ac_cv_lib_dl_main=no
4517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4518 LIBS=$ac_check_lib_save_LIBS
4520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4521 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4522 if test $ac_cv_lib_dl_main = yes; then
4523 cat >>confdefs.h <<_ACEOF
4524 #define HAVE_LIBDL 1
4532 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4533 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4534 if test "${ac_cv_lib_nsl_main+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 ac_check_lib_save_LIBS=$LIBS
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4541 #include "confdefs.h"
4544 #ifdef F77_DUMMY_MAIN
4548 int F77_DUMMY_MAIN() { return 1; }
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560 (eval $ac_link) 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -s conftest$ac_exeext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_cv_lib_nsl_main=yes
4572 echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 ac_cv_lib_nsl_main=no
4576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4577 LIBS=$ac_check_lib_save_LIBS
4579 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4580 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4581 if test $ac_cv_lib_nsl_main = yes; then
4582 cat >>confdefs.h <<_ACEOF
4583 #define HAVE_LIBNSL 1
4591 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4592 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4593 if test "${ac_cv_lib_socket_main+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 ac_check_lib_save_LIBS=$LIBS
4597 LIBS="-lsocket $LIBS"
4598 cat >conftest.$ac_ext <<_ACEOF
4599 #line $LINENO "configure"
4600 #include "confdefs.h"
4603 #ifdef F77_DUMMY_MAIN
4607 int F77_DUMMY_MAIN() { return 1; }
4617 rm -f conftest.$ac_objext conftest$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -s conftest$ac_exeext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 ac_cv_lib_socket_main=yes
4631 echo "$as_me: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 ac_cv_lib_socket_main=no
4635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4638 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4639 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4640 if test $ac_cv_lib_socket_main = yes; then
4641 cat >>confdefs.h <<_ACEOF
4642 #define HAVE_LIBSOCKET 1
4645 LIBS="-lsocket $LIBS"
4650 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4651 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4652 if test "${ac_cv_lib_ipc_main+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 ac_check_lib_save_LIBS=$LIBS
4657 cat >conftest.$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4659 #include "confdefs.h"
4662 #ifdef F77_DUMMY_MAIN
4666 int F77_DUMMY_MAIN() { return 1; }
4676 rm -f conftest.$ac_objext conftest$ac_exeext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678 (eval $ac_link) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -s conftest$ac_exeext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 ac_cv_lib_ipc_main=yes
4690 echo "$as_me: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4692 ac_cv_lib_ipc_main=no
4694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4695 LIBS=$ac_check_lib_save_LIBS
4697 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4698 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4699 if test $ac_cv_lib_ipc_main = yes; then
4700 cat >>confdefs.h <<_ACEOF
4701 #define HAVE_LIBIPC 1
4709 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4710 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4711 if test "${ac_cv_lib_IPC_main+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 ac_check_lib_save_LIBS=$LIBS
4716 cat >conftest.$ac_ext <<_ACEOF
4717 #line $LINENO "configure"
4718 #include "confdefs.h"
4721 #ifdef F77_DUMMY_MAIN
4725 int F77_DUMMY_MAIN() { return 1; }
4735 rm -f conftest.$ac_objext conftest$ac_exeext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4737 (eval $ac_link) 2>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -s conftest$ac_exeext'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4747 ac_cv_lib_IPC_main=yes
4749 echo "$as_me: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4751 ac_cv_lib_IPC_main=no
4753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4754 LIBS=$ac_check_lib_save_LIBS
4756 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4757 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4758 if test $ac_cv_lib_IPC_main = yes; then
4759 cat >>confdefs.h <<_ACEOF
4760 #define HAVE_LIBIPC 1
4768 echo "$as_me:$LINENO: checking for main in -llc" >&5
4769 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4770 if test "${ac_cv_lib_lc_main+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 ac_check_lib_save_LIBS=$LIBS
4775 cat >conftest.$ac_ext <<_ACEOF
4776 #line $LINENO "configure"
4777 #include "confdefs.h"
4780 #ifdef F77_DUMMY_MAIN
4784 int F77_DUMMY_MAIN() { return 1; }
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_lib_lc_main=yes
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_lib_lc_main=no
4812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4815 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4816 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4817 if test $ac_cv_lib_lc_main = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define HAVE_LIBLC 1
4827 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4828 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4829 if test "${ac_cv_lib_dld_main+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 ac_check_lib_save_LIBS=$LIBS
4834 cat >conftest.$ac_ext <<_ACEOF
4835 #line $LINENO "configure"
4836 #include "confdefs.h"
4839 #ifdef F77_DUMMY_MAIN
4843 int F77_DUMMY_MAIN() { return 1; }
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855 (eval $ac_link) 2>&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -s conftest$ac_exeext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 ac_cv_lib_dld_main=yes
4867 echo "$as_me: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 ac_cv_lib_dld_main=no
4871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4872 LIBS=$ac_check_lib_save_LIBS
4874 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4875 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4876 if test $ac_cv_lib_dld_main = yes; then
4877 cat >>confdefs.h <<_ACEOF
4878 #define HAVE_LIBDLD 1
4886 echo "$as_me:$LINENO: checking for main in -lld" >&5
4887 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4888 if test "${ac_cv_lib_ld_main+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 ac_check_lib_save_LIBS=$LIBS
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 #include "confdefs.h"
4898 #ifdef F77_DUMMY_MAIN
4902 int F77_DUMMY_MAIN() { return 1; }
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4914 (eval $ac_link) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -s conftest$ac_exeext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_cv_lib_ld_main=yes
4926 echo "$as_me: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4928 ac_cv_lib_ld_main=no
4930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4931 LIBS=$ac_check_lib_save_LIBS
4933 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4934 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4935 if test $ac_cv_lib_ld_main = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937 #define HAVE_LIBLD 1
4945 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4946 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4947 if test "${ac_cv_lib_compat_main+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 ac_check_lib_save_LIBS=$LIBS
4951 LIBS="-lcompat $LIBS"
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 #include "confdefs.h"
4957 #ifdef F77_DUMMY_MAIN
4961 int F77_DUMMY_MAIN() { return 1; }
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973 (eval $ac_link) 2>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -s conftest$ac_exeext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_lib_compat_main=yes
4985 echo "$as_me: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4987 ac_cv_lib_compat_main=no
4989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4990 LIBS=$ac_check_lib_save_LIBS
4992 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4993 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4994 if test $ac_cv_lib_compat_main = yes; then
4995 cat >>confdefs.h <<_ACEOF
4996 #define HAVE_LIBCOMPAT 1
4999 LIBS="-lcompat $LIBS"
5004 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5005 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5006 if test "${ac_cv_lib_BSD_main+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_check_lib_save_LIBS=$LIBS
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5013 #include "confdefs.h"
5016 #ifdef F77_DUMMY_MAIN
5020 int F77_DUMMY_MAIN() { return 1; }
5030 rm -f conftest.$ac_objext conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_lib_BSD_main=yes
5044 echo "$as_me: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5046 ac_cv_lib_BSD_main=no
5048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5051 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5052 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5053 if test $ac_cv_lib_BSD_main = yes; then
5054 cat >>confdefs.h <<_ACEOF
5055 #define HAVE_LIBBSD 1
5063 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5064 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5065 if test "${ac_cv_lib_gen_main+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_check_lib_save_LIBS=$LIBS
5070 cat >conftest.$ac_ext <<_ACEOF
5071 #line $LINENO "configure"
5072 #include "confdefs.h"
5075 #ifdef F77_DUMMY_MAIN
5079 int F77_DUMMY_MAIN() { return 1; }
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest$ac_exeext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 ac_cv_lib_gen_main=yes
5103 echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5105 ac_cv_lib_gen_main=no
5107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5108 LIBS=$ac_check_lib_save_LIBS
5110 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5111 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5112 if test $ac_cv_lib_gen_main = yes; then
5113 cat >>confdefs.h <<_ACEOF
5114 #define HAVE_LIBGEN 1
5122 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5123 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5124 if test "${ac_cv_lib_PW_main+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 ac_check_lib_save_LIBS=$LIBS
5129 cat >conftest.$ac_ext <<_ACEOF
5130 #line $LINENO "configure"
5131 #include "confdefs.h"
5134 #ifdef F77_DUMMY_MAIN
5138 int F77_DUMMY_MAIN() { return 1; }
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try='test -s conftest$ac_exeext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_lib_PW_main=yes
5162 echo "$as_me: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 ac_cv_lib_PW_main=no
5166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5167 LIBS=$ac_check_lib_save_LIBS
5169 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5170 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5171 if test $ac_cv_lib_PW_main = yes; then
5172 cat >>confdefs.h <<_ACEOF
5173 #define HAVE_LIBPW 1
5181 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5182 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5183 if test "${ac_cv_lib_resolv_main+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 ac_check_lib_save_LIBS=$LIBS
5187 LIBS="-lresolv $LIBS"
5188 cat >conftest.$ac_ext <<_ACEOF
5189 #line $LINENO "configure"
5190 #include "confdefs.h"
5193 #ifdef F77_DUMMY_MAIN
5197 int F77_DUMMY_MAIN() { return 1; }
5207 rm -f conftest.$ac_objext conftest$ac_exeext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209 (eval $ac_link) 2>&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -s conftest$ac_exeext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5219 ac_cv_lib_resolv_main=yes
5221 echo "$as_me: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5223 ac_cv_lib_resolv_main=no
5225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5226 LIBS=$ac_check_lib_save_LIBS
5228 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5229 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5230 if test $ac_cv_lib_resolv_main = yes; then
5231 cat >>confdefs.h <<_ACEOF
5232 #define HAVE_LIBRESOLV 1
5235 LIBS="-lresolv $LIBS"
5239 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5240 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5241 if test "${ac_cv_search_getopt_long+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_func_search_save_LIBS=$LIBS
5245 ac_cv_search_getopt_long=no
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5254 /* We use char because int might match the return type of a gcc2
5255 builtin and then its argument prototype would still apply. */
5256 char getopt_long ();
5257 #ifdef F77_DUMMY_MAIN
5261 int F77_DUMMY_MAIN() { return 1; }
5271 rm -f conftest.$ac_objext conftest$ac_exeext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5273 (eval $ac_link) 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_search_getopt_long="none required"
5285 echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 if test "$ac_cv_search_getopt_long" = no; then
5290 for ac_lib in getopt gnugetopt; do
5291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5292 cat >conftest.$ac_ext <<_ACEOF
5293 #line $LINENO "configure"
5294 #include "confdefs.h"
5296 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5302 char getopt_long ();
5303 #ifdef F77_DUMMY_MAIN
5307 int F77_DUMMY_MAIN() { return 1; }
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319 (eval $ac_link) 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -s conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_cv_search_getopt_long="-l$ac_lib"
5332 echo "$as_me: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5338 LIBS=$ac_func_search_save_LIBS
5340 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5341 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5342 if test "$ac_cv_search_getopt_long" != no; then
5343 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5349 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5350 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5351 if test "${ac_cv_lib_unix_main+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 ac_check_lib_save_LIBS=$LIBS
5356 cat >conftest.$ac_ext <<_ACEOF
5357 #line $LINENO "configure"
5358 #include "confdefs.h"
5361 #ifdef F77_DUMMY_MAIN
5365 int F77_DUMMY_MAIN() { return 1; }
5375 rm -f conftest.$ac_objext conftest$ac_exeext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377 (eval $ac_link) 2>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -s conftest$ac_exeext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_cv_lib_unix_main=yes
5389 echo "$as_me: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 ac_cv_lib_unix_main=no
5393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5396 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5397 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5398 if test $ac_cv_lib_unix_main = yes; then
5399 cat >>confdefs.h <<_ACEOF
5400 #define HAVE_LIBUNIX 1
5407 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5408 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5409 if test "${ac_cv_search_crypt+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 ac_func_search_save_LIBS=$LIBS
5413 ac_cv_search_crypt=no
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 #include "confdefs.h"
5418 /* Override any gcc2 internal prototype to avoid an error. */
5422 /* We use char because int might match the return type of a gcc2
5423 builtin and then its argument prototype would still apply. */
5425 #ifdef F77_DUMMY_MAIN
5429 int F77_DUMMY_MAIN() { return 1; }
5439 rm -f conftest.$ac_objext conftest$ac_exeext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441 (eval $ac_link) 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -s conftest$ac_exeext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_cv_search_crypt="none required"
5453 echo "$as_me: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5457 if test "$ac_cv_search_crypt" = no; then
5458 for ac_lib in crypt; do
5459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 #include "confdefs.h"
5464 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5471 #ifdef F77_DUMMY_MAIN
5475 int F77_DUMMY_MAIN() { return 1; }
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487 (eval $ac_link) 2>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -s conftest$ac_exeext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_search_crypt="-l$ac_lib"
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5506 LIBS=$ac_func_search_save_LIBS
5508 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5509 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5510 if test "$ac_cv_search_crypt" != no; then
5511 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5517 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5518 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5519 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 ac_check_lib_save_LIBS=$LIBS
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line $LINENO "configure"
5526 #include "confdefs.h"
5528 /* Override any gcc2 internal prototype to avoid an error. */
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5534 char __inet_ntoa ();
5535 #ifdef F77_DUMMY_MAIN
5539 int F77_DUMMY_MAIN() { return 1; }
5549 rm -f conftest.$ac_objext conftest$ac_exeext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551 (eval $ac_link) 2>&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -s conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_lib_bind___inet_ntoa=yes
5563 echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 ac_cv_lib_bind___inet_ntoa=no
5567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5568 LIBS=$ac_check_lib_save_LIBS
5570 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5571 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5572 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5573 cat >>confdefs.h <<_ACEOF
5574 #define HAVE_LIBBIND 1
5582 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5583 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5584 if test "${ac_cv_search_fdatasync+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_func_search_save_LIBS=$LIBS
5588 ac_cv_search_fdatasync=no
5589 cat >conftest.$ac_ext <<_ACEOF
5590 #line $LINENO "configure"
5591 #include "confdefs.h"
5593 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5600 #ifdef F77_DUMMY_MAIN
5604 int F77_DUMMY_MAIN() { return 1; }
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -s conftest$ac_exeext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5626 ac_cv_search_fdatasync="none required"
5628 echo "$as_me: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5632 if test "$ac_cv_search_fdatasync" = no; then
5633 for ac_lib in rt posix4; do
5634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5635 cat >conftest.$ac_ext <<_ACEOF
5636 #line $LINENO "configure"
5637 #include "confdefs.h"
5639 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5646 #ifdef F77_DUMMY_MAIN
5650 int F77_DUMMY_MAIN() { return 1; }
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662 (eval $ac_link) 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try='test -s conftest$ac_exeext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_search_fdatasync="-l$ac_lib"
5675 echo "$as_me: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_func_search_save_LIBS
5683 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5684 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5685 if test "$ac_cv_search_fdatasync" != no; then
5686 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5692 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5693 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5694 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 ac_check_lib_save_LIBS=$LIBS
5698 LIBS="-lcygipc $LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5703 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5710 #ifdef F77_DUMMY_MAIN
5714 int F77_DUMMY_MAIN() { return 1; }
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726 (eval $ac_link) 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -s conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_lib_cygipc_shmget=yes
5738 echo "$as_me: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5740 ac_cv_lib_cygipc_shmget=no
5742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5743 LIBS=$ac_check_lib_save_LIBS
5745 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5746 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5747 if test $ac_cv_lib_cygipc_shmget = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define HAVE_LIBCYGIPC 1
5752 LIBS="-lcygipc $LIBS"
5757 if test "$with_readline" = yes; then
5759 echo "$as_me:$LINENO: checking for readline" >&5
5760 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5762 if test "${pgac_cv_check_readline+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 pgac_cv_check_readline=no
5766 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5767 for pgac_rllib in -lreadline -ledit ; do
5768 pgac_save_LIBS=$LIBS
5769 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5770 cat >conftest.$ac_ext <<_ACEOF
5771 #line $LINENO "configure"
5772 #include "confdefs.h"
5774 /* Override any gcc2 internal prototype to avoid an error. */
5778 /* We use char because int might match the return type of a gcc2
5779 builtin and then its argument prototype would still apply. */
5781 #ifdef F77_DUMMY_MAIN
5785 int F77_DUMMY_MAIN() { return 1; }
5795 rm -f conftest.$ac_objext conftest$ac_exeext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5797 (eval $ac_link) 2>&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -s conftest$ac_exeext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5808 # NetBSD and OpenBSD have a broken linker that does not
5809 # recognize dependent libraries
5810 case $host_os in netbsd* | openbsd* )
5813 *) pgac_lib=" -lcurses" ;;
5817 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5821 echo "$as_me: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825 LIBS=$pgac_save_LIBS
5828 LIBS=$pgac_save_LIBS
5832 if test "$pgac_cv_check_readline" != no ; then
5834 cat >>confdefs.h <<\_ACEOF
5835 #define HAVE_LIBREADLINE 1
5838 LIBS="$pgac_cv_check_readline $LIBS"
5839 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5840 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5842 echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5845 if test x"$pgac_cv_check_readline" = x"no"; then
5846 { { echo "$as_me:$LINENO: error: readline library not found
5847 If you have readline already installed, see config.log for details on the
5848 failure. It is possible the compiler isn't looking in the proper directory.
5849 Use --without-readline to disable readline support." >&5
5850 echo "$as_me: error: readline library not found
5851 If you have readline already installed, see config.log for details on the
5852 failure. It is possible the compiler isn't looking in the proper directory.
5853 Use --without-readline to disable readline support." >&2;}
5854 { (exit 1); exit 1; }; }
5858 if test "$with_zlib" = yes; then
5860 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5861 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5862 if test "${ac_cv_lib_z_inflate+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 ac_check_lib_save_LIBS=$LIBS
5867 cat >conftest.$ac_ext <<_ACEOF
5868 #line $LINENO "configure"
5869 #include "confdefs.h"
5871 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5878 #ifdef F77_DUMMY_MAIN
5882 int F77_DUMMY_MAIN() { return 1; }
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894 (eval $ac_link) 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -s conftest$ac_exeext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_lib_z_inflate=yes
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_lib_z_inflate=no
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5914 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5915 if test $ac_cv_lib_z_inflate = yes; then
5916 cat >>confdefs.h <<_ACEOF
5923 { { echo "$as_me:$LINENO: error: zlib library not found
5924 If you have zlib already installed, see config.log for details on the
5925 failure. It is possible the compiler isn't looking in the proper directory.
5926 Use --without-zlib to disable zlib support." >&5
5927 echo "$as_me: error: zlib library not found
5928 If you have zlib already installed, see config.log for details on the
5929 failure. It is possible the compiler isn't looking in the proper directory.
5930 Use --without-zlib to disable zlib support." >&2;}
5931 { (exit 1); exit 1; }; }
5936 if test "$with_krb4" = yes ; then
5938 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5939 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5940 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 ac_check_lib_save_LIBS=$LIBS
5945 cat >conftest.$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5947 #include "confdefs.h"
5949 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5955 char des_encrypt ();
5956 #ifdef F77_DUMMY_MAIN
5960 int F77_DUMMY_MAIN() { return 1; }
5970 rm -f conftest.$ac_objext conftest$ac_exeext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972 (eval $ac_link) 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try='test -s conftest$ac_exeext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 ac_cv_lib_des_des_encrypt=yes
5984 echo "$as_me: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 ac_cv_lib_des_des_encrypt=no
5988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5989 LIBS=$ac_check_lib_save_LIBS
5991 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5992 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5993 if test $ac_cv_lib_des_des_encrypt = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define HAVE_LIBDES 1
6001 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6002 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6003 { (exit 1); exit 1; }; }
6007 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6008 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6009 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_check_lib_save_LIBS=$LIBS
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6018 /* Override any gcc2 internal prototype to avoid an error. */
6022 /* We use char because int might match the return type of a gcc2
6023 builtin and then its argument prototype would still apply. */
6024 char krb_sendauth ();
6025 #ifdef F77_DUMMY_MAIN
6029 int F77_DUMMY_MAIN() { return 1; }
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041 (eval $ac_link) 2>&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -s conftest$ac_exeext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 ac_cv_lib_krb_krb_sendauth=yes
6053 echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_krb_krb_sendauth=no
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6060 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6061 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6062 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6063 cat >>confdefs.h <<_ACEOF
6064 #define HAVE_LIBKRB 1
6070 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6071 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6072 { (exit 1); exit 1; }; }
6077 if test "$with_krb5" = yes ; then
6078 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6079 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6080 if test "${ac_cv_search_com_err+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_func_search_save_LIBS=$LIBS
6084 ac_cv_search_com_err=no
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 #include "confdefs.h"
6089 /* Override any gcc2 internal prototype to avoid an error. */
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6096 #ifdef F77_DUMMY_MAIN
6100 int F77_DUMMY_MAIN() { return 1; }
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_search_com_err="none required"
6124 echo "$as_me: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128 if test "$ac_cv_search_com_err" = no; then
6129 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6131 cat >conftest.$ac_ext <<_ACEOF
6132 #line $LINENO "configure"
6133 #include "confdefs.h"
6135 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6142 #ifdef F77_DUMMY_MAIN
6146 int F77_DUMMY_MAIN() { return 1; }
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6158 (eval $ac_link) 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_search_com_err="-l$ac_lib"
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_func_search_save_LIBS
6179 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6180 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6181 if test "$ac_cv_search_com_err" != no; then
6182 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6185 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6186 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6187 { (exit 1); exit 1; }; }
6190 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6191 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6192 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_func_search_save_LIBS=$LIBS
6196 ac_cv_search_krb5_encrypt=no
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6199 #include "confdefs.h"
6201 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6207 char krb5_encrypt ();
6208 #ifdef F77_DUMMY_MAIN
6212 int F77_DUMMY_MAIN() { return 1; }
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest$ac_exeext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_search_krb5_encrypt="none required"
6236 echo "$as_me: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6240 if test "$ac_cv_search_krb5_encrypt" = no; then
6241 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6243 cat >conftest.$ac_ext <<_ACEOF
6244 #line $LINENO "configure"
6245 #include "confdefs.h"
6247 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char krb5_encrypt ();
6254 #ifdef F77_DUMMY_MAIN
6258 int F77_DUMMY_MAIN() { return 1; }
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -s conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_search_krb5_encrypt="-l$ac_lib"
6283 echo "$as_me: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6289 LIBS=$ac_func_search_save_LIBS
6291 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6292 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6293 if test "$ac_cv_search_krb5_encrypt" != no; then
6294 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6297 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6298 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6299 { (exit 1); exit 1; }; }
6302 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6303 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6304 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_func_search_save_LIBS=$LIBS
6308 ac_cv_search_krb5_sendauth=no
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 #include "confdefs.h"
6313 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char krb5_sendauth ();
6320 #ifdef F77_DUMMY_MAIN
6324 int F77_DUMMY_MAIN() { return 1; }
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336 (eval $ac_link) 2>&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -s conftest$ac_exeext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_cv_search_krb5_sendauth="none required"
6348 echo "$as_me: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6352 if test "$ac_cv_search_krb5_sendauth" = no; then
6353 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 #include "confdefs.h"
6359 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6365 char krb5_sendauth ();
6366 #ifdef F77_DUMMY_MAIN
6370 int F77_DUMMY_MAIN() { return 1; }
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -s conftest$ac_exeext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_search_krb5_sendauth="-l$ac_lib"
6395 echo "$as_me: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 LIBS=$ac_func_search_save_LIBS
6403 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6404 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6405 if test "$ac_cv_search_krb5_sendauth" != no; then
6406 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6409 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6410 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6411 { (exit 1); exit 1; }; }
6416 if test "$with_openssl" = yes ; then
6418 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6419 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6420 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 ac_check_lib_save_LIBS=$LIBS
6424 LIBS="-lcrypto $LIBS"
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6427 #include "confdefs.h"
6429 /* Override any gcc2 internal prototype to avoid an error. */
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6435 char CRYPTO_new_ex_data ();
6436 #ifdef F77_DUMMY_MAIN
6440 int F77_DUMMY_MAIN() { return 1; }
6445 CRYPTO_new_ex_data ();
6450 rm -f conftest.$ac_objext conftest$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6464 echo "$as_me: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6466 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6469 LIBS=$ac_check_lib_save_LIBS
6471 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6472 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6473 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6474 cat >>confdefs.h <<_ACEOF
6475 #define HAVE_LIBCRYPTO 1
6478 LIBS="-lcrypto $LIBS"
6481 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6482 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6483 { (exit 1); exit 1; }; }
6487 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6488 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6489 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 ac_check_lib_save_LIBS=$LIBS
6494 cat >conftest.$ac_ext <<_ACEOF
6495 #line $LINENO "configure"
6496 #include "confdefs.h"
6498 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6504 char SSL_library_init ();
6505 #ifdef F77_DUMMY_MAIN
6509 int F77_DUMMY_MAIN() { return 1; }
6514 SSL_library_init ();
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_lib_ssl_SSL_library_init=yes
6533 echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 ac_cv_lib_ssl_SSL_library_init=no
6537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 LIBS=$ac_check_lib_save_LIBS
6540 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6541 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6542 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6543 cat >>confdefs.h <<_ACEOF
6544 #define HAVE_LIBSSL 1
6550 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6551 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6552 { (exit 1); exit 1; }; }
6557 if test "$with_pam" = yes ; then
6559 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6560 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6561 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 ac_check_lib_save_LIBS=$LIBS
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6577 #ifdef F77_DUMMY_MAIN
6581 int F77_DUMMY_MAIN() { return 1; }
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -s conftest$ac_exeext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 ac_cv_lib_pam_pam_start=yes
6605 echo "$as_me: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 ac_cv_lib_pam_pam_start=no
6609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6612 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6613 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6614 if test $ac_cv_lib_pam_pam_start = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define HAVE_LIBPAM 1
6622 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6623 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6624 { (exit 1); exit 1; }; }
6634 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6635 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6636 if test "${ac_cv_header_stdc+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 cat >conftest.$ac_ext <<_ACEOF
6640 #line $LINENO "configure"
6641 #include "confdefs.h"
6648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6651 egrep -v '^ *\+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } >/dev/null; then
6656 if test -s conftest.err; then
6657 ac_cpp_err=$ac_c_preproc_warn_flag
6664 if test -z "$ac_cpp_err"; then
6665 ac_cv_header_stdc=yes
6667 echo "$as_me: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 ac_cv_header_stdc=no
6671 rm -f conftest.err conftest.$ac_ext
6673 if test $ac_cv_header_stdc = yes; then
6674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6677 #include "confdefs.h"
6681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682 egrep "memchr" >/dev/null 2>&1; then
6685 ac_cv_header_stdc=no
6691 if test $ac_cv_header_stdc = yes; then
6692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6693 cat >conftest.$ac_ext <<_ACEOF
6694 #line $LINENO "configure"
6695 #include "confdefs.h"
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 egrep "free" >/dev/null 2>&1; then
6703 ac_cv_header_stdc=no
6709 if test $ac_cv_header_stdc = yes; then
6710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711 if test "$cross_compiling" = yes; then
6714 cat >conftest.$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6716 #include "confdefs.h"
6718 #if ((' ' & 0x0FF) == 0x020)
6719 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6720 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6722 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6723 || ('j' <= (c) && (c) <= 'r') \
6724 || ('s' <= (c) && (c) <= 'z'))
6725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6733 for (i = 0; i < 256; i++)
6734 if (XOR (islower (i), ISLOWER (i))
6735 || toupper (i) != TOUPPER (i))
6740 rm -f conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6753 echo "$as_me: program exited with status $ac_status" >&5
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 ac_cv_header_stdc=no
6759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6763 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6764 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6765 if test $ac_cv_header_stdc = yes; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define STDC_HEADERS 1
6773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6784 inttypes.h stdint.h unistd.h
6786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6787 echo "$as_me:$LINENO: checking for $ac_header" >&5
6788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6793 #line $LINENO "configure"
6794 #include "confdefs.h"
6795 $ac_includes_default
6797 #include <$ac_header>
6799 rm -f conftest.$ac_objext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 eval "$as_ac_Header=yes"
6813 echo "$as_me: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 eval "$as_ac_Header=no"
6817 rm -f conftest.$ac_objext conftest.$ac_ext
6819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6852 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
6854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6856 echo "$as_me:$LINENO: checking for $ac_header" >&5
6857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6864 # Is the header compilable?
6865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6867 cat >conftest.$ac_ext <<_ACEOF
6868 #line $LINENO "configure"
6869 #include "confdefs.h"
6870 $ac_includes_default
6871 #include <$ac_header>
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -s conftest.$ac_objext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 ac_header_compiler=yes
6887 echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 ac_header_compiler=no
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6893 echo "${ECHO_T}$ac_header_compiler" >&6
6895 # Is the header present?
6896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 #include "confdefs.h"
6901 #include <$ac_header>
6903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6906 egrep -v '^ *\+' conftest.er1 >conftest.err
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } >/dev/null; then
6911 if test -s conftest.err; then
6912 ac_cpp_err=$ac_c_preproc_warn_flag
6919 if test -z "$ac_cpp_err"; then
6920 ac_header_preproc=yes
6922 echo "$as_me: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6924 ac_header_preproc=no
6926 rm -f conftest.err conftest.$ac_ext
6927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6928 echo "${ECHO_T}$ac_header_preproc" >&6
6930 # So? What about this header?
6931 case $ac_header_compiler:$ac_header_preproc in
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6945 echo "$as_me:$LINENO: checking for $ac_header" >&5
6946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 eval "$as_ac_Header=$ac_header_preproc"
6952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6957 cat >>confdefs.h <<_ACEOF
6958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6966 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6967 # netinet/in.h is included first.
6969 for ac_header in netinet/in.h
6971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973 echo "$as_me:$LINENO: checking for $ac_header" >&5
6974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6981 # Is the header compilable?
6982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6986 #include "confdefs.h"
6987 $ac_includes_default
6988 #include <$ac_header>
6990 rm -f conftest.$ac_objext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992 (eval $ac_compile) 2>&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_header_compiler=yes
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_header_compiler=no
7008 rm -f conftest.$ac_objext conftest.$ac_ext
7009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7010 echo "${ECHO_T}$ac_header_compiler" >&6
7012 # Is the header present?
7013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7015 cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 #include "confdefs.h"
7018 #include <$ac_header>
7020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7023 egrep -v '^ *\+' conftest.er1 >conftest.err
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } >/dev/null; then
7028 if test -s conftest.err; then
7029 ac_cpp_err=$ac_c_preproc_warn_flag
7036 if test -z "$ac_cpp_err"; then
7037 ac_header_preproc=yes
7039 echo "$as_me: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7041 ac_header_preproc=no
7043 rm -f conftest.err conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7045 echo "${ECHO_T}$ac_header_preproc" >&6
7047 # So? What about this header?
7048 case $ac_header_compiler:$ac_header_preproc in
7050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7062 echo "$as_me:$LINENO: checking for $ac_header" >&5
7063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 eval "$as_ac_Header=$ac_header_preproc"
7069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7083 for ac_header in netinet/tcp.h
7085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7086 echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7093 #include "confdefs.h"
7094 $ac_includes_default
7095 #ifdef HAVE_NETINET_IN_H
7096 #include <netinet/in.h>
7100 #include <$ac_header>
7102 rm -f conftest.$ac_objext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104 (eval $ac_compile) 2>&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -s conftest.$ac_objext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 eval "$as_ac_Header=yes"
7116 echo "$as_me: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7118 eval "$as_ac_Header=no"
7120 rm -f conftest.$ac_objext conftest.$ac_ext
7122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7125 cat >>confdefs.h <<_ACEOF
7126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7134 if test "$with_readline" = yes; then
7136 for ac_header in readline/readline.h
7138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140 echo "$as_me:$LINENO: checking for $ac_header" >&5
7141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7148 # Is the header compilable?
7149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 #include "confdefs.h"
7154 $ac_includes_default
7155 #include <$ac_header>
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -s conftest.$ac_objext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_header_compiler=yes
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 ac_header_compiler=no
7175 rm -f conftest.$ac_objext conftest.$ac_ext
7176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7177 echo "${ECHO_T}$ac_header_compiler" >&6
7179 # Is the header present?
7180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7183 #line $LINENO "configure"
7184 #include "confdefs.h"
7185 #include <$ac_header>
7187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7190 egrep -v '^ *\+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } >/dev/null; then
7195 if test -s conftest.err; then
7196 ac_cpp_err=$ac_c_preproc_warn_flag
7203 if test -z "$ac_cpp_err"; then
7204 ac_header_preproc=yes
7206 echo "$as_me: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 ac_header_preproc=no
7210 rm -f conftest.err conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 echo "${ECHO_T}$ac_header_preproc" >&6
7214 # So? What about this header?
7215 case $ac_header_compiler:$ac_header_preproc in
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7229 echo "$as_me:$LINENO: checking for $ac_header" >&5
7230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 eval "$as_ac_Header=$ac_header_preproc"
7236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7241 cat >>confdefs.h <<_ACEOF
7242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7247 for ac_header in editline/readline.h
7249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251 echo "$as_me:$LINENO: checking for $ac_header" >&5
7252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7259 # Is the header compilable?
7260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7262 cat >conftest.$ac_ext <<_ACEOF
7263 #line $LINENO "configure"
7264 #include "confdefs.h"
7265 $ac_includes_default
7266 #include <$ac_header>
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } &&
7274 { ac_try='test -s conftest.$ac_objext'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_header_compiler=yes
7282 echo "$as_me: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7284 ac_header_compiler=no
7286 rm -f conftest.$ac_objext conftest.$ac_ext
7287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7288 echo "${ECHO_T}$ac_header_compiler" >&6
7290 # Is the header present?
7291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 #include "confdefs.h"
7296 #include <$ac_header>
7298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7301 egrep -v '^ *\+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } >/dev/null; then
7306 if test -s conftest.err; then
7307 ac_cpp_err=$ac_c_preproc_warn_flag
7314 if test -z "$ac_cpp_err"; then
7315 ac_header_preproc=yes
7317 echo "$as_me: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7319 ac_header_preproc=no
7321 rm -f conftest.err conftest.$ac_ext
7322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7323 echo "${ECHO_T}$ac_header_preproc" >&6
7325 # So? What about this header?
7326 case $ac_header_compiler:$ac_header_preproc in
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7340 echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 eval "$as_ac_Header=$ac_header_preproc"
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7352 cat >>confdefs.h <<_ACEOF
7353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7358 for ac_header in readline.h
7360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7362 echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7370 # Is the header compilable?
7371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 #include "confdefs.h"
7376 $ac_includes_default
7377 #include <$ac_header>
7379 rm -f conftest.$ac_objext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -s conftest.$ac_objext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 ac_header_compiler=yes
7393 echo "$as_me: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 ac_header_compiler=no
7397 rm -f conftest.$ac_objext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7399 echo "${ECHO_T}$ac_header_compiler" >&6
7401 # Is the header present?
7402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7405 #line $LINENO "configure"
7406 #include "confdefs.h"
7407 #include <$ac_header>
7409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7412 egrep -v '^ *\+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } >/dev/null; then
7417 if test -s conftest.err; then
7418 ac_cpp_err=$ac_c_preproc_warn_flag
7425 if test -z "$ac_cpp_err"; then
7426 ac_header_preproc=yes
7428 echo "$as_me: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7430 ac_header_preproc=no
7432 rm -f conftest.err conftest.$ac_ext
7433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7434 echo "${ECHO_T}$ac_header_preproc" >&6
7436 # So? What about this header?
7437 case $ac_header_compiler:$ac_header_preproc in
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7451 echo "$as_me:$LINENO: checking for $ac_header" >&5
7452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 eval "$as_ac_Header=$ac_header_preproc"
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7463 cat >>confdefs.h <<_ACEOF
7464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 { { echo "$as_me:$LINENO: error: readline header not found
7469 If you have readline already installed, see config.log for details on the
7470 failure. It is possible the compiler isn't looking in the proper directory.
7471 Use --without-readline to disable readline support." >&5
7472 echo "$as_me: error: readline header not found
7473 If you have readline already installed, see config.log for details on the
7474 failure. It is possible the compiler isn't looking in the proper directory.
7475 Use --without-readline to disable readline support." >&2;}
7476 { (exit 1); exit 1; }; }
7490 for ac_header in readline/history.h
7492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7494 echo "$as_me:$LINENO: checking for $ac_header" >&5
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7502 # Is the header compilable?
7503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 #include "confdefs.h"
7508 $ac_includes_default
7509 #include <$ac_header>
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_header_compiler=yes
7525 echo "$as_me: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 ac_header_compiler=no
7529 rm -f conftest.$ac_objext conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531 echo "${ECHO_T}$ac_header_compiler" >&6
7533 # Is the header present?
7534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 #include "confdefs.h"
7539 #include <$ac_header>
7541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7544 egrep -v '^ *\+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev/null; then
7549 if test -s conftest.err; then
7550 ac_cpp_err=$ac_c_preproc_warn_flag
7557 if test -z "$ac_cpp_err"; then
7558 ac_header_preproc=yes
7560 echo "$as_me: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7562 ac_header_preproc=no
7564 rm -f conftest.err conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566 echo "${ECHO_T}$ac_header_preproc" >&6
7568 # So? What about this header?
7569 case $ac_header_compiler:$ac_header_preproc in
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7583 echo "$as_me:$LINENO: checking for $ac_header" >&5
7584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 eval "$as_ac_Header=$ac_header_preproc"
7590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7595 cat >>confdefs.h <<_ACEOF
7596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7601 for ac_header in editline/history.h
7603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613 # Is the header compilable?
7614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line $LINENO "configure"
7618 #include "confdefs.h"
7619 $ac_includes_default
7620 #include <$ac_header>
7622 rm -f conftest.$ac_objext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_header_compiler=yes
7636 echo "$as_me: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7638 ac_header_compiler=no
7640 rm -f conftest.$ac_objext conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642 echo "${ECHO_T}$ac_header_compiler" >&6
7644 # Is the header present?
7645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 #include "confdefs.h"
7650 #include <$ac_header>
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7655 egrep -v '^ *\+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } >/dev/null; then
7660 if test -s conftest.err; then
7661 ac_cpp_err=$ac_c_preproc_warn_flag
7668 if test -z "$ac_cpp_err"; then
7669 ac_header_preproc=yes
7671 echo "$as_me: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7673 ac_header_preproc=no
7675 rm -f conftest.err conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7677 echo "${ECHO_T}$ac_header_preproc" >&6
7679 # So? What about this header?
7680 case $ac_header_compiler:$ac_header_preproc in
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7694 echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 eval "$as_ac_Header=$ac_header_preproc"
7701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7706 cat >>confdefs.h <<_ACEOF
7707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 for ac_header in history.h
7714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo "$as_me:$LINENO: checking for $ac_header" >&5
7717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7724 # Is the header compilable?
7725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 #include "confdefs.h"
7730 $ac_includes_default
7731 #include <$ac_header>
7733 rm -f conftest.$ac_objext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735 (eval $ac_compile) 2>&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_header_compiler=yes
7747 echo "$as_me: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7749 ac_header_compiler=no
7751 rm -f conftest.$ac_objext conftest.$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7753 echo "${ECHO_T}$ac_header_compiler" >&6
7755 # Is the header present?
7756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7760 #include "confdefs.h"
7761 #include <$ac_header>
7763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7766 egrep -v '^ *\+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } >/dev/null; then
7771 if test -s conftest.err; then
7772 ac_cpp_err=$ac_c_preproc_warn_flag
7779 if test -z "$ac_cpp_err"; then
7780 ac_header_preproc=yes
7782 echo "$as_me: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7784 ac_header_preproc=no
7786 rm -f conftest.err conftest.$ac_ext
7787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7788 echo "${ECHO_T}$ac_header_preproc" >&6
7790 # So? What about this header?
7791 case $ac_header_compiler:$ac_header_preproc in
7793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7805 echo "$as_me:$LINENO: checking for $ac_header" >&5
7806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 eval "$as_ac_Header=$ac_header_preproc"
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7817 cat >>confdefs.h <<_ACEOF
7818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7822 { { echo "$as_me:$LINENO: error: history header not found
7823 If you have readline already installed, see config.log for details on the
7824 failure. It is possible the compiler isn't looking in the proper directory.
7825 Use --without-readline to disable readline support." >&5
7826 echo "$as_me: error: history header not found
7827 If you have readline already installed, see config.log for details on the
7828 failure. It is possible the compiler isn't looking in the proper directory.
7829 Use --without-readline to disable readline support." >&2;}
7830 { (exit 1); exit 1; }; }
7845 if test "$with_zlib" = yes; then
7846 if test "${ac_cv_header_zlib_h+set}" = set; then
7847 echo "$as_me:$LINENO: checking for zlib.h" >&5
7848 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7849 if test "${ac_cv_header_zlib_h+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7853 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7855 # Is the header compilable?
7856 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7857 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line $LINENO "configure"
7860 #include "confdefs.h"
7861 $ac_includes_default
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_header_compiler=yes
7878 echo "$as_me: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 ac_header_compiler=no
7882 rm -f conftest.$ac_objext conftest.$ac_ext
7883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7884 echo "${ECHO_T}$ac_header_compiler" >&6
7886 # Is the header present?
7887 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7888 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line $LINENO "configure"
7891 #include "confdefs.h"
7894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7897 egrep -v '^ *\+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } >/dev/null; then
7902 if test -s conftest.err; then
7903 ac_cpp_err=$ac_c_preproc_warn_flag
7910 if test -z "$ac_cpp_err"; then
7911 ac_header_preproc=yes
7913 echo "$as_me: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7915 ac_header_preproc=no
7917 rm -f conftest.err conftest.$ac_ext
7918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7919 echo "${ECHO_T}$ac_header_preproc" >&6
7921 # So? What about this header?
7922 case $ac_header_compiler:$ac_header_preproc in
7924 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7925 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7926 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7927 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7929 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7930 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7932 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7934 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7936 echo "$as_me:$LINENO: checking for zlib.h" >&5
7937 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7938 if test "${ac_cv_header_zlib_h+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 ac_cv_header_zlib_h=$ac_header_preproc
7943 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7944 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7947 if test $ac_cv_header_zlib_h = yes; then
7950 { { echo "$as_me:$LINENO: error: zlib header not found
7951 If you have zlib already installed, see config.log for details on the
7952 failure. It is possible the compiler isn't looking in the proper directory.
7953 Use --without-zlib to disable zlib support." >&5
7954 echo "$as_me: error: zlib header not found
7955 If you have zlib already installed, see config.log for details on the
7956 failure. It is possible the compiler isn't looking in the proper directory.
7957 Use --without-zlib to disable zlib support." >&2;}
7958 { (exit 1); exit 1; }; }
7964 if test "$with_krb4" = yes ; then
7965 if test "${ac_cv_header_krb_h+set}" = set; then
7966 echo "$as_me:$LINENO: checking for krb.h" >&5
7967 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7968 if test "${ac_cv_header_krb_h+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7972 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7974 # Is the header compilable?
7975 echo "$as_me:$LINENO: checking krb.h usability" >&5
7976 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7977 cat >conftest.$ac_ext <<_ACEOF
7978 #line $LINENO "configure"
7979 #include "confdefs.h"
7980 $ac_includes_default
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try='test -s conftest.$ac_objext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_header_compiler=yes
7997 echo "$as_me: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
7999 ac_header_compiler=no
8001 rm -f conftest.$ac_objext conftest.$ac_ext
8002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8003 echo "${ECHO_T}$ac_header_compiler" >&6
8005 # Is the header present?
8006 echo "$as_me:$LINENO: checking krb.h presence" >&5
8007 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016 egrep -v '^ *\+' conftest.er1 >conftest.err
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } >/dev/null; then
8021 if test -s conftest.err; then
8022 ac_cpp_err=$ac_c_preproc_warn_flag
8029 if test -z "$ac_cpp_err"; then
8030 ac_header_preproc=yes
8032 echo "$as_me: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8034 ac_header_preproc=no
8036 rm -f conftest.err conftest.$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8038 echo "${ECHO_T}$ac_header_preproc" >&6
8040 # So? What about this header?
8041 case $ac_header_compiler:$ac_header_preproc in
8043 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8044 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8046 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8048 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8049 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8051 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8055 echo "$as_me:$LINENO: checking for krb.h" >&5
8056 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8057 if test "${ac_cv_header_krb_h+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 ac_cv_header_krb_h=$ac_header_preproc
8062 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8063 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8066 if test $ac_cv_header_krb_h = yes; then
8069 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8070 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8071 { (exit 1); exit 1; }; }
8077 if test "$with_krb5" = yes ; then
8078 if test "${ac_cv_header_krb5_h+set}" = set; then
8079 echo "$as_me:$LINENO: checking for krb5.h" >&5
8080 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8081 if test "${ac_cv_header_krb5_h+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8085 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8087 # Is the header compilable?
8088 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8089 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 #include "confdefs.h"
8093 $ac_includes_default
8096 rm -f conftest.$ac_objext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 (eval $ac_compile) 2>&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -s conftest.$ac_objext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_header_compiler=yes
8110 echo "$as_me: failed program was:" >&5
8111 cat conftest.$ac_ext >&5
8112 ac_header_compiler=no
8114 rm -f conftest.$ac_objext conftest.$ac_ext
8115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8116 echo "${ECHO_T}$ac_header_compiler" >&6
8118 # Is the header present?
8119 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8120 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 #include "confdefs.h"
8126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8129 egrep -v '^ *\+' conftest.er1 >conftest.err
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } >/dev/null; then
8134 if test -s conftest.err; then
8135 ac_cpp_err=$ac_c_preproc_warn_flag
8142 if test -z "$ac_cpp_err"; then
8143 ac_header_preproc=yes
8145 echo "$as_me: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8147 ac_header_preproc=no
8149 rm -f conftest.err conftest.$ac_ext
8150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8151 echo "${ECHO_T}$ac_header_preproc" >&6
8153 # So? What about this header?
8154 case $ac_header_compiler:$ac_header_preproc in
8156 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8157 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8158 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8159 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8161 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8162 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8163 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8164 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8165 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8166 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8168 echo "$as_me:$LINENO: checking for krb5.h" >&5
8169 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8170 if test "${ac_cv_header_krb5_h+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 ac_cv_header_krb5_h=$ac_header_preproc
8175 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8176 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8179 if test $ac_cv_header_krb5_h = yes; then
8182 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8183 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8184 { (exit 1); exit 1; }; }
8188 if test "${ac_cv_header_com_err_h+set}" = set; then
8189 echo "$as_me:$LINENO: checking for com_err.h" >&5
8190 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8191 if test "${ac_cv_header_com_err_h+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8195 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8197 # Is the header compilable?
8198 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8199 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8200 cat >conftest.$ac_ext <<_ACEOF
8201 #line $LINENO "configure"
8202 #include "confdefs.h"
8203 $ac_includes_default
8204 #include <com_err.h>
8206 rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208 (eval $ac_compile) 2>&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -s conftest.$ac_objext'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; }; then
8218 ac_header_compiler=yes
8220 echo "$as_me: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8222 ac_header_compiler=no
8224 rm -f conftest.$ac_objext conftest.$ac_ext
8225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8226 echo "${ECHO_T}$ac_header_compiler" >&6
8228 # Is the header present?
8229 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8230 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line $LINENO "configure"
8233 #include "confdefs.h"
8234 #include <com_err.h>
8236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8239 egrep -v '^ *\+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } >/dev/null; then
8244 if test -s conftest.err; then
8245 ac_cpp_err=$ac_c_preproc_warn_flag
8252 if test -z "$ac_cpp_err"; then
8253 ac_header_preproc=yes
8255 echo "$as_me: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8257 ac_header_preproc=no
8259 rm -f conftest.err conftest.$ac_ext
8260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8261 echo "${ECHO_T}$ac_header_preproc" >&6
8263 # So? What about this header?
8264 case $ac_header_compiler:$ac_header_preproc in
8266 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8267 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8269 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8271 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8272 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8274 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8276 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8278 echo "$as_me:$LINENO: checking for com_err.h" >&5
8279 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8280 if test "${ac_cv_header_com_err_h+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 ac_cv_header_com_err_h=$ac_header_preproc
8285 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8286 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8289 if test $ac_cv_header_com_err_h = yes; then
8292 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8293 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8294 { (exit 1); exit 1; }; }
8300 if test "$with_openssl" = yes ; then
8301 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8302 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8303 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8304 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8308 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8310 # Is the header compilable?
8311 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8312 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8314 #line $LINENO "configure"
8315 #include "confdefs.h"
8316 $ac_includes_default
8317 #include <openssl/ssl.h>
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -s conftest.$ac_objext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_header_compiler=yes
8333 echo "$as_me: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8335 ac_header_compiler=no
8337 rm -f conftest.$ac_objext conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8339 echo "${ECHO_T}$ac_header_compiler" >&6
8341 # Is the header present?
8342 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8343 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 #include <openssl/ssl.h>
8349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8352 egrep -v '^ *\+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } >/dev/null; then
8357 if test -s conftest.err; then
8358 ac_cpp_err=$ac_c_preproc_warn_flag
8365 if test -z "$ac_cpp_err"; then
8366 ac_header_preproc=yes
8368 echo "$as_me: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8370 ac_header_preproc=no
8372 rm -f conftest.err conftest.$ac_ext
8373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8374 echo "${ECHO_T}$ac_header_preproc" >&6
8376 # So? What about this header?
8377 case $ac_header_compiler:$ac_header_preproc in
8379 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8380 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8382 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8384 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8385 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8386 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8387 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8389 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8391 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8392 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8393 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8398 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8399 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8402 if test $ac_cv_header_openssl_ssl_h = yes; then
8405 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8406 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8407 { (exit 1); exit 1; }; }
8411 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8412 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8413 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8414 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8420 # Is the header compilable?
8421 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8422 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 #include "confdefs.h"
8426 $ac_includes_default
8427 #include <openssl/err.h>
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -s conftest.$ac_objext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 ac_header_compiler=yes
8443 echo "$as_me: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 ac_header_compiler=no
8447 rm -f conftest.$ac_objext conftest.$ac_ext
8448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8449 echo "${ECHO_T}$ac_header_compiler" >&6
8451 # Is the header present?
8452 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8453 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 #include "confdefs.h"
8457 #include <openssl/err.h>
8459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8462 egrep -v '^ *\+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } >/dev/null; then
8467 if test -s conftest.err; then
8468 ac_cpp_err=$ac_c_preproc_warn_flag
8475 if test -z "$ac_cpp_err"; then
8476 ac_header_preproc=yes
8478 echo "$as_me: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8480 ac_header_preproc=no
8482 rm -f conftest.err conftest.$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8484 echo "${ECHO_T}$ac_header_preproc" >&6
8486 # So? What about this header?
8487 case $ac_header_compiler:$ac_header_preproc in
8489 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8490 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8492 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8494 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8495 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8497 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8499 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8501 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8502 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8503 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 ac_cv_header_openssl_err_h=$ac_header_preproc
8508 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8509 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8512 if test $ac_cv_header_openssl_err_h = yes; then
8515 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8516 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8517 { (exit 1); exit 1; }; }
8523 if test "$with_pam" = yes ; then
8525 for ac_header in security/pam_appl.h
8527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8529 echo "$as_me:$LINENO: checking for $ac_header" >&5
8530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8537 # Is the header compilable?
8538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8540 cat >conftest.$ac_ext <<_ACEOF
8541 #line $LINENO "configure"
8542 #include "confdefs.h"
8543 $ac_includes_default
8544 #include <$ac_header>
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -s conftest.$ac_objext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_header_compiler=yes
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 ac_header_compiler=no
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8566 echo "${ECHO_T}$ac_header_compiler" >&6
8568 # Is the header present?
8569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8571 cat >conftest.$ac_ext <<_ACEOF
8572 #line $LINENO "configure"
8573 #include "confdefs.h"
8574 #include <$ac_header>
8576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8579 egrep -v '^ *\+' conftest.er1 >conftest.err
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } >/dev/null; then
8584 if test -s conftest.err; then
8585 ac_cpp_err=$ac_c_preproc_warn_flag
8592 if test -z "$ac_cpp_err"; then
8593 ac_header_preproc=yes
8595 echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_header_preproc=no
8599 rm -f conftest.err conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8601 echo "${ECHO_T}$ac_header_preproc" >&6
8603 # So? What about this header?
8604 case $ac_header_compiler:$ac_header_preproc in
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8618 echo "$as_me:$LINENO: checking for $ac_header" >&5
8619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 eval "$as_ac_Header=$ac_header_preproc"
8625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8630 cat >>confdefs.h <<_ACEOF
8631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8636 for ac_header in pam/pam_appl.h
8638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8640 echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8648 # Is the header compilable?
8649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8652 #line $LINENO "configure"
8653 #include "confdefs.h"
8654 $ac_includes_default
8655 #include <$ac_header>
8657 rm -f conftest.$ac_objext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8659 (eval $ac_compile) 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest.$ac_objext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_header_compiler=yes
8671 echo "$as_me: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 ac_header_compiler=no
8675 rm -f conftest.$ac_objext conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8677 echo "${ECHO_T}$ac_header_compiler" >&6
8679 # Is the header present?
8680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8682 cat >conftest.$ac_ext <<_ACEOF
8683 #line $LINENO "configure"
8684 #include "confdefs.h"
8685 #include <$ac_header>
8687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8690 egrep -v '^ *\+' conftest.er1 >conftest.err
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } >/dev/null; then
8695 if test -s conftest.err; then
8696 ac_cpp_err=$ac_c_preproc_warn_flag
8703 if test -z "$ac_cpp_err"; then
8704 ac_header_preproc=yes
8706 echo "$as_me: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 ac_header_preproc=no
8710 rm -f conftest.err conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8712 echo "${ECHO_T}$ac_header_preproc" >&6
8714 # So? What about this header?
8715 case $ac_header_compiler:$ac_header_preproc in
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8729 echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 eval "$as_ac_Header=$ac_header_preproc"
8736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8741 cat >>confdefs.h <<_ACEOF
8742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8746 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8747 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8748 { (exit 1); exit 1; }; }
8761 ## Types, structures, compiler characteristics
8765 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8766 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8767 if test "${ac_cv_c_const+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8774 #ifdef F77_DUMMY_MAIN
8778 int F77_DUMMY_MAIN() { return 1; }
8783 /* FIXME: Include the comments suggested by Paul. */
8785 /* Ultrix mips cc rejects this. */
8786 typedef int charset[2];
8788 /* SunOS 4.1.1 cc rejects this. */
8789 char const *const *ccp;
8791 /* NEC SVR4.0.2 mips cc rejects this. */
8792 struct point {int x, y;};
8793 static struct point const zero = {0,0};
8794 /* AIX XL C 1.02.0.0 rejects this.
8795 It does not let you subtract one const X* pointer from another in
8796 an arm of an if-expression whose if-part is not a constant
8798 const char *g = "string";
8799 ccp = &g + (g ? g-g : 0);
8800 /* HPUX 7.0 cc rejects these. */
8803 ccp = (char const *const *) p;
8804 { /* SCO 3.2v4 cc rejects this. */
8806 char const *s = 0 ? (char *) 0 : (char const *) 0;
8810 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8812 const int *foo = &x[0];
8815 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8816 typedef const int *iptr;
8820 { /* AIX XL C 1.02.0.0 rejects this saying
8821 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8822 struct s { int j; const int *ap[3]; };
8823 struct s *b; b->j = 5;
8825 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8834 rm -f conftest.$ac_objext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8836 (eval $ac_compile) 2>&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -s conftest.$ac_objext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8848 echo "$as_me: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8852 rm -f conftest.$ac_objext conftest.$ac_ext
8854 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8855 echo "${ECHO_T}$ac_cv_c_const" >&6
8856 if test $ac_cv_c_const = no; then
8858 cat >>confdefs.h <<\_ACEOF
8864 echo "$as_me:$LINENO: checking for inline" >&5
8865 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8866 if test "${ac_cv_c_inline+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 for ac_kw in inline __inline__ __inline; do
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 #include "confdefs.h"
8875 static $ac_kw int static_foo () {return 0; }
8876 $ac_kw int foo () {return 0; }
8880 rm -f conftest.$ac_objext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8882 (eval $ac_compile) 2>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -s conftest.$ac_objext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_c_inline=$ac_kw; break
8894 echo "$as_me: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8897 rm -f conftest.$ac_objext conftest.$ac_ext
8901 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8902 echo "${ECHO_T}$ac_cv_c_inline" >&6
8903 case $ac_cv_c_inline in
8906 cat >>confdefs.h <<\_ACEOF
8910 *) cat >>confdefs.h <<_ACEOF
8911 #define inline $ac_cv_c_inline
8916 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8917 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8918 if test "${ac_cv_c_stringize+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 cat >conftest.$ac_ext <<_ACEOF
8922 #line $LINENO "configure"
8923 #include "confdefs.h"
8926 char *s = x(teststring);
8928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8929 egrep "#teststring" >/dev/null 2>&1; then
8930 ac_cv_c_stringize=no
8932 ac_cv_c_stringize=yes
8937 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8938 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8939 if test $ac_cv_c_stringize = yes; then
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_STRINGIZE 1
8947 echo "$as_me:$LINENO: checking for signed types" >&5
8948 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8949 if test "${pgac_cv_c_signed+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8954 #include "confdefs.h"
8956 #ifdef F77_DUMMY_MAIN
8960 int F77_DUMMY_MAIN() { return 1; }
8965 signed char c; signed short s; signed int i;
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 pgac_cv_c_signed=yes
8984 echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8988 rm -f conftest.$ac_objext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8991 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8992 if test x"$pgac_cv_c_signed" = xno ; then
8994 cat >>confdefs.h <<\_ACEOF
8999 echo "$as_me:$LINENO: checking for working volatile" >&5
9000 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9001 if test "${ac_cv_c_volatile+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9006 #include "confdefs.h"
9008 #ifdef F77_DUMMY_MAIN
9012 int F77_DUMMY_MAIN() { return 1; }
9024 rm -f conftest.$ac_objext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026 (eval $ac_compile) 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try='test -s conftest.$ac_objext'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; }; then
9036 ac_cv_c_volatile=yes
9038 echo "$as_me: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9042 rm -f conftest.$ac_objext conftest.$ac_ext
9044 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9045 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9046 if test $ac_cv_c_volatile = no; then
9048 cat >>confdefs.h <<\_ACEOF
9054 echo "$as_me:$LINENO: checking for __func__" >&5
9055 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9056 if test "${pgac_cv_funcname_func_support+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 cat >conftest.$ac_ext <<_ACEOF
9060 #line $LINENO "configure"
9061 #include "confdefs.h"
9063 #ifdef F77_DUMMY_MAIN
9067 int F77_DUMMY_MAIN() { return 1; }
9072 printf("%s\n", __func__);
9077 rm -f conftest.$ac_objext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9079 (eval $ac_compile) 2>&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -s conftest.$ac_objext'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; }; then
9089 pgac_cv_funcname_func_support=yes
9091 echo "$as_me: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9093 pgac_cv_funcname_func_support=no
9095 rm -f conftest.$ac_objext conftest.$ac_ext
9097 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9098 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9099 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9101 cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_FUNCNAME__FUNC 1
9106 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9107 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9108 if test "${pgac_cv_funcname_function_support+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 cat >conftest.$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9113 #include "confdefs.h"
9115 #ifdef F77_DUMMY_MAIN
9119 int F77_DUMMY_MAIN() { return 1; }
9124 printf("%s\n", __FUNCTION__);
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 pgac_cv_funcname_function_support=yes
9143 echo "$as_me: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9145 pgac_cv_funcname_function_support=no
9147 rm -f conftest.$ac_objext conftest.$ac_ext
9149 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9150 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9151 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_FUNCNAME__FUNCTION 1
9159 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9160 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9161 if test "${ac_cv_struct_tm+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 #include <sys/types.h>
9170 #ifdef F77_DUMMY_MAIN
9174 int F77_DUMMY_MAIN() { return 1; }
9179 struct tm *tp; tp->tm_sec;
9184 rm -f conftest.$ac_objext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9186 (eval $ac_compile) 2>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try='test -s conftest.$ac_objext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_struct_tm=time.h
9198 echo "$as_me: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9200 ac_cv_struct_tm=sys/time.h
9202 rm -f conftest.$ac_objext conftest.$ac_ext
9204 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9205 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9206 if test $ac_cv_struct_tm = sys/time.h; then
9208 cat >>confdefs.h <<\_ACEOF
9209 #define TM_IN_SYS_TIME 1
9214 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9215 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9216 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 cat >conftest.$ac_ext <<_ACEOF
9220 #line $LINENO "configure"
9221 #include "confdefs.h"
9222 #include <sys/types.h>
9223 #include <$ac_cv_struct_tm>
9226 #ifdef F77_DUMMY_MAIN
9230 int F77_DUMMY_MAIN() { return 1; }
9235 static struct tm ac_aggr;
9236 if (ac_aggr.tm_zone)
9242 rm -f conftest.$ac_objext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9244 (eval $ac_compile) 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_member_struct_tm_tm_zone=yes
9256 echo "$as_me: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9258 ac_cv_member_struct_tm_tm_zone=no
9260 rm -f conftest.$ac_objext conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9263 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9264 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_STRUCT_TM_TM_ZONE 1
9273 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9275 cat >>confdefs.h <<\_ACEOF
9276 #define HAVE_TM_ZONE 1
9280 echo "$as_me:$LINENO: checking for tzname" >&5
9281 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9282 if test "${ac_cv_var_tzname+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9286 #line $LINENO "configure"
9287 #include "confdefs.h"
9289 #ifndef tzname /* For SGI. */
9290 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9293 #ifdef F77_DUMMY_MAIN
9297 int F77_DUMMY_MAIN() { return 1; }
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309 (eval $ac_link) 2>&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_var_tzname=yes
9321 echo "$as_me: failed program was:" >&5
9322 cat conftest.$ac_ext >&5
9325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9327 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9328 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9329 if test $ac_cv_var_tzname = yes; then
9331 cat >>confdefs.h <<\_ACEOF
9332 #define HAVE_TZNAME 1
9338 echo "$as_me:$LINENO: checking for union semun" >&5
9339 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9340 if test "${ac_cv_type_union_semun+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 cat >conftest.$ac_ext <<_ACEOF
9344 #line $LINENO "configure"
9345 #include "confdefs.h"
9346 #include <sys/types.h>
9347 #include <sys/ipc.h>
9348 #include <sys/sem.h>
9350 #ifdef F77_DUMMY_MAIN
9354 int F77_DUMMY_MAIN() { return 1; }
9359 if ((union semun *) 0)
9361 if (sizeof (union semun))
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_type_union_semun=yes
9381 echo "$as_me: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 ac_cv_type_union_semun=no
9385 rm -f conftest.$ac_objext conftest.$ac_ext
9387 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9388 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9389 if test $ac_cv_type_union_semun = yes; then
9391 cat >>confdefs.h <<_ACEOF
9392 #define HAVE_UNION_SEMUN 1
9398 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9399 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9400 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9406 #include <sys/types.h>
9407 #ifdef HAVE_SYS_UN_H
9412 #ifdef F77_DUMMY_MAIN
9416 int F77_DUMMY_MAIN() { return 1; }
9421 if ((struct sockaddr_un *) 0)
9423 if (sizeof (struct sockaddr_un))
9429 rm -f conftest.$ac_objext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431 (eval $ac_compile) 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_type_struct_sockaddr_un=yes
9443 echo "$as_me: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445 ac_cv_type_struct_sockaddr_un=no
9447 rm -f conftest.$ac_objext conftest.$ac_ext
9449 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9450 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9451 if test $ac_cv_type_struct_sockaddr_un = yes; then
9453 cat >>confdefs.h <<_ACEOF
9454 #define HAVE_STRUCT_SOCKADDR_UN 1
9460 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
9461 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
9462 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 cat >conftest.$ac_ext <<_ACEOF
9466 #line $LINENO "configure"
9467 #include "confdefs.h"
9468 #include <sys/types.h>
9469 #include <sys/socket.h>
9473 #ifdef F77_DUMMY_MAIN
9477 int F77_DUMMY_MAIN() { return 1; }
9482 if ((struct addrinfo *) 0)
9484 if (sizeof (struct addrinfo))
9490 rm -f conftest.$ac_objext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492 (eval $ac_compile) 2>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -s conftest.$ac_objext'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 ac_cv_type_struct_addrinfo=yes
9504 echo "$as_me: failed program was:" >&5
9505 cat conftest.$ac_ext >&5
9506 ac_cv_type_struct_addrinfo=no
9508 rm -f conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
9511 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
9512 if test $ac_cv_type_struct_addrinfo = yes; then
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_STRUCT_ADDRINFO 1
9522 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9523 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9524 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9528 #line $LINENO "configure"
9529 #include "confdefs.h"
9530 #include <sys/param.h>
9531 #include <sys/socket.h>
9532 #include <sys/ucred.h>
9534 #ifdef F77_DUMMY_MAIN
9538 int F77_DUMMY_MAIN() { return 1; }
9543 if ((struct cmsgcred *) 0)
9545 if (sizeof (struct cmsgcred))
9551 rm -f conftest.$ac_objext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9553 (eval $ac_compile) 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_type_struct_cmsgcred=yes
9565 echo "$as_me: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9567 ac_cv_type_struct_cmsgcred=no
9569 rm -f conftest.$ac_objext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9572 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9573 if test $ac_cv_type_struct_cmsgcred = yes; then
9575 cat >>confdefs.h <<_ACEOF
9576 #define HAVE_STRUCT_CMSGCRED 1
9581 echo "$as_me:$LINENO: checking for struct fcred" >&5
9582 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9583 if test "${ac_cv_type_struct_fcred+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cat >conftest.$ac_ext <<_ACEOF
9587 #line $LINENO "configure"
9588 #include "confdefs.h"
9589 #include <sys/param.h>
9590 #include <sys/socket.h>
9591 #include <sys/ucred.h>
9593 #ifdef F77_DUMMY_MAIN
9597 int F77_DUMMY_MAIN() { return 1; }
9602 if ((struct fcred *) 0)
9604 if (sizeof (struct fcred))
9610 rm -f conftest.$ac_objext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9612 (eval $ac_compile) 2>&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try='test -s conftest.$ac_objext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_type_struct_fcred=yes
9624 echo "$as_me: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 ac_cv_type_struct_fcred=no
9628 rm -f conftest.$ac_objext conftest.$ac_ext
9630 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9631 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9632 if test $ac_cv_type_struct_fcred = yes; then
9634 cat >>confdefs.h <<_ACEOF
9635 #define HAVE_STRUCT_FCRED 1
9640 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9641 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9642 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 #include "confdefs.h"
9648 #include <sys/param.h>
9649 #include <sys/socket.h>
9650 #include <sys/ucred.h>
9652 #ifdef F77_DUMMY_MAIN
9656 int F77_DUMMY_MAIN() { return 1; }
9661 if ((struct sockcred *) 0)
9663 if (sizeof (struct sockcred))
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -s conftest.$ac_objext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_type_struct_sockcred=yes
9683 echo "$as_me: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9685 ac_cv_type_struct_sockcred=no
9687 rm -f conftest.$ac_objext conftest.$ac_ext
9689 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9690 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9691 if test $ac_cv_type_struct_sockcred = yes; then
9693 cat >>confdefs.h <<_ACEOF
9694 #define HAVE_STRUCT_SOCKCRED 1
9701 if test "$with_zlib" = yes; then
9702 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9703 # did not). While we could work around the lack of z_streamp, it
9704 # seems unwise to encourage people to use such old zlib versions...
9705 echo "$as_me:$LINENO: checking for z_streamp" >&5
9706 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9707 if test "${ac_cv_type_z_streamp+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 cat >conftest.$ac_ext <<_ACEOF
9711 #line $LINENO "configure"
9712 #include "confdefs.h"
9715 #ifdef F77_DUMMY_MAIN
9719 int F77_DUMMY_MAIN() { return 1; }
9724 if ((z_streamp *) 0)
9726 if (sizeof (z_streamp))
9732 rm -f conftest.$ac_objext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9734 (eval $ac_compile) 2>&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -s conftest.$ac_objext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 ac_cv_type_z_streamp=yes
9746 echo "$as_me: failed program was:" >&5
9747 cat conftest.$ac_ext >&5
9748 ac_cv_type_z_streamp=no
9750 rm -f conftest.$ac_objext conftest.$ac_ext
9752 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9753 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9754 if test $ac_cv_type_z_streamp = yes; then
9757 { { echo "$as_me:$LINENO: error: zlib version is too old
9758 Use --without-zlib to disable zlib support." >&5
9759 echo "$as_me: error: zlib version is too old
9760 Use --without-zlib to disable zlib support." >&2;}
9761 { (exit 1); exit 1; }; }
9766 if test "$with_krb5" = yes; then
9767 # Check for differences between MIT and Heimdal (KTH) releases
9768 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9769 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9770 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 cat >conftest.$ac_ext <<_ACEOF
9774 #line $LINENO "configure"
9775 #include "confdefs.h"
9778 #ifdef F77_DUMMY_MAIN
9782 int F77_DUMMY_MAIN() { return 1; }
9787 static krb5_ticket ac_aggr;
9788 if (ac_aggr.enc_part2)
9794 rm -f conftest.$ac_objext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796 (eval $ac_compile) 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -s conftest.$ac_objext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_member_krb5_ticket_enc_part2=yes
9808 echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 ac_cv_member_krb5_ticket_enc_part2=no
9812 rm -f conftest.$ac_objext conftest.$ac_ext
9814 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9815 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9816 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_KRB5_TICKET_ENC_PART2 1
9824 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9825 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9826 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 #include "confdefs.h"
9834 #ifdef F77_DUMMY_MAIN
9838 int F77_DUMMY_MAIN() { return 1; }
9843 static krb5_ticket ac_aggr;
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -s conftest.$ac_objext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9862 ac_cv_member_krb5_ticket_client=yes
9864 echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 ac_cv_member_krb5_ticket_client=no
9868 rm -f conftest.$ac_objext conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9871 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9872 if test $ac_cv_member_krb5_ticket_client = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define HAVE_KRB5_TICKET_CLIENT 1
9880 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9881 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9882 { (exit 1); exit 1; }; }
9887 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9888 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9889 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9897 #ifdef F77_DUMMY_MAIN
9901 int F77_DUMMY_MAIN() { return 1; }
9906 static krb5_error ac_aggr;
9907 if (ac_aggr.text.data)
9913 rm -f conftest.$ac_objext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -s conftest.$ac_objext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_member_krb5_error_text_data=yes
9927 echo "$as_me: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 ac_cv_member_krb5_error_text_data=no
9931 rm -f conftest.$ac_objext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9934 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9935 if test $ac_cv_member_krb5_error_text_data = yes; then
9937 cat >>confdefs.h <<_ACEOF
9938 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9943 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9944 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9945 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 #line $LINENO "configure"
9950 #include "confdefs.h"
9953 #ifdef F77_DUMMY_MAIN
9957 int F77_DUMMY_MAIN() { return 1; }
9962 static krb5_error ac_aggr;
9969 rm -f conftest.$ac_objext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_member_krb5_error_e_data=yes
9983 echo "$as_me: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 ac_cv_member_krb5_error_e_data=no
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9989 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9990 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9991 if test $ac_cv_member_krb5_error_e_data = yes; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define HAVE_KRB5_ERROR_E_DATA 1
9999 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10000 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10001 { (exit 1); exit 1; }; }
10010 ## Functions, global variables
10013 echo "$as_me:$LINENO: checking for int timezone" >&5
10014 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10015 if test "${pgac_cv_var_int_timezone+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10019 #line $LINENO "configure"
10020 #include "confdefs.h"
10023 #ifdef F77_DUMMY_MAIN
10024 # ifdef __cplusplus
10027 int F77_DUMMY_MAIN() { return 1; }
10032 res = timezone / 60;
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 pgac_cv_var_int_timezone=yes
10051 echo "$as_me: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10053 pgac_cv_var_int_timezone=no
10055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10057 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10058 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10059 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_INT_TIMEZONE
10066 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10067 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10068 if test "${ac_cv_func_accept_arg1+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 if test "${ac_cv_func_accept_arg2+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 if test "${ac_cv_func_accept_arg3+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10078 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10079 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10080 cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10082 #include "confdefs.h"
10083 #ifdef HAVE_SYS_TYPES_H
10084 #include <sys/types.h>
10086 #ifdef HAVE_SYS_SOCKET_H
10087 #include <sys/socket.h>
10089 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10090 #ifdef F77_DUMMY_MAIN
10091 # ifdef __cplusplus
10094 int F77_DUMMY_MAIN() { return 1; }
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_not_found=no; break 3
10118 echo "$as_me: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10122 rm -f conftest.$ac_objext conftest.$ac_ext
10126 if test "$ac_not_found" = yes; then
10127 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10128 echo "$as_me: error: could not determine argument types" >&2;}
10129 { (exit 1); exit 1; }; }
10131 if test "$ac_cv_func_accept_arg3" = "void"; then
10132 ac_cv_func_accept_arg3=int
10140 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10141 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10143 cat >>confdefs.h <<_ACEOF
10144 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10148 cat >>confdefs.h <<_ACEOF
10149 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10153 cat >>confdefs.h <<_ACEOF
10154 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10158 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10159 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10160 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10166 #include <sys/time.h>
10167 #ifdef F77_DUMMY_MAIN
10168 # ifdef __cplusplus
10171 int F77_DUMMY_MAIN() { return 1; }
10176 struct timeval *tp;
10177 struct timezone *tzp;
10178 gettimeofday(tp,tzp);
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 pgac_cv_func_gettimeofday_1arg=no
10197 echo "$as_me: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10199 pgac_cv_func_gettimeofday_1arg=yes
10201 rm -f conftest.$ac_objext conftest.$ac_ext
10203 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10204 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10205 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10207 cat >>confdefs.h <<\_ACEOF
10208 #define GETTIMEOFDAY_1ARG
10215 # SunOS doesn't handle negative byte comparisons properly with +/- return
10216 echo "$as_me:$LINENO: checking for working memcmp" >&5
10217 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10218 if test "${ac_cv_func_memcmp_working+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 if test "$cross_compiling" = yes; then
10222 ac_cv_func_memcmp_working=no
10224 cat >conftest.$ac_ext <<_ACEOF
10225 #line $LINENO "configure"
10226 #include "confdefs.h"
10228 #ifdef F77_DUMMY_MAIN
10229 # ifdef __cplusplus
10232 int F77_DUMMY_MAIN() { return 1; }
10238 /* Some versions of memcmp are not 8-bit clean. */
10239 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10240 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10243 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10244 or more and with at least one buffer not starting on a 4-byte boundary.
10245 William Lewis provided this test program. */
10250 for (i = 0; i < 4; i++)
10254 strcpy (a, "--------01111111");
10255 strcpy (b, "--------10000000");
10256 if (memcmp (a, b, 16) >= 0)
10266 rm -f conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_func_memcmp_working=yes
10279 echo "$as_me: program exited with status $ac_status" >&5
10280 echo "$as_me: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 ( exit $ac_status )
10283 ac_cv_func_memcmp_working=no
10285 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10288 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10289 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10290 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10308 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid
10310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10311 echo "$as_me:$LINENO: checking for $ac_func" >&5
10312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_var+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 cat >conftest.$ac_ext <<_ACEOF
10317 #line $LINENO "configure"
10318 #include "confdefs.h"
10319 /* System header to define __stub macros and hopefully few prototypes,
10320 which can conflict with char $ac_func (); below. */
10321 #include <assert.h>
10322 /* Override any gcc2 internal prototype to avoid an error. */
10326 /* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
10331 #ifdef F77_DUMMY_MAIN
10332 # ifdef __cplusplus
10335 int F77_DUMMY_MAIN() { return 1; }
10340 /* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
10343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355 (eval $ac_link) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 eval "$as_ac_var=yes"
10367 echo "$as_me: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 eval "$as_ac_var=no"
10371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10375 if test `eval echo '${'$as_ac_var'}'` = yes; then
10376 cat >>confdefs.h <<_ACEOF
10377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10384 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10385 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10386 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10391 #include "confdefs.h"
10392 #include <unistd.h>
10394 #ifdef F77_DUMMY_MAIN
10395 # ifdef __cplusplus
10398 int F77_DUMMY_MAIN() { return 1; }
10404 char *p = (char *) fdatasync;
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_cv_have_decl_fdatasync=yes
10425 echo "$as_me: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 ac_cv_have_decl_fdatasync=no
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10431 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10432 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10433 if test $ac_cv_have_decl_fdatasync = yes; then
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_DECL_FDATASYNC 1
10441 cat >>confdefs.h <<_ACEOF
10442 #define HAVE_DECL_FDATASYNC 0
10450 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10451 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10452 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 #include "confdefs.h"
10458 $ac_includes_default
10459 #include <netinet/in.h>
10461 #ifdef F77_DUMMY_MAIN
10462 # ifdef __cplusplus
10465 int F77_DUMMY_MAIN() { return 1; }
10470 if ((struct sockaddr_in6 *) 0)
10472 if (sizeof (struct sockaddr_in6))
10478 rm -f conftest.$ac_objext
10479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10480 (eval $ac_compile) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -s conftest.$ac_objext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_type_struct_sockaddr_in6=yes
10492 echo "$as_me: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 ac_cv_type_struct_sockaddr_in6=no
10496 rm -f conftest.$ac_objext conftest.$ac_ext
10498 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
10499 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
10500 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10501 echo "$as_me:$LINENO: checking for inet_ntop" >&5
10502 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
10503 if test "${ac_cv_func_inet_ntop+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 cat >conftest.$ac_ext <<_ACEOF
10507 #line $LINENO "configure"
10508 #include "confdefs.h"
10509 /* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char inet_ntop (); below. */
10511 #include <assert.h>
10512 /* Override any gcc2 internal prototype to avoid an error. */
10516 /* We use char because int might match the return type of a gcc2
10517 builtin and then its argument prototype would still apply. */
10521 #ifdef F77_DUMMY_MAIN
10522 # ifdef __cplusplus
10525 int F77_DUMMY_MAIN() { return 1; }
10530 /* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
10533 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -s conftest$ac_exeext'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_func_inet_ntop=yes
10557 echo "$as_me: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10559 ac_cv_func_inet_ntop=no
10561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10563 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
10564 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
10565 if test $ac_cv_func_inet_ntop = yes; then
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_IPV6 1
10576 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10577 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10578 if test "${pgac_cv_var_PS_STRINGS+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 <machine/vmparam.h>
10585 #include <sys/exec.h>
10587 #ifdef F77_DUMMY_MAIN
10588 # ifdef __cplusplus
10591 int F77_DUMMY_MAIN() { return 1; }
10596 PS_STRINGS->ps_nargvstr = 1;
10597 PS_STRINGS->ps_argvstr = "foo";
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 pgac_cv_var_PS_STRINGS=yes
10616 echo "$as_me: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 pgac_cv_var_PS_STRINGS=no
10620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10622 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10623 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10624 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_PS_STRINGS
10633 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10634 # is missing. Yes, there are machines that have only one. We may
10635 # also decide to use snprintf.c if snprintf() is present but does not
10636 # have working "long long int" support -- see below.
10638 pgac_need_repl_snprintf=no
10640 for ac_func in snprintf
10642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 echo "$as_me:$LINENO: checking for $ac_func" >&5
10644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_var+set}\" = set"; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 #include "confdefs.h"
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char $ac_func (); below. */
10653 #include <assert.h>
10654 /* Override any gcc2 internal prototype to avoid an error. */
10658 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */
10663 #ifdef F77_DUMMY_MAIN
10664 # ifdef __cplusplus
10667 int F77_DUMMY_MAIN() { return 1; }
10672 /* The GNU C library defines this for functions which it implements
10673 to always fail with ENOSYS. Some functions are actually named
10674 something starting with __ and the normal name is an alias. */
10675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687 (eval $ac_link) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -s conftest$ac_exeext'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 eval "$as_ac_var=yes"
10699 echo "$as_me: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 eval "$as_ac_var=no"
10703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10707 if test `eval echo '${'$as_ac_var'}'` = yes; then
10708 cat >>confdefs.h <<_ACEOF
10709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10713 pgac_need_repl_snprintf=yes
10718 for ac_func in vsnprintf
10720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10721 echo "$as_me:$LINENO: checking for $ac_func" >&5
10722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10723 if eval "test \"\${$as_ac_var+set}\" = set"; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10728 #include "confdefs.h"
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char $ac_func (); below. */
10731 #include <assert.h>
10732 /* Override any gcc2 internal prototype to avoid an error. */
10736 /* We use char because int might match the return type of a gcc2
10737 builtin and then its argument prototype would still apply. */
10741 #ifdef F77_DUMMY_MAIN
10742 # ifdef __cplusplus
10745 int F77_DUMMY_MAIN() { return 1; }
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -s conftest$ac_exeext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 eval "$as_ac_var=yes"
10777 echo "$as_me: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 eval "$as_ac_var=no"
10781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10785 if test `eval echo '${'$as_ac_var'}'` = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10791 pgac_need_repl_snprintf=yes
10797 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10798 # include/c.h will provide declarations. Note this is a separate test
10799 # from whether the functions exist in the C library --- there are
10800 # systems that have the functions but don't bother to declare them :-(
10802 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10803 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10804 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 #include "confdefs.h"
10810 $ac_includes_default
10811 #ifdef F77_DUMMY_MAIN
10812 # ifdef __cplusplus
10815 int F77_DUMMY_MAIN() { return 1; }
10821 char *p = (char *) snprintf;
10828 rm -f conftest.$ac_objext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10830 (eval $ac_compile) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -s conftest.$ac_objext'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_cv_have_decl_snprintf=yes
10842 echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 ac_cv_have_decl_snprintf=no
10846 rm -f conftest.$ac_objext conftest.$ac_ext
10848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10849 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10850 if test $ac_cv_have_decl_snprintf = yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define HAVE_DECL_SNPRINTF 1
10858 cat >>confdefs.h <<_ACEOF
10859 #define HAVE_DECL_SNPRINTF 0
10864 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10865 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10866 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 cat >conftest.$ac_ext <<_ACEOF
10870 #line $LINENO "configure"
10871 #include "confdefs.h"
10872 $ac_includes_default
10873 #ifdef F77_DUMMY_MAIN
10874 # ifdef __cplusplus
10877 int F77_DUMMY_MAIN() { return 1; }
10883 char *p = (char *) vsnprintf;
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -s conftest.$ac_objext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 ac_cv_have_decl_vsnprintf=yes
10904 echo "$as_me: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 ac_cv_have_decl_vsnprintf=no
10908 rm -f conftest.$ac_objext conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10911 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10912 if test $ac_cv_have_decl_vsnprintf = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_DECL_VSNPRINTF 1
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_DECL_VSNPRINTF 0
10930 # do this one the hard way in case isinf() is a macro
10931 echo "$as_me:$LINENO: checking for isinf" >&5
10932 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10933 if test "${ac_cv_func_isinf+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 cat >conftest.$ac_ext <<_ACEOF
10937 #line $LINENO "configure"
10938 #include "confdefs.h"
10941 #ifdef F77_DUMMY_MAIN
10942 # ifdef __cplusplus
10945 int F77_DUMMY_MAIN() { return 1; }
10950 double x = 0.0; int res = isinf(x);
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957 (eval $ac_link) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_func_isinf=yes
10969 echo "$as_me: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 ac_cv_func_isinf=no
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10976 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10978 if test $ac_cv_func_isinf = yes ; then
10980 cat >>confdefs.h <<\_ACEOF
10981 #define HAVE_ISINF 1
10985 LIBOBJS="$LIBOBJS isinf.$ac_objext"
10986 # Look for a way to implement a substitute for isinf()
10991 for ac_func in fpclass fp_class fp_class_d class
10993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10994 echo "$as_me:$LINENO: checking for $ac_func" >&5
10995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10996 if eval "test \"\${$as_ac_var+set}\" = set"; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11001 #include "confdefs.h"
11002 /* System header to define __stub macros and hopefully few prototypes,
11003 which can conflict with char $ac_func (); below. */
11004 #include <assert.h>
11005 /* Override any gcc2 internal prototype to avoid an error. */
11009 /* We use char because int might match the return type of a gcc2
11010 builtin and then its argument prototype would still apply. */
11014 #ifdef F77_DUMMY_MAIN
11015 # ifdef __cplusplus
11018 int F77_DUMMY_MAIN() { return 1; }
11023 /* The GNU C library defines this for functions which it implements
11024 to always fail with ENOSYS. Some functions are actually named
11025 something starting with __ and the normal name is an alias. */
11026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 eval "$as_ac_var=yes"
11050 echo "$as_me: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11052 eval "$as_ac_var=no"
11054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11080 for ac_func in fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
11082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11083 echo "$as_me:$LINENO: checking for $ac_func" >&5
11084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11085 if eval "test \"\${$as_ac_var+set}\" = set"; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11090 #include "confdefs.h"
11091 /* System header to define __stub macros and hopefully few prototypes,
11092 which can conflict with char $ac_func (); below. */
11093 #include <assert.h>
11094 /* Override any gcc2 internal prototype to avoid an error. */
11098 /* We use char because int might match the return type of a gcc2
11099 builtin and then its argument prototype would still apply. */
11103 #ifdef F77_DUMMY_MAIN
11104 # ifdef __cplusplus
11107 int F77_DUMMY_MAIN() { return 1; }
11112 /* The GNU C library defines this for functions which it implements
11113 to always fail with ENOSYS. Some functions are actually named
11114 something starting with __ and the normal name is an alias. */
11115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 eval "$as_ac_var=yes"
11139 echo "$as_me: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 eval "$as_ac_var=no"
11143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11147 if test `eval echo '${'$as_ac_var'}'` = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11153 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11159 # system's version of getaddrinfo(), if any, may be used only if we found
11160 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11161 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11163 for ac_func in getaddrinfo
11165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11166 echo "$as_me:$LINENO: checking for $ac_func" >&5
11167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11168 if eval "test \"\${$as_ac_var+set}\" = set"; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11172 #line $LINENO "configure"
11173 #include "confdefs.h"
11174 /* System header to define __stub macros and hopefully few prototypes,
11175 which can conflict with char $ac_func (); below. */
11176 #include <assert.h>
11177 /* Override any gcc2 internal prototype to avoid an error. */
11181 /* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11186 #ifdef F77_DUMMY_MAIN
11187 # ifdef __cplusplus
11190 int F77_DUMMY_MAIN() { return 1; }
11195 /* The GNU C library defines this for functions which it implements
11196 to always fail with ENOSYS. Some functions are actually named
11197 something starting with __ and the normal name is an alias. */
11198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -s conftest$ac_exeext'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 eval "$as_ac_var=yes"
11222 echo "$as_me: failed program was:" >&5
11223 cat conftest.$ac_ext >&5
11224 eval "$as_ac_var=no"
11226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11230 if test `eval echo '${'$as_ac_var'}'` = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11236 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11242 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11245 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11246 # We override the previous test that said fseeko/ftello didn't exist
11247 # OS tests are also done in include/c.h and port/fseeko.c
11248 case $host_os in bsdi*|netbsd*)
11249 ac_cv_func_fseeko=yes
11252 # Solaris has a very slow qsort in certain cases, so we replace it.
11253 case $host_os in solaris*)
11254 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11257 # Win32 can't to rename or unlink on an open file
11258 case $host_os in win32*)
11259 LIBOBJS="$LIBOBJS dirmod.$ac_objext" ;;
11262 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11263 # this hackery with HPUXMATHLIB allows us to cope.
11267 if test -r /lib/pa1.1/libm.a ; then
11268 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11274 for ac_func in rint
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_var+set}\" = set"; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 cat >conftest.$ac_ext <<_ACEOF
11283 #line $LINENO "configure"
11284 #include "confdefs.h"
11285 /* System header to define __stub macros and hopefully few prototypes,
11286 which can conflict with char $ac_func (); below. */
11287 #include <assert.h>
11288 /* Override any gcc2 internal prototype to avoid an error. */
11292 /* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11297 #ifdef F77_DUMMY_MAIN
11298 # ifdef __cplusplus
11301 int F77_DUMMY_MAIN() { return 1; }
11306 /* The GNU C library defines this for functions which it implements
11307 to always fail with ENOSYS. Some functions are actually named
11308 something starting with __ and the normal name is an alias. */
11309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321 (eval $ac_link) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -s conftest$ac_exeext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 eval "$as_ac_var=yes"
11333 echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 eval "$as_ac_var=no"
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11347 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11348 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11349 if test "${ac_cv_lib_m_rint+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-lm $HPUXMATHLIB $LIBS"
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11356 #include "confdefs.h"
11358 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11365 #ifdef F77_DUMMY_MAIN
11366 # ifdef __cplusplus
11369 int F77_DUMMY_MAIN() { return 1; }
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381 (eval $ac_link) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -s conftest$ac_exeext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 ac_cv_lib_m_rint=yes
11393 echo "$as_me: failed program was:" >&5
11394 cat conftest.$ac_ext >&5
11395 ac_cv_lib_m_rint=no
11397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11400 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11401 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11402 if test $ac_cv_lib_m_rint = yes; then
11403 cat >>confdefs.h <<\_ACEOF
11404 #define HAVE_RINT 1
11414 if test "$with_readline" = yes; then
11415 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11416 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11418 #line $LINENO "configure"
11419 #include "confdefs.h"
11421 #ifdef HAVE_READLINE_READLINE_H
11422 # include <readline/readline.h>
11423 #elif defined(HAVE_READLINE_H)
11424 # include <readline.h>
11427 #ifdef F77_DUMMY_MAIN
11428 # ifdef __cplusplus
11431 int F77_DUMMY_MAIN() { return 1; }
11436 rl_completion_append_character = 'x';
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11443 (eval $ac_link) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -s conftest$ac_exeext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 echo "$as_me:$LINENO: result: yes" >&5
11454 echo "${ECHO_T}yes" >&6
11456 cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11461 echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 echo "$as_me:$LINENO: result: no" >&5
11464 echo "${ECHO_T}no" >&6
11466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11469 for ac_func in rl_completion_matches rl_filename_completion_function
11471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11472 echo "$as_me:$LINENO: checking for $ac_func" >&5
11473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11474 if eval "test \"\${$as_ac_var+set}\" = set"; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 cat >conftest.$ac_ext <<_ACEOF
11478 #line $LINENO "configure"
11479 #include "confdefs.h"
11480 /* System header to define __stub macros and hopefully few prototypes,
11481 which can conflict with char $ac_func (); below. */
11482 #include <assert.h>
11483 /* Override any gcc2 internal prototype to avoid an error. */
11487 /* We use char because int might match the return type of a gcc2
11488 builtin and then its argument prototype would still apply. */
11492 #ifdef F77_DUMMY_MAIN
11493 # ifdef __cplusplus
11496 int F77_DUMMY_MAIN() { return 1; }
11501 /* The GNU C library defines this for functions which it implements
11502 to always fail with ENOSYS. Some functions are actually named
11503 something starting with __ and the normal name is an alias. */
11504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11516 (eval $ac_link) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 eval "$as_ac_var=yes"
11528 echo "$as_me: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11530 eval "$as_ac_var=no"
11532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11536 if test `eval echo '${'$as_ac_var'}'` = yes; then
11537 cat >>confdefs.h <<_ACEOF
11538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11545 for ac_func in replace_history_entry
11547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11548 echo "$as_me:$LINENO: checking for $ac_func" >&5
11549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11550 if eval "test \"\${$as_ac_var+set}\" = set"; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 /* System header to define __stub macros and hopefully few prototypes,
11557 which can conflict with char $ac_func (); below. */
11558 #include <assert.h>
11559 /* Override any gcc2 internal prototype to avoid an error. */
11563 /* We use char because int might match the return type of a gcc2
11564 builtin and then its argument prototype would still apply. */
11568 #ifdef F77_DUMMY_MAIN
11569 # ifdef __cplusplus
11572 int F77_DUMMY_MAIN() { return 1; }
11577 /* The GNU C library defines this for functions which it implements
11578 to always fail with ENOSYS. Some functions are actually named
11579 something starting with __ and the normal name is an alias. */
11580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11590 rm -f conftest.$ac_objext conftest$ac_exeext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592 (eval $ac_link) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -s conftest$ac_exeext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 eval "$as_ac_var=yes"
11604 echo "$as_me: failed program was:" >&5
11605 cat conftest.$ac_ext >&5
11606 eval "$as_ac_var=no"
11608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11612 if test `eval echo '${'$as_ac_var'}'` = yes; then
11613 cat >>confdefs.h <<_ACEOF
11614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11623 echo "$as_me:$LINENO: checking for finite" >&5
11624 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 #include "confdefs.h"
11629 #ifdef F77_DUMMY_MAIN
11630 # ifdef __cplusplus
11633 int F77_DUMMY_MAIN() { return 1; }
11638 int dummy=finite(1.0);
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645 (eval $ac_link) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -s conftest$ac_exeext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_FINITE 1
11660 echo "$as_me:$LINENO: result: yes" >&5
11661 echo "${ECHO_T}yes" >&6
11663 echo "$as_me: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11665 echo "$as_me:$LINENO: result: no" >&5
11666 echo "${ECHO_T}no" >&6
11668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11670 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11671 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line $LINENO "configure"
11674 #include "confdefs.h"
11675 #include <setjmp.h>
11676 #ifdef F77_DUMMY_MAIN
11677 # ifdef __cplusplus
11680 int F77_DUMMY_MAIN() { return 1; }
11685 sigjmp_buf x; sigsetjmp(x, 1);
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11692 (eval $ac_link) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -s conftest$ac_exeext'
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
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_SIGSETJMP 1
11707 echo "$as_me:$LINENO: result: yes" >&5
11708 echo "${ECHO_T}yes" >&6
11710 echo "$as_me: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11712 echo "$as_me:$LINENO: result: no" >&5
11713 echo "${ECHO_T}no" >&6
11715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11717 echo "$as_me:$LINENO: checking for syslog" >&5
11718 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11719 if test "${ac_cv_func_syslog+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 cat >conftest.$ac_ext <<_ACEOF
11723 #line $LINENO "configure"
11724 #include "confdefs.h"
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char syslog (); below. */
11727 #include <assert.h>
11728 /* Override any gcc2 internal prototype to avoid an error. */
11732 /* We use char because int might match the return type of a gcc2
11733 builtin and then its argument prototype would still apply. */
11737 #ifdef F77_DUMMY_MAIN
11738 # ifdef __cplusplus
11741 int F77_DUMMY_MAIN() { return 1; }
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined (__stub_syslog) || defined (__stub___syslog)
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest$ac_exeext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_func_syslog=yes
11773 echo "$as_me: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 ac_cv_func_syslog=no
11777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11779 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11780 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11781 if test $ac_cv_func_syslog = yes; then
11782 if test "${ac_cv_header_syslog_h+set}" = set; then
11783 echo "$as_me:$LINENO: checking for syslog.h" >&5
11784 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11785 if test "${ac_cv_header_syslog_h+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11789 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11791 # Is the header compilable?
11792 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11793 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11794 cat >conftest.$ac_ext <<_ACEOF
11795 #line $LINENO "configure"
11796 #include "confdefs.h"
11797 $ac_includes_default
11798 #include <syslog.h>
11800 rm -f conftest.$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802 (eval $ac_compile) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -s conftest.$ac_objext'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; }; then
11812 ac_header_compiler=yes
11814 echo "$as_me: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 ac_header_compiler=no
11818 rm -f conftest.$ac_objext conftest.$ac_ext
11819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11820 echo "${ECHO_T}$ac_header_compiler" >&6
11822 # Is the header present?
11823 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11824 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11827 #include "confdefs.h"
11828 #include <syslog.h>
11830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833 egrep -v '^ *\+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev/null; then
11838 if test -s conftest.err; then
11839 ac_cpp_err=$ac_c_preproc_warn_flag
11846 if test -z "$ac_cpp_err"; then
11847 ac_header_preproc=yes
11849 echo "$as_me: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11851 ac_header_preproc=no
11853 rm -f conftest.err conftest.$ac_ext
11854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11855 echo "${ECHO_T}$ac_header_preproc" >&6
11857 # So? What about this header?
11858 case $ac_header_compiler:$ac_header_preproc in
11860 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11861 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11865 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11866 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11868 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11872 echo "$as_me:$LINENO: checking for syslog.h" >&5
11873 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11874 if test "${ac_cv_header_syslog_h+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 ac_cv_header_syslog_h=$ac_header_preproc
11879 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11883 if test $ac_cv_header_syslog_h = yes; then
11885 cat >>confdefs.h <<\_ACEOF
11886 #define HAVE_SYSLOG 1
11895 echo "$as_me:$LINENO: checking for optreset" >&5
11896 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11897 if test "${pgac_cv_var_int_optreset+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 cat >conftest.$ac_ext <<_ACEOF
11901 #line $LINENO "configure"
11902 #include "confdefs.h"
11903 #include <unistd.h>
11904 #ifdef F77_DUMMY_MAIN
11905 # ifdef __cplusplus
11908 int F77_DUMMY_MAIN() { return 1; }
11913 extern int optreset; optreset = 1;
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 pgac_cv_var_int_optreset=yes
11932 echo "$as_me: failed program was:" >&5
11933 cat conftest.$ac_ext >&5
11934 pgac_cv_var_int_optreset=no
11936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11939 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11940 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11942 cat >>confdefs.h <<\_ACEOF
11943 #define HAVE_INT_OPTRESET 1
11950 for ac_func in strtoll strtoq
11952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11953 echo "$as_me:$LINENO: checking for $ac_func" >&5
11954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11955 if eval "test \"\${$as_ac_var+set}\" = set"; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 cat >conftest.$ac_ext <<_ACEOF
11959 #line $LINENO "configure"
11960 #include "confdefs.h"
11961 /* System header to define __stub macros and hopefully few prototypes,
11962 which can conflict with char $ac_func (); below. */
11963 #include <assert.h>
11964 /* Override any gcc2 internal prototype to avoid an error. */
11968 /* We use char because int might match the return type of a gcc2
11969 builtin and then its argument prototype would still apply. */
11973 #ifdef F77_DUMMY_MAIN
11974 # ifdef __cplusplus
11977 int F77_DUMMY_MAIN() { return 1; }
11982 /* The GNU C library defines this for functions which it implements
11983 to always fail with ENOSYS. Some functions are actually named
11984 something starting with __ and the normal name is an alias. */
11985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 eval "$as_ac_var=yes"
12009 echo "$as_me: failed program was:" >&5
12010 cat conftest.$ac_ext >&5
12011 eval "$as_ac_var=no"
12013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12017 if test `eval echo '${'$as_ac_var'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12027 for ac_func in strtoull strtouq
12029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12030 echo "$as_me:$LINENO: checking for $ac_func" >&5
12031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_var+set}\" = set"; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12036 #line $LINENO "configure"
12037 #include "confdefs.h"
12038 /* System header to define __stub macros and hopefully few prototypes,
12039 which can conflict with char $ac_func (); below. */
12040 #include <assert.h>
12041 /* Override any gcc2 internal prototype to avoid an error. */
12045 /* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12050 #ifdef F77_DUMMY_MAIN
12051 # ifdef __cplusplus
12054 int F77_DUMMY_MAIN() { return 1; }
12059 /* The GNU C library defines this for functions which it implements
12060 to always fail with ENOSYS. Some functions are actually named
12061 something starting with __ and the normal name is an alias. */
12062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -s conftest$ac_exeext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 eval "$as_ac_var=yes"
12086 echo "$as_me: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12088 eval "$as_ac_var=no"
12090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12094 if test `eval echo '${'$as_ac_var'}'` = yes; then
12095 cat >>confdefs.h <<_ACEOF
12096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12103 # Check for one of atexit() or on_exit()
12105 for ac_func in atexit
12107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12108 echo "$as_me:$LINENO: checking for $ac_func" >&5
12109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12110 if eval "test \"\${$as_ac_var+set}\" = set"; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12114 #line $LINENO "configure"
12115 #include "confdefs.h"
12116 /* System header to define __stub macros and hopefully few prototypes,
12117 which can conflict with char $ac_func (); below. */
12118 #include <assert.h>
12119 /* Override any gcc2 internal prototype to avoid an error. */
12123 /* We use char because int might match the return type of a gcc2
12124 builtin and then its argument prototype would still apply. */
12128 #ifdef F77_DUMMY_MAIN
12129 # ifdef __cplusplus
12132 int F77_DUMMY_MAIN() { return 1; }
12137 /* The GNU C library defines this for functions which it implements
12138 to always fail with ENOSYS. Some functions are actually named
12139 something starting with __ and the normal name is an alias. */
12140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 eval "$as_ac_var=yes"
12164 echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 eval "$as_ac_var=no"
12168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12172 if test `eval echo '${'$as_ac_var'}'` = yes; then
12173 cat >>confdefs.h <<_ACEOF
12174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12179 for ac_func in on_exit
12181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12182 echo "$as_me:$LINENO: checking for $ac_func" >&5
12183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12184 if eval "test \"\${$as_ac_var+set}\" = set"; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 cat >conftest.$ac_ext <<_ACEOF
12188 #line $LINENO "configure"
12189 #include "confdefs.h"
12190 /* System header to define __stub macros and hopefully few prototypes,
12191 which can conflict with char $ac_func (); below. */
12192 #include <assert.h>
12193 /* Override any gcc2 internal prototype to avoid an error. */
12197 /* We use char because int might match the return type of a gcc2
12198 builtin and then its argument prototype would still apply. */
12202 #ifdef F77_DUMMY_MAIN
12203 # ifdef __cplusplus
12206 int F77_DUMMY_MAIN() { return 1; }
12211 /* The GNU C library defines this for functions which it implements
12212 to always fail with ENOSYS. Some functions are actually named
12213 something starting with __ and the normal name is an alias. */
12214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 eval "$as_ac_var=yes"
12238 echo "$as_me: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12240 eval "$as_ac_var=no"
12242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12246 if test `eval echo '${'$as_ac_var'}'` = yes; then
12247 cat >>confdefs.h <<_ACEOF
12248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12252 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12253 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12254 { (exit 1); exit 1; }; }
12262 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12263 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12264 if test "${ac_cv_sys_largefile_source+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 ac_cv_sys_largefile_source=no
12269 cat >conftest.$ac_ext <<_ACEOF
12270 #line $LINENO "configure"
12271 #include "confdefs.h"
12273 #ifdef F77_DUMMY_MAIN
12274 # ifdef __cplusplus
12277 int F77_DUMMY_MAIN() { return 1; }
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12301 echo "$as_me: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12304 rm -f conftest.$ac_objext conftest.$ac_ext
12305 cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12308 #define _LARGEFILE_SOURCE 1
12310 #ifdef F77_DUMMY_MAIN
12311 # ifdef __cplusplus
12314 int F77_DUMMY_MAIN() { return 1; }
12324 rm -f conftest.$ac_objext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -s conftest.$ac_objext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_cv_sys_largefile_source=1; break
12338 echo "$as_me: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12341 rm -f conftest.$ac_objext conftest.$ac_ext
12345 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12346 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12347 if test "$ac_cv_sys_largefile_source" != no; then
12349 cat >>confdefs.h <<_ACEOF
12350 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12356 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12357 # in glibc 2.1.3, but that breaks too many other things.
12358 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12359 echo "$as_me:$LINENO: checking for fseeko" >&5
12360 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12361 if test "${ac_cv_func_fseeko+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 cat >conftest.$ac_ext <<_ACEOF
12365 #line $LINENO "configure"
12366 #include "confdefs.h"
12368 #ifdef F77_DUMMY_MAIN
12369 # ifdef __cplusplus
12372 int F77_DUMMY_MAIN() { return 1; }
12377 return fseeko && fseeko (stdin, 0, 0);
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -s conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 ac_cv_func_fseeko=yes
12396 echo "$as_me: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 ac_cv_func_fseeko=no
12400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12402 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12403 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12404 if test $ac_cv_func_fseeko = yes; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_FSEEKO 1
12414 # This test makes sure that run tests work at all. Sometimes a shared
12415 # library is found by the linker, but the runtime linker can't find it.
12416 # This check should come after all modifications of compiler or linker
12417 # variables, and before any other run tests.
12418 echo "$as_me:$LINENO: checking test program" >&5
12419 echo $ECHO_N "checking test program... $ECHO_C" >&6
12420 if test "$cross_compiling" = yes; then
12421 echo "$as_me:$LINENO: result: cross-compiling" >&5
12422 echo "${ECHO_T}cross-compiling" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 #include "confdefs.h"
12427 int main() { return 0; }
12429 rm -f conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 echo "$as_me:$LINENO: result: ok" >&5
12441 echo "${ECHO_T}ok" >&6
12443 echo "$as_me: program exited with status $ac_status" >&5
12444 echo "$as_me: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 ( exit $ac_status )
12447 echo "$as_me:$LINENO: result: failed" >&5
12448 echo "${ECHO_T}failed" >&6
12449 { { echo "$as_me:$LINENO: error:
12450 *** Could not execute a simple test program. This may be a problem
12451 *** related to locating shared libraries. Check the file 'config.log'
12452 *** for the exact reason." >&5
12453 echo "$as_me: error:
12454 *** Could not execute a simple test program. This may be a problem
12455 *** related to locating shared libraries. Check the file 'config.log'
12456 *** for the exact reason." >&2;}
12457 { (exit 1); exit 1; }; }
12459 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12464 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12465 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12466 if test "${pgac_cv_type_long_int_64+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 if test "$cross_compiling" = yes; then
12470 # If cross-compiling, check the size reported by the compiler and
12471 # trust that the arithmetic works.
12472 cat >conftest.$ac_ext <<_ACEOF
12473 #line $LINENO "configure"
12474 #include "confdefs.h"
12476 #ifdef F77_DUMMY_MAIN
12477 # ifdef __cplusplus
12480 int F77_DUMMY_MAIN() { return 1; }
12485 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 pgac_cv_type_long_int_64=yes
12506 echo "$as_me: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 pgac_cv_type_long_int_64=no
12510 rm -f conftest.$ac_objext conftest.$ac_ext
12512 cat >conftest.$ac_ext <<_ACEOF
12513 #line $LINENO "configure"
12514 #include "confdefs.h"
12515 typedef long int int64;
12518 * These are globals to discourage the compiler from folding all the
12519 * arithmetic tests down to compile-time constants.
12521 int64 a = 20000001;
12522 int64 b = 40000005;
12524 int does_int64_work()
12528 if (sizeof(int64) != 8)
12529 return 0; /* definitely not the right size */
12531 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12539 exit(! does_int64_work());
12542 rm -f conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 pgac_cv_type_long_int_64=yes
12555 echo "$as_me: program exited with status $ac_status" >&5
12556 echo "$as_me: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12558 ( exit $ac_status )
12559 pgac_cv_type_long_int_64=no
12561 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12564 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12565 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12567 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12568 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12570 cat >>confdefs.h <<\_ACEOF
12571 #define HAVE_LONG_INT_64
12577 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12578 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12579 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12580 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 if test "$cross_compiling" = yes; then
12584 # If cross-compiling, check the size reported by the compiler and
12585 # trust that the arithmetic works.
12586 cat >conftest.$ac_ext <<_ACEOF
12587 #line $LINENO "configure"
12588 #include "confdefs.h"
12590 #ifdef F77_DUMMY_MAIN
12591 # ifdef __cplusplus
12594 int F77_DUMMY_MAIN() { return 1; }
12599 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -s conftest.$ac_objext'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 pgac_cv_type_long_long_int_64=yes
12620 echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 pgac_cv_type_long_long_int_64=no
12624 rm -f conftest.$ac_objext conftest.$ac_ext
12626 cat >conftest.$ac_ext <<_ACEOF
12627 #line $LINENO "configure"
12628 #include "confdefs.h"
12629 typedef long long int int64;
12632 * These are globals to discourage the compiler from folding all the
12633 * arithmetic tests down to compile-time constants.
12635 int64 a = 20000001;
12636 int64 b = 40000005;
12638 int does_int64_work()
12642 if (sizeof(int64) != 8)
12643 return 0; /* definitely not the right size */
12645 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12653 exit(! does_int64_work());
12656 rm -f conftest$ac_exeext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12658 (eval $ac_link) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 pgac_cv_type_long_long_int_64=yes
12669 echo "$as_me: program exited with status $ac_status" >&5
12670 echo "$as_me: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12672 ( exit $ac_status )
12673 pgac_cv_type_long_long_int_64=no
12675 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12679 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12681 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12682 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_LONG_LONG_INT_64
12694 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 #include "confdefs.h"
12699 #define INT64CONST(x) x##LL
12700 long long int foo = INT64CONST(0x1234567890123456);
12702 #ifdef F77_DUMMY_MAIN
12703 # ifdef __cplusplus
12706 int F77_DUMMY_MAIN() { return 1; }
12716 rm -f conftest.$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_LL_CONSTANTS 1
12734 echo "$as_me: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12737 rm -f conftest.$ac_objext conftest.$ac_ext
12741 # If we found "long int" is 64 bits, assume snprintf handles it. If
12742 # we found we need to use "long long int", better check. We cope with
12743 # snprintfs that use either %lld, %qd, or %I64d as the format. If
12744 # neither works, fall back to our own snprintf emulation (which we
12747 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
12748 if test $pgac_need_repl_snprintf = no; then
12749 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
12750 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
12751 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 for pgac_format in '%lld' '%qd' '%I64d'; do
12755 if test "$cross_compiling" = yes; then
12756 pgac_cv_snprintf_long_long_int_format=cross; break
12758 cat >conftest.$ac_ext <<_ACEOF
12759 #line $LINENO "configure"
12760 #include "confdefs.h"
12762 typedef long long int int64;
12763 #define INT64_FORMAT "$pgac_format"
12765 int64 a = 20000001;
12766 int64 b = 40000005;
12768 int does_int64_snprintf_work()
12773 if (sizeof(int64) != 8)
12774 return 0; /* doesn't look like the right size */
12777 snprintf(buf, 100, INT64_FORMAT, c);
12778 if (strcmp(buf, "800000140000005") != 0)
12779 return 0; /* either multiply or snprintf is busted */
12783 exit(! does_int64_snprintf_work());
12786 rm -f conftest$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
12799 echo "$as_me: program exited with status $ac_status" >&5
12800 echo "$as_me: failed program was:" >&5
12801 cat conftest.$ac_ext >&5
12803 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12808 LONG_LONG_INT_FORMAT=''
12810 case $pgac_cv_snprintf_long_long_int_format in
12811 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12812 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
12813 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
12814 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
12815 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
12816 *) echo "$as_me:$LINENO: result: none" >&5
12817 echo "${ECHO_T}none" >&6;;
12819 if test "$LONG_LONG_INT_FORMAT" = ""; then
12820 # Force usage of our own snprintf, since system snprintf is broken
12821 pgac_need_repl_snprintf=yes
12822 LONG_LONG_INT_FORMAT='%lld'
12825 # Here if we previously decided we needed to use our own snprintf
12826 LONG_LONG_INT_FORMAT='%lld'
12828 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
12830 # Here if we are not using 'long long int' at all
12831 INT64_FORMAT='"%ld"'
12835 cat >>confdefs.h <<_ACEOF
12836 #define INT64_FORMAT $INT64_FORMAT
12840 if test $pgac_need_repl_snprintf = yes; then
12841 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12844 # Need a #define for the size of Datum (unsigned long)
12845 echo "$as_me:$LINENO: checking for unsigned long" >&5
12846 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12847 if test "${ac_cv_type_unsigned_long+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
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 if ((unsigned long *) 0)
12865 if (sizeof (unsigned long))
12871 rm -f conftest.$ac_objext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12873 (eval $ac_compile) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_cv_type_unsigned_long=yes
12885 echo "$as_me: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12887 ac_cv_type_unsigned_long=no
12889 rm -f conftest.$ac_objext conftest.$ac_ext
12891 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12892 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12894 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12895 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12896 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 if test "$ac_cv_type_unsigned_long" = yes; then
12900 # The cast to unsigned long works around a bug in the HP C Compiler
12901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12903 # This bug is HP SR number 8606223364.
12904 if test "$cross_compiling" = yes; then
12905 # Depending upon the size, compute the lo and hi bounds.
12906 cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 #include "confdefs.h"
12909 $ac_includes_default
12910 #ifdef F77_DUMMY_MAIN
12911 # ifdef __cplusplus
12914 int F77_DUMMY_MAIN() { return 1; }
12919 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12926 rm -f conftest.$ac_objext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -s conftest.$ac_objext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
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
12972 ac_hi=$ac_mid; break
12974 echo "$as_me: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 ac_lo=`expr $ac_mid + 1`
12977 if test $ac_lo -le $ac_mid; then
12981 ac_mid=`expr 2 '*' $ac_mid + 1`
12983 rm -f conftest.$ac_objext conftest.$ac_ext
12986 echo "$as_me: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12988 cat >conftest.$ac_ext <<_ACEOF
12989 #line $LINENO "configure"
12990 #include "confdefs.h"
12991 $ac_includes_default
12992 #ifdef F77_DUMMY_MAIN
12993 # ifdef __cplusplus
12996 int F77_DUMMY_MAIN() { return 1; }
13001 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13008 rm -f conftest.$ac_objext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13025 $ac_includes_default
13026 #ifdef F77_DUMMY_MAIN
13027 # ifdef __cplusplus
13030 int F77_DUMMY_MAIN() { return 1; }
13035 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13042 rm -f conftest.$ac_objext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_lo=$ac_mid; break
13056 echo "$as_me: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 ac_hi=`expr '(' $ac_mid ')' - 1`
13059 if test $ac_mid -le $ac_hi; then
13063 ac_mid=`expr 2 '*' $ac_mid`
13065 rm -f conftest.$ac_objext conftest.$ac_ext
13068 echo "$as_me: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13072 rm -f conftest.$ac_objext conftest.$ac_ext
13074 rm -f conftest.$ac_objext conftest.$ac_ext
13075 # Binary search between lo and hi bounds.
13076 while test "x$ac_lo" != "x$ac_hi"; do
13077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13078 cat >conftest.$ac_ext <<_ACEOF
13079 #line $LINENO "configure"
13080 #include "confdefs.h"
13081 $ac_includes_default
13082 #ifdef F77_DUMMY_MAIN
13083 # ifdef __cplusplus
13086 int F77_DUMMY_MAIN() { return 1; }
13091 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13098 rm -f conftest.$ac_objext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100 (eval $ac_compile) 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -s conftest.$ac_objext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13112 echo "$as_me: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13114 ac_lo=`expr '(' $ac_mid ')' + 1`
13116 rm -f conftest.$ac_objext conftest.$ac_ext
13119 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13120 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13121 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13122 { (exit 1); exit 1; }; } ;;
13125 if test "$cross_compiling" = yes; then
13126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13127 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13128 { (exit 1); exit 1; }; }
13130 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 #include "confdefs.h"
13133 $ac_includes_default
13134 long longval () { return (long) (sizeof (unsigned long)); }
13135 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13137 #include <stdlib.h>
13138 #ifdef F77_DUMMY_MAIN
13139 # ifdef __cplusplus
13142 int F77_DUMMY_MAIN() { return 1; }
13148 FILE *f = fopen ("conftest.val", "w");
13151 if (((long) (sizeof (unsigned long))) < 0)
13153 long i = longval ();
13154 if (i != ((long) (sizeof (unsigned long))))
13156 fprintf (f, "%ld\n", i);
13160 unsigned long i = ulongval ();
13161 if (i != ((long) (sizeof (unsigned long))))
13163 fprintf (f, "%lu\n", i);
13165 exit (ferror (f) || fclose (f) != 0);
13171 rm -f conftest$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13184 echo "$as_me: program exited with status $ac_status" >&5
13185 echo "$as_me: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 ( exit $ac_status )
13188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13189 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13190 { (exit 1); exit 1; }; }
13192 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13197 ac_cv_sizeof_unsigned_long=0
13200 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13201 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13202 cat >>confdefs.h <<_ACEOF
13203 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13208 # Determine memory alignment requirements for the basic C data types.
13210 echo "$as_me:$LINENO: checking for short" >&5
13211 echo $ECHO_N "checking for short... $ECHO_C" >&6
13212 if test "${ac_cv_type_short+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 cat >conftest.$ac_ext <<_ACEOF
13216 #line $LINENO "configure"
13217 #include "confdefs.h"
13218 $ac_includes_default
13219 #ifdef F77_DUMMY_MAIN
13220 # ifdef __cplusplus
13223 int F77_DUMMY_MAIN() { return 1; }
13230 if (sizeof (short))
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_cv_type_short=yes
13250 echo "$as_me: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 ac_cv_type_short=no
13254 rm -f conftest.$ac_objext conftest.$ac_ext
13256 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13257 echo "${ECHO_T}$ac_cv_type_short" >&6
13259 echo "$as_me:$LINENO: checking alignment of short" >&5
13260 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13261 if test "${pgac_cv_alignof_short+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 if test "$ac_cv_type_short" = yes; then
13265 if test "$cross_compiling" = yes; then
13266 # Depending upon the size, compute the lo and hi bounds.
13267 cat >conftest.$ac_ext <<_ACEOF
13268 #line $LINENO "configure"
13269 #include "confdefs.h"
13270 $ac_includes_default
13271 struct { char filler; short field; } pgac_struct;
13272 #ifdef F77_DUMMY_MAIN
13273 # ifdef __cplusplus
13276 int F77_DUMMY_MAIN() { return 1; }
13281 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13302 cat >conftest.$ac_ext <<_ACEOF
13303 #line $LINENO "configure"
13304 #include "confdefs.h"
13305 $ac_includes_default
13306 struct { char filler; short field; } pgac_struct;
13307 #ifdef F77_DUMMY_MAIN
13308 # ifdef __cplusplus
13311 int F77_DUMMY_MAIN() { return 1; }
13316 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13323 rm -f conftest.$ac_objext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_hi=$ac_mid; break
13337 echo "$as_me: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13339 ac_lo=`expr $ac_mid + 1`
13340 if test $ac_lo -le $ac_mid; then
13344 ac_mid=`expr 2 '*' $ac_mid + 1`
13346 rm -f conftest.$ac_objext conftest.$ac_ext
13349 echo "$as_me: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line $LINENO "configure"
13353 #include "confdefs.h"
13354 $ac_includes_default
13355 struct { char filler; short field; } pgac_struct;
13356 #ifdef F77_DUMMY_MAIN
13357 # ifdef __cplusplus
13360 int F77_DUMMY_MAIN() { return 1; }
13365 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13372 rm -f conftest.$ac_objext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13374 (eval $ac_compile) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -s conftest.$ac_objext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13386 cat >conftest.$ac_ext <<_ACEOF
13387 #line $LINENO "configure"
13388 #include "confdefs.h"
13389 $ac_includes_default
13390 struct { char filler; short field; } pgac_struct;
13391 #ifdef F77_DUMMY_MAIN
13392 # ifdef __cplusplus
13395 int F77_DUMMY_MAIN() { return 1; }
13400 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13407 rm -f conftest.$ac_objext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_lo=$ac_mid; break
13421 echo "$as_me: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13423 ac_hi=`expr '(' $ac_mid ')' - 1`
13424 if test $ac_mid -le $ac_hi; then
13428 ac_mid=`expr 2 '*' $ac_mid`
13430 rm -f conftest.$ac_objext conftest.$ac_ext
13433 echo "$as_me: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13437 rm -f conftest.$ac_objext conftest.$ac_ext
13439 rm -f conftest.$ac_objext conftest.$ac_ext
13440 # Binary search between lo and hi bounds.
13441 while test "x$ac_lo" != "x$ac_hi"; do
13442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13443 cat >conftest.$ac_ext <<_ACEOF
13444 #line $LINENO "configure"
13445 #include "confdefs.h"
13446 $ac_includes_default
13447 struct { char filler; short field; } pgac_struct;
13448 #ifdef F77_DUMMY_MAIN
13449 # ifdef __cplusplus
13452 int F77_DUMMY_MAIN() { return 1; }
13457 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13464 rm -f conftest.$ac_objext
13465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13466 (eval $ac_compile) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -s conftest.$ac_objext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13478 echo "$as_me: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13480 ac_lo=`expr '(' $ac_mid ')' + 1`
13482 rm -f conftest.$ac_objext conftest.$ac_ext
13485 ?*) pgac_cv_alignof_short=$ac_lo;;
13486 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13487 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13488 { (exit 1); exit 1; }; } ;;
13491 if test "$cross_compiling" = yes; then
13492 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13493 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13494 { (exit 1); exit 1; }; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 #include "confdefs.h"
13499 $ac_includes_default
13500 struct { char filler; short field; } pgac_struct;
13501 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13502 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13504 #include <stdlib.h>
13505 #ifdef F77_DUMMY_MAIN
13506 # ifdef __cplusplus
13509 int F77_DUMMY_MAIN() { return 1; }
13515 FILE *f = fopen ("conftest.val", "w");
13518 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13520 long i = longval ();
13521 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13523 fprintf (f, "%ld\n", i);
13527 unsigned long i = ulongval ();
13528 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13530 fprintf (f, "%lu\n", i);
13532 exit (ferror (f) || fclose (f) != 0);
13538 rm -f conftest$ac_exeext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 pgac_cv_alignof_short=`cat conftest.val`
13551 echo "$as_me: program exited with status $ac_status" >&5
13552 echo "$as_me: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13554 ( exit $ac_status )
13555 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13556 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13557 { (exit 1); exit 1; }; }
13559 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13564 pgac_cv_alignof_short=0
13567 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13568 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13569 cat >>confdefs.h <<_ACEOF
13570 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13574 echo "$as_me:$LINENO: checking for int" >&5
13575 echo $ECHO_N "checking for int... $ECHO_C" >&6
13576 if test "${ac_cv_type_int+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13581 #include "confdefs.h"
13582 $ac_includes_default
13583 #ifdef F77_DUMMY_MAIN
13584 # ifdef __cplusplus
13587 int F77_DUMMY_MAIN() { return 1; }
13600 rm -f conftest.$ac_objext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13602 (eval $ac_compile) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -s conftest.$ac_objext'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; }; then
13614 echo "$as_me: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13618 rm -f conftest.$ac_objext conftest.$ac_ext
13620 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13621 echo "${ECHO_T}$ac_cv_type_int" >&6
13623 echo "$as_me:$LINENO: checking alignment of int" >&5
13624 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13625 if test "${pgac_cv_alignof_int+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 if test "$ac_cv_type_int" = yes; then
13629 if test "$cross_compiling" = yes; then
13630 # Depending upon the size, compute the lo and hi bounds.
13631 cat >conftest.$ac_ext <<_ACEOF
13632 #line $LINENO "configure"
13633 #include "confdefs.h"
13634 $ac_includes_default
13635 struct { char filler; int field; } pgac_struct;
13636 #ifdef F77_DUMMY_MAIN
13637 # ifdef __cplusplus
13640 int F77_DUMMY_MAIN() { return 1; }
13645 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13652 rm -f conftest.$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654 (eval $ac_compile) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13666 cat >conftest.$ac_ext <<_ACEOF
13667 #line $LINENO "configure"
13668 #include "confdefs.h"
13669 $ac_includes_default
13670 struct { char filler; int field; } pgac_struct;
13671 #ifdef F77_DUMMY_MAIN
13672 # ifdef __cplusplus
13675 int F77_DUMMY_MAIN() { return 1; }
13680 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13687 rm -f conftest.$ac_objext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -s conftest.$ac_objext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_hi=$ac_mid; break
13701 echo "$as_me: failed program was:" >&5
13702 cat conftest.$ac_ext >&5
13703 ac_lo=`expr $ac_mid + 1`
13704 if test $ac_lo -le $ac_mid; then
13708 ac_mid=`expr 2 '*' $ac_mid + 1`
13710 rm -f conftest.$ac_objext conftest.$ac_ext
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 cat >conftest.$ac_ext <<_ACEOF
13716 #line $LINENO "configure"
13717 #include "confdefs.h"
13718 $ac_includes_default
13719 struct { char filler; int field; } pgac_struct;
13720 #ifdef F77_DUMMY_MAIN
13721 # ifdef __cplusplus
13724 int F77_DUMMY_MAIN() { return 1; }
13729 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13750 cat >conftest.$ac_ext <<_ACEOF
13751 #line $LINENO "configure"
13752 #include "confdefs.h"
13753 $ac_includes_default
13754 struct { char filler; int field; } pgac_struct;
13755 #ifdef F77_DUMMY_MAIN
13756 # ifdef __cplusplus
13759 int F77_DUMMY_MAIN() { return 1; }
13764 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13771 rm -f conftest.$ac_objext
13772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13773 (eval $ac_compile) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 ac_lo=$ac_mid; break
13785 echo "$as_me: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 ac_hi=`expr '(' $ac_mid ')' - 1`
13788 if test $ac_mid -le $ac_hi; then
13792 ac_mid=`expr 2 '*' $ac_mid`
13794 rm -f conftest.$ac_objext conftest.$ac_ext
13797 echo "$as_me: failed program was:" >&5
13798 cat conftest.$ac_ext >&5
13801 rm -f conftest.$ac_objext conftest.$ac_ext
13803 rm -f conftest.$ac_objext conftest.$ac_ext
13804 # Binary search between lo and hi bounds.
13805 while test "x$ac_lo" != "x$ac_hi"; do
13806 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13807 cat >conftest.$ac_ext <<_ACEOF
13808 #line $LINENO "configure"
13809 #include "confdefs.h"
13810 $ac_includes_default
13811 struct { char filler; int field; } pgac_struct;
13812 #ifdef F77_DUMMY_MAIN
13813 # ifdef __cplusplus
13816 int F77_DUMMY_MAIN() { return 1; }
13821 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13842 echo "$as_me: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13844 ac_lo=`expr '(' $ac_mid ')' + 1`
13846 rm -f conftest.$ac_objext conftest.$ac_ext
13849 ?*) pgac_cv_alignof_int=$ac_lo;;
13850 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13851 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13852 { (exit 1); exit 1; }; } ;;
13855 if test "$cross_compiling" = yes; then
13856 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13857 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13858 { (exit 1); exit 1; }; }
13860 cat >conftest.$ac_ext <<_ACEOF
13861 #line $LINENO "configure"
13862 #include "confdefs.h"
13863 $ac_includes_default
13864 struct { char filler; int field; } pgac_struct;
13865 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13866 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13868 #include <stdlib.h>
13869 #ifdef F77_DUMMY_MAIN
13870 # ifdef __cplusplus
13873 int F77_DUMMY_MAIN() { return 1; }
13879 FILE *f = fopen ("conftest.val", "w");
13882 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13884 long i = longval ();
13885 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13887 fprintf (f, "%ld\n", i);
13891 unsigned long i = ulongval ();
13892 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13894 fprintf (f, "%lu\n", i);
13896 exit (ferror (f) || fclose (f) != 0);
13902 rm -f conftest$ac_exeext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904 (eval $ac_link) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 pgac_cv_alignof_int=`cat conftest.val`
13915 echo "$as_me: program exited with status $ac_status" >&5
13916 echo "$as_me: failed program was:" >&5
13917 cat conftest.$ac_ext >&5
13918 ( exit $ac_status )
13919 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13920 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13921 { (exit 1); exit 1; }; }
13923 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13928 pgac_cv_alignof_int=0
13931 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13932 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13933 cat >>confdefs.h <<_ACEOF
13934 #define ALIGNOF_INT $pgac_cv_alignof_int
13938 echo "$as_me:$LINENO: checking for long" >&5
13939 echo $ECHO_N "checking for long... $ECHO_C" >&6
13940 if test "${ac_cv_type_long+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13944 #line $LINENO "configure"
13945 #include "confdefs.h"
13946 $ac_includes_default
13947 #ifdef F77_DUMMY_MAIN
13948 # ifdef __cplusplus
13951 int F77_DUMMY_MAIN() { return 1; }
13964 rm -f conftest.$ac_objext
13965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13966 (eval $ac_compile) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -s conftest.$ac_objext'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_type_long=yes
13978 echo "$as_me: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13982 rm -f conftest.$ac_objext conftest.$ac_ext
13984 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13985 echo "${ECHO_T}$ac_cv_type_long" >&6
13987 echo "$as_me:$LINENO: checking alignment of long" >&5
13988 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13989 if test "${pgac_cv_alignof_long+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 if test "$ac_cv_type_long" = yes; then
13993 if test "$cross_compiling" = yes; then
13994 # Depending upon the size, compute the lo and hi bounds.
13995 cat >conftest.$ac_ext <<_ACEOF
13996 #line $LINENO "configure"
13997 #include "confdefs.h"
13998 $ac_includes_default
13999 struct { char filler; long field; } pgac_struct;
14000 #ifdef F77_DUMMY_MAIN
14001 # ifdef __cplusplus
14004 int F77_DUMMY_MAIN() { return 1; }
14009 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14016 rm -f conftest.$ac_objext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14018 (eval $ac_compile) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -s conftest.$ac_objext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14030 cat >conftest.$ac_ext <<_ACEOF
14031 #line $LINENO "configure"
14032 #include "confdefs.h"
14033 $ac_includes_default
14034 struct { char filler; long field; } pgac_struct;
14035 #ifdef F77_DUMMY_MAIN
14036 # ifdef __cplusplus
14039 int F77_DUMMY_MAIN() { return 1; }
14044 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14051 rm -f conftest.$ac_objext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14053 (eval $ac_compile) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_hi=$ac_mid; break
14065 echo "$as_me: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14067 ac_lo=`expr $ac_mid + 1`
14068 if test $ac_lo -le $ac_mid; then
14072 ac_mid=`expr 2 '*' $ac_mid + 1`
14074 rm -f conftest.$ac_objext conftest.$ac_ext
14077 echo "$as_me: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 cat >conftest.$ac_ext <<_ACEOF
14080 #line $LINENO "configure"
14081 #include "confdefs.h"
14082 $ac_includes_default
14083 struct { char filler; long field; } pgac_struct;
14084 #ifdef F77_DUMMY_MAIN
14085 # ifdef __cplusplus
14088 int F77_DUMMY_MAIN() { return 1; }
14093 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14100 rm -f conftest.$ac_objext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14114 cat >conftest.$ac_ext <<_ACEOF
14115 #line $LINENO "configure"
14116 #include "confdefs.h"
14117 $ac_includes_default
14118 struct { char filler; long field; } pgac_struct;
14119 #ifdef F77_DUMMY_MAIN
14120 # ifdef __cplusplus
14123 int F77_DUMMY_MAIN() { return 1; }
14128 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14135 rm -f conftest.$ac_objext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137 (eval $ac_compile) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -s conftest.$ac_objext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_lo=$ac_mid; break
14149 echo "$as_me: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14151 ac_hi=`expr '(' $ac_mid ')' - 1`
14152 if test $ac_mid -le $ac_hi; then
14156 ac_mid=`expr 2 '*' $ac_mid`
14158 rm -f conftest.$ac_objext conftest.$ac_ext
14161 echo "$as_me: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14165 rm -f conftest.$ac_objext conftest.$ac_ext
14167 rm -f conftest.$ac_objext conftest.$ac_ext
14168 # Binary search between lo and hi bounds.
14169 while test "x$ac_lo" != "x$ac_hi"; do
14170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14171 cat >conftest.$ac_ext <<_ACEOF
14172 #line $LINENO "configure"
14173 #include "confdefs.h"
14174 $ac_includes_default
14175 struct { char filler; long field; } pgac_struct;
14176 #ifdef F77_DUMMY_MAIN
14177 # ifdef __cplusplus
14180 int F77_DUMMY_MAIN() { return 1; }
14185 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -s conftest.$ac_objext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14206 echo "$as_me: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14208 ac_lo=`expr '(' $ac_mid ')' + 1`
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14213 ?*) pgac_cv_alignof_long=$ac_lo;;
14214 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14215 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14216 { (exit 1); exit 1; }; } ;;
14219 if test "$cross_compiling" = yes; then
14220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14221 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14222 { (exit 1); exit 1; }; }
14224 cat >conftest.$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14226 #include "confdefs.h"
14227 $ac_includes_default
14228 struct { char filler; long field; } pgac_struct;
14229 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14230 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14232 #include <stdlib.h>
14233 #ifdef F77_DUMMY_MAIN
14234 # ifdef __cplusplus
14237 int F77_DUMMY_MAIN() { return 1; }
14243 FILE *f = fopen ("conftest.val", "w");
14246 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14248 long i = longval ();
14249 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14251 fprintf (f, "%ld\n", i);
14255 unsigned long i = ulongval ();
14256 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14258 fprintf (f, "%lu\n", i);
14260 exit (ferror (f) || fclose (f) != 0);
14266 rm -f conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 pgac_cv_alignof_long=`cat conftest.val`
14279 echo "$as_me: program exited with status $ac_status" >&5
14280 echo "$as_me: failed program was:" >&5
14281 cat conftest.$ac_ext >&5
14282 ( exit $ac_status )
14283 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14284 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14285 { (exit 1); exit 1; }; }
14287 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14292 pgac_cv_alignof_long=0
14295 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14296 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14297 cat >>confdefs.h <<_ACEOF
14298 #define ALIGNOF_LONG $pgac_cv_alignof_long
14302 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14303 echo "$as_me:$LINENO: checking for long long int" >&5
14304 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14305 if test "${ac_cv_type_long_long_int+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14311 $ac_includes_default
14312 #ifdef F77_DUMMY_MAIN
14313 # ifdef __cplusplus
14316 int F77_DUMMY_MAIN() { return 1; }
14321 if ((long long int *) 0)
14323 if (sizeof (long long int))
14329 rm -f conftest.$ac_objext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331 (eval $ac_compile) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_type_long_long_int=yes
14343 echo "$as_me: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14345 ac_cv_type_long_long_int=no
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14350 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14352 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14353 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14354 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 if test "$ac_cv_type_long_long_int" = yes; then
14358 if test "$cross_compiling" = yes; then
14359 # Depending upon the size, compute the lo and hi bounds.
14360 cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 #include "confdefs.h"
14363 $ac_includes_default
14364 struct { char filler; long long int field; } pgac_struct;
14365 #ifdef F77_DUMMY_MAIN
14366 # ifdef __cplusplus
14369 int F77_DUMMY_MAIN() { return 1; }
14374 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -s conftest.$ac_objext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14395 cat >conftest.$ac_ext <<_ACEOF
14396 #line $LINENO "configure"
14397 #include "confdefs.h"
14398 $ac_includes_default
14399 struct { char filler; long long int field; } pgac_struct;
14400 #ifdef F77_DUMMY_MAIN
14401 # ifdef __cplusplus
14404 int F77_DUMMY_MAIN() { return 1; }
14409 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_hi=$ac_mid; break
14430 echo "$as_me: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14432 ac_lo=`expr $ac_mid + 1`
14433 if test $ac_lo -le $ac_mid; then
14437 ac_mid=`expr 2 '*' $ac_mid + 1`
14439 rm -f conftest.$ac_objext conftest.$ac_ext
14442 echo "$as_me: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 #include "confdefs.h"
14447 $ac_includes_default
14448 struct { char filler; long long int field; } pgac_struct;
14449 #ifdef F77_DUMMY_MAIN
14450 # ifdef __cplusplus
14453 int F77_DUMMY_MAIN() { return 1; }
14458 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -s conftest.$ac_objext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14479 cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 #include "confdefs.h"
14482 $ac_includes_default
14483 struct { char filler; long long int field; } pgac_struct;
14484 #ifdef F77_DUMMY_MAIN
14485 # ifdef __cplusplus
14488 int F77_DUMMY_MAIN() { return 1; }
14493 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -s conftest.$ac_objext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_lo=$ac_mid; break
14514 echo "$as_me: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 ac_hi=`expr '(' $ac_mid ')' - 1`
14517 if test $ac_mid -le $ac_hi; then
14521 ac_mid=`expr 2 '*' $ac_mid`
14523 rm -f conftest.$ac_objext conftest.$ac_ext
14526 echo "$as_me: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14530 rm -f conftest.$ac_objext conftest.$ac_ext
14532 rm -f conftest.$ac_objext conftest.$ac_ext
14533 # Binary search between lo and hi bounds.
14534 while test "x$ac_lo" != "x$ac_hi"; do
14535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14536 cat >conftest.$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14538 #include "confdefs.h"
14539 $ac_includes_default
14540 struct { char filler; long long int field; } pgac_struct;
14541 #ifdef F77_DUMMY_MAIN
14542 # ifdef __cplusplus
14545 int F77_DUMMY_MAIN() { return 1; }
14550 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -s conftest.$ac_objext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14571 echo "$as_me: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14573 ac_lo=`expr '(' $ac_mid ')' + 1`
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14578 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14579 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14580 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14581 { (exit 1); exit 1; }; } ;;
14584 if test "$cross_compiling" = yes; then
14585 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14586 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14587 { (exit 1); exit 1; }; }
14589 cat >conftest.$ac_ext <<_ACEOF
14590 #line $LINENO "configure"
14591 #include "confdefs.h"
14592 $ac_includes_default
14593 struct { char filler; long long int field; } pgac_struct;
14594 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14595 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14597 #include <stdlib.h>
14598 #ifdef F77_DUMMY_MAIN
14599 # ifdef __cplusplus
14602 int F77_DUMMY_MAIN() { return 1; }
14608 FILE *f = fopen ("conftest.val", "w");
14611 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14613 long i = longval ();
14614 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14616 fprintf (f, "%ld\n", i);
14620 unsigned long i = ulongval ();
14621 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14623 fprintf (f, "%lu\n", i);
14625 exit (ferror (f) || fclose (f) != 0);
14631 rm -f conftest$ac_exeext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14633 (eval $ac_link) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 pgac_cv_alignof_long_long_int=`cat conftest.val`
14644 echo "$as_me: program exited with status $ac_status" >&5
14645 echo "$as_me: failed program was:" >&5
14646 cat conftest.$ac_ext >&5
14647 ( exit $ac_status )
14648 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14649 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14650 { (exit 1); exit 1; }; }
14652 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14657 pgac_cv_alignof_long_long_int=0
14660 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14661 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14662 cat >>confdefs.h <<_ACEOF
14663 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14668 echo "$as_me:$LINENO: checking for double" >&5
14669 echo $ECHO_N "checking for double... $ECHO_C" >&6
14670 if test "${ac_cv_type_double+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 cat >conftest.$ac_ext <<_ACEOF
14674 #line $LINENO "configure"
14675 #include "confdefs.h"
14676 $ac_includes_default
14677 #ifdef F77_DUMMY_MAIN
14678 # ifdef __cplusplus
14681 int F77_DUMMY_MAIN() { return 1; }
14688 if (sizeof (double))
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_type_double=yes
14708 echo "$as_me: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14710 ac_cv_type_double=no
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14714 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14715 echo "${ECHO_T}$ac_cv_type_double" >&6
14717 echo "$as_me:$LINENO: checking alignment of double" >&5
14718 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14719 if test "${pgac_cv_alignof_double+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 if test "$ac_cv_type_double" = yes; then
14723 if test "$cross_compiling" = yes; then
14724 # Depending upon the size, compute the lo and hi bounds.
14725 cat >conftest.$ac_ext <<_ACEOF
14726 #line $LINENO "configure"
14727 #include "confdefs.h"
14728 $ac_includes_default
14729 struct { char filler; double field; } pgac_struct;
14730 #ifdef F77_DUMMY_MAIN
14731 # ifdef __cplusplus
14734 int F77_DUMMY_MAIN() { return 1; }
14739 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14760 cat >conftest.$ac_ext <<_ACEOF
14761 #line $LINENO "configure"
14762 #include "confdefs.h"
14763 $ac_includes_default
14764 struct { char filler; double field; } pgac_struct;
14765 #ifdef F77_DUMMY_MAIN
14766 # ifdef __cplusplus
14769 int F77_DUMMY_MAIN() { return 1; }
14774 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783 (eval $ac_compile) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_hi=$ac_mid; break
14795 echo "$as_me: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 ac_lo=`expr $ac_mid + 1`
14798 if test $ac_lo -le $ac_mid; then
14802 ac_mid=`expr 2 '*' $ac_mid + 1`
14804 rm -f conftest.$ac_objext conftest.$ac_ext
14807 echo "$as_me: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14809 cat >conftest.$ac_ext <<_ACEOF
14810 #line $LINENO "configure"
14811 #include "confdefs.h"
14812 $ac_includes_default
14813 struct { char filler; double field; } pgac_struct;
14814 #ifdef F77_DUMMY_MAIN
14815 # ifdef __cplusplus
14818 int F77_DUMMY_MAIN() { return 1; }
14823 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14844 cat >conftest.$ac_ext <<_ACEOF
14845 #line $LINENO "configure"
14846 #include "confdefs.h"
14847 $ac_includes_default
14848 struct { char filler; double field; } pgac_struct;
14849 #ifdef F77_DUMMY_MAIN
14850 # ifdef __cplusplus
14853 int F77_DUMMY_MAIN() { return 1; }
14858 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14865 rm -f conftest.$ac_objext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_lo=$ac_mid; break
14879 echo "$as_me: failed program was:" >&5
14880 cat conftest.$ac_ext >&5
14881 ac_hi=`expr '(' $ac_mid ')' - 1`
14882 if test $ac_mid -le $ac_hi; then
14886 ac_mid=`expr 2 '*' $ac_mid`
14888 rm -f conftest.$ac_objext conftest.$ac_ext
14891 echo "$as_me: failed program was:" >&5
14892 cat conftest.$ac_ext >&5
14895 rm -f conftest.$ac_objext conftest.$ac_ext
14897 rm -f conftest.$ac_objext conftest.$ac_ext
14898 # Binary search between lo and hi bounds.
14899 while test "x$ac_lo" != "x$ac_hi"; do
14900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14901 cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14903 #include "confdefs.h"
14904 $ac_includes_default
14905 struct { char filler; double field; } pgac_struct;
14906 #ifdef F77_DUMMY_MAIN
14907 # ifdef __cplusplus
14910 int F77_DUMMY_MAIN() { return 1; }
14915 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -s conftest.$ac_objext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14936 echo "$as_me: failed program was:" >&5
14937 cat conftest.$ac_ext >&5
14938 ac_lo=`expr '(' $ac_mid ')' + 1`
14940 rm -f conftest.$ac_objext conftest.$ac_ext
14943 ?*) pgac_cv_alignof_double=$ac_lo;;
14944 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14945 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14946 { (exit 1); exit 1; }; } ;;
14949 if test "$cross_compiling" = yes; then
14950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14951 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14952 { (exit 1); exit 1; }; }
14954 cat >conftest.$ac_ext <<_ACEOF
14955 #line $LINENO "configure"
14956 #include "confdefs.h"
14957 $ac_includes_default
14958 struct { char filler; double field; } pgac_struct;
14959 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14960 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14962 #include <stdlib.h>
14963 #ifdef F77_DUMMY_MAIN
14964 # ifdef __cplusplus
14967 int F77_DUMMY_MAIN() { return 1; }
14973 FILE *f = fopen ("conftest.val", "w");
14976 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14978 long i = longval ();
14979 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14981 fprintf (f, "%ld\n", i);
14985 unsigned long i = ulongval ();
14986 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14988 fprintf (f, "%lu\n", i);
14990 exit (ferror (f) || fclose (f) != 0);
14996 rm -f conftest$ac_exeext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14998 (eval $ac_link) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 pgac_cv_alignof_double=`cat conftest.val`
15009 echo "$as_me: program exited with status $ac_status" >&5
15010 echo "$as_me: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15012 ( exit $ac_status )
15013 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15014 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15015 { (exit 1); exit 1; }; }
15017 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15022 pgac_cv_alignof_double=0
15025 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15026 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15027 cat >>confdefs.h <<_ACEOF
15028 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15033 # Compute maximum alignment of any basic type.
15034 # We assume long's alignment is at least as strong as char, short, or int;
15035 # but we must check long long (if it exists) and double.
15037 MAX_ALIGNOF=$pgac_cv_alignof_long
15038 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15039 MAX_ALIGNOF=$pgac_cv_alignof_double
15041 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15042 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15045 cat >>confdefs.h <<_ACEOF
15046 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15051 # Some platforms predefine the types int8, int16, etc. Only check
15052 # a (hopefully) representative subset.
15053 echo "$as_me:$LINENO: checking for int8" >&5
15054 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15055 if test "${ac_cv_type_int8+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15062 #ifdef HAVE_SUPPORTDEFS_H
15063 #include <SupportDefs.h>
15066 #ifdef F77_DUMMY_MAIN
15067 # ifdef __cplusplus
15070 int F77_DUMMY_MAIN() { return 1; }
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_cv_type_int8=yes
15097 echo "$as_me: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15101 rm -f conftest.$ac_objext conftest.$ac_ext
15103 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15104 echo "${ECHO_T}$ac_cv_type_int8" >&6
15105 if test $ac_cv_type_int8 = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_INT8 1
15113 echo "$as_me:$LINENO: checking for uint8" >&5
15114 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15115 if test "${ac_cv_type_uint8+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15119 #line $LINENO "configure"
15120 #include "confdefs.h"
15122 #ifdef HAVE_SUPPORTDEFS_H
15123 #include <SupportDefs.h>
15126 #ifdef F77_DUMMY_MAIN
15127 # ifdef __cplusplus
15130 int F77_DUMMY_MAIN() { return 1; }
15137 if (sizeof (uint8))
15143 rm -f conftest.$ac_objext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15145 (eval $ac_compile) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -s conftest.$ac_objext'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 ac_cv_type_uint8=yes
15157 echo "$as_me: failed program was:" >&5
15158 cat conftest.$ac_ext >&5
15159 ac_cv_type_uint8=no
15161 rm -f conftest.$ac_objext conftest.$ac_ext
15163 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15164 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15165 if test $ac_cv_type_uint8 = yes; then
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_UINT8 1
15173 echo "$as_me:$LINENO: checking for int64" >&5
15174 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15175 if test "${ac_cv_type_int64+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 cat >conftest.$ac_ext <<_ACEOF
15179 #line $LINENO "configure"
15180 #include "confdefs.h"
15182 #ifdef HAVE_SUPPORTDEFS_H
15183 #include <SupportDefs.h>
15186 #ifdef F77_DUMMY_MAIN
15187 # ifdef __cplusplus
15190 int F77_DUMMY_MAIN() { return 1; }
15197 if (sizeof (int64))
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -s conftest.$ac_objext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_type_int64=yes
15217 echo "$as_me: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15219 ac_cv_type_int64=no
15221 rm -f conftest.$ac_objext conftest.$ac_ext
15223 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15224 echo "${ECHO_T}$ac_cv_type_int64" >&6
15225 if test $ac_cv_type_int64 = yes; then
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_INT64 1
15233 echo "$as_me:$LINENO: checking for uint64" >&5
15234 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15235 if test "${ac_cv_type_uint64+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15239 #line $LINENO "configure"
15240 #include "confdefs.h"
15242 #ifdef HAVE_SUPPORTDEFS_H
15243 #include <SupportDefs.h>
15246 #ifdef F77_DUMMY_MAIN
15247 # ifdef __cplusplus
15250 int F77_DUMMY_MAIN() { return 1; }
15257 if (sizeof (uint64))
15263 rm -f conftest.$ac_objext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -s conftest.$ac_objext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_cv_type_uint64=yes
15277 echo "$as_me: failed program was:" >&5
15278 cat conftest.$ac_ext >&5
15279 ac_cv_type_uint64=no
15281 rm -f conftest.$ac_objext conftest.$ac_ext
15283 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15284 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15285 if test $ac_cv_type_uint64 = yes; then
15287 cat >>confdefs.h <<_ACEOF
15288 #define HAVE_UINT64 1
15295 # We also check for sig_atomic_t, which *should* be defined per ANSI
15296 # C, but is missing on some old platforms.
15297 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15298 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15299 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 cat >conftest.$ac_ext <<_ACEOF
15303 #line $LINENO "configure"
15304 #include "confdefs.h"
15305 #include <signal.h>
15307 #ifdef F77_DUMMY_MAIN
15308 # ifdef __cplusplus
15311 int F77_DUMMY_MAIN() { return 1; }
15316 if ((sig_atomic_t *) 0)
15318 if (sizeof (sig_atomic_t))
15324 rm -f conftest.$ac_objext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15326 (eval $ac_compile) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -s conftest.$ac_objext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_type_sig_atomic_t=yes
15338 echo "$as_me: failed program was:" >&5
15339 cat conftest.$ac_ext >&5
15340 ac_cv_type_sig_atomic_t=no
15342 rm -f conftest.$ac_objext conftest.$ac_ext
15344 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15345 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15346 if test $ac_cv_type_sig_atomic_t = yes; then
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_SIG_ATOMIC_T 1
15357 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15358 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15359 if test "${pgac_cv_func_posix_signals+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 #include "confdefs.h"
15365 #include <signal.h>
15367 #ifdef F77_DUMMY_MAIN
15368 # ifdef __cplusplus
15371 int F77_DUMMY_MAIN() { return 1; }
15376 struct sigaction act, oact;
15377 sigemptyset(&act.sa_mask);
15378 act.sa_flags = SA_RESTART;
15379 sigaction(0, &act, &oact);
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 pgac_cv_func_posix_signals=yes
15398 echo "$as_me: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 pgac_cv_func_posix_signals=no
15402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15405 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15406 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15408 cat >>confdefs.h <<\_ACEOF
15409 #define HAVE_POSIX_SIGNALS
15413 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15415 if test $ac_cv_func_fseeko = yes; then
15416 # Check whether --enable-largefile or --disable-largefile was given.
15417 if test "${enable_largefile+set}" = set; then
15418 enableval="$enable_largefile"
15421 if test "$enable_largefile" != no; then
15423 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15424 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15425 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 ac_cv_sys_largefile_CC=no
15429 if test "$GCC" != yes; then
15432 # IRIX 6.2 and later do not support large files by default,
15433 # so use the C compiler's -n32 option if that helps.
15434 cat >conftest.$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15436 #include "confdefs.h"
15437 #include <sys/types.h>
15438 /* Check that off_t can represent 2**63 - 1 correctly.
15439 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15440 since some C++ compilers masquerading as C compilers
15441 incorrectly reject 9223372036854775807. */
15442 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15443 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15444 && LARGE_OFF_T % 2147483647 == 1)
15446 #ifdef F77_DUMMY_MAIN
15447 # ifdef __cplusplus
15450 int F77_DUMMY_MAIN() { return 1; }
15460 rm -f conftest.$ac_objext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15462 (eval $ac_compile) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15474 echo "$as_me: failed program was:" >&5
15475 cat conftest.$ac_ext >&5
15477 rm -f conftest.$ac_objext
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_cv_sys_largefile_CC=' -n32'; break
15493 echo "$as_me: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15496 rm -f conftest.$ac_objext
15500 rm -f conftest.$ac_ext
15503 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15504 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15505 if test "$ac_cv_sys_largefile_CC" != no; then
15506 CC=$CC$ac_cv_sys_largefile_CC
15509 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15510 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15511 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 ac_cv_sys_file_offset_bits=no
15516 cat >conftest.$ac_ext <<_ACEOF
15517 #line $LINENO "configure"
15518 #include "confdefs.h"
15519 #include <sys/types.h>
15520 /* Check that off_t can represent 2**63 - 1 correctly.
15521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15522 since some C++ compilers masquerading as C compilers
15523 incorrectly reject 9223372036854775807. */
15524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15526 && LARGE_OFF_T % 2147483647 == 1)
15528 #ifdef F77_DUMMY_MAIN
15529 # ifdef __cplusplus
15532 int F77_DUMMY_MAIN() { return 1; }
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -s conftest.$ac_objext'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15556 echo "$as_me: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15559 rm -f conftest.$ac_objext conftest.$ac_ext
15560 cat >conftest.$ac_ext <<_ACEOF
15561 #line $LINENO "configure"
15562 #include "confdefs.h"
15563 #define _FILE_OFFSET_BITS 64
15564 #include <sys/types.h>
15565 /* Check that off_t can represent 2**63 - 1 correctly.
15566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15567 since some C++ compilers masquerading as C compilers
15568 incorrectly reject 9223372036854775807. */
15569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15571 && LARGE_OFF_T % 2147483647 == 1)
15573 #ifdef F77_DUMMY_MAIN
15574 # ifdef __cplusplus
15577 int F77_DUMMY_MAIN() { return 1; }
15587 rm -f conftest.$ac_objext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589 (eval $ac_compile) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_sys_file_offset_bits=64; break
15601 echo "$as_me: failed program was:" >&5
15602 cat conftest.$ac_ext >&5
15604 rm -f conftest.$ac_objext conftest.$ac_ext
15608 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15609 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
15610 if test "$ac_cv_sys_file_offset_bits" != no; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15618 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15619 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
15620 if test "${ac_cv_sys_large_files+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 ac_cv_sys_large_files=no
15625 cat >conftest.$ac_ext <<_ACEOF
15626 #line $LINENO "configure"
15627 #include "confdefs.h"
15628 #include <sys/types.h>
15629 /* Check that off_t can represent 2**63 - 1 correctly.
15630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15631 since some C++ compilers masquerading as C compilers
15632 incorrectly reject 9223372036854775807. */
15633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15635 && LARGE_OFF_T % 2147483647 == 1)
15637 #ifdef F77_DUMMY_MAIN
15638 # ifdef __cplusplus
15641 int F77_DUMMY_MAIN() { return 1; }
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653 (eval $ac_compile) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -s conftest.$ac_objext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15665 echo "$as_me: failed program was:" >&5
15666 cat conftest.$ac_ext >&5
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15669 cat >conftest.$ac_ext <<_ACEOF
15670 #line $LINENO "configure"
15671 #include "confdefs.h"
15672 #define _LARGE_FILES 1
15673 #include <sys/types.h>
15674 /* Check that off_t can represent 2**63 - 1 correctly.
15675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15676 since some C++ compilers masquerading as C compilers
15677 incorrectly reject 9223372036854775807. */
15678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15680 && LARGE_OFF_T % 2147483647 == 1)
15682 #ifdef F77_DUMMY_MAIN
15683 # ifdef __cplusplus
15686 int F77_DUMMY_MAIN() { return 1; }
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -s conftest.$ac_objext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_cv_sys_large_files=1; break
15710 echo "$as_me: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15713 rm -f conftest.$ac_objext conftest.$ac_ext
15717 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15718 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15719 if test "$ac_cv_sys_large_files" != no; then
15721 cat >>confdefs.h <<_ACEOF
15722 #define _LARGE_FILES $ac_cv_sys_large_files
15732 # Select semaphore implementation type.
15733 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15735 cat >>confdefs.h <<\_ACEOF
15736 #define USE_NAMED_POSIX_SEMAPHORES 1
15739 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15741 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15743 cat >>confdefs.h <<\_ACEOF
15744 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15747 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15750 cat >>confdefs.h <<\_ACEOF
15751 #define USE_SYSV_SEMAPHORES 1
15754 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15759 # Select shared-memory implementation type.
15761 cat >>confdefs.h <<\_ACEOF
15762 #define USE_SYSV_SHARED_MEMORY 1
15765 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15768 if test "$enable_nls" = yes ; then
15770 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15771 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15772 if test "${ac_cv_search_gettext+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 ac_func_search_save_LIBS=$LIBS
15776 ac_cv_search_gettext=no
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15779 #include "confdefs.h"
15781 /* Override any gcc2 internal prototype to avoid an error. */
15785 /* We use char because int might match the return type of a gcc2
15786 builtin and then its argument prototype would still apply. */
15788 #ifdef F77_DUMMY_MAIN
15789 # ifdef __cplusplus
15792 int F77_DUMMY_MAIN() { return 1; }
15802 rm -f conftest.$ac_objext conftest$ac_exeext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15804 (eval $ac_link) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -s conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_cv_search_gettext="none required"
15816 echo "$as_me: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15820 if test "$ac_cv_search_gettext" = no; then
15821 for ac_lib in intl; do
15822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15823 cat >conftest.$ac_ext <<_ACEOF
15824 #line $LINENO "configure"
15825 #include "confdefs.h"
15827 /* Override any gcc2 internal prototype to avoid an error. */
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15834 #ifdef F77_DUMMY_MAIN
15835 # ifdef __cplusplus
15838 int F77_DUMMY_MAIN() { return 1; }
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15850 (eval $ac_link) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -s conftest$ac_exeext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_cv_search_gettext="-l$ac_lib"
15863 echo "$as_me: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15869 LIBS=$ac_func_search_save_LIBS
15871 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15872 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15873 if test "$ac_cv_search_gettext" != no; then
15874 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15877 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15878 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15879 { (exit 1); exit 1; }; }
15882 if test "${ac_cv_header_libintl_h+set}" = set; then
15883 echo "$as_me:$LINENO: checking for libintl.h" >&5
15884 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15885 if test "${ac_cv_header_libintl_h+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15889 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15891 # Is the header compilable?
15892 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15893 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15894 cat >conftest.$ac_ext <<_ACEOF
15895 #line $LINENO "configure"
15896 #include "confdefs.h"
15897 $ac_includes_default
15898 #include <libintl.h>
15900 rm -f conftest.$ac_objext
15901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15902 (eval $ac_compile) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -s conftest.$ac_objext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_header_compiler=yes
15914 echo "$as_me: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15916 ac_header_compiler=no
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15920 echo "${ECHO_T}$ac_header_compiler" >&6
15922 # Is the header present?
15923 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15924 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15926 #line $LINENO "configure"
15927 #include "confdefs.h"
15928 #include <libintl.h>
15930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15933 egrep -v '^ *\+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } >/dev/null; then
15938 if test -s conftest.err; then
15939 ac_cpp_err=$ac_c_preproc_warn_flag
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc=yes
15949 echo "$as_me: failed program was:" >&5
15950 cat conftest.$ac_ext >&5
15951 ac_header_preproc=no
15953 rm -f conftest.err conftest.$ac_ext
15954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6
15957 # So? What about this header?
15958 case $ac_header_compiler:$ac_header_preproc in
15960 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15963 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15965 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15966 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15968 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15970 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15972 echo "$as_me:$LINENO: checking for libintl.h" >&5
15973 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15974 if test "${ac_cv_header_libintl_h+set}" = set; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 ac_cv_header_libintl_h=$ac_header_preproc
15979 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15980 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15983 if test $ac_cv_header_libintl_h = yes; then
15986 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15987 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15988 { (exit 1); exit 1; }; }
15992 for ac_prog in msgfmt
15994 # Extract the first word of "$ac_prog", so it can be a program name with args.
15995 set dummy $ac_prog; ac_word=$2
15996 echo "$as_me:$LINENO: checking for $ac_word" >&5
15997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15998 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 if test -n "$MSGFMT"; then
16002 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005 for as_dir in $PATH
16008 test -z "$as_dir" && as_dir=.
16009 for ac_exec_ext in '' $ac_executable_extensions; do
16010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011 ac_cv_prog_MSGFMT="$ac_prog"
16012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16020 MSGFMT=$ac_cv_prog_MSGFMT
16021 if test -n "$MSGFMT"; then
16022 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16023 echo "${ECHO_T}$MSGFMT" >&6
16025 echo "$as_me:$LINENO: result: no" >&5
16026 echo "${ECHO_T}no" >&6
16029 test -n "$MSGFMT" && break
16032 if test -z "$MSGFMT"; then
16033 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16034 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16035 { (exit 1); exit 1; }; }
16037 for ac_prog in msgmerge
16039 # Extract the first word of "$ac_prog", so it can be a program name with args.
16040 set dummy $ac_prog; ac_word=$2
16041 echo "$as_me:$LINENO: checking for $ac_word" >&5
16042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16043 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 if test -n "$MSGMERGE"; then
16047 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050 for as_dir in $PATH
16053 test -z "$as_dir" && as_dir=.
16054 for ac_exec_ext in '' $ac_executable_extensions; do
16055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16056 ac_cv_prog_MSGMERGE="$ac_prog"
16057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16065 MSGMERGE=$ac_cv_prog_MSGMERGE
16066 if test -n "$MSGMERGE"; then
16067 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16068 echo "${ECHO_T}$MSGMERGE" >&6
16070 echo "$as_me:$LINENO: result: no" >&5
16071 echo "${ECHO_T}no" >&6
16074 test -n "$MSGMERGE" && break
16077 for ac_prog in xgettext
16079 # Extract the first word of "$ac_prog", so it can be a program name with args.
16080 set dummy $ac_prog; ac_word=$2
16081 echo "$as_me:$LINENO: checking for $ac_word" >&5
16082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16083 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 if test -n "$XGETTEXT"; then
16087 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090 for as_dir in $PATH
16093 test -z "$as_dir" && as_dir=.
16094 for ac_exec_ext in '' $ac_executable_extensions; do
16095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16096 ac_cv_prog_XGETTEXT="$ac_prog"
16097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16105 XGETTEXT=$ac_cv_prog_XGETTEXT
16106 if test -n "$XGETTEXT"; then
16107 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16108 echo "${ECHO_T}$XGETTEXT" >&6
16110 echo "$as_me:$LINENO: result: no" >&5
16111 echo "${ECHO_T}no" >&6
16114 test -n "$XGETTEXT" && break
16118 # Note: share/locale is always the default, independent of $datadir
16119 localedir='${prefix}/share/locale'
16120 if test x"$prefix" = x"NONE"; then
16121 exp_localedir="$ac_default_prefix/share/locale"
16123 exp_localedir="$prefix/share/locale"
16128 cat >>confdefs.h <<_ACEOF
16129 #define LOCALEDIR "$exp_localedir"
16135 # Check for Tcl configuration script tclConfig.sh
16136 if test "$with_tcl" = yes; then
16137 for ac_prog in tclsh tcl
16139 # Extract the first word of "$ac_prog", so it can be a program name with args.
16140 set dummy $ac_prog; ac_word=$2
16141 echo "$as_me:$LINENO: checking for $ac_word" >&5
16142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16143 if test "${ac_cv_path_TCLSH+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16155 test -z "$as_dir" && as_dir=.
16156 for ac_exec_ext in '' $ac_executable_extensions; do
16157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16158 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16168 TCLSH=$ac_cv_path_TCLSH
16170 if test -n "$TCLSH"; then
16171 echo "$as_me:$LINENO: result: $TCLSH" >&5
16172 echo "${ECHO_T}$TCLSH" >&6
16174 echo "$as_me:$LINENO: result: no" >&5
16175 echo "${ECHO_T}no" >&6
16178 test -n "$TCLSH" && break
16181 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16182 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16183 # Let user override test
16184 if test -z "$TCL_CONFIG_SH"; then
16185 pgac_test_dirs="$with_tclconfig"
16187 set X $pgac_test_dirs; shift
16188 if test $# -eq 0; then
16189 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16190 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16191 { (exit 1); exit 1; }; }
16192 set X `echo 'puts $auto_path' | $TCLSH`; shift
16196 if test -r "$pgac_dir/tclConfig.sh"; then
16197 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16203 if test -z "$TCL_CONFIG_SH"; then
16204 echo "$as_me:$LINENO: result: no" >&5
16205 echo "${ECHO_T}no" >&6
16206 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16207 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16208 { (exit 1); exit 1; }; }
16210 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16211 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16217 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16218 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16219 eval TCL_LIBS=\"$TCL_LIBS\"
16220 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16221 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16225 # Check for Tk configuration script tkConfig.sh
16226 if test "$with_tk" = yes; then
16227 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16228 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16229 # Let user override test
16230 if test -z "$TK_CONFIG_SH"; then
16231 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16233 set X $pgac_test_dirs; shift
16234 if test $# -eq 0; then
16235 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16236 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16237 { (exit 1); exit 1; }; }
16238 set X `echo 'puts $auto_path' | $TCLSH`; shift
16242 if test -r "$pgac_dir/tkConfig.sh"; then
16243 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16249 if test -z "$TK_CONFIG_SH"; then
16250 echo "$as_me:$LINENO: result: no" >&5
16251 echo "${ECHO_T}no" >&6
16252 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16253 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16254 { (exit 1); exit 1; }; }
16256 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16257 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16263 eval TK_LIBS=\"$TK_LIBS\"
16264 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16265 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16271 # Check for DocBook and tools
16273 for ac_prog in onsgmls nsgmls
16275 # Extract the first word of "$ac_prog", so it can be a program name with args.
16276 set dummy $ac_prog; ac_word=$2
16277 echo "$as_me:$LINENO: checking for $ac_word" >&5
16278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16279 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 if test -n "$NSGMLS"; then
16283 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16289 test -z "$as_dir" && as_dir=.
16290 for ac_exec_ext in '' $ac_executable_extensions; do
16291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292 ac_cv_prog_NSGMLS="$ac_prog"
16293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16301 NSGMLS=$ac_cv_prog_NSGMLS
16302 if test -n "$NSGMLS"; then
16303 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16304 echo "${ECHO_T}$NSGMLS" >&6
16306 echo "$as_me:$LINENO: result: no" >&5
16307 echo "${ECHO_T}no" >&6
16310 test -n "$NSGMLS" && break
16313 for ac_prog in openjade jade
16315 # Extract the first word of "$ac_prog", so it can be a program name with args.
16316 set dummy $ac_prog; ac_word=$2
16317 echo "$as_me:$LINENO: checking for $ac_word" >&5
16318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16319 if test "${ac_cv_prog_JADE+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 if test -n "$JADE"; then
16323 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16326 for as_dir in $PATH
16329 test -z "$as_dir" && as_dir=.
16330 for ac_exec_ext in '' $ac_executable_extensions; do
16331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16332 ac_cv_prog_JADE="$ac_prog"
16333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16341 JADE=$ac_cv_prog_JADE
16342 if test -n "$JADE"; then
16343 echo "$as_me:$LINENO: result: $JADE" >&5
16344 echo "${ECHO_T}$JADE" >&6
16346 echo "$as_me:$LINENO: result: no" >&5
16347 echo "${ECHO_T}no" >&6
16350 test -n "$JADE" && break
16354 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16355 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16356 if test "${pgac_cv_check_docbook+set}" = set; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 cat >conftest.sgml <<EOF
16360 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16362 <title>test</title>
16364 <title>random</title>
16366 <title>testsect</title>
16373 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16374 if test $? -eq 0; then
16375 pgac_cv_check_docbook=yes
16377 pgac_cv_check_docbook=no
16379 rm -f conftest.sgml
16381 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16382 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16384 have_docbook=$pgac_cv_check_docbook
16387 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16388 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16389 if test "${pgac_cv_path_stylesheets+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 if test -n "$DOCBOOKSTYLE"; then
16393 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16395 for pgac_prefix in /usr /usr/local /opt; do
16396 for pgac_infix in share lib; do
16397 for pgac_postfix in \
16398 sgml/stylesheets/nwalsh-modular \
16399 sgml/stylesheets/docbook \
16400 sgml/docbook/dsssl/modular \
16401 sgml/docbook/stylesheet/dsssl/modular \
16402 sgml/docbook/dsssl-stylesheets
16404 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16405 if test -r "$pgac_candidate/html/docbook.dsl" \
16406 && test -r "$pgac_candidate/print/docbook.dsl"
16408 pgac_cv_path_stylesheets=$pgac_candidate
16417 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16419 if test -n "$DOCBOOKSTYLE"; then
16420 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16421 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16423 echo "$as_me:$LINENO: result: no" >&5
16424 echo "${ECHO_T}no" >&6
16426 if test -n "$DOCBOOKSTYLE"; then
16427 for ac_prog in collateindex.pl
16429 # Extract the first word of "$ac_prog", so it can be a program name with args.
16430 set dummy $ac_prog; ac_word=$2
16431 echo "$as_me:$LINENO: checking for $ac_word" >&5
16432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16433 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 case $COLLATEINDEX in
16438 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442 for as_dir in $DOCBOOKSTYLE/bin $PATH
16445 test -z "$as_dir" && as_dir=.
16446 for ac_exec_ext in '' $ac_executable_extensions; do
16447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16448 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16458 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16460 if test -n "$COLLATEINDEX"; then
16461 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16462 echo "${ECHO_T}$COLLATEINDEX" >&6
16464 echo "$as_me:$LINENO: result: no" >&5
16465 echo "${ECHO_T}no" >&6
16468 test -n "$COLLATEINDEX" && break
16472 for ac_prog in collateindex.pl
16474 # Extract the first word of "$ac_prog", so it can be a program name with args.
16475 set dummy $ac_prog; ac_word=$2
16476 echo "$as_me:$LINENO: checking for $ac_word" >&5
16477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16478 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 case $COLLATEINDEX in
16483 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16487 for as_dir in $PATH
16490 test -z "$as_dir" && as_dir=.
16491 for ac_exec_ext in '' $ac_executable_extensions; do
16492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16493 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16503 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16505 if test -n "$COLLATEINDEX"; then
16506 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16507 echo "${ECHO_T}$COLLATEINDEX" >&6
16509 echo "$as_me:$LINENO: result: no" >&5
16510 echo "${ECHO_T}no" >&6
16513 test -n "$COLLATEINDEX" && break
16517 for ac_prog in sgmlspl
16519 # Extract the first word of "$ac_prog", so it can be a program name with args.
16520 set dummy $ac_prog; ac_word=$2
16521 echo "$as_me:$LINENO: checking for $ac_word" >&5
16522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16523 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 if test -n "$SGMLSPL"; then
16527 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16530 for as_dir in $PATH
16533 test -z "$as_dir" && as_dir=.
16534 for ac_exec_ext in '' $ac_executable_extensions; do
16535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16536 ac_cv_prog_SGMLSPL="$ac_prog"
16537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16545 SGMLSPL=$ac_cv_prog_SGMLSPL
16546 if test -n "$SGMLSPL"; then
16547 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16548 echo "${ECHO_T}$SGMLSPL" >&6
16550 echo "$as_me:$LINENO: result: no" >&5
16551 echo "${ECHO_T}no" >&6
16554 test -n "$SGMLSPL" && break
16559 # prepare build tree if outside source tree
16560 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16561 # Note 2: /bin/pwd might be better than shell's built-in at getting
16562 # a symlink-free name.
16563 if test "$no_create" != yes; then
16564 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16569 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16570 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16571 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16572 || { { echo "$as_me:$LINENO: error: failed" >&5
16573 echo "$as_me: error: failed" >&2;}
16574 { (exit 1); exit 1; }; }
16575 echo "$as_me:$LINENO: result: done" >&5
16576 echo "${ECHO_T}done" >&6
16581 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16584 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}"
16587 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16590 cat >confcache <<\_ACEOF
16591 # This file is a shell script that caches the results of configure
16592 # tests run on this system so they can be shared between configure
16593 # scripts and configure runs, see configure's option --config-cache.
16594 # It is not useful on other systems. If it contains results you don't
16595 # want to keep, you may remove or edit it.
16597 # config.status only pays attention to the cache file if you give it
16598 # the --recheck option to rerun configure.
16600 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16602 # following values.
16606 # The following way of writing the cache mishandles newlines in values,
16607 # but we know of no workaround that is simple, portable, and efficient.
16608 # So, don't put newlines in cache variables' values.
16609 # Ultrix sh set writes to stderr and can't be redirected directly,
16610 # and sets the high bit in the cache file unless we assign to the vars.
16613 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16615 # `set' does not quote correctly, so add quotes (double-quote
16616 # substitution turns \\\\ into \\, and sed turns \\ into \).
16619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16622 # `set' quotes correctly as required by POSIX, so do not add quotes.
16624 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16633 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16635 if cmp -s $cache_file confcache; then :; else
16636 if test -w $cache_file; then
16637 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16638 cat confcache >$cache_file
16640 echo "not updating unwritable cache $cache_file"
16645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16646 # Let make expand exec_prefix.
16647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16649 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16650 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16651 # trailing colons and then remove the whole line if VPATH becomes empty
16652 # (actually we leave an empty line to preserve line numbers).
16653 if test "x$srcdir" = x.; then
16654 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16655 s/:*\$(srcdir):*/:/;
16656 s/:*\${srcdir}:*/:/;
16658 s/^\([^=]*=[ ]*\):*/\1/;
16664 DEFS=-DHAVE_CONFIG_H
16667 : ${CONFIG_STATUS=./config.status}
16668 ac_clean_files_save=$ac_clean_files
16669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16672 cat >$CONFIG_STATUS <<_ACEOF
16674 # Generated by $as_me.
16675 # Run this file to recreate the current configuration.
16676 # Compiler output produced by configure, useful for debugging
16677 # configure, is in config.log if it exists.
16680 SHELL=\${CONFIG_SHELL-$SHELL}
16683 cat >>$CONFIG_STATUS <<\_ACEOF
16685 ## --------------------- ##
16686 ## M4sh Initialization. ##
16687 ## --------------------- ##
16689 # Be Bourne compatible
16690 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16693 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16698 # Support unset when possible.
16699 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16705 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16706 { $as_unset LANG || test "${LANG+set}" != set; } ||
16707 { LANG=C; export LANG; }
16708 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16709 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16710 { LC_ALL=C; export LC_ALL; }
16711 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16712 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16713 { LC_TIME=C; export LC_TIME; }
16714 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16715 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16716 { LC_CTYPE=C; export LC_CTYPE; }
16717 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16718 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16719 { LANGUAGE=C; export LANGUAGE; }
16720 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16721 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16722 { LC_COLLATE=C; export LC_COLLATE; }
16723 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16724 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16725 { LC_NUMERIC=C; export LC_NUMERIC; }
16726 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16727 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16728 { LC_MESSAGES=C; export LC_MESSAGES; }
16731 # Name of the executable.
16732 as_me=`(basename "$0") 2>/dev/null ||
16733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16734 X"$0" : 'X\(//\)$' \| \
16735 X"$0" : 'X\(/\)$' \| \
16736 . : '\(.\)' 2>/dev/null ||
16738 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16739 /^X\/\(\/\/\)$/{ s//\1/; q; }
16740 /^X\/\(\/\).*/{ s//\1/; q; }
16743 # PATH needs CR, and LINENO needs CR and PATH.
16744 # Avoid depending upon Character Ranges.
16745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16748 as_cr_digits='0123456789'
16749 as_cr_alnum=$as_cr_Letters$as_cr_digits
16751 # The user is always right.
16752 if test "${PATH_SEPARATOR+set}" != set; then
16753 echo "#! /bin/sh" >conftest.sh
16754 echo "exit 0" >>conftest.sh
16755 chmod +x conftest.sh
16756 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16765 as_lineno_1=$LINENO
16766 as_lineno_2=$LINENO
16767 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16768 test "x$as_lineno_1" != "x$as_lineno_2" &&
16769 test "x$as_lineno_3" = "x$as_lineno_2" || {
16770 # Find who we are. Look in the path if we contain no path at all
16773 *[\\/]* ) as_myself=$0 ;;
16774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16775 for as_dir in $PATH
16778 test -z "$as_dir" && as_dir=.
16779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16784 # We did not find ourselves, most probably we were run as `sh COMMAND'
16785 # in which case we are not to be found in the path.
16786 if test "x$as_myself" = x; then
16789 if test ! -f "$as_myself"; then
16790 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16791 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16792 { (exit 1); exit 1; }; }
16794 case $CONFIG_SHELL in
16796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16800 test -z "$as_dir" && as_dir=.
16801 for as_base in sh bash ksh sh5; do
16804 if ("$as_dir/$as_base" -c '
16805 as_lineno_1=$LINENO
16806 as_lineno_2=$LINENO
16807 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16808 test "x$as_lineno_1" != "x$as_lineno_2" &&
16809 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16810 CONFIG_SHELL=$as_dir/$as_base
16811 export CONFIG_SHELL
16812 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16820 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16821 # uniformly replaced by the line number. The first 'sed' inserts a
16822 # line-number line before each line; the second 'sed' does the real
16823 # work. The second script uses 'N' to pair each line-number line
16824 # with the numbered line, and appends trailing '-' during
16825 # substitution so that $LINENO is not a special case at line end.
16826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16827 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16828 sed '=' <$as_myself |
16833 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16836 s,^['$as_cr_digits']*\n,,
16837 ' >$as_me.lineno &&
16838 chmod +x $as_me.lineno ||
16839 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16841 { (exit 1); exit 1; }; }
16843 # Don't try to exec as it changes $[0], causing all sort of problems
16844 # (the dirname of $[0] is not the place where we might find the
16845 # original and so on. Autoconf is especially sensible to this).
16847 # Exit status is that of the last command.
16852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16853 *c*,-n*) ECHO_N= ECHO_C='
16855 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16856 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16859 if expr a : '\(a\)' >/dev/null 2>&1; then
16865 rm -f conf$$ conf$$.exe conf$$.file
16867 if ln -s conf$$.file conf$$ 2>/dev/null; then
16868 # We could just check for DJGPP; but this test a) works b) is more generic
16869 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16870 if test -f conf$$.exe; then
16871 # Don't use ln at all; we don't have any links
16876 elif ln conf$$.file conf$$ 2>/dev/null; then
16881 rm -f conf$$ conf$$.exe conf$$.file
16883 as_executable_p="test -f"
16885 # Sed expression to map a string onto a valid CPP name.
16886 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16888 # Sed expression to map a string onto a valid variable name.
16889 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16893 # We need space, tab and new line, in precisely that order.
16899 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16903 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16904 # report actual input values of CONFIG_FILES etc. instead of their
16905 # values after options handling. Logging --version etc. is OK.
16909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16910 ## Running $as_me. ##
16915 This file was extended by PostgreSQL $as_me 7.4devel, which was
16916 generated by GNU Autoconf 2.53. Invocation command line was
16918 CONFIG_FILES = $CONFIG_FILES
16919 CONFIG_HEADERS = $CONFIG_HEADERS
16920 CONFIG_LINKS = $CONFIG_LINKS
16921 CONFIG_COMMANDS = $CONFIG_COMMANDS
16925 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16929 # Files that config.status was made for.
16930 if test -n "$ac_config_files"; then
16931 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16934 if test -n "$ac_config_headers"; then
16935 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16938 if test -n "$ac_config_links"; then
16939 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16942 if test -n "$ac_config_commands"; then
16943 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16946 cat >>$CONFIG_STATUS <<\_ACEOF
16949 \`$as_me' instantiates files from templates according to the
16950 current configuration.
16952 Usage: $0 [OPTIONS] [FILE]...
16954 -h, --help print this help, then exit
16955 -V, --version print version number, then exit
16956 -d, --debug don't remove temporary files
16957 --recheck update $as_me by reconfiguring in the same conditions
16958 --file=FILE[:TEMPLATE]
16959 instantiate the configuration file FILE
16960 --header=FILE[:TEMPLATE]
16961 instantiate the configuration header FILE
16963 Configuration files:
16966 Configuration headers:
16969 Configuration links:
16972 Report bugs to <bug-autoconf@gnu.org>."
16975 cat >>$CONFIG_STATUS <<_ACEOF
16977 PostgreSQL config.status 7.4devel
16978 configured by $0, generated by GNU Autoconf 2.53,
16979 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16981 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16982 Free Software Foundation, Inc.
16983 This config.status script is free software; the Free Software Foundation
16984 gives unlimited permission to copy, distribute and modify it."
16988 cat >>$CONFIG_STATUS <<\_ACEOF
16989 # If no file are specified by the user, then we need to provide default
16990 # value. By we need to know if files were specified by the user.
16996 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16997 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16999 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17003 *) # This is not an option, so the user has probably given explicit
17005 ac_need_defaults=false;;
17009 # Handling of the options.
17011 cat >>$CONFIG_STATUS <<_ACEOF
17012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17013 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17014 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17016 cat >>$CONFIG_STATUS <<\_ACEOF
17017 --version | --vers* | -V )
17018 echo "$ac_cs_version"; exit 0 ;;
17020 # Conflict between --help and --header
17021 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17022 Try \`$0 --help' for more information." >&5
17023 echo "$as_me: error: ambiguous option: $1
17024 Try \`$0 --help' for more information." >&2;}
17025 { (exit 1); exit 1; }; };;
17026 --help | --hel | -h )
17027 echo "$ac_cs_usage"; exit 0 ;;
17028 --debug | --d* | -d )
17030 --file | --fil | --fi | --f )
17032 CONFIG_FILES="$CONFIG_FILES $1"
17033 ac_need_defaults=false;;
17034 --header | --heade | --head | --hea )
17036 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17037 ac_need_defaults=false;;
17039 # This is an error.
17040 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17041 Try \`$0 --help' for more information." >&5
17042 echo "$as_me: error: unrecognized option: $1
17043 Try \`$0 --help' for more information." >&2;}
17044 { (exit 1); exit 1; }; } ;;
17046 *) ac_config_targets="$ac_config_targets $1" ;;
17058 cat >>$CONFIG_STATUS <<\_ACEOF
17059 for ac_config_target in $ac_config_targets
17061 case "$ac_config_target" in
17062 # Handling of arguments.
17063 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17064 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17065 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17066 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17067 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17068 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17069 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17070 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17071 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17072 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17073 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17074 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17075 { (exit 1); exit 1; }; };;
17079 # If the user did not use the arguments to specify the items to instantiate,
17080 # then the envvar interface is used. Set only those that are not.
17081 # We use the long form for the default assignment because of an extremely
17082 # bizarre bug on SunOS 4.1.3.
17083 if $ac_need_defaults; then
17084 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17085 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17086 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17089 # Create a temporary directory, and hook for its removal unless debugging.
17092 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17093 trap '{ (exit 1); exit 1; }' 1 2 13 15
17096 # Create a (secure) tmp directory for tmp files.
17099 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17100 test -n "$tmp" && test -d "$tmp"
17103 tmp=$TMPDIR/cs$$-$RANDOM
17104 (umask 077 && mkdir $tmp)
17107 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17108 { (exit 1); exit 1; }
17113 cat >>$CONFIG_STATUS <<_ACEOF
17116 # CONFIG_FILES section.
17119 # No need to generate the scripts if there are no CONFIG_FILES.
17120 # This happens for instance when ./config.status config.h
17121 if test -n "\$CONFIG_FILES"; then
17122 # Protect against being on the right side of a sed subst in config.status.
17123 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17124 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17125 s,@SHELL@,$SHELL,;t t
17126 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17127 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17128 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17129 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17130 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17131 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17132 s,@exec_prefix@,$exec_prefix,;t t
17133 s,@prefix@,$prefix,;t t
17134 s,@program_transform_name@,$program_transform_name,;t t
17135 s,@bindir@,$bindir,;t t
17136 s,@sbindir@,$sbindir,;t t
17137 s,@libexecdir@,$libexecdir,;t t
17138 s,@datadir@,$datadir,;t t
17139 s,@sysconfdir@,$sysconfdir,;t t
17140 s,@sharedstatedir@,$sharedstatedir,;t t
17141 s,@localstatedir@,$localstatedir,;t t
17142 s,@libdir@,$libdir,;t t
17143 s,@includedir@,$includedir,;t t
17144 s,@oldincludedir@,$oldincludedir,;t t
17145 s,@infodir@,$infodir,;t t
17146 s,@mandir@,$mandir,;t t
17147 s,@build_alias@,$build_alias,;t t
17148 s,@host_alias@,$host_alias,;t t
17149 s,@target_alias@,$target_alias,;t t
17150 s,@DEFS@,$DEFS,;t t
17151 s,@ECHO_C@,$ECHO_C,;t t
17152 s,@ECHO_N@,$ECHO_N,;t t
17153 s,@ECHO_T@,$ECHO_T,;t t
17154 s,@LIBS@,$LIBS,;t t
17155 s,@docdir@,$docdir,;t t
17156 s,@configure_args@,$configure_args,;t t
17157 s,@build@,$build,;t t
17158 s,@build_cpu@,$build_cpu,;t t
17159 s,@build_vendor@,$build_vendor,;t t
17160 s,@build_os@,$build_os,;t t
17161 s,@host@,$host,;t t
17162 s,@host_cpu@,$host_cpu,;t t
17163 s,@host_vendor@,$host_vendor,;t t
17164 s,@host_os@,$host_os,;t t
17165 s,@PORTNAME@,$PORTNAME,;t t
17167 s,@enable_nls@,$enable_nls,;t t
17168 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17169 s,@default_port@,$default_port,;t t
17170 s,@enable_shared@,$enable_shared,;t t
17171 s,@enable_rpath@,$enable_rpath,;t t
17172 s,@enable_debug@,$enable_debug,;t t
17174 s,@CFLAGS@,$CFLAGS,;t t
17175 s,@LDFLAGS@,$LDFLAGS,;t t
17176 s,@CPPFLAGS@,$CPPFLAGS,;t t
17177 s,@ac_ct_CC@,$ac_ct_CC,;t t
17178 s,@EXEEXT@,$EXEEXT,;t t
17179 s,@OBJEXT@,$OBJEXT,;t t
17182 s,@autodepend@,$autodepend,;t t
17183 s,@INCLUDES@,$INCLUDES,;t t
17184 s,@with_tcl@,$with_tcl,;t t
17185 s,@with_tk@,$with_tk,;t t
17186 s,@with_perl@,$with_perl,;t t
17187 s,@with_python@,$with_python,;t t
17189 s,@with_java@,$with_java,;t t
17190 s,@with_krb4@,$with_krb4,;t t
17191 s,@with_krb5@,$with_krb5,;t t
17192 s,@krb_srvtab@,$krb_srvtab,;t t
17193 s,@with_pam@,$with_pam,;t t
17194 s,@with_openssl@,$with_openssl,;t t
17195 s,@ELF_SYS@,$ELF_SYS,;t t
17197 s,@FLEX@,$FLEX,;t t
17198 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17199 s,@LN_S@,$LN_S,;t t
17201 s,@with_gnu_ld@,$with_gnu_ld,;t t
17202 s,@ld_R_works@,$ld_R_works,;t t
17203 s,@RANLIB@,$RANLIB,;t t
17204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17205 s,@LORDER@,$LORDER,;t t
17207 s,@STRIP@,$STRIP,;t t
17208 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17209 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17210 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17211 s,@YACC@,$YACC,;t t
17212 s,@YFLAGS@,$YFLAGS,;t t
17213 s,@PERL@,$PERL,;t t
17214 s,@perl_archlibexp@,$perl_archlibexp,;t t
17215 s,@perl_privlibexp@,$perl_privlibexp,;t t
17216 s,@perl_useshrplib@,$perl_useshrplib,;t t
17217 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17218 s,@PYTHON@,$PYTHON,;t t
17219 s,@python_version@,$python_version,;t t
17220 s,@python_prefix@,$python_prefix,;t t
17221 s,@python_execprefix@,$python_execprefix,;t t
17222 s,@python_configdir@,$python_configdir,;t t
17223 s,@python_moduledir@,$python_moduledir,;t t
17224 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17225 s,@python_includespec@,$python_includespec,;t t
17226 s,@python_libspec@,$python_libspec,;t t
17227 s,@LIBOBJS@,$LIBOBJS,;t t
17228 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17229 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17230 s,@MSGFMT@,$MSGFMT,;t t
17231 s,@MSGMERGE@,$MSGMERGE,;t t
17232 s,@XGETTEXT@,$XGETTEXT,;t t
17233 s,@localedir@,$localedir,;t t
17234 s,@TCLSH@,$TCLSH,;t t
17235 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17236 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17237 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17238 s,@TCL_LIBS@,$TCL_LIBS,;t t
17239 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17240 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17241 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17242 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17243 s,@TK_LIBS@,$TK_LIBS,;t t
17244 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17245 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17246 s,@NSGMLS@,$NSGMLS,;t t
17247 s,@JADE@,$JADE,;t t
17248 s,@have_docbook@,$have_docbook,;t t
17249 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17250 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17251 s,@SGMLSPL@,$SGMLSPL,;t t
17252 s,@vpath_build@,$vpath_build,;t t
17257 cat >>$CONFIG_STATUS <<\_ACEOF
17258 # Split the substitutions into bite-sized pieces for seds with
17259 # small command number limits, like on Digital OSF/1 and HP-UX.
17260 ac_max_sed_lines=48
17261 ac_sed_frag=1 # Number of current file.
17262 ac_beg=1 # First line for current file.
17263 ac_end=$ac_max_sed_lines # Line after last line for current file.
17266 while $ac_more_lines; do
17267 if test $ac_beg -gt 1; then
17268 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17270 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17272 if test ! -s $tmp/subs.frag; then
17273 ac_more_lines=false
17275 # The purpose of the label and of the branching condition is to
17276 # speed up the sed processing (if there are no `@' at all, there
17277 # is no need to browse any of the substitutions).
17278 # These are the two extra sed commands mentioned above.
17280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17281 if test -z "$ac_sed_cmds"; then
17282 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17284 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17286 ac_sed_frag=`expr $ac_sed_frag + 1`
17288 ac_end=`expr $ac_end + $ac_max_sed_lines`
17291 if test -z "$ac_sed_cmds"; then
17294 fi # test -n "$CONFIG_FILES"
17297 cat >>$CONFIG_STATUS <<\_ACEOF
17298 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17301 - | *:- | *:-:* ) # input from stdin
17303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17307 * ) ac_file_in=$ac_file.in ;;
17310 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17311 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17313 X"$ac_file" : 'X\(//\)[^/]' \| \
17314 X"$ac_file" : 'X\(//\)$' \| \
17315 X"$ac_file" : 'X\(/\)' \| \
17316 . : '\(.\)' 2>/dev/null ||
17318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17320 /^X\(\/\/\)$/{ s//\1/; q; }
17321 /^X\(\/\).*/{ s//\1/; q; }
17323 { case "$ac_dir" in
17324 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17328 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17329 case $as_mkdir_dir in
17330 # Skip DOS drivespec
17331 ?:) as_incr_dir=$as_mkdir_dir ;;
17333 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17334 test -d "$as_incr_dir" ||
17335 mkdir "$as_incr_dir" ||
17336 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17337 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17338 { (exit 1); exit 1; }; }
17345 if test "$ac_dir" != .; then
17346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17347 # A "../" for each directory in $ac_dir_suffix.
17348 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17350 ac_dir_suffix= ac_top_builddir=
17354 .) # No --srcdir option. We are building in place.
17356 if test -z "$ac_top_builddir"; then
17359 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17361 [\\/]* | ?:[\\/]* ) # Absolute path.
17362 ac_srcdir=$srcdir$ac_dir_suffix;
17363 ac_top_srcdir=$srcdir ;;
17364 *) # Relative path.
17365 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17366 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17368 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17370 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17371 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17372 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17373 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17377 if test x"$ac_file" != x-; then
17378 { echo "$as_me:$LINENO: creating $ac_file" >&5
17379 echo "$as_me: creating $ac_file" >&6;}
17382 # Let's still pretend it is `configure' which instantiates (i.e., don't
17383 # use $as_me), people would be surprised to read:
17384 # /* config.h. Generated by config.status. */
17385 if test x"$ac_file" = x-; then
17388 configure_input="$ac_file. "
17390 configure_input=$configure_input"Generated from `echo $ac_file_in |
17391 sed 's,.*/,,'` by configure."
17393 # First look for the input files in the build tree, otherwise in the
17395 ac_file_inputs=`IFS=:
17396 for f in $ac_file_in; do
17398 -) echo $tmp/stdin ;;
17400 # Absolute (can't be DOS-style, as IFS=:)
17401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17402 echo "$as_me: error: cannot find input file: $f" >&2;}
17403 { (exit 1); exit 1; }; }
17406 if test -f "$f"; then
17409 elif test -f "$srcdir/$f"; then
17414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17415 echo "$as_me: error: cannot find input file: $f" >&2;}
17416 { (exit 1); exit 1; }; }
17419 done` || { (exit 1); exit 1; }
17421 cat >>$CONFIG_STATUS <<_ACEOF
17425 cat >>$CONFIG_STATUS <<\_ACEOF
17427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17428 s,@configure_input@,$configure_input,;t t
17429 s,@srcdir@,$ac_srcdir,;t t
17430 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17431 s,@top_srcdir@,$ac_top_srcdir,;t t
17432 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17433 s,@builddir@,$ac_builddir,;t t
17434 s,@abs_builddir@,$ac_abs_builddir,;t t
17435 s,@top_builddir@,$ac_top_builddir,;t t
17436 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17437 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17439 if test x"$ac_file" != x-; then
17440 mv $tmp/out $ac_file
17448 cat >>$CONFIG_STATUS <<\_ACEOF
17451 # CONFIG_HEADER section.
17454 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17455 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17457 # ac_d sets the value in "#define NAME VALUE" lines.
17458 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17459 ac_dB='[ ].*$,\1#\2'
17462 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17463 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17464 ac_uB='$,\1#\2define\3'
17468 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17471 - | *:- | *:-:* ) # input from stdin
17473 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17475 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17477 * ) ac_file_in=$ac_file.in ;;
17480 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17481 echo "$as_me: creating $ac_file" >&6;}
17483 # First look for the input files in the build tree, otherwise in the
17485 ac_file_inputs=`IFS=:
17486 for f in $ac_file_in; do
17488 -) echo $tmp/stdin ;;
17490 # Absolute (can't be DOS-style, as IFS=:)
17491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17492 echo "$as_me: error: cannot find input file: $f" >&2;}
17493 { (exit 1); exit 1; }; }
17496 if test -f "$f"; then
17499 elif test -f "$srcdir/$f"; then
17504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17505 echo "$as_me: error: cannot find input file: $f" >&2;}
17506 { (exit 1); exit 1; }; }
17509 done` || { (exit 1); exit 1; }
17510 # Remove the trailing spaces.
17511 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17515 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17516 # `conftest.undefs', that substitutes the proper values into
17517 # config.h.in to produce config.h. The first handles `#define'
17518 # templates, and the second `#undef' templates.
17519 # And first: Protect against being on the right side of a sed subst in
17520 # config.status. Protect against being in an unquoted here document
17521 # in config.status.
17522 rm -f conftest.defines conftest.undefs
17523 # Using a here document instead of a string reduces the quoting nightmare.
17524 # Putting comments in sed scripts is not portable.
17526 # `end' is used to avoid that the second main sed command (meant for
17527 # 0-ary CPP macros) applies to n-ary macro definitions.
17528 # See the Autoconf documentation for `clear'.
17529 cat >confdef2sed.sed <<\_ACEOF
17534 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17536 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17539 # If some macros were called several times there might be several times
17540 # the same #defines, which is useless. Nevertheless, we may not want to
17541 # sort them, since we want the *last* AC-DEFINE to be honored.
17542 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17543 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17544 rm -f confdef2sed.sed
17546 # This sed command replaces #undef with comments. This is necessary, for
17547 # example, in the case of _POSIX_SOURCE, which is predefined and required
17548 # on some systems where configure will not decide to define it.
17549 cat >>conftest.undefs <<\_ACEOF
17550 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17553 # Break up conftest.defines because some shells have a limit on the size
17554 # of here documents, and old seds have small limits too (100 cmds).
17555 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17556 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17557 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17558 echo ' :' >>$CONFIG_STATUS
17559 rm -f conftest.tail
17560 while grep . conftest.defines >/dev/null
17562 # Write a limited-size here document to $tmp/defines.sed.
17563 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17564 # Speed up: don't consider the non `#define' lines.
17565 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17566 # Work around the forget-to-reset-the-flag bug.
17567 echo 't clr' >>$CONFIG_STATUS
17568 echo ': clr' >>$CONFIG_STATUS
17569 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17571 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17573 mv $tmp/out $tmp/in
17575 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17576 rm -f conftest.defines
17577 mv conftest.tail conftest.defines
17579 rm -f conftest.defines
17580 echo ' fi # egrep' >>$CONFIG_STATUS
17581 echo >>$CONFIG_STATUS
17583 # Break up conftest.undefs because some shells have a limit on the size
17584 # of here documents, and old seds have small limits too (100 cmds).
17585 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17586 rm -f conftest.tail
17587 while grep . conftest.undefs >/dev/null
17589 # Write a limited-size here document to $tmp/undefs.sed.
17590 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17591 # Speed up: don't consider the non `#undef'
17592 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17593 # Work around the forget-to-reset-the-flag bug.
17594 echo 't clr' >>$CONFIG_STATUS
17595 echo ': clr' >>$CONFIG_STATUS
17596 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17598 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17600 mv $tmp/out $tmp/in
17602 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17603 rm -f conftest.undefs
17604 mv conftest.tail conftest.undefs
17606 rm -f conftest.undefs
17608 cat >>$CONFIG_STATUS <<\_ACEOF
17609 # Let's still pretend it is `configure' which instantiates (i.e., don't
17610 # use $as_me), people would be surprised to read:
17611 # /* config.h. Generated by config.status. */
17612 if test x"$ac_file" = x-; then
17613 echo "/* Generated by configure. */" >$tmp/config.h
17615 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17617 cat $tmp/in >>$tmp/config.h
17619 if test x"$ac_file" != x-; then
17620 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17621 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17622 echo "$as_me: $ac_file is unchanged" >&6;}
17624 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17626 X"$ac_file" : 'X\(//\)[^/]' \| \
17627 X"$ac_file" : 'X\(//\)$' \| \
17628 X"$ac_file" : 'X\(/\)' \| \
17629 . : '\(.\)' 2>/dev/null ||
17631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17633 /^X\(\/\/\)$/{ s//\1/; q; }
17634 /^X\(\/\).*/{ s//\1/; q; }
17636 { case "$ac_dir" in
17637 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17641 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17642 case $as_mkdir_dir in
17643 # Skip DOS drivespec
17644 ?:) as_incr_dir=$as_mkdir_dir ;;
17646 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17647 test -d "$as_incr_dir" ||
17648 mkdir "$as_incr_dir" ||
17649 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17650 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17651 { (exit 1); exit 1; }; }
17657 mv $tmp/config.h $ac_file
17661 rm -f $tmp/config.h
17663 # Run the commands associated with the file.
17665 src/include/pg_config.h )
17666 # Update timestamp for pg_config.h (see Makefile.global)
17667 echo >src/include/stamp-h
17672 cat >>$CONFIG_STATUS <<\_ACEOF
17675 # CONFIG_LINKS section.
17678 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17679 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17680 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17682 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17683 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17685 if test ! -r $srcdir/$ac_source; then
17686 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17687 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17688 { (exit 1); exit 1; }; }
17692 # Make relative symlinks.
17693 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695 X"$ac_dest" : 'X\(//\)[^/]' \| \
17696 X"$ac_dest" : 'X\(//\)$' \| \
17697 X"$ac_dest" : 'X\(/\)' \| \
17698 . : '\(.\)' 2>/dev/null ||
17700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17702 /^X\(\/\/\)$/{ s//\1/; q; }
17703 /^X\(\/\).*/{ s//\1/; q; }
17705 { case "$ac_dest_dir" in
17706 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17709 as_dummy="$ac_dest_dir"
17710 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17711 case $as_mkdir_dir in
17712 # Skip DOS drivespec
17713 ?:) as_incr_dir=$as_mkdir_dir ;;
17715 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17716 test -d "$as_incr_dir" ||
17717 mkdir "$as_incr_dir" ||
17718 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17719 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17720 { (exit 1); exit 1; }; }
17727 if test "$ac_dest_dir" != .; then
17728 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17729 # A "../" for each directory in $ac_dir_suffix.
17730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17732 ac_dir_suffix= ac_top_builddir=
17736 .) # No --srcdir option. We are building in place.
17738 if test -z "$ac_top_builddir"; then
17741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17743 [\\/]* | ?:[\\/]* ) # Absolute path.
17744 ac_srcdir=$srcdir$ac_dir_suffix;
17745 ac_top_srcdir=$srcdir ;;
17746 *) # Relative path.
17747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17748 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17750 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17752 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17753 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17754 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17755 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17759 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17760 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17763 # Make a symlink if possible; otherwise try a hard link.
17764 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17765 ln $srcdir/$ac_source $ac_dest ||
17766 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17767 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17768 { (exit 1); exit 1; }; }
17772 cat >>$CONFIG_STATUS <<\_ACEOF
17774 { (exit 0); exit 0; }
17776 chmod +x $CONFIG_STATUS
17777 ac_clean_files=$ac_clean_files_save
17780 # configure is writing to config.log, and then calls config.status.
17781 # config.status does its own redirection, appending to config.log.
17782 # Unfortunately, on DOS this fails, as config.log is still kept open
17783 # by configure, so config.status won't be able to write to it; its
17784 # output is simply discarded. So we exec the FD to /dev/null,
17785 # effectively closing config.log, so it can be properly (re)opened and
17786 # appended to by config.status. When coming back to configure, we
17787 # need to make the FD available again.
17788 if test "$no_create" != yes; then
17791 $SHELL $CONFIG_STATUS || ac_cs_success=false
17793 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17794 # would make configure fail if this is the last instruction.
17795 $ac_cs_success || { (exit 1); exit 1; }