2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3b1.
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.3b1'
262 PACKAGE_STRING='PostgreSQL 7.3b1'
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.3b1 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.3b1:";;
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-maxbackends=N set default maximum number of connections 32
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python interface module
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.3b1
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2002 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.3b1, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=win ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 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 # Maximum number of allowed connections (--with-maxbackends), default 32
1727 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1728 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1732 # Check whether --with-maxbackends or --without-maxbackends was given.
1733 if test "${with_maxbackends+set}" = set; then
1734 withval="$with_maxbackends"
1738 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1739 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1740 { (exit 1); exit 1; }; }
1743 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1744 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1745 { (exit 1); exit 1; }; }
1756 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1757 echo "${ECHO_T}$with_maxbackends" >&6
1759 cat >>confdefs.h <<_ACEOF
1760 #define DEF_MAXBACKENDS $with_maxbackends
1766 # Option to disable shared libraries
1770 # Check whether --enable-shared or --disable-shared was given.
1771 if test "${enable_shared+set}" = set; then
1772 enableval="$enable_shared"
1782 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1783 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1784 { (exit 1); exit 1; }; }
1796 # '-rpath'-like feature can be disabled
1800 # Check whether --enable-rpath or --disable-rpath was given.
1801 if test "${enable_rpath+set}" = set; then
1802 enableval="$enable_rpath"
1812 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1813 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1814 { (exit 1); exit 1; }; }
1827 # --enable-debug adds -g to compiler flags
1831 # Check whether --enable-debug or --disable-debug was given.
1832 if test "${enable_debug+set}" = set; then
1833 enableval="$enable_debug"
1843 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1844 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1845 { (exit 1); exit 1; }; }
1860 # For historical reasons you can also use --with-CC to specify the C compiler
1861 # to use, although the standard way to do this is to set the CC environment
1866 # Check whether --with-CC or --without-CC was given.
1867 if test "${with_CC+set}" = set; then
1872 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1873 echo "$as_me: error: argument required for --with-CC option" >&2;}
1874 { (exit 1); exit 1; }; }
1877 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1878 echo "$as_me: error: argument required for --with-CC option" >&2;}
1879 { (exit 1); exit 1; }; }
1890 aix) pgac_cc_list="gcc xlc";;
1891 irix) pgac_cc_list="cc";; # no gcc
1892 *) pgac_cc_list="gcc cc";;
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901 for ac_prog in $pgac_cc_list
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 if test -n "$CC"; then
1931 echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1938 test -n "$CC" && break
1941 if test -z "$CC"; then
1943 for ac_prog in $pgac_cc_list
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$ac_ct_CC"; then
1953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CC="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1980 test -n "$ac_ct_CC" && break
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1988 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1989 { (exit 1); exit 1; }; }
1991 # Provide some information about the compiler.
1992 echo "$as_me:$LINENO:" \
1993 "checking for C compiler version" >&5
1994 ac_compiler=`set X $ac_compile; echo $2`
1995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1996 (eval $ac_compiler --version </dev/null >&5) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2001 (eval $ac_compiler -v </dev/null >&5) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2006 (eval $ac_compiler -V </dev/null >&5) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2015 #ifdef F77_DUMMY_MAIN
2019 int F77_DUMMY_MAIN() { return 1; }
2029 ac_clean_files_save=$ac_clean_files
2030 ac_clean_files="$ac_clean_files a.out a.exe"
2031 # Try to create an executable without -o first, disregard a.out.
2032 # It will help us diagnose broken compilers, and finding out an intuition
2034 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2035 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2036 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2037 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2038 (eval $ac_link_default) 2>&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 # Find the output, starting from the most likely. This scheme is
2043 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2046 # Be careful to initialize this variable, since it used to be cached.
2047 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2049 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2050 ls a.out conftest 2>/dev/null;
2051 ls a.* conftest.* 2>/dev/null`; do
2053 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2054 a.out ) # We found the default executable, but exeext='' is most
2057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2065 echo "$as_me: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2068 echo "$as_me: error: C compiler cannot create executables" >&2;}
2069 { (exit 77); exit 77; }; }
2072 ac_exeext=$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_file" >&5
2074 echo "${ECHO_T}$ac_file" >&6
2076 # Check the compiler produces executables we can run. If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2079 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081 # If not cross compiling, check that we can run a simple program.
2082 if test "$cross_compiling" != yes; then
2083 if { ac_try='./$ac_file'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2091 if test "$cross_compiling" = maybe; then
2094 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'." >&5
2096 echo "$as_me: error: cannot run C compiled programs.
2097 If you meant to cross compile, use \`--host'." >&2;}
2098 { (exit 1); exit 1; }; }
2102 echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6
2105 rm -f a.out a.exe conftest$ac_cv_exeext
2106 ac_clean_files=$ac_clean_files_save
2107 # Check the compiler produces executables we can run. If not, either
2108 # the compiler is broken, or we cross compile.
2109 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2110 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2112 echo "${ECHO_T}$cross_compiling" >&6
2114 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2117 (eval $ac_link) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2123 # work properly (i.e., refer to `conftest.exe'), while it won't with
2125 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2127 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2137 { (exit 1); exit 1; }; }
2140 rm -f conftest$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142 echo "${ECHO_T}$ac_cv_exeext" >&6
2144 rm -f conftest.$ac_ext
2145 EXEEXT=$ac_cv_exeext
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line $LINENO "configure"
2154 #include "confdefs.h"
2156 #ifdef F77_DUMMY_MAIN
2160 int F77_DUMMY_MAIN() { return 1; }
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 cat >conftest.$ac_ext <<_ACEOF
2203 #line $LINENO "configure"
2204 #include "confdefs.h"
2206 #ifdef F77_DUMMY_MAIN
2210 int F77_DUMMY_MAIN() { return 1; }
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 echo "$as_me: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2245 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247 GCC=`test $ac_compiler_gnu = yes && echo yes`
2248 ac_test_CFLAGS=${CFLAGS+set}
2249 ac_save_CFLAGS=$CFLAGS
2251 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253 if test "${ac_cv_prog_cc_g+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 #include "confdefs.h"
2260 #ifdef F77_DUMMY_MAIN
2264 int F77_DUMMY_MAIN() { return 1; }
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2288 echo "$as_me: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2296 if test "$ac_test_CFLAGS" = set; then
2297 CFLAGS=$ac_save_CFLAGS
2298 elif test $ac_cv_prog_cc_g = yes; then
2299 if test "$GCC" = yes; then
2305 if test "$GCC" = yes; then
2311 # Some people use a C++ compiler to compile C. Since we use `exit',
2312 # in C++ we need to declare it. In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 for ac_declaration in \
2334 '#include <stdlib.h>' \
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2346 #ifdef F77_DUMMY_MAIN
2350 int F77_DUMMY_MAIN() { return 1; }
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2374 echo "$as_me: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 cat >conftest.$ac_ext <<_ACEOF
2380 #line $LINENO "configure"
2381 #include "confdefs.h"
2383 #ifdef F77_DUMMY_MAIN
2387 int F77_DUMMY_MAIN() { return 1; }
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 rm -f conftest.$ac_objext conftest.$ac_ext
2417 if test -n "$ac_declaration"; then
2418 echo '#ifdef __cplusplus' >>confdefs.h
2419 echo $ac_declaration >>confdefs.h
2420 echo '#endif' >>confdefs.h
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 . "$srcdir/src/template/$template" || exit
2437 if test "$ac_env_CFLAGS_set" = set; then
2438 CFLAGS=$ac_env_CFLAGS_value
2440 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2443 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2444 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2445 # Check if the compiler still works with the template settings
2446 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2447 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line $LINENO "configure"
2451 #include "confdefs.h"
2453 #ifdef F77_DUMMY_MAIN
2457 int F77_DUMMY_MAIN() { return 1; }
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2469 (eval $ac_link) 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest$ac_exeext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2487 echo "$as_me: error: cannot proceed" >&2;}
2488 { (exit 1); exit 1; }; }
2490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498 # On Suns, sometimes $CPP names a directory.
2499 if test -n "$CPP" && test -d "$CPP"; then
2502 if test -z "$CPP"; then
2503 if test "${ac_cv_prog_CPP+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 # Double quotes because CPP needs to be expanded
2507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2510 for ac_c_preproc_warn_flag in '' yes
2512 # Use a header file that comes with gcc, so configuring glibc
2513 # with a fresh cross-compiler works.
2514 # On the NeXT, cc -E runs the code through the compiler's parser,
2515 # not just through cpp. "Syntax error" is here to catch this case.
2516 cat >conftest.$ac_ext <<_ACEOF
2517 #line $LINENO "configure"
2518 #include "confdefs.h"
2522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525 egrep -v '^ *\+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } >/dev/null; then
2530 if test -s conftest.err; then
2531 ac_cpp_err=$ac_c_preproc_warn_flag
2538 if test -z "$ac_cpp_err"; then
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 # Broken: fails on valid input.
2546 rm -f conftest.err conftest.$ac_ext
2548 # OK, works on sane cases. Now check whether non-existent headers
2549 # can be detected and how.
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <ac_nonexistent.h>
2555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2558 egrep -v '^ *\+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } >/dev/null; then
2563 if test -s conftest.err; then
2564 ac_cpp_err=$ac_c_preproc_warn_flag
2571 if test -z "$ac_cpp_err"; then
2572 # Broken: success on invalid input.
2575 echo "$as_me: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 # Passes both tests.
2581 rm -f conftest.err conftest.$ac_ext
2584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2585 rm -f conftest.err conftest.$ac_ext
2586 if $ac_preproc_ok; then
2598 echo "$as_me:$LINENO: result: $CPP" >&5
2599 echo "${ECHO_T}$CPP" >&6
2601 for ac_c_preproc_warn_flag in '' yes
2603 # Use a header file that comes with gcc, so configuring glibc
2604 # with a fresh cross-compiler works.
2605 # On the NeXT, cc -E runs the code through the compiler's parser,
2606 # not just through cpp. "Syntax error" is here to catch this case.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 #include "confdefs.h"
2613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2616 egrep -v '^ *\+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } >/dev/null; then
2621 if test -s conftest.err; then
2622 ac_cpp_err=$ac_c_preproc_warn_flag
2629 if test -z "$ac_cpp_err"; then
2632 echo "$as_me: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 # Broken: fails on valid input.
2637 rm -f conftest.err conftest.$ac_ext
2639 # OK, works on sane cases. Now check whether non-existent headers
2640 # can be detected and how.
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <ac_nonexistent.h>
2646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649 egrep -v '^ *\+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } >/dev/null; then
2654 if test -s conftest.err; then
2655 ac_cpp_err=$ac_c_preproc_warn_flag
2662 if test -z "$ac_cpp_err"; then
2663 # Broken: success on invalid input.
2666 echo "$as_me: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 # Passes both tests.
2672 rm -f conftest.err conftest.$ac_ext
2675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2676 rm -f conftest.err conftest.$ac_ext
2677 if $ac_preproc_ok; then
2680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2681 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2682 { (exit 1); exit 1; }; }
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 # Create compiler version string
2694 if test x"$GCC" = x"yes" ; then
2695 cc_string="GCC `${CC} --version | sed q`"
2700 cat >>confdefs.h <<_ACEOF
2701 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2707 # Automatic dependency tracking
2711 # Check whether --enable-depend or --disable-depend was given.
2712 if test "${enable_depend+set}" = set; then
2713 enableval="$enable_depend"
2723 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2724 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2725 { (exit 1); exit 1; }; }
2738 # Enable assert checks
2742 # Check whether --enable-cassert or --disable-cassert was given.
2743 if test "${enable_cassert+set}" = set; then
2744 enableval="$enable_cassert"
2749 cat >>confdefs.h <<\_ACEOF
2750 #define USE_ASSERT_CHECKING 1
2758 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2759 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2760 { (exit 1); exit 1; }; }
2772 # Include directories
2776 # SRCH_INC comes from the template file
2777 for dir in $with_includes $SRCH_INC; do
2778 if test -d "$dir"; then
2779 INCLUDES="$INCLUDES -I$dir"
2781 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2782 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2790 # Library directories
2794 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2795 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2796 if test -d "$dir"; then
2797 LIBDIRS="$LIBDIRS -L$dir"
2799 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2800 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2809 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2810 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2814 # Check whether --with-tcl or --without-tcl was given.
2815 if test "${with_tcl+set}" = set; then
2826 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2827 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2828 { (exit 1); exit 1; }; }
2837 echo "$as_me:$LINENO: result: $with_tcl" >&5
2838 echo "${ECHO_T}$with_tcl" >&6
2841 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2842 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2843 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2844 if test "$with_tcl" = yes; then
2848 # Check whether --with-tk or --without-tk was given.
2849 if test "${with_tk+set}" = set; then
2860 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2861 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2862 { (exit 1); exit 1; }; }
2874 echo "$as_me:$LINENO: result: $with_tk" >&5
2875 echo "${ECHO_T}$with_tk" >&6
2879 # We see if the path to the Tcl/Tk configuration scripts is specified.
2880 # This will override the use of tclsh to find the paths to search.
2885 # Check whether --with-tclconfig or --without-tclconfig was given.
2886 if test "${with_tclconfig+set}" = set; then
2887 withval="$with_tclconfig"
2891 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2893 { (exit 1); exit 1; }; }
2896 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2897 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2898 { (exit 1); exit 1; }; }
2908 # We see if the path to the Tk configuration scripts is specified.
2909 # This will override the use of tclsh to find the paths to search.
2914 # Check whether --with-tkconfig or --without-tkconfig was given.
2915 if test "${with_tkconfig+set}" = set; then
2916 withval="$with_tkconfig"
2920 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2921 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2922 { (exit 1); exit 1; }; }
2925 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2927 { (exit 1); exit 1; }; }
2938 # Optionally build Perl modules (PL/Perl)
2940 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2941 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2945 # Check whether --with-perl or --without-perl was given.
2946 if test "${with_perl+set}" = set; then
2947 withval="$with_perl"
2957 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2958 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2959 { (exit 1); exit 1; }; }
2968 echo "$as_me:$LINENO: result: $with_perl" >&5
2969 echo "${ECHO_T}$with_perl" >&6
2973 # Optionally build Python interface module
2975 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2976 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2980 # Check whether --with-python or --without-python was given.
2981 if test "${with_python+set}" = set; then
2982 withval="$with_python"
2992 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
2993 echo "$as_me: error: no argument expected for --with-python option" >&2;}
2994 { (exit 1); exit 1; }; }
3003 echo "$as_me:$LINENO: result: $with_python" >&5
3004 echo "${ECHO_T}$with_python" >&6
3008 # Optionally build the Java/JDBC tools
3010 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3011 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3015 # Check whether --with-java or --without-java was given.
3016 if test "${with_java+set}" = set; then
3017 withval="$with_java"
3021 echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3024 for ac_prog in jakarta-ant ant ant.sh ant.bat
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_path_ANT+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 if test -n "$ANT"; then
3058 echo "$as_me:$LINENO: result: $ANT" >&5
3059 echo "${ECHO_T}$ANT" >&6
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3065 test -n "$ANT" && break
3069 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3070 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3071 if test "${pgac_cv_prog_ant_works+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 cat > conftest.java << EOF
3076 public class conftest {
3077 int testmethod(int a, int b) {
3083 cat > conftest.xml << EOF
3084 <project name="conftest" default="conftest">
3085 <target name="conftest">
3086 <javac srcdir="." includes="conftest.java">
3092 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3093 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3094 (eval $pgac_cmd) 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3099 if test $? = 0 && test -f ./conftest.class ; then
3100 pgac_cv_prog_ant_works=yes
3102 echo "configure: failed java program was:" >&5
3103 cat conftest.java >&5
3104 echo "configure: failed build file was:" >&5
3105 cat conftest.xml >&5
3106 pgac_cv_prog_ant_works=no
3109 rm -f conftest* core core.* *.core
3112 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3113 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3115 if test "$pgac_cv_prog_ant_works" != yes; then
3116 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3117 echo "$as_me: error: ant does not work" >&2;}
3118 { (exit 1); exit 1; }; }
3122 if test -z "$ANT"; then
3123 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3124 If you have Ant already installed, see config.log for details on the failure." >&5
3125 echo "$as_me: error: Ant is required to build Java components
3126 If you have Ant already installed, see config.log for details on the failure." >&2;}
3127 { (exit 1); exit 1; }; }
3129 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3130 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3131 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3132 { (exit 1); exit 1; }; }
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3141 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3142 { (exit 1); exit 1; }; }
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3158 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3159 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3163 # Check whether --with-krb4 or --without-krb4 was given.
3164 if test "${with_krb4+set}" = set; then
3165 withval="$with_krb4"
3169 krb4_prefix=/usr/athena
3176 krb4_prefix=$withval
3185 if test "$with_krb4" = yes; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188 echo "${ECHO_T}yes" >&6
3190 cat >>confdefs.h <<\_ACEOF
3195 if test -d "$krb4_prefix/include"; then
3196 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3198 if test -d "$krb4_prefix/lib"; then
3199 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3202 krb_srvtab="/etc/srvtab"
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3216 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3217 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3221 # Check whether --with-krb5 or --without-krb5 was given.
3222 if test "${with_krb5+set}" = set; then
3223 withval="$with_krb5"
3227 krb5_prefix=/usr/athena
3234 krb5_prefix=$withval
3243 if test "$with_krb5" = yes; then
3245 echo "$as_me:$LINENO: result: yes" >&5
3246 echo "${ECHO_T}yes" >&6
3248 cat >>confdefs.h <<\_ACEOF
3253 if test -d "$krb5_prefix/include"; then
3254 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3256 if test -d "$krb5_prefix/lib"; then
3257 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3260 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3263 echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3271 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3272 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3273 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3274 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3275 { (exit 1); exit 1; }; }
3282 # Kerberos configuration parameters
3287 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3288 if test "${with_krb_srvnam+set}" = set; then
3289 withval="$with_krb_srvnam"
3293 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3294 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3295 { (exit 1); exit 1; }; }
3298 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3299 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3300 { (exit 1); exit 1; }; }
3308 with_krb_srvnam="postgres"
3312 cat >>confdefs.h <<_ACEOF
3313 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3321 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3322 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3326 # Check whether --with-pam or --without-pam was given.
3327 if test "${with_pam+set}" = set; then
3333 cat >>confdefs.h <<\_ACEOF
3342 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3343 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3344 { (exit 1); exit 1; }; }
3353 echo "$as_me:$LINENO: result: $with_pam" >&5
3354 echo "${ECHO_T}$with_pam" >&6
3364 # Check whether --with-openssl or --without-openssl was given.
3365 if test "${with_openssl+set}" = set; then
3366 withval="$with_openssl"
3370 openssl_prefix=/usr/local/ssl
3377 openssl_prefix=$withval
3386 if test "$with_openssl" = yes; then
3388 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3389 echo "${ECHO_T}building with OpenSSL support" >&6
3391 cat >>confdefs.h <<\_ACEOF
3396 if test -d "${openssl_prefix}/include" ; then
3397 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3399 if test -d "${openssl_prefix}/lib" ; then
3400 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3415 # Check whether --with-readline or --without-readline was given.
3416 if test "${with_readline+set}" = set; then
3417 withval="$with_readline"
3427 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3428 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3429 { (exit 1); exit 1; }; }
3445 # Check whether --with-zlib or --without-zlib was given.
3446 if test "${with_zlib+set}" = set; then
3447 withval="$with_zlib"
3457 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3458 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3459 { (exit 1); exit 1; }; }
3471 # Assume system is ELF if it predefines __ELF__ as 1,
3472 # otherwise believe host_os based default.
3474 freebsd1*|freebsd2*) elf=no;;
3475 freebsd3*|freebsd4*) elf=yes;;
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 #include "confdefs.h"
3487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3488 egrep "yes" >/dev/null 2>&1; then
3491 if test "X$elf" = "Xyes" ; then
3503 CPPFLAGS="$CPPFLAGS $INCLUDES"
3504 LDFLAGS="$LDFLAGS $LIBDIRS"
3506 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3507 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3508 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3509 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3512 for ac_prog in gawk mawk nawk awk
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 echo "$as_me:$LINENO: checking for $ac_word" >&5
3517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3518 if test "${ac_cv_prog_AWK+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 if test -n "$AWK"; then
3522 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_AWK="$ac_prog"
3532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 if test -n "$AWK"; then
3542 echo "$as_me:$LINENO: result: $AWK" >&5
3543 echo "${ECHO_T}$AWK" >&6
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3549 test -n "$AWK" && break
3552 echo "$as_me:$LINENO: checking for flex" >&5
3553 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3554 if test "${pgac_cv_path_flex+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 # Let the user override the test
3558 if test -n "$FLEX"; then
3559 pgac_cv_path_flex=$FLEX
3563 for pgac_dir in $PATH; do
3564 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3567 for pgac_prog in flex lex; do
3568 pgac_candidate="$pgac_dir/$pgac_prog"
3569 if test -f "$pgac_candidate" \
3570 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3572 echo '%%' > conftest.l
3573 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3574 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3575 pgac_broken_flex=$pgac_candidate
3579 pgac_cv_path_flex=$pgac_candidate
3587 : ${pgac_cv_path_flex=no}
3591 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3592 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3593 if test x"$pgac_cv_path_flex" = x"no"; then
3594 if test -n "$pgac_broken_flex"; then
3595 { echo "$as_me:$LINENO: WARNING:
3596 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3597 *** should get version 2.5.4 or later." >&5
3598 echo "$as_me: WARNING:
3599 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3600 *** should get version 2.5.4 or later." >&2;}
3603 { echo "$as_me:$LINENO: WARNING:
3604 *** Without Flex you will not be able to build PostgreSQL from CVS or
3605 *** change any of the scanner definition files. You can obtain Flex from
3606 *** a GNU mirror site. (If you are using the official distribution of
3607 *** PostgreSQL then you do not need to worry about this because the Flex
3608 *** output is pre-generated.)" >&5
3609 echo "$as_me: 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.)" >&2;}
3617 if test x"$pgac_cv_path_flex" = x"no"; then
3620 FLEX=$pgac_cv_path_flex
3626 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3627 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3629 if test "$LN_S" = "ln -s"; then
3630 echo "$as_me:$LINENO: result: yes" >&5
3631 echo "${ECHO_T}yes" >&6
3633 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3634 echo "${ECHO_T}no, using $LN_S" >&6
3638 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3639 if test "${with_gnu_ld+set}" = set; then
3640 withval="$with_gnu_ld"
3641 test "$withval" = no || with_gnu_ld=yes
3646 if test "$GCC" = yes; then
3647 # Check if gcc -print-prog-name=ld gives a path.
3648 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3649 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3652 # gcc leaves a trailing carriage return which upsets mingw
3653 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3655 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3658 # Accept absolute paths.
3659 [\\/]* | [A-Za-z]:[\\/]*)
3660 re_direlt='/[^/][^/]*/\.\./'
3661 # Canonicalize the path of ld
3662 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3663 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3664 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3666 test -z "$LD" && LD="$ac_prog"
3669 # If it fails, then pretend we aren't using GCC.
3673 # If it is relative, then search for the first ld in PATH.
3677 elif test "$with_gnu_ld" = yes; then
3678 echo "$as_me:$LINENO: checking for GNU ld" >&5
3679 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3681 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3682 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3684 if test "${ac_cv_path_LD+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 if test -z "$LD"; then
3688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3689 for ac_dir in $PATH; do
3690 test -z "$ac_dir" && ac_dir=.
3691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3692 ac_cv_path_LD="$ac_dir/$ac_prog"
3693 # Check to see if the program is GNU ld. I'd rather use --version,
3694 # but apparently some GNU ld's only accept -v.
3695 # Break only if it was the GNU/non-GNU ld that we prefer.
3696 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3697 test "$with_gnu_ld" != no && break
3699 test "$with_gnu_ld" != yes && break
3705 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3710 if test -n "$LD"; then
3711 echo "$as_me:$LINENO: result: $LD" >&5
3712 echo "${ECHO_T}$LD" >&6
3714 echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6
3717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3719 { (exit 1); exit 1; }; }
3720 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3722 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3726 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3727 ac_cv_prog_gnu_ld=yes
3729 ac_cv_prog_gnu_ld=no
3732 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3733 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3734 with_gnu_ld=$ac_cv_prog_gnu_ld
3739 case $host_os in sysv5*)
3740 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3741 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3742 if test "${pgac_cv_prog_ld_R+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3747 cat >conftest.$ac_ext <<_ACEOF
3748 #line $LINENO "configure"
3749 #include "confdefs.h"
3751 #ifdef F77_DUMMY_MAIN
3755 int F77_DUMMY_MAIN() { return 1; }
3765 rm -f conftest.$ac_objext conftest$ac_exeext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767 (eval $ac_link) 2>&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 pgac_cv_prog_ld_R=yes
3779 echo "$as_me: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3781 pgac_cv_prog_ld_R=no
3783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3784 LDFLAGS=$pgac_save_LDFLAGS
3787 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3788 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3789 ld_R_works=$pgac_cv_prog_ld_R
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_RANLIB+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$RANLIB"; then
3801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 RANLIB=$ac_cv_prog_RANLIB
3820 if test -n "$RANLIB"; then
3821 echo "$as_me:$LINENO: result: $RANLIB" >&5
3822 echo "${ECHO_T}$RANLIB" >&6
3824 echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3829 if test -z "$ac_cv_prog_RANLIB"; then
3830 ac_ct_RANLIB=$RANLIB
3831 # Extract the first word of "ranlib", so it can be a program name with args.
3832 set dummy ranlib; ac_word=$2
3833 echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 if test -n "$ac_ct_RANLIB"; then
3839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_ac_ct_RANLIB="ranlib"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3859 if test -n "$ac_ct_RANLIB"; then
3860 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3861 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3867 RANLIB=$ac_ct_RANLIB
3869 RANLIB="$ac_cv_prog_RANLIB"
3872 for ac_prog in lorder
3874 # Extract the first word of "$ac_prog", so it can be a program name with args.
3875 set dummy $ac_prog; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_prog_LORDER+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 if test -n "$LORDER"; then
3882 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_LORDER="$ac_prog"
3892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 LORDER=$ac_cv_prog_LORDER
3901 if test -n "$LORDER"; then
3902 echo "$as_me:$LINENO: result: $LORDER" >&5
3903 echo "${ECHO_T}$LORDER" >&6
3905 echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3909 test -n "$LORDER" && break
3912 # Extract the first word of "tar", so it can be a program name with args.
3913 set dummy tar; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_path_TAR+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 if test -n "$TAR"; then
3944 echo "$as_me:$LINENO: result: $TAR" >&5
3945 echo "${ECHO_T}$TAR" >&6
3947 echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3952 if test -n "$ac_tool_prefix"; then
3953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}strip; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_STRIP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 if test -n "$STRIP"; then
3961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 STRIP=$ac_cv_prog_STRIP
3980 if test -n "$STRIP"; then
3981 echo "$as_me:$LINENO: result: $STRIP" >&5
3982 echo "${ECHO_T}$STRIP" >&6
3984 echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3989 if test -z "$ac_cv_prog_STRIP"; then
3991 # Extract the first word of "strip", so it can be a program name with args.
3992 set dummy strip; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$ac_ct_STRIP"; then
3999 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_prog_ac_ct_STRIP="strip"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4019 if test -n "$ac_ct_STRIP"; then
4020 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4021 echo "${ECHO_T}$ac_ct_STRIP" >&6
4023 echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4029 STRIP="$ac_cv_prog_STRIP"
4033 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4034 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4035 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4036 STRIP_STATIC_LIB="$STRIP -x"
4037 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4038 echo "$as_me:$LINENO: result: yes" >&5
4039 echo "${ECHO_T}yes" >&6
4043 echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6
4050 for ac_prog in 'bison -y'
4052 # Extract the first word of "$ac_prog", so it can be a program name with args.
4053 set dummy $ac_prog; ac_word=$2
4054 echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4056 if test "${ac_cv_prog_YACC+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 if test -n "$YACC"; then
4060 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_prog_YACC="$ac_prog"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 YACC=$ac_cv_prog_YACC
4079 if test -n "$YACC"; then
4080 echo "$as_me:$LINENO: result: $YACC" >&5
4081 echo "${ECHO_T}$YACC" >&6
4083 echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4087 test -n "$YACC" && break
4090 if test -z "$YACC"; then
4091 { echo "$as_me:$LINENO: WARNING:
4092 *** Without Bison you will not be able to build PostgreSQL from CVS or
4093 *** change any of the parser definition files. You can obtain Bison from
4094 *** a GNU mirror site. (If you are using the official distribution of
4095 *** PostgreSQL then you do not need to worry about this because the Bison
4096 *** output is pre-generated.) To use a different yacc program (possible,
4097 *** but not recommended), set the environment variable YACC before running
4098 *** 'configure'." >&5
4099 echo "$as_me: WARNING:
4100 *** Without Bison you will not be able to build PostgreSQL from CVS or
4101 *** change any of the parser definition files. You can obtain Bison from
4102 *** a GNU mirror site. (If you are using the official distribution of
4103 *** PostgreSQL then you do not need to worry about this because the Bison
4104 *** output is pre-generated.) To use a different yacc program (possible,
4105 *** but not recommended), set the environment variable YACC before running
4106 *** 'configure'." >&2;}
4110 # Extract the first word of "perl", so it can be a program name with args.
4111 set dummy perl; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_path_PERL+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 PERL=$ac_cv_path_PERL
4141 if test -n "$PERL"; then
4142 echo "$as_me:$LINENO: result: $PERL" >&5
4143 echo "${ECHO_T}$PERL" >&6
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4149 if test "$with_perl" = yes; then
4151 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4152 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4153 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4154 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4155 echo "${ECHO_T}$perl_archlibexp" >&6
4156 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4157 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4158 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4159 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4160 echo "${ECHO_T}$perl_privlibexp" >&6
4161 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4162 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4163 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4164 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4165 echo "${ECHO_T}$perl_useshrplib" >&6
4167 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4168 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4169 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4170 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4171 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4172 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4173 echo "${ECHO_T}$perl_embed_ldflags" >&6
4176 if test "$with_python" = yes; then
4177 # Extract the first word of "python", so it can be a program name with args.
4178 set dummy python; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_path_PYTHON+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 PYTHON=$ac_cv_path_PYTHON
4208 if test -n "$PYTHON"; then
4209 echo "$as_me:$LINENO: result: $PYTHON" >&5
4210 echo "${ECHO_T}$PYTHON" >&6
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4216 if test x"$PYTHON" = x""; then
4217 { { echo "$as_me:$LINENO: error: Python not found" >&5
4218 echo "$as_me: error: Python not found" >&2;}
4219 { (exit 1); exit 1; }; }
4223 echo "$as_me:$LINENO: checking Python installation directories" >&5
4224 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4225 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4226 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4227 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4228 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4229 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4230 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4231 python_includespec="-I${python_prefix}/include/python${python_version}"
4232 if test "$python_prefix" != "$python_execprefix"; then
4233 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4236 # This should be enough of a message.
4237 if test "$python_prefix" != "$python_execprefix"; then
4238 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4239 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4241 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4242 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4249 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4250 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4252 if test ! -f "$python_configdir/Makefile"; then
4253 echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4255 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4256 echo "$as_me: error: Python Makefile not found" >&2;}
4257 { (exit 1); exit 1; }; }
4260 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4261 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4262 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4263 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4264 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4266 pgac_tab=" " # tab character
4267 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"`
4269 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4270 echo "${ECHO_T}${python_libspec}" >&6
4280 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4283 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4284 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4285 if test "${ac_cv_lib_bsd_main+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 ac_check_lib_save_LIBS=$LIBS
4290 cat >conftest.$ac_ext <<_ACEOF
4291 #line $LINENO "configure"
4292 #include "confdefs.h"
4295 #ifdef F77_DUMMY_MAIN
4299 int F77_DUMMY_MAIN() { return 1; }
4309 rm -f conftest.$ac_objext conftest$ac_exeext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311 (eval $ac_link) 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -s conftest$ac_exeext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 ac_cv_lib_bsd_main=yes
4323 echo "$as_me: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 ac_cv_lib_bsd_main=no
4327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4330 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4331 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4332 if test $ac_cv_lib_bsd_main = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334 #define HAVE_LIBBSD 1
4343 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4344 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4345 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 ac_check_lib_save_LIBS=$LIBS
4350 cat >conftest.$ac_ext <<_ACEOF
4351 #line $LINENO "configure"
4352 #include "confdefs.h"
4354 /* Override any gcc2 internal prototype to avoid an error. */
4358 /* We use char because int might match the return type of a gcc2
4359 builtin and then its argument prototype would still apply. */
4360 char setproctitle ();
4361 #ifdef F77_DUMMY_MAIN
4365 int F77_DUMMY_MAIN() { return 1; }
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377 (eval $ac_link) 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -s conftest$ac_exeext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_lib_util_setproctitle=yes
4389 echo "$as_me: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 ac_cv_lib_util_setproctitle=no
4393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4394 LIBS=$ac_check_lib_save_LIBS
4396 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4397 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4398 if test $ac_cv_lib_util_setproctitle = yes; then
4399 cat >>confdefs.h <<_ACEOF
4400 #define HAVE_LIBUTIL 1
4408 echo "$as_me:$LINENO: checking for main in -lm" >&5
4409 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4410 if test "${ac_cv_lib_m_main+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 ac_check_lib_save_LIBS=$LIBS
4415 cat >conftest.$ac_ext <<_ACEOF
4416 #line $LINENO "configure"
4417 #include "confdefs.h"
4420 #ifdef F77_DUMMY_MAIN
4424 int F77_DUMMY_MAIN() { return 1; }
4434 rm -f conftest.$ac_objext conftest$ac_exeext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436 (eval $ac_link) 2>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_lib_m_main=yes
4448 echo "$as_me: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4453 LIBS=$ac_check_lib_save_LIBS
4455 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4456 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4457 if test $ac_cv_lib_m_main = yes; then
4458 cat >>confdefs.h <<_ACEOF
4467 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4468 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4469 if test "${ac_cv_lib_dl_main+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_check_lib_save_LIBS=$LIBS
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #line $LINENO "configure"
4476 #include "confdefs.h"
4479 #ifdef F77_DUMMY_MAIN
4483 int F77_DUMMY_MAIN() { return 1; }
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest$ac_exeext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_cv_lib_dl_main=yes
4507 echo "$as_me: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4509 ac_cv_lib_dl_main=no
4511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4514 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4515 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4516 if test $ac_cv_lib_dl_main = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518 #define HAVE_LIBDL 1
4526 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4527 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4528 if test "${ac_cv_lib_nsl_main+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 ac_check_lib_save_LIBS=$LIBS
4533 cat >conftest.$ac_ext <<_ACEOF
4534 #line $LINENO "configure"
4535 #include "confdefs.h"
4538 #ifdef F77_DUMMY_MAIN
4542 int F77_DUMMY_MAIN() { return 1; }
4552 rm -f conftest.$ac_objext conftest$ac_exeext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554 (eval $ac_link) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -s conftest$ac_exeext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_lib_nsl_main=yes
4566 echo "$as_me: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 ac_cv_lib_nsl_main=no
4570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4571 LIBS=$ac_check_lib_save_LIBS
4573 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4574 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4575 if test $ac_cv_lib_nsl_main = yes; then
4576 cat >>confdefs.h <<_ACEOF
4577 #define HAVE_LIBNSL 1
4585 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4586 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4587 if test "${ac_cv_lib_socket_main+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 ac_check_lib_save_LIBS=$LIBS
4591 LIBS="-lsocket $LIBS"
4592 cat >conftest.$ac_ext <<_ACEOF
4593 #line $LINENO "configure"
4594 #include "confdefs.h"
4597 #ifdef F77_DUMMY_MAIN
4601 int F77_DUMMY_MAIN() { return 1; }
4611 rm -f conftest.$ac_objext conftest$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613 (eval $ac_link) 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try='test -s conftest$ac_exeext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_lib_socket_main=yes
4625 echo "$as_me: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 ac_cv_lib_socket_main=no
4629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4630 LIBS=$ac_check_lib_save_LIBS
4632 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4633 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4634 if test $ac_cv_lib_socket_main = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636 #define HAVE_LIBSOCKET 1
4639 LIBS="-lsocket $LIBS"
4644 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4645 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4646 if test "${ac_cv_lib_ipc_main+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 ac_check_lib_save_LIBS=$LIBS
4651 cat >conftest.$ac_ext <<_ACEOF
4652 #line $LINENO "configure"
4653 #include "confdefs.h"
4656 #ifdef F77_DUMMY_MAIN
4660 int F77_DUMMY_MAIN() { return 1; }
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_lib_ipc_main=yes
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 ac_cv_lib_ipc_main=no
4688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4689 LIBS=$ac_check_lib_save_LIBS
4691 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4692 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4693 if test $ac_cv_lib_ipc_main = yes; then
4694 cat >>confdefs.h <<_ACEOF
4695 #define HAVE_LIBIPC 1
4703 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4704 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4705 if test "${ac_cv_lib_IPC_main+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 ac_check_lib_save_LIBS=$LIBS
4710 cat >conftest.$ac_ext <<_ACEOF
4711 #line $LINENO "configure"
4712 #include "confdefs.h"
4715 #ifdef F77_DUMMY_MAIN
4719 int F77_DUMMY_MAIN() { return 1; }
4729 rm -f conftest.$ac_objext conftest$ac_exeext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4731 (eval $ac_link) 2>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -s conftest$ac_exeext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_lib_IPC_main=yes
4743 echo "$as_me: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4745 ac_cv_lib_IPC_main=no
4747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4748 LIBS=$ac_check_lib_save_LIBS
4750 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4751 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4752 if test $ac_cv_lib_IPC_main = yes; then
4753 cat >>confdefs.h <<_ACEOF
4754 #define HAVE_LIBIPC 1
4762 echo "$as_me:$LINENO: checking for main in -llc" >&5
4763 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4764 if test "${ac_cv_lib_lc_main+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 ac_check_lib_save_LIBS=$LIBS
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4774 #ifdef F77_DUMMY_MAIN
4778 int F77_DUMMY_MAIN() { return 1; }
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -s conftest$ac_exeext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_cv_lib_lc_main=yes
4802 echo "$as_me: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 ac_cv_lib_lc_main=no
4806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807 LIBS=$ac_check_lib_save_LIBS
4809 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4810 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4811 if test $ac_cv_lib_lc_main = yes; then
4812 cat >>confdefs.h <<_ACEOF
4813 #define HAVE_LIBLC 1
4821 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4822 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4823 if test "${ac_cv_lib_dld_main+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 ac_check_lib_save_LIBS=$LIBS
4828 cat >conftest.$ac_ext <<_ACEOF
4829 #line $LINENO "configure"
4830 #include "confdefs.h"
4833 #ifdef F77_DUMMY_MAIN
4837 int F77_DUMMY_MAIN() { return 1; }
4847 rm -f conftest.$ac_objext conftest$ac_exeext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849 (eval $ac_link) 2>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -s conftest$ac_exeext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_cv_lib_dld_main=yes
4861 echo "$as_me: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 ac_cv_lib_dld_main=no
4865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4866 LIBS=$ac_check_lib_save_LIBS
4868 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4869 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4870 if test $ac_cv_lib_dld_main = yes; then
4871 cat >>confdefs.h <<_ACEOF
4872 #define HAVE_LIBDLD 1
4880 echo "$as_me:$LINENO: checking for main in -lld" >&5
4881 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4882 if test "${ac_cv_lib_ld_main+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 ac_check_lib_save_LIBS=$LIBS
4887 cat >conftest.$ac_ext <<_ACEOF
4888 #line $LINENO "configure"
4889 #include "confdefs.h"
4892 #ifdef F77_DUMMY_MAIN
4896 int F77_DUMMY_MAIN() { return 1; }
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } &&
4912 { ac_try='test -s conftest$ac_exeext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 ac_cv_lib_ld_main=yes
4920 echo "$as_me: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 ac_cv_lib_ld_main=no
4924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4925 LIBS=$ac_check_lib_save_LIBS
4927 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4928 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4929 if test $ac_cv_lib_ld_main = yes; then
4930 cat >>confdefs.h <<_ACEOF
4931 #define HAVE_LIBLD 1
4939 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4940 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4941 if test "${ac_cv_lib_compat_main+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_check_lib_save_LIBS=$LIBS
4945 LIBS="-lcompat $LIBS"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4948 #include "confdefs.h"
4951 #ifdef F77_DUMMY_MAIN
4955 int F77_DUMMY_MAIN() { return 1; }
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -s conftest$ac_exeext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_lib_compat_main=yes
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 ac_cv_lib_compat_main=no
4983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4984 LIBS=$ac_check_lib_save_LIBS
4986 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4987 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4988 if test $ac_cv_lib_compat_main = yes; then
4989 cat >>confdefs.h <<_ACEOF
4990 #define HAVE_LIBCOMPAT 1
4993 LIBS="-lcompat $LIBS"
4998 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4999 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5000 if test "${ac_cv_lib_BSD_main+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_check_lib_save_LIBS=$LIBS
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5007 #include "confdefs.h"
5010 #ifdef F77_DUMMY_MAIN
5014 int F77_DUMMY_MAIN() { return 1; }
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026 (eval $ac_link) 2>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -s conftest$ac_exeext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 ac_cv_lib_BSD_main=yes
5038 echo "$as_me: failed program was:" >&5
5039 cat conftest.$ac_ext >&5
5040 ac_cv_lib_BSD_main=no
5042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5043 LIBS=$ac_check_lib_save_LIBS
5045 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5046 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5047 if test $ac_cv_lib_BSD_main = yes; then
5048 cat >>confdefs.h <<_ACEOF
5049 #define HAVE_LIBBSD 1
5057 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5058 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5059 if test "${ac_cv_lib_gen_main+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 ac_check_lib_save_LIBS=$LIBS
5064 cat >conftest.$ac_ext <<_ACEOF
5065 #line $LINENO "configure"
5066 #include "confdefs.h"
5069 #ifdef F77_DUMMY_MAIN
5073 int F77_DUMMY_MAIN() { return 1; }
5083 rm -f conftest.$ac_objext conftest$ac_exeext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085 (eval $ac_link) 2>&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } &&
5089 { ac_try='test -s conftest$ac_exeext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 ac_cv_lib_gen_main=yes
5097 echo "$as_me: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 ac_cv_lib_gen_main=no
5101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5102 LIBS=$ac_check_lib_save_LIBS
5104 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5105 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5106 if test $ac_cv_lib_gen_main = yes; then
5107 cat >>confdefs.h <<_ACEOF
5108 #define HAVE_LIBGEN 1
5116 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5117 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5118 if test "${ac_cv_lib_PW_main+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 ac_check_lib_save_LIBS=$LIBS
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5125 #include "confdefs.h"
5128 #ifdef F77_DUMMY_MAIN
5132 int F77_DUMMY_MAIN() { return 1; }
5142 rm -f conftest.$ac_objext conftest$ac_exeext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144 (eval $ac_link) 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -s conftest$ac_exeext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_lib_PW_main=yes
5156 echo "$as_me: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5158 ac_cv_lib_PW_main=no
5160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5161 LIBS=$ac_check_lib_save_LIBS
5163 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5164 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5165 if test $ac_cv_lib_PW_main = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define HAVE_LIBPW 1
5175 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5176 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5177 if test "${ac_cv_lib_resolv_main+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-lresolv $LIBS"
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5184 #include "confdefs.h"
5187 #ifdef F77_DUMMY_MAIN
5191 int F77_DUMMY_MAIN() { return 1; }
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203 (eval $ac_link) 2>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -s conftest$ac_exeext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_cv_lib_resolv_main=yes
5215 echo "$as_me: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5217 ac_cv_lib_resolv_main=no
5219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5220 LIBS=$ac_check_lib_save_LIBS
5222 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5223 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5224 if test $ac_cv_lib_resolv_main = yes; then
5225 cat >>confdefs.h <<_ACEOF
5226 #define HAVE_LIBRESOLV 1
5229 LIBS="-lresolv $LIBS"
5233 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5234 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5235 if test "${ac_cv_search_getopt_long+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 ac_func_search_save_LIBS=$LIBS
5239 ac_cv_search_getopt_long=no
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5244 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5250 char getopt_long ();
5251 #ifdef F77_DUMMY_MAIN
5255 int F77_DUMMY_MAIN() { return 1; }
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267 (eval $ac_link) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest$ac_exeext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_search_getopt_long="none required"
5279 echo "$as_me: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5283 if test "$ac_cv_search_getopt_long" = no; then
5284 for ac_lib in getopt gnugetopt; do
5285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 #include "confdefs.h"
5290 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5296 char getopt_long ();
5297 #ifdef F77_DUMMY_MAIN
5301 int F77_DUMMY_MAIN() { return 1; }
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313 (eval $ac_link) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest$ac_exeext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_search_getopt_long="-l$ac_lib"
5326 echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 LIBS=$ac_func_search_save_LIBS
5334 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5335 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5336 if test "$ac_cv_search_getopt_long" != no; then
5337 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5343 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5344 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5345 if test "${ac_cv_lib_unix_main+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_check_lib_save_LIBS=$LIBS
5350 cat >conftest.$ac_ext <<_ACEOF
5351 #line $LINENO "configure"
5352 #include "confdefs.h"
5355 #ifdef F77_DUMMY_MAIN
5359 int F77_DUMMY_MAIN() { return 1; }
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5371 (eval $ac_link) 2>&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -s conftest$ac_exeext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 ac_cv_lib_unix_main=yes
5383 echo "$as_me: failed program was:" >&5
5384 cat conftest.$ac_ext >&5
5385 ac_cv_lib_unix_main=no
5387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5390 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5391 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5392 if test $ac_cv_lib_unix_main = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_LIBUNIX 1
5401 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5402 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5403 if test "${ac_cv_search_crypt+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 ac_func_search_save_LIBS=$LIBS
5407 ac_cv_search_crypt=no
5408 cat >conftest.$ac_ext <<_ACEOF
5409 #line $LINENO "configure"
5410 #include "confdefs.h"
5412 /* Override any gcc2 internal prototype to avoid an error. */
5416 /* We use char because int might match the return type of a gcc2
5417 builtin and then its argument prototype would still apply. */
5419 #ifdef F77_DUMMY_MAIN
5423 int F77_DUMMY_MAIN() { return 1; }
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_search_crypt="none required"
5447 echo "$as_me: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5451 if test "$ac_cv_search_crypt" = no; then
5452 for ac_lib in crypt; do
5453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5454 cat >conftest.$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5456 #include "confdefs.h"
5458 /* Override any gcc2 internal prototype to avoid an error. */
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5465 #ifdef F77_DUMMY_MAIN
5469 int F77_DUMMY_MAIN() { return 1; }
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481 (eval $ac_link) 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_search_crypt="-l$ac_lib"
5494 echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_func_search_save_LIBS
5502 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5503 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5504 if test "$ac_cv_search_crypt" != no; then
5505 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5511 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5512 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5513 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_check_lib_save_LIBS=$LIBS
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5522 /* Override any gcc2 internal prototype to avoid an error. */
5526 /* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5528 char __inet_ntoa ();
5529 #ifdef F77_DUMMY_MAIN
5533 int F77_DUMMY_MAIN() { return 1; }
5543 rm -f conftest.$ac_objext conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -s conftest$ac_exeext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_bind___inet_ntoa=yes
5557 echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 ac_cv_lib_bind___inet_ntoa=no
5561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5564 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5565 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5566 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5567 cat >>confdefs.h <<_ACEOF
5568 #define HAVE_LIBBIND 1
5576 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5577 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5578 if test "${ac_cv_search_fdatasync+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 ac_func_search_save_LIBS=$LIBS
5582 ac_cv_search_fdatasync=no
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5587 /* Override any gcc2 internal prototype to avoid an error. */
5591 /* We use char because int might match the return type of a gcc2
5592 builtin and then its argument prototype would still apply. */
5594 #ifdef F77_DUMMY_MAIN
5598 int F77_DUMMY_MAIN() { return 1; }
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -s conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_search_fdatasync="none required"
5622 echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626 if test "$ac_cv_search_fdatasync" = no; then
5627 for ac_lib in rt posix4; do
5628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5629 cat >conftest.$ac_ext <<_ACEOF
5630 #line $LINENO "configure"
5631 #include "confdefs.h"
5633 /* Override any gcc2 internal prototype to avoid an error. */
5637 /* We use char because int might match the return type of a gcc2
5638 builtin and then its argument prototype would still apply. */
5640 #ifdef F77_DUMMY_MAIN
5644 int F77_DUMMY_MAIN() { return 1; }
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -s conftest$ac_exeext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_cv_search_fdatasync="-l$ac_lib"
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_func_search_save_LIBS
5677 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5678 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5679 if test "$ac_cv_search_fdatasync" != no; then
5680 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5686 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5687 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5688 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 ac_check_lib_save_LIBS=$LIBS
5692 LIBS="-lcygipc $LIBS"
5693 cat >conftest.$ac_ext <<_ACEOF
5694 #line $LINENO "configure"
5695 #include "confdefs.h"
5697 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5704 #ifdef F77_DUMMY_MAIN
5708 int F77_DUMMY_MAIN() { return 1; }
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_lib_cygipc_shmget=yes
5732 echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 ac_cv_lib_cygipc_shmget=no
5736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5737 LIBS=$ac_check_lib_save_LIBS
5739 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5740 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5741 if test $ac_cv_lib_cygipc_shmget = yes; then
5742 cat >>confdefs.h <<_ACEOF
5743 #define HAVE_LIBCYGIPC 1
5746 LIBS="-lcygipc $LIBS"
5751 if test "$with_readline" = yes; then
5753 echo "$as_me:$LINENO: checking for readline" >&5
5754 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5756 if test "${pgac_cv_check_readline+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 pgac_cv_check_readline=no
5760 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5761 for pgac_rllib in -lreadline -ledit ; do
5762 pgac_save_LIBS=$LIBS
5763 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 #include "confdefs.h"
5768 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5775 #ifdef F77_DUMMY_MAIN
5779 int F77_DUMMY_MAIN() { return 1; }
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5802 # NetBSD and OpenBSD have a broken linker that does not
5803 # recognize dependent libraries
5804 case $host_os in netbsd* | openbsd* )
5807 *) pgac_lib=" -lcurses" ;;
5811 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5815 echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 LIBS=$pgac_save_LIBS
5822 LIBS=$pgac_save_LIBS
5826 if test "$pgac_cv_check_readline" != no ; then
5828 cat >>confdefs.h <<\_ACEOF
5829 #define HAVE_LIBREADLINE 1
5832 LIBS="$pgac_cv_check_readline $LIBS"
5833 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5834 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5836 echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5839 if test x"$pgac_cv_check_readline" = x"no"; then
5840 { { echo "$as_me:$LINENO: error: readline library not found
5841 If you have readline already installed, see config.log for details on the
5842 failure. It is possible the compiler isn't looking in the proper directory.
5843 Use --without-readline to disable readline support." >&5
5844 echo "$as_me: error: readline library not found
5845 If you have readline already installed, see config.log for details on the
5846 failure. It is possible the compiler isn't looking in the proper directory.
5847 Use --without-readline to disable readline support." >&2;}
5848 { (exit 1); exit 1; }; }
5852 if test "$with_zlib" = yes; then
5854 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5855 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5856 if test "${ac_cv_lib_z_inflate+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_check_lib_save_LIBS=$LIBS
5861 cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 #include "confdefs.h"
5865 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5872 #ifdef F77_DUMMY_MAIN
5876 int F77_DUMMY_MAIN() { return 1; }
5886 rm -f conftest.$ac_objext conftest$ac_exeext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5888 (eval $ac_link) 2>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -s conftest$ac_exeext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_lib_z_inflate=yes
5900 echo "$as_me: failed program was:" >&5
5901 cat conftest.$ac_ext >&5
5902 ac_cv_lib_z_inflate=no
5904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5907 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5908 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5909 if test $ac_cv_lib_z_inflate = yes; then
5910 cat >>confdefs.h <<_ACEOF
5917 { { echo "$as_me:$LINENO: error: zlib library not found
5918 If you have zlib already installed, see config.log for details on the
5919 failure. It is possible the compiler isn't looking in the proper directory.
5920 Use --without-zlib to disable zlib support." >&5
5921 echo "$as_me: error: zlib library not found
5922 If you have zlib already installed, see config.log for details on the
5923 failure. It is possible the compiler isn't looking in the proper directory.
5924 Use --without-zlib to disable zlib support." >&2;}
5925 { (exit 1); exit 1; }; }
5930 if test "$with_krb4" = yes ; then
5932 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5933 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5934 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 ac_check_lib_save_LIBS=$LIBS
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 #include "confdefs.h"
5943 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5949 char des_encrypt ();
5950 #ifdef F77_DUMMY_MAIN
5954 int F77_DUMMY_MAIN() { return 1; }
5964 rm -f conftest.$ac_objext conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try='test -s conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_lib_des_des_encrypt=yes
5978 echo "$as_me: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5980 ac_cv_lib_des_des_encrypt=no
5982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5983 LIBS=$ac_check_lib_save_LIBS
5985 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5986 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5987 if test $ac_cv_lib_des_des_encrypt = yes; then
5988 cat >>confdefs.h <<_ACEOF
5989 #define HAVE_LIBDES 1
5995 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
5996 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
5997 { (exit 1); exit 1; }; }
6001 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6002 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6003 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 ac_check_lib_save_LIBS=$LIBS
6008 cat >conftest.$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6010 #include "confdefs.h"
6012 /* Override any gcc2 internal prototype to avoid an error. */
6016 /* We use char because int might match the return type of a gcc2
6017 builtin and then its argument prototype would still apply. */
6018 char krb_sendauth ();
6019 #ifdef F77_DUMMY_MAIN
6023 int F77_DUMMY_MAIN() { return 1; }
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035 (eval $ac_link) 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -s conftest$ac_exeext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_cv_lib_krb_krb_sendauth=yes
6047 echo "$as_me: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 ac_cv_lib_krb_krb_sendauth=no
6051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6052 LIBS=$ac_check_lib_save_LIBS
6054 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6055 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6056 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_LIBKRB 1
6064 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6065 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6066 { (exit 1); exit 1; }; }
6071 if test "$with_krb5" = yes ; then
6072 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6073 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6074 if test "${ac_cv_search_com_err+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_func_search_save_LIBS=$LIBS
6078 ac_cv_search_com_err=no
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 #include "confdefs.h"
6083 /* Override any gcc2 internal prototype to avoid an error. */
6087 /* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6090 #ifdef F77_DUMMY_MAIN
6094 int F77_DUMMY_MAIN() { return 1; }
6104 rm -f conftest.$ac_objext conftest$ac_exeext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6106 (eval $ac_link) 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_cv_search_com_err="none required"
6118 echo "$as_me: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 if test "$ac_cv_search_com_err" = no; then
6123 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6127 #include "confdefs.h"
6129 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6136 #ifdef F77_DUMMY_MAIN
6140 int F77_DUMMY_MAIN() { return 1; }
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_search_com_err="-l$ac_lib"
6165 echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6171 LIBS=$ac_func_search_save_LIBS
6173 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6174 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6175 if test "$ac_cv_search_com_err" != no; then
6176 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6179 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6180 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6181 { (exit 1); exit 1; }; }
6184 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6185 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6186 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 ac_func_search_save_LIBS=$LIBS
6190 ac_cv_search_krb5_encrypt=no
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 #include "confdefs.h"
6195 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201 char krb5_encrypt ();
6202 #ifdef F77_DUMMY_MAIN
6206 int F77_DUMMY_MAIN() { return 1; }
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_search_krb5_encrypt="none required"
6230 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234 if test "$ac_cv_search_krb5_encrypt" = no; then
6235 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6237 cat >conftest.$ac_ext <<_ACEOF
6238 #line $LINENO "configure"
6239 #include "confdefs.h"
6241 /* Override any gcc2 internal prototype to avoid an error. */
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6247 char krb5_encrypt ();
6248 #ifdef F77_DUMMY_MAIN
6252 int F77_DUMMY_MAIN() { return 1; }
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_search_krb5_encrypt="-l$ac_lib"
6277 echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_func_search_save_LIBS
6285 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6286 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6287 if test "$ac_cv_search_krb5_encrypt" != no; then
6288 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6291 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6292 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6293 { (exit 1); exit 1; }; }
6296 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6297 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6298 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ac_func_search_save_LIBS=$LIBS
6302 ac_cv_search_krb5_sendauth=no
6303 cat >conftest.$ac_ext <<_ACEOF
6304 #line $LINENO "configure"
6305 #include "confdefs.h"
6307 /* Override any gcc2 internal prototype to avoid an error. */
6311 /* We use char because int might match the return type of a gcc2
6312 builtin and then its argument prototype would still apply. */
6313 char krb5_sendauth ();
6314 #ifdef F77_DUMMY_MAIN
6318 int F77_DUMMY_MAIN() { return 1; }
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -s conftest$ac_exeext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_search_krb5_sendauth="none required"
6342 echo "$as_me: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6346 if test "$ac_cv_search_krb5_sendauth" = no; then
6347 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6359 char krb5_sendauth ();
6360 #ifdef F77_DUMMY_MAIN
6364 int F77_DUMMY_MAIN() { return 1; }
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_search_krb5_sendauth="-l$ac_lib"
6389 echo "$as_me: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6395 LIBS=$ac_func_search_save_LIBS
6397 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6398 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6399 if test "$ac_cv_search_krb5_sendauth" != no; then
6400 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6403 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6404 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6405 { (exit 1); exit 1; }; }
6410 if test "$with_openssl" = yes ; then
6412 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6413 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6414 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 ac_check_lib_save_LIBS=$LIBS
6418 LIBS="-lcrypto $LIBS"
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6421 #include "confdefs.h"
6423 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char CRYPTO_new_ex_data ();
6430 #ifdef F77_DUMMY_MAIN
6434 int F77_DUMMY_MAIN() { return 1; }
6439 CRYPTO_new_ex_data ();
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -s conftest$ac_exeext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6458 echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6463 LIBS=$ac_check_lib_save_LIBS
6465 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6466 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6467 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6468 cat >>confdefs.h <<_ACEOF
6469 #define HAVE_LIBCRYPTO 1
6472 LIBS="-lcrypto $LIBS"
6475 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6476 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6477 { (exit 1); exit 1; }; }
6481 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6482 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6483 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 ac_check_lib_save_LIBS=$LIBS
6488 cat >conftest.$ac_ext <<_ACEOF
6489 #line $LINENO "configure"
6490 #include "confdefs.h"
6492 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6498 char SSL_library_init ();
6499 #ifdef F77_DUMMY_MAIN
6503 int F77_DUMMY_MAIN() { return 1; }
6508 SSL_library_init ();
6513 rm -f conftest.$ac_objext conftest$ac_exeext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6515 (eval $ac_link) 2>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } &&
6519 { ac_try='test -s conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_cv_lib_ssl_SSL_library_init=yes
6527 echo "$as_me: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6529 ac_cv_lib_ssl_SSL_library_init=no
6531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6532 LIBS=$ac_check_lib_save_LIBS
6534 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6535 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6536 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538 #define HAVE_LIBSSL 1
6544 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6545 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6546 { (exit 1); exit 1; }; }
6551 if test "$with_pam" = yes ; then
6553 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6554 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6555 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_check_lib_save_LIBS=$LIBS
6560 cat >conftest.$ac_ext <<_ACEOF
6561 #line $LINENO "configure"
6562 #include "confdefs.h"
6564 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6571 #ifdef F77_DUMMY_MAIN
6575 int F77_DUMMY_MAIN() { return 1; }
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -s conftest$ac_exeext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_lib_pam_pam_start=yes
6599 echo "$as_me: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6601 ac_cv_lib_pam_pam_start=no
6603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6604 LIBS=$ac_check_lib_save_LIBS
6606 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6607 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6608 if test $ac_cv_lib_pam_pam_start = yes; then
6609 cat >>confdefs.h <<_ACEOF
6610 #define HAVE_LIBPAM 1
6616 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6617 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6618 { (exit 1); exit 1; }; }
6628 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6630 if test "${ac_cv_header_stdc+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 cat >conftest.$ac_ext <<_ACEOF
6634 #line $LINENO "configure"
6635 #include "confdefs.h"
6642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6645 egrep -v '^ *\+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } >/dev/null; then
6650 if test -s conftest.err; then
6651 ac_cpp_err=$ac_c_preproc_warn_flag
6658 if test -z "$ac_cpp_err"; then
6659 ac_cv_header_stdc=yes
6661 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 ac_cv_header_stdc=no
6665 rm -f conftest.err conftest.$ac_ext
6667 if test $ac_cv_header_stdc = yes; then
6668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6669 cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 #include "confdefs.h"
6675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6676 egrep "memchr" >/dev/null 2>&1; then
6679 ac_cv_header_stdc=no
6685 if test $ac_cv_header_stdc = yes; then
6686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6687 cat >conftest.$ac_ext <<_ACEOF
6688 #line $LINENO "configure"
6689 #include "confdefs.h"
6693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 egrep "free" >/dev/null 2>&1; then
6697 ac_cv_header_stdc=no
6703 if test $ac_cv_header_stdc = yes; then
6704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6705 if test "$cross_compiling" = yes; then
6708 cat >conftest.$ac_ext <<_ACEOF
6709 #line $LINENO "configure"
6710 #include "confdefs.h"
6712 #if ((' ' & 0x0FF) == 0x020)
6713 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6714 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6716 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6717 || ('j' <= (c) && (c) <= 'r') \
6718 || ('s' <= (c) && (c) <= 'z'))
6719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6727 for (i = 0; i < 256; i++)
6728 if (XOR (islower (i), ISLOWER (i))
6729 || toupper (i) != TOUPPER (i))
6734 rm -f conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736 (eval $ac_link) 2>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6747 echo "$as_me: program exited with status $ac_status" >&5
6748 echo "$as_me: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 ac_cv_header_stdc=no
6753 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6757 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6758 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6759 if test $ac_cv_header_stdc = yes; then
6761 cat >>confdefs.h <<\_ACEOF
6762 #define STDC_HEADERS 1
6767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6778 inttypes.h stdint.h unistd.h
6780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6781 echo "$as_me:$LINENO: checking for $ac_header" >&5
6782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 #include "confdefs.h"
6789 $ac_includes_default
6791 #include <$ac_header>
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest.$ac_objext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 eval "$as_ac_Header=yes"
6807 echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 eval "$as_ac_Header=no"
6811 rm -f conftest.$ac_objext conftest.$ac_ext
6813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6816 cat >>confdefs.h <<_ACEOF
6817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
6845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6847 echo "$as_me:$LINENO: checking for $ac_header" >&5
6848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6855 # Is the header compilable?
6856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6858 cat >conftest.$ac_ext <<_ACEOF
6859 #line $LINENO "configure"
6860 #include "confdefs.h"
6861 $ac_includes_default
6862 #include <$ac_header>
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_header_compiler=yes
6878 echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 ac_header_compiler=no
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6884 echo "${ECHO_T}$ac_header_compiler" >&6
6886 # Is the header present?
6887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6892 #include <$ac_header>
6894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6897 egrep -v '^ *\+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } >/dev/null; then
6902 if test -s conftest.err; then
6903 ac_cpp_err=$ac_c_preproc_warn_flag
6910 if test -z "$ac_cpp_err"; then
6911 ac_header_preproc=yes
6913 echo "$as_me: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6915 ac_header_preproc=no
6917 rm -f conftest.err conftest.$ac_ext
6918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6919 echo "${ECHO_T}$ac_header_preproc" >&6
6921 # So? What about this header?
6922 case $ac_header_compiler:$ac_header_preproc in
6924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6936 echo "$as_me:$LINENO: checking for $ac_header" >&5
6937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 eval "$as_ac_Header=$ac_header_preproc"
6943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6948 cat >>confdefs.h <<_ACEOF
6949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6957 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6958 # netinet/in.h is included first.
6960 for ac_header in netinet/in.h
6962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6964 echo "$as_me:$LINENO: checking for $ac_header" >&5
6965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6972 # Is the header compilable?
6973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6975 cat >conftest.$ac_ext <<_ACEOF
6976 #line $LINENO "configure"
6977 #include "confdefs.h"
6978 $ac_includes_default
6979 #include <$ac_header>
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -s conftest.$ac_objext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_header_compiler=yes
6995 echo "$as_me: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 ac_header_compiler=no
6999 rm -f conftest.$ac_objext conftest.$ac_ext
7000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7001 echo "${ECHO_T}$ac_header_compiler" >&6
7003 # Is the header present?
7004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 #include "confdefs.h"
7009 #include <$ac_header>
7011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7014 egrep -v '^ *\+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } >/dev/null; then
7019 if test -s conftest.err; then
7020 ac_cpp_err=$ac_c_preproc_warn_flag
7027 if test -z "$ac_cpp_err"; then
7028 ac_header_preproc=yes
7030 echo "$as_me: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7032 ac_header_preproc=no
7034 rm -f conftest.err conftest.$ac_ext
7035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7036 echo "${ECHO_T}$ac_header_preproc" >&6
7038 # So? What about this header?
7039 case $ac_header_compiler:$ac_header_preproc in
7041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7053 echo "$as_me:$LINENO: checking for $ac_header" >&5
7054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 eval "$as_ac_Header=$ac_header_preproc"
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7065 cat >>confdefs.h <<_ACEOF
7066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7074 for ac_header in netinet/tcp.h
7076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7077 echo "$as_me:$LINENO: checking for $ac_header" >&5
7078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7083 #line $LINENO "configure"
7084 #include "confdefs.h"
7085 $ac_includes_default
7086 #ifdef HAVE_NETINET_IN_H
7087 #include <netinet/in.h>
7091 #include <$ac_header>
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -s conftest.$ac_objext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 eval "$as_ac_Header=yes"
7107 echo "$as_me: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7109 eval "$as_ac_Header=no"
7111 rm -f conftest.$ac_objext conftest.$ac_ext
7113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7116 cat >>confdefs.h <<_ACEOF
7117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7125 if test "$with_readline" = yes; then
7127 for ac_header in readline/readline.h
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131 echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7139 # Is the header compilable?
7140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7144 #include "confdefs.h"
7145 $ac_includes_default
7146 #include <$ac_header>
7148 rm -f conftest.$ac_objext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7150 (eval $ac_compile) 2>&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_header_compiler=yes
7162 echo "$as_me: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7164 ac_header_compiler=no
7166 rm -f conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7168 echo "${ECHO_T}$ac_header_compiler" >&6
7170 # Is the header present?
7171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7175 #include "confdefs.h"
7176 #include <$ac_header>
7178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7181 egrep -v '^ *\+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } >/dev/null; then
7186 if test -s conftest.err; then
7187 ac_cpp_err=$ac_c_preproc_warn_flag
7194 if test -z "$ac_cpp_err"; then
7195 ac_header_preproc=yes
7197 echo "$as_me: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7199 ac_header_preproc=no
7201 rm -f conftest.err conftest.$ac_ext
7202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7203 echo "${ECHO_T}$ac_header_preproc" >&6
7205 # So? What about this header?
7206 case $ac_header_compiler:$ac_header_preproc in
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7220 echo "$as_me:$LINENO: checking for $ac_header" >&5
7221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 eval "$as_ac_Header=$ac_header_preproc"
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 for ac_header in readline.h
7240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242 echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7250 # Is the header compilable?
7251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 #include "confdefs.h"
7256 $ac_includes_default
7257 #include <$ac_header>
7259 rm -f conftest.$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -s conftest.$ac_objext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7271 ac_header_compiler=yes
7273 echo "$as_me: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7275 ac_header_compiler=no
7277 rm -f conftest.$ac_objext conftest.$ac_ext
7278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 echo "${ECHO_T}$ac_header_compiler" >&6
7281 # Is the header present?
7282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 #include "confdefs.h"
7287 #include <$ac_header>
7289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7292 egrep -v '^ *\+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } >/dev/null; then
7297 if test -s conftest.err; then
7298 ac_cpp_err=$ac_c_preproc_warn_flag
7305 if test -z "$ac_cpp_err"; then
7306 ac_header_preproc=yes
7308 echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 ac_header_preproc=no
7312 rm -f conftest.err conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7314 echo "${ECHO_T}$ac_header_preproc" >&6
7316 # So? What about this header?
7317 case $ac_header_compiler:$ac_header_preproc in
7319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7331 echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 eval "$as_ac_Header=$ac_header_preproc"
7338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7343 cat >>confdefs.h <<_ACEOF
7344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348 { { echo "$as_me:$LINENO: error: readline header not found
7349 If you have readline already installed, see config.log for details on the
7350 failure. It is possible the compiler isn't looking in the proper directory.
7351 Use --without-readline to disable readline support." >&5
7352 echo "$as_me: error: readline header not found
7353 If you have readline already installed, see config.log for details on the
7354 failure. It is possible the compiler isn't looking in the proper directory.
7355 Use --without-readline to disable readline support." >&2;}
7356 { (exit 1); exit 1; }; }
7366 for ac_header in readline/history.h
7368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370 echo "$as_me:$LINENO: checking for $ac_header" >&5
7371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7378 # Is the header compilable?
7379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 $ac_includes_default
7385 #include <$ac_header>
7387 rm -f conftest.$ac_objext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389 (eval $ac_compile) 2>&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try='test -s conftest.$ac_objext'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; }; then
7399 ac_header_compiler=yes
7401 echo "$as_me: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7403 ac_header_compiler=no
7405 rm -f conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7407 echo "${ECHO_T}$ac_header_compiler" >&6
7409 # Is the header present?
7410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7412 cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7415 #include <$ac_header>
7417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7420 egrep -v '^ *\+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } >/dev/null; then
7425 if test -s conftest.err; then
7426 ac_cpp_err=$ac_c_preproc_warn_flag
7433 if test -z "$ac_cpp_err"; then
7434 ac_header_preproc=yes
7436 echo "$as_me: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 ac_header_preproc=no
7440 rm -f conftest.err conftest.$ac_ext
7441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7442 echo "${ECHO_T}$ac_header_preproc" >&6
7444 # So? What about this header?
7445 case $ac_header_compiler:$ac_header_preproc in
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7459 echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 eval "$as_ac_Header=$ac_header_preproc"
7466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7471 cat >>confdefs.h <<_ACEOF
7472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7477 for ac_header in history.h
7479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481 echo "$as_me:$LINENO: checking for $ac_header" >&5
7482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7489 # Is the header compilable?
7490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7493 #line $LINENO "configure"
7494 #include "confdefs.h"
7495 $ac_includes_default
7496 #include <$ac_header>
7498 rm -f conftest.$ac_objext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500 (eval $ac_compile) 2>&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
7504 { ac_try='test -s conftest.$ac_objext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_header_compiler=yes
7512 echo "$as_me: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 ac_header_compiler=no
7516 rm -f conftest.$ac_objext conftest.$ac_ext
7517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7518 echo "${ECHO_T}$ac_header_compiler" >&6
7520 # Is the header present?
7521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7523 cat >conftest.$ac_ext <<_ACEOF
7524 #line $LINENO "configure"
7525 #include "confdefs.h"
7526 #include <$ac_header>
7528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7531 egrep -v '^ *\+' conftest.er1 >conftest.err
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } >/dev/null; then
7536 if test -s conftest.err; then
7537 ac_cpp_err=$ac_c_preproc_warn_flag
7544 if test -z "$ac_cpp_err"; then
7545 ac_header_preproc=yes
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 ac_header_preproc=no
7551 rm -f conftest.err conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7553 echo "${ECHO_T}$ac_header_preproc" >&6
7555 # So? What about this header?
7556 case $ac_header_compiler:$ac_header_preproc in
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7570 echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 eval "$as_ac_Header=$ac_header_preproc"
7577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7582 cat >>confdefs.h <<_ACEOF
7583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587 { { echo "$as_me:$LINENO: error: history header not found
7588 If you have readline already installed, see config.log for details on the
7589 failure. It is possible the compiler isn't looking in the proper directory.
7590 Use --without-readline to disable readline support." >&5
7591 echo "$as_me: error: history header not found
7592 If you have readline already installed, see config.log for details on the
7593 failure. It is possible the compiler isn't looking in the proper directory.
7594 Use --without-readline to disable readline support." >&2;}
7595 { (exit 1); exit 1; }; }
7606 if test "$with_zlib" = yes; then
7607 if test "${ac_cv_header_zlib_h+set}" = set; then
7608 echo "$as_me:$LINENO: checking for zlib.h" >&5
7609 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7610 if test "${ac_cv_header_zlib_h+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7614 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7616 # Is the header compilable?
7617 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7618 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7619 cat >conftest.$ac_ext <<_ACEOF
7620 #line $LINENO "configure"
7621 #include "confdefs.h"
7622 $ac_includes_default
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_header_compiler=yes
7639 echo "$as_me: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7641 ac_header_compiler=no
7643 rm -f conftest.$ac_objext conftest.$ac_ext
7644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7645 echo "${ECHO_T}$ac_header_compiler" >&6
7647 # Is the header present?
7648 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7649 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7650 cat >conftest.$ac_ext <<_ACEOF
7651 #line $LINENO "configure"
7652 #include "confdefs.h"
7655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7658 egrep -v '^ *\+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } >/dev/null; then
7663 if test -s conftest.err; then
7664 ac_cpp_err=$ac_c_preproc_warn_flag
7671 if test -z "$ac_cpp_err"; then
7672 ac_header_preproc=yes
7674 echo "$as_me: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 ac_header_preproc=no
7678 rm -f conftest.err conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680 echo "${ECHO_T}$ac_header_preproc" >&6
7682 # So? What about this header?
7683 case $ac_header_compiler:$ac_header_preproc in
7685 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7686 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7688 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7690 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7691 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7693 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7697 echo "$as_me:$LINENO: checking for zlib.h" >&5
7698 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7699 if test "${ac_cv_header_zlib_h+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 ac_cv_header_zlib_h=$ac_header_preproc
7704 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7705 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7708 if test $ac_cv_header_zlib_h = yes; then
7711 { { echo "$as_me:$LINENO: error: zlib header not found
7712 If you have readline already installed, see config.log for details on the
7713 failure. It is possible the compiler isn't looking in the proper directory.
7714 Use --without-zlib to disable zlib support." >&5
7715 echo "$as_me: error: zlib header not found
7716 If you have readline already installed, see config.log for details on the
7717 failure. It is possible the compiler isn't looking in the proper directory.
7718 Use --without-zlib to disable zlib support." >&2;}
7719 { (exit 1); exit 1; }; }
7725 if test "$with_krb4" = yes ; then
7726 if test "${ac_cv_header_krb_h+set}" = set; then
7727 echo "$as_me:$LINENO: checking for krb.h" >&5
7728 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7729 if test "${ac_cv_header_krb_h+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7733 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7735 # Is the header compilable?
7736 echo "$as_me:$LINENO: checking krb.h usability" >&5
7737 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7739 #line $LINENO "configure"
7740 #include "confdefs.h"
7741 $ac_includes_default
7744 rm -f conftest.$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_header_compiler=yes
7758 echo "$as_me: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7760 ac_header_compiler=no
7762 rm -f conftest.$ac_objext conftest.$ac_ext
7763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7764 echo "${ECHO_T}$ac_header_compiler" >&6
7766 # Is the header present?
7767 echo "$as_me:$LINENO: checking krb.h presence" >&5
7768 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7777 egrep -v '^ *\+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } >/dev/null; then
7782 if test -s conftest.err; then
7783 ac_cpp_err=$ac_c_preproc_warn_flag
7790 if test -z "$ac_cpp_err"; then
7791 ac_header_preproc=yes
7793 echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 ac_header_preproc=no
7797 rm -f conftest.err conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7799 echo "${ECHO_T}$ac_header_preproc" >&6
7801 # So? What about this header?
7802 case $ac_header_compiler:$ac_header_preproc in
7804 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7805 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7806 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7807 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7809 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7810 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7812 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7814 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7816 echo "$as_me:$LINENO: checking for krb.h" >&5
7817 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7818 if test "${ac_cv_header_krb_h+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 ac_cv_header_krb_h=$ac_header_preproc
7823 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7824 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7827 if test $ac_cv_header_krb_h = yes; then
7830 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7831 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7832 { (exit 1); exit 1; }; }
7838 if test "$with_krb5" = yes ; then
7839 if test "${ac_cv_header_krb5_h+set}" = set; then
7840 echo "$as_me:$LINENO: checking for krb5.h" >&5
7841 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7842 if test "${ac_cv_header_krb5_h+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7846 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7848 # Is the header compilable?
7849 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7850 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7851 cat >conftest.$ac_ext <<_ACEOF
7852 #line $LINENO "configure"
7853 #include "confdefs.h"
7854 $ac_includes_default
7857 rm -f conftest.$ac_objext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7859 (eval $ac_compile) 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try='test -s conftest.$ac_objext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_header_compiler=yes
7871 echo "$as_me: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7873 ac_header_compiler=no
7875 rm -f conftest.$ac_objext conftest.$ac_ext
7876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7877 echo "${ECHO_T}$ac_header_compiler" >&6
7879 # Is the header present?
7880 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7881 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line $LINENO "configure"
7884 #include "confdefs.h"
7887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7890 egrep -v '^ *\+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } >/dev/null; then
7895 if test -s conftest.err; then
7896 ac_cpp_err=$ac_c_preproc_warn_flag
7903 if test -z "$ac_cpp_err"; then
7904 ac_header_preproc=yes
7906 echo "$as_me: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7908 ac_header_preproc=no
7910 rm -f conftest.err conftest.$ac_ext
7911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7912 echo "${ECHO_T}$ac_header_preproc" >&6
7914 # So? What about this header?
7915 case $ac_header_compiler:$ac_header_preproc in
7917 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7918 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7920 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7922 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7923 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7924 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7925 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7926 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7927 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7929 echo "$as_me:$LINENO: checking for krb5.h" >&5
7930 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7931 if test "${ac_cv_header_krb5_h+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 ac_cv_header_krb5_h=$ac_header_preproc
7936 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7937 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7940 if test $ac_cv_header_krb5_h = yes; then
7943 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7944 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7945 { (exit 1); exit 1; }; }
7949 if test "${ac_cv_header_com_err_h+set}" = set; then
7950 echo "$as_me:$LINENO: checking for com_err.h" >&5
7951 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7952 if test "${ac_cv_header_com_err_h+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
7956 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
7958 # Is the header compilable?
7959 echo "$as_me:$LINENO: checking com_err.h usability" >&5
7960 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7962 #line $LINENO "configure"
7963 #include "confdefs.h"
7964 $ac_includes_default
7965 #include <com_err.h>
7967 rm -f conftest.$ac_objext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7969 (eval $ac_compile) 2>&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -s conftest.$ac_objext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_header_compiler=yes
7981 echo "$as_me: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 ac_header_compiler=no
7985 rm -f conftest.$ac_objext conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7987 echo "${ECHO_T}$ac_header_compiler" >&6
7989 # Is the header present?
7990 echo "$as_me:$LINENO: checking com_err.h presence" >&5
7991 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7993 #line $LINENO "configure"
7994 #include "confdefs.h"
7995 #include <com_err.h>
7997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8000 egrep -v '^ *\+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } >/dev/null; then
8005 if test -s conftest.err; then
8006 ac_cpp_err=$ac_c_preproc_warn_flag
8013 if test -z "$ac_cpp_err"; then
8014 ac_header_preproc=yes
8016 echo "$as_me: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8018 ac_header_preproc=no
8020 rm -f conftest.err conftest.$ac_ext
8021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8022 echo "${ECHO_T}$ac_header_preproc" >&6
8024 # So? What about this header?
8025 case $ac_header_compiler:$ac_header_preproc in
8027 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8028 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8030 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8032 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8033 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8035 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8037 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8039 echo "$as_me:$LINENO: checking for com_err.h" >&5
8040 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8041 if test "${ac_cv_header_com_err_h+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_cv_header_com_err_h=$ac_header_preproc
8046 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8047 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8050 if test $ac_cv_header_com_err_h = yes; then
8053 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8054 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8055 { (exit 1); exit 1; }; }
8061 if test "$with_openssl" = yes ; then
8062 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8063 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8064 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8065 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8069 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8071 # Is the header compilable?
8072 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8073 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8074 cat >conftest.$ac_ext <<_ACEOF
8075 #line $LINENO "configure"
8076 #include "confdefs.h"
8077 $ac_includes_default
8078 #include <openssl/ssl.h>
8080 rm -f conftest.$ac_objext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082 (eval $ac_compile) 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest.$ac_objext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_header_compiler=yes
8094 echo "$as_me: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8096 ac_header_compiler=no
8098 rm -f conftest.$ac_objext conftest.$ac_ext
8099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8100 echo "${ECHO_T}$ac_header_compiler" >&6
8102 # Is the header present?
8103 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8104 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 #include "confdefs.h"
8108 #include <openssl/ssl.h>
8110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8113 egrep -v '^ *\+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null; then
8118 if test -s conftest.err; then
8119 ac_cpp_err=$ac_c_preproc_warn_flag
8126 if test -z "$ac_cpp_err"; then
8127 ac_header_preproc=yes
8129 echo "$as_me: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 ac_header_preproc=no
8133 rm -f conftest.err conftest.$ac_ext
8134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8135 echo "${ECHO_T}$ac_header_preproc" >&6
8137 # So? What about this header?
8138 case $ac_header_compiler:$ac_header_preproc in
8140 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8141 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8142 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8143 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8145 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8146 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8148 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8150 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8152 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8153 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8154 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8159 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8160 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8163 if test $ac_cv_header_openssl_ssl_h = yes; then
8166 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8167 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8168 { (exit 1); exit 1; }; }
8172 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8173 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8174 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8175 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8179 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8181 # Is the header compilable?
8182 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8183 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8184 cat >conftest.$ac_ext <<_ACEOF
8185 #line $LINENO "configure"
8186 #include "confdefs.h"
8187 $ac_includes_default
8188 #include <openssl/err.h>
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -s conftest.$ac_objext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_header_compiler=yes
8204 echo "$as_me: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8206 ac_header_compiler=no
8208 rm -f conftest.$ac_objext conftest.$ac_ext
8209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8210 echo "${ECHO_T}$ac_header_compiler" >&6
8212 # Is the header present?
8213 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8214 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line $LINENO "configure"
8217 #include "confdefs.h"
8218 #include <openssl/err.h>
8220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8223 egrep -v '^ *\+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } >/dev/null; then
8228 if test -s conftest.err; then
8229 ac_cpp_err=$ac_c_preproc_warn_flag
8236 if test -z "$ac_cpp_err"; then
8237 ac_header_preproc=yes
8239 echo "$as_me: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8241 ac_header_preproc=no
8243 rm -f conftest.err conftest.$ac_ext
8244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8245 echo "${ECHO_T}$ac_header_preproc" >&6
8247 # So? What about this header?
8248 case $ac_header_compiler:$ac_header_preproc in
8250 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8251 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8252 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8253 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8255 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8256 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8258 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8260 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8262 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8263 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8264 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 ac_cv_header_openssl_err_h=$ac_header_preproc
8269 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8270 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8273 if test $ac_cv_header_openssl_err_h = yes; then
8276 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8277 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8278 { (exit 1); exit 1; }; }
8284 if test "$with_pam" = yes ; then
8285 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8286 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8287 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8288 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8292 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8294 # Is the header compilable?
8295 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8296 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8297 cat >conftest.$ac_ext <<_ACEOF
8298 #line $LINENO "configure"
8299 #include "confdefs.h"
8300 $ac_includes_default
8301 #include <security/pam_appl.h>
8303 rm -f conftest.$ac_objext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_header_compiler=yes
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ac_header_compiler=no
8321 rm -f conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8323 echo "${ECHO_T}$ac_header_compiler" >&6
8325 # Is the header present?
8326 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8327 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8329 #line $LINENO "configure"
8330 #include "confdefs.h"
8331 #include <security/pam_appl.h>
8333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8336 egrep -v '^ *\+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } >/dev/null; then
8341 if test -s conftest.err; then
8342 ac_cpp_err=$ac_c_preproc_warn_flag
8349 if test -z "$ac_cpp_err"; then
8350 ac_header_preproc=yes
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8354 ac_header_preproc=no
8356 rm -f conftest.err conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 echo "${ECHO_T}$ac_header_preproc" >&6
8360 # So? What about this header?
8361 case $ac_header_compiler:$ac_header_preproc in
8363 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8364 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8368 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8369 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8371 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8373 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8375 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8376 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8377 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8382 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8383 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8386 if test $ac_cv_header_security_pam_appl_h = yes; then
8389 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8390 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8391 { (exit 1); exit 1; }; }
8399 ## Types, structures, compiler characteristics
8403 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8405 if test "${ac_cv_c_const+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line $LINENO "configure"
8410 #include "confdefs.h"
8412 #ifdef F77_DUMMY_MAIN
8416 int F77_DUMMY_MAIN() { return 1; }
8421 /* FIXME: Include the comments suggested by Paul. */
8423 /* Ultrix mips cc rejects this. */
8424 typedef int charset[2];
8426 /* SunOS 4.1.1 cc rejects this. */
8427 char const *const *ccp;
8429 /* NEC SVR4.0.2 mips cc rejects this. */
8430 struct point {int x, y;};
8431 static struct point const zero = {0,0};
8432 /* AIX XL C 1.02.0.0 rejects this.
8433 It does not let you subtract one const X* pointer from another in
8434 an arm of an if-expression whose if-part is not a constant
8436 const char *g = "string";
8437 ccp = &g + (g ? g-g : 0);
8438 /* HPUX 7.0 cc rejects these. */
8441 ccp = (char const *const *) p;
8442 { /* SCO 3.2v4 cc rejects this. */
8444 char const *s = 0 ? (char *) 0 : (char const *) 0;
8448 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8450 const int *foo = &x[0];
8453 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8454 typedef const int *iptr;
8458 { /* AIX XL C 1.02.0.0 rejects this saying
8459 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8460 struct s { int j; const int *ap[3]; };
8461 struct s *b; b->j = 5;
8463 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8472 rm -f conftest.$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474 (eval $ac_compile) 2>&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -s conftest.$ac_objext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8486 echo "$as_me: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8490 rm -f conftest.$ac_objext conftest.$ac_ext
8492 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8493 echo "${ECHO_T}$ac_cv_c_const" >&6
8494 if test $ac_cv_c_const = no; then
8496 cat >>confdefs.h <<\_ACEOF
8502 echo "$as_me:$LINENO: checking for inline" >&5
8503 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8504 if test "${ac_cv_c_inline+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 for ac_kw in inline __inline__ __inline; do
8509 cat >conftest.$ac_ext <<_ACEOF
8510 #line $LINENO "configure"
8511 #include "confdefs.h"
8513 static $ac_kw int static_foo () {return 0; }
8514 $ac_kw int foo () {return 0; }
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -s conftest.$ac_objext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_c_inline=$ac_kw; break
8532 echo "$as_me: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8535 rm -f conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8540 echo "${ECHO_T}$ac_cv_c_inline" >&6
8541 case $ac_cv_c_inline in
8544 cat >>confdefs.h <<\_ACEOF
8548 *) cat >>confdefs.h <<_ACEOF
8549 #define inline $ac_cv_c_inline
8554 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8555 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8556 if test "${ac_cv_c_stringize+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8561 #include "confdefs.h"
8564 char *s = x(teststring);
8566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8567 egrep "#teststring" >/dev/null 2>&1; then
8568 ac_cv_c_stringize=no
8570 ac_cv_c_stringize=yes
8575 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8576 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8577 if test $ac_cv_c_stringize = yes; then
8579 cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_STRINGIZE 1
8585 echo "$as_me:$LINENO: checking for signed types" >&5
8586 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8587 if test "${pgac_cv_c_signed+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8592 #include "confdefs.h"
8594 #ifdef F77_DUMMY_MAIN
8598 int F77_DUMMY_MAIN() { return 1; }
8603 signed char c; signed short s; signed int i;
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 pgac_cv_c_signed=yes
8622 echo "$as_me: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8626 rm -f conftest.$ac_objext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8629 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8630 if test x"$pgac_cv_c_signed" = xno ; then
8632 cat >>confdefs.h <<\_ACEOF
8637 echo "$as_me:$LINENO: checking for working volatile" >&5
8638 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8639 if test "${ac_cv_c_volatile+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 #include "confdefs.h"
8646 #ifdef F77_DUMMY_MAIN
8650 int F77_DUMMY_MAIN() { return 1; }
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_c_volatile=yes
8676 echo "$as_me: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8680 rm -f conftest.$ac_objext conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8683 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8684 if test $ac_cv_c_volatile = no; then
8686 cat >>confdefs.h <<\_ACEOF
8692 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8693 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8694 if test "${ac_cv_struct_tm+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8699 #include "confdefs.h"
8700 #include <sys/types.h>
8703 #ifdef F77_DUMMY_MAIN
8707 int F77_DUMMY_MAIN() { return 1; }
8712 struct tm *tp; tp->tm_sec;
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719 (eval $ac_compile) 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_struct_tm=time.h
8731 echo "$as_me: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 ac_cv_struct_tm=sys/time.h
8735 rm -f conftest.$ac_objext conftest.$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8738 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8739 if test $ac_cv_struct_tm = sys/time.h; then
8741 cat >>confdefs.h <<\_ACEOF
8742 #define TM_IN_SYS_TIME 1
8747 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8748 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8749 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8754 #include "confdefs.h"
8755 #include <sys/types.h>
8756 #include <$ac_cv_struct_tm>
8759 #ifdef F77_DUMMY_MAIN
8763 int F77_DUMMY_MAIN() { return 1; }
8768 static struct tm ac_aggr;
8769 if (ac_aggr.tm_zone)
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_cv_member_struct_tm_tm_zone=yes
8789 echo "$as_me: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 ac_cv_member_struct_tm_tm_zone=no
8793 rm -f conftest.$ac_objext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8796 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8797 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_STRUCT_TM_TM_ZONE 1
8806 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8808 cat >>confdefs.h <<\_ACEOF
8809 #define HAVE_TM_ZONE 1
8813 echo "$as_me:$LINENO: checking for tzname" >&5
8814 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8815 if test "${ac_cv_var_tzname+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 cat >conftest.$ac_ext <<_ACEOF
8819 #line $LINENO "configure"
8820 #include "confdefs.h"
8822 #ifndef tzname /* For SGI. */
8823 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8826 #ifdef F77_DUMMY_MAIN
8830 int F77_DUMMY_MAIN() { return 1; }
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_var_tzname=yes
8854 echo "$as_me: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8861 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8862 if test $ac_cv_var_tzname = yes; then
8864 cat >>confdefs.h <<\_ACEOF
8865 #define HAVE_TZNAME 1
8871 echo "$as_me:$LINENO: checking for union semun" >&5
8872 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8873 if test "${ac_cv_type_union_semun+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8878 #include "confdefs.h"
8879 #include <sys/types.h>
8880 #include <sys/ipc.h>
8881 #include <sys/sem.h>
8883 #ifdef F77_DUMMY_MAIN
8887 int F77_DUMMY_MAIN() { return 1; }
8892 if ((union semun *) 0)
8894 if (sizeof (union semun))
8900 rm -f conftest.$ac_objext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try='test -s conftest.$ac_objext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_type_union_semun=yes
8914 echo "$as_me: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 ac_cv_type_union_semun=no
8918 rm -f conftest.$ac_objext conftest.$ac_ext
8920 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8921 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8922 if test $ac_cv_type_union_semun = yes; then
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_UNION_SEMUN 1
8931 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8932 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8933 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.$ac_ext <<_ACEOF
8937 #line $LINENO "configure"
8938 #include "confdefs.h"
8939 #include <sys/types.h>
8940 #ifdef HAVE_SYS_UN_H
8945 #ifdef F77_DUMMY_MAIN
8949 int F77_DUMMY_MAIN() { return 1; }
8954 if ((struct sockaddr_un *) 0)
8956 if (sizeof (struct sockaddr_un))
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest.$ac_objext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_type_struct_sockaddr_un=yes
8976 echo "$as_me: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8978 ac_cv_type_struct_sockaddr_un=no
8980 rm -f conftest.$ac_objext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
8983 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
8984 if test $ac_cv_type_struct_sockaddr_un = yes; then
8986 cat >>confdefs.h <<_ACEOF
8987 #define HAVE_STRUCT_SOCKADDR_UN 1
8994 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
8995 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
8996 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 cat >conftest.$ac_ext <<_ACEOF
9000 #line $LINENO "configure"
9001 #include "confdefs.h"
9002 #include <sys/param.h>
9003 #include <sys/socket.h>
9004 #include <sys/ucred.h>
9006 #ifdef F77_DUMMY_MAIN
9010 int F77_DUMMY_MAIN() { return 1; }
9015 if ((struct cmsgcred *) 0)
9017 if (sizeof (struct cmsgcred))
9023 rm -f conftest.$ac_objext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9025 (eval $ac_compile) 2>&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -s conftest.$ac_objext'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 ac_cv_type_struct_cmsgcred=yes
9037 echo "$as_me: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 ac_cv_type_struct_cmsgcred=no
9041 rm -f conftest.$ac_objext conftest.$ac_ext
9043 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9044 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9045 if test $ac_cv_type_struct_cmsgcred = yes; then
9047 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_STRUCT_CMSGCRED 1
9053 echo "$as_me:$LINENO: checking for struct fcred" >&5
9054 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9055 if test "${ac_cv_type_struct_fcred+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 #include "confdefs.h"
9061 #include <sys/param.h>
9062 #include <sys/socket.h>
9063 #include <sys/ucred.h>
9065 #ifdef F77_DUMMY_MAIN
9069 int F77_DUMMY_MAIN() { return 1; }
9074 if ((struct fcred *) 0)
9076 if (sizeof (struct fcred))
9082 rm -f conftest.$ac_objext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084 (eval $ac_compile) 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_type_struct_fcred=yes
9096 echo "$as_me: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 ac_cv_type_struct_fcred=no
9100 rm -f conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9103 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9104 if test $ac_cv_type_struct_fcred = yes; then
9106 cat >>confdefs.h <<_ACEOF
9107 #define HAVE_STRUCT_FCRED 1
9112 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9113 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9114 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 cat >conftest.$ac_ext <<_ACEOF
9118 #line $LINENO "configure"
9119 #include "confdefs.h"
9120 #include <sys/param.h>
9121 #include <sys/socket.h>
9122 #include <sys/ucred.h>
9124 #ifdef F77_DUMMY_MAIN
9128 int F77_DUMMY_MAIN() { return 1; }
9133 if ((struct sockcred *) 0)
9135 if (sizeof (struct sockcred))
9141 rm -f conftest.$ac_objext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9143 (eval $ac_compile) 2>&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -s conftest.$ac_objext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_type_struct_sockcred=yes
9155 echo "$as_me: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 ac_cv_type_struct_sockcred=no
9159 rm -f conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9162 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9163 if test $ac_cv_type_struct_sockcred = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_STRUCT_SOCKCRED 1
9173 if test "$with_zlib" = yes; then
9174 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9175 # did not). While we could work around the lack of z_streamp, it
9176 # seems unwise to encourage people to use such old zlib versions...
9177 echo "$as_me:$LINENO: checking for z_streamp" >&5
9178 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9179 if test "${ac_cv_type_z_streamp+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9184 #include "confdefs.h"
9187 #ifdef F77_DUMMY_MAIN
9191 int F77_DUMMY_MAIN() { return 1; }
9196 if ((z_streamp *) 0)
9198 if (sizeof (z_streamp))
9204 rm -f conftest.$ac_objext
9205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9206 (eval $ac_compile) 2>&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -s conftest.$ac_objext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_type_z_streamp=yes
9218 echo "$as_me: failed program was:" >&5
9219 cat conftest.$ac_ext >&5
9220 ac_cv_type_z_streamp=no
9222 rm -f conftest.$ac_objext conftest.$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9225 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9226 if test $ac_cv_type_z_streamp = yes; then
9229 { { echo "$as_me:$LINENO: error: zlib version is too old
9230 Use --without-zlib to disable zlib support." >&5
9231 echo "$as_me: error: zlib version is too old
9232 Use --without-zlib to disable zlib support." >&2;}
9233 { (exit 1); exit 1; }; }
9238 if test "$with_krb5" = yes; then
9239 # Check for differences between MIT and Heimdal (KTH) releases
9240 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9241 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9242 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 #include "confdefs.h"
9250 #ifdef F77_DUMMY_MAIN
9254 int F77_DUMMY_MAIN() { return 1; }
9259 static krb5_ticket ac_aggr;
9260 if (ac_aggr.enc_part2)
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -s conftest.$ac_objext'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9278 ac_cv_member_krb5_ticket_enc_part2=yes
9280 echo "$as_me: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 ac_cv_member_krb5_ticket_enc_part2=no
9284 rm -f conftest.$ac_objext conftest.$ac_ext
9286 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9287 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9288 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define HAVE_KRB5_TICKET_ENC_PART2 1
9296 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9297 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9298 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 #include "confdefs.h"
9306 #ifdef F77_DUMMY_MAIN
9310 int F77_DUMMY_MAIN() { return 1; }
9315 static krb5_ticket ac_aggr;
9322 rm -f conftest.$ac_objext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9324 (eval $ac_compile) 2>&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try='test -s conftest.$ac_objext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_cv_member_krb5_ticket_client=yes
9336 echo "$as_me: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9338 ac_cv_member_krb5_ticket_client=no
9340 rm -f conftest.$ac_objext conftest.$ac_ext
9342 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9343 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9344 if test $ac_cv_member_krb5_ticket_client = yes; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define HAVE_KRB5_TICKET_CLIENT 1
9352 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9353 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9354 { (exit 1); exit 1; }; }
9359 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9360 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9361 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 cat >conftest.$ac_ext <<_ACEOF
9365 #line $LINENO "configure"
9366 #include "confdefs.h"
9369 #ifdef F77_DUMMY_MAIN
9373 int F77_DUMMY_MAIN() { return 1; }
9378 static krb5_error ac_aggr;
9379 if (ac_aggr.text.data)
9385 rm -f conftest.$ac_objext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -s conftest.$ac_objext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 ac_cv_member_krb5_error_text_data=yes
9399 echo "$as_me: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 ac_cv_member_krb5_error_text_data=no
9403 rm -f conftest.$ac_objext conftest.$ac_ext
9405 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9406 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9407 if test $ac_cv_member_krb5_error_text_data = yes; then
9409 cat >>confdefs.h <<_ACEOF
9410 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9415 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9416 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9417 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 cat >conftest.$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9422 #include "confdefs.h"
9425 #ifdef F77_DUMMY_MAIN
9429 int F77_DUMMY_MAIN() { return 1; }
9434 static krb5_error ac_aggr;
9441 rm -f conftest.$ac_objext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9443 (eval $ac_compile) 2>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -s conftest.$ac_objext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_member_krb5_error_e_data=yes
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 ac_cv_member_krb5_error_e_data=no
9459 rm -f conftest.$ac_objext conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9462 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9463 if test $ac_cv_member_krb5_error_e_data = yes; then
9465 cat >>confdefs.h <<_ACEOF
9466 #define HAVE_KRB5_ERROR_E_DATA 1
9471 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9472 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9473 { (exit 1); exit 1; }; }
9482 ## Functions, global variables
9485 echo "$as_me:$LINENO: checking for int timezone" >&5
9486 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9487 if test "${pgac_cv_var_int_timezone+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.$ac_ext <<_ACEOF
9491 #line $LINENO "configure"
9492 #include "confdefs.h"
9495 #ifdef F77_DUMMY_MAIN
9499 int F77_DUMMY_MAIN() { return 1; }
9504 res = timezone / 60;
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 pgac_cv_var_int_timezone=yes
9523 echo "$as_me: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 pgac_cv_var_int_timezone=no
9527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9529 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9530 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9531 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9533 cat >>confdefs.h <<\_ACEOF
9534 #define HAVE_INT_TIMEZONE
9538 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9539 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9540 if test "${ac_cv_func_accept_arg1+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 if test "${ac_cv_func_accept_arg2+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 if test "${ac_cv_func_accept_arg3+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9550 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9551 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9552 cat >conftest.$ac_ext <<_ACEOF
9553 #line $LINENO "configure"
9554 #include "confdefs.h"
9555 #ifdef HAVE_SYS_TYPES_H
9556 #include <sys/types.h>
9558 #ifdef HAVE_SYS_SOCKET_H
9559 #include <sys/socket.h>
9561 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9562 #ifdef F77_DUMMY_MAIN
9566 int F77_DUMMY_MAIN() { return 1; }
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest.$ac_objext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_not_found=no; break 3
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9594 rm -f conftest.$ac_objext conftest.$ac_ext
9598 if test "$ac_not_found" = yes; then
9599 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9600 echo "$as_me: error: could not determine argument types" >&2;}
9601 { (exit 1); exit 1; }; }
9603 if test "$ac_cv_func_accept_arg3" = "void"; then
9604 ac_cv_func_accept_arg3=int
9612 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9613 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9615 cat >>confdefs.h <<_ACEOF
9616 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9620 cat >>confdefs.h <<_ACEOF
9621 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9625 cat >>confdefs.h <<_ACEOF
9626 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9630 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9631 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9632 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 cat >conftest.$ac_ext <<_ACEOF
9636 #line $LINENO "configure"
9637 #include "confdefs.h"
9638 #include <sys/time.h>
9639 #ifdef F77_DUMMY_MAIN
9643 int F77_DUMMY_MAIN() { return 1; }
9649 struct timezone *tzp;
9650 gettimeofday(tp,tzp);
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 pgac_cv_func_gettimeofday_1arg=no
9669 echo "$as_me: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 pgac_cv_func_gettimeofday_1arg=yes
9673 rm -f conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9676 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9677 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9679 cat >>confdefs.h <<\_ACEOF
9680 #define GETTIMEOFDAY_1ARG
9685 # SunOS doesn't handle negative byte comparisons properly with +/- return
9686 echo "$as_me:$LINENO: checking for working memcmp" >&5
9687 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9688 if test "${ac_cv_func_memcmp_working+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 if test "$cross_compiling" = yes; then
9692 ac_cv_func_memcmp_working=no
9694 cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9696 #include "confdefs.h"
9698 #ifdef F77_DUMMY_MAIN
9702 int F77_DUMMY_MAIN() { return 1; }
9708 /* Some versions of memcmp are not 8-bit clean. */
9709 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9710 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9713 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9714 or more and with at least one buffer not starting on a 4-byte boundary.
9715 William Lewis provided this test program. */
9720 for (i = 0; i < 4; i++)
9724 strcpy (a, "--------01111111");
9725 strcpy (b, "--------10000000");
9726 if (memcmp (a, b, 16) >= 0)
9736 rm -f conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_func_memcmp_working=yes
9749 echo "$as_me: program exited with status $ac_status" >&5
9750 echo "$as_me: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9753 ac_cv_func_memcmp_working=no
9755 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9758 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9759 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9760 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9775 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778 echo "$as_me:$LINENO: checking for $ac_func" >&5
9779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9780 if eval "test \"\${$as_ac_var+set}\" = set"; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 cat >conftest.$ac_ext <<_ACEOF
9784 #line $LINENO "configure"
9785 #include "confdefs.h"
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char $ac_func (); below. */
9789 /* Override any gcc2 internal prototype to avoid an error. */
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9798 #ifdef F77_DUMMY_MAIN
9802 int F77_DUMMY_MAIN() { return 1; }
9807 /* The GNU C library defines this for functions which it implements
9808 to always fail with ENOSYS. Some functions are actually named
9809 something starting with __ and the normal name is an alias. */
9810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 eval "$as_ac_var=yes"
9834 echo "$as_me: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9836 eval "$as_ac_var=no"
9838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9842 if test `eval echo '${'$as_ac_var'}'` = yes; then
9843 cat >>confdefs.h <<_ACEOF
9844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9851 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9852 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9853 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 cat >conftest.$ac_ext <<_ACEOF
9857 #line $LINENO "configure"
9858 #include "confdefs.h"
9861 #ifdef F77_DUMMY_MAIN
9865 int F77_DUMMY_MAIN() { return 1; }
9871 char *p = (char *) fdatasync;
9878 rm -f conftest.$ac_objext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880 (eval $ac_compile) 2>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -s conftest.$ac_objext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_cv_have_decl_fdatasync=yes
9892 echo "$as_me: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9894 ac_cv_have_decl_fdatasync=no
9896 rm -f conftest.$ac_objext conftest.$ac_ext
9898 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9899 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9900 if test $ac_cv_have_decl_fdatasync = yes; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define HAVE_DECL_FDATASYNC 1
9908 cat >>confdefs.h <<_ACEOF
9909 #define HAVE_DECL_FDATASYNC 0
9917 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
9918 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
9919 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 cat >conftest.$ac_ext <<_ACEOF
9923 #line $LINENO "configure"
9924 #include "confdefs.h"
9925 #include <machine/vmparam.h>
9926 #include <sys/exec.h>
9928 #ifdef F77_DUMMY_MAIN
9932 int F77_DUMMY_MAIN() { return 1; }
9937 PS_STRINGS->ps_nargvstr = 1;
9938 PS_STRINGS->ps_argvstr = "foo";
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 (eval $ac_link) 2>&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -s conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 pgac_cv_var_PS_STRINGS=yes
9957 echo "$as_me: failed program was:" >&5
9958 cat conftest.$ac_ext >&5
9959 pgac_cv_var_PS_STRINGS=no
9961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9963 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
9964 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
9965 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_PS_STRINGS
9974 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
9975 # is missing. Yes, there are machines that have only one. We may
9976 # also decide to use snprintf.c if snprintf() is present but does not
9977 # have working "long long int" support -- see below.
9979 pgac_need_repl_snprintf=no
9981 for ac_func in snprintf
9983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9984 echo "$as_me:$LINENO: checking for $ac_func" >&5
9985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9986 if eval "test \"\${$as_ac_var+set}\" = set"; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 cat >conftest.$ac_ext <<_ACEOF
9990 #line $LINENO "configure"
9991 #include "confdefs.h"
9992 /* System header to define __stub macros and hopefully few prototypes,
9993 which can conflict with char $ac_func (); below. */
9995 /* Override any gcc2 internal prototype to avoid an error. */
9999 /* We use char because int might match the return type of a gcc2
10000 builtin and then its argument prototype would still apply. */
10004 #ifdef F77_DUMMY_MAIN
10005 # ifdef __cplusplus
10008 int F77_DUMMY_MAIN() { return 1; }
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 eval "$as_ac_var=yes"
10040 echo "$as_me: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 eval "$as_ac_var=no"
10044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10048 if test `eval echo '${'$as_ac_var'}'` = yes; then
10049 cat >>confdefs.h <<_ACEOF
10050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 pgac_need_repl_snprintf=yes
10059 for ac_func in vsnprintf
10061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10062 echo "$as_me:$LINENO: checking for $ac_func" >&5
10063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10064 if eval "test \"\${$as_ac_var+set}\" = set"; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 cat >conftest.$ac_ext <<_ACEOF
10068 #line $LINENO "configure"
10069 #include "confdefs.h"
10070 /* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char $ac_func (); below. */
10072 #include <assert.h>
10073 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10082 #ifdef F77_DUMMY_MAIN
10083 # ifdef __cplusplus
10086 int F77_DUMMY_MAIN() { return 1; }
10091 /* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
10094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
10118 echo "$as_me: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 eval "$as_ac_var=no"
10122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10126 if test `eval echo '${'$as_ac_var'}'` = yes; then
10127 cat >>confdefs.h <<_ACEOF
10128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10132 pgac_need_repl_snprintf=yes
10138 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10139 # include/c.h will provide declarations. Note this is a separate test
10140 # from whether the functions exist in the C library --- there are
10141 # systems that have the functions but don't bother to declare them :-(
10143 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10144 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10145 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 #include "confdefs.h"
10151 $ac_includes_default
10152 #ifdef F77_DUMMY_MAIN
10153 # ifdef __cplusplus
10156 int F77_DUMMY_MAIN() { return 1; }
10162 char *p = (char *) snprintf;
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_cv_have_decl_snprintf=yes
10183 echo "$as_me: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 ac_cv_have_decl_snprintf=no
10187 rm -f conftest.$ac_objext conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10190 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10191 if test $ac_cv_have_decl_snprintf = yes; then
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_DECL_SNPRINTF 1
10199 cat >>confdefs.h <<_ACEOF
10200 #define HAVE_DECL_SNPRINTF 0
10205 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10206 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10207 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 cat >conftest.$ac_ext <<_ACEOF
10211 #line $LINENO "configure"
10212 #include "confdefs.h"
10213 $ac_includes_default
10214 #ifdef F77_DUMMY_MAIN
10215 # ifdef __cplusplus
10218 int F77_DUMMY_MAIN() { return 1; }
10224 char *p = (char *) vsnprintf;
10231 rm -f conftest.$ac_objext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -s conftest.$ac_objext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_have_decl_vsnprintf=yes
10245 echo "$as_me: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 ac_cv_have_decl_vsnprintf=no
10249 rm -f conftest.$ac_objext conftest.$ac_ext
10251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10252 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10253 if test $ac_cv_have_decl_vsnprintf = yes; then
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_DECL_VSNPRINTF 1
10261 cat >>confdefs.h <<_ACEOF
10262 #define HAVE_DECL_VSNPRINTF 0
10271 # do this one the hard way in case isinf() is a macro
10272 echo "$as_me:$LINENO: checking for isinf" >&5
10273 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10274 if test "${ac_cv_func_isinf+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 #include "confdefs.h"
10282 #ifdef F77_DUMMY_MAIN
10283 # ifdef __cplusplus
10286 int F77_DUMMY_MAIN() { return 1; }
10291 double x = 0.0; int res = isinf(x);
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 ac_cv_func_isinf=yes
10310 echo "$as_me: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 ac_cv_func_isinf=no
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10316 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10317 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10319 if test $ac_cv_func_isinf = yes ; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_ISINF 1
10326 LIBOBJS="$LIBOBJS isinf.$ac_objext"
10327 # Look for a way to implement a substitute for isinf()
10332 for ac_func in fpclass fp_class fp_class_d class
10334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10335 echo "$as_me:$LINENO: checking for $ac_func" >&5
10336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10337 if eval "test \"\${$as_ac_var+set}\" = set"; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10342 #include "confdefs.h"
10343 /* System header to define __stub macros and hopefully few prototypes,
10344 which can conflict with char $ac_func (); below. */
10345 #include <assert.h>
10346 /* Override any gcc2 internal prototype to avoid an error. */
10350 /* We use char because int might match the return type of a gcc2
10351 builtin and then its argument prototype would still apply. */
10355 #ifdef F77_DUMMY_MAIN
10356 # ifdef __cplusplus
10359 int F77_DUMMY_MAIN() { return 1; }
10364 /* The GNU C library defines this for functions which it implements
10365 to always fail with ENOSYS. Some functions are actually named
10366 something starting with __ and the normal name is an alias. */
10367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10377 rm -f conftest.$ac_objext conftest$ac_exeext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379 (eval $ac_link) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -s conftest$ac_exeext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 eval "$as_ac_var=yes"
10391 echo "$as_me: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 eval "$as_ac_var=no"
10395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10399 if test `eval echo '${'$as_ac_var'}'` = yes; then
10400 cat >>confdefs.h <<_ACEOF
10401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10419 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10422 echo "$as_me:$LINENO: checking for $ac_func" >&5
10423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10424 if eval "test \"\${$as_ac_var+set}\" = set"; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 cat >conftest.$ac_ext <<_ACEOF
10428 #line $LINENO "configure"
10429 #include "confdefs.h"
10430 /* System header to define __stub macros and hopefully few prototypes,
10431 which can conflict with char $ac_func (); below. */
10432 #include <assert.h>
10433 /* Override any gcc2 internal prototype to avoid an error. */
10437 /* We use char because int might match the return type of a gcc2
10438 builtin and then its argument prototype would still apply. */
10442 #ifdef F77_DUMMY_MAIN
10443 # ifdef __cplusplus
10446 int F77_DUMMY_MAIN() { return 1; }
10451 /* The GNU C library defines this for functions which it implements
10452 to always fail with ENOSYS. Some functions are actually named
10453 something starting with __ and the normal name is an alias. */
10454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -s conftest$ac_exeext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 eval "$as_ac_var=yes"
10478 echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 eval "$as_ac_var=no"
10482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10486 if test `eval echo '${'$as_ac_var'}'` = yes; then
10487 cat >>confdefs.h <<_ACEOF
10488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10492 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10498 # Solaris has a very slow qsort in certain cases.
10500 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10503 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10504 # this hackery with HPUXMATHLIB allows us to cope.
10508 if test -r /lib/pa1.1/libm.a ; then
10509 HPUXMATHLIB="-L /lib/pa1.1 -lm"
10515 for ac_func in rint
10517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10518 echo "$as_me:$LINENO: checking for $ac_func" >&5
10519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10520 if eval "test \"\${$as_ac_var+set}\" = set"; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10524 #line $LINENO "configure"
10525 #include "confdefs.h"
10526 /* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char $ac_func (); below. */
10528 #include <assert.h>
10529 /* Override any gcc2 internal prototype to avoid an error. */
10533 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10538 #ifdef F77_DUMMY_MAIN
10539 # ifdef __cplusplus
10542 int F77_DUMMY_MAIN() { return 1; }
10547 /* The GNU C library defines this for functions which it implements
10548 to always fail with ENOSYS. Some functions are actually named
10549 something starting with __ and the normal name is an alias. */
10550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 eval "$as_ac_var=yes"
10574 echo "$as_me: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 eval "$as_ac_var=no"
10578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10582 if test `eval echo '${'$as_ac_var'}'` = yes; then
10583 cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10588 echo "$as_me:$LINENO: checking for rint in -lm" >&5
10589 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10590 if test "${ac_cv_lib_m_rint+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 ac_check_lib_save_LIBS=$LIBS
10594 LIBS="-lm $HPUXMATHLIB $LIBS"
10595 cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10597 #include "confdefs.h"
10599 /* Override any gcc2 internal prototype to avoid an error. */
10603 /* We use char because int might match the return type of a gcc2
10604 builtin and then its argument prototype would still apply. */
10606 #ifdef F77_DUMMY_MAIN
10607 # ifdef __cplusplus
10610 int F77_DUMMY_MAIN() { return 1; }
10620 rm -f conftest.$ac_objext conftest$ac_exeext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10622 (eval $ac_link) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -s conftest$ac_exeext'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ac_cv_lib_m_rint=yes
10634 echo "$as_me: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 ac_cv_lib_m_rint=no
10638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10641 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10642 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10643 if test $ac_cv_lib_m_rint = yes; then
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_RINT 1
10655 if test "$with_readline" = yes; then
10656 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10657 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10658 cat >conftest.$ac_ext <<_ACEOF
10659 #line $LINENO "configure"
10660 #include "confdefs.h"
10662 #ifdef HAVE_READLINE_READLINE_H
10663 # include <readline/readline.h>
10664 #elif defined(HAVE_READLINE_H)
10665 # include <readline.h>
10668 #ifdef F77_DUMMY_MAIN
10669 # ifdef __cplusplus
10672 int F77_DUMMY_MAIN() { return 1; }
10677 rl_completion_append_character = 'x';
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10684 (eval $ac_link) 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -s conftest$ac_exeext'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 echo "$as_me:$LINENO: result: yes" >&5
10695 echo "${ECHO_T}yes" >&6
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10702 echo "$as_me: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10710 for ac_func in rl_completion_matches rl_filename_completion_function
10712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713 echo "$as_me:$LINENO: checking for $ac_func" >&5
10714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10715 if eval "test \"\${$as_ac_var+set}\" = set"; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 cat >conftest.$ac_ext <<_ACEOF
10719 #line $LINENO "configure"
10720 #include "confdefs.h"
10721 /* System header to define __stub macros and hopefully few prototypes,
10722 which can conflict with char $ac_func (); below. */
10723 #include <assert.h>
10724 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10733 #ifdef F77_DUMMY_MAIN
10734 # ifdef __cplusplus
10737 int F77_DUMMY_MAIN() { return 1; }
10742 /* The GNU C library defines this for functions which it implements
10743 to always fail with ENOSYS. Some functions are actually named
10744 something starting with __ and the normal name is an alias. */
10745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -s conftest$ac_exeext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 eval "$as_ac_var=yes"
10769 echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 eval "$as_ac_var=no"
10773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777 if test `eval echo '${'$as_ac_var'}'` = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10788 echo "$as_me:$LINENO: checking for finite" >&5
10789 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10791 #line $LINENO "configure"
10792 #include "confdefs.h"
10794 #ifdef F77_DUMMY_MAIN
10795 # ifdef __cplusplus
10798 int F77_DUMMY_MAIN() { return 1; }
10803 int dummy=finite(1.0);
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_FINITE 1
10825 echo "$as_me:$LINENO: result: yes" >&5
10826 echo "${ECHO_T}yes" >&6
10828 echo "$as_me: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6
10833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10835 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10836 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10838 #line $LINENO "configure"
10839 #include "confdefs.h"
10840 #include <setjmp.h>
10841 #ifdef F77_DUMMY_MAIN
10842 # ifdef __cplusplus
10845 int F77_DUMMY_MAIN() { return 1; }
10850 sigjmp_buf x; sigsetjmp(x, 1);
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -s conftest$ac_exeext'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10868 cat >>confdefs.h <<\_ACEOF
10869 #define HAVE_SIGSETJMP 1
10872 echo "$as_me:$LINENO: result: yes" >&5
10873 echo "${ECHO_T}yes" >&6
10875 echo "$as_me: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10877 echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10882 echo "$as_me:$LINENO: checking for syslog" >&5
10883 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
10884 if test "${ac_cv_func_syslog+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 #include "confdefs.h"
10890 /* System header to define __stub macros and hopefully few prototypes,
10891 which can conflict with char syslog (); below. */
10892 #include <assert.h>
10893 /* Override any gcc2 internal prototype to avoid an error. */
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10902 #ifdef F77_DUMMY_MAIN
10903 # ifdef __cplusplus
10906 int F77_DUMMY_MAIN() { return 1; }
10911 /* The GNU C library defines this for functions which it implements
10912 to always fail with ENOSYS. Some functions are actually named
10913 something starting with __ and the normal name is an alias. */
10914 #if defined (__stub_syslog) || defined (__stub___syslog)
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; }; then
10936 ac_cv_func_syslog=yes
10938 echo "$as_me: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 ac_cv_func_syslog=no
10942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10944 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
10945 echo "${ECHO_T}$ac_cv_func_syslog" >&6
10946 if test $ac_cv_func_syslog = yes; then
10947 if test "${ac_cv_header_syslog_h+set}" = set; then
10948 echo "$as_me:$LINENO: checking for syslog.h" >&5
10949 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10950 if test "${ac_cv_header_syslog_h+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
10954 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
10956 # Is the header compilable?
10957 echo "$as_me:$LINENO: checking syslog.h usability" >&5
10958 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
10959 cat >conftest.$ac_ext <<_ACEOF
10960 #line $LINENO "configure"
10961 #include "confdefs.h"
10962 $ac_includes_default
10963 #include <syslog.h>
10965 rm -f conftest.$ac_objext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10967 (eval $ac_compile) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -s conftest.$ac_objext'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_header_compiler=yes
10979 echo "$as_me: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 ac_header_compiler=no
10983 rm -f conftest.$ac_objext conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10985 echo "${ECHO_T}$ac_header_compiler" >&6
10987 # Is the header present?
10988 echo "$as_me:$LINENO: checking syslog.h presence" >&5
10989 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
10993 #include <syslog.h>
10995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10998 egrep -v '^ *\+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } >/dev/null; then
11003 if test -s conftest.err; then
11004 ac_cpp_err=$ac_c_preproc_warn_flag
11011 if test -z "$ac_cpp_err"; then
11012 ac_header_preproc=yes
11014 echo "$as_me: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11016 ac_header_preproc=no
11018 rm -f conftest.err conftest.$ac_ext
11019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11020 echo "${ECHO_T}$ac_header_preproc" >&6
11022 # So? What about this header?
11023 case $ac_header_compiler:$ac_header_preproc in
11025 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11026 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11030 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11031 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11033 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11035 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11037 echo "$as_me:$LINENO: checking for syslog.h" >&5
11038 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11039 if test "${ac_cv_header_syslog_h+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 ac_cv_header_syslog_h=$ac_header_preproc
11044 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11045 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11048 if test $ac_cv_header_syslog_h = yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_SYSLOG 1
11059 echo "$as_me:$LINENO: checking for optreset" >&5
11060 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11061 if test "${pgac_cv_var_int_optreset+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11065 #line $LINENO "configure"
11066 #include "confdefs.h"
11067 #include <unistd.h>
11068 #ifdef F77_DUMMY_MAIN
11069 # ifdef __cplusplus
11072 int F77_DUMMY_MAIN() { return 1; }
11077 extern int optreset; optreset = 1;
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -s conftest$ac_exeext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 pgac_cv_var_int_optreset=yes
11096 echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 pgac_cv_var_int_optreset=no
11100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11103 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11104 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11106 cat >>confdefs.h <<\_ACEOF
11107 #define HAVE_INT_OPTRESET 1
11114 for ac_func in strtoll strtoq
11116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11117 echo "$as_me:$LINENO: checking for $ac_func" >&5
11118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11119 if eval "test \"\${$as_ac_var+set}\" = set"; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 cat >conftest.$ac_ext <<_ACEOF
11123 #line $LINENO "configure"
11124 #include "confdefs.h"
11125 /* System header to define __stub macros and hopefully few prototypes,
11126 which can conflict with char $ac_func (); below. */
11127 #include <assert.h>
11128 /* Override any gcc2 internal prototype to avoid an error. */
11132 /* We use char because int might match the return type of a gcc2
11133 builtin and then its argument prototype would still apply. */
11137 #ifdef F77_DUMMY_MAIN
11138 # ifdef __cplusplus
11141 int F77_DUMMY_MAIN() { return 1; }
11146 /* The GNU C library defines this for functions which it implements
11147 to always fail with ENOSYS. Some functions are actually named
11148 something starting with __ and the normal name is an alias. */
11149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11159 rm -f conftest.$ac_objext conftest$ac_exeext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161 (eval $ac_link) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 eval "$as_ac_var=yes"
11173 echo "$as_me: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 eval "$as_ac_var=no"
11177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181 if test `eval echo '${'$as_ac_var'}'` = yes; then
11182 cat >>confdefs.h <<_ACEOF
11183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11191 for ac_func in strtoull strtouq
11193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11194 echo "$as_me:$LINENO: checking for $ac_func" >&5
11195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11196 if eval "test \"\${$as_ac_var+set}\" = set"; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 cat >conftest.$ac_ext <<_ACEOF
11200 #line $LINENO "configure"
11201 #include "confdefs.h"
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func (); below. */
11204 #include <assert.h>
11205 /* Override any gcc2 internal prototype to avoid an error. */
11209 /* We use char because int might match the return type of a gcc2
11210 builtin and then its argument prototype would still apply. */
11214 #ifdef F77_DUMMY_MAIN
11215 # ifdef __cplusplus
11218 int F77_DUMMY_MAIN() { return 1; }
11223 /* The GNU C library defines this for functions which it implements
11224 to always fail with ENOSYS. Some functions are actually named
11225 something starting with __ and the normal name is an alias. */
11226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238 (eval $ac_link) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 eval "$as_ac_var=yes"
11250 echo "$as_me: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11252 eval "$as_ac_var=no"
11254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11258 if test `eval echo '${'$as_ac_var'}'` = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 # Check for one of atexit() or on_exit()
11269 for ac_func in atexit
11271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11272 echo "$as_me:$LINENO: checking for $ac_func" >&5
11273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11274 if eval "test \"\${$as_ac_var+set}\" = set"; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 #include "confdefs.h"
11280 /* System header to define __stub macros and hopefully few prototypes,
11281 which can conflict with char $ac_func (); below. */
11282 #include <assert.h>
11283 /* Override any gcc2 internal prototype to avoid an error. */
11287 /* We use char because int might match the return type of a gcc2
11288 builtin and then its argument prototype would still apply. */
11292 #ifdef F77_DUMMY_MAIN
11293 # ifdef __cplusplus
11296 int F77_DUMMY_MAIN() { return 1; }
11301 /* The GNU C library defines this for functions which it implements
11302 to always fail with ENOSYS. Some functions are actually named
11303 something starting with __ and the normal name is an alias. */
11304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -s conftest$ac_exeext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 eval "$as_ac_var=yes"
11328 echo "$as_me: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 eval "$as_ac_var=no"
11332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11336 if test `eval echo '${'$as_ac_var'}'` = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11343 for ac_func in on_exit
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11348 if eval "test \"\${$as_ac_var+set}\" = set"; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11352 #line $LINENO "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355 which can conflict with char $ac_func (); below. */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error. */
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11366 #ifdef F77_DUMMY_MAIN
11367 # ifdef __cplusplus
11370 int F77_DUMMY_MAIN() { return 1; }
11375 /* The GNU C library defines this for functions which it implements
11376 to always fail with ENOSYS. Some functions are actually named
11377 something starting with __ and the normal name is an alias. */
11378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -s conftest$ac_exeext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 eval "$as_ac_var=yes"
11402 echo "$as_me: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 eval "$as_ac_var=no"
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11416 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11417 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11418 { (exit 1); exit 1; }; }
11426 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11427 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11428 if test "${ac_cv_sys_largefile_source+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_cv_sys_largefile_source=no
11433 cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 #include "confdefs.h"
11437 #ifdef F77_DUMMY_MAIN
11438 # ifdef __cplusplus
11441 int F77_DUMMY_MAIN() { return 1; }
11451 rm -f conftest.$ac_objext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11453 (eval $ac_compile) 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11465 echo "$as_me: failed program was:" >&5
11466 cat conftest.$ac_ext >&5
11468 rm -f conftest.$ac_objext conftest.$ac_ext
11469 cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472 #define _LARGEFILE_SOURCE 1
11474 #ifdef F77_DUMMY_MAIN
11475 # ifdef __cplusplus
11478 int F77_DUMMY_MAIN() { return 1; }
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -s conftest.$ac_objext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 ac_cv_sys_largefile_source=1; break
11502 echo "$as_me: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11505 rm -f conftest.$ac_objext conftest.$ac_ext
11509 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11510 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11511 if test "$ac_cv_sys_largefile_source" != no; then
11513 cat >>confdefs.h <<_ACEOF
11514 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11520 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11521 # in glibc 2.1.3, but that breaks too many other things.
11522 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11523 echo "$as_me:$LINENO: checking for fseeko" >&5
11524 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11525 if test "${ac_cv_func_fseeko+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 cat >conftest.$ac_ext <<_ACEOF
11529 #line $LINENO "configure"
11530 #include "confdefs.h"
11532 #ifdef F77_DUMMY_MAIN
11533 # ifdef __cplusplus
11536 int F77_DUMMY_MAIN() { return 1; }
11541 return fseeko && fseeko (stdin, 0, 0);
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -s conftest$ac_exeext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_func_fseeko=yes
11560 echo "$as_me: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 ac_cv_func_fseeko=no
11564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11566 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11567 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11568 if test $ac_cv_func_fseeko = yes; then
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_FSEEKO 1
11578 # This test makes sure that run tests work at all. Sometimes a shared
11579 # library is found by the linker, but the runtime linker can't find it.
11580 # This check should come after all modifications of compiler or linker
11581 # variables, and before any other run tests.
11582 echo "$as_me:$LINENO: checking test program" >&5
11583 echo $ECHO_N "checking test program... $ECHO_C" >&6
11584 if test "$cross_compiling" = yes; then
11585 echo "$as_me:$LINENO: result: cross-compiling" >&5
11586 echo "${ECHO_T}cross-compiling" >&6
11588 cat >conftest.$ac_ext <<_ACEOF
11589 #line $LINENO "configure"
11590 #include "confdefs.h"
11591 int main() { return 0; }
11593 rm -f conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 echo "$as_me:$LINENO: result: ok" >&5
11605 echo "${ECHO_T}ok" >&6
11607 echo "$as_me: program exited with status $ac_status" >&5
11608 echo "$as_me: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11610 ( exit $ac_status )
11611 echo "$as_me:$LINENO: result: failed" >&5
11612 echo "${ECHO_T}failed" >&6
11613 { { echo "$as_me:$LINENO: error:
11614 *** Could not execute a simple test program. This may be a problem
11615 *** related to locating shared libraries. Check the file 'config.log'
11616 *** for the exact reason." >&5
11617 echo "$as_me: error:
11618 *** Could not execute a simple test program. This may be a problem
11619 *** related to locating shared libraries. Check the file 'config.log'
11620 *** for the exact reason." >&2;}
11621 { (exit 1); exit 1; }; }
11623 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11628 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11629 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11630 if test "${pgac_cv_type_long_int_64+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 if test "$cross_compiling" = yes; then
11634 pgac_cv_type_long_int_64=no
11635 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11636 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11638 cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11640 #include "confdefs.h"
11641 typedef long int int64;
11644 * These are globals to discourage the compiler from folding all the
11645 * arithmetic tests down to compile-time constants.
11647 int64 a = 20000001;
11648 int64 b = 40000005;
11650 int does_int64_work()
11654 if (sizeof(int64) != 8)
11655 return 0; /* definitely not the right size */
11657 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11665 exit(! does_int64_work());
11668 rm -f conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670 (eval $ac_link) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 pgac_cv_type_long_int_64=yes
11681 echo "$as_me: program exited with status $ac_status" >&5
11682 echo "$as_me: failed program was:" >&5
11683 cat conftest.$ac_ext >&5
11684 ( exit $ac_status )
11685 pgac_cv_type_long_int_64=no
11687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11691 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11693 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11694 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_LONG_INT_64
11703 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11704 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11705 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11706 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 if test "$cross_compiling" = yes; then
11710 pgac_cv_type_long_long_int_64=no
11711 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11712 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11714 cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 #include "confdefs.h"
11717 typedef long long int int64;
11720 * These are globals to discourage the compiler from folding all the
11721 * arithmetic tests down to compile-time constants.
11723 int64 a = 20000001;
11724 int64 b = 40000005;
11726 int does_int64_work()
11730 if (sizeof(int64) != 8)
11731 return 0; /* definitely not the right size */
11733 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11741 exit(! does_int64_work());
11744 rm -f conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 pgac_cv_type_long_long_int_64=yes
11757 echo "$as_me: program exited with status $ac_status" >&5
11758 echo "$as_me: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11760 ( exit $ac_status )
11761 pgac_cv_type_long_long_int_64=no
11763 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11766 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11767 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11769 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11770 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11772 cat >>confdefs.h <<\_ACEOF
11773 #define HAVE_LONG_LONG_INT_64
11782 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11783 cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 #include "confdefs.h"
11787 #define INT64CONST(x) x##LL
11788 long long int foo = INT64CONST(0x1234567890123456);
11790 #ifdef F77_DUMMY_MAIN
11791 # ifdef __cplusplus
11794 int F77_DUMMY_MAIN() { return 1; }
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11817 cat >>confdefs.h <<\_ACEOF
11818 #define HAVE_LL_CONSTANTS 1
11822 echo "$as_me: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11825 rm -f conftest.$ac_objext conftest.$ac_ext
11830 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11831 if test $pgac_need_repl_snprintf = no; then
11832 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11833 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11834 if test "$cross_compiling" = yes; then
11835 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11836 echo "${ECHO_T}cannot test (not on host machine)" >&6
11837 # Force usage of our own snprintf, since we cannot test foreign snprintf
11838 pgac_need_repl_snprintf=yes
11839 INT64_FORMAT='"%lld"'
11842 cat >conftest.$ac_ext <<_ACEOF
11843 #line $LINENO "configure"
11844 #include "confdefs.h"
11846 typedef long long int int64;
11847 #define INT64_FORMAT "%lld"
11849 int64 a = 20000001;
11850 int64 b = 40000005;
11852 int does_int64_snprintf_work()
11857 if (sizeof(int64) != 8)
11858 return 0; /* doesn't look like the right size */
11861 snprintf(buf, 100, INT64_FORMAT, c);
11862 if (strcmp(buf, "800000140000005") != 0)
11863 return 0; /* either multiply or snprintf is busted */
11867 exit(! does_int64_snprintf_work());
11870 rm -f conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872 (eval $ac_link) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11883 INT64_FORMAT='"%lld"'
11886 echo "$as_me: program exited with status $ac_status" >&5
11887 echo "$as_me: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 ( exit $ac_status )
11890 echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6
11892 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
11893 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
11894 if test "$cross_compiling" = yes; then
11895 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11896 echo "${ECHO_T}cannot test (not on host machine)" >&6
11897 # Force usage of our own snprintf, since we cannot test foreign snprintf
11898 pgac_need_repl_snprintf=yes
11899 INT64_FORMAT='"%lld"'
11902 cat >conftest.$ac_ext <<_ACEOF
11903 #line $LINENO "configure"
11904 #include "confdefs.h"
11906 typedef long long int int64;
11907 #define INT64_FORMAT "%qd"
11909 int64 a = 20000001;
11910 int64 b = 40000005;
11912 int does_int64_snprintf_work()
11917 if (sizeof(int64) != 8)
11918 return 0; /* doesn't look like the right size */
11921 snprintf(buf, 100, INT64_FORMAT, c);
11922 if (strcmp(buf, "800000140000005") != 0)
11923 return 0; /* either multiply or snprintf is busted */
11927 exit(! does_int64_snprintf_work());
11930 rm -f conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 echo "$as_me:$LINENO: result: yes" >&5
11942 echo "${ECHO_T}yes" >&6
11943 INT64_FORMAT='"%qd"'
11946 echo "$as_me: program exited with status $ac_status" >&5
11947 echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 ( exit $ac_status )
11950 echo "$as_me:$LINENO: result: no" >&5
11951 echo "${ECHO_T}no" >&6
11952 # Force usage of our own snprintf, since system snprintf is broken
11953 pgac_need_repl_snprintf=yes
11954 INT64_FORMAT='"%lld"'
11957 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11963 # here if we previously decided we needed to use our own snprintf
11964 INT64_FORMAT='"%lld"'
11967 # Here if we are not using 'long long int' at all
11968 INT64_FORMAT='"%ld"'
11972 cat >>confdefs.h <<_ACEOF
11973 #define INT64_FORMAT $INT64_FORMAT
11977 if test $pgac_need_repl_snprintf = yes; then
11978 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
11982 echo "$as_me:$LINENO: checking for unsigned long" >&5
11983 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
11984 if test "${ac_cv_type_unsigned_long+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 $ac_includes_default
11991 #ifdef F77_DUMMY_MAIN
11992 # ifdef __cplusplus
11995 int F77_DUMMY_MAIN() { return 1; }
12000 if ((unsigned long *) 0)
12002 if (sizeof (unsigned long))
12008 rm -f conftest.$ac_objext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010 (eval $ac_compile) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -s conftest.$ac_objext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_cv_type_unsigned_long=yes
12022 echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 ac_cv_type_unsigned_long=no
12026 rm -f conftest.$ac_objext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12029 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12031 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12032 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12033 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 if test "$ac_cv_type_unsigned_long" = yes; then
12037 # The cast to unsigned long works around a bug in the HP C Compiler
12038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12040 # This bug is HP SR number 8606223364.
12041 if test "$cross_compiling" = yes; then
12042 # Depending upon the size, compute the lo and hi bounds.
12043 cat >conftest.$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12045 #include "confdefs.h"
12046 $ac_includes_default
12047 #ifdef F77_DUMMY_MAIN
12048 # ifdef __cplusplus
12051 int F77_DUMMY_MAIN() { return 1; }
12056 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12063 rm -f conftest.$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065 (eval $ac_compile) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -s conftest.$ac_objext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12077 cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12079 #include "confdefs.h"
12080 $ac_includes_default
12081 #ifdef F77_DUMMY_MAIN
12082 # ifdef __cplusplus
12085 int F77_DUMMY_MAIN() { return 1; }
12090 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12097 rm -f conftest.$ac_objext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12099 (eval $ac_compile) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -s conftest.$ac_objext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_hi=$ac_mid; break
12111 echo "$as_me: failed program was:" >&5
12112 cat conftest.$ac_ext >&5
12113 ac_lo=`expr $ac_mid + 1`
12114 if test $ac_lo -le $ac_mid; then
12118 ac_mid=`expr 2 '*' $ac_mid + 1`
12120 rm -f conftest.$ac_objext conftest.$ac_ext
12123 echo "$as_me: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12125 cat >conftest.$ac_ext <<_ACEOF
12126 #line $LINENO "configure"
12127 #include "confdefs.h"
12128 $ac_includes_default
12129 #ifdef F77_DUMMY_MAIN
12130 # ifdef __cplusplus
12133 int F77_DUMMY_MAIN() { return 1; }
12138 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12162 $ac_includes_default
12163 #ifdef F77_DUMMY_MAIN
12164 # ifdef __cplusplus
12167 int F77_DUMMY_MAIN() { return 1; }
12172 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181 (eval $ac_compile) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_lo=$ac_mid; break
12193 echo "$as_me: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12195 ac_hi=`expr '(' $ac_mid ')' - 1`
12196 if test $ac_mid -le $ac_hi; then
12200 ac_mid=`expr 2 '*' $ac_mid`
12202 rm -f conftest.$ac_objext conftest.$ac_ext
12205 echo "$as_me: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12209 rm -f conftest.$ac_objext conftest.$ac_ext
12211 rm -f conftest.$ac_objext conftest.$ac_ext
12212 # Binary search between lo and hi bounds.
12213 while test "x$ac_lo" != "x$ac_hi"; do
12214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12215 cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 #include "confdefs.h"
12218 $ac_includes_default
12219 #ifdef F77_DUMMY_MAIN
12220 # ifdef __cplusplus
12223 int F77_DUMMY_MAIN() { return 1; }
12228 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12235 rm -f conftest.$ac_objext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12249 echo "$as_me: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12251 ac_lo=`expr '(' $ac_mid ')' + 1`
12253 rm -f conftest.$ac_objext conftest.$ac_ext
12256 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12257 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12258 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12259 { (exit 1); exit 1; }; } ;;
12262 if test "$cross_compiling" = yes; then
12263 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12264 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12265 { (exit 1); exit 1; }; }
12267 cat >conftest.$ac_ext <<_ACEOF
12268 #line $LINENO "configure"
12269 #include "confdefs.h"
12270 $ac_includes_default
12271 long longval () { return (long) (sizeof (unsigned long)); }
12272 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12274 #include <stdlib.h>
12275 #ifdef F77_DUMMY_MAIN
12276 # ifdef __cplusplus
12279 int F77_DUMMY_MAIN() { return 1; }
12285 FILE *f = fopen ("conftest.val", "w");
12288 if (((long) (sizeof (unsigned long))) < 0)
12290 long i = longval ();
12291 if (i != ((long) (sizeof (unsigned long))))
12293 fprintf (f, "%ld\n", i);
12297 unsigned long i = ulongval ();
12298 if (i != ((long) (sizeof (unsigned long))))
12300 fprintf (f, "%lu\n", i);
12302 exit (ferror (f) || fclose (f) != 0);
12308 rm -f conftest$ac_exeext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310 (eval $ac_link) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12321 echo "$as_me: program exited with status $ac_status" >&5
12322 echo "$as_me: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 ( exit $ac_status )
12325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12326 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12327 { (exit 1); exit 1; }; }
12329 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12334 ac_cv_sizeof_unsigned_long=0
12337 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12338 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12339 cat >>confdefs.h <<_ACEOF
12340 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12345 cat >>confdefs.h <<_ACEOF
12346 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12350 # Determine memory alignment requirements for the basic C data types.
12352 echo "$as_me:$LINENO: checking for short" >&5
12353 echo $ECHO_N "checking for short... $ECHO_C" >&6
12354 if test "${ac_cv_type_short+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 cat >conftest.$ac_ext <<_ACEOF
12358 #line $LINENO "configure"
12359 #include "confdefs.h"
12360 $ac_includes_default
12361 #ifdef F77_DUMMY_MAIN
12362 # ifdef __cplusplus
12365 int F77_DUMMY_MAIN() { return 1; }
12372 if (sizeof (short))
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380 (eval $ac_compile) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -s conftest.$ac_objext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_cv_type_short=yes
12392 echo "$as_me: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12394 ac_cv_type_short=no
12396 rm -f conftest.$ac_objext conftest.$ac_ext
12398 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12399 echo "${ECHO_T}$ac_cv_type_short" >&6
12401 echo "$as_me:$LINENO: checking alignment of short" >&5
12402 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12403 if test "${pgac_cv_alignof_short+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 if test "$ac_cv_type_short" = yes; then
12407 if test "$cross_compiling" = yes; then
12408 # Depending upon the size, compute the lo and hi bounds.
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 $ac_includes_default
12413 struct { char filler; short field; } pgac_struct;
12414 #ifdef F77_DUMMY_MAIN
12415 # ifdef __cplusplus
12418 int F77_DUMMY_MAIN() { return 1; }
12423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432 (eval $ac_compile) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12444 cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12446 #include "confdefs.h"
12447 $ac_includes_default
12448 struct { char filler; short field; } pgac_struct;
12449 #ifdef F77_DUMMY_MAIN
12450 # ifdef __cplusplus
12453 int F77_DUMMY_MAIN() { return 1; }
12458 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -s conftest.$ac_objext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_hi=$ac_mid; break
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ac_lo=`expr $ac_mid + 1`
12482 if test $ac_lo -le $ac_mid; then
12486 ac_mid=`expr 2 '*' $ac_mid + 1`
12488 rm -f conftest.$ac_objext conftest.$ac_ext
12491 echo "$as_me: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12493 cat >conftest.$ac_ext <<_ACEOF
12494 #line $LINENO "configure"
12495 #include "confdefs.h"
12496 $ac_includes_default
12497 struct { char filler; short field; } pgac_struct;
12498 #ifdef F77_DUMMY_MAIN
12499 # ifdef __cplusplus
12502 int F77_DUMMY_MAIN() { return 1; }
12507 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12530 #include "confdefs.h"
12531 $ac_includes_default
12532 struct { char filler; short field; } pgac_struct;
12533 #ifdef F77_DUMMY_MAIN
12534 # ifdef __cplusplus
12537 int F77_DUMMY_MAIN() { return 1; }
12542 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12549 rm -f conftest.$ac_objext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12551 (eval $ac_compile) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -s conftest.$ac_objext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_lo=$ac_mid; break
12563 echo "$as_me: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 ac_hi=`expr '(' $ac_mid ')' - 1`
12566 if test $ac_mid -le $ac_hi; then
12570 ac_mid=`expr 2 '*' $ac_mid`
12572 rm -f conftest.$ac_objext conftest.$ac_ext
12575 echo "$as_me: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12582 # Binary search between lo and hi bounds.
12583 while test "x$ac_lo" != "x$ac_hi"; do
12584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12585 cat >conftest.$ac_ext <<_ACEOF
12586 #line $LINENO "configure"
12587 #include "confdefs.h"
12588 $ac_includes_default
12589 struct { char filler; short field; } pgac_struct;
12590 #ifdef F77_DUMMY_MAIN
12591 # ifdef __cplusplus
12594 int F77_DUMMY_MAIN() { return 1; }
12599 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
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
12620 echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 ac_lo=`expr '(' $ac_mid ')' + 1`
12624 rm -f conftest.$ac_objext conftest.$ac_ext
12627 ?*) pgac_cv_alignof_short=$ac_lo;;
12628 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12629 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12630 { (exit 1); exit 1; }; } ;;
12633 if test "$cross_compiling" = yes; then
12634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12635 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12636 { (exit 1); exit 1; }; }
12638 cat >conftest.$ac_ext <<_ACEOF
12639 #line $LINENO "configure"
12640 #include "confdefs.h"
12641 $ac_includes_default
12642 struct { char filler; short field; } pgac_struct;
12643 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12644 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12646 #include <stdlib.h>
12647 #ifdef F77_DUMMY_MAIN
12648 # ifdef __cplusplus
12651 int F77_DUMMY_MAIN() { return 1; }
12657 FILE *f = fopen ("conftest.val", "w");
12660 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12662 long i = longval ();
12663 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12665 fprintf (f, "%ld\n", i);
12669 unsigned long i = ulongval ();
12670 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12672 fprintf (f, "%lu\n", i);
12674 exit (ferror (f) || fclose (f) != 0);
12680 rm -f conftest$ac_exeext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 pgac_cv_alignof_short=`cat conftest.val`
12693 echo "$as_me: program exited with status $ac_status" >&5
12694 echo "$as_me: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 ( exit $ac_status )
12697 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12698 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12699 { (exit 1); exit 1; }; }
12701 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12706 pgac_cv_alignof_short=0
12709 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12710 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12711 cat >>confdefs.h <<_ACEOF
12712 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12716 echo "$as_me:$LINENO: checking for int" >&5
12717 echo $ECHO_N "checking for int... $ECHO_C" >&6
12718 if test "${ac_cv_type_int+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12724 $ac_includes_default
12725 #ifdef F77_DUMMY_MAIN
12726 # ifdef __cplusplus
12729 int F77_DUMMY_MAIN() { return 1; }
12742 rm -f conftest.$ac_objext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744 (eval $ac_compile) 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12756 echo "$as_me: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12760 rm -f conftest.$ac_objext conftest.$ac_ext
12762 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12763 echo "${ECHO_T}$ac_cv_type_int" >&6
12765 echo "$as_me:$LINENO: checking alignment of int" >&5
12766 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12767 if test "${pgac_cv_alignof_int+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 if test "$ac_cv_type_int" = yes; then
12771 if test "$cross_compiling" = yes; then
12772 # Depending upon the size, compute the lo and hi bounds.
12773 cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 #include "confdefs.h"
12776 $ac_includes_default
12777 struct { char filler; int field; } pgac_struct;
12778 #ifdef F77_DUMMY_MAIN
12779 # ifdef __cplusplus
12782 int F77_DUMMY_MAIN() { return 1; }
12787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12794 rm -f conftest.$ac_objext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12808 cat >conftest.$ac_ext <<_ACEOF
12809 #line $LINENO "configure"
12810 #include "confdefs.h"
12811 $ac_includes_default
12812 struct { char filler; int field; } pgac_struct;
12813 #ifdef F77_DUMMY_MAIN
12814 # ifdef __cplusplus
12817 int F77_DUMMY_MAIN() { return 1; }
12822 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831 (eval $ac_compile) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try='test -s conftest.$ac_objext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 ac_hi=$ac_mid; break
12843 echo "$as_me: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 ac_lo=`expr $ac_mid + 1`
12846 if test $ac_lo -le $ac_mid; then
12850 ac_mid=`expr 2 '*' $ac_mid + 1`
12852 rm -f conftest.$ac_objext conftest.$ac_ext
12855 echo "$as_me: failed program was:" >&5
12856 cat conftest.$ac_ext >&5
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860 $ac_includes_default
12861 struct { char filler; int field; } pgac_struct;
12862 #ifdef F77_DUMMY_MAIN
12863 # ifdef __cplusplus
12866 int F77_DUMMY_MAIN() { return 1; }
12871 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12878 rm -f conftest.$ac_objext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12892 cat >conftest.$ac_ext <<_ACEOF
12893 #line $LINENO "configure"
12894 #include "confdefs.h"
12895 $ac_includes_default
12896 struct { char filler; int field; } pgac_struct;
12897 #ifdef F77_DUMMY_MAIN
12898 # ifdef __cplusplus
12901 int F77_DUMMY_MAIN() { return 1; }
12906 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12913 rm -f conftest.$ac_objext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915 (eval $ac_compile) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_lo=$ac_mid; break
12927 echo "$as_me: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 ac_hi=`expr '(' $ac_mid ')' - 1`
12930 if test $ac_mid -le $ac_hi; then
12934 ac_mid=`expr 2 '*' $ac_mid`
12936 rm -f conftest.$ac_objext conftest.$ac_ext
12939 echo "$as_me: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12943 rm -f conftest.$ac_objext conftest.$ac_ext
12945 rm -f conftest.$ac_objext conftest.$ac_ext
12946 # Binary search between lo and hi bounds.
12947 while test "x$ac_lo" != "x$ac_hi"; do
12948 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12951 #include "confdefs.h"
12952 $ac_includes_default
12953 struct { char filler; int field; } pgac_struct;
12954 #ifdef F77_DUMMY_MAIN
12955 # ifdef __cplusplus
12958 int F77_DUMMY_MAIN() { return 1; }
12963 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12970 rm -f conftest.$ac_objext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12972 (eval $ac_compile) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12984 echo "$as_me: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12986 ac_lo=`expr '(' $ac_mid ')' + 1`
12988 rm -f conftest.$ac_objext conftest.$ac_ext
12991 ?*) pgac_cv_alignof_int=$ac_lo;;
12992 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
12993 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
12994 { (exit 1); exit 1; }; } ;;
12997 if test "$cross_compiling" = yes; then
12998 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12999 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13000 { (exit 1); exit 1; }; }
13002 cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005 $ac_includes_default
13006 struct { char filler; int field; } pgac_struct;
13007 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13008 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13010 #include <stdlib.h>
13011 #ifdef F77_DUMMY_MAIN
13012 # ifdef __cplusplus
13015 int F77_DUMMY_MAIN() { return 1; }
13021 FILE *f = fopen ("conftest.val", "w");
13024 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13026 long i = longval ();
13027 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13029 fprintf (f, "%ld\n", i);
13033 unsigned long i = ulongval ();
13034 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13036 fprintf (f, "%lu\n", i);
13038 exit (ferror (f) || fclose (f) != 0);
13044 rm -f conftest$ac_exeext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13046 (eval $ac_link) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055 pgac_cv_alignof_int=`cat conftest.val`
13057 echo "$as_me: program exited with status $ac_status" >&5
13058 echo "$as_me: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13060 ( exit $ac_status )
13061 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13062 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13063 { (exit 1); exit 1; }; }
13065 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13070 pgac_cv_alignof_int=0
13073 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13074 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13075 cat >>confdefs.h <<_ACEOF
13076 #define ALIGNOF_INT $pgac_cv_alignof_int
13080 echo "$as_me:$LINENO: checking for long" >&5
13081 echo $ECHO_N "checking for long... $ECHO_C" >&6
13082 if test "${ac_cv_type_long+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13086 #line $LINENO "configure"
13087 #include "confdefs.h"
13088 $ac_includes_default
13089 #ifdef F77_DUMMY_MAIN
13090 # ifdef __cplusplus
13093 int F77_DUMMY_MAIN() { return 1; }
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 ac_cv_type_long=yes
13120 echo "$as_me: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13124 rm -f conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13127 echo "${ECHO_T}$ac_cv_type_long" >&6
13129 echo "$as_me:$LINENO: checking alignment of long" >&5
13130 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13131 if test "${pgac_cv_alignof_long+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 if test "$ac_cv_type_long" = yes; then
13135 if test "$cross_compiling" = yes; then
13136 # Depending upon the size, compute the lo and hi bounds.
13137 cat >conftest.$ac_ext <<_ACEOF
13138 #line $LINENO "configure"
13139 #include "confdefs.h"
13140 $ac_includes_default
13141 struct { char filler; long field; } pgac_struct;
13142 #ifdef F77_DUMMY_MAIN
13143 # ifdef __cplusplus
13146 int F77_DUMMY_MAIN() { return 1; }
13151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13174 #include "confdefs.h"
13175 $ac_includes_default
13176 struct { char filler; long field; } pgac_struct;
13177 #ifdef F77_DUMMY_MAIN
13178 # ifdef __cplusplus
13181 int F77_DUMMY_MAIN() { return 1; }
13186 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13193 rm -f conftest.$ac_objext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195 (eval $ac_compile) 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } &&
13199 { ac_try='test -s conftest.$ac_objext'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 ac_hi=$ac_mid; break
13207 echo "$as_me: failed program was:" >&5
13208 cat conftest.$ac_ext >&5
13209 ac_lo=`expr $ac_mid + 1`
13210 if test $ac_lo -le $ac_mid; then
13214 ac_mid=`expr 2 '*' $ac_mid + 1`
13216 rm -f conftest.$ac_objext conftest.$ac_ext
13219 echo "$as_me: failed program was:" >&5
13220 cat conftest.$ac_ext >&5
13221 cat >conftest.$ac_ext <<_ACEOF
13222 #line $LINENO "configure"
13223 #include "confdefs.h"
13224 $ac_includes_default
13225 struct { char filler; long field; } pgac_struct;
13226 #ifdef F77_DUMMY_MAIN
13227 # ifdef __cplusplus
13230 int F77_DUMMY_MAIN() { return 1; }
13235 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13256 cat >conftest.$ac_ext <<_ACEOF
13257 #line $LINENO "configure"
13258 #include "confdefs.h"
13259 $ac_includes_default
13260 struct { char filler; long field; } pgac_struct;
13261 #ifdef F77_DUMMY_MAIN
13262 # ifdef __cplusplus
13265 int F77_DUMMY_MAIN() { return 1; }
13270 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279 (eval $ac_compile) 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_lo=$ac_mid; break
13291 echo "$as_me: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 ac_hi=`expr '(' $ac_mid ')' - 1`
13294 if test $ac_mid -le $ac_hi; then
13298 ac_mid=`expr 2 '*' $ac_mid`
13300 rm -f conftest.$ac_objext conftest.$ac_ext
13303 echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13309 rm -f conftest.$ac_objext conftest.$ac_ext
13310 # Binary search between lo and hi bounds.
13311 while test "x$ac_lo" != "x$ac_hi"; do
13312 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13313 cat >conftest.$ac_ext <<_ACEOF
13314 #line $LINENO "configure"
13315 #include "confdefs.h"
13316 $ac_includes_default
13317 struct { char filler; long field; } pgac_struct;
13318 #ifdef F77_DUMMY_MAIN
13319 # ifdef __cplusplus
13322 int F77_DUMMY_MAIN() { return 1; }
13327 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13348 echo "$as_me: failed program was:" >&5
13349 cat conftest.$ac_ext >&5
13350 ac_lo=`expr '(' $ac_mid ')' + 1`
13352 rm -f conftest.$ac_objext conftest.$ac_ext
13355 ?*) pgac_cv_alignof_long=$ac_lo;;
13356 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13357 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13358 { (exit 1); exit 1; }; } ;;
13361 if test "$cross_compiling" = yes; then
13362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13363 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13364 { (exit 1); exit 1; }; }
13366 cat >conftest.$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13368 #include "confdefs.h"
13369 $ac_includes_default
13370 struct { char filler; long field; } pgac_struct;
13371 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13372 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13374 #include <stdlib.h>
13375 #ifdef F77_DUMMY_MAIN
13376 # ifdef __cplusplus
13379 int F77_DUMMY_MAIN() { return 1; }
13385 FILE *f = fopen ("conftest.val", "w");
13388 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13390 long i = longval ();
13391 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13393 fprintf (f, "%ld\n", i);
13397 unsigned long i = ulongval ();
13398 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13400 fprintf (f, "%lu\n", i);
13402 exit (ferror (f) || fclose (f) != 0);
13408 rm -f conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410 (eval $ac_link) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 pgac_cv_alignof_long=`cat conftest.val`
13421 echo "$as_me: program exited with status $ac_status" >&5
13422 echo "$as_me: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13424 ( exit $ac_status )
13425 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13426 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13427 { (exit 1); exit 1; }; }
13429 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13434 pgac_cv_alignof_long=0
13437 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13438 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13439 cat >>confdefs.h <<_ACEOF
13440 #define ALIGNOF_LONG $pgac_cv_alignof_long
13444 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13445 echo "$as_me:$LINENO: checking for long long int" >&5
13446 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13447 if test "${ac_cv_type_long_long_int+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 cat >conftest.$ac_ext <<_ACEOF
13451 #line $LINENO "configure"
13452 #include "confdefs.h"
13453 $ac_includes_default
13454 #ifdef F77_DUMMY_MAIN
13455 # ifdef __cplusplus
13458 int F77_DUMMY_MAIN() { return 1; }
13463 if ((long long int *) 0)
13465 if (sizeof (long long int))
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -s conftest.$ac_objext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_type_long_long_int=yes
13485 echo "$as_me: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 ac_cv_type_long_long_int=no
13489 rm -f conftest.$ac_objext conftest.$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13492 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13494 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13495 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13496 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 if test "$ac_cv_type_long_long_int" = yes; then
13500 if test "$cross_compiling" = yes; then
13501 # Depending upon the size, compute the lo and hi bounds.
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505 $ac_includes_default
13506 struct { char filler; long long int field; } pgac_struct;
13507 #ifdef F77_DUMMY_MAIN
13508 # ifdef __cplusplus
13511 int F77_DUMMY_MAIN() { return 1; }
13516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -s conftest.$ac_objext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13537 cat >conftest.$ac_ext <<_ACEOF
13538 #line $LINENO "configure"
13539 #include "confdefs.h"
13540 $ac_includes_default
13541 struct { char filler; long long int field; } pgac_struct;
13542 #ifdef F77_DUMMY_MAIN
13543 # ifdef __cplusplus
13546 int F77_DUMMY_MAIN() { return 1; }
13551 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 ac_hi=$ac_mid; break
13572 echo "$as_me: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13574 ac_lo=`expr $ac_mid + 1`
13575 if test $ac_lo -le $ac_mid; then
13579 ac_mid=`expr 2 '*' $ac_mid + 1`
13581 rm -f conftest.$ac_objext conftest.$ac_ext
13584 echo "$as_me: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 #include "confdefs.h"
13589 $ac_includes_default
13590 struct { char filler; long long int field; } pgac_struct;
13591 #ifdef F77_DUMMY_MAIN
13592 # ifdef __cplusplus
13595 int F77_DUMMY_MAIN() { return 1; }
13600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13621 cat >conftest.$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13623 #include "confdefs.h"
13624 $ac_includes_default
13625 struct { char filler; long long int field; } pgac_struct;
13626 #ifdef F77_DUMMY_MAIN
13627 # ifdef __cplusplus
13630 int F77_DUMMY_MAIN() { return 1; }
13635 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13642 rm -f conftest.$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -s conftest.$ac_objext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_lo=$ac_mid; break
13656 echo "$as_me: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 ac_hi=`expr '(' $ac_mid ')' - 1`
13659 if test $ac_mid -le $ac_hi; then
13663 ac_mid=`expr 2 '*' $ac_mid`
13665 rm -f conftest.$ac_objext conftest.$ac_ext
13668 echo "$as_me: failed program was:" >&5
13669 cat conftest.$ac_ext >&5
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13674 rm -f conftest.$ac_objext conftest.$ac_ext
13675 # Binary search between lo and hi bounds.
13676 while test "x$ac_lo" != "x$ac_hi"; do
13677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13678 cat >conftest.$ac_ext <<_ACEOF
13679 #line $LINENO "configure"
13680 #include "confdefs.h"
13681 $ac_includes_default
13682 struct { char filler; long long int field; } pgac_struct;
13683 #ifdef F77_DUMMY_MAIN
13684 # ifdef __cplusplus
13687 int F77_DUMMY_MAIN() { return 1; }
13692 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 ac_lo=`expr '(' $ac_mid ')' + 1`
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13720 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13721 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13722 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13723 { (exit 1); exit 1; }; } ;;
13726 if test "$cross_compiling" = yes; then
13727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13728 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13729 { (exit 1); exit 1; }; }
13731 cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 #include "confdefs.h"
13734 $ac_includes_default
13735 struct { char filler; long long int field; } pgac_struct;
13736 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13737 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13739 #include <stdlib.h>
13740 #ifdef F77_DUMMY_MAIN
13741 # ifdef __cplusplus
13744 int F77_DUMMY_MAIN() { return 1; }
13750 FILE *f = fopen ("conftest.val", "w");
13753 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13755 long i = longval ();
13756 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13758 fprintf (f, "%ld\n", i);
13762 unsigned long i = ulongval ();
13763 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13765 fprintf (f, "%lu\n", i);
13767 exit (ferror (f) || fclose (f) != 0);
13773 rm -f conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 pgac_cv_alignof_long_long_int=`cat conftest.val`
13786 echo "$as_me: program exited with status $ac_status" >&5
13787 echo "$as_me: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 ( exit $ac_status )
13790 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13791 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13792 { (exit 1); exit 1; }; }
13794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13799 pgac_cv_alignof_long_long_int=0
13802 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13803 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13804 cat >>confdefs.h <<_ACEOF
13805 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13810 echo "$as_me:$LINENO: checking for double" >&5
13811 echo $ECHO_N "checking for double... $ECHO_C" >&6
13812 if test "${ac_cv_type_double+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13817 #include "confdefs.h"
13818 $ac_includes_default
13819 #ifdef F77_DUMMY_MAIN
13820 # ifdef __cplusplus
13823 int F77_DUMMY_MAIN() { return 1; }
13830 if (sizeof (double))
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838 (eval $ac_compile) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -s conftest.$ac_objext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_cv_type_double=yes
13850 echo "$as_me: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13852 ac_cv_type_double=no
13854 rm -f conftest.$ac_objext conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13857 echo "${ECHO_T}$ac_cv_type_double" >&6
13859 echo "$as_me:$LINENO: checking alignment of double" >&5
13860 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13861 if test "${pgac_cv_alignof_double+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 if test "$ac_cv_type_double" = yes; then
13865 if test "$cross_compiling" = yes; then
13866 # Depending upon the size, compute the lo and hi bounds.
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 #include "confdefs.h"
13870 $ac_includes_default
13871 struct { char filler; double field; } pgac_struct;
13872 #ifdef F77_DUMMY_MAIN
13873 # ifdef __cplusplus
13876 int F77_DUMMY_MAIN() { return 1; }
13881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13902 cat >conftest.$ac_ext <<_ACEOF
13903 #line $LINENO "configure"
13904 #include "confdefs.h"
13905 $ac_includes_default
13906 struct { char filler; double field; } pgac_struct;
13907 #ifdef F77_DUMMY_MAIN
13908 # ifdef __cplusplus
13911 int F77_DUMMY_MAIN() { return 1; }
13916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13923 rm -f conftest.$ac_objext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13925 (eval $ac_compile) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } &&
13929 { ac_try='test -s conftest.$ac_objext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_hi=$ac_mid; break
13937 echo "$as_me: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 ac_lo=`expr $ac_mid + 1`
13940 if test $ac_lo -le $ac_mid; then
13944 ac_mid=`expr 2 '*' $ac_mid + 1`
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13951 cat >conftest.$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 $ac_includes_default
13955 struct { char filler; double field; } pgac_struct;
13956 #ifdef F77_DUMMY_MAIN
13957 # ifdef __cplusplus
13960 int F77_DUMMY_MAIN() { return 1; }
13965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13986 cat >conftest.$ac_ext <<_ACEOF
13987 #line $LINENO "configure"
13988 #include "confdefs.h"
13989 $ac_includes_default
13990 struct { char filler; double field; } pgac_struct;
13991 #ifdef F77_DUMMY_MAIN
13992 # ifdef __cplusplus
13995 int F77_DUMMY_MAIN() { return 1; }
14000 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009 (eval $ac_compile) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_lo=$ac_mid; break
14021 echo "$as_me: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 ac_hi=`expr '(' $ac_mid ')' - 1`
14024 if test $ac_mid -le $ac_hi; then
14028 ac_mid=`expr 2 '*' $ac_mid`
14030 rm -f conftest.$ac_objext conftest.$ac_ext
14033 echo "$as_me: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14039 rm -f conftest.$ac_objext conftest.$ac_ext
14040 # Binary search between lo and hi bounds.
14041 while test "x$ac_lo" != "x$ac_hi"; do
14042 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14043 cat >conftest.$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14045 #include "confdefs.h"
14046 $ac_includes_default
14047 struct { char filler; double field; } pgac_struct;
14048 #ifdef F77_DUMMY_MAIN
14049 # ifdef __cplusplus
14052 int F77_DUMMY_MAIN() { return 1; }
14057 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14064 rm -f conftest.$ac_objext
14065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14066 (eval $ac_compile) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14078 echo "$as_me: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 ac_lo=`expr '(' $ac_mid ')' + 1`
14082 rm -f conftest.$ac_objext conftest.$ac_ext
14085 ?*) pgac_cv_alignof_double=$ac_lo;;
14086 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14087 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14088 { (exit 1); exit 1; }; } ;;
14091 if test "$cross_compiling" = yes; then
14092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14093 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14094 { (exit 1); exit 1; }; }
14096 cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 #include "confdefs.h"
14099 $ac_includes_default
14100 struct { char filler; double field; } pgac_struct;
14101 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14102 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14104 #include <stdlib.h>
14105 #ifdef F77_DUMMY_MAIN
14106 # ifdef __cplusplus
14109 int F77_DUMMY_MAIN() { return 1; }
14115 FILE *f = fopen ("conftest.val", "w");
14118 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14120 long i = longval ();
14121 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14123 fprintf (f, "%ld\n", i);
14127 unsigned long i = ulongval ();
14128 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14130 fprintf (f, "%lu\n", i);
14132 exit (ferror (f) || fclose (f) != 0);
14138 rm -f conftest$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 pgac_cv_alignof_double=`cat conftest.val`
14151 echo "$as_me: program exited with status $ac_status" >&5
14152 echo "$as_me: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 ( exit $ac_status )
14155 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14156 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14157 { (exit 1); exit 1; }; }
14159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14164 pgac_cv_alignof_double=0
14167 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14168 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14169 cat >>confdefs.h <<_ACEOF
14170 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14175 # Compute maximum alignment of any basic type.
14176 # We assume long's alignment is at least as strong as char, short, or int;
14177 # but we must check long long (if it exists) and double.
14179 MAX_ALIGNOF=$pgac_cv_alignof_long
14180 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14181 MAX_ALIGNOF=$pgac_cv_alignof_double
14183 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14184 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14187 cat >>confdefs.h <<_ACEOF
14188 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14193 # Some platforms predefine the types int8, int16, etc. Only check
14194 # a (hopefully) representative subset.
14195 echo "$as_me:$LINENO: checking for int8" >&5
14196 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14197 if test "${ac_cv_type_int8+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 cat >conftest.$ac_ext <<_ACEOF
14201 #line $LINENO "configure"
14202 #include "confdefs.h"
14204 #ifdef HAVE_SUPPORTDEFS_H
14205 #include <SupportDefs.h>
14208 #ifdef F77_DUMMY_MAIN
14209 # ifdef __cplusplus
14212 int F77_DUMMY_MAIN() { return 1; }
14225 rm -f conftest.$ac_objext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227 (eval $ac_compile) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_type_int8=yes
14239 echo "$as_me: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14243 rm -f conftest.$ac_objext conftest.$ac_ext
14245 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14246 echo "${ECHO_T}$ac_cv_type_int8" >&6
14247 if test $ac_cv_type_int8 = yes; then
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_INT8 1
14255 echo "$as_me:$LINENO: checking for uint8" >&5
14256 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14257 if test "${ac_cv_type_uint8+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14261 #line $LINENO "configure"
14262 #include "confdefs.h"
14264 #ifdef HAVE_SUPPORTDEFS_H
14265 #include <SupportDefs.h>
14268 #ifdef F77_DUMMY_MAIN
14269 # ifdef __cplusplus
14272 int F77_DUMMY_MAIN() { return 1; }
14279 if (sizeof (uint8))
14285 rm -f conftest.$ac_objext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14287 (eval $ac_compile) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_cv_type_uint8=yes
14299 echo "$as_me: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 ac_cv_type_uint8=no
14303 rm -f conftest.$ac_objext conftest.$ac_ext
14305 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14306 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14307 if test $ac_cv_type_uint8 = yes; then
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_UINT8 1
14315 echo "$as_me:$LINENO: checking for int64" >&5
14316 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14317 if test "${ac_cv_type_int64+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 cat >conftest.$ac_ext <<_ACEOF
14321 #line $LINENO "configure"
14322 #include "confdefs.h"
14324 #ifdef HAVE_SUPPORTDEFS_H
14325 #include <SupportDefs.h>
14328 #ifdef F77_DUMMY_MAIN
14329 # ifdef __cplusplus
14332 int F77_DUMMY_MAIN() { return 1; }
14339 if (sizeof (int64))
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347 (eval $ac_compile) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_type_int64=yes
14359 echo "$as_me: failed program was:" >&5
14360 cat conftest.$ac_ext >&5
14361 ac_cv_type_int64=no
14363 rm -f conftest.$ac_objext conftest.$ac_ext
14365 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14366 echo "${ECHO_T}$ac_cv_type_int64" >&6
14367 if test $ac_cv_type_int64 = yes; then
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_INT64 1
14375 echo "$as_me:$LINENO: checking for uint64" >&5
14376 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14377 if test "${ac_cv_type_uint64+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 #include "confdefs.h"
14384 #ifdef HAVE_SUPPORTDEFS_H
14385 #include <SupportDefs.h>
14388 #ifdef F77_DUMMY_MAIN
14389 # ifdef __cplusplus
14392 int F77_DUMMY_MAIN() { return 1; }
14399 if (sizeof (uint64))
14405 rm -f conftest.$ac_objext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14407 (eval $ac_compile) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -s conftest.$ac_objext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_cv_type_uint64=yes
14419 echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14421 ac_cv_type_uint64=no
14423 rm -f conftest.$ac_objext conftest.$ac_ext
14425 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14426 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14427 if test $ac_cv_type_uint64 = yes; then
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_UINT64 1
14437 # We also check for sig_atomic_t, which *should* be defined per ANSI
14438 # C, but is missing on some old platforms.
14439 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14440 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14441 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 #include "confdefs.h"
14447 #include <signal.h>
14449 #ifdef F77_DUMMY_MAIN
14450 # ifdef __cplusplus
14453 int F77_DUMMY_MAIN() { return 1; }
14458 if ((sig_atomic_t *) 0)
14460 if (sizeof (sig_atomic_t))
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468 (eval $ac_compile) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_cv_type_sig_atomic_t=yes
14480 echo "$as_me: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14482 ac_cv_type_sig_atomic_t=no
14484 rm -f conftest.$ac_objext conftest.$ac_ext
14486 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14487 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14488 if test $ac_cv_type_sig_atomic_t = yes; then
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_SIG_ATOMIC_T 1
14499 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14500 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14501 if test "${pgac_cv_func_posix_signals+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 cat >conftest.$ac_ext <<_ACEOF
14505 #line $LINENO "configure"
14506 #include "confdefs.h"
14507 #include <signal.h>
14509 #ifdef F77_DUMMY_MAIN
14510 # ifdef __cplusplus
14513 int F77_DUMMY_MAIN() { return 1; }
14518 struct sigaction act, oact;
14519 sigemptyset(&act.sa_mask);
14520 act.sa_flags = SA_RESTART;
14521 sigaction(0, &act, &oact);
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 pgac_cv_func_posix_signals=yes
14540 echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 pgac_cv_func_posix_signals=no
14544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14546 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14547 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14548 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14550 cat >>confdefs.h <<\_ACEOF
14551 #define HAVE_POSIX_SIGNALS
14555 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14557 if test $ac_cv_func_fseeko = yes; then
14558 # Check whether --enable-largefile or --disable-largefile was given.
14559 if test "${enable_largefile+set}" = set; then
14560 enableval="$enable_largefile"
14563 if test "$enable_largefile" != no; then
14565 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14566 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14567 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 ac_cv_sys_largefile_CC=no
14571 if test "$GCC" != yes; then
14574 # IRIX 6.2 and later do not support large files by default,
14575 # so use the C compiler's -n32 option if that helps.
14576 cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14578 #include "confdefs.h"
14579 #include <sys/types.h>
14580 /* Check that off_t can represent 2**63 - 1 correctly.
14581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14582 since some C++ compilers masquerading as C compilers
14583 incorrectly reject 9223372036854775807. */
14584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14586 && LARGE_OFF_T % 2147483647 == 1)
14588 #ifdef F77_DUMMY_MAIN
14589 # ifdef __cplusplus
14592 int F77_DUMMY_MAIN() { return 1; }
14602 rm -f conftest.$ac_objext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604 (eval $ac_compile) 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14616 echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14619 rm -f conftest.$ac_objext
14621 rm -f conftest.$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 (eval $ac_compile) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -s conftest.$ac_objext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_sys_largefile_CC=' -n32'; break
14635 echo "$as_me: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14638 rm -f conftest.$ac_objext
14642 rm -f conftest.$ac_ext
14645 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14646 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14647 if test "$ac_cv_sys_largefile_CC" != no; then
14648 CC=$CC$ac_cv_sys_largefile_CC
14651 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14652 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14653 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 ac_cv_sys_file_offset_bits=no
14658 cat >conftest.$ac_ext <<_ACEOF
14659 #line $LINENO "configure"
14660 #include "confdefs.h"
14661 #include <sys/types.h>
14662 /* Check that off_t can represent 2**63 - 1 correctly.
14663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14664 since some C++ compilers masquerading as C compilers
14665 incorrectly reject 9223372036854775807. */
14666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14668 && LARGE_OFF_T % 2147483647 == 1)
14670 #ifdef F77_DUMMY_MAIN
14671 # ifdef __cplusplus
14674 int F77_DUMMY_MAIN() { return 1; }
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -s conftest.$ac_objext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14698 echo "$as_me: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14702 cat >conftest.$ac_ext <<_ACEOF
14703 #line $LINENO "configure"
14704 #include "confdefs.h"
14705 #define _FILE_OFFSET_BITS 64
14706 #include <sys/types.h>
14707 /* Check that off_t can represent 2**63 - 1 correctly.
14708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14709 since some C++ compilers masquerading as C compilers
14710 incorrectly reject 9223372036854775807. */
14711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14713 && LARGE_OFF_T % 2147483647 == 1)
14715 #ifdef F77_DUMMY_MAIN
14716 # ifdef __cplusplus
14719 int F77_DUMMY_MAIN() { return 1; }
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_sys_file_offset_bits=64; break
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14746 rm -f conftest.$ac_objext conftest.$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14751 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14752 if test "$ac_cv_sys_file_offset_bits" != no; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14760 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14761 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14762 if test "${ac_cv_sys_large_files+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 ac_cv_sys_large_files=no
14767 cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 #include "confdefs.h"
14770 #include <sys/types.h>
14771 /* Check that off_t can represent 2**63 - 1 correctly.
14772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14773 since some C++ compilers masquerading as C compilers
14774 incorrectly reject 9223372036854775807. */
14775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14777 && LARGE_OFF_T % 2147483647 == 1)
14779 #ifdef F77_DUMMY_MAIN
14780 # ifdef __cplusplus
14783 int F77_DUMMY_MAIN() { return 1; }
14793 rm -f conftest.$ac_objext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14795 (eval $ac_compile) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -s conftest.$ac_objext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14807 echo "$as_me: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14811 cat >conftest.$ac_ext <<_ACEOF
14812 #line $LINENO "configure"
14813 #include "confdefs.h"
14814 #define _LARGE_FILES 1
14815 #include <sys/types.h>
14816 /* Check that off_t can represent 2**63 - 1 correctly.
14817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14818 since some C++ compilers masquerading as C compilers
14819 incorrectly reject 9223372036854775807. */
14820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14822 && LARGE_OFF_T % 2147483647 == 1)
14824 #ifdef F77_DUMMY_MAIN
14825 # ifdef __cplusplus
14828 int F77_DUMMY_MAIN() { return 1; }
14838 rm -f conftest.$ac_objext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840 (eval $ac_compile) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_cv_sys_large_files=1; break
14852 echo "$as_me: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14855 rm -f conftest.$ac_objext conftest.$ac_ext
14859 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14860 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14861 if test "$ac_cv_sys_large_files" != no; then
14863 cat >>confdefs.h <<_ACEOF
14864 #define _LARGE_FILES $ac_cv_sys_large_files
14874 # Select semaphore implementation type.
14875 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define USE_NAMED_POSIX_SEMAPHORES 1
14881 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14883 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14885 cat >>confdefs.h <<\_ACEOF
14886 #define USE_UNNAMED_POSIX_SEMAPHORES 1
14889 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14892 cat >>confdefs.h <<\_ACEOF
14893 #define USE_SYSV_SEMAPHORES 1
14896 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14901 # Select shared-memory implementation type.
14903 cat >>confdefs.h <<\_ACEOF
14904 #define USE_SYSV_SHARED_MEMORY 1
14907 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14910 if test "$enable_nls" = yes ; then
14912 echo "$as_me:$LINENO: checking for library containing gettext" >&5
14913 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
14914 if test "${ac_cv_search_gettext+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 ac_func_search_save_LIBS=$LIBS
14918 ac_cv_search_gettext=no
14919 cat >conftest.$ac_ext <<_ACEOF
14920 #line $LINENO "configure"
14921 #include "confdefs.h"
14923 /* Override any gcc2 internal prototype to avoid an error. */
14927 /* We use char because int might match the return type of a gcc2
14928 builtin and then its argument prototype would still apply. */
14930 #ifdef F77_DUMMY_MAIN
14931 # ifdef __cplusplus
14934 int F77_DUMMY_MAIN() { return 1; }
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14946 (eval $ac_link) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_search_gettext="none required"
14958 echo "$as_me: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14962 if test "$ac_cv_search_gettext" = no; then
14963 for ac_lib in intl; do
14964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14965 cat >conftest.$ac_ext <<_ACEOF
14966 #line $LINENO "configure"
14967 #include "confdefs.h"
14969 /* Override any gcc2 internal prototype to avoid an error. */
14973 /* We use char because int might match the return type of a gcc2
14974 builtin and then its argument prototype would still apply. */
14976 #ifdef F77_DUMMY_MAIN
14977 # ifdef __cplusplus
14980 int F77_DUMMY_MAIN() { return 1; }
14990 rm -f conftest.$ac_objext conftest$ac_exeext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14992 (eval $ac_link) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_cv_search_gettext="-l$ac_lib"
15005 echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15011 LIBS=$ac_func_search_save_LIBS
15013 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15014 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15015 if test "$ac_cv_search_gettext" != no; then
15016 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15019 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15020 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15021 { (exit 1); exit 1; }; }
15024 if test "${ac_cv_header_libintl_h+set}" = set; then
15025 echo "$as_me:$LINENO: checking for libintl.h" >&5
15026 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15027 if test "${ac_cv_header_libintl_h+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15033 # Is the header compilable?
15034 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15035 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15038 #include "confdefs.h"
15039 $ac_includes_default
15040 #include <libintl.h>
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_header_compiler=yes
15056 echo "$as_me: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 ac_header_compiler=no
15060 rm -f conftest.$ac_objext conftest.$ac_ext
15061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15062 echo "${ECHO_T}$ac_header_compiler" >&6
15064 # Is the header present?
15065 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15066 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15068 #line $LINENO "configure"
15069 #include "confdefs.h"
15070 #include <libintl.h>
15072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15075 egrep -v '^ *\+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } >/dev/null; then
15080 if test -s conftest.err; then
15081 ac_cpp_err=$ac_c_preproc_warn_flag
15088 if test -z "$ac_cpp_err"; then
15089 ac_header_preproc=yes
15091 echo "$as_me: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15093 ac_header_preproc=no
15095 rm -f conftest.err conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15097 echo "${ECHO_T}$ac_header_preproc" >&6
15099 # So? What about this header?
15100 case $ac_header_compiler:$ac_header_preproc in
15102 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15103 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15105 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15107 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15108 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15110 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15112 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15114 echo "$as_me:$LINENO: checking for libintl.h" >&5
15115 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15116 if test "${ac_cv_header_libintl_h+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 ac_cv_header_libintl_h=$ac_header_preproc
15121 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15122 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15125 if test $ac_cv_header_libintl_h = yes; then
15128 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15129 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15130 { (exit 1); exit 1; }; }
15134 for ac_prog in msgfmt
15136 # Extract the first word of "$ac_prog", so it can be a program name with args.
15137 set dummy $ac_prog; ac_word=$2
15138 echo "$as_me:$LINENO: checking for $ac_word" >&5
15139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15140 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 if test -n "$MSGFMT"; then
15144 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 for as_dir in $PATH
15150 test -z "$as_dir" && as_dir=.
15151 for ac_exec_ext in '' $ac_executable_extensions; do
15152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153 ac_cv_prog_MSGFMT="$ac_prog"
15154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15162 MSGFMT=$ac_cv_prog_MSGFMT
15163 if test -n "$MSGFMT"; then
15164 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15165 echo "${ECHO_T}$MSGFMT" >&6
15167 echo "$as_me:$LINENO: result: no" >&5
15168 echo "${ECHO_T}no" >&6
15171 test -n "$MSGFMT" && break
15174 if test -z "$MSGFMT"; then
15175 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15176 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15177 { (exit 1); exit 1; }; }
15179 for ac_prog in msgmerge
15181 # Extract the first word of "$ac_prog", so it can be a program name with args.
15182 set dummy $ac_prog; ac_word=$2
15183 echo "$as_me:$LINENO: checking for $ac_word" >&5
15184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15185 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 if test -n "$MSGMERGE"; then
15189 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_prog_MSGMERGE="$ac_prog"
15199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15207 MSGMERGE=$ac_cv_prog_MSGMERGE
15208 if test -n "$MSGMERGE"; then
15209 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15210 echo "${ECHO_T}$MSGMERGE" >&6
15212 echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15216 test -n "$MSGMERGE" && break
15219 for ac_prog in xgettext
15221 # Extract the first word of "$ac_prog", so it can be a program name with args.
15222 set dummy $ac_prog; ac_word=$2
15223 echo "$as_me:$LINENO: checking for $ac_word" >&5
15224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15225 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 if test -n "$XGETTEXT"; then
15229 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $PATH
15235 test -z "$as_dir" && as_dir=.
15236 for ac_exec_ext in '' $ac_executable_extensions; do
15237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15238 ac_cv_prog_XGETTEXT="$ac_prog"
15239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15247 XGETTEXT=$ac_cv_prog_XGETTEXT
15248 if test -n "$XGETTEXT"; then
15249 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15250 echo "${ECHO_T}$XGETTEXT" >&6
15252 echo "$as_me:$LINENO: result: no" >&5
15253 echo "${ECHO_T}no" >&6
15256 test -n "$XGETTEXT" && break
15260 # Note: share/locale is always the default, independent of $datadir
15261 localedir='${prefix}/share/locale'
15262 if test x"$prefix" = x"NONE"; then
15263 exp_localedir="$ac_default_prefix/share/locale"
15265 exp_localedir="$prefix/share/locale"
15270 cat >>confdefs.h <<_ACEOF
15271 #define LOCALEDIR "$exp_localedir"
15277 # Check for Tcl configuration script tclConfig.sh
15278 if test "$with_tcl" = yes; then
15279 for ac_prog in tclsh tcl
15281 # Extract the first word of "$ac_prog", so it can be a program name with args.
15282 set dummy $ac_prog; ac_word=$2
15283 echo "$as_me:$LINENO: checking for $ac_word" >&5
15284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15285 if test "${ac_cv_path_TCLSH+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $PATH
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
15299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15310 TCLSH=$ac_cv_path_TCLSH
15312 if test -n "$TCLSH"; then
15313 echo "$as_me:$LINENO: result: $TCLSH" >&5
15314 echo "${ECHO_T}$TCLSH" >&6
15316 echo "$as_me:$LINENO: result: no" >&5
15317 echo "${ECHO_T}no" >&6
15320 test -n "$TCLSH" && break
15323 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15324 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15325 # Let user override test
15326 if test -z "$TCL_CONFIG_SH"; then
15327 pgac_test_dirs="$with_tclconfig"
15329 set X $pgac_test_dirs; shift
15330 if test $# -eq 0; then
15331 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15332 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15333 { (exit 1); exit 1; }; }
15334 set X `echo 'puts $auto_path' | $TCLSH`; shift
15338 if test -r "$pgac_dir/tclConfig.sh"; then
15339 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15345 if test -z "$TCL_CONFIG_SH"; then
15346 echo "$as_me:$LINENO: result: no" >&5
15347 echo "${ECHO_T}no" >&6
15348 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15349 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15350 { (exit 1); exit 1; }; }
15352 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15353 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15359 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15360 eval TCL_LIBS=\"$TCL_LIBS\"
15361 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15362 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15366 # Check for Tk configuration script tkConfig.sh
15367 if test "$with_tk" = yes; then
15368 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15369 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15370 # Let user override test
15371 if test -z "$TK_CONFIG_SH"; then
15372 pgac_test_dirs="$with_tkconfig $with_tclconfig"
15374 set X $pgac_test_dirs; shift
15375 if test $# -eq 0; then
15376 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15377 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15378 { (exit 1); exit 1; }; }
15379 set X `echo 'puts $auto_path' | $TCLSH`; shift
15383 if test -r "$pgac_dir/tkConfig.sh"; then
15384 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15390 if test -z "$TK_CONFIG_SH"; then
15391 echo "$as_me:$LINENO: result: no" >&5
15392 echo "${ECHO_T}no" >&6
15393 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15394 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15395 { (exit 1); exit 1; }; }
15397 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15398 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15404 eval TK_LIBS=\"$TK_LIBS\"
15405 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15406 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15412 # Check for DocBook and tools
15414 for ac_prog in onsgmls nsgmls
15416 # Extract the first word of "$ac_prog", so it can be a program name with args.
15417 set dummy $ac_prog; ac_word=$2
15418 echo "$as_me:$LINENO: checking for $ac_word" >&5
15419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15420 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 if test -n "$NSGMLS"; then
15424 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15427 for as_dir in $PATH
15430 test -z "$as_dir" && as_dir=.
15431 for ac_exec_ext in '' $ac_executable_extensions; do
15432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15433 ac_cv_prog_NSGMLS="$ac_prog"
15434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15442 NSGMLS=$ac_cv_prog_NSGMLS
15443 if test -n "$NSGMLS"; then
15444 echo "$as_me:$LINENO: result: $NSGMLS" >&5
15445 echo "${ECHO_T}$NSGMLS" >&6
15447 echo "$as_me:$LINENO: result: no" >&5
15448 echo "${ECHO_T}no" >&6
15451 test -n "$NSGMLS" && break
15454 for ac_prog in openjade jade
15456 # Extract the first word of "$ac_prog", so it can be a program name with args.
15457 set dummy $ac_prog; ac_word=$2
15458 echo "$as_me:$LINENO: checking for $ac_word" >&5
15459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15460 if test "${ac_cv_prog_JADE+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 if test -n "$JADE"; then
15464 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467 for as_dir in $PATH
15470 test -z "$as_dir" && as_dir=.
15471 for ac_exec_ext in '' $ac_executable_extensions; do
15472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15473 ac_cv_prog_JADE="$ac_prog"
15474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15482 JADE=$ac_cv_prog_JADE
15483 if test -n "$JADE"; then
15484 echo "$as_me:$LINENO: result: $JADE" >&5
15485 echo "${ECHO_T}$JADE" >&6
15487 echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6
15491 test -n "$JADE" && break
15495 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15496 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15497 if test "${pgac_cv_check_docbook+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 cat >conftest.sgml <<EOF
15501 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15503 <title>test</title>
15505 <title>random</title>
15507 <title>testsect</title>
15514 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15515 if test $? -eq 0; then
15516 pgac_cv_check_docbook=yes
15518 pgac_cv_check_docbook=no
15520 rm -f conftest.sgml
15522 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15523 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15525 have_docbook=$pgac_cv_check_docbook
15528 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15529 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15530 if test "${pgac_cv_path_stylesheets+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 if test -n "$DOCBOOKSTYLE"; then
15534 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15536 for pgac_prefix in /usr /usr/local /opt; do
15537 for pgac_infix in share lib; do
15538 for pgac_postfix in \
15539 sgml/stylesheets/nwalsh-modular \
15540 sgml/stylesheets/docbook \
15541 sgml/docbook/dsssl/modular \
15542 sgml/docbook/stylesheet/dsssl/modular \
15543 sgml/docbook/dsssl-stylesheets
15545 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15546 if test -r "$pgac_candidate/html/docbook.dsl" \
15547 && test -r "$pgac_candidate/print/docbook.dsl"
15549 pgac_cv_path_stylesheets=$pgac_candidate
15558 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15560 if test -n "$DOCBOOKSTYLE"; then
15561 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15562 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15564 echo "$as_me:$LINENO: result: no" >&5
15565 echo "${ECHO_T}no" >&6
15567 if test -n "$DOCBOOKSTYLE"; then
15568 for ac_prog in collateindex.pl
15570 # Extract the first word of "$ac_prog", so it can be a program name with args.
15571 set dummy $ac_prog; ac_word=$2
15572 echo "$as_me:$LINENO: checking for $ac_word" >&5
15573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15574 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 case $COLLATEINDEX in
15579 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583 for as_dir in $DOCBOOKSTYLE/bin $PATH
15586 test -z "$as_dir" && as_dir=.
15587 for ac_exec_ext in '' $ac_executable_extensions; do
15588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15589 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15599 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15601 if test -n "$COLLATEINDEX"; then
15602 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15603 echo "${ECHO_T}$COLLATEINDEX" >&6
15605 echo "$as_me:$LINENO: result: no" >&5
15606 echo "${ECHO_T}no" >&6
15609 test -n "$COLLATEINDEX" && break
15613 for ac_prog in collateindex.pl
15615 # Extract the first word of "$ac_prog", so it can be a program name with args.
15616 set dummy $ac_prog; ac_word=$2
15617 echo "$as_me:$LINENO: checking for $ac_word" >&5
15618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15619 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 case $COLLATEINDEX in
15624 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15628 for as_dir in $PATH
15631 test -z "$as_dir" && as_dir=.
15632 for ac_exec_ext in '' $ac_executable_extensions; do
15633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15634 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15644 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15646 if test -n "$COLLATEINDEX"; then
15647 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15648 echo "${ECHO_T}$COLLATEINDEX" >&6
15650 echo "$as_me:$LINENO: result: no" >&5
15651 echo "${ECHO_T}no" >&6
15654 test -n "$COLLATEINDEX" && break
15658 for ac_prog in sgmlspl
15660 # Extract the first word of "$ac_prog", so it can be a program name with args.
15661 set dummy $ac_prog; ac_word=$2
15662 echo "$as_me:$LINENO: checking for $ac_word" >&5
15663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15664 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 if test -n "$SGMLSPL"; then
15668 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 for as_dir in $PATH
15674 test -z "$as_dir" && as_dir=.
15675 for ac_exec_ext in '' $ac_executable_extensions; do
15676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15677 ac_cv_prog_SGMLSPL="$ac_prog"
15678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15686 SGMLSPL=$ac_cv_prog_SGMLSPL
15687 if test -n "$SGMLSPL"; then
15688 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15689 echo "${ECHO_T}$SGMLSPL" >&6
15691 echo "$as_me:$LINENO: result: no" >&5
15692 echo "${ECHO_T}no" >&6
15695 test -n "$SGMLSPL" && break
15700 # prepare build tree if outside source tree
15701 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15702 # Note 2: /bin/pwd might be better than shell's built-in at getting
15703 # a symlink-free name.
15704 if test "$no_create" != yes; then
15705 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15710 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15711 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15712 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15713 || { { echo "$as_me:$LINENO: error: failed" >&5
15714 echo "$as_me: error: failed" >&2;}
15715 { (exit 1); exit 1; }; }
15716 echo "$as_me:$LINENO: result: done" >&5
15717 echo "${ECHO_T}done" >&6
15722 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15725 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}"
15728 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15731 cat >confcache <<\_ACEOF
15732 # This file is a shell script that caches the results of configure
15733 # tests run on this system so they can be shared between configure
15734 # scripts and configure runs, see configure's option --config-cache.
15735 # It is not useful on other systems. If it contains results you don't
15736 # want to keep, you may remove or edit it.
15738 # config.status only pays attention to the cache file if you give it
15739 # the --recheck option to rerun configure.
15741 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15743 # following values.
15747 # The following way of writing the cache mishandles newlines in values,
15748 # but we know of no workaround that is simple, portable, and efficient.
15749 # So, don't put newlines in cache variables' values.
15750 # Ultrix sh set writes to stderr and can't be redirected directly,
15751 # and sets the high bit in the cache file unless we assign to the vars.
15754 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15756 # `set' does not quote correctly, so add quotes (double-quote
15757 # substitution turns \\\\ into \\, and sed turns \\ into \).
15760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15763 # `set' quotes correctly as required by POSIX, so do not add quotes.
15765 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15772 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15774 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15776 if cmp -s $cache_file confcache; then :; else
15777 if test -w $cache_file; then
15778 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15779 cat confcache >$cache_file
15781 echo "not updating unwritable cache $cache_file"
15786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15787 # Let make expand exec_prefix.
15788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15790 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15791 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15792 # trailing colons and then remove the whole line if VPATH becomes empty
15793 # (actually we leave an empty line to preserve line numbers).
15794 if test "x$srcdir" = x.; then
15795 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15796 s/:*\$(srcdir):*/:/;
15797 s/:*\${srcdir}:*/:/;
15799 s/^\([^=]*=[ ]*\):*/\1/;
15805 DEFS=-DHAVE_CONFIG_H
15808 : ${CONFIG_STATUS=./config.status}
15809 ac_clean_files_save=$ac_clean_files
15810 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15811 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15812 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15813 cat >$CONFIG_STATUS <<_ACEOF
15815 # Generated by $as_me.
15816 # Run this file to recreate the current configuration.
15817 # Compiler output produced by configure, useful for debugging
15818 # configure, is in config.log if it exists.
15821 SHELL=\${CONFIG_SHELL-$SHELL}
15824 cat >>$CONFIG_STATUS <<\_ACEOF
15826 ## --------------------- ##
15827 ## M4sh Initialization. ##
15828 ## --------------------- ##
15830 # Be Bourne compatible
15831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15834 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15839 # Support unset when possible.
15840 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15846 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15847 { $as_unset LANG || test "${LANG+set}" != set; } ||
15848 { LANG=C; export LANG; }
15849 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15850 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15851 { LC_ALL=C; export LC_ALL; }
15852 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15853 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15854 { LC_TIME=C; export LC_TIME; }
15855 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15856 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15857 { LC_CTYPE=C; export LC_CTYPE; }
15858 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15859 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15860 { LANGUAGE=C; export LANGUAGE; }
15861 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15862 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15863 { LC_COLLATE=C; export LC_COLLATE; }
15864 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15865 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15866 { LC_NUMERIC=C; export LC_NUMERIC; }
15867 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15868 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15869 { LC_MESSAGES=C; export LC_MESSAGES; }
15872 # Name of the executable.
15873 as_me=`(basename "$0") 2>/dev/null ||
15874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15875 X"$0" : 'X\(//\)$' \| \
15876 X"$0" : 'X\(/\)$' \| \
15877 . : '\(.\)' 2>/dev/null ||
15879 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15880 /^X\/\(\/\/\)$/{ s//\1/; q; }
15881 /^X\/\(\/\).*/{ s//\1/; q; }
15884 # PATH needs CR, and LINENO needs CR and PATH.
15885 # Avoid depending upon Character Ranges.
15886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15889 as_cr_digits='0123456789'
15890 as_cr_alnum=$as_cr_Letters$as_cr_digits
15892 # The user is always right.
15893 if test "${PATH_SEPARATOR+set}" != set; then
15894 echo "#! /bin/sh" >conftest.sh
15895 echo "exit 0" >>conftest.sh
15896 chmod +x conftest.sh
15897 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15906 as_lineno_1=$LINENO
15907 as_lineno_2=$LINENO
15908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15909 test "x$as_lineno_1" != "x$as_lineno_2" &&
15910 test "x$as_lineno_3" = "x$as_lineno_2" || {
15911 # Find who we are. Look in the path if we contain no path at all
15914 *[\\/]* ) as_myself=$0 ;;
15915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15919 test -z "$as_dir" && as_dir=.
15920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15925 # We did not find ourselves, most probably we were run as `sh COMMAND'
15926 # in which case we are not to be found in the path.
15927 if test "x$as_myself" = x; then
15930 if test ! -f "$as_myself"; then
15931 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15932 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15933 { (exit 1); exit 1; }; }
15935 case $CONFIG_SHELL in
15937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15941 test -z "$as_dir" && as_dir=.
15942 for as_base in sh bash ksh sh5; do
15945 if ("$as_dir/$as_base" -c '
15946 as_lineno_1=$LINENO
15947 as_lineno_2=$LINENO
15948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15949 test "x$as_lineno_1" != "x$as_lineno_2" &&
15950 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15951 CONFIG_SHELL=$as_dir/$as_base
15952 export CONFIG_SHELL
15953 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15961 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15962 # uniformly replaced by the line number. The first 'sed' inserts a
15963 # line-number line before each line; the second 'sed' does the real
15964 # work. The second script uses 'N' to pair each line-number line
15965 # with the numbered line, and appends trailing '-' during
15966 # substitution so that $LINENO is not a special case at line end.
15967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15968 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15969 sed '=' <$as_myself |
15974 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15977 s,^['$as_cr_digits']*\n,,
15978 ' >$as_me.lineno &&
15979 chmod +x $as_me.lineno ||
15980 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15981 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15982 { (exit 1); exit 1; }; }
15984 # Don't try to exec as it changes $[0], causing all sort of problems
15985 # (the dirname of $[0] is not the place where we might find the
15986 # original and so on. Autoconf is especially sensible to this).
15988 # Exit status is that of the last command.
15993 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15994 *c*,-n*) ECHO_N= ECHO_C='
15996 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15997 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16000 if expr a : '\(a\)' >/dev/null 2>&1; then
16006 rm -f conf$$ conf$$.exe conf$$.file
16008 if ln -s conf$$.file conf$$ 2>/dev/null; then
16009 # We could just check for DJGPP; but this test a) works b) is more generic
16010 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16011 if test -f conf$$.exe; then
16012 # Don't use ln at all; we don't have any links
16017 elif ln conf$$.file conf$$ 2>/dev/null; then
16022 rm -f conf$$ conf$$.exe conf$$.file
16024 as_executable_p="test -f"
16026 # Sed expression to map a string onto a valid CPP name.
16027 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16029 # Sed expression to map a string onto a valid variable name.
16030 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16034 # We need space, tab and new line, in precisely that order.
16040 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16044 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16045 # report actual input values of CONFIG_FILES etc. instead of their
16046 # values after options handling. Logging --version etc. is OK.
16050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16051 ## Running $as_me. ##
16056 This file was extended by PostgreSQL $as_me 7.3b1, which was
16057 generated by GNU Autoconf 2.53. Invocation command line was
16059 CONFIG_FILES = $CONFIG_FILES
16060 CONFIG_HEADERS = $CONFIG_HEADERS
16061 CONFIG_LINKS = $CONFIG_LINKS
16062 CONFIG_COMMANDS = $CONFIG_COMMANDS
16066 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16070 # Files that config.status was made for.
16071 if test -n "$ac_config_files"; then
16072 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16075 if test -n "$ac_config_headers"; then
16076 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16079 if test -n "$ac_config_links"; then
16080 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16083 if test -n "$ac_config_commands"; then
16084 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16087 cat >>$CONFIG_STATUS <<\_ACEOF
16090 \`$as_me' instantiates files from templates according to the
16091 current configuration.
16093 Usage: $0 [OPTIONS] [FILE]...
16095 -h, --help print this help, then exit
16096 -V, --version print version number, then exit
16097 -d, --debug don't remove temporary files
16098 --recheck update $as_me by reconfiguring in the same conditions
16099 --file=FILE[:TEMPLATE]
16100 instantiate the configuration file FILE
16101 --header=FILE[:TEMPLATE]
16102 instantiate the configuration header FILE
16104 Configuration files:
16107 Configuration headers:
16110 Configuration links:
16113 Report bugs to <bug-autoconf@gnu.org>."
16116 cat >>$CONFIG_STATUS <<_ACEOF
16118 PostgreSQL config.status 7.3b1
16119 configured by $0, generated by GNU Autoconf 2.53,
16120 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16122 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16123 Free Software Foundation, Inc.
16124 This config.status script is free software; the Free Software Foundation
16125 gives unlimited permission to copy, distribute and modify it."
16129 cat >>$CONFIG_STATUS <<\_ACEOF
16130 # If no file are specified by the user, then we need to provide default
16131 # value. By we need to know if files were specified by the user.
16137 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16138 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16140 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16144 *) # This is not an option, so the user has probably given explicit
16146 ac_need_defaults=false;;
16150 # Handling of the options.
16152 cat >>$CONFIG_STATUS <<_ACEOF
16153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16154 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16155 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16157 cat >>$CONFIG_STATUS <<\_ACEOF
16158 --version | --vers* | -V )
16159 echo "$ac_cs_version"; exit 0 ;;
16161 # Conflict between --help and --header
16162 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16163 Try \`$0 --help' for more information." >&5
16164 echo "$as_me: error: ambiguous option: $1
16165 Try \`$0 --help' for more information." >&2;}
16166 { (exit 1); exit 1; }; };;
16167 --help | --hel | -h )
16168 echo "$ac_cs_usage"; exit 0 ;;
16169 --debug | --d* | -d )
16171 --file | --fil | --fi | --f )
16173 CONFIG_FILES="$CONFIG_FILES $1"
16174 ac_need_defaults=false;;
16175 --header | --heade | --head | --hea )
16177 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16178 ac_need_defaults=false;;
16180 # This is an error.
16181 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16182 Try \`$0 --help' for more information." >&5
16183 echo "$as_me: error: unrecognized option: $1
16184 Try \`$0 --help' for more information." >&2;}
16185 { (exit 1); exit 1; }; } ;;
16187 *) ac_config_targets="$ac_config_targets $1" ;;
16199 cat >>$CONFIG_STATUS <<\_ACEOF
16200 for ac_config_target in $ac_config_targets
16202 case "$ac_config_target" in
16203 # Handling of arguments.
16204 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16205 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16206 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16207 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16208 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16209 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16210 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16211 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16212 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16213 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16214 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16215 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16216 { (exit 1); exit 1; }; };;
16220 # If the user did not use the arguments to specify the items to instantiate,
16221 # then the envvar interface is used. Set only those that are not.
16222 # We use the long form for the default assignment because of an extremely
16223 # bizarre bug on SunOS 4.1.3.
16224 if $ac_need_defaults; then
16225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16227 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16230 # Create a temporary directory, and hook for its removal unless debugging.
16233 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16234 trap '{ (exit 1); exit 1; }' 1 2 13 15
16237 # Create a (secure) tmp directory for tmp files.
16240 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16241 test -n "$tmp" && test -d "$tmp"
16244 tmp=$TMPDIR/cs$$-$RANDOM
16245 (umask 077 && mkdir $tmp)
16248 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16249 { (exit 1); exit 1; }
16254 cat >>$CONFIG_STATUS <<_ACEOF
16257 # CONFIG_FILES section.
16260 # No need to generate the scripts if there are no CONFIG_FILES.
16261 # This happens for instance when ./config.status config.h
16262 if test -n "\$CONFIG_FILES"; then
16263 # Protect against being on the right side of a sed subst in config.status.
16264 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16265 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16266 s,@SHELL@,$SHELL,;t t
16267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16273 s,@exec_prefix@,$exec_prefix,;t t
16274 s,@prefix@,$prefix,;t t
16275 s,@program_transform_name@,$program_transform_name,;t t
16276 s,@bindir@,$bindir,;t t
16277 s,@sbindir@,$sbindir,;t t
16278 s,@libexecdir@,$libexecdir,;t t
16279 s,@datadir@,$datadir,;t t
16280 s,@sysconfdir@,$sysconfdir,;t t
16281 s,@sharedstatedir@,$sharedstatedir,;t t
16282 s,@localstatedir@,$localstatedir,;t t
16283 s,@libdir@,$libdir,;t t
16284 s,@includedir@,$includedir,;t t
16285 s,@oldincludedir@,$oldincludedir,;t t
16286 s,@infodir@,$infodir,;t t
16287 s,@mandir@,$mandir,;t t
16288 s,@build_alias@,$build_alias,;t t
16289 s,@host_alias@,$host_alias,;t t
16290 s,@target_alias@,$target_alias,;t t
16291 s,@DEFS@,$DEFS,;t t
16292 s,@ECHO_C@,$ECHO_C,;t t
16293 s,@ECHO_N@,$ECHO_N,;t t
16294 s,@ECHO_T@,$ECHO_T,;t t
16295 s,@LIBS@,$LIBS,;t t
16296 s,@docdir@,$docdir,;t t
16297 s,@configure_args@,$configure_args,;t t
16298 s,@build@,$build,;t t
16299 s,@build_cpu@,$build_cpu,;t t
16300 s,@build_vendor@,$build_vendor,;t t
16301 s,@build_os@,$build_os,;t t
16302 s,@host@,$host,;t t
16303 s,@host_cpu@,$host_cpu,;t t
16304 s,@host_vendor@,$host_vendor,;t t
16305 s,@host_os@,$host_os,;t t
16306 s,@PORTNAME@,$PORTNAME,;t t
16308 s,@enable_nls@,$enable_nls,;t t
16309 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16310 s,@default_port@,$default_port,;t t
16311 s,@enable_shared@,$enable_shared,;t t
16312 s,@enable_rpath@,$enable_rpath,;t t
16313 s,@enable_debug@,$enable_debug,;t t
16315 s,@CFLAGS@,$CFLAGS,;t t
16316 s,@LDFLAGS@,$LDFLAGS,;t t
16317 s,@CPPFLAGS@,$CPPFLAGS,;t t
16318 s,@ac_ct_CC@,$ac_ct_CC,;t t
16319 s,@EXEEXT@,$EXEEXT,;t t
16320 s,@OBJEXT@,$OBJEXT,;t t
16323 s,@autodepend@,$autodepend,;t t
16324 s,@INCLUDES@,$INCLUDES,;t t
16325 s,@with_tcl@,$with_tcl,;t t
16326 s,@with_tk@,$with_tk,;t t
16327 s,@with_perl@,$with_perl,;t t
16328 s,@with_python@,$with_python,;t t
16330 s,@with_java@,$with_java,;t t
16331 s,@with_krb4@,$with_krb4,;t t
16332 s,@with_krb5@,$with_krb5,;t t
16333 s,@krb_srvtab@,$krb_srvtab,;t t
16334 s,@with_pam@,$with_pam,;t t
16335 s,@with_openssl@,$with_openssl,;t t
16336 s,@ELF_SYS@,$ELF_SYS,;t t
16338 s,@FLEX@,$FLEX,;t t
16339 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16340 s,@LN_S@,$LN_S,;t t
16342 s,@with_gnu_ld@,$with_gnu_ld,;t t
16343 s,@ld_R_works@,$ld_R_works,;t t
16344 s,@RANLIB@,$RANLIB,;t t
16345 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16346 s,@LORDER@,$LORDER,;t t
16348 s,@STRIP@,$STRIP,;t t
16349 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16350 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16351 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16352 s,@YACC@,$YACC,;t t
16353 s,@YFLAGS@,$YFLAGS,;t t
16354 s,@PERL@,$PERL,;t t
16355 s,@perl_archlibexp@,$perl_archlibexp,;t t
16356 s,@perl_privlibexp@,$perl_privlibexp,;t t
16357 s,@perl_useshrplib@,$perl_useshrplib,;t t
16358 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16359 s,@PYTHON@,$PYTHON,;t t
16360 s,@python_version@,$python_version,;t t
16361 s,@python_prefix@,$python_prefix,;t t
16362 s,@python_execprefix@,$python_execprefix,;t t
16363 s,@python_configdir@,$python_configdir,;t t
16364 s,@python_moduledir@,$python_moduledir,;t t
16365 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16366 s,@python_includespec@,$python_includespec,;t t
16367 s,@python_libspec@,$python_libspec,;t t
16368 s,@LIBOBJS@,$LIBOBJS,;t t
16369 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16370 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16371 s,@MSGFMT@,$MSGFMT,;t t
16372 s,@MSGMERGE@,$MSGMERGE,;t t
16373 s,@XGETTEXT@,$XGETTEXT,;t t
16374 s,@localedir@,$localedir,;t t
16375 s,@TCLSH@,$TCLSH,;t t
16376 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16377 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16378 s,@TCL_LIBS@,$TCL_LIBS,;t t
16379 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16380 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16381 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16382 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16383 s,@TK_LIBS@,$TK_LIBS,;t t
16384 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16385 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16386 s,@NSGMLS@,$NSGMLS,;t t
16387 s,@JADE@,$JADE,;t t
16388 s,@have_docbook@,$have_docbook,;t t
16389 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16390 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16391 s,@SGMLSPL@,$SGMLSPL,;t t
16392 s,@vpath_build@,$vpath_build,;t t
16397 cat >>$CONFIG_STATUS <<\_ACEOF
16398 # Split the substitutions into bite-sized pieces for seds with
16399 # small command number limits, like on Digital OSF/1 and HP-UX.
16400 ac_max_sed_lines=48
16401 ac_sed_frag=1 # Number of current file.
16402 ac_beg=1 # First line for current file.
16403 ac_end=$ac_max_sed_lines # Line after last line for current file.
16406 while $ac_more_lines; do
16407 if test $ac_beg -gt 1; then
16408 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16410 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16412 if test ! -s $tmp/subs.frag; then
16413 ac_more_lines=false
16415 # The purpose of the label and of the branching condition is to
16416 # speed up the sed processing (if there are no `@' at all, there
16417 # is no need to browse any of the substitutions).
16418 # These are the two extra sed commands mentioned above.
16420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16421 if test -z "$ac_sed_cmds"; then
16422 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16424 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16426 ac_sed_frag=`expr $ac_sed_frag + 1`
16428 ac_end=`expr $ac_end + $ac_max_sed_lines`
16431 if test -z "$ac_sed_cmds"; then
16434 fi # test -n "$CONFIG_FILES"
16437 cat >>$CONFIG_STATUS <<\_ACEOF
16438 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16439 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16441 - | *:- | *:-:* ) # input from stdin
16443 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16445 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16447 * ) ac_file_in=$ac_file.in ;;
16450 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16451 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16453 X"$ac_file" : 'X\(//\)[^/]' \| \
16454 X"$ac_file" : 'X\(//\)$' \| \
16455 X"$ac_file" : 'X\(/\)' \| \
16456 . : '\(.\)' 2>/dev/null ||
16458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16460 /^X\(\/\/\)$/{ s//\1/; q; }
16461 /^X\(\/\).*/{ s//\1/; q; }
16463 { case "$ac_dir" in
16464 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16468 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16469 case $as_mkdir_dir in
16470 # Skip DOS drivespec
16471 ?:) as_incr_dir=$as_mkdir_dir ;;
16473 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16474 test -d "$as_incr_dir" ||
16475 mkdir "$as_incr_dir" ||
16476 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16477 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16478 { (exit 1); exit 1; }; }
16485 if test "$ac_dir" != .; then
16486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16487 # A "../" for each directory in $ac_dir_suffix.
16488 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16490 ac_dir_suffix= ac_top_builddir=
16494 .) # No --srcdir option. We are building in place.
16496 if test -z "$ac_top_builddir"; then
16499 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16501 [\\/]* | ?:[\\/]* ) # Absolute path.
16502 ac_srcdir=$srcdir$ac_dir_suffix;
16503 ac_top_srcdir=$srcdir ;;
16504 *) # Relative path.
16505 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16506 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16508 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16510 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16511 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16512 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16513 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16517 if test x"$ac_file" != x-; then
16518 { echo "$as_me:$LINENO: creating $ac_file" >&5
16519 echo "$as_me: creating $ac_file" >&6;}
16522 # Let's still pretend it is `configure' which instantiates (i.e., don't
16523 # use $as_me), people would be surprised to read:
16524 # /* config.h. Generated by config.status. */
16525 if test x"$ac_file" = x-; then
16528 configure_input="$ac_file. "
16530 configure_input=$configure_input"Generated from `echo $ac_file_in |
16531 sed 's,.*/,,'` by configure."
16533 # First look for the input files in the build tree, otherwise in the
16535 ac_file_inputs=`IFS=:
16536 for f in $ac_file_in; do
16538 -) echo $tmp/stdin ;;
16540 # Absolute (can't be DOS-style, as IFS=:)
16541 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16542 echo "$as_me: error: cannot find input file: $f" >&2;}
16543 { (exit 1); exit 1; }; }
16546 if test -f "$f"; then
16549 elif test -f "$srcdir/$f"; then
16554 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16555 echo "$as_me: error: cannot find input file: $f" >&2;}
16556 { (exit 1); exit 1; }; }
16559 done` || { (exit 1); exit 1; }
16561 cat >>$CONFIG_STATUS <<_ACEOF
16565 cat >>$CONFIG_STATUS <<\_ACEOF
16567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16568 s,@configure_input@,$configure_input,;t t
16569 s,@srcdir@,$ac_srcdir,;t t
16570 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16571 s,@top_srcdir@,$ac_top_srcdir,;t t
16572 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16573 s,@builddir@,$ac_builddir,;t t
16574 s,@abs_builddir@,$ac_abs_builddir,;t t
16575 s,@top_builddir@,$ac_top_builddir,;t t
16576 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16577 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16579 if test x"$ac_file" != x-; then
16580 mv $tmp/out $ac_file
16588 cat >>$CONFIG_STATUS <<\_ACEOF
16591 # CONFIG_HEADER section.
16594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16597 # ac_d sets the value in "#define NAME VALUE" lines.
16598 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16599 ac_dB='[ ].*$,\1#\2'
16602 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16603 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16604 ac_uB='$,\1#\2define\3'
16608 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16611 - | *:- | *:-:* ) # input from stdin
16613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16617 * ) ac_file_in=$ac_file.in ;;
16620 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16621 echo "$as_me: creating $ac_file" >&6;}
16623 # First look for the input files in the build tree, otherwise in the
16625 ac_file_inputs=`IFS=:
16626 for f in $ac_file_in; do
16628 -) echo $tmp/stdin ;;
16630 # Absolute (can't be DOS-style, as IFS=:)
16631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16632 echo "$as_me: error: cannot find input file: $f" >&2;}
16633 { (exit 1); exit 1; }; }
16636 if test -f "$f"; then
16639 elif test -f "$srcdir/$f"; then
16644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16645 echo "$as_me: error: cannot find input file: $f" >&2;}
16646 { (exit 1); exit 1; }; }
16649 done` || { (exit 1); exit 1; }
16650 # Remove the trailing spaces.
16651 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16655 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16656 # `conftest.undefs', that substitutes the proper values into
16657 # config.h.in to produce config.h. The first handles `#define'
16658 # templates, and the second `#undef' templates.
16659 # And first: Protect against being on the right side of a sed subst in
16660 # config.status. Protect against being in an unquoted here document
16661 # in config.status.
16662 rm -f conftest.defines conftest.undefs
16663 # Using a here document instead of a string reduces the quoting nightmare.
16664 # Putting comments in sed scripts is not portable.
16666 # `end' is used to avoid that the second main sed command (meant for
16667 # 0-ary CPP macros) applies to n-ary macro definitions.
16668 # See the Autoconf documentation for `clear'.
16669 cat >confdef2sed.sed <<\_ACEOF
16674 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16676 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16679 # If some macros were called several times there might be several times
16680 # the same #defines, which is useless. Nevertheless, we may not want to
16681 # sort them, since we want the *last* AC-DEFINE to be honored.
16682 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16683 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16684 rm -f confdef2sed.sed
16686 # This sed command replaces #undef with comments. This is necessary, for
16687 # example, in the case of _POSIX_SOURCE, which is predefined and required
16688 # on some systems where configure will not decide to define it.
16689 cat >>conftest.undefs <<\_ACEOF
16690 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16693 # Break up conftest.defines because some shells have a limit on the size
16694 # of here documents, and old seds have small limits too (100 cmds).
16695 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16696 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16697 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16698 echo ' :' >>$CONFIG_STATUS
16699 rm -f conftest.tail
16700 while grep . conftest.defines >/dev/null
16702 # Write a limited-size here document to $tmp/defines.sed.
16703 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16704 # Speed up: don't consider the non `#define' lines.
16705 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16706 # Work around the forget-to-reset-the-flag bug.
16707 echo 't clr' >>$CONFIG_STATUS
16708 echo ': clr' >>$CONFIG_STATUS
16709 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16711 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16713 mv $tmp/out $tmp/in
16715 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16716 rm -f conftest.defines
16717 mv conftest.tail conftest.defines
16719 rm -f conftest.defines
16720 echo ' fi # egrep' >>$CONFIG_STATUS
16721 echo >>$CONFIG_STATUS
16723 # Break up conftest.undefs because some shells have a limit on the size
16724 # of here documents, and old seds have small limits too (100 cmds).
16725 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16726 rm -f conftest.tail
16727 while grep . conftest.undefs >/dev/null
16729 # Write a limited-size here document to $tmp/undefs.sed.
16730 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16731 # Speed up: don't consider the non `#undef'
16732 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16733 # Work around the forget-to-reset-the-flag bug.
16734 echo 't clr' >>$CONFIG_STATUS
16735 echo ': clr' >>$CONFIG_STATUS
16736 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16738 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16740 mv $tmp/out $tmp/in
16742 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16743 rm -f conftest.undefs
16744 mv conftest.tail conftest.undefs
16746 rm -f conftest.undefs
16748 cat >>$CONFIG_STATUS <<\_ACEOF
16749 # Let's still pretend it is `configure' which instantiates (i.e., don't
16750 # use $as_me), people would be surprised to read:
16751 # /* config.h. Generated by config.status. */
16752 if test x"$ac_file" = x-; then
16753 echo "/* Generated by configure. */" >$tmp/config.h
16755 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16757 cat $tmp/in >>$tmp/config.h
16759 if test x"$ac_file" != x-; then
16760 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16761 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16762 echo "$as_me: $ac_file is unchanged" >&6;}
16764 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16766 X"$ac_file" : 'X\(//\)[^/]' \| \
16767 X"$ac_file" : 'X\(//\)$' \| \
16768 X"$ac_file" : 'X\(/\)' \| \
16769 . : '\(.\)' 2>/dev/null ||
16771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16773 /^X\(\/\/\)$/{ s//\1/; q; }
16774 /^X\(\/\).*/{ s//\1/; q; }
16776 { case "$ac_dir" in
16777 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16781 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16782 case $as_mkdir_dir in
16783 # Skip DOS drivespec
16784 ?:) as_incr_dir=$as_mkdir_dir ;;
16786 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16787 test -d "$as_incr_dir" ||
16788 mkdir "$as_incr_dir" ||
16789 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16790 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16791 { (exit 1); exit 1; }; }
16797 mv $tmp/config.h $ac_file
16801 rm -f $tmp/config.h
16803 # Run the commands associated with the file.
16805 src/include/pg_config.h )
16806 # Update timestamp for pg_config.h (see Makefile.global)
16807 echo >src/include/stamp-h
16812 cat >>$CONFIG_STATUS <<\_ACEOF
16815 # CONFIG_LINKS section.
16818 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16819 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16820 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16822 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16823 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16825 if test ! -r $srcdir/$ac_source; then
16826 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16827 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16828 { (exit 1); exit 1; }; }
16832 # Make relative symlinks.
16833 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16834 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16835 X"$ac_dest" : 'X\(//\)[^/]' \| \
16836 X"$ac_dest" : 'X\(//\)$' \| \
16837 X"$ac_dest" : 'X\(/\)' \| \
16838 . : '\(.\)' 2>/dev/null ||
16840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16842 /^X\(\/\/\)$/{ s//\1/; q; }
16843 /^X\(\/\).*/{ s//\1/; q; }
16845 { case "$ac_dest_dir" in
16846 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16849 as_dummy="$ac_dest_dir"
16850 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16851 case $as_mkdir_dir in
16852 # Skip DOS drivespec
16853 ?:) as_incr_dir=$as_mkdir_dir ;;
16855 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16856 test -d "$as_incr_dir" ||
16857 mkdir "$as_incr_dir" ||
16858 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16859 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16860 { (exit 1); exit 1; }; }
16867 if test "$ac_dest_dir" != .; then
16868 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16869 # A "../" for each directory in $ac_dir_suffix.
16870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16872 ac_dir_suffix= ac_top_builddir=
16876 .) # No --srcdir option. We are building in place.
16878 if test -z "$ac_top_builddir"; then
16881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16883 [\\/]* | ?:[\\/]* ) # Absolute path.
16884 ac_srcdir=$srcdir$ac_dir_suffix;
16885 ac_top_srcdir=$srcdir ;;
16886 *) # Relative path.
16887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16890 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
16892 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
16893 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
16894 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
16895 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
16899 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16900 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16903 # Make a symlink if possible; otherwise try a hard link.
16904 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16905 ln $srcdir/$ac_source $ac_dest ||
16906 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
16907 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
16908 { (exit 1); exit 1; }; }
16912 cat >>$CONFIG_STATUS <<\_ACEOF
16914 { (exit 0); exit 0; }
16916 chmod +x $CONFIG_STATUS
16917 ac_clean_files=$ac_clean_files_save
16920 # configure is writing to config.log, and then calls config.status.
16921 # config.status does its own redirection, appending to config.log.
16922 # Unfortunately, on DOS this fails, as config.log is still kept open
16923 # by configure, so config.status won't be able to write to it; its
16924 # output is simply discarded. So we exec the FD to /dev/null,
16925 # effectively closing config.log, so it can be properly (re)opened and
16926 # appended to by config.status. When coming back to configure, we
16927 # need to make the FD available again.
16928 if test "$no_create" != yes; then
16931 $SHELL $CONFIG_STATUS || ac_cs_success=false
16933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16934 # would make configure fail if this is the last instruction.
16935 $ac_cs_success || { (exit 1); exit 1; }