2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-recode enable character set recode support
853 --enable-multibyte enable multibyte character support
854 --enable-nls[=LANGUAGES] enable Native Language Support
855 --disable-shared do not build shared libraries
856 --disable-rpath do not embed shared library search path in executables
857 --enable-debug build with debugging symbols (-g)
858 --enable-depend turn on automatic dependency tracking
859 --enable-cassert enable assertion checks (for debugging)
860 --enable-odbc build the ODBC driver package
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-includes=DIRS look for additional header files in DIRS
867 --with-libraries=DIRS look for additional libraries in DIRS
868 --with-libs=DIRS alternative spelling of --with-libraries
869 --with-pgport=PORTNUM change default port number 5432
870 --with-maxbackends=N set default maximum number of connections 32
871 --with-tcl build Tcl and Tk interfaces
872 --without-tk do not build Tk interfaces if Tcl is enabled
873 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
874 --with-tkconfig=DIR tkConfig.sh is in DIR
875 --with-perl build Perl interface and PL/Perl
876 --with-python build Python interface module
877 --with-java build JDBC interface and Java tools
878 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
879 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
880 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
881 --with-pam build with PAM support
882 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
883 --without-readline do not use Readline
884 --without-zlib do not use Zlib
885 --with-unixodbc build ODBC driver for unixODBC
886 --with-iodbc build ODBC driver for iODBC
887 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
888 --with-CXX build C++ modules (libpq++)
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
899 CXX C++ compiler command
900 CXXFLAGS C++ compiler flags
901 CXXCPP C++ preprocessor
903 location of DocBook stylesheets
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
908 Report bugs to <pgsql-bugs@postgresql.org>.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
971 PostgreSQL configure 7.3devel
972 generated by GNU Autoconf 2.53
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
979 Copyright 2002 PostgreSQL Global Development Group
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by PostgreSQL $as_me 7.3devel, which was
989 generated by GNU Autoconf 2.53. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Also quote any args containing shell meta-characters.
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n ) continue ;;
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 case " $ac_configure_args " in
1056 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1057 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060 # Get rid of the leading space.
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log. We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069 # Save into config.log some information that might help in debugging.
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1078 # The following way of writing the cache mishandles newlines in values,
1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094 if test -s confdefs.h; then
1101 sed "/^$/d" confdefs.h
1104 test "$ac_signal" != 0 &&
1105 echo "$as_me: caught signal $ac_signal"
1106 echo "$as_me: exit $exit_status"
1108 rm -f core core.* *.core &&
1109 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1112 for ac_signal in 1 2 13 15; do
1113 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1122 # Predefined preprocessor variables.
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152 if test "x$prefix" != xNONE; then
1153 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1158 for ac_site_file in $CONFIG_SITE; do
1159 if test -r "$ac_site_file"; then
1160 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162 sed 's/^/| /' "$ac_site_file" >&5
1167 if test -r "$cache_file"; then
1168 # Some versions of bash will fail to source /dev/null (special
1169 # files actually), so we avoid doing that.
1170 if test -f "$cache_file"; then
1171 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1174 [\\/]* | ?:[\\/]* ) . $cache_file;;
1175 *) . ./$cache_file;;
1179 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1184 # Check that the precious variables saved in the cache have kept the same
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190 eval ac_new_set=\$ac_env_${ac_var}_set
1191 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192 eval ac_new_val="\$ac_env_${ac_var}_value"
1193 case $ac_old_set,$ac_new_set in
1195 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197 ac_cache_corrupted=: ;;
1199 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201 ac_cache_corrupted=: ;;
1204 if test "x$ac_old_val" != "x$ac_new_val"; then
1205 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208 echo "$as_me: former value: $ac_old_val" >&2;}
1209 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210 echo "$as_me: current value: $ac_new_val" >&2;}
1211 ac_cache_corrupted=:
1214 # Pass precious variables to config.status.
1215 if test "$ac_new_set" = set; then
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 *) ac_arg=$ac_var=$ac_new_val ;;
1221 case " $ac_configure_args " in
1222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1223 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1227 if $ac_cache_corrupted; then
1228 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232 { (exit 1); exit 1; }; }
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274 for ac_dir in config $srcdir/config; do
1275 if test -f $ac_dir/install-sh; then
1277 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 elif test -f $ac_dir/install.sh; then
1281 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 elif test -f $ac_dir/shtool; then
1285 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 if test -z "$ac_aux_dir"; then
1290 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292 { (exit 1); exit 1; }; }
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1299 configure_args=$ac_configure_args
1303 cat >>confdefs.h <<_ACEOF
1304 #define PG_VERSION "$PACKAGE_VERSION"
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321 ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325 { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329 { (exit 1); exit 1; }; }
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347 ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364 echo "$as_me:$LINENO: checking which template to use" >&5
1365 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1370 # Check whether --with-template or --without-template was given.
1371 if test "${with_template+set}" = set; then
1372 withval="$with_template"
1376 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378 { (exit 1); exit 1; }; }
1381 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382 echo "$as_me: error: argument required for --with-template option" >&2;}
1383 { (exit 1); exit 1; }; }
1388 list) echo; ls "$srcdir/src/template"; exit;;
1389 *) if test -f "$srcdir/src/template/$with_template" ; then
1392 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394 { (exit 1); exit 1; }; }
1403 # --with-template not given
1406 aix*) template=aix ;;
1407 beos*) template=beos ;;
1408 bsdi*) template=bsdi ;;
1409 cygwin*) template=win ;;
1410 darwin*) template=darwin ;;
1411 dgux*) template=dgux ;;
1412 freebsd*) template=freebsd ;;
1413 hpux*) template=hpux ;;
1414 irix*) template=irix5 ;;
1415 linux*) template=linux ;;
1416 netbsd*) template=netbsd ;;
1417 nextstep*) template=nextstep ;;
1418 openbsd*) template=openbsd ;;
1419 osf*) template=osf ;;
1420 qnx*) template=qnx4 ;;
1421 sco*) template=sco ;;
1422 solaris*) template=solaris ;;
1423 sunos*) template=sunos4 ;;
1425 case $host_vendor in
1426 univel) template=univel ;;
1428 sysv4*) template=svr4 ;;
1429 sysv5*) template=unixware ;;
1430 ultrix*) template=ultrix4 ;;
1433 if test x"$template" = x"" ; then
1434 { { echo "$as_me:$LINENO: error:
1435 *******************************************************************
1436 PostgreSQL has apparently not been ported to your platform yet.
1437 To try a manual configuration, look into the src/template directory
1438 for a similar platform and use the '--with-template=' option.
1440 Please also contact <pgsql-ports@postgresql.org> to see about
1441 rectifying this. Include the above 'checking host system type...'
1443 *******************************************************************
1445 echo "$as_me: error:
1446 *******************************************************************
1447 PostgreSQL has apparently not been ported to your platform yet.
1448 To try a manual configuration, look into the src/template directory
1449 for a similar platform and use the '--with-template=' option.
1451 Please also contact <pgsql-ports@postgresql.org> to see about
1452 rectifying this. Include the above 'checking host system type...'
1454 *******************************************************************
1456 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: $template" >&5
1464 echo "${ECHO_T}$template" >&6
1469 # Pick right test-and-set (TAS) code. Most platforms have inline
1470 # assembler code in src/include/storage/s_lock.h, so we just use
1471 # a dummy file here.
1473 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1474 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1475 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1476 *) need_tas=no; tas_file=dummy.s ;;
1478 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1481 if test "$need_tas" = yes ; then
1489 ## Command line options
1494 # Add non-standard directories to the include path
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501 withval="$with_includes"
1505 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507 { (exit 1); exit 1; }; }
1510 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512 { (exit 1); exit 1; }; }
1524 # Add non-standard directories to the library search path
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531 withval="$with_libraries"
1535 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537 { (exit 1); exit 1; }; }
1540 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542 { (exit 1); exit 1; }; }
1545 LIBRARY_DIRS=$withval
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557 withval="$with_libs"
1561 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563 { (exit 1); exit 1; }; }
1566 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568 { (exit 1); exit 1; }; }
1571 LIBRARY_DIRS=$withval
1580 # Character set recode (--enable-recode)
1582 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1583 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1586 # Check whether --enable-recode or --disable-recode was given.
1587 if test "${enable_recode+set}" = set; then
1588 enableval="$enable_recode"
1593 cat >>confdefs.h <<\_ACEOF
1594 #define CYR_RECODE 1
1602 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1603 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1604 { (exit 1); exit 1; }; }
1613 echo "$as_me:$LINENO: result: $enable_recode" >&5
1614 echo "${ECHO_T}$enable_recode" >&6
1621 echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1622 echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1626 # Check whether --enable-multibyte or --disable-multibyte was given.
1627 if test "${enable_multibyte+set}" = set; then
1628 enableval="$enable_multibyte"
1638 enable_multibyte=yes
1641 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|JOHAB|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|WIN1256|TCVN|WIN874|KOI8|WIN|ALT|ISO_8859_5|ISO_8859_6|ISO_8859_7|ISO_8859_8)
1642 MULTIBYTE=$enableval;;
1644 { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1645 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1646 UNICODE, MULE_INTERNAL,
1647 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1648 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1649 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1650 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1651 Or do not specify an argument to the option to use the default." >&5
1652 echo "$as_me: error: argument to --enable-multibyte must be one of:
1653 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1654 UNICODE, MULE_INTERNAL,
1655 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1656 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1657 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1658 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1659 Or do not specify an argument to the option to use the default." >&2;}
1660 { (exit 1); exit 1; }; };;
1671 if test "$enable_multibyte" = yes; then
1674 cat >>confdefs.h <<\_ACEOF
1678 echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1679 echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1692 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1693 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1696 # Check whether --enable-nls or --disable-nls was given.
1697 if test "${enable_nls+set}" = set; then
1698 enableval="$enable_nls"
1709 WANTED_LANGUAGES=$enableval
1718 if test "$enable_nls" = yes; then
1720 cat >>confdefs.h <<\_ACEOF
1721 #define ENABLE_NLS 1
1726 echo "$as_me:$LINENO: result: $enable_nls" >&5
1727 echo "${ECHO_T}$enable_nls" >&6
1732 # Default port number (--with-pgport), default 5432
1734 echo "$as_me:$LINENO: checking for default port number" >&5
1735 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1739 # Check whether --with-pgport or --without-pgport was given.
1740 if test "${with_pgport+set}" = set; then
1741 withval="$with_pgport"
1745 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1746 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1747 { (exit 1); exit 1; }; }
1750 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1751 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1752 { (exit 1); exit 1; }; }
1755 default_port=$withval
1763 echo "$as_me:$LINENO: result: $default_port" >&5
1764 echo "${ECHO_T}$default_port" >&6
1765 # Need both of these because some places want an integer and some a string
1767 cat >>confdefs.h <<_ACEOF
1768 #define DEF_PGPORT ${default_port}
1772 cat >>confdefs.h <<_ACEOF
1773 #define DEF_PGPORT_STR "${default_port}"
1779 # Maximum number of allowed connections (--with-maxbackends), default 32
1781 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1782 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1786 # Check whether --with-maxbackends or --without-maxbackends was given.
1787 if test "${with_maxbackends+set}" = set; then
1788 withval="$with_maxbackends"
1792 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1793 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1794 { (exit 1); exit 1; }; }
1797 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1798 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1799 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1811 echo "${ECHO_T}$with_maxbackends" >&6
1813 cat >>confdefs.h <<_ACEOF
1814 #define DEF_MAXBACKENDS $with_maxbackends
1820 # Option to disable shared libraries
1824 # Check whether --enable-shared or --disable-shared was given.
1825 if test "${enable_shared+set}" = set; then
1826 enableval="$enable_shared"
1836 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1837 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1838 { (exit 1); exit 1; }; }
1850 # '-rpath'-like feature can be disabled
1854 # Check whether --enable-rpath or --disable-rpath was given.
1855 if test "${enable_rpath+set}" = set; then
1856 enableval="$enable_rpath"
1866 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1867 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1868 { (exit 1); exit 1; }; }
1881 # --enable-debug adds -g to compiler flags
1885 # Check whether --enable-debug or --disable-debug was given.
1886 if test "${enable_debug+set}" = set; then
1887 enableval="$enable_debug"
1897 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1898 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1899 { (exit 1); exit 1; }; }
1914 # For historical reasons you can also use --with-CC to specify the C compiler
1915 # to use, although the standard way to do this is to set the CC environment
1920 # Check whether --with-CC or --without-CC was given.
1921 if test "${with_CC+set}" = set; then
1926 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1927 echo "$as_me: error: argument required for --with-CC option" >&2;}
1928 { (exit 1); exit 1; }; }
1931 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1932 echo "$as_me: error: argument required for --with-CC option" >&2;}
1933 { (exit 1); exit 1; }; }
1944 aix) pgac_cc_list="gcc xlc";;
1945 irix) pgac_cc_list="cc";; # no gcc
1946 *) pgac_cc_list="gcc cc";;
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955 for ac_prog in $pgac_cc_list
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1992 test -n "$CC" && break
1995 if test -z "$CC"; then
1997 for ac_prog in $pgac_cc_list
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_CC"; then
2007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CC="$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2034 test -n "$ac_ct_CC" && break
2041 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2043 { (exit 1); exit 1; }; }
2045 # Provide some information about the compiler.
2046 echo "$as_me:$LINENO:" \
2047 "checking for C compiler version" >&5
2048 ac_compiler=`set X $ac_compile; echo $2`
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050 (eval $ac_compiler --version </dev/null >&5) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055 (eval $ac_compiler -v </dev/null >&5) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060 (eval $ac_compiler -V </dev/null >&5) 2>&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 #include "confdefs.h"
2069 #ifdef F77_DUMMY_MAIN
2073 int F77_DUMMY_MAIN() { return 1; }
2083 ac_clean_files_save=$ac_clean_files
2084 ac_clean_files="$ac_clean_files a.out a.exe"
2085 # Try to create an executable without -o first, disregard a.out.
2086 # It will help us diagnose broken compilers, and finding out an intuition
2088 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2089 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2090 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2091 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2092 (eval $ac_link_default) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; then
2096 # Find the output, starting from the most likely. This scheme is
2097 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # Be careful to initialize this variable, since it used to be cached.
2101 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2103 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2104 ls a.out conftest 2>/dev/null;
2105 ls a.* conftest.* 2>/dev/null`; do
2107 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2108 a.out ) # We found the default executable, but exeext='' is most
2111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2112 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2119 echo "$as_me: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2122 echo "$as_me: error: C compiler cannot create executables" >&2;}
2123 { (exit 77); exit 77; }; }
2126 ac_exeext=$ac_cv_exeext
2127 echo "$as_me:$LINENO: result: $ac_file" >&5
2128 echo "${ECHO_T}$ac_file" >&6
2130 # Check the compiler produces executables we can run. If not, either
2131 # the compiler is broken, or we cross compile.
2132 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2133 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2135 # If not cross compiling, check that we can run a simple program.
2136 if test "$cross_compiling" != yes; then
2137 if { ac_try='./$ac_file'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2145 if test "$cross_compiling" = maybe; then
2148 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'." >&5
2150 echo "$as_me: error: cannot run C compiled programs.
2151 If you meant to cross compile, use \`--host'." >&2;}
2152 { (exit 1); exit 1; }; }
2156 echo "$as_me:$LINENO: result: yes" >&5
2157 echo "${ECHO_T}yes" >&6
2159 rm -f a.out a.exe conftest$ac_cv_exeext
2160 ac_clean_files=$ac_clean_files_save
2161 # Check the compiler produces executables we can run. If not, either
2162 # the compiler is broken, or we cross compile.
2163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2166 echo "${ECHO_T}$cross_compiling" >&6
2168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2171 (eval $ac_link) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2177 # work properly (i.e., refer to `conftest.exe'), while it won't with
2179 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2181 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2190 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2191 { (exit 1); exit 1; }; }
2194 rm -f conftest$ac_cv_exeext
2195 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2196 echo "${ECHO_T}$ac_cv_exeext" >&6
2198 rm -f conftest.$ac_ext
2199 EXEEXT=$ac_cv_exeext
2201 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2202 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2203 if test "${ac_cv_objext+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 cat >conftest.$ac_ext <<_ACEOF
2207 #line $LINENO "configure"
2208 #include "confdefs.h"
2210 #ifdef F77_DUMMY_MAIN
2214 int F77_DUMMY_MAIN() { return 1; }
2224 rm -f conftest.o conftest.obj
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; then
2230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2238 echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2241 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2242 { (exit 1); exit 1; }; }
2245 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2247 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2248 echo "${ECHO_T}$ac_cv_objext" >&6
2249 OBJEXT=$ac_cv_objext
2251 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2252 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2253 if test "${ac_cv_c_compiler_gnu+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; }
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2295 rm -f conftest.$ac_objext conftest.$ac_ext
2296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2299 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2300 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2301 GCC=`test $ac_compiler_gnu = yes && echo yes`
2302 ac_test_CFLAGS=${CFLAGS+set}
2303 ac_save_CFLAGS=$CFLAGS
2305 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2306 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_g+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 cat >conftest.$ac_ext <<_ACEOF
2311 #line $LINENO "configure"
2312 #include "confdefs.h"
2314 #ifdef F77_DUMMY_MAIN
2318 int F77_DUMMY_MAIN() { return 1; }
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2350 if test "$ac_test_CFLAGS" = set; then
2351 CFLAGS=$ac_save_CFLAGS
2352 elif test $ac_cv_prog_cc_g = yes; then
2353 if test "$GCC" = yes; then
2359 if test "$GCC" = yes; then
2365 # Some people use a C++ compiler to compile C. Since we use `exit',
2366 # in C++ we need to declare it. In case someone uses the same compiler
2367 # for both compiling C and C++ we need to have the C++ compiler decide
2368 # the declaration of exit, since it's the most demanding environment.
2369 cat >conftest.$ac_ext <<_ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 for ac_declaration in \
2388 '#include <stdlib.h>' \
2389 'extern "C" void std::exit (int) throw (); using std::exit;' \
2390 'extern "C" void std::exit (int); using std::exit;' \
2391 'extern "C" void exit (int) throw ();' \
2392 'extern "C" void exit (int);' \
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2397 #include "confdefs.h"
2400 #ifdef F77_DUMMY_MAIN
2404 int F77_DUMMY_MAIN() { return 1; }
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 echo "$as_me: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2432 rm -f conftest.$ac_objext conftest.$ac_ext
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line $LINENO "configure"
2435 #include "confdefs.h"
2437 #ifdef F77_DUMMY_MAIN
2441 int F77_DUMMY_MAIN() { return 1; }
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2465 echo "$as_me: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2468 rm -f conftest.$ac_objext conftest.$ac_ext
2471 if test -n "$ac_declaration"; then
2472 echo '#ifdef __cplusplus' >>confdefs.h
2473 echo $ac_declaration >>confdefs.h
2474 echo '#endif' >>confdefs.h
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489 . "$srcdir/src/template/$template" || exit
2491 if test "$ac_env_CFLAGS_set" = set; then
2492 CFLAGS=$ac_env_CFLAGS_value
2494 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2497 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2498 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2499 # Check if the compiler still works with the template settings
2500 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2501 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line $LINENO "configure"
2505 #include "confdefs.h"
2507 #ifdef F77_DUMMY_MAIN
2511 int F77_DUMMY_MAIN() { return 1; }
2521 rm -f conftest.$ac_objext conftest$ac_exeext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2523 (eval $ac_link) 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -s conftest$ac_exeext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2533 echo "$as_me:$LINENO: result: yes" >&5
2534 echo "${ECHO_T}yes" >&6
2536 echo "$as_me: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6
2540 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2541 echo "$as_me: error: cannot proceed" >&2;}
2542 { (exit 1); exit 1; }; }
2544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2552 # On Suns, sometimes $CPP names a directory.
2553 if test -n "$CPP" && test -d "$CPP"; then
2556 if test -z "$CPP"; then
2557 if test "${ac_cv_prog_CPP+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 # Double quotes because CPP needs to be expanded
2561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2564 for ac_c_preproc_warn_flag in '' yes
2566 # Use a header file that comes with gcc, so configuring glibc
2567 # with a fresh cross-compiler works.
2568 # On the NeXT, cc -E runs the code through the compiler's parser,
2569 # not just through cpp. "Syntax error" is here to catch this case.
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 #include "confdefs.h"
2576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2579 egrep -v '^ *\+' conftest.er1 >conftest.err
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } >/dev/null; then
2584 if test -s conftest.err; then
2585 ac_cpp_err=$ac_c_preproc_warn_flag
2592 if test -z "$ac_cpp_err"; then
2595 echo "$as_me: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2597 # Broken: fails on valid input.
2600 rm -f conftest.err conftest.$ac_ext
2602 # OK, works on sane cases. Now check whether non-existent headers
2603 # can be detected and how.
2604 cat >conftest.$ac_ext <<_ACEOF
2605 #line $LINENO "configure"
2606 #include "confdefs.h"
2607 #include <ac_nonexistent.h>
2609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2612 egrep -v '^ *\+' conftest.er1 >conftest.err
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } >/dev/null; then
2617 if test -s conftest.err; then
2618 ac_cpp_err=$ac_c_preproc_warn_flag
2625 if test -z "$ac_cpp_err"; then
2626 # Broken: success on invalid input.
2629 echo "$as_me: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 # Passes both tests.
2635 rm -f conftest.err conftest.$ac_ext
2638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2639 rm -f conftest.err conftest.$ac_ext
2640 if $ac_preproc_ok; then
2652 echo "$as_me:$LINENO: result: $CPP" >&5
2653 echo "${ECHO_T}$CPP" >&6
2655 for ac_c_preproc_warn_flag in '' yes
2657 # Use a header file that comes with gcc, so configuring glibc
2658 # with a fresh cross-compiler works.
2659 # On the NeXT, cc -E runs the code through the compiler's parser,
2660 # not just through cpp. "Syntax error" is here to catch this case.
2661 cat >conftest.$ac_ext <<_ACEOF
2662 #line $LINENO "configure"
2663 #include "confdefs.h"
2667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2670 egrep -v '^ *\+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } >/dev/null; then
2675 if test -s conftest.err; then
2676 ac_cpp_err=$ac_c_preproc_warn_flag
2683 if test -z "$ac_cpp_err"; then
2686 echo "$as_me: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 # Broken: fails on valid input.
2691 rm -f conftest.err conftest.$ac_ext
2693 # OK, works on sane cases. Now check whether non-existent headers
2694 # can be detected and how.
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line $LINENO "configure"
2697 #include "confdefs.h"
2698 #include <ac_nonexistent.h>
2700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2703 egrep -v '^ *\+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } >/dev/null; then
2708 if test -s conftest.err; then
2709 ac_cpp_err=$ac_c_preproc_warn_flag
2716 if test -z "$ac_cpp_err"; then
2717 # Broken: success on invalid input.
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 # Passes both tests.
2726 rm -f conftest.err conftest.$ac_ext
2729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2730 rm -f conftest.err conftest.$ac_ext
2731 if $ac_preproc_ok; then
2734 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2735 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2736 { (exit 1); exit 1; }; }
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 # Create compiler version string
2748 if test x"$GCC" = x"yes" ; then
2749 cc_string="GCC `${CC} --version | sed q`"
2754 cat >>confdefs.h <<_ACEOF
2755 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2761 # Automatic dependency tracking
2765 # Check whether --enable-depend or --disable-depend was given.
2766 if test "${enable_depend+set}" = set; then
2767 enableval="$enable_depend"
2777 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2778 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2779 { (exit 1); exit 1; }; }
2792 # Enable assert checks
2796 # Check whether --enable-cassert or --disable-cassert was given.
2797 if test "${enable_cassert+set}" = set; then
2798 enableval="$enable_cassert"
2803 cat >>confdefs.h <<\_ACEOF
2804 #define USE_ASSERT_CHECKING 1
2812 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2813 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2814 { (exit 1); exit 1; }; }
2826 # Include directories
2830 # SRCH_INC comes from the template file
2831 for dir in $with_includes $SRCH_INC; do
2832 if test -d "$dir"; then
2833 INCLUDES="$INCLUDES -I$dir"
2835 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2836 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2844 # Library directories
2848 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2849 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2850 if test -d "$dir"; then
2851 LIBDIRS="$LIBDIRS -L$dir"
2853 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2854 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2863 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2864 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2868 # Check whether --with-tcl or --without-tcl was given.
2869 if test "${with_tcl+set}" = set; then
2880 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2881 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2882 { (exit 1); exit 1; }; }
2891 echo "$as_me:$LINENO: result: $with_tcl" >&5
2892 echo "${ECHO_T}$with_tcl" >&6
2895 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2896 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2897 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2898 if test "$with_tcl" = yes; then
2902 # Check whether --with-tk or --without-tk was given.
2903 if test "${with_tk+set}" = set; then
2914 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2915 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2916 { (exit 1); exit 1; }; }
2928 echo "$as_me:$LINENO: result: $with_tk" >&5
2929 echo "${ECHO_T}$with_tk" >&6
2933 # We see if the path to the Tcl/Tk configuration scripts is specified.
2934 # This will override the use of tclsh to find the paths to search.
2939 # Check whether --with-tclconfig or --without-tclconfig was given.
2940 if test "${with_tclconfig+set}" = set; then
2941 withval="$with_tclconfig"
2945 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2946 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2947 { (exit 1); exit 1; }; }
2950 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2951 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2952 { (exit 1); exit 1; }; }
2962 # We see if the path to the Tk configuration scripts is specified.
2963 # This will override the use of tclsh to find the paths to search.
2968 # Check whether --with-tkconfig or --without-tkconfig was given.
2969 if test "${with_tkconfig+set}" = set; then
2970 withval="$with_tkconfig"
2974 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2975 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2976 { (exit 1); exit 1; }; }
2979 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2980 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2981 { (exit 1); exit 1; }; }
2992 # Optionally build Perl modules (Pg.pm and PL/Perl)
2994 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2995 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2999 # Check whether --with-perl or --without-perl was given.
3000 if test "${with_perl+set}" = set; then
3001 withval="$with_perl"
3011 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3012 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3013 { (exit 1); exit 1; }; }
3022 echo "$as_me:$LINENO: result: $with_perl" >&5
3023 echo "${ECHO_T}$with_perl" >&6
3027 # Optionally build Python interface module
3029 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3030 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3034 # Check whether --with-python or --without-python was given.
3035 if test "${with_python+set}" = set; then
3036 withval="$with_python"
3046 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3047 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3048 { (exit 1); exit 1; }; }
3057 echo "$as_me:$LINENO: result: $with_python" >&5
3058 echo "${ECHO_T}$with_python" >&6
3062 # Optionally build the Java/JDBC tools
3064 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3065 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3069 # Check whether --with-java or --without-java was given.
3070 if test "${with_java+set}" = set; then
3071 withval="$with_java"
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3078 for ac_prog in jakarta-ant ant ant.sh ant.bat
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy $ac_prog; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_path_ANT+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 if test -n "$ANT"; then
3112 echo "$as_me:$LINENO: result: $ANT" >&5
3113 echo "${ECHO_T}$ANT" >&6
3115 echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3119 test -n "$ANT" && break
3123 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3124 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3125 if test "${pgac_cv_prog_ant_works+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat > conftest.java << EOF
3130 public class conftest {
3131 int testmethod(int a, int b) {
3137 cat > conftest.xml << EOF
3138 <project name="conftest" default="conftest">
3139 <target name="conftest">
3140 <javac srcdir="." includes="conftest.java">
3146 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3147 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3148 (eval $pgac_cmd) 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3153 if test $? = 0 && test -f ./conftest.class ; then
3154 pgac_cv_prog_ant_works=yes
3156 echo "configure: failed java program was:" >&5
3157 cat conftest.java >&5
3158 echo "configure: failed build file was:" >&5
3159 cat conftest.xml >&5
3160 pgac_cv_prog_ant_works=no
3163 rm -f conftest* core core.* *.core
3166 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3167 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3169 if test "$pgac_cv_prog_ant_works" != yes; then
3170 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3171 echo "$as_me: error: ant does not work" >&2;}
3172 { (exit 1); exit 1; }; }
3176 if test -z "$ANT"; then
3177 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3178 echo "$as_me: error: Ant is required to build Java components" >&2;}
3179 { (exit 1); exit 1; }; }
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3187 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189 { (exit 1); exit 1; }; }
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212 withval="$with_krb4"
3216 krb4_prefix=/usr/athena
3223 krb4_prefix=$withval
3232 if test "$with_krb4" = yes; then
3234 echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3237 cat >>confdefs.h <<\_ACEOF
3242 if test -d "$krb4_prefix/include"; then
3243 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3245 if test -d "$krb4_prefix/lib"; then
3246 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3249 krb_srvtab="/etc/srvtab"
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270 withval="$with_krb5"
3274 krb5_prefix=/usr/athena
3281 krb5_prefix=$withval
3290 if test "$with_krb5" = yes; then
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3295 cat >>confdefs.h <<\_ACEOF
3300 if test -d "$krb5_prefix/include"; then
3301 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3303 if test -d "$krb5_prefix/lib"; then
3304 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3307 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322 { (exit 1); exit 1; }; }
3329 # Kerberos configuration parameters
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336 withval="$with_krb_srvnam"
3340 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342 { (exit 1); exit 1; }; }
3345 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347 { (exit 1); exit 1; }; }
3355 with_krb_srvnam="postgres"
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3380 cat >>confdefs.h <<\_ACEOF
3389 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3411 # Check whether --with-openssl or --without-openssl was given.
3412 if test "${with_openssl+set}" = set; then
3413 withval="$with_openssl"
3417 openssl_prefix=/usr/local/ssl
3424 openssl_prefix=$withval
3433 if test "$with_openssl" = yes; then
3435 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3436 echo "${ECHO_T}building with OpenSSL support" >&6
3438 cat >>confdefs.h <<\_ACEOF
3443 if test -d "${openssl_prefix}/include" ; then
3444 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3446 if test -d "${openssl_prefix}/lib" ; then
3447 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3462 # Check whether --with-readline or --without-readline was given.
3463 if test "${with_readline+set}" = set; then
3464 withval="$with_readline"
3474 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3475 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3476 { (exit 1); exit 1; }; }
3492 # Check whether --with-zlib or --without-zlib was given.
3493 if test "${with_zlib+set}" = set; then
3494 withval="$with_zlib"
3504 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3505 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3506 { (exit 1); exit 1; }; }
3519 # Optionally enable the building of the ODBC driver
3523 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3524 enable_odbc=$with_odbc
3527 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3528 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3531 # Check whether --enable-odbc or --disable-odbc was given.
3532 if test "${enable_odbc+set}" = set; then
3533 enableval="$enable_odbc"
3543 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3544 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3545 { (exit 1); exit 1; }; }
3557 # Check whether --with-unixodbc or --without-unixodbc was given.
3558 if test "${with_unixodbc+set}" = set; then
3559 withval="$with_unixodbc"
3569 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3570 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3571 { (exit 1); exit 1; }; }
3583 # Check whether --with-iodbc or --without-iodbc was given.
3584 if test "${with_iodbc+set}" = set; then
3585 withval="$with_iodbc"
3595 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3596 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3597 { (exit 1); exit 1; }; }
3606 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3607 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3608 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3609 { (exit 1); exit 1; }; }
3611 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3614 case $enable_odbc:$with_unixodbc:$with_iodbc in
3615 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3616 echo "${ECHO_T}yes (stand-alone)" >&6;;
3617 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3618 echo "${ECHO_T}yes (unixODBC)" >&6
3620 cat >>confdefs.h <<\_ACEOF
3621 #define WITH_UNIXODBC 1
3625 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3626 echo "${ECHO_T}yes (iODBC)" >&6
3628 cat >>confdefs.h <<\_ACEOF
3629 #define WITH_IODBC 1
3633 no:*) echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6;;
3641 # Allow for overriding the default location of the odbcinst.ini
3642 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3646 # Check whether --with-odbcinst or --without-odbcinst was given.
3647 if test "${with_odbcinst+set}" = set; then
3648 withval="$with_odbcinst"
3652 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3653 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3654 { (exit 1); exit 1; }; }
3657 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3658 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3659 { (exit 1); exit 1; }; }
3662 odbcinst_ini_dir=$withval
3667 odbcinst_ini_dir="\${sysconfdir}"
3674 # Assume system is ELF if it predefines __ELF__ as 1,
3675 # otherwise believe host_os based default.
3677 freebsd1*|freebsd2*) elf=no;;
3678 freebsd3*|freebsd4*) elf=yes;;
3682 cat >conftest.$ac_ext <<_ACEOF
3683 #line $LINENO "configure"
3684 #include "confdefs.h"
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 egrep "yes" >/dev/null 2>&1; then
3694 if test "X$elf" = "Xyes" ; then
3707 # Optionally build C++ code (i.e., libpq++)
3709 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3710 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3714 # Check whether --with-CXX or --without-CXX was given.
3715 if test "${with_CXX+set}" = set; then
3736 if test "$with_CXX" = yes; then
3738 echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6
3741 # If the user has specified CXXFLAGS in the environment, leave it
3742 # alone, else use a default.
3745 ac_cpp='$CXXCPP $CPPFLAGS'
3746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749 if test -n "$ac_tool_prefix"; then
3750 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_CXX+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test -n "$CXX"; then
3760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 if test -n "$CXX"; then
3780 echo "$as_me:$LINENO: result: $CXX" >&5
3781 echo "${ECHO_T}$CXX" >&6
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3787 test -n "$CXX" && break
3790 if test -z "$CXX"; then
3792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if test -n "$ac_ct_CXX"; then
3802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_CXX="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821 if test -n "$ac_ct_CXX"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3823 echo "${ECHO_T}$ac_ct_CXX" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3829 test -n "$ac_ct_CXX" && break
3831 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3837 # Provide some information about the compiler.
3838 echo "$as_me:$LINENO:" \
3839 "checking for C++ compiler version" >&5
3840 ac_compiler=`set X $ac_compile; echo $2`
3841 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3842 (eval $ac_compiler --version </dev/null >&5) 2>&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3847 (eval $ac_compiler -v </dev/null >&5) 2>&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3852 (eval $ac_compiler -V </dev/null >&5) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3857 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3858 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3859 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3864 #include "confdefs.h"
3866 #ifdef F77_DUMMY_MAIN
3870 int F77_DUMMY_MAIN() { return 1; }
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885 (eval $ac_compile) 2>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -s conftest.$ac_objext'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3897 echo "$as_me: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3901 rm -f conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3905 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3906 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3907 GXX=`test $ac_compiler_gnu = yes && echo yes`
3908 ac_test_CXXFLAGS=${CXXFLAGS+set}
3909 ac_save_CXXFLAGS=$CXXFLAGS
3911 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3912 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3913 if test "${ac_cv_prog_cxx_g+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 cat >conftest.$ac_ext <<_ACEOF
3917 #line $LINENO "configure"
3918 #include "confdefs.h"
3920 #ifdef F77_DUMMY_MAIN
3924 int F77_DUMMY_MAIN() { return 1; }
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 ac_cv_prog_cxx_g=yes
3948 echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3952 rm -f conftest.$ac_objext conftest.$ac_ext
3954 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3955 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3956 if test "$ac_test_CXXFLAGS" = set; then
3957 CXXFLAGS=$ac_save_CXXFLAGS
3958 elif test $ac_cv_prog_cxx_g = yes; then
3959 if test "$GXX" = yes; then
3965 if test "$GXX" = yes; then
3971 for ac_declaration in \
3973 '#include <stdlib.h>' \
3974 'extern "C" void std::exit (int) throw (); using std::exit;' \
3975 'extern "C" void std::exit (int); using std::exit;' \
3976 'extern "C" void exit (int) throw ();' \
3977 'extern "C" void exit (int);' \
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 #include "confdefs.h"
3985 #ifdef F77_DUMMY_MAIN
3989 int F77_DUMMY_MAIN() { return 1; }
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4017 rm -f conftest.$ac_objext conftest.$ac_ext
4018 cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4022 #ifdef F77_DUMMY_MAIN
4026 int F77_DUMMY_MAIN() { return 1; }
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4050 echo "$as_me: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4056 if test -n "$ac_declaration"; then
4057 echo '#ifdef __cplusplus' >>confdefs.h
4058 echo $ac_declaration >>confdefs.h
4059 echo '#endif' >>confdefs.h
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 if test "$ac_env_CXXFLAGS" != set; then
4069 if test "$GXX" = yes; then
4073 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
4074 unixware) CXXFLAGS='-O' ;;
4079 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4080 CXXFLAGS="$CXXFLAGS -g"
4082 { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4083 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4086 ac_cpp='$CXXCPP $CPPFLAGS'
4087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4090 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4091 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4092 if test -z "$CXXCPP"; then
4093 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 # Double quotes because CXXCPP needs to be expanded
4097 for CXXCPP in "$CXX -E" "/lib/cpp"
4100 for ac_cxx_preproc_warn_flag in '' yes
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # On the NeXT, cc -E runs the code through the compiler's parser,
4105 # not just through cpp. "Syntax error" is here to catch this case.
4106 cat >conftest.$ac_ext <<_ACEOF
4107 #line $LINENO "configure"
4108 #include "confdefs.h"
4112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4115 egrep -v '^ *\+' conftest.er1 >conftest.err
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } >/dev/null; then
4120 if test -s conftest.err; then
4121 ac_cpp_err=$ac_cxx_preproc_warn_flag
4128 if test -z "$ac_cpp_err"; then
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 # Broken: fails on valid input.
4136 rm -f conftest.err conftest.$ac_ext
4138 # OK, works on sane cases. Now check whether non-existent headers
4139 # can be detected and how.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 #line $LINENO "configure"
4142 #include "confdefs.h"
4143 #include <ac_nonexistent.h>
4145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4148 egrep -v '^ *\+' conftest.er1 >conftest.err
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } >/dev/null; then
4153 if test -s conftest.err; then
4154 ac_cpp_err=$ac_cxx_preproc_warn_flag
4161 if test -z "$ac_cpp_err"; then
4162 # Broken: success on invalid input.
4165 echo "$as_me: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 # Passes both tests.
4171 rm -f conftest.err conftest.$ac_ext
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then
4181 ac_cv_prog_CXXCPP=$CXXCPP
4184 CXXCPP=$ac_cv_prog_CXXCPP
4186 ac_cv_prog_CXXCPP=$CXXCPP
4188 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4189 echo "${ECHO_T}$CXXCPP" >&6
4191 for ac_cxx_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # On the NeXT, cc -E runs the code through the compiler's parser,
4196 # not just through cpp. "Syntax error" is here to catch this case.
4197 cat >conftest.$ac_ext <<_ACEOF
4198 #line $LINENO "configure"
4199 #include "confdefs.h"
4203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4206 egrep -v '^ *\+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null; then
4211 if test -s conftest.err; then
4212 ac_cpp_err=$ac_cxx_preproc_warn_flag
4219 if test -z "$ac_cpp_err"; then
4222 echo "$as_me: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 # Broken: fails on valid input.
4227 rm -f conftest.err conftest.$ac_ext
4229 # OK, works on sane cases. Now check whether non-existent headers
4230 # can be detected and how.
4231 cat >conftest.$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4233 #include "confdefs.h"
4234 #include <ac_nonexistent.h>
4236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4239 egrep -v '^ *\+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null; then
4244 if test -s conftest.err; then
4245 ac_cpp_err=$ac_cxx_preproc_warn_flag
4252 if test -z "$ac_cpp_err"; then
4253 # Broken: success on invalid input.
4256 echo "$as_me: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4258 # Passes both tests.
4262 rm -f conftest.err conftest.$ac_ext
4265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4266 rm -f conftest.err conftest.$ac_ext
4267 if $ac_preproc_ok; then
4270 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4271 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4272 { (exit 1); exit 1; }; }
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4290 CPPFLAGS="$CPPFLAGS $INCLUDES"
4291 LDFLAGS="$LDFLAGS $LIBDIRS"
4293 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4294 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4295 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4296 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4299 for ac_prog in gawk mawk nawk awk
4301 # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_AWK+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$AWK"; then
4309 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_AWK="$ac_prog"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 if test -n "$AWK"; then
4329 echo "$as_me:$LINENO: result: $AWK" >&5
4330 echo "${ECHO_T}$AWK" >&6
4332 echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4336 test -n "$AWK" && break
4339 echo "$as_me:$LINENO: checking for flex" >&5
4340 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4341 if test "${pgac_cv_path_flex+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 # Let the user override the test
4345 if test -n "$FLEX"; then
4346 pgac_cv_path_flex=$FLEX
4350 for pgac_dir in $PATH; do
4351 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4354 for pgac_prog in flex lex; do
4355 pgac_candidate="$pgac_dir/$pgac_prog"
4356 if test -f "$pgac_candidate" \
4357 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4359 echo '%%' > conftest.l
4360 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4361 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4362 pgac_broken_flex=$pgac_candidate
4366 pgac_cv_path_flex=$pgac_candidate
4374 : ${pgac_cv_path_flex=no}
4378 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4379 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4381 if test -n "$pgac_broken_flex"; then
4382 { echo "$as_me:$LINENO: WARNING:
4383 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4384 *** should get version 2.5.4 or later." >&5
4385 echo "$as_me: WARNING:
4386 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4387 *** should get version 2.5.4 or later." >&2;}
4390 { echo "$as_me:$LINENO: WARNING:
4391 *** Without Flex you will not be able to build PostgreSQL from CVS or
4392 *** change any of the scanner definition files. You can obtain Flex from
4393 *** a GNU mirror site. (If you are using the official distribution of
4394 *** PostgreSQL then you do not need to worry about this because the Flex
4395 *** output is pre-generated.)" >&5
4396 echo "$as_me: WARNING:
4397 *** Without Flex you will not be able to build PostgreSQL from CVS or
4398 *** change any of the scanner definition files. You can obtain Flex from
4399 *** a GNU mirror site. (If you are using the official distribution of
4400 *** PostgreSQL then you do not need to worry about this because the Flex
4401 *** output is pre-generated.)" >&2;}
4404 if test x"$pgac_cv_path_flex" = x"no"; then
4407 FLEX=$pgac_cv_path_flex
4413 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4414 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4416 if test "$LN_S" = "ln -s"; then
4417 echo "$as_me:$LINENO: result: yes" >&5
4418 echo "${ECHO_T}yes" >&6
4420 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4421 echo "${ECHO_T}no, using $LN_S" >&6
4425 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4426 if test "${with_gnu_ld+set}" = set; then
4427 withval="$with_gnu_ld"
4428 test "$withval" = no || with_gnu_ld=yes
4433 if test "$GCC" = yes; then
4434 # Check if gcc -print-prog-name=ld gives a path.
4435 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4436 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4439 # gcc leaves a trailing carriage return which upsets mingw
4440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4445 # Accept absolute paths.
4446 [\\/]* | [A-Za-z]:[\\/]*)
4447 re_direlt='/[^/][^/]*/\.\./'
4448 # Canonicalize the path of ld
4449 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4451 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4453 test -z "$LD" && LD="$ac_prog"
4456 # If it fails, then pretend we aren't using GCC.
4460 # If it is relative, then search for the first ld in PATH.
4464 elif test "$with_gnu_ld" = yes; then
4465 echo "$as_me:$LINENO: checking for GNU ld" >&5
4466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4468 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4471 if test "${ac_cv_path_LD+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -z "$LD"; then
4475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4476 for ac_dir in $PATH; do
4477 test -z "$ac_dir" && ac_dir=.
4478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4479 ac_cv_path_LD="$ac_dir/$ac_prog"
4480 # Check to see if the program is GNU ld. I'd rather use --version,
4481 # but apparently some GNU ld's only accept -v.
4482 # Break only if it was the GNU/non-GNU ld that we prefer.
4483 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4484 test "$with_gnu_ld" != no && break
4486 test "$with_gnu_ld" != yes && break
4492 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4497 if test -n "$LD"; then
4498 echo "$as_me:$LINENO: result: $LD" >&5
4499 echo "${ECHO_T}$LD" >&6
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4504 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4505 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4506 { (exit 1); exit 1; }; }
4507 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4508 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4509 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4513 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4514 ac_cv_prog_gnu_ld=yes
4516 ac_cv_prog_gnu_ld=no
4519 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4520 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4521 with_gnu_ld=$ac_cv_prog_gnu_ld
4526 case $host_os in sysv5*)
4527 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4528 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4529 if test "${pgac_cv_prog_ld_R+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4534 cat >conftest.$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4536 #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 pgac_cv_prog_ld_R=yes
4566 echo "$as_me: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 pgac_cv_prog_ld_R=no
4570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4571 LDFLAGS=$pgac_save_LDFLAGS
4574 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4575 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4576 ld_R_works=$pgac_cv_prog_ld_R
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_prog_RANLIB+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 if test -n "$RANLIB"; then
4588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 RANLIB=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608 echo "$as_me:$LINENO: result: $RANLIB" >&5
4609 echo "${ECHO_T}$RANLIB" >&6
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4616 if test -z "$ac_cv_prog_RANLIB"; then
4617 ac_ct_RANLIB=$RANLIB
4618 # Extract the first word of "ranlib", so it can be a program name with args.
4619 set dummy ranlib; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$ac_ct_RANLIB"; then
4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_ac_ct_RANLIB="ranlib"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646 if test -n "$ac_ct_RANLIB"; then
4647 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4654 RANLIB=$ac_ct_RANLIB
4656 RANLIB="$ac_cv_prog_RANLIB"
4659 for ac_prog in lorder
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_LORDER+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$LORDER"; then
4669 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_LORDER="$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 LORDER=$ac_cv_prog_LORDER
4688 if test -n "$LORDER"; then
4689 echo "$as_me:$LINENO: result: $LORDER" >&5
4690 echo "${ECHO_T}$LORDER" >&6
4692 echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4696 test -n "$LORDER" && break
4699 # Extract the first word of "tar", so it can be a program name with args.
4700 set dummy tar; ac_word=$2
4701 echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4703 if test "${ac_cv_path_TAR+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 if test -n "$TAR"; then
4731 echo "$as_me:$LINENO: result: $TAR" >&5
4732 echo "${ECHO_T}$TAR" >&6
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}strip; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_STRIP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 if test -n "$STRIP"; then
4748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 STRIP=$ac_cv_prog_STRIP
4767 if test -n "$STRIP"; then
4768 echo "$as_me:$LINENO: result: $STRIP" >&5
4769 echo "${ECHO_T}$STRIP" >&6
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4776 if test -z "$ac_cv_prog_STRIP"; then
4778 # Extract the first word of "strip", so it can be a program name with args.
4779 set dummy strip; ac_word=$2
4780 echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test -n "$ac_ct_STRIP"; then
4786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_ac_ct_STRIP="strip"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4806 if test -n "$ac_ct_STRIP"; then
4807 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4808 echo "${ECHO_T}$ac_ct_STRIP" >&6
4810 echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4816 STRIP="$ac_cv_prog_STRIP"
4820 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4821 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4822 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4823 STRIP_STATIC_LIB="$STRIP -x"
4824 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4825 echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6
4830 echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4837 for ac_prog in 'bison -y'
4839 # Extract the first word of "$ac_prog", so it can be a program name with args.
4840 set dummy $ac_prog; ac_word=$2
4841 echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843 if test "${ac_cv_prog_YACC+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -n "$YACC"; then
4847 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856 ac_cv_prog_YACC="$ac_prog"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 YACC=$ac_cv_prog_YACC
4866 if test -n "$YACC"; then
4867 echo "$as_me:$LINENO: result: $YACC" >&5
4868 echo "${ECHO_T}$YACC" >&6
4870 echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4874 test -n "$YACC" && break
4877 if test -z "$YACC"; then
4878 { echo "$as_me:$LINENO: WARNING:
4879 *** Without Bison you will not be able to build PostgreSQL from CVS or
4880 *** change any of the parser definition files. You can obtain Bison from
4881 *** a GNU mirror site. (If you are using the official distribution of
4882 *** PostgreSQL then you do not need to worry about this because the Bison
4883 *** output is pre-generated.) To use a different yacc program (possible,
4884 *** but not recommended), set the environment variable YACC before running
4885 *** 'configure'." >&5
4886 echo "$as_me: WARNING:
4887 *** Without Bison you will not be able to build PostgreSQL from CVS or
4888 *** change any of the parser definition files. You can obtain Bison from
4889 *** a GNU mirror site. (If you are using the official distribution of
4890 *** PostgreSQL then you do not need to worry about this because the Bison
4891 *** output is pre-generated.) To use a different yacc program (possible,
4892 *** but not recommended), set the environment variable YACC before running
4893 *** 'configure'." >&2;}
4897 if test "$with_tk" = yes; then
4898 # Extract the first word of "wish", so it can be a program name with args.
4899 set dummy wish; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_path_WISH+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 WISH=$ac_cv_path_WISH
4929 if test -n "$WISH"; then
4930 echo "$as_me:$LINENO: result: $WISH" >&5
4931 echo "${ECHO_T}$WISH" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4938 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4939 { (exit 1); exit 1; }; }
4942 # Extract the first word of "perl", so it can be a program name with args.
4943 set dummy perl; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_path_PERL+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 PERL=$ac_cv_path_PERL
4973 if test -n "$PERL"; then
4974 echo "$as_me:$LINENO: result: $PERL" >&5
4975 echo "${ECHO_T}$PERL" >&6
4977 echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4981 if test "$with_perl" = yes; then
4984 echo "$as_me:$LINENO: checking Perl installation directories" >&5
4985 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
4987 # These are the ones we currently need. Others can be added easily.
4988 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4989 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4990 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4993 echo "$as_me:$LINENO: result: done" >&5
4994 echo "${ECHO_T}done" >&6
4998 if test "$with_python" = yes; then
4999 # Extract the first word of "python", so it can be a program name with args.
5000 set dummy python; ac_word=$2
5001 echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_path_PYTHON+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 PYTHON=$ac_cv_path_PYTHON
5030 if test -n "$PYTHON"; then
5031 echo "$as_me:$LINENO: result: $PYTHON" >&5
5032 echo "${ECHO_T}$PYTHON" >&6
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5038 if test x"$PYTHON" = x""; then
5039 { { echo "$as_me:$LINENO: error: Python not found" >&5
5040 echo "$as_me: error: Python not found" >&2;}
5041 { (exit 1); exit 1; }; }
5045 echo "$as_me:$LINENO: checking Python installation directories" >&5
5046 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5047 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5048 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5049 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5050 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5051 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5052 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5053 python_includespec="-I${python_prefix}/include/python${python_version}"
5054 if test "$python_prefix" != "$python_execprefix"; then
5055 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5058 # This should be enough of a message.
5059 if test "$python_prefix" != "$python_execprefix"; then
5060 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5061 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5063 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5064 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5071 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5072 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5074 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5075 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5076 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5080 pgac_tab=" " # tab character
5081 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"`
5083 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5084 echo "${ECHO_T}${python_libspec}" >&6
5094 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5097 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5098 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5099 if test "${ac_cv_lib_bsd_main+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 ac_check_lib_save_LIBS=$LIBS
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 #include "confdefs.h"
5109 #ifdef F77_DUMMY_MAIN
5113 int F77_DUMMY_MAIN() { return 1; }
5123 rm -f conftest.$ac_objext conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -s conftest$ac_exeext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_lib_bsd_main=yes
5137 echo "$as_me: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 ac_cv_lib_bsd_main=no
5141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5142 LIBS=$ac_check_lib_save_LIBS
5144 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5145 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5146 if test $ac_cv_lib_bsd_main = yes; then
5147 cat >>confdefs.h <<_ACEOF
5148 #define HAVE_LIBBSD 1
5157 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5158 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5159 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 ac_check_lib_save_LIBS=$LIBS
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5166 #include "confdefs.h"
5168 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char setproctitle ();
5175 #ifdef F77_DUMMY_MAIN
5179 int F77_DUMMY_MAIN() { return 1; }
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -s conftest$ac_exeext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_lib_util_setproctitle=yes
5203 echo "$as_me: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5205 ac_cv_lib_util_setproctitle=no
5207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5211 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5212 if test $ac_cv_lib_util_setproctitle = yes; then
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_LIBUTIL 1
5222 echo "$as_me:$LINENO: checking for main in -lm" >&5
5223 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5224 if test "${ac_cv_lib_m_main+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_check_lib_save_LIBS=$LIBS
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5231 #include "confdefs.h"
5234 #ifdef F77_DUMMY_MAIN
5238 int F77_DUMMY_MAIN() { return 1; }
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -s conftest$ac_exeext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_cv_lib_m_main=yes
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5267 LIBS=$ac_check_lib_save_LIBS
5269 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5270 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5271 if test $ac_cv_lib_m_main = yes; then
5272 cat >>confdefs.h <<_ACEOF
5281 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5282 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5283 if test "${ac_cv_lib_dl_main+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 ac_check_lib_save_LIBS=$LIBS
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 #include "confdefs.h"
5293 #ifdef F77_DUMMY_MAIN
5297 int F77_DUMMY_MAIN() { return 1; }
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest$ac_exeext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_lib_dl_main=yes
5321 echo "$as_me: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 ac_cv_lib_dl_main=no
5325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5326 LIBS=$ac_check_lib_save_LIBS
5328 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5329 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5330 if test $ac_cv_lib_dl_main = yes; then
5331 cat >>confdefs.h <<_ACEOF
5332 #define HAVE_LIBDL 1
5340 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5341 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5342 if test "${ac_cv_lib_socket_main+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 ac_check_lib_save_LIBS=$LIBS
5346 LIBS="-lsocket $LIBS"
5347 cat >conftest.$ac_ext <<_ACEOF
5348 #line $LINENO "configure"
5349 #include "confdefs.h"
5352 #ifdef F77_DUMMY_MAIN
5356 int F77_DUMMY_MAIN() { return 1; }
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368 (eval $ac_link) 2>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } &&
5372 { ac_try='test -s conftest$ac_exeext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_lib_socket_main=yes
5380 echo "$as_me: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 ac_cv_lib_socket_main=no
5384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5385 LIBS=$ac_check_lib_save_LIBS
5387 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5388 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5389 if test $ac_cv_lib_socket_main = yes; then
5390 cat >>confdefs.h <<_ACEOF
5391 #define HAVE_LIBSOCKET 1
5394 LIBS="-lsocket $LIBS"
5399 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5400 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5401 if test "${ac_cv_lib_nsl_main+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 ac_check_lib_save_LIBS=$LIBS
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line $LINENO "configure"
5408 #include "confdefs.h"
5411 #ifdef F77_DUMMY_MAIN
5415 int F77_DUMMY_MAIN() { return 1; }
5425 rm -f conftest.$ac_objext conftest$ac_exeext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427 (eval $ac_link) 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -s conftest$ac_exeext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_cv_lib_nsl_main=yes
5439 echo "$as_me: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 ac_cv_lib_nsl_main=no
5443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5444 LIBS=$ac_check_lib_save_LIBS
5446 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5447 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5448 if test $ac_cv_lib_nsl_main = yes; then
5449 cat >>confdefs.h <<_ACEOF
5450 #define HAVE_LIBNSL 1
5458 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5459 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5460 if test "${ac_cv_lib_ipc_main+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_check_lib_save_LIBS=$LIBS
5465 cat >conftest.$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5467 #include "confdefs.h"
5470 #ifdef F77_DUMMY_MAIN
5474 int F77_DUMMY_MAIN() { return 1; }
5484 rm -f conftest.$ac_objext conftest$ac_exeext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5486 (eval $ac_link) 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -s conftest$ac_exeext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_lib_ipc_main=yes
5498 echo "$as_me: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 ac_cv_lib_ipc_main=no
5502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_check_lib_save_LIBS
5505 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5506 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5507 if test $ac_cv_lib_ipc_main = yes; then
5508 cat >>confdefs.h <<_ACEOF
5509 #define HAVE_LIBIPC 1
5517 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5518 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5519 if test "${ac_cv_lib_IPC_main+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 ac_check_lib_save_LIBS=$LIBS
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line $LINENO "configure"
5526 #include "confdefs.h"
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_IPC_main=yes
5557 echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 ac_cv_lib_IPC_main=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_IPC_main" >&5
5565 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5566 if test $ac_cv_lib_IPC_main = yes; then
5567 cat >>confdefs.h <<_ACEOF
5568 #define HAVE_LIBIPC 1
5576 echo "$as_me:$LINENO: checking for main in -llc" >&5
5577 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5578 if test "${ac_cv_lib_lc_main+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 ac_check_lib_save_LIBS=$LIBS
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5588 #ifdef F77_DUMMY_MAIN
5592 int F77_DUMMY_MAIN() { return 1; }
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -s conftest$ac_exeext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_lib_lc_main=yes
5616 echo "$as_me: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5618 ac_cv_lib_lc_main=no
5620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5621 LIBS=$ac_check_lib_save_LIBS
5623 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5624 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5625 if test $ac_cv_lib_lc_main = yes; then
5626 cat >>confdefs.h <<_ACEOF
5627 #define HAVE_LIBLC 1
5635 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5636 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5637 if test "${ac_cv_lib_dld_main+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 ac_check_lib_save_LIBS=$LIBS
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 #include "confdefs.h"
5647 #ifdef F77_DUMMY_MAIN
5651 int F77_DUMMY_MAIN() { return 1; }
5661 rm -f conftest.$ac_objext conftest$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663 (eval $ac_link) 2>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_lib_dld_main=yes
5675 echo "$as_me: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 ac_cv_lib_dld_main=no
5679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5680 LIBS=$ac_check_lib_save_LIBS
5682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5683 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5684 if test $ac_cv_lib_dld_main = yes; then
5685 cat >>confdefs.h <<_ACEOF
5686 #define HAVE_LIBDLD 1
5694 echo "$as_me:$LINENO: checking for main in -lld" >&5
5695 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5696 if test "${ac_cv_lib_ld_main+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 ac_check_lib_save_LIBS=$LIBS
5701 cat >conftest.$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5703 #include "confdefs.h"
5706 #ifdef F77_DUMMY_MAIN
5710 int F77_DUMMY_MAIN() { return 1; }
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -s conftest$ac_exeext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_lib_ld_main=yes
5734 echo "$as_me: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5736 ac_cv_lib_ld_main=no
5738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5739 LIBS=$ac_check_lib_save_LIBS
5741 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5742 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5743 if test $ac_cv_lib_ld_main = yes; then
5744 cat >>confdefs.h <<_ACEOF
5745 #define HAVE_LIBLD 1
5753 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5754 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5755 if test "${ac_cv_lib_compat_main+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lcompat $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 #include "confdefs.h"
5765 #ifdef F77_DUMMY_MAIN
5769 int F77_DUMMY_MAIN() { return 1; }
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_lib_compat_main=yes
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 ac_cv_lib_compat_main=no
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5800 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5801 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5802 if test $ac_cv_lib_compat_main = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define HAVE_LIBCOMPAT 1
5807 LIBS="-lcompat $LIBS"
5812 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5813 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5814 if test "${ac_cv_lib_BSD_main+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 ac_check_lib_save_LIBS=$LIBS
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5824 #ifdef F77_DUMMY_MAIN
5828 int F77_DUMMY_MAIN() { return 1; }
5838 rm -f conftest.$ac_objext conftest$ac_exeext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840 (eval $ac_link) 2>&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -s conftest$ac_exeext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_lib_BSD_main=yes
5852 echo "$as_me: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5854 ac_cv_lib_BSD_main=no
5856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5857 LIBS=$ac_check_lib_save_LIBS
5859 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5860 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5861 if test $ac_cv_lib_BSD_main = yes; then
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE_LIBBSD 1
5871 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5872 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5873 if test "${ac_cv_lib_gen_main+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 ac_check_lib_save_LIBS=$LIBS
5878 cat >conftest.$ac_ext <<_ACEOF
5879 #line $LINENO "configure"
5880 #include "confdefs.h"
5883 #ifdef F77_DUMMY_MAIN
5887 int F77_DUMMY_MAIN() { return 1; }
5897 rm -f conftest.$ac_objext conftest$ac_exeext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5899 (eval $ac_link) 2>&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -s conftest$ac_exeext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_cv_lib_gen_main=yes
5911 echo "$as_me: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5913 ac_cv_lib_gen_main=no
5915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5916 LIBS=$ac_check_lib_save_LIBS
5918 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5919 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5920 if test $ac_cv_lib_gen_main = yes; then
5921 cat >>confdefs.h <<_ACEOF
5922 #define HAVE_LIBGEN 1
5930 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5931 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5932 if test "${ac_cv_lib_PW_main+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 ac_check_lib_save_LIBS=$LIBS
5937 cat >conftest.$ac_ext <<_ACEOF
5938 #line $LINENO "configure"
5939 #include "confdefs.h"
5942 #ifdef F77_DUMMY_MAIN
5946 int F77_DUMMY_MAIN() { return 1; }
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958 (eval $ac_link) 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -s conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_lib_PW_main=yes
5970 echo "$as_me: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5972 ac_cv_lib_PW_main=no
5974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5975 LIBS=$ac_check_lib_save_LIBS
5977 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5978 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5979 if test $ac_cv_lib_PW_main = yes; then
5980 cat >>confdefs.h <<_ACEOF
5981 #define HAVE_LIBPW 1
5989 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5990 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5991 if test "${ac_cv_lib_resolv_main+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 ac_check_lib_save_LIBS=$LIBS
5995 LIBS="-lresolv $LIBS"
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 #include "confdefs.h"
6001 #ifdef F77_DUMMY_MAIN
6005 int F77_DUMMY_MAIN() { return 1; }
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -s conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_lib_resolv_main=yes
6029 echo "$as_me: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 ac_cv_lib_resolv_main=no
6033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6036 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6037 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6038 if test $ac_cv_lib_resolv_main = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define HAVE_LIBRESOLV 1
6043 LIBS="-lresolv $LIBS"
6049 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6050 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6051 if test "${ac_cv_lib_unix_main+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_check_lib_save_LIBS=$LIBS
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6061 #ifdef F77_DUMMY_MAIN
6065 int F77_DUMMY_MAIN() { return 1; }
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_lib_unix_main=yes
6089 echo "$as_me: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 ac_cv_lib_unix_main=no
6093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6094 LIBS=$ac_check_lib_save_LIBS
6096 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6097 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6098 if test $ac_cv_lib_unix_main = yes; then
6099 cat >>confdefs.h <<_ACEOF
6100 #define HAVE_LIBUNIX 1
6107 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6108 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6109 if test "${ac_cv_search_crypt+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_func_search_save_LIBS=$LIBS
6113 ac_cv_search_crypt=no
6114 cat >conftest.$ac_ext <<_ACEOF
6115 #line $LINENO "configure"
6116 #include "confdefs.h"
6118 /* Override any gcc2 internal prototype to avoid an error. */
6122 /* We use char because int might match the return type of a gcc2
6123 builtin and then its argument prototype would still apply. */
6125 #ifdef F77_DUMMY_MAIN
6129 int F77_DUMMY_MAIN() { return 1; }
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141 (eval $ac_link) 2>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -s conftest$ac_exeext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_search_crypt="none required"
6153 echo "$as_me: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6157 if test "$ac_cv_search_crypt" = no; then
6158 for ac_lib in crypt; do
6159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6160 cat >conftest.$ac_ext <<_ACEOF
6161 #line $LINENO "configure"
6162 #include "confdefs.h"
6164 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6171 #ifdef F77_DUMMY_MAIN
6175 int F77_DUMMY_MAIN() { return 1; }
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_search_crypt="-l$ac_lib"
6200 echo "$as_me: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_func_search_save_LIBS
6208 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6209 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6210 if test "$ac_cv_search_crypt" != no; then
6211 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6217 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6218 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6219 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 ac_check_lib_save_LIBS=$LIBS
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6226 #include "confdefs.h"
6228 /* Override any gcc2 internal prototype to avoid an error. */
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
6234 char __inet_ntoa ();
6235 #ifdef F77_DUMMY_MAIN
6239 int F77_DUMMY_MAIN() { return 1; }
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 ac_cv_lib_bind___inet_ntoa=yes
6263 echo "$as_me: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 ac_cv_lib_bind___inet_ntoa=no
6267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6268 LIBS=$ac_check_lib_save_LIBS
6270 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6271 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6272 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define HAVE_LIBBIND 1
6282 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6283 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6284 if test "${ac_cv_search_fdatasync+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_func_search_save_LIBS=$LIBS
6288 ac_cv_search_fdatasync=no
6289 cat >conftest.$ac_ext <<_ACEOF
6290 #line $LINENO "configure"
6291 #include "confdefs.h"
6293 /* Override any gcc2 internal prototype to avoid an error. */
6297 /* We use char because int might match the return type of a gcc2
6298 builtin and then its argument prototype would still apply. */
6300 #ifdef F77_DUMMY_MAIN
6304 int F77_DUMMY_MAIN() { return 1; }
6314 rm -f conftest.$ac_objext conftest$ac_exeext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try='test -s conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_cv_search_fdatasync="none required"
6328 echo "$as_me: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6332 if test "$ac_cv_search_fdatasync" = no; then
6333 for ac_lib in rt posix4; do
6334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6335 cat >conftest.$ac_ext <<_ACEOF
6336 #line $LINENO "configure"
6337 #include "confdefs.h"
6339 /* Override any gcc2 internal prototype to avoid an error. */
6343 /* We use char because int might match the return type of a gcc2
6344 builtin and then its argument prototype would still apply. */
6346 #ifdef F77_DUMMY_MAIN
6350 int F77_DUMMY_MAIN() { return 1; }
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362 (eval $ac_link) 2>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
6366 { ac_try='test -s conftest$ac_exeext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 ac_cv_search_fdatasync="-l$ac_lib"
6375 echo "$as_me: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6381 LIBS=$ac_func_search_save_LIBS
6383 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6384 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6385 if test "$ac_cv_search_fdatasync" != no; then
6386 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6391 if test "$with_readline" = yes; then
6393 echo "$as_me:$LINENO: checking for readline" >&5
6394 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6396 if test "${pgac_cv_check_readline+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 pgac_cv_check_readline=no
6400 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6401 for pgac_rllib in -lreadline -ledit ; do
6402 pgac_save_LIBS=$LIBS
6403 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 #include "confdefs.h"
6408 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6415 #ifdef F77_DUMMY_MAIN
6419 int F77_DUMMY_MAIN() { return 1; }
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -s conftest$ac_exeext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6442 # NetBSD and OpenBSD have a broken linker that does not
6443 # recognize dependent libraries
6444 case $host_os in netbsd* | openbsd* )
6447 *) pgac_lib=" -lcurses" ;;
6451 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6455 echo "$as_me: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6459 LIBS=$pgac_save_LIBS
6462 LIBS=$pgac_save_LIBS
6466 if test "$pgac_cv_check_readline" != no ; then
6468 cat >>confdefs.h <<\_ACEOF
6469 #define HAVE_LIBREADLINE 1
6472 LIBS="$pgac_cv_check_readline $LIBS"
6473 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6474 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6476 echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6479 if test x"$pgac_cv_check_readline" = x"no"; then
6480 { { echo "$as_me:$LINENO: error: readline library not found
6481 Use --without-readline to disable readline support." >&5
6482 echo "$as_me: error: readline library not found
6483 Use --without-readline to disable readline support." >&2;}
6484 { (exit 1); exit 1; }; }
6488 if test "$with_zlib" = yes; then
6490 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6491 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6492 if test "${ac_cv_lib_z_inflate+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_check_lib_save_LIBS=$LIBS
6497 cat >conftest.$ac_ext <<_ACEOF
6498 #line $LINENO "configure"
6499 #include "confdefs.h"
6501 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6508 #ifdef F77_DUMMY_MAIN
6512 int F77_DUMMY_MAIN() { return 1; }
6522 rm -f conftest.$ac_objext conftest$ac_exeext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -s conftest$ac_exeext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 ac_cv_lib_z_inflate=yes
6536 echo "$as_me: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6538 ac_cv_lib_z_inflate=no
6540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6541 LIBS=$ac_check_lib_save_LIBS
6543 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6544 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6545 if test $ac_cv_lib_z_inflate = yes; then
6546 cat >>confdefs.h <<_ACEOF
6553 { { echo "$as_me:$LINENO: error: zlib library not found
6554 Use --without-zlib to disable zlib support." >&5
6555 echo "$as_me: error: zlib library not found
6556 Use --without-zlib to disable zlib support." >&2;}
6557 { (exit 1); exit 1; }; }
6562 if test "$with_krb4" = yes ; then
6564 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6565 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6566 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 ac_check_lib_save_LIBS=$LIBS
6571 cat >conftest.$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6573 #include "confdefs.h"
6575 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6581 char des_encrypt ();
6582 #ifdef F77_DUMMY_MAIN
6586 int F77_DUMMY_MAIN() { return 1; }
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_lib_des_des_encrypt=yes
6610 echo "$as_me: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 ac_cv_lib_des_des_encrypt=no
6614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6615 LIBS=$ac_check_lib_save_LIBS
6617 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6618 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6619 if test $ac_cv_lib_des_des_encrypt = yes; then
6620 cat >>confdefs.h <<_ACEOF
6621 #define HAVE_LIBDES 1
6627 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6628 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6629 { (exit 1); exit 1; }; }
6633 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6634 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6635 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_check_lib_save_LIBS=$LIBS
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line $LINENO "configure"
6642 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char krb_sendauth ();
6651 #ifdef F77_DUMMY_MAIN
6655 int F77_DUMMY_MAIN() { return 1; }
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try='test -s conftest$ac_exeext'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6677 ac_cv_lib_krb_krb_sendauth=yes
6679 echo "$as_me: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6681 ac_cv_lib_krb_krb_sendauth=no
6683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6684 LIBS=$ac_check_lib_save_LIBS
6686 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6687 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6688 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6689 cat >>confdefs.h <<_ACEOF
6690 #define HAVE_LIBKRB 1
6696 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6697 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6698 { (exit 1); exit 1; }; }
6703 if test "$with_krb5" = yes ; then
6704 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6705 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6706 if test "${ac_cv_search_com_err+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 ac_func_search_save_LIBS=$LIBS
6710 ac_cv_search_com_err=no
6711 cat >conftest.$ac_ext <<_ACEOF
6712 #line $LINENO "configure"
6713 #include "confdefs.h"
6715 /* Override any gcc2 internal prototype to avoid an error. */
6719 /* We use char because int might match the return type of a gcc2
6720 builtin and then its argument prototype would still apply. */
6722 #ifdef F77_DUMMY_MAIN
6726 int F77_DUMMY_MAIN() { return 1; }
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -s conftest$ac_exeext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 ac_cv_search_com_err="none required"
6750 echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6754 if test "$ac_cv_search_com_err" = no; then
6755 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6757 cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 #include "confdefs.h"
6761 /* Override any gcc2 internal prototype to avoid an error. */
6765 /* We use char because int might match the return type of a gcc2
6766 builtin and then its argument prototype would still apply. */
6768 #ifdef F77_DUMMY_MAIN
6772 int F77_DUMMY_MAIN() { return 1; }
6782 rm -f conftest.$ac_objext conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -s conftest$ac_exeext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 ac_cv_search_com_err="-l$ac_lib"
6797 echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6803 LIBS=$ac_func_search_save_LIBS
6805 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6806 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6807 if test "$ac_cv_search_com_err" != no; then
6808 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6811 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6812 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6813 { (exit 1); exit 1; }; }
6816 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6817 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6818 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_func_search_save_LIBS=$LIBS
6822 ac_cv_search_krb5_encrypt=no
6823 cat >conftest.$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6825 #include "confdefs.h"
6827 /* Override any gcc2 internal prototype to avoid an error. */
6831 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6833 char krb5_encrypt ();
6834 #ifdef F77_DUMMY_MAIN
6838 int F77_DUMMY_MAIN() { return 1; }
6848 rm -f conftest.$ac_objext conftest$ac_exeext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850 (eval $ac_link) 2>&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -s conftest$ac_exeext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_cv_search_krb5_encrypt="none required"
6862 echo "$as_me: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6866 if test "$ac_cv_search_krb5_encrypt" = no; then
6867 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6870 #line $LINENO "configure"
6871 #include "confdefs.h"
6873 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6879 char krb5_encrypt ();
6880 #ifdef F77_DUMMY_MAIN
6884 int F77_DUMMY_MAIN() { return 1; }
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896 (eval $ac_link) 2>&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_search_krb5_encrypt="-l$ac_lib"
6909 echo "$as_me: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6915 LIBS=$ac_func_search_save_LIBS
6917 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6918 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6919 if test "$ac_cv_search_krb5_encrypt" != no; then
6920 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6923 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6924 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6925 { (exit 1); exit 1; }; }
6928 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6929 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6930 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_func_search_save_LIBS=$LIBS
6934 ac_cv_search_krb5_sendauth=no
6935 cat >conftest.$ac_ext <<_ACEOF
6936 #line $LINENO "configure"
6937 #include "confdefs.h"
6939 /* Override any gcc2 internal prototype to avoid an error. */
6943 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6945 char krb5_sendauth ();
6946 #ifdef F77_DUMMY_MAIN
6950 int F77_DUMMY_MAIN() { return 1; }
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -s conftest$ac_exeext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_search_krb5_sendauth="none required"
6974 echo "$as_me: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978 if test "$ac_cv_search_krb5_sendauth" = no; then
6979 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6981 cat >conftest.$ac_ext <<_ACEOF
6982 #line $LINENO "configure"
6983 #include "confdefs.h"
6985 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6991 char krb5_sendauth ();
6992 #ifdef F77_DUMMY_MAIN
6996 int F77_DUMMY_MAIN() { return 1; }
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008 (eval $ac_link) 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -s conftest$ac_exeext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 ac_cv_search_krb5_sendauth="-l$ac_lib"
7021 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027 LIBS=$ac_func_search_save_LIBS
7029 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7030 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7031 if test "$ac_cv_search_krb5_sendauth" != no; then
7032 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7035 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7036 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7037 { (exit 1); exit 1; }; }
7042 if test "$with_openssl" = yes ; then
7044 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7045 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7046 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_check_lib_save_LIBS=$LIBS
7050 LIBS="-lcrypto $LIBS"
7051 cat >conftest.$ac_ext <<_ACEOF
7052 #line $LINENO "configure"
7053 #include "confdefs.h"
7055 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7061 char CRYPTO_new_ex_data ();
7062 #ifdef F77_DUMMY_MAIN
7066 int F77_DUMMY_MAIN() { return 1; }
7071 CRYPTO_new_ex_data ();
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7090 echo "$as_me: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7092 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095 LIBS=$ac_check_lib_save_LIBS
7097 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7098 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7099 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7100 cat >>confdefs.h <<_ACEOF
7101 #define HAVE_LIBCRYPTO 1
7104 LIBS="-lcrypto $LIBS"
7107 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7108 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7109 { (exit 1); exit 1; }; }
7113 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7114 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7115 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 ac_check_lib_save_LIBS=$LIBS
7120 cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7122 #include "confdefs.h"
7124 /* Override any gcc2 internal prototype to avoid an error. */
7128 /* We use char because int might match the return type of a gcc2
7129 builtin and then its argument prototype would still apply. */
7130 char SSL_library_init ();
7131 #ifdef F77_DUMMY_MAIN
7135 int F77_DUMMY_MAIN() { return 1; }
7140 SSL_library_init ();
7145 rm -f conftest.$ac_objext conftest$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_lib_ssl_SSL_library_init=yes
7159 echo "$as_me: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 ac_cv_lib_ssl_SSL_library_init=no
7163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7164 LIBS=$ac_check_lib_save_LIBS
7166 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7167 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7168 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7169 cat >>confdefs.h <<_ACEOF
7170 #define HAVE_LIBSSL 1
7176 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7177 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7178 { (exit 1); exit 1; }; }
7183 if test "$with_pam" = yes ; then
7185 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7186 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7187 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 ac_check_lib_save_LIBS=$LIBS
7192 cat >conftest.$ac_ext <<_ACEOF
7193 #line $LINENO "configure"
7194 #include "confdefs.h"
7196 /* Override any gcc2 internal prototype to avoid an error. */
7200 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7203 #ifdef F77_DUMMY_MAIN
7207 int F77_DUMMY_MAIN() { return 1; }
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219 (eval $ac_link) 2>&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -s conftest$ac_exeext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_cv_lib_pam_pam_start=yes
7231 echo "$as_me: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7233 ac_cv_lib_pam_pam_start=no
7235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7236 LIBS=$ac_check_lib_save_LIBS
7238 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7239 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7240 if test $ac_cv_lib_pam_pam_start = yes; then
7241 cat >>confdefs.h <<_ACEOF
7242 #define HAVE_LIBPAM 1
7248 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7249 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7250 { (exit 1); exit 1; }; }
7259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7261 if test "${ac_cv_header_stdc+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 #line $LINENO "configure"
7266 #include "confdefs.h"
7273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7276 egrep -v '^ *\+' conftest.er1 >conftest.err
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } >/dev/null; then
7281 if test -s conftest.err; then
7282 ac_cpp_err=$ac_c_preproc_warn_flag
7289 if test -z "$ac_cpp_err"; then
7290 ac_cv_header_stdc=yes
7292 echo "$as_me: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7294 ac_cv_header_stdc=no
7296 rm -f conftest.err conftest.$ac_ext
7298 if test $ac_cv_header_stdc = yes; then
7299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7300 cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 egrep "memchr" >/dev/null 2>&1; then
7310 ac_cv_header_stdc=no
7316 if test $ac_cv_header_stdc = yes; then
7317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7318 cat >conftest.$ac_ext <<_ACEOF
7319 #line $LINENO "configure"
7320 #include "confdefs.h"
7324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325 egrep "free" >/dev/null 2>&1; then
7328 ac_cv_header_stdc=no
7334 if test $ac_cv_header_stdc = yes; then
7335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7336 if test "$cross_compiling" = yes; then
7339 cat >conftest.$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 #include "confdefs.h"
7343 #if ((' ' & 0x0FF) == 0x020)
7344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7347 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7348 || ('j' <= (c) && (c) <= 'r') \
7349 || ('s' <= (c) && (c) <= 'z'))
7350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7358 for (i = 0; i < 256; i++)
7359 if (XOR (islower (i), ISLOWER (i))
7360 || toupper (i) != TOUPPER (i))
7365 rm -f conftest$ac_exeext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7367 (eval $ac_link) 2>&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7378 echo "$as_me: program exited with status $ac_status" >&5
7379 echo "$as_me: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7382 ac_cv_header_stdc=no
7384 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7388 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7389 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7390 if test $ac_cv_header_stdc = yes; then
7392 cat >>confdefs.h <<\_ACEOF
7393 #define STDC_HEADERS 1
7398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7409 inttypes.h stdint.h unistd.h
7411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412 echo "$as_me:$LINENO: checking for $ac_header" >&5
7413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7419 #include "confdefs.h"
7420 $ac_includes_default
7422 #include <$ac_header>
7424 rm -f conftest.$ac_objext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426 (eval $ac_compile) 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 eval "$as_ac_Header=yes"
7438 echo "$as_me: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7440 eval "$as_ac_Header=no"
7442 rm -f conftest.$ac_objext conftest.$ac_ext
7444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7474 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
7476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7478 echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7486 # Is the header compilable?
7487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7490 #line $LINENO "configure"
7491 #include "confdefs.h"
7492 $ac_includes_default
7493 #include <$ac_header>
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497 (eval $ac_compile) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_header_compiler=yes
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 ac_header_compiler=no
7513 rm -f conftest.$ac_objext conftest.$ac_ext
7514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7515 echo "${ECHO_T}$ac_header_compiler" >&6
7517 # Is the header present?
7518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7520 cat >conftest.$ac_ext <<_ACEOF
7521 #line $LINENO "configure"
7522 #include "confdefs.h"
7523 #include <$ac_header>
7525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7528 egrep -v '^ *\+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } >/dev/null; then
7533 if test -s conftest.err; then
7534 ac_cpp_err=$ac_c_preproc_warn_flag
7541 if test -z "$ac_cpp_err"; then
7542 ac_header_preproc=yes
7544 echo "$as_me: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7546 ac_header_preproc=no
7548 rm -f conftest.err conftest.$ac_ext
7549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7550 echo "${ECHO_T}$ac_header_preproc" >&6
7552 # So? What about this header?
7553 case $ac_header_compiler:$ac_header_preproc in
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7567 echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 eval "$as_ac_Header=$ac_header_preproc"
7574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7579 cat >>confdefs.h <<_ACEOF
7580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7589 # netinet/in.h is included first.
7591 for ac_header in netinet/in.h
7593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595 echo "$as_me:$LINENO: checking for $ac_header" >&5
7596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 # Is the header compilable?
7604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7608 #include "confdefs.h"
7609 $ac_includes_default
7610 #include <$ac_header>
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -s conftest.$ac_objext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_header_compiler=yes
7626 echo "$as_me: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7628 ac_header_compiler=no
7630 rm -f conftest.$ac_objext conftest.$ac_ext
7631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7632 echo "${ECHO_T}$ac_header_compiler" >&6
7634 # Is the header present?
7635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line $LINENO "configure"
7639 #include "confdefs.h"
7640 #include <$ac_header>
7642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7645 egrep -v '^ *\+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } >/dev/null; then
7650 if test -s conftest.err; then
7651 ac_cpp_err=$ac_c_preproc_warn_flag
7658 if test -z "$ac_cpp_err"; then
7659 ac_header_preproc=yes
7661 echo "$as_me: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 ac_header_preproc=no
7665 rm -f conftest.err conftest.$ac_ext
7666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7667 echo "${ECHO_T}$ac_header_preproc" >&6
7669 # So? What about this header?
7670 case $ac_header_compiler:$ac_header_preproc in
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7684 echo "$as_me:$LINENO: checking for $ac_header" >&5
7685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 eval "$as_ac_Header=$ac_header_preproc"
7691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7696 cat >>confdefs.h <<_ACEOF
7697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705 for ac_header in netinet/tcp.h
7707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7715 #include "confdefs.h"
7716 $ac_includes_default
7717 #ifdef HAVE_NETINET_IN_H
7718 #include <netinet/in.h>
7722 #include <$ac_header>
7724 rm -f conftest.$ac_objext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726 (eval $ac_compile) 2>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -s conftest.$ac_objext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7736 eval "$as_ac_Header=yes"
7738 echo "$as_me: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 eval "$as_ac_Header=no"
7742 rm -f conftest.$ac_objext conftest.$ac_ext
7744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7747 cat >>confdefs.h <<_ACEOF
7748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7756 if test "$with_readline" = yes; then
7758 for ac_header in readline/readline.h
7760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7762 echo "$as_me:$LINENO: checking for $ac_header" >&5
7763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7770 # Is the header compilable?
7771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 #include "confdefs.h"
7776 $ac_includes_default
7777 #include <$ac_header>
7779 rm -f conftest.$ac_objext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781 (eval $ac_compile) 2>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_header_compiler=yes
7793 echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 ac_header_compiler=no
7797 rm -f conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7806 #include "confdefs.h"
7807 #include <$ac_header>
7809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7812 egrep -v '^ *\+' conftest.er1 >conftest.err
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } >/dev/null; then
7817 if test -s conftest.err; then
7818 ac_cpp_err=$ac_c_preproc_warn_flag
7825 if test -z "$ac_cpp_err"; then
7826 ac_header_preproc=yes
7828 echo "$as_me: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7830 ac_header_preproc=no
7832 rm -f conftest.err conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7834 echo "${ECHO_T}$ac_header_preproc" >&6
7836 # So? What about this header?
7837 case $ac_header_compiler:$ac_header_preproc in
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7851 echo "$as_me:$LINENO: checking for $ac_header" >&5
7852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 eval "$as_ac_Header=$ac_header_preproc"
7858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7863 cat >>confdefs.h <<_ACEOF
7864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7869 for ac_header in readline.h
7871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7873 echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7881 # Is the header compilable?
7882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 #include "confdefs.h"
7887 $ac_includes_default
7888 #include <$ac_header>
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_header_compiler=yes
7904 echo "$as_me: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 ac_header_compiler=no
7908 rm -f conftest.$ac_objext conftest.$ac_ext
7909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7910 echo "${ECHO_T}$ac_header_compiler" >&6
7912 # Is the header present?
7913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 #include <$ac_header>
7920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7923 egrep -v '^ *\+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } >/dev/null; then
7928 if test -s conftest.err; then
7929 ac_cpp_err=$ac_c_preproc_warn_flag
7936 if test -z "$ac_cpp_err"; then
7937 ac_header_preproc=yes
7939 echo "$as_me: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7941 ac_header_preproc=no
7943 rm -f conftest.err conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7945 echo "${ECHO_T}$ac_header_preproc" >&6
7947 # So? What about this header?
7948 case $ac_header_compiler:$ac_header_preproc in
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7962 echo "$as_me:$LINENO: checking for $ac_header" >&5
7963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 eval "$as_ac_Header=$ac_header_preproc"
7969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7974 cat >>confdefs.h <<_ACEOF
7975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979 { { echo "$as_me:$LINENO: error: readline header not found
7980 Use --without-readline to disable readline support." >&5
7981 echo "$as_me: error: readline header not found
7982 Use --without-readline to disable readline support." >&2;}
7983 { (exit 1); exit 1; }; }
7993 for ac_header in readline/history.h
7995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997 echo "$as_me:$LINENO: checking for $ac_header" >&5
7998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8005 # Is the header compilable?
8006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 #include <$ac_header>
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -s conftest.$ac_objext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_header_compiler=yes
8028 echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_header_compiler=no
8032 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8034 echo "${ECHO_T}$ac_header_compiler" >&6
8036 # Is the header present?
8037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 #include <$ac_header>
8044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047 egrep -v '^ *\+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } >/dev/null; then
8052 if test -s conftest.err; then
8053 ac_cpp_err=$ac_c_preproc_warn_flag
8060 if test -z "$ac_cpp_err"; then
8061 ac_header_preproc=yes
8063 echo "$as_me: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8065 ac_header_preproc=no
8067 rm -f conftest.err conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069 echo "${ECHO_T}$ac_header_preproc" >&6
8071 # So? What about this header?
8072 case $ac_header_compiler:$ac_header_preproc in
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 eval "$as_ac_Header=$ac_header_preproc"
8093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098 cat >>confdefs.h <<_ACEOF
8099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 for ac_header in history.h
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108 echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8116 # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 $ac_includes_default
8123 #include <$ac_header>
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 (eval $ac_compile) 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_header_compiler=yes
8139 echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 ac_header_compiler=no
8143 rm -f conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8153 #include <$ac_header>
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158 egrep -v '^ *\+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8171 if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8174 echo "$as_me: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 ac_header_preproc=no
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8182 # So? What about this header?
8183 case $ac_header_compiler:$ac_header_preproc in
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8197 echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 eval "$as_ac_Header=$ac_header_preproc"
8204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209 cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 { { echo "$as_me:$LINENO: error: history header not found
8215 Use --without-readline to disable readline support." >&5
8216 echo "$as_me: error: history header not found
8217 Use --without-readline to disable readline support." >&2;}
8218 { (exit 1); exit 1; }; }
8229 if test "$with_zlib" = yes; then
8230 if test "${ac_cv_header_zlib_h+set}" = set; then
8231 echo "$as_me:$LINENO: checking for zlib.h" >&5
8232 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_zlib_h+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8239 # Is the header compilable?
8240 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8241 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_header_compiler=yes
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_header_compiler=no
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8272 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8281 egrep -v '^ *\+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } >/dev/null; then
8286 if test -s conftest.err; then
8287 ac_cpp_err=$ac_c_preproc_warn_flag
8294 if test -z "$ac_cpp_err"; then
8295 ac_header_preproc=yes
8297 echo "$as_me: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 ac_header_preproc=no
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8305 # So? What about this header?
8306 case $ac_header_compiler:$ac_header_preproc in
8308 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8313 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8320 echo "$as_me:$LINENO: checking for zlib.h" >&5
8321 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_zlib_h+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_cv_header_zlib_h=$ac_header_preproc
8327 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8331 if test $ac_cv_header_zlib_h = yes; then
8334 { { echo "$as_me:$LINENO: error: zlib header not found
8335 Use --without-zlib to disable zlib support." >&5
8336 echo "$as_me: error: zlib header not found
8337 Use --without-zlib to disable zlib support." >&2;}
8338 { (exit 1); exit 1; }; }
8344 if test "$with_krb4" = yes ; then
8345 if test "${ac_cv_header_krb_h+set}" = set; then
8346 echo "$as_me:$LINENO: checking for krb.h" >&5
8347 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8348 if test "${ac_cv_header_krb_h+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8352 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8354 # Is the header compilable?
8355 echo "$as_me:$LINENO: checking krb.h usability" >&5
8356 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8360 $ac_includes_default
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -s conftest.$ac_objext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_header_compiler=yes
8377 echo "$as_me: failed program was:" >&5
8378 cat conftest.$ac_ext >&5
8379 ac_header_compiler=no
8381 rm -f conftest.$ac_objext conftest.$ac_ext
8382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8383 echo "${ECHO_T}$ac_header_compiler" >&6
8385 # Is the header present?
8386 echo "$as_me:$LINENO: checking krb.h presence" >&5
8387 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8390 #include "confdefs.h"
8393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8396 egrep -v '^ *\+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } >/dev/null; then
8401 if test -s conftest.err; then
8402 ac_cpp_err=$ac_c_preproc_warn_flag
8409 if test -z "$ac_cpp_err"; then
8410 ac_header_preproc=yes
8412 echo "$as_me: failed program was:" >&5
8413 cat conftest.$ac_ext >&5
8414 ac_header_preproc=no
8416 rm -f conftest.err conftest.$ac_ext
8417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8418 echo "${ECHO_T}$ac_header_preproc" >&6
8420 # So? What about this header?
8421 case $ac_header_compiler:$ac_header_preproc in
8423 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8424 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8426 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8428 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8429 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8431 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8435 echo "$as_me:$LINENO: checking for krb.h" >&5
8436 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8437 if test "${ac_cv_header_krb_h+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 ac_cv_header_krb_h=$ac_header_preproc
8442 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8443 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8446 if test $ac_cv_header_krb_h = yes; then
8449 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8450 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8451 { (exit 1); exit 1; }; }
8457 if test "$with_krb5" = yes ; then
8458 if test "${ac_cv_header_krb5_h+set}" = set; then
8459 echo "$as_me:$LINENO: checking for krb5.h" >&5
8460 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8461 if test "${ac_cv_header_krb5_h+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8465 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8467 # Is the header compilable?
8468 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8469 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8472 #include "confdefs.h"
8473 $ac_includes_default
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_header_compiler=yes
8490 echo "$as_me: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8492 ac_header_compiler=no
8494 rm -f conftest.$ac_objext conftest.$ac_ext
8495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8496 echo "${ECHO_T}$ac_header_compiler" >&6
8498 # Is the header present?
8499 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8500 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8501 cat >conftest.$ac_ext <<_ACEOF
8502 #line $LINENO "configure"
8503 #include "confdefs.h"
8506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8509 egrep -v '^ *\+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } >/dev/null; then
8514 if test -s conftest.err; then
8515 ac_cpp_err=$ac_c_preproc_warn_flag
8522 if test -z "$ac_cpp_err"; then
8523 ac_header_preproc=yes
8525 echo "$as_me: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8527 ac_header_preproc=no
8529 rm -f conftest.err conftest.$ac_ext
8530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531 echo "${ECHO_T}$ac_header_preproc" >&6
8533 # So? What about this header?
8534 case $ac_header_compiler:$ac_header_preproc in
8536 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8537 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8539 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8541 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8542 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8544 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8546 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8548 echo "$as_me:$LINENO: checking for krb5.h" >&5
8549 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8550 if test "${ac_cv_header_krb5_h+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 ac_cv_header_krb5_h=$ac_header_preproc
8555 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8556 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8559 if test $ac_cv_header_krb5_h = yes; then
8562 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8563 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8564 { (exit 1); exit 1; }; }
8568 if test "${ac_cv_header_com_err_h+set}" = set; then
8569 echo "$as_me:$LINENO: checking for com_err.h" >&5
8570 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8571 if test "${ac_cv_header_com_err_h+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8575 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8577 # Is the header compilable?
8578 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8579 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 #include "confdefs.h"
8583 $ac_includes_default
8584 #include <com_err.h>
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8600 echo "$as_me: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8602 ac_header_compiler=no
8604 rm -f conftest.$ac_objext conftest.$ac_ext
8605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8606 echo "${ECHO_T}$ac_header_compiler" >&6
8608 # Is the header present?
8609 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8610 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8613 #include "confdefs.h"
8614 #include <com_err.h>
8616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8619 egrep -v '^ *\+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } >/dev/null; then
8624 if test -s conftest.err; then
8625 ac_cpp_err=$ac_c_preproc_warn_flag
8632 if test -z "$ac_cpp_err"; then
8633 ac_header_preproc=yes
8635 echo "$as_me: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8637 ac_header_preproc=no
8639 rm -f conftest.err conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8641 echo "${ECHO_T}$ac_header_preproc" >&6
8643 # So? What about this header?
8644 case $ac_header_compiler:$ac_header_preproc in
8646 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8647 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8649 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8651 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8652 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8654 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8656 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8658 echo "$as_me:$LINENO: checking for com_err.h" >&5
8659 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8660 if test "${ac_cv_header_com_err_h+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 ac_cv_header_com_err_h=$ac_header_preproc
8665 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8666 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8669 if test $ac_cv_header_com_err_h = yes; then
8672 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8673 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8674 { (exit 1); exit 1; }; }
8680 if test "$with_openssl" = yes ; then
8681 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8682 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8683 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8684 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8688 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8690 # Is the header compilable?
8691 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8692 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8694 #line $LINENO "configure"
8695 #include "confdefs.h"
8696 $ac_includes_default
8697 #include <openssl/ssl.h>
8699 rm -f conftest.$ac_objext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8701 (eval $ac_compile) 2>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_header_compiler=yes
8713 echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_header_compiler=no
8717 rm -f conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8723 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 #include "confdefs.h"
8727 #include <openssl/ssl.h>
8729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8732 egrep -v '^ *\+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } >/dev/null; then
8737 if test -s conftest.err; then
8738 ac_cpp_err=$ac_c_preproc_warn_flag
8745 if test -z "$ac_cpp_err"; then
8746 ac_header_preproc=yes
8748 echo "$as_me: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8750 ac_header_preproc=no
8752 rm -f conftest.err conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8754 echo "${ECHO_T}$ac_header_preproc" >&6
8756 # So? What about this header?
8757 case $ac_header_compiler:$ac_header_preproc in
8759 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8760 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8764 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8765 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8767 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8769 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8771 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8772 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8773 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8778 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8779 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8782 if test $ac_cv_header_openssl_ssl_h = yes; then
8785 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8786 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8787 { (exit 1); exit 1; }; }
8791 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8792 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8793 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8800 # Is the header compilable?
8801 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8802 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 #include <openssl/err.h>
8809 rm -f conftest.$ac_objext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811 (eval $ac_compile) 2>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_header_compiler=yes
8823 echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_header_compiler=no
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8833 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <openssl/err.h>
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842 egrep -v '^ *\+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } >/dev/null; then
8847 if test -s conftest.err; then
8848 ac_cpp_err=$ac_c_preproc_warn_flag
8855 if test -z "$ac_cpp_err"; then
8856 ac_header_preproc=yes
8858 echo "$as_me: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8860 ac_header_preproc=no
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8866 # So? What about this header?
8867 case $ac_header_compiler:$ac_header_preproc in
8869 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8874 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8881 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8882 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_cv_header_openssl_err_h=$ac_header_preproc
8888 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8889 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8892 if test $ac_cv_header_openssl_err_h = yes; then
8895 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8896 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8897 { (exit 1); exit 1; }; }
8903 if test "$with_pam" = yes ; then
8904 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8905 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8906 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8907 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8911 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8913 # Is the header compilable?
8914 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8915 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 #include "confdefs.h"
8919 $ac_includes_default
8920 #include <security/pam_appl.h>
8922 rm -f conftest.$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924 (eval $ac_compile) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_header_compiler=yes
8936 echo "$as_me: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 ac_header_compiler=no
8940 rm -f conftest.$ac_objext conftest.$ac_ext
8941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8942 echo "${ECHO_T}$ac_header_compiler" >&6
8944 # Is the header present?
8945 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8946 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 #include "confdefs.h"
8950 #include <security/pam_appl.h>
8952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8955 egrep -v '^ *\+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } >/dev/null; then
8960 if test -s conftest.err; then
8961 ac_cpp_err=$ac_c_preproc_warn_flag
8968 if test -z "$ac_cpp_err"; then
8969 ac_header_preproc=yes
8971 echo "$as_me: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 ac_header_preproc=no
8975 rm -f conftest.err conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8977 echo "${ECHO_T}$ac_header_preproc" >&6
8979 # So? What about this header?
8980 case $ac_header_compiler:$ac_header_preproc in
8982 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8983 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8984 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8985 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8987 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8988 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8990 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8992 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8994 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8995 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8996 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 ac_cv_header_security_pam_appl_h=$ac_header_preproc
9001 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9002 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9005 if test $ac_cv_header_security_pam_appl_h = yes; then
9008 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9009 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9010 { (exit 1); exit 1; }; }
9018 ## Types, structures, compiler characteristics
9021 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9022 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9023 if test "${ac_cv_c_const+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 #include "confdefs.h"
9030 #ifdef F77_DUMMY_MAIN
9034 int F77_DUMMY_MAIN() { return 1; }
9039 /* FIXME: Include the comments suggested by Paul. */
9041 /* Ultrix mips cc rejects this. */
9042 typedef int charset[2];
9044 /* SunOS 4.1.1 cc rejects this. */
9045 char const *const *ccp;
9047 /* NEC SVR4.0.2 mips cc rejects this. */
9048 struct point {int x, y;};
9049 static struct point const zero = {0,0};
9050 /* AIX XL C 1.02.0.0 rejects this.
9051 It does not let you subtract one const X* pointer from another in
9052 an arm of an if-expression whose if-part is not a constant
9054 const char *g = "string";
9055 ccp = &g + (g ? g-g : 0);
9056 /* HPUX 7.0 cc rejects these. */
9059 ccp = (char const *const *) p;
9060 { /* SCO 3.2v4 cc rejects this. */
9062 char const *s = 0 ? (char *) 0 : (char const *) 0;
9066 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9068 const int *foo = &x[0];
9071 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9072 typedef const int *iptr;
9076 { /* AIX XL C 1.02.0.0 rejects this saying
9077 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9078 struct s { int j; const int *ap[3]; };
9079 struct s *b; b->j = 5;
9081 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092 (eval $ac_compile) 2>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9104 echo "$as_me: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9108 rm -f conftest.$ac_objext conftest.$ac_ext
9110 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9111 echo "${ECHO_T}$ac_cv_c_const" >&6
9112 if test $ac_cv_c_const = no; then
9114 cat >>confdefs.h <<\_ACEOF
9120 echo "$as_me:$LINENO: checking for inline" >&5
9121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9122 if test "${ac_cv_c_inline+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 for ac_kw in inline __inline__ __inline; do
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9129 #include "confdefs.h"
9131 static $ac_kw int static_foo () {return 0; }
9132 $ac_kw int foo () {return 0; }
9136 rm -f conftest.$ac_objext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -s conftest.$ac_objext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_c_inline=$ac_kw; break
9150 echo "$as_me: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 rm -f conftest.$ac_objext conftest.$ac_ext
9157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9158 echo "${ECHO_T}$ac_cv_c_inline" >&6
9159 case $ac_cv_c_inline in
9162 cat >>confdefs.h <<\_ACEOF
9166 *) cat >>confdefs.h <<_ACEOF
9167 #define inline $ac_cv_c_inline
9172 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9173 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9174 if test "${ac_cv_c_stringize+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 cat >conftest.$ac_ext <<_ACEOF
9178 #line $LINENO "configure"
9179 #include "confdefs.h"
9182 char *s = x(teststring);
9184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9185 egrep "#teststring" >/dev/null 2>&1; then
9186 ac_cv_c_stringize=no
9188 ac_cv_c_stringize=yes
9193 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9194 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9195 if test $ac_cv_c_stringize = yes; then
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_STRINGIZE 1
9203 echo "$as_me:$LINENO: checking for signed types" >&5
9204 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9205 if test "${pgac_cv_c_signed+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 cat >conftest.$ac_ext <<_ACEOF
9209 #line $LINENO "configure"
9210 #include "confdefs.h"
9212 #ifdef F77_DUMMY_MAIN
9216 int F77_DUMMY_MAIN() { return 1; }
9221 signed char c; signed short s; signed int i;
9226 rm -f conftest.$ac_objext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9228 (eval $ac_compile) 2>&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 pgac_cv_c_signed=yes
9240 echo "$as_me: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9244 rm -f conftest.$ac_objext conftest.$ac_ext
9246 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9247 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9248 if test x"$pgac_cv_c_signed" = xno ; then
9250 cat >>confdefs.h <<\_ACEOF
9255 echo "$as_me:$LINENO: checking for working volatile" >&5
9256 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9257 if test "${ac_cv_c_volatile+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 cat >conftest.$ac_ext <<_ACEOF
9261 #line $LINENO "configure"
9262 #include "confdefs.h"
9264 #ifdef F77_DUMMY_MAIN
9268 int F77_DUMMY_MAIN() { return 1; }
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -s conftest.$ac_objext'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
9292 ac_cv_c_volatile=yes
9294 echo "$as_me: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9298 rm -f conftest.$ac_objext conftest.$ac_ext
9300 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9301 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9302 if test $ac_cv_c_volatile = no; then
9304 cat >>confdefs.h <<\_ACEOF
9310 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9311 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9312 if test "${ac_cv_struct_tm+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9316 #line $LINENO "configure"
9317 #include "confdefs.h"
9318 #include <sys/types.h>
9321 #ifdef F77_DUMMY_MAIN
9325 int F77_DUMMY_MAIN() { return 1; }
9330 struct tm *tp; tp->tm_sec;
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 ac_cv_struct_tm=time.h
9349 echo "$as_me: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 ac_cv_struct_tm=sys/time.h
9353 rm -f conftest.$ac_objext conftest.$ac_ext
9355 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9356 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9357 if test $ac_cv_struct_tm = sys/time.h; then
9359 cat >>confdefs.h <<\_ACEOF
9360 #define TM_IN_SYS_TIME 1
9365 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9366 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9367 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 cat >conftest.$ac_ext <<_ACEOF
9371 #line $LINENO "configure"
9372 #include "confdefs.h"
9373 #include <sys/types.h>
9374 #include <$ac_cv_struct_tm>
9377 #ifdef F77_DUMMY_MAIN
9381 int F77_DUMMY_MAIN() { return 1; }
9386 static struct tm ac_aggr;
9387 if (ac_aggr.tm_zone)
9393 rm -f conftest.$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_member_struct_tm_tm_zone=yes
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 ac_cv_member_struct_tm_tm_zone=no
9411 rm -f conftest.$ac_objext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9414 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9415 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9417 cat >>confdefs.h <<_ACEOF
9418 #define HAVE_STRUCT_TM_TM_ZONE 1
9424 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9426 cat >>confdefs.h <<\_ACEOF
9427 #define HAVE_TM_ZONE 1
9431 echo "$as_me:$LINENO: checking for tzname" >&5
9432 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9433 if test "${ac_cv_var_tzname+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9438 #include "confdefs.h"
9440 #ifndef tzname /* For SGI. */
9441 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9444 #ifdef F77_DUMMY_MAIN
9448 int F77_DUMMY_MAIN() { return 1; }
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9460 (eval $ac_link) 2>&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -s conftest$ac_exeext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 ac_cv_var_tzname=yes
9472 echo "$as_me: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9478 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9479 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9480 if test $ac_cv_var_tzname = yes; then
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_TZNAME 1
9489 echo "$as_me:$LINENO: checking for union semun" >&5
9490 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9491 if test "${ac_cv_type_union_semun+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9497 #include <sys/types.h>
9498 #include <sys/ipc.h>
9499 #include <sys/sem.h>
9501 #ifdef F77_DUMMY_MAIN
9505 int F77_DUMMY_MAIN() { return 1; }
9510 if ((union semun *) 0)
9512 if (sizeof (union semun))
9518 rm -f conftest.$ac_objext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520 (eval $ac_compile) 2>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -s conftest.$ac_objext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_cv_type_union_semun=yes
9532 echo "$as_me: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9534 ac_cv_type_union_semun=no
9536 rm -f conftest.$ac_objext conftest.$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9539 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9540 if test $ac_cv_type_union_semun = yes; then
9542 cat >>confdefs.h <<_ACEOF
9543 #define HAVE_UNION_SEMUN 1
9549 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9550 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9551 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 #include "confdefs.h"
9557 #include <sys/types.h>
9558 #ifdef HAVE_SYS_UN_H
9563 #ifdef F77_DUMMY_MAIN
9567 int F77_DUMMY_MAIN() { return 1; }
9572 if ((struct sockaddr_un *) 0)
9574 if (sizeof (struct sockaddr_un))
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -s conftest.$ac_objext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_type_struct_sockaddr_un=yes
9594 echo "$as_me: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 ac_cv_type_struct_sockaddr_un=no
9598 rm -f conftest.$ac_objext conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9601 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9602 if test $ac_cv_type_struct_sockaddr_un = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_STRUCT_SOCKADDR_UN 1
9612 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9613 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9614 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 cat >conftest.$ac_ext <<_ACEOF
9618 #line $LINENO "configure"
9619 #include "confdefs.h"
9620 #include <sys/param.h>
9621 #include <sys/socket.h>
9622 #include <sys/ucred.h>
9624 #ifdef F77_DUMMY_MAIN
9628 int F77_DUMMY_MAIN() { return 1; }
9633 if ((struct cmsgcred *) 0)
9635 if (sizeof (struct cmsgcred))
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -s conftest.$ac_objext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_cv_type_struct_cmsgcred=yes
9655 echo "$as_me: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
9657 ac_cv_type_struct_cmsgcred=no
9659 rm -f conftest.$ac_objext conftest.$ac_ext
9661 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9662 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9663 if test $ac_cv_type_struct_cmsgcred = yes; then
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_STRUCT_CMSGCRED 1
9671 echo "$as_me:$LINENO: checking for struct fcred" >&5
9672 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9673 if test "${ac_cv_type_struct_fcred+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9677 #line $LINENO "configure"
9678 #include "confdefs.h"
9679 #include <sys/param.h>
9680 #include <sys/socket.h>
9681 #include <sys/ucred.h>
9683 #ifdef F77_DUMMY_MAIN
9687 int F77_DUMMY_MAIN() { return 1; }
9692 if ((struct fcred *) 0)
9694 if (sizeof (struct fcred))
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_cv_type_struct_fcred=yes
9714 echo "$as_me: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 ac_cv_type_struct_fcred=no
9718 rm -f conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9721 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9722 if test $ac_cv_type_struct_fcred = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define HAVE_STRUCT_FCRED 1
9730 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9731 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9732 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 cat >conftest.$ac_ext <<_ACEOF
9736 #line $LINENO "configure"
9737 #include "confdefs.h"
9738 #include <sys/param.h>
9739 #include <sys/socket.h>
9740 #include <sys/ucred.h>
9742 #ifdef F77_DUMMY_MAIN
9746 int F77_DUMMY_MAIN() { return 1; }
9751 if ((struct sockcred *) 0)
9753 if (sizeof (struct sockcred))
9759 rm -f conftest.$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761 (eval $ac_compile) 2>&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -s conftest.$ac_objext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_type_struct_sockcred=yes
9773 echo "$as_me: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 ac_cv_type_struct_sockcred=no
9777 rm -f conftest.$ac_objext conftest.$ac_ext
9779 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9780 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9781 if test $ac_cv_type_struct_sockcred = yes; then
9783 cat >>confdefs.h <<_ACEOF
9784 #define HAVE_STRUCT_SOCKCRED 1
9791 if test "$with_zlib" = yes; then
9792 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9793 # did not). While we could work around the lack of z_streamp, it
9794 # seems unwise to encourage people to use such old zlib versions...
9795 echo "$as_me:$LINENO: checking for z_streamp" >&5
9796 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9797 if test "${ac_cv_type_z_streamp+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 cat >conftest.$ac_ext <<_ACEOF
9801 #line $LINENO "configure"
9802 #include "confdefs.h"
9805 #ifdef F77_DUMMY_MAIN
9809 int F77_DUMMY_MAIN() { return 1; }
9814 if ((z_streamp *) 0)
9816 if (sizeof (z_streamp))
9822 rm -f conftest.$ac_objext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824 (eval $ac_compile) 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -s conftest.$ac_objext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 ac_cv_type_z_streamp=yes
9836 echo "$as_me: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 ac_cv_type_z_streamp=no
9840 rm -f conftest.$ac_objext conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9843 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9844 if test $ac_cv_type_z_streamp = yes; then
9847 { { echo "$as_me:$LINENO: error: zlib version is too old
9848 Use --without-zlib to disable zlib support." >&5
9849 echo "$as_me: error: zlib version is too old
9850 Use --without-zlib to disable zlib support." >&2;}
9851 { (exit 1); exit 1; }; }
9856 if test "$with_krb5" = yes; then
9857 # Check for differences between MIT and Heimdal (KTH) releases
9858 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9859 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9860 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9868 #ifdef F77_DUMMY_MAIN
9872 int F77_DUMMY_MAIN() { return 1; }
9877 static krb5_ticket ac_aggr;
9878 if (ac_aggr.enc_part2)
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
9890 { ac_try='test -s conftest.$ac_objext'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_member_krb5_ticket_enc_part2=yes
9898 echo "$as_me: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9900 ac_cv_member_krb5_ticket_enc_part2=no
9902 rm -f conftest.$ac_objext conftest.$ac_ext
9904 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9905 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9906 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9908 cat >>confdefs.h <<_ACEOF
9909 #define HAVE_KRB5_TICKET_ENC_PART2 1
9914 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9915 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9916 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 #include "confdefs.h"
9924 #ifdef F77_DUMMY_MAIN
9928 int F77_DUMMY_MAIN() { return 1; }
9933 static krb5_ticket ac_aggr;
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -s conftest.$ac_objext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_member_krb5_ticket_client=yes
9954 echo "$as_me: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 ac_cv_member_krb5_ticket_client=no
9958 rm -f conftest.$ac_objext conftest.$ac_ext
9960 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9961 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9962 if test $ac_cv_member_krb5_ticket_client = yes; then
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_KRB5_TICKET_CLIENT 1
9970 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9971 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9972 { (exit 1); exit 1; }; }
9977 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9978 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9979 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9984 #include "confdefs.h"
9987 #ifdef F77_DUMMY_MAIN
9991 int F77_DUMMY_MAIN() { return 1; }
9996 static krb5_error ac_aggr;
9997 if (ac_aggr.text.data)
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005 (eval $ac_compile) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -s conftest.$ac_objext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_member_krb5_error_text_data=yes
10017 echo "$as_me: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10019 ac_cv_member_krb5_error_text_data=no
10021 rm -f conftest.$ac_objext conftest.$ac_ext
10023 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10024 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10025 if test $ac_cv_member_krb5_error_text_data = yes; then
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10033 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10034 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10035 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10039 #line $LINENO "configure"
10040 #include "confdefs.h"
10043 #ifdef F77_DUMMY_MAIN
10044 # ifdef __cplusplus
10047 int F77_DUMMY_MAIN() { return 1; }
10052 static krb5_error ac_aggr;
10053 if (ac_aggr.e_data)
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061 (eval $ac_compile) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -s conftest.$ac_objext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_member_krb5_error_e_data=yes
10073 echo "$as_me: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 ac_cv_member_krb5_error_e_data=no
10077 rm -f conftest.$ac_objext conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10080 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10081 if test $ac_cv_member_krb5_error_e_data = yes; then
10084 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10085 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10086 { (exit 1); exit 1; }; }
10095 ## Functions, global variables
10097 echo "$as_me:$LINENO: checking for int timezone" >&5
10098 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10099 if test "${pgac_cv_var_int_timezone+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 cat >conftest.$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10104 #include "confdefs.h"
10107 #ifdef F77_DUMMY_MAIN
10108 # ifdef __cplusplus
10111 int F77_DUMMY_MAIN() { return 1; }
10116 res = timezone / 60;
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123 (eval $ac_link) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 pgac_cv_var_int_timezone=yes
10135 echo "$as_me: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 pgac_cv_var_int_timezone=no
10139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10141 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10142 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10143 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_INT_TIMEZONE
10150 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10151 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10152 if test "${ac_cv_func_accept_arg1+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 if test "${ac_cv_func_accept_arg2+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 if test "${ac_cv_func_accept_arg3+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10162 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10163 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10164 cat >conftest.$ac_ext <<_ACEOF
10165 #line $LINENO "configure"
10166 #include "confdefs.h"
10167 #ifdef HAVE_SYS_TYPES_H
10168 #include <sys/types.h>
10170 #ifdef HAVE_SYS_SOCKET_H
10171 #include <sys/socket.h>
10173 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10174 #ifdef F77_DUMMY_MAIN
10175 # ifdef __cplusplus
10178 int F77_DUMMY_MAIN() { return 1; }
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -s conftest.$ac_objext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 ac_not_found=no; break 3
10202 echo "$as_me: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10210 if test "$ac_not_found" = yes; then
10211 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10212 echo "$as_me: error: could not determine argument types" >&2;}
10213 { (exit 1); exit 1; }; }
10215 if test "$ac_cv_func_accept_arg3" = "void"; then
10216 ac_cv_func_accept_arg3=int
10224 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10225 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10227 cat >>confdefs.h <<_ACEOF
10228 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10232 cat >>confdefs.h <<_ACEOF
10233 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10237 cat >>confdefs.h <<_ACEOF
10238 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10242 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10243 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10244 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 cat >conftest.$ac_ext <<_ACEOF
10248 #line $LINENO "configure"
10249 #include "confdefs.h"
10250 #include <sys/time.h>
10251 #ifdef F77_DUMMY_MAIN
10252 # ifdef __cplusplus
10255 int F77_DUMMY_MAIN() { return 1; }
10260 struct timeval *tp;
10261 struct timezone *tzp;
10262 gettimeofday(tp,tzp);
10267 rm -f conftest.$ac_objext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269 (eval $ac_compile) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 pgac_cv_func_gettimeofday_1arg=no
10281 echo "$as_me: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 pgac_cv_func_gettimeofday_1arg=yes
10285 rm -f conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10288 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10289 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10291 cat >>confdefs.h <<\_ACEOF
10292 #define GETTIMEOFDAY_1ARG
10297 # SunOS doesn't handle negative byte comparisons properly with +/- return
10298 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10299 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10300 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 if test "$cross_compiling" = yes; then
10304 pgac_cv_func_memcmp_clean=no
10306 cat >conftest.$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10308 #include "confdefs.h"
10312 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10313 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10317 rm -f conftest$ac_exeext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319 (eval $ac_link) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 pgac_cv_func_memcmp_clean=yes
10330 echo "$as_me: program exited with status $ac_status" >&5
10331 echo "$as_me: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 ( exit $ac_status )
10334 pgac_cv_func_memcmp_clean=no
10336 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10340 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10341 if test $pgac_cv_func_memcmp_clean = no ; then
10360 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10363 echo "$as_me:$LINENO: checking for $ac_func" >&5
10364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10365 if eval "test \"\${$as_ac_var+set}\" = set"; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 #include "confdefs.h"
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func (); below. */
10373 #include <assert.h>
10374 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10383 #ifdef F77_DUMMY_MAIN
10384 # ifdef __cplusplus
10387 int F77_DUMMY_MAIN() { return 1; }
10392 /* The GNU C library defines this for functions which it implements
10393 to always fail with ENOSYS. Some functions are actually named
10394 something starting with __ and the normal name is an alias. */
10395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 eval "$as_ac_var=yes"
10419 echo "$as_me: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 eval "$as_ac_var=no"
10423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10427 if test `eval echo '${'$as_ac_var'}'` = yes; then
10428 cat >>confdefs.h <<_ACEOF
10429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10436 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10437 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10438 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 cat >conftest.$ac_ext <<_ACEOF
10442 #line $LINENO "configure"
10443 #include "confdefs.h"
10444 #include <unistd.h>
10446 #ifdef F77_DUMMY_MAIN
10447 # ifdef __cplusplus
10450 int F77_DUMMY_MAIN() { return 1; }
10456 char *p = (char *) fdatasync;
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -s conftest.$ac_objext'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 ac_cv_have_decl_fdatasync=yes
10477 echo "$as_me: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 ac_cv_have_decl_fdatasync=no
10481 rm -f conftest.$ac_objext conftest.$ac_ext
10483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10484 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10485 if test $ac_cv_have_decl_fdatasync = yes; then
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_DECL_FDATASYNC 1
10493 cat >>confdefs.h <<_ACEOF
10494 #define HAVE_DECL_FDATASYNC 0
10502 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10503 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10504 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10510 #include <machine/vmparam.h>
10511 #include <sys/exec.h>
10513 #ifdef F77_DUMMY_MAIN
10514 # ifdef __cplusplus
10517 int F77_DUMMY_MAIN() { return 1; }
10522 PS_STRINGS->ps_nargvstr = 1;
10523 PS_STRINGS->ps_argvstr = "foo";
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 pgac_cv_var_PS_STRINGS=yes
10542 echo "$as_me: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10544 pgac_cv_var_PS_STRINGS=no
10546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10548 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10549 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10550 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10552 cat >>confdefs.h <<\_ACEOF
10553 #define HAVE_PS_STRINGS
10559 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10560 # is missing. Yes, there are machines that have only one. We may
10561 # also decide to use snprintf.c if snprintf() is present but does not
10562 # have working "long long int" support -- see below.
10566 for ac_func in snprintf
10568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10569 echo "$as_me:$LINENO: checking for $ac_func" >&5
10570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10571 if eval "test \"\${$as_ac_var+set}\" = set"; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char $ac_func (); below. */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error. */
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10589 #ifdef F77_DUMMY_MAIN
10590 # ifdef __cplusplus
10593 int F77_DUMMY_MAIN() { return 1; }
10598 /* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest$ac_exeext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 eval "$as_ac_var=yes"
10625 echo "$as_me: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 eval "$as_ac_var=no"
10629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10639 SNPRINTF='snprintf.o'
10644 for ac_func in vsnprintf
10646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 echo "$as_me:$LINENO: checking for $ac_func" >&5
10648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10649 if eval "test \"\${$as_ac_var+set}\" = set"; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10654 #include "confdefs.h"
10655 /* System header to define __stub macros and hopefully few prototypes,
10656 which can conflict with char $ac_func (); below. */
10657 #include <assert.h>
10658 /* Override any gcc2 internal prototype to avoid an error. */
10662 /* We use char because int might match the return type of a gcc2
10663 builtin and then its argument prototype would still apply. */
10667 #ifdef F77_DUMMY_MAIN
10668 # ifdef __cplusplus
10671 int F77_DUMMY_MAIN() { return 1; }
10676 /* The GNU C library defines this for functions which it implements
10677 to always fail with ENOSYS. Some functions are actually named
10678 something starting with __ and the normal name is an alias. */
10679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691 (eval $ac_link) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -s conftest$ac_exeext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 eval "$as_ac_var=yes"
10703 echo "$as_me: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 eval "$as_ac_var=no"
10707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10711 if test `eval echo '${'$as_ac_var'}'` = yes; then
10712 cat >>confdefs.h <<_ACEOF
10713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10717 SNPRINTF='snprintf.o'
10724 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10725 # include/c.h will provide declarations. Note this is a separate test
10726 # from whether the functions exist in the C library --- there are
10727 # systems that have the functions but don't bother to declare them :-(
10729 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10730 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10731 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10735 #line $LINENO "configure"
10736 #include "confdefs.h"
10737 $ac_includes_default
10738 #ifdef F77_DUMMY_MAIN
10739 # ifdef __cplusplus
10742 int F77_DUMMY_MAIN() { return 1; }
10748 char *p = (char *) snprintf;
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10757 (eval $ac_compile) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_have_decl_snprintf=yes
10769 echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 ac_cv_have_decl_snprintf=no
10773 rm -f conftest.$ac_objext conftest.$ac_ext
10775 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10776 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10777 if test $ac_cv_have_decl_snprintf = yes; then
10779 cat >>confdefs.h <<_ACEOF
10780 #define HAVE_DECL_SNPRINTF 1
10785 cat >>confdefs.h <<_ACEOF
10786 #define HAVE_DECL_SNPRINTF 0
10791 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10792 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10793 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 #include "confdefs.h"
10799 $ac_includes_default
10800 #ifdef F77_DUMMY_MAIN
10801 # ifdef __cplusplus
10804 int F77_DUMMY_MAIN() { return 1; }
10810 char *p = (char *) vsnprintf;
10817 rm -f conftest.$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_have_decl_vsnprintf=yes
10831 echo "$as_me: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 ac_cv_have_decl_vsnprintf=no
10835 rm -f conftest.$ac_objext conftest.$ac_ext
10837 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10838 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10839 if test $ac_cv_have_decl_vsnprintf = yes; then
10841 cat >>confdefs.h <<_ACEOF
10842 #define HAVE_DECL_VSNPRINTF 1
10847 cat >>confdefs.h <<_ACEOF
10848 #define HAVE_DECL_VSNPRINTF 0
10857 # do this one the hard way in case isinf() is a macro
10858 echo "$as_me:$LINENO: checking for isinf" >&5
10859 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10860 if test "${ac_cv_func_isinf+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 cat >conftest.$ac_ext <<_ACEOF
10864 #line $LINENO "configure"
10865 #include "confdefs.h"
10868 #ifdef F77_DUMMY_MAIN
10869 # ifdef __cplusplus
10872 int F77_DUMMY_MAIN() { return 1; }
10877 double x = 0.0; int res = isinf(x);
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_func_isinf=yes
10896 echo "$as_me: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 ac_cv_func_isinf=no
10900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10902 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10903 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10905 if test $ac_cv_func_isinf = yes ; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_ISINF 1
10914 # Look for a way to implement a substitute for isinf()
10919 for ac_func in fpclass fp_class fp_class_d class
10921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 echo "$as_me:$LINENO: checking for $ac_func" >&5
10923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10924 if eval "test \"\${$as_ac_var+set}\" = set"; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 cat >conftest.$ac_ext <<_ACEOF
10928 #line $LINENO "configure"
10929 #include "confdefs.h"
10930 /* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char $ac_func (); below. */
10932 #include <assert.h>
10933 /* Override any gcc2 internal prototype to avoid an error. */
10937 /* We use char because int might match the return type of a gcc2
10938 builtin and then its argument prototype would still apply. */
10942 #ifdef F77_DUMMY_MAIN
10943 # ifdef __cplusplus
10946 int F77_DUMMY_MAIN() { return 1; }
10951 /* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 eval "$as_ac_var=yes"
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 eval "$as_ac_var=no"
10982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10986 if test `eval echo '${'$as_ac_var'}'` = yes; then
10987 cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10999 for ac_func in getrusage
11001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002 echo "$as_me:$LINENO: checking for $ac_func" >&5
11003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11004 if eval "test \"\${$as_ac_var+set}\" = set"; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11010 /* System header to define __stub macros and hopefully few prototypes,
11011 which can conflict with char $ac_func (); below. */
11012 #include <assert.h>
11013 /* Override any gcc2 internal prototype to avoid an error. */
11017 /* We use char because int might match the return type of a gcc2
11018 builtin and then its argument prototype would still apply. */
11022 #ifdef F77_DUMMY_MAIN
11023 # ifdef __cplusplus
11026 int F77_DUMMY_MAIN() { return 1; }
11031 /* The GNU C library defines this for functions which it implements
11032 to always fail with ENOSYS. Some functions are actually named
11033 something starting with __ and the normal name is an alias. */
11034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11046 (eval $ac_link) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -s conftest$ac_exeext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 eval "$as_ac_var=yes"
11058 echo "$as_me: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11060 eval "$as_ac_var=no"
11062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11066 if test `eval echo '${'$as_ac_var'}'` = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11072 GETRUSAGE='getrusage.o'
11078 for ac_func in srandom
11080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 echo "$as_me:$LINENO: checking for $ac_func" >&5
11082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11083 if eval "test \"\${$as_ac_var+set}\" = set"; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 cat >conftest.$ac_ext <<_ACEOF
11087 #line $LINENO "configure"
11088 #include "confdefs.h"
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char $ac_func (); below. */
11091 #include <assert.h>
11092 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11101 #ifdef F77_DUMMY_MAIN
11102 # ifdef __cplusplus
11105 int F77_DUMMY_MAIN() { return 1; }
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -s conftest$ac_exeext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 eval "$as_ac_var=yes"
11137 echo "$as_me: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 eval "$as_ac_var=no"
11141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11145 if test `eval echo '${'$as_ac_var'}'` = yes; then
11146 cat >>confdefs.h <<_ACEOF
11147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11151 SRANDOM='srandom.o'
11157 for ac_func in gethostname
11159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11160 echo "$as_me:$LINENO: checking for $ac_func" >&5
11161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11162 if eval "test \"\${$as_ac_var+set}\" = set"; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 cat >conftest.$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11167 #include "confdefs.h"
11168 /* System header to define __stub macros and hopefully few prototypes,
11169 which can conflict with char $ac_func (); below. */
11170 #include <assert.h>
11171 /* Override any gcc2 internal prototype to avoid an error. */
11175 /* We use char because int might match the return type of a gcc2
11176 builtin and then its argument prototype would still apply. */
11180 #ifdef F77_DUMMY_MAIN
11181 # ifdef __cplusplus
11184 int F77_DUMMY_MAIN() { return 1; }
11189 /* The GNU C library defines this for functions which it implements
11190 to always fail with ENOSYS. Some functions are actually named
11191 something starting with __ and the normal name is an alias. */
11192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -s conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 eval "$as_ac_var=yes"
11216 echo "$as_me: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11218 eval "$as_ac_var=no"
11220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11224 if test `eval echo '${'$as_ac_var'}'` = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11230 GETHOSTNAME='gethostname.o'
11236 for ac_func in random
11238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11239 echo "$as_me:$LINENO: checking for $ac_func" >&5
11240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_var+set}\" = set"; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 cat >conftest.$ac_ext <<_ACEOF
11245 #line $LINENO "configure"
11246 #include "confdefs.h"
11247 /* System header to define __stub macros and hopefully few prototypes,
11248 which can conflict with char $ac_func (); below. */
11249 #include <assert.h>
11250 /* Override any gcc2 internal prototype to avoid an error. */
11254 /* We use char because int might match the return type of a gcc2
11255 builtin and then its argument prototype would still apply. */
11259 #ifdef F77_DUMMY_MAIN
11260 # ifdef __cplusplus
11263 int F77_DUMMY_MAIN() { return 1; }
11268 /* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
11271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283 (eval $ac_link) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } &&
11287 { ac_try='test -s conftest$ac_exeext'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 eval "$as_ac_var=yes"
11295 echo "$as_me: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11297 eval "$as_ac_var=no"
11299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11303 if test `eval echo '${'$as_ac_var'}'` = yes; then
11304 cat >>confdefs.h <<_ACEOF
11305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 MISSING_RANDOM='random.o'
11315 for ac_func in inet_aton
11317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11318 echo "$as_me:$LINENO: checking for $ac_func" >&5
11319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11320 if eval "test \"\${$as_ac_var+set}\" = set"; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 cat >conftest.$ac_ext <<_ACEOF
11324 #line $LINENO "configure"
11325 #include "confdefs.h"
11326 /* System header to define __stub macros and hopefully few prototypes,
11327 which can conflict with char $ac_func (); below. */
11328 #include <assert.h>
11329 /* Override any gcc2 internal prototype to avoid an error. */
11333 /* We use char because int might match the return type of a gcc2
11334 builtin and then its argument prototype would still apply. */
11338 #ifdef F77_DUMMY_MAIN
11339 # ifdef __cplusplus
11342 int F77_DUMMY_MAIN() { return 1; }
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360 rm -f conftest.$ac_objext conftest$ac_exeext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11372 eval "$as_ac_var=yes"
11374 echo "$as_me: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11376 eval "$as_ac_var=no"
11378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11382 if test `eval echo '${'$as_ac_var'}'` = yes; then
11383 cat >>confdefs.h <<_ACEOF
11384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11388 INET_ATON='inet_aton.o'
11394 for ac_func in strerror
11396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11397 echo "$as_me:$LINENO: checking for $ac_func" >&5
11398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11399 if eval "test \"\${$as_ac_var+set}\" = set"; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 cat >conftest.$ac_ext <<_ACEOF
11403 #line $LINENO "configure"
11404 #include "confdefs.h"
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below. */
11407 #include <assert.h>
11408 /* Override any gcc2 internal prototype to avoid an error. */
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11417 #ifdef F77_DUMMY_MAIN
11418 # ifdef __cplusplus
11421 int F77_DUMMY_MAIN() { return 1; }
11426 /* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -s conftest$ac_exeext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 eval "$as_ac_var=yes"
11453 echo "$as_me: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 eval "$as_ac_var=no"
11457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11467 STRERROR='strerror.o'
11473 for ac_func in strdup
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11478 if eval "test \"\${$as_ac_var+set}\" = set"; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11484 /* System header to define __stub macros and hopefully few prototypes,
11485 which can conflict with char $ac_func (); below. */
11486 #include <assert.h>
11487 /* Override any gcc2 internal prototype to avoid an error. */
11491 /* We use char because int might match the return type of a gcc2
11492 builtin and then its argument prototype would still apply. */
11496 #ifdef F77_DUMMY_MAIN
11497 # ifdef __cplusplus
11500 int F77_DUMMY_MAIN() { return 1; }
11505 /* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 eval "$as_ac_var=yes"
11532 echo "$as_me: failed program was:" >&5
11533 cat conftest.$ac_ext >&5
11534 eval "$as_ac_var=no"
11536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11540 if test `eval echo '${'$as_ac_var'}'` = yes; then
11541 cat >>confdefs.h <<_ACEOF
11542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11546 STRDUP='../../utils/strdup.o'
11552 for ac_func in strtol
11554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11555 echo "$as_me:$LINENO: checking for $ac_func" >&5
11556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_var+set}\" = set"; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 cat >conftest.$ac_ext <<_ACEOF
11561 #line $LINENO "configure"
11562 #include "confdefs.h"
11563 /* System header to define __stub macros and hopefully few prototypes,
11564 which can conflict with char $ac_func (); below. */
11565 #include <assert.h>
11566 /* Override any gcc2 internal prototype to avoid an error. */
11570 /* We use char because int might match the return type of a gcc2
11571 builtin and then its argument prototype would still apply. */
11575 #ifdef F77_DUMMY_MAIN
11576 # ifdef __cplusplus
11579 int F77_DUMMY_MAIN() { return 1; }
11584 /* The GNU C library defines this for functions which it implements
11585 to always fail with ENOSYS. Some functions are actually named
11586 something starting with __ and the normal name is an alias. */
11587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -s conftest$ac_exeext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 eval "$as_ac_var=yes"
11611 echo "$as_me: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 eval "$as_ac_var=no"
11615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11619 if test `eval echo '${'$as_ac_var'}'` = yes; then
11620 cat >>confdefs.h <<_ACEOF
11621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11631 for ac_func in strtoul
11633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11634 echo "$as_me:$LINENO: checking for $ac_func" >&5
11635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11636 if eval "test \"\${$as_ac_var+set}\" = set"; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 cat >conftest.$ac_ext <<_ACEOF
11640 #line $LINENO "configure"
11641 #include "confdefs.h"
11642 /* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char $ac_func (); below. */
11644 #include <assert.h>
11645 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11654 #ifdef F77_DUMMY_MAIN
11655 # ifdef __cplusplus
11658 int F77_DUMMY_MAIN() { return 1; }
11663 /* The GNU C library defines this for functions which it implements
11664 to always fail with ENOSYS. Some functions are actually named
11665 something starting with __ and the normal name is an alias. */
11666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "$as_ac_var=yes"
11690 echo "$as_me: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 eval "$as_ac_var=no"
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699 cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11704 STRTOUL='strtoul.o'
11710 for ac_func in strcasecmp
11712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11713 echo "$as_me:$LINENO: checking for $ac_func" >&5
11714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11715 if eval "test \"\${$as_ac_var+set}\" = set"; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11719 #line $LINENO "configure"
11720 #include "confdefs.h"
11721 /* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below. */
11723 #include <assert.h>
11724 /* Override any gcc2 internal prototype to avoid an error. */
11728 /* We use char because int might match the return type of a gcc2
11729 builtin and then its argument prototype would still apply. */
11733 #ifdef F77_DUMMY_MAIN
11734 # ifdef __cplusplus
11737 int F77_DUMMY_MAIN() { return 1; }
11742 /* The GNU C library defines this for functions which it implements
11743 to always fail with ENOSYS. Some functions are actually named
11744 something starting with __ and the normal name is an alias. */
11745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757 (eval $ac_link) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 eval "$as_ac_var=yes"
11769 echo "$as_me: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11771 eval "$as_ac_var=no"
11773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11777 if test `eval echo '${'$as_ac_var'}'` = yes; then
11778 cat >>confdefs.h <<_ACEOF
11779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783 STRCASECMP='strcasecmp.o'
11789 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11790 # this hackery with HPUXMATHLIB allows us to cope.
11794 if [ -r /lib/pa1.1/libm.a ] ; then
11795 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11801 for ac_func in rint
11803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804 echo "$as_me:$LINENO: checking for $ac_func" >&5
11805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11806 if eval "test \"\${$as_ac_var+set}\" = set"; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 cat >conftest.$ac_ext <<_ACEOF
11810 #line $LINENO "configure"
11811 #include "confdefs.h"
11812 /* System header to define __stub macros and hopefully few prototypes,
11813 which can conflict with char $ac_func (); below. */
11814 #include <assert.h>
11815 /* Override any gcc2 internal prototype to avoid an error. */
11819 /* We use char because int might match the return type of a gcc2
11820 builtin and then its argument prototype would still apply. */
11824 #ifdef F77_DUMMY_MAIN
11825 # ifdef __cplusplus
11828 int F77_DUMMY_MAIN() { return 1; }
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848 (eval $ac_link) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -s conftest$ac_exeext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 eval "$as_ac_var=yes"
11860 echo "$as_me: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 eval "$as_ac_var=no"
11864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11868 if test `eval echo '${'$as_ac_var'}'` = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11874 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11875 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11876 if test "${ac_cv_lib_m_rint+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lm $HPUXMATHLIB $LIBS"
11881 cat >conftest.$ac_ext <<_ACEOF
11882 #line $LINENO "configure"
11883 #include "confdefs.h"
11885 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11892 #ifdef F77_DUMMY_MAIN
11893 # ifdef __cplusplus
11896 int F77_DUMMY_MAIN() { return 1; }
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_lib_m_rint=yes
11920 echo "$as_me: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 ac_cv_lib_m_rint=no
11924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11928 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11929 if test $ac_cv_lib_m_rint = yes; then
11930 cat >>confdefs.h <<\_ACEOF
11931 #define HAVE_RINT 1
11941 if test "$with_readline" = yes; then
11942 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11943 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11946 #include "confdefs.h"
11948 #ifdef HAVE_READLINE_READLINE_H
11949 # include <readline/readline.h>
11950 #elif defined(HAVE_READLINE_H)
11951 # include <readline.h>
11954 #ifdef F77_DUMMY_MAIN
11955 # ifdef __cplusplus
11958 int F77_DUMMY_MAIN() { return 1; }
11963 rl_completion_append_character = 'x';
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -s conftest$ac_exeext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 echo "$as_me:$LINENO: result: yes" >&5
11981 echo "${ECHO_T}yes" >&6
11983 cat >>confdefs.h <<\_ACEOF
11984 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11988 echo "$as_me: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 echo "$as_me:$LINENO: result: no" >&5
11991 echo "${ECHO_T}no" >&6
11993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11996 for ac_func in rl_completion_matches rl_filename_completion_function
11998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999 echo "$as_me:$LINENO: checking for $ac_func" >&5
12000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12001 if eval "test \"\${$as_ac_var+set}\" = set"; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 #include "confdefs.h"
12007 /* System header to define __stub macros and hopefully few prototypes,
12008 which can conflict with char $ac_func (); below. */
12009 #include <assert.h>
12010 /* Override any gcc2 internal prototype to avoid an error. */
12014 /* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12019 #ifdef F77_DUMMY_MAIN
12020 # ifdef __cplusplus
12023 int F77_DUMMY_MAIN() { return 1; }
12028 /* The GNU C library defines this for functions which it implements
12029 to always fail with ENOSYS. Some functions are actually named
12030 something starting with __ and the normal name is an alias. */
12031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12041 rm -f conftest.$ac_objext conftest$ac_exeext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12043 (eval $ac_link) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12055 echo "$as_me: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12057 eval "$as_ac_var=no"
12059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12063 if test `eval echo '${'$as_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12074 echo "$as_me:$LINENO: checking for finite" >&5
12075 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 #line $LINENO "configure"
12078 #include "confdefs.h"
12080 #ifdef F77_DUMMY_MAIN
12081 # ifdef __cplusplus
12084 int F77_DUMMY_MAIN() { return 1; }
12089 int dummy=finite(1.0);
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12107 cat >>confdefs.h <<\_ACEOF
12108 #define HAVE_FINITE 1
12111 echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12114 echo "$as_me: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12116 echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6
12119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12121 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12122 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12124 #line $LINENO "configure"
12125 #include "confdefs.h"
12126 #include <setjmp.h>
12127 #ifdef F77_DUMMY_MAIN
12128 # ifdef __cplusplus
12131 int F77_DUMMY_MAIN() { return 1; }
12136 sigjmp_buf x; sigsetjmp(x, 1);
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143 (eval $ac_link) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_SIGSETJMP 1
12158 echo "$as_me:$LINENO: result: yes" >&5
12159 echo "${ECHO_T}yes" >&6
12161 echo "$as_me: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163 echo "$as_me:$LINENO: result: no" >&5
12164 echo "${ECHO_T}no" >&6
12166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12169 for ac_func in syslog
12171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172 echo "$as_me:$LINENO: checking for $ac_func" >&5
12173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12174 if eval "test \"\${$as_ac_var+set}\" = set"; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12179 #include "confdefs.h"
12180 /* System header to define __stub macros and hopefully few prototypes,
12181 which can conflict with char $ac_func (); below. */
12182 #include <assert.h>
12183 /* Override any gcc2 internal prototype to avoid an error. */
12187 /* We use char because int might match the return type of a gcc2
12188 builtin and then its argument prototype would still apply. */
12192 #ifdef F77_DUMMY_MAIN
12193 # ifdef __cplusplus
12196 int F77_DUMMY_MAIN() { return 1; }
12201 /* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 eval "$as_ac_var=yes"
12228 echo "$as_me: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 eval "$as_ac_var=no"
12232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12236 if test `eval echo '${'$as_ac_var'}'` = yes; then
12237 cat >>confdefs.h <<_ACEOF
12238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12245 echo "$as_me:$LINENO: checking for optreset" >&5
12246 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12247 if test "${pgac_cv_var_int_optreset+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 #include "confdefs.h"
12253 #include <unistd.h>
12254 #ifdef F77_DUMMY_MAIN
12255 # ifdef __cplusplus
12258 int F77_DUMMY_MAIN() { return 1; }
12263 extern int optreset; optreset = 1;
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270 (eval $ac_link) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 pgac_cv_var_int_optreset=yes
12282 echo "$as_me: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 pgac_cv_var_int_optreset=no
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12288 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12289 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12290 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12292 cat >>confdefs.h <<\_ACEOF
12293 #define HAVE_INT_OPTRESET 1
12299 # This test makes sure that run tests work at all. Sometimes a shared
12300 # library is found by the linker, but the runtime linker can't find it.
12301 # This check should come after all modifications of compiler or linker
12302 # variables, and before any other run tests.
12303 echo "$as_me:$LINENO: checking test program" >&5
12304 echo $ECHO_N "checking test program... $ECHO_C" >&6
12305 if test "$cross_compiling" = yes; then
12306 echo "$as_me:$LINENO: result: cross-compiling" >&5
12307 echo "${ECHO_T}cross-compiling" >&6
12309 cat >conftest.$ac_ext <<_ACEOF
12310 #line $LINENO "configure"
12311 #include "confdefs.h"
12312 int main() { return 0; }
12314 rm -f conftest$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 echo "$as_me:$LINENO: result: ok" >&5
12326 echo "${ECHO_T}ok" >&6
12328 echo "$as_me: program exited with status $ac_status" >&5
12329 echo "$as_me: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12331 ( exit $ac_status )
12332 echo "$as_me:$LINENO: result: failed" >&5
12333 echo "${ECHO_T}failed" >&6
12334 { { echo "$as_me:$LINENO: error:
12335 *** Could not execute a simple test program. This may be a problem
12336 *** related to locating shared libraries. Check the file 'config.log'
12337 *** for the exact reason." >&5
12338 echo "$as_me: error:
12339 *** Could not execute a simple test program. This may be a problem
12340 *** related to locating shared libraries. Check the file 'config.log'
12341 *** for the exact reason." >&2;}
12342 { (exit 1); exit 1; }; }
12344 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12349 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12350 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12351 if test "${pgac_cv_type_long_int_64+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 if test "$cross_compiling" = yes; then
12355 pgac_cv_type_long_int_64=no
12356 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12357 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12359 cat >conftest.$ac_ext <<_ACEOF
12360 #line $LINENO "configure"
12361 #include "confdefs.h"
12362 typedef long int int64;
12365 * These are globals to discourage the compiler from folding all the
12366 * arithmetic tests down to compile-time constants.
12368 int64 a = 20000001;
12369 int64 b = 40000005;
12371 int does_int64_work()
12375 if (sizeof(int64) != 8)
12376 return 0; /* definitely not the right size */
12378 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12386 exit(! does_int64_work());
12389 rm -f conftest$ac_exeext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391 (eval $ac_link) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 pgac_cv_type_long_int_64=yes
12402 echo "$as_me: program exited with status $ac_status" >&5
12403 echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 ( exit $ac_status )
12406 pgac_cv_type_long_int_64=no
12408 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12411 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12412 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12414 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12415 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12417 cat >>confdefs.h <<\_ACEOF
12418 #define HAVE_LONG_INT_64
12424 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12425 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12426 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12427 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 if test "$cross_compiling" = yes; then
12431 pgac_cv_type_long_long_int_64=no
12432 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12433 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12435 cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12437 #include "confdefs.h"
12438 typedef long long int int64;
12441 * These are globals to discourage the compiler from folding all the
12442 * arithmetic tests down to compile-time constants.
12444 int64 a = 20000001;
12445 int64 b = 40000005;
12447 int does_int64_work()
12451 if (sizeof(int64) != 8)
12452 return 0; /* definitely not the right size */
12454 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12462 exit(! does_int64_work());
12465 rm -f conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 pgac_cv_type_long_long_int_64=yes
12478 echo "$as_me: program exited with status $ac_status" >&5
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ( exit $ac_status )
12482 pgac_cv_type_long_long_int_64=no
12484 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12487 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12488 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12490 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12491 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_LONG_LONG_INT_64
12503 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #line $LINENO "configure"
12506 #include "confdefs.h"
12508 #define INT64CONST(x) x##LL
12509 long long int foo = INT64CONST(0x1234567890123456);
12511 #ifdef F77_DUMMY_MAIN
12512 # ifdef __cplusplus
12515 int F77_DUMMY_MAIN() { return 1; }
12525 rm -f conftest.$ac_objext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527 (eval $ac_compile) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -s conftest.$ac_objext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_LL_CONSTANTS 1
12543 echo "$as_me: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12551 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12552 if [ x$SNPRINTF = x ] ; then
12553 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12554 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12555 if test "$cross_compiling" = yes; then
12556 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12557 echo "${ECHO_T}assuming not on target machine" >&6
12558 # Force usage of our own snprintf, since we cannot test foreign snprintf
12559 SNPRINTF='snprintf.o'
12560 INT64_FORMAT='"%lld"'
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12565 #include "confdefs.h"
12567 typedef long long int int64;
12568 #define INT64_FORMAT "%lld"
12570 int64 a = 20000001;
12571 int64 b = 40000005;
12573 int does_int64_snprintf_work()
12578 if (sizeof(int64) != 8)
12579 return 0; /* doesn't look like the right size */
12582 snprintf(buf, 100, INT64_FORMAT, c);
12583 if (strcmp(buf, "800000140000005") != 0)
12584 return 0; /* either multiply or snprintf is busted */
12588 exit(! does_int64_snprintf_work());
12591 rm -f conftest$ac_exeext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12593 (eval $ac_link) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 echo "$as_me:$LINENO: result: yes" >&5
12603 echo "${ECHO_T}yes" >&6
12604 INT64_FORMAT='"%lld"'
12607 echo "$as_me: program exited with status $ac_status" >&5
12608 echo "$as_me: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12610 ( exit $ac_status )
12611 echo "$as_me:$LINENO: result: no" >&5
12612 echo "${ECHO_T}no" >&6
12613 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12614 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12615 if test "$cross_compiling" = yes; then
12616 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12617 echo "${ECHO_T}assuming not on target machine" >&6
12618 # Force usage of our own snprintf, since we cannot test foreign snprintf
12619 SNPRINTF='snprintf.o'
12620 INT64_FORMAT='"%lld"'
12623 cat >conftest.$ac_ext <<_ACEOF
12624 #line $LINENO "configure"
12625 #include "confdefs.h"
12627 typedef long long int int64;
12628 #define INT64_FORMAT "%qd"
12630 int64 a = 20000001;
12631 int64 b = 40000005;
12633 int does_int64_snprintf_work()
12638 if (sizeof(int64) != 8)
12639 return 0; /* doesn't look like the right size */
12642 snprintf(buf, 100, INT64_FORMAT, c);
12643 if (strcmp(buf, "800000140000005") != 0)
12644 return 0; /* either multiply or snprintf is busted */
12648 exit(! does_int64_snprintf_work());
12651 rm -f conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 echo "$as_me:$LINENO: result: yes" >&5
12663 echo "${ECHO_T}yes" >&6
12664 INT64_FORMAT='"%qd"'
12667 echo "$as_me: program exited with status $ac_status" >&5
12668 echo "$as_me: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 ( exit $ac_status )
12671 echo "$as_me:$LINENO: result: no" >&5
12672 echo "${ECHO_T}no" >&6
12673 # Force usage of our own snprintf, since system snprintf is broken
12674 SNPRINTF='snprintf.o'
12675 INT64_FORMAT='"%lld"'
12678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12681 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12684 # here if we previously decided we needed to use our own snprintf
12685 INT64_FORMAT='"%lld"'
12688 # Here if we are not using 'long long int' at all
12689 INT64_FORMAT='"%ld"'
12693 cat >>confdefs.h <<_ACEOF
12694 #define INT64_FORMAT $INT64_FORMAT
12701 for ac_func in strtoll strtoq
12703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12704 echo "$as_me:$LINENO: checking for $ac_func" >&5
12705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12706 if eval "test \"\${$as_ac_var+set}\" = set"; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 #include "confdefs.h"
12712 /* System header to define __stub macros and hopefully few prototypes,
12713 which can conflict with char $ac_func (); below. */
12714 #include <assert.h>
12715 /* Override any gcc2 internal prototype to avoid an error. */
12719 /* We use char because int might match the return type of a gcc2
12720 builtin and then its argument prototype would still apply. */
12724 #ifdef F77_DUMMY_MAIN
12725 # ifdef __cplusplus
12728 int F77_DUMMY_MAIN() { return 1; }
12733 /* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -s conftest$ac_exeext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 eval "$as_ac_var=yes"
12760 echo "$as_me: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12762 eval "$as_ac_var=no"
12764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12768 if test `eval echo '${'$as_ac_var'}'` = yes; then
12769 cat >>confdefs.h <<_ACEOF
12770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12778 for ac_func in strtoull strtouq
12780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12781 echo "$as_me:$LINENO: checking for $ac_func" >&5
12782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12783 if eval "test \"\${$as_ac_var+set}\" = set"; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 cat >conftest.$ac_ext <<_ACEOF
12787 #line $LINENO "configure"
12788 #include "confdefs.h"
12789 /* System header to define __stub macros and hopefully few prototypes,
12790 which can conflict with char $ac_func (); below. */
12791 #include <assert.h>
12792 /* Override any gcc2 internal prototype to avoid an error. */
12796 /* We use char because int might match the return type of a gcc2
12797 builtin and then its argument prototype would still apply. */
12801 #ifdef F77_DUMMY_MAIN
12802 # ifdef __cplusplus
12805 int F77_DUMMY_MAIN() { return 1; }
12810 /* The GNU C library defines this for functions which it implements
12811 to always fail with ENOSYS. Some functions are actually named
12812 something starting with __ and the normal name is an alias. */
12813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12823 rm -f conftest.$ac_objext conftest$ac_exeext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12825 (eval $ac_link) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -s conftest$ac_exeext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 eval "$as_ac_var=yes"
12837 echo "$as_me: failed program was:" >&5
12838 cat conftest.$ac_ext >&5
12839 eval "$as_ac_var=no"
12841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12845 if test `eval echo '${'$as_ac_var'}'` = yes; then
12846 cat >>confdefs.h <<_ACEOF
12847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12854 # Check for one of atexit() or on_exit()
12856 for ac_func in atexit
12858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12859 echo "$as_me:$LINENO: checking for $ac_func" >&5
12860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12861 if eval "test \"\${$as_ac_var+set}\" = set"; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 cat >conftest.$ac_ext <<_ACEOF
12865 #line $LINENO "configure"
12866 #include "confdefs.h"
12867 /* System header to define __stub macros and hopefully few prototypes,
12868 which can conflict with char $ac_func (); below. */
12869 #include <assert.h>
12870 /* Override any gcc2 internal prototype to avoid an error. */
12874 /* We use char because int might match the return type of a gcc2
12875 builtin and then its argument prototype would still apply. */
12879 #ifdef F77_DUMMY_MAIN
12880 # ifdef __cplusplus
12883 int F77_DUMMY_MAIN() { return 1; }
12888 /* The GNU C library defines this for functions which it implements
12889 to always fail with ENOSYS. Some functions are actually named
12890 something starting with __ and the normal name is an alias. */
12891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903 (eval $ac_link) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 eval "$as_ac_var=yes"
12915 echo "$as_me: failed program was:" >&5
12916 cat conftest.$ac_ext >&5
12917 eval "$as_ac_var=no"
12919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12923 if test `eval echo '${'$as_ac_var'}'` = yes; then
12924 cat >>confdefs.h <<_ACEOF
12925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12930 for ac_func in on_exit
12932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12933 echo "$as_me:$LINENO: checking for $ac_func" >&5
12934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_var+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 cat >conftest.$ac_ext <<_ACEOF
12939 #line $LINENO "configure"
12940 #include "confdefs.h"
12941 /* System header to define __stub macros and hopefully few prototypes,
12942 which can conflict with char $ac_func (); below. */
12943 #include <assert.h>
12944 /* Override any gcc2 internal prototype to avoid an error. */
12948 /* We use char because int might match the return type of a gcc2
12949 builtin and then its argument prototype would still apply. */
12953 #ifdef F77_DUMMY_MAIN
12954 # ifdef __cplusplus
12957 int F77_DUMMY_MAIN() { return 1; }
12962 /* The GNU C library defines this for functions which it implements
12963 to always fail with ENOSYS. Some functions are actually named
12964 something starting with __ and the normal name is an alias. */
12965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -s conftest$ac_exeext'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 eval "$as_ac_var=yes"
12989 echo "$as_me: failed program was:" >&5
12990 cat conftest.$ac_ext >&5
12991 eval "$as_ac_var=no"
12993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12997 if test `eval echo '${'$as_ac_var'}'` = yes; then
12998 cat >>confdefs.h <<_ACEOF
12999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13003 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13004 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13005 { (exit 1); exit 1; }; }
13014 echo "$as_me:$LINENO: checking for unsigned long" >&5
13015 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13016 if test "${ac_cv_type_unsigned_long+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 $ac_includes_default
13023 #ifdef F77_DUMMY_MAIN
13024 # ifdef __cplusplus
13027 int F77_DUMMY_MAIN() { return 1; }
13032 if ((unsigned long *) 0)
13034 if (sizeof (unsigned long))
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -s conftest.$ac_objext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_type_unsigned_long=yes
13054 echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 ac_cv_type_unsigned_long=no
13058 rm -f conftest.$ac_objext conftest.$ac_ext
13060 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13061 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13063 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13064 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13065 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 if test "$ac_cv_type_unsigned_long" = yes; then
13069 # The cast to unsigned long works around a bug in the HP C Compiler
13070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13072 # This bug is HP SR number 8606223364.
13073 if test "$cross_compiling" = yes; then
13074 # Depending upon the size, compute the lo and hi bounds.
13075 cat >conftest.$ac_ext <<_ACEOF
13076 #line $LINENO "configure"
13077 #include "confdefs.h"
13078 $ac_includes_default
13079 #ifdef F77_DUMMY_MAIN
13080 # ifdef __cplusplus
13083 int F77_DUMMY_MAIN() { return 1; }
13088 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13109 cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 #include "confdefs.h"
13112 $ac_includes_default
13113 #ifdef F77_DUMMY_MAIN
13114 # ifdef __cplusplus
13117 int F77_DUMMY_MAIN() { return 1; }
13122 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -s conftest.$ac_objext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 ac_hi=$ac_mid; break
13143 echo "$as_me: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 ac_lo=`expr $ac_mid + 1`
13146 if test $ac_lo -le $ac_mid; then
13150 ac_mid=`expr 2 '*' $ac_mid + 1`
13152 rm -f conftest.$ac_objext conftest.$ac_ext
13155 echo "$as_me: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13157 cat >conftest.$ac_ext <<_ACEOF
13158 #line $LINENO "configure"
13159 #include "confdefs.h"
13160 $ac_includes_default
13161 #ifdef F77_DUMMY_MAIN
13162 # ifdef __cplusplus
13165 int F77_DUMMY_MAIN() { return 1; }
13170 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179 (eval $ac_compile) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -s conftest.$ac_objext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13191 cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13193 #include "confdefs.h"
13194 $ac_includes_default
13195 #ifdef F77_DUMMY_MAIN
13196 # ifdef __cplusplus
13199 int F77_DUMMY_MAIN() { return 1; }
13204 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -s conftest.$ac_objext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_lo=$ac_mid; break
13225 echo "$as_me: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13227 ac_hi=`expr '(' $ac_mid ')' - 1`
13228 if test $ac_mid -le $ac_hi; then
13232 ac_mid=`expr 2 '*' $ac_mid`
13234 rm -f conftest.$ac_objext conftest.$ac_ext
13237 echo "$as_me: failed program was:" >&5
13238 cat conftest.$ac_ext >&5
13241 rm -f conftest.$ac_objext conftest.$ac_ext
13243 rm -f conftest.$ac_objext conftest.$ac_ext
13244 # Binary search between lo and hi bounds.
13245 while test "x$ac_lo" != "x$ac_hi"; do
13246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13247 cat >conftest.$ac_ext <<_ACEOF
13248 #line $LINENO "configure"
13249 #include "confdefs.h"
13250 $ac_includes_default
13251 #ifdef F77_DUMMY_MAIN
13252 # ifdef __cplusplus
13255 int F77_DUMMY_MAIN() { return 1; }
13260 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13267 rm -f conftest.$ac_objext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13281 echo "$as_me: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13283 ac_lo=`expr '(' $ac_mid ')' + 1`
13285 rm -f conftest.$ac_objext conftest.$ac_ext
13288 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13290 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13291 { (exit 1); exit 1; }; } ;;
13294 if test "$cross_compiling" = yes; then
13295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13296 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13297 { (exit 1); exit 1; }; }
13299 cat >conftest.$ac_ext <<_ACEOF
13300 #line $LINENO "configure"
13301 #include "confdefs.h"
13302 $ac_includes_default
13303 long longval () { return (long) (sizeof (unsigned long)); }
13304 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13306 #include <stdlib.h>
13307 #ifdef F77_DUMMY_MAIN
13308 # ifdef __cplusplus
13311 int F77_DUMMY_MAIN() { return 1; }
13317 FILE *f = fopen ("conftest.val", "w");
13320 if (((long) (sizeof (unsigned long))) < 0)
13322 long i = longval ();
13323 if (i != ((long) (sizeof (unsigned long))))
13325 fprintf (f, "%ld\n", i);
13329 unsigned long i = ulongval ();
13330 if (i != ((long) (sizeof (unsigned long))))
13332 fprintf (f, "%lu\n", i);
13334 exit (ferror (f) || fclose (f) != 0);
13340 rm -f conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13353 echo "$as_me: program exited with status $ac_status" >&5
13354 echo "$as_me: failed program was:" >&5
13355 cat conftest.$ac_ext >&5
13356 ( exit $ac_status )
13357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13358 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13359 { (exit 1); exit 1; }; }
13361 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13366 ac_cv_sizeof_unsigned_long=0
13369 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13370 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13371 cat >>confdefs.h <<_ACEOF
13372 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13377 cat >>confdefs.h <<_ACEOF
13378 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13382 # Determine memory alignment requirements for the basic C data types.
13384 echo "$as_me:$LINENO: checking for short" >&5
13385 echo $ECHO_N "checking for short... $ECHO_C" >&6
13386 if test "${ac_cv_type_short+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13390 #line $LINENO "configure"
13391 #include "confdefs.h"
13392 $ac_includes_default
13393 #ifdef F77_DUMMY_MAIN
13394 # ifdef __cplusplus
13397 int F77_DUMMY_MAIN() { return 1; }
13404 if (sizeof (short))
13410 rm -f conftest.$ac_objext
13411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13412 (eval $ac_compile) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -s conftest.$ac_objext'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
13422 ac_cv_type_short=yes
13424 echo "$as_me: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 ac_cv_type_short=no
13428 rm -f conftest.$ac_objext conftest.$ac_ext
13430 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13431 echo "${ECHO_T}$ac_cv_type_short" >&6
13433 echo "$as_me:$LINENO: checking alignment of short" >&5
13434 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13435 if test "${pgac_cv_alignof_short+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 if test "$ac_cv_type_short" = yes; then
13439 if test "$cross_compiling" = yes; then
13440 # Depending upon the size, compute the lo and hi bounds.
13441 cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 #include "confdefs.h"
13444 $ac_includes_default
13445 struct { char filler; short field; } pgac_struct;
13446 #ifdef F77_DUMMY_MAIN
13447 # ifdef __cplusplus
13450 int F77_DUMMY_MAIN() { return 1; }
13455 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13462 rm -f conftest.$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest.$ac_objext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13476 cat >conftest.$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13478 #include "confdefs.h"
13479 $ac_includes_default
13480 struct { char filler; short field; } pgac_struct;
13481 #ifdef F77_DUMMY_MAIN
13482 # ifdef __cplusplus
13485 int F77_DUMMY_MAIN() { return 1; }
13490 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_hi=$ac_mid; break
13511 echo "$as_me: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13513 ac_lo=`expr $ac_mid + 1`
13514 if test $ac_lo -le $ac_mid; then
13518 ac_mid=`expr 2 '*' $ac_mid + 1`
13520 rm -f conftest.$ac_objext conftest.$ac_ext
13523 echo "$as_me: failed program was:" >&5
13524 cat conftest.$ac_ext >&5
13525 cat >conftest.$ac_ext <<_ACEOF
13526 #line $LINENO "configure"
13527 #include "confdefs.h"
13528 $ac_includes_default
13529 struct { char filler; short field; } pgac_struct;
13530 #ifdef F77_DUMMY_MAIN
13531 # ifdef __cplusplus
13534 int F77_DUMMY_MAIN() { return 1; }
13539 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13546 rm -f conftest.$ac_objext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13548 (eval $ac_compile) 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -s conftest.$ac_objext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 #include "confdefs.h"
13563 $ac_includes_default
13564 struct { char filler; short field; } pgac_struct;
13565 #ifdef F77_DUMMY_MAIN
13566 # ifdef __cplusplus
13569 int F77_DUMMY_MAIN() { return 1; }
13574 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583 (eval $ac_compile) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_lo=$ac_mid; break
13595 echo "$as_me: failed program was:" >&5
13596 cat conftest.$ac_ext >&5
13597 ac_hi=`expr '(' $ac_mid ')' - 1`
13598 if test $ac_mid -le $ac_hi; then
13602 ac_mid=`expr 2 '*' $ac_mid`
13604 rm -f conftest.$ac_objext conftest.$ac_ext
13607 echo "$as_me: failed program was:" >&5
13608 cat conftest.$ac_ext >&5
13611 rm -f conftest.$ac_objext conftest.$ac_ext
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13614 # Binary search between lo and hi bounds.
13615 while test "x$ac_lo" != "x$ac_hi"; do
13616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13617 cat >conftest.$ac_ext <<_ACEOF
13618 #line $LINENO "configure"
13619 #include "confdefs.h"
13620 $ac_includes_default
13621 struct { char filler; short field; } pgac_struct;
13622 #ifdef F77_DUMMY_MAIN
13623 # ifdef __cplusplus
13626 int F77_DUMMY_MAIN() { return 1; }
13631 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -s conftest.$ac_objext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13652 echo "$as_me: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13654 ac_lo=`expr '(' $ac_mid ')' + 1`
13656 rm -f conftest.$ac_objext conftest.$ac_ext
13659 ?*) pgac_cv_alignof_short=$ac_lo;;
13660 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13661 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13662 { (exit 1); exit 1; }; } ;;
13665 if test "$cross_compiling" = yes; then
13666 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13667 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13668 { (exit 1); exit 1; }; }
13670 cat >conftest.$ac_ext <<_ACEOF
13671 #line $LINENO "configure"
13672 #include "confdefs.h"
13673 $ac_includes_default
13674 struct { char filler; short field; } pgac_struct;
13675 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13676 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13678 #include <stdlib.h>
13679 #ifdef F77_DUMMY_MAIN
13680 # ifdef __cplusplus
13683 int F77_DUMMY_MAIN() { return 1; }
13689 FILE *f = fopen ("conftest.val", "w");
13692 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13694 long i = longval ();
13695 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13697 fprintf (f, "%ld\n", i);
13701 unsigned long i = ulongval ();
13702 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13704 fprintf (f, "%lu\n", i);
13706 exit (ferror (f) || fclose (f) != 0);
13712 rm -f conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 pgac_cv_alignof_short=`cat conftest.val`
13725 echo "$as_me: program exited with status $ac_status" >&5
13726 echo "$as_me: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 ( exit $ac_status )
13729 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13730 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13731 { (exit 1); exit 1; }; }
13733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13738 pgac_cv_alignof_short=0
13741 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13742 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13743 cat >>confdefs.h <<_ACEOF
13744 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13748 echo "$as_me:$LINENO: checking for int" >&5
13749 echo $ECHO_N "checking for int... $ECHO_C" >&6
13750 if test "${ac_cv_type_int+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13754 #line $LINENO "configure"
13755 #include "confdefs.h"
13756 $ac_includes_default
13757 #ifdef F77_DUMMY_MAIN
13758 # ifdef __cplusplus
13761 int F77_DUMMY_MAIN() { return 1; }
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13788 echo "$as_me: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13792 rm -f conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13795 echo "${ECHO_T}$ac_cv_type_int" >&6
13797 echo "$as_me:$LINENO: checking alignment of int" >&5
13798 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13799 if test "${pgac_cv_alignof_int+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 if test "$ac_cv_type_int" = yes; then
13803 if test "$cross_compiling" = yes; then
13804 # Depending upon the size, compute the lo and hi bounds.
13805 cat >conftest.$ac_ext <<_ACEOF
13806 #line $LINENO "configure"
13807 #include "confdefs.h"
13808 $ac_includes_default
13809 struct { char filler; int field; } pgac_struct;
13810 #ifdef F77_DUMMY_MAIN
13811 # ifdef __cplusplus
13814 int F77_DUMMY_MAIN() { return 1; }
13819 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13826 rm -f conftest.$ac_objext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13828 (eval $ac_compile) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } &&
13832 { ac_try='test -s conftest.$ac_objext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13840 cat >conftest.$ac_ext <<_ACEOF
13841 #line $LINENO "configure"
13842 #include "confdefs.h"
13843 $ac_includes_default
13844 struct { char filler; int field; } pgac_struct;
13845 #ifdef F77_DUMMY_MAIN
13846 # ifdef __cplusplus
13849 int F77_DUMMY_MAIN() { return 1; }
13854 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13861 rm -f conftest.$ac_objext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13863 (eval $ac_compile) 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -s conftest.$ac_objext'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 ac_hi=$ac_mid; break
13875 echo "$as_me: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13877 ac_lo=`expr $ac_mid + 1`
13878 if test $ac_lo -le $ac_mid; then
13882 ac_mid=`expr 2 '*' $ac_mid + 1`
13884 rm -f conftest.$ac_objext conftest.$ac_ext
13887 echo "$as_me: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 cat >conftest.$ac_ext <<_ACEOF
13890 #line $LINENO "configure"
13891 #include "confdefs.h"
13892 $ac_includes_default
13893 struct { char filler; int field; } pgac_struct;
13894 #ifdef F77_DUMMY_MAIN
13895 # ifdef __cplusplus
13898 int F77_DUMMY_MAIN() { return 1; }
13903 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912 (eval $ac_compile) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13924 cat >conftest.$ac_ext <<_ACEOF
13925 #line $LINENO "configure"
13926 #include "confdefs.h"
13927 $ac_includes_default
13928 struct { char filler; int field; } pgac_struct;
13929 #ifdef F77_DUMMY_MAIN
13930 # ifdef __cplusplus
13933 int F77_DUMMY_MAIN() { return 1; }
13938 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13945 rm -f conftest.$ac_objext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947 (eval $ac_compile) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -s conftest.$ac_objext'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_lo=$ac_mid; break
13959 echo "$as_me: failed program was:" >&5
13960 cat conftest.$ac_ext >&5
13961 ac_hi=`expr '(' $ac_mid ')' - 1`
13962 if test $ac_mid -le $ac_hi; then
13966 ac_mid=`expr 2 '*' $ac_mid`
13968 rm -f conftest.$ac_objext conftest.$ac_ext
13971 echo "$as_me: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13975 rm -f conftest.$ac_objext conftest.$ac_ext
13977 rm -f conftest.$ac_objext conftest.$ac_ext
13978 # Binary search between lo and hi bounds.
13979 while test "x$ac_lo" != "x$ac_hi"; do
13980 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13981 cat >conftest.$ac_ext <<_ACEOF
13982 #line $LINENO "configure"
13983 #include "confdefs.h"
13984 $ac_includes_default
13985 struct { char filler; int field; } pgac_struct;
13986 #ifdef F77_DUMMY_MAIN
13987 # ifdef __cplusplus
13990 int F77_DUMMY_MAIN() { return 1; }
13995 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004 (eval $ac_compile) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14016 echo "$as_me: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 ac_lo=`expr '(' $ac_mid ')' + 1`
14020 rm -f conftest.$ac_objext conftest.$ac_ext
14023 ?*) pgac_cv_alignof_int=$ac_lo;;
14024 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14025 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14026 { (exit 1); exit 1; }; } ;;
14029 if test "$cross_compiling" = yes; then
14030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14031 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14032 { (exit 1); exit 1; }; }
14034 cat >conftest.$ac_ext <<_ACEOF
14035 #line $LINENO "configure"
14036 #include "confdefs.h"
14037 $ac_includes_default
14038 struct { char filler; int field; } pgac_struct;
14039 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14040 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14042 #include <stdlib.h>
14043 #ifdef F77_DUMMY_MAIN
14044 # ifdef __cplusplus
14047 int F77_DUMMY_MAIN() { return 1; }
14053 FILE *f = fopen ("conftest.val", "w");
14056 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14058 long i = longval ();
14059 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14061 fprintf (f, "%ld\n", i);
14065 unsigned long i = ulongval ();
14066 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14068 fprintf (f, "%lu\n", i);
14070 exit (ferror (f) || fclose (f) != 0);
14076 rm -f conftest$ac_exeext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14078 (eval $ac_link) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 pgac_cv_alignof_int=`cat conftest.val`
14089 echo "$as_me: program exited with status $ac_status" >&5
14090 echo "$as_me: failed program was:" >&5
14091 cat conftest.$ac_ext >&5
14092 ( exit $ac_status )
14093 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14094 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14095 { (exit 1); exit 1; }; }
14097 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14102 pgac_cv_alignof_int=0
14105 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14106 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14107 cat >>confdefs.h <<_ACEOF
14108 #define ALIGNOF_INT $pgac_cv_alignof_int
14112 echo "$as_me:$LINENO: checking for long" >&5
14113 echo $ECHO_N "checking for long... $ECHO_C" >&6
14114 if test "${ac_cv_type_long+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14119 #include "confdefs.h"
14120 $ac_includes_default
14121 #ifdef F77_DUMMY_MAIN
14122 # ifdef __cplusplus
14125 int F77_DUMMY_MAIN() { return 1; }
14138 rm -f conftest.$ac_objext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -s conftest.$ac_objext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_type_long=yes
14152 echo "$as_me: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14156 rm -f conftest.$ac_objext conftest.$ac_ext
14158 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14159 echo "${ECHO_T}$ac_cv_type_long" >&6
14161 echo "$as_me:$LINENO: checking alignment of long" >&5
14162 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14163 if test "${pgac_cv_alignof_long+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 if test "$ac_cv_type_long" = yes; then
14167 if test "$cross_compiling" = yes; then
14168 # Depending upon the size, compute the lo and hi bounds.
14169 cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14171 #include "confdefs.h"
14172 $ac_includes_default
14173 struct { char filler; long field; } pgac_struct;
14174 #ifdef F77_DUMMY_MAIN
14175 # ifdef __cplusplus
14178 int F77_DUMMY_MAIN() { return 1; }
14183 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -s conftest.$ac_objext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14204 cat >conftest.$ac_ext <<_ACEOF
14205 #line $LINENO "configure"
14206 #include "confdefs.h"
14207 $ac_includes_default
14208 struct { char filler; long field; } pgac_struct;
14209 #ifdef F77_DUMMY_MAIN
14210 # ifdef __cplusplus
14213 int F77_DUMMY_MAIN() { return 1; }
14218 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
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_hi=$ac_mid; break
14239 echo "$as_me: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14241 ac_lo=`expr $ac_mid + 1`
14242 if test $ac_lo -le $ac_mid; then
14246 ac_mid=`expr 2 '*' $ac_mid + 1`
14248 rm -f conftest.$ac_objext conftest.$ac_ext
14251 echo "$as_me: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14253 cat >conftest.$ac_ext <<_ACEOF
14254 #line $LINENO "configure"
14255 #include "confdefs.h"
14256 $ac_includes_default
14257 struct { char filler; long field; } pgac_struct;
14258 #ifdef F77_DUMMY_MAIN
14259 # ifdef __cplusplus
14262 int F77_DUMMY_MAIN() { return 1; }
14267 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14274 rm -f conftest.$ac_objext
14275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14276 (eval $ac_compile) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14288 cat >conftest.$ac_ext <<_ACEOF
14289 #line $LINENO "configure"
14290 #include "confdefs.h"
14291 $ac_includes_default
14292 struct { char filler; long field; } pgac_struct;
14293 #ifdef F77_DUMMY_MAIN
14294 # ifdef __cplusplus
14297 int F77_DUMMY_MAIN() { return 1; }
14302 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_lo=$ac_mid; break
14323 echo "$as_me: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 ac_hi=`expr '(' $ac_mid ')' - 1`
14326 if test $ac_mid -le $ac_hi; then
14330 ac_mid=`expr 2 '*' $ac_mid`
14332 rm -f conftest.$ac_objext conftest.$ac_ext
14335 echo "$as_me: failed program was:" >&5
14336 cat conftest.$ac_ext >&5
14339 rm -f conftest.$ac_objext conftest.$ac_ext
14341 rm -f conftest.$ac_objext conftest.$ac_ext
14342 # Binary search between lo and hi bounds.
14343 while test "x$ac_lo" != "x$ac_hi"; do
14344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14345 cat >conftest.$ac_ext <<_ACEOF
14346 #line $LINENO "configure"
14347 #include "confdefs.h"
14348 $ac_includes_default
14349 struct { char filler; long field; } pgac_struct;
14350 #ifdef F77_DUMMY_MAIN
14351 # ifdef __cplusplus
14354 int F77_DUMMY_MAIN() { return 1; }
14359 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368 (eval $ac_compile) 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14380 echo "$as_me: failed program was:" >&5
14381 cat conftest.$ac_ext >&5
14382 ac_lo=`expr '(' $ac_mid ')' + 1`
14384 rm -f conftest.$ac_objext conftest.$ac_ext
14387 ?*) pgac_cv_alignof_long=$ac_lo;;
14388 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14389 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14390 { (exit 1); exit 1; }; } ;;
14393 if test "$cross_compiling" = yes; then
14394 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14395 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14396 { (exit 1); exit 1; }; }
14398 cat >conftest.$ac_ext <<_ACEOF
14399 #line $LINENO "configure"
14400 #include "confdefs.h"
14401 $ac_includes_default
14402 struct { char filler; long field; } pgac_struct;
14403 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14404 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14406 #include <stdlib.h>
14407 #ifdef F77_DUMMY_MAIN
14408 # ifdef __cplusplus
14411 int F77_DUMMY_MAIN() { return 1; }
14417 FILE *f = fopen ("conftest.val", "w");
14420 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14422 long i = longval ();
14423 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14425 fprintf (f, "%ld\n", i);
14429 unsigned long i = ulongval ();
14430 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14432 fprintf (f, "%lu\n", i);
14434 exit (ferror (f) || fclose (f) != 0);
14440 rm -f conftest$ac_exeext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442 (eval $ac_link) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 pgac_cv_alignof_long=`cat conftest.val`
14453 echo "$as_me: program exited with status $ac_status" >&5
14454 echo "$as_me: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14456 ( exit $ac_status )
14457 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14458 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14459 { (exit 1); exit 1; }; }
14461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14466 pgac_cv_alignof_long=0
14469 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14470 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14471 cat >>confdefs.h <<_ACEOF
14472 #define ALIGNOF_LONG $pgac_cv_alignof_long
14476 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14477 echo "$as_me:$LINENO: checking for long long int" >&5
14478 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14479 if test "${ac_cv_type_long_long_int+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14484 #include "confdefs.h"
14485 $ac_includes_default
14486 #ifdef F77_DUMMY_MAIN
14487 # ifdef __cplusplus
14490 int F77_DUMMY_MAIN() { return 1; }
14495 if ((long long int *) 0)
14497 if (sizeof (long long int))
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -s conftest.$ac_objext'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 ac_cv_type_long_long_int=yes
14517 echo "$as_me: failed program was:" >&5
14518 cat conftest.$ac_ext >&5
14519 ac_cv_type_long_long_int=no
14521 rm -f conftest.$ac_objext conftest.$ac_ext
14523 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14524 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14526 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14527 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14528 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 if test "$ac_cv_type_long_long_int" = yes; then
14532 if test "$cross_compiling" = yes; then
14533 # Depending upon the size, compute the lo and hi bounds.
14534 cat >conftest.$ac_ext <<_ACEOF
14535 #line $LINENO "configure"
14536 #include "confdefs.h"
14537 $ac_includes_default
14538 struct { char filler; long long int field; } pgac_struct;
14539 #ifdef F77_DUMMY_MAIN
14540 # ifdef __cplusplus
14543 int F77_DUMMY_MAIN() { return 1; }
14548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557 (eval $ac_compile) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -s conftest.$ac_objext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14569 cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14572 $ac_includes_default
14573 struct { char filler; long long int field; } pgac_struct;
14574 #ifdef F77_DUMMY_MAIN
14575 # ifdef __cplusplus
14578 int F77_DUMMY_MAIN() { return 1; }
14583 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_hi=$ac_mid; break
14604 echo "$as_me: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 ac_lo=`expr $ac_mid + 1`
14607 if test $ac_lo -le $ac_mid; then
14611 ac_mid=`expr 2 '*' $ac_mid + 1`
14613 rm -f conftest.$ac_objext conftest.$ac_ext
14616 echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 cat >conftest.$ac_ext <<_ACEOF
14619 #line $LINENO "configure"
14620 #include "confdefs.h"
14621 $ac_includes_default
14622 struct { char filler; long long int field; } pgac_struct;
14623 #ifdef F77_DUMMY_MAIN
14624 # ifdef __cplusplus
14627 int F77_DUMMY_MAIN() { return 1; }
14632 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14653 cat >conftest.$ac_ext <<_ACEOF
14654 #line $LINENO "configure"
14655 #include "confdefs.h"
14656 $ac_includes_default
14657 struct { char filler; long long int field; } pgac_struct;
14658 #ifdef F77_DUMMY_MAIN
14659 # ifdef __cplusplus
14662 int F77_DUMMY_MAIN() { return 1; }
14667 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14674 rm -f conftest.$ac_objext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14676 (eval $ac_compile) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -s conftest.$ac_objext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_lo=$ac_mid; break
14688 echo "$as_me: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 ac_hi=`expr '(' $ac_mid ')' - 1`
14691 if test $ac_mid -le $ac_hi; then
14695 ac_mid=`expr 2 '*' $ac_mid`
14697 rm -f conftest.$ac_objext conftest.$ac_ext
14700 echo "$as_me: failed program was:" >&5
14701 cat conftest.$ac_ext >&5
14704 rm -f conftest.$ac_objext conftest.$ac_ext
14706 rm -f conftest.$ac_objext conftest.$ac_ext
14707 # Binary search between lo and hi bounds.
14708 while test "x$ac_lo" != "x$ac_hi"; do
14709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14710 cat >conftest.$ac_ext <<_ACEOF
14711 #line $LINENO "configure"
14712 #include "confdefs.h"
14713 $ac_includes_default
14714 struct { char filler; long long int field; } pgac_struct;
14715 #ifdef F77_DUMMY_MAIN
14716 # ifdef __cplusplus
14719 int F77_DUMMY_MAIN() { return 1; }
14724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14731 rm -f conftest.$ac_objext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733 (eval $ac_compile) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14745 echo "$as_me: failed program was:" >&5
14746 cat conftest.$ac_ext >&5
14747 ac_lo=`expr '(' $ac_mid ')' + 1`
14749 rm -f conftest.$ac_objext conftest.$ac_ext
14752 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14753 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14754 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14755 { (exit 1); exit 1; }; } ;;
14758 if test "$cross_compiling" = yes; then
14759 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14760 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14761 { (exit 1); exit 1; }; }
14763 cat >conftest.$ac_ext <<_ACEOF
14764 #line $LINENO "configure"
14765 #include "confdefs.h"
14766 $ac_includes_default
14767 struct { char filler; long long int field; } pgac_struct;
14768 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14769 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14771 #include <stdlib.h>
14772 #ifdef F77_DUMMY_MAIN
14773 # ifdef __cplusplus
14776 int F77_DUMMY_MAIN() { return 1; }
14782 FILE *f = fopen ("conftest.val", "w");
14785 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14787 long i = longval ();
14788 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14790 fprintf (f, "%ld\n", i);
14794 unsigned long i = ulongval ();
14795 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14797 fprintf (f, "%lu\n", i);
14799 exit (ferror (f) || fclose (f) != 0);
14805 rm -f conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 pgac_cv_alignof_long_long_int=`cat conftest.val`
14818 echo "$as_me: program exited with status $ac_status" >&5
14819 echo "$as_me: failed program was:" >&5
14820 cat conftest.$ac_ext >&5
14821 ( exit $ac_status )
14822 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14823 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14824 { (exit 1); exit 1; }; }
14826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14831 pgac_cv_alignof_long_long_int=0
14834 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14835 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14836 cat >>confdefs.h <<_ACEOF
14837 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14842 echo "$as_me:$LINENO: checking for double" >&5
14843 echo $ECHO_N "checking for double... $ECHO_C" >&6
14844 if test "${ac_cv_type_double+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 cat >conftest.$ac_ext <<_ACEOF
14848 #line $LINENO "configure"
14849 #include "confdefs.h"
14850 $ac_includes_default
14851 #ifdef F77_DUMMY_MAIN
14852 # ifdef __cplusplus
14855 int F77_DUMMY_MAIN() { return 1; }
14862 if (sizeof (double))
14868 rm -f conftest.$ac_objext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870 (eval $ac_compile) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -s conftest.$ac_objext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_cv_type_double=yes
14882 echo "$as_me: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14884 ac_cv_type_double=no
14886 rm -f conftest.$ac_objext conftest.$ac_ext
14888 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14889 echo "${ECHO_T}$ac_cv_type_double" >&6
14891 echo "$as_me:$LINENO: checking alignment of double" >&5
14892 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14893 if test "${pgac_cv_alignof_double+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 if test "$ac_cv_type_double" = yes; then
14897 if test "$cross_compiling" = yes; then
14898 # Depending upon the size, compute the lo and hi bounds.
14899 cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14901 #include "confdefs.h"
14902 $ac_includes_default
14903 struct { char filler; double field; } pgac_struct;
14904 #ifdef F77_DUMMY_MAIN
14905 # ifdef __cplusplus
14908 int F77_DUMMY_MAIN() { return 1; }
14913 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14920 rm -f conftest.$ac_objext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14934 cat >conftest.$ac_ext <<_ACEOF
14935 #line $LINENO "configure"
14936 #include "confdefs.h"
14937 $ac_includes_default
14938 struct { char filler; double field; } pgac_struct;
14939 #ifdef F77_DUMMY_MAIN
14940 # ifdef __cplusplus
14943 int F77_DUMMY_MAIN() { return 1; }
14948 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -s conftest.$ac_objext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_hi=$ac_mid; break
14969 echo "$as_me: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14971 ac_lo=`expr $ac_mid + 1`
14972 if test $ac_lo -le $ac_mid; then
14976 ac_mid=`expr 2 '*' $ac_mid + 1`
14978 rm -f conftest.$ac_objext conftest.$ac_ext
14981 echo "$as_me: failed program was:" >&5
14982 cat conftest.$ac_ext >&5
14983 cat >conftest.$ac_ext <<_ACEOF
14984 #line $LINENO "configure"
14985 #include "confdefs.h"
14986 $ac_includes_default
14987 struct { char filler; double field; } pgac_struct;
14988 #ifdef F77_DUMMY_MAIN
14989 # ifdef __cplusplus
14992 int F77_DUMMY_MAIN() { return 1; }
14997 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } &&
15010 { ac_try='test -s conftest.$ac_objext'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15018 cat >conftest.$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15020 #include "confdefs.h"
15021 $ac_includes_default
15022 struct { char filler; double field; } pgac_struct;
15023 #ifdef F77_DUMMY_MAIN
15024 # ifdef __cplusplus
15027 int F77_DUMMY_MAIN() { return 1; }
15032 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15039 rm -f conftest.$ac_objext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041 (eval $ac_compile) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_lo=$ac_mid; break
15053 echo "$as_me: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15055 ac_hi=`expr '(' $ac_mid ')' - 1`
15056 if test $ac_mid -le $ac_hi; then
15060 ac_mid=`expr 2 '*' $ac_mid`
15062 rm -f conftest.$ac_objext conftest.$ac_ext
15065 echo "$as_me: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15069 rm -f conftest.$ac_objext conftest.$ac_ext
15071 rm -f conftest.$ac_objext conftest.$ac_ext
15072 # Binary search between lo and hi bounds.
15073 while test "x$ac_lo" != "x$ac_hi"; do
15074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15075 cat >conftest.$ac_ext <<_ACEOF
15076 #line $LINENO "configure"
15077 #include "confdefs.h"
15078 $ac_includes_default
15079 struct { char filler; double field; } pgac_struct;
15080 #ifdef F77_DUMMY_MAIN
15081 # ifdef __cplusplus
15084 int F77_DUMMY_MAIN() { return 1; }
15089 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098 (eval $ac_compile) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
15102 { ac_try='test -s conftest.$ac_objext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15110 echo "$as_me: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15112 ac_lo=`expr '(' $ac_mid ')' + 1`
15114 rm -f conftest.$ac_objext conftest.$ac_ext
15117 ?*) pgac_cv_alignof_double=$ac_lo;;
15118 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15119 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15120 { (exit 1); exit 1; }; } ;;
15123 if test "$cross_compiling" = yes; then
15124 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15125 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15126 { (exit 1); exit 1; }; }
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 #include "confdefs.h"
15131 $ac_includes_default
15132 struct { char filler; double field; } pgac_struct;
15133 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15134 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15136 #include <stdlib.h>
15137 #ifdef F77_DUMMY_MAIN
15138 # ifdef __cplusplus
15141 int F77_DUMMY_MAIN() { return 1; }
15147 FILE *f = fopen ("conftest.val", "w");
15150 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15152 long i = longval ();
15153 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15155 fprintf (f, "%ld\n", i);
15159 unsigned long i = ulongval ();
15160 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15162 fprintf (f, "%lu\n", i);
15164 exit (ferror (f) || fclose (f) != 0);
15170 rm -f conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 pgac_cv_alignof_double=`cat conftest.val`
15183 echo "$as_me: program exited with status $ac_status" >&5
15184 echo "$as_me: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 ( exit $ac_status )
15187 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15188 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15189 { (exit 1); exit 1; }; }
15191 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15196 pgac_cv_alignof_double=0
15199 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15200 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15201 cat >>confdefs.h <<_ACEOF
15202 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15207 # Compute maximum alignment of any basic type.
15208 # We assume long's alignment is at least as strong as char, short, or int;
15209 # but we must check long long (if it exists) and double.
15211 MAX_ALIGNOF=$pgac_cv_alignof_long
15212 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15213 MAX_ALIGNOF=$pgac_cv_alignof_double
15215 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15216 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15219 cat >>confdefs.h <<_ACEOF
15220 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15225 # Some platforms predefine the types int8, int16, etc. Only check
15226 # a (hopefully) representative subset.
15227 echo "$as_me:$LINENO: checking for int8" >&5
15228 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15229 if test "${ac_cv_type_int8+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 #include "confdefs.h"
15236 #ifdef HAVE_SUPPORTDEFS_H
15237 #include <SupportDefs.h>
15240 #ifdef F77_DUMMY_MAIN
15241 # ifdef __cplusplus
15244 int F77_DUMMY_MAIN() { return 1; }
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259 (eval $ac_compile) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -s conftest.$ac_objext'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_type_int8=yes
15271 echo "$as_me: failed program was:" >&5
15272 cat conftest.$ac_ext >&5
15275 rm -f conftest.$ac_objext conftest.$ac_ext
15277 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15278 echo "${ECHO_T}$ac_cv_type_int8" >&6
15279 if test $ac_cv_type_int8 = yes; then
15281 cat >>confdefs.h <<_ACEOF
15282 #define HAVE_INT8 1
15287 echo "$as_me:$LINENO: checking for uint8" >&5
15288 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15289 if test "${ac_cv_type_uint8+set}" = set; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 cat >conftest.$ac_ext <<_ACEOF
15293 #line $LINENO "configure"
15294 #include "confdefs.h"
15296 #ifdef HAVE_SUPPORTDEFS_H
15297 #include <SupportDefs.h>
15300 #ifdef F77_DUMMY_MAIN
15301 # ifdef __cplusplus
15304 int F77_DUMMY_MAIN() { return 1; }
15311 if (sizeof (uint8))
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319 (eval $ac_compile) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_type_uint8=yes
15331 echo "$as_me: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15333 ac_cv_type_uint8=no
15335 rm -f conftest.$ac_objext conftest.$ac_ext
15337 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15338 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15339 if test $ac_cv_type_uint8 = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_UINT8 1
15347 echo "$as_me:$LINENO: checking for int64" >&5
15348 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15349 if test "${ac_cv_type_int64+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 #include "confdefs.h"
15356 #ifdef HAVE_SUPPORTDEFS_H
15357 #include <SupportDefs.h>
15360 #ifdef F77_DUMMY_MAIN
15361 # ifdef __cplusplus
15364 int F77_DUMMY_MAIN() { return 1; }
15371 if (sizeof (int64))
15377 rm -f conftest.$ac_objext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15379 (eval $ac_compile) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_cv_type_int64=yes
15391 echo "$as_me: failed program was:" >&5
15392 cat conftest.$ac_ext >&5
15393 ac_cv_type_int64=no
15395 rm -f conftest.$ac_objext conftest.$ac_ext
15397 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15398 echo "${ECHO_T}$ac_cv_type_int64" >&6
15399 if test $ac_cv_type_int64 = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402 #define HAVE_INT64 1
15407 echo "$as_me:$LINENO: checking for uint64" >&5
15408 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15409 if test "${ac_cv_type_uint64+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 cat >conftest.$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15414 #include "confdefs.h"
15416 #ifdef HAVE_SUPPORTDEFS_H
15417 #include <SupportDefs.h>
15420 #ifdef F77_DUMMY_MAIN
15421 # ifdef __cplusplus
15424 int F77_DUMMY_MAIN() { return 1; }
15431 if (sizeof (uint64))
15437 rm -f conftest.$ac_objext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15439 (eval $ac_compile) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_type_uint64=yes
15451 echo "$as_me: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15453 ac_cv_type_uint64=no
15455 rm -f conftest.$ac_objext conftest.$ac_ext
15457 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15458 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15459 if test $ac_cv_type_uint64 = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define HAVE_UINT64 1
15469 # We also check for sig_atomic_t, which *should* be defined per ANSI
15470 # C, but is missing on some old platforms.
15471 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15472 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15473 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 cat >conftest.$ac_ext <<_ACEOF
15477 #line $LINENO "configure"
15478 #include "confdefs.h"
15479 #include <signal.h>
15481 #ifdef F77_DUMMY_MAIN
15482 # ifdef __cplusplus
15485 int F77_DUMMY_MAIN() { return 1; }
15490 if ((sig_atomic_t *) 0)
15492 if (sizeof (sig_atomic_t))
15498 rm -f conftest.$ac_objext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_type_sig_atomic_t=yes
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 ac_cv_type_sig_atomic_t=no
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15518 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15519 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15520 if test $ac_cv_type_sig_atomic_t = yes; then
15522 cat >>confdefs.h <<_ACEOF
15523 #define HAVE_SIG_ATOMIC_T 1
15531 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15532 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15533 if test "${pgac_cv_func_posix_signals+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 cat >conftest.$ac_ext <<_ACEOF
15537 #line $LINENO "configure"
15538 #include "confdefs.h"
15539 #include <signal.h>
15541 #ifdef F77_DUMMY_MAIN
15542 # ifdef __cplusplus
15545 int F77_DUMMY_MAIN() { return 1; }
15550 struct sigaction act, oact;
15551 sigemptyset(&act.sa_mask);
15552 act.sa_flags = SA_RESTART;
15553 sigaction(0, &act, &oact);
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560 (eval $ac_link) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -s conftest$ac_exeext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 pgac_cv_func_posix_signals=yes
15572 echo "$as_me: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 pgac_cv_func_posix_signals=no
15576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15578 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15579 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15580 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_POSIX_SIGNALS
15587 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15591 if test "$enable_nls" = yes ; then
15593 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15594 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15595 if test "${ac_cv_search_gettext+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 ac_func_search_save_LIBS=$LIBS
15599 ac_cv_search_gettext=no
15600 cat >conftest.$ac_ext <<_ACEOF
15601 #line $LINENO "configure"
15602 #include "confdefs.h"
15604 /* Override any gcc2 internal prototype to avoid an error. */
15608 /* We use char because int might match the return type of a gcc2
15609 builtin and then its argument prototype would still apply. */
15611 #ifdef F77_DUMMY_MAIN
15612 # ifdef __cplusplus
15615 int F77_DUMMY_MAIN() { return 1; }
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -s conftest$ac_exeext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_cv_search_gettext="none required"
15639 echo "$as_me: failed program was:" >&5
15640 cat conftest.$ac_ext >&5
15642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15643 if test "$ac_cv_search_gettext" = no; then
15644 for ac_lib in intl; do
15645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15646 cat >conftest.$ac_ext <<_ACEOF
15647 #line $LINENO "configure"
15648 #include "confdefs.h"
15650 /* Override any gcc2 internal prototype to avoid an error. */
15654 /* We use char because int might match the return type of a gcc2
15655 builtin and then its argument prototype would still apply. */
15657 #ifdef F77_DUMMY_MAIN
15658 # ifdef __cplusplus
15661 int F77_DUMMY_MAIN() { return 1; }
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -s conftest$ac_exeext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_cv_search_gettext="-l$ac_lib"
15686 echo "$as_me: failed program was:" >&5
15687 cat conftest.$ac_ext >&5
15689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15692 LIBS=$ac_func_search_save_LIBS
15694 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15695 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15696 if test "$ac_cv_search_gettext" != no; then
15697 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15700 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15701 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15702 { (exit 1); exit 1; }; }
15705 if test "${ac_cv_header_libintl_h+set}" = set; then
15706 echo "$as_me:$LINENO: checking for libintl.h" >&5
15707 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15708 if test "${ac_cv_header_libintl_h+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15712 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15714 # Is the header compilable?
15715 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15716 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15719 #include "confdefs.h"
15720 $ac_includes_default
15721 #include <libintl.h>
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -s conftest.$ac_objext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15735 ac_header_compiler=yes
15737 echo "$as_me: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 ac_header_compiler=no
15741 rm -f conftest.$ac_objext conftest.$ac_ext
15742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15743 echo "${ECHO_T}$ac_header_compiler" >&6
15745 # Is the header present?
15746 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15747 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15749 #line $LINENO "configure"
15750 #include "confdefs.h"
15751 #include <libintl.h>
15753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15756 egrep -v '^ *\+' conftest.er1 >conftest.err
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } >/dev/null; then
15761 if test -s conftest.err; then
15762 ac_cpp_err=$ac_c_preproc_warn_flag
15769 if test -z "$ac_cpp_err"; then
15770 ac_header_preproc=yes
15772 echo "$as_me: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15774 ac_header_preproc=no
15776 rm -f conftest.err conftest.$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778 echo "${ECHO_T}$ac_header_preproc" >&6
15780 # So? What about this header?
15781 case $ac_header_compiler:$ac_header_preproc in
15783 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15784 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15786 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15788 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15793 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15795 echo "$as_me:$LINENO: checking for libintl.h" >&5
15796 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15797 if test "${ac_cv_header_libintl_h+set}" = set; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 ac_cv_header_libintl_h=$ac_header_preproc
15802 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15803 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15806 if test $ac_cv_header_libintl_h = yes; then
15809 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15810 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15811 { (exit 1); exit 1; }; }
15815 for ac_prog in msgfmt
15817 # Extract the first word of "$ac_prog", so it can be a program name with args.
15818 set dummy $ac_prog; ac_word=$2
15819 echo "$as_me:$LINENO: checking for $ac_word" >&5
15820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15821 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 if test -n "$MSGFMT"; then
15825 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15828 for as_dir in $PATH
15831 test -z "$as_dir" && as_dir=.
15832 for ac_exec_ext in '' $ac_executable_extensions; do
15833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15834 ac_cv_prog_MSGFMT="$ac_prog"
15835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15843 MSGFMT=$ac_cv_prog_MSGFMT
15844 if test -n "$MSGFMT"; then
15845 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15846 echo "${ECHO_T}$MSGFMT" >&6
15848 echo "$as_me:$LINENO: result: no" >&5
15849 echo "${ECHO_T}no" >&6
15852 test -n "$MSGFMT" && break
15855 if test -z "$MSGFMT"; then
15856 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15857 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15858 { (exit 1); exit 1; }; }
15860 for ac_prog in msgmerge
15862 # Extract the first word of "$ac_prog", so it can be a program name with args.
15863 set dummy $ac_prog; ac_word=$2
15864 echo "$as_me:$LINENO: checking for $ac_word" >&5
15865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15866 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 if test -n "$MSGMERGE"; then
15870 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15873 for as_dir in $PATH
15876 test -z "$as_dir" && as_dir=.
15877 for ac_exec_ext in '' $ac_executable_extensions; do
15878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15879 ac_cv_prog_MSGMERGE="$ac_prog"
15880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15888 MSGMERGE=$ac_cv_prog_MSGMERGE
15889 if test -n "$MSGMERGE"; then
15890 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15891 echo "${ECHO_T}$MSGMERGE" >&6
15893 echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15897 test -n "$MSGMERGE" && break
15900 for ac_prog in xgettext
15902 # Extract the first word of "$ac_prog", so it can be a program name with args.
15903 set dummy $ac_prog; ac_word=$2
15904 echo "$as_me:$LINENO: checking for $ac_word" >&5
15905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15906 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 if test -n "$XGETTEXT"; then
15910 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15916 test -z "$as_dir" && as_dir=.
15917 for ac_exec_ext in '' $ac_executable_extensions; do
15918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919 ac_cv_prog_XGETTEXT="$ac_prog"
15920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15928 XGETTEXT=$ac_cv_prog_XGETTEXT
15929 if test -n "$XGETTEXT"; then
15930 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15931 echo "${ECHO_T}$XGETTEXT" >&6
15933 echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6
15937 test -n "$XGETTEXT" && break
15941 # Note: share/locale is always the default, independent of $datadir
15942 localedir='${prefix}/share/locale'
15943 if test x"$prefix" = x"NONE"; then
15944 exp_localedir="$ac_default_prefix/share/locale"
15946 exp_localedir="$prefix/share/locale"
15951 cat >>confdefs.h <<_ACEOF
15952 #define LOCALEDIR "$exp_localedir"
15958 if test "$with_CXX" = yes; then
15962 ac_cpp='$CXXCPP $CPPFLAGS'
15963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15967 if test "${ac_cv_header_string+set}" = set; then
15968 echo "$as_me:$LINENO: checking for string" >&5
15969 echo $ECHO_N "checking for string... $ECHO_C" >&6
15970 if test "${ac_cv_header_string+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15974 echo "${ECHO_T}$ac_cv_header_string" >&6
15976 # Is the header compilable?
15977 echo "$as_me:$LINENO: checking string usability" >&5
15978 echo $ECHO_N "checking string usability... $ECHO_C" >&6
15979 cat >conftest.$ac_ext <<_ACEOF
15980 #line $LINENO "configure"
15981 #include "confdefs.h"
15982 $ac_includes_default
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_header_compiler=yes
15999 echo "$as_me: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 ac_header_compiler=no
16003 rm -f conftest.$ac_objext conftest.$ac_ext
16004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16005 echo "${ECHO_T}$ac_header_compiler" >&6
16007 # Is the header present?
16008 echo "$as_me:$LINENO: checking string presence" >&5
16009 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16010 cat >conftest.$ac_ext <<_ACEOF
16011 #line $LINENO "configure"
16012 #include "confdefs.h"
16015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16018 egrep -v '^ *\+' conftest.er1 >conftest.err
16020 cat conftest.err >&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } >/dev/null; then
16023 if test -s conftest.err; then
16024 ac_cpp_err=$ac_cxx_preproc_warn_flag
16031 if test -z "$ac_cpp_err"; then
16032 ac_header_preproc=yes
16034 echo "$as_me: failed program was:" >&5
16035 cat conftest.$ac_ext >&5
16036 ac_header_preproc=no
16038 rm -f conftest.err conftest.$ac_ext
16039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16040 echo "${ECHO_T}$ac_header_preproc" >&6
16042 # So? What about this header?
16043 case $ac_header_compiler:$ac_header_preproc in
16045 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16046 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16048 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16050 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16051 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16053 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16055 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16057 echo "$as_me:$LINENO: checking for string" >&5
16058 echo $ECHO_N "checking for string... $ECHO_C" >&6
16059 if test "${ac_cv_header_string+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 ac_cv_header_string=$ac_header_preproc
16064 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16065 echo "${ECHO_T}$ac_cv_header_string" >&6
16068 if test $ac_cv_header_string = yes; then
16070 cat >>confdefs.h <<\_ACEOF
16071 #define HAVE_CXX_STRING_HEADER 1
16075 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16076 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16077 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 cat >conftest.$ac_ext <<_ACEOF
16081 #line $LINENO "configure"
16082 #include "confdefs.h"
16084 #include <stdlib.h>
16085 #include <string.h>
16087 #ifdef F77_DUMMY_MAIN
16088 # ifdef __cplusplus
16091 int F77_DUMMY_MAIN() { return 1; }
16096 string foo = "test"
16101 rm -f conftest.$ac_objext
16102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16103 (eval $ac_compile) 2>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } &&
16107 { ac_try='test -s conftest.$ac_objext'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 pgac_cv_class_string_in_string_h=yes
16115 echo "$as_me: failed program was:" >&5
16116 cat conftest.$ac_ext >&5
16117 pgac_cv_class_string_in_string_h=no
16119 rm -f conftest.$ac_objext conftest.$ac_ext
16121 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16122 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16124 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16125 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16126 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16127 { (exit 1); exit 1; }; }
16134 ac_cpp='$CPP $CPPFLAGS'
16135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16140 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16141 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16142 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 ac_cpp='$CXXCPP $CPPFLAGS'
16148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16152 cat >conftest.$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16154 #include "confdefs.h"
16156 #include <stdlib.h>
16157 #ifdef HAVE_CXX_STRING_HEADER
16160 using namespace std;
16162 #ifdef F77_DUMMY_MAIN
16163 # ifdef __cplusplus
16166 int F77_DUMMY_MAIN() { return 1; }
16176 rm -f conftest.$ac_objext
16177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16178 (eval $ac_compile) 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -s conftest.$ac_objext'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; }; then
16188 pgac_cv_cxx_namespace_std=yes
16190 echo "$as_me: failed program was:" >&5
16191 cat conftest.$ac_ext >&5
16192 pgac_cv_cxx_namespace_std=no
16194 rm -f conftest.$ac_objext conftest.$ac_ext
16196 ac_cpp='$CPP $CPPFLAGS'
16197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16202 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16203 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16205 if test $pgac_cv_cxx_namespace_std = yes ; then
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE_NAMESPACE_STD 1
16215 # Check for Tcl configuration script tclConfig.sh
16216 if test "$with_tcl" = yes; then
16217 for ac_prog in tclsh tcl
16219 # Extract the first word of "$ac_prog", so it can be a program name with args.
16220 set dummy $ac_prog; ac_word=$2
16221 echo "$as_me:$LINENO: checking for $ac_word" >&5
16222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16223 if test "${ac_cv_path_TCLSH+set}" = set; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 for as_dir in $PATH
16235 test -z "$as_dir" && as_dir=.
16236 for ac_exec_ext in '' $ac_executable_extensions; do
16237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16248 TCLSH=$ac_cv_path_TCLSH
16250 if test -n "$TCLSH"; then
16251 echo "$as_me:$LINENO: result: $TCLSH" >&5
16252 echo "${ECHO_T}$TCLSH" >&6
16254 echo "$as_me:$LINENO: result: no" >&5
16255 echo "${ECHO_T}no" >&6
16258 test -n "$TCLSH" && break
16261 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16262 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16263 # Let user override test
16264 if test -z "$TCL_CONFIG_SH"; then
16265 pgac_test_dirs="$with_tclconfig"
16267 set X $pgac_test_dirs; shift
16268 if test $# -eq 0; then
16269 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16270 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16271 { (exit 1); exit 1; }; }
16272 set X `echo 'puts $auto_path' | $TCLSH`; shift
16276 if test -r "$pgac_dir/tclConfig.sh"; then
16277 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16283 if test -z "$TCL_CONFIG_SH"; then
16284 echo "$as_me:$LINENO: result: no" >&5
16285 echo "${ECHO_T}no" >&6
16286 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16287 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16288 { (exit 1); exit 1; }; }
16290 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16291 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16298 # Check for Tk configuration script tkConfig.sh
16299 if test "$with_tk" = yes; then
16300 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16301 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16302 # Let user override test
16303 if test -z "$TK_CONFIG_SH"; then
16304 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16306 set X $pgac_test_dirs; shift
16307 if test $# -eq 0; then
16308 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16309 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16310 { (exit 1); exit 1; }; }
16311 set X `echo 'puts $auto_path' | $TCLSH`; shift
16315 if test -r "$pgac_dir/tkConfig.sh"; then
16316 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16322 if test -z "$TK_CONFIG_SH"; then
16323 echo "$as_me:$LINENO: result: no" >&5
16324 echo "${ECHO_T}no" >&6
16325 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16326 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16327 { (exit 1); exit 1; }; }
16329 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16330 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16339 # Check for DocBook and tools
16341 for ac_prog in onsgmls nsgmls
16343 # Extract the first word of "$ac_prog", so it can be a program name with args.
16344 set dummy $ac_prog; ac_word=$2
16345 echo "$as_me:$LINENO: checking for $ac_word" >&5
16346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16347 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 if test -n "$NSGMLS"; then
16351 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16354 for as_dir in $PATH
16357 test -z "$as_dir" && as_dir=.
16358 for ac_exec_ext in '' $ac_executable_extensions; do
16359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16360 ac_cv_prog_NSGMLS="$ac_prog"
16361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16369 NSGMLS=$ac_cv_prog_NSGMLS
16370 if test -n "$NSGMLS"; then
16371 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16372 echo "${ECHO_T}$NSGMLS" >&6
16374 echo "$as_me:$LINENO: result: no" >&5
16375 echo "${ECHO_T}no" >&6
16378 test -n "$NSGMLS" && break
16381 for ac_prog in openjade jade
16383 # Extract the first word of "$ac_prog", so it can be a program name with args.
16384 set dummy $ac_prog; ac_word=$2
16385 echo "$as_me:$LINENO: checking for $ac_word" >&5
16386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16387 if test "${ac_cv_prog_JADE+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 if test -n "$JADE"; then
16391 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16394 for as_dir in $PATH
16397 test -z "$as_dir" && as_dir=.
16398 for ac_exec_ext in '' $ac_executable_extensions; do
16399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16400 ac_cv_prog_JADE="$ac_prog"
16401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16409 JADE=$ac_cv_prog_JADE
16410 if test -n "$JADE"; then
16411 echo "$as_me:$LINENO: result: $JADE" >&5
16412 echo "${ECHO_T}$JADE" >&6
16414 echo "$as_me:$LINENO: result: no" >&5
16415 echo "${ECHO_T}no" >&6
16418 test -n "$JADE" && break
16422 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16423 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16424 if test "${pgac_cv_check_docbook+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cat >conftest.sgml <<EOF
16428 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16430 <title>test</title>
16432 <title>random</title>
16434 <title>testsect</title>
16441 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16442 if test $? -eq 0; then
16443 pgac_cv_check_docbook=yes
16445 pgac_cv_check_docbook=no
16447 rm -f conftest.sgml
16449 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16450 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16452 have_docbook=$pgac_cv_check_docbook
16455 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16456 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16457 if test "${pgac_cv_path_stylesheets+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 if test -n "$DOCBOOKSTYLE"; then
16461 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16463 for pgac_prefix in /usr /usr/local /opt; do
16464 for pgac_infix in share lib; do
16465 for pgac_postfix in \
16466 sgml/stylesheets/nwalsh-modular \
16467 sgml/stylesheets/docbook \
16468 sgml/docbook/dsssl/modular \
16469 sgml/docbook/dsssl-stylesheets
16471 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16472 if test -r "$pgac_candidate/html/docbook.dsl" \
16473 && test -r "$pgac_candidate/print/docbook.dsl"
16475 pgac_cv_path_stylesheets=$pgac_candidate
16484 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16486 if test -n "$DOCBOOKSTYLE"; then
16487 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16488 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16490 echo "$as_me:$LINENO: result: no" >&5
16491 echo "${ECHO_T}no" >&6
16493 if test -n "$DOCBOOKSTYLE"; then
16494 for ac_prog in collateindex.pl
16496 # Extract the first word of "$ac_prog", so it can be a program name with args.
16497 set dummy $ac_prog; ac_word=$2
16498 echo "$as_me:$LINENO: checking for $ac_word" >&5
16499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16500 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 case $COLLATEINDEX in
16505 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16509 for as_dir in $DOCBOOKSTYLE/bin $PATH
16512 test -z "$as_dir" && as_dir=.
16513 for ac_exec_ext in '' $ac_executable_extensions; do
16514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16515 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16525 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16527 if test -n "$COLLATEINDEX"; then
16528 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16529 echo "${ECHO_T}$COLLATEINDEX" >&6
16531 echo "$as_me:$LINENO: result: no" >&5
16532 echo "${ECHO_T}no" >&6
16535 test -n "$COLLATEINDEX" && break
16539 for ac_prog in collateindex.pl
16541 # Extract the first word of "$ac_prog", so it can be a program name with args.
16542 set dummy $ac_prog; ac_word=$2
16543 echo "$as_me:$LINENO: checking for $ac_word" >&5
16544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16545 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 case $COLLATEINDEX in
16550 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554 for as_dir in $PATH
16557 test -z "$as_dir" && as_dir=.
16558 for ac_exec_ext in '' $ac_executable_extensions; do
16559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16560 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16570 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16572 if test -n "$COLLATEINDEX"; then
16573 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16574 echo "${ECHO_T}$COLLATEINDEX" >&6
16576 echo "$as_me:$LINENO: result: no" >&5
16577 echo "${ECHO_T}no" >&6
16580 test -n "$COLLATEINDEX" && break
16584 for ac_prog in sgmlspl
16586 # Extract the first word of "$ac_prog", so it can be a program name with args.
16587 set dummy $ac_prog; ac_word=$2
16588 echo "$as_me:$LINENO: checking for $ac_word" >&5
16589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16590 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 if test -n "$SGMLSPL"; then
16594 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597 for as_dir in $PATH
16600 test -z "$as_dir" && as_dir=.
16601 for ac_exec_ext in '' $ac_executable_extensions; do
16602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16603 ac_cv_prog_SGMLSPL="$ac_prog"
16604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16612 SGMLSPL=$ac_cv_prog_SGMLSPL
16613 if test -n "$SGMLSPL"; then
16614 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16615 echo "${ECHO_T}$SGMLSPL" >&6
16617 echo "$as_me:$LINENO: result: no" >&5
16618 echo "${ECHO_T}no" >&6
16621 test -n "$SGMLSPL" && break
16626 # prepare build tree if outside source tree
16627 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16628 # Note 2: /bin/pwd might be better than shell's built-in at getting
16629 # a symlink-free name.
16630 if test "$no_create" != yes; then
16631 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16636 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16637 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16638 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16639 || { { echo "$as_me:$LINENO: error: failed" >&5
16640 echo "$as_me: error: failed" >&2;}
16641 { (exit 1); exit 1; }; }
16642 echo "$as_me:$LINENO: result: done" >&5
16643 echo "${ECHO_T}done" >&6
16648 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16651 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c 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}"
16654 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16657 cat >confcache <<\_ACEOF
16658 # This file is a shell script that caches the results of configure
16659 # tests run on this system so they can be shared between configure
16660 # scripts and configure runs, see configure's option --config-cache.
16661 # It is not useful on other systems. If it contains results you don't
16662 # want to keep, you may remove or edit it.
16664 # config.status only pays attention to the cache file if you give it
16665 # the --recheck option to rerun configure.
16667 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16669 # following values.
16673 # The following way of writing the cache mishandles newlines in values,
16674 # but we know of no workaround that is simple, portable, and efficient.
16675 # So, don't put newlines in cache variables' values.
16676 # Ultrix sh set writes to stderr and can't be redirected directly,
16677 # and sets the high bit in the cache file unless we assign to the vars.
16680 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16682 # `set' does not quote correctly, so add quotes (double-quote
16683 # substitution turns \\\\ into \\, and sed turns \\ into \).
16686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16689 # `set' quotes correctly as required by POSIX, so do not add quotes.
16691 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16700 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16702 if cmp -s $cache_file confcache; then :; else
16703 if test -w $cache_file; then
16704 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16705 cat confcache >$cache_file
16707 echo "not updating unwritable cache $cache_file"
16712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16713 # Let make expand exec_prefix.
16714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16716 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16717 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16718 # trailing colons and then remove the whole line if VPATH becomes empty
16719 # (actually we leave an empty line to preserve line numbers).
16720 if test "x$srcdir" = x.; then
16721 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16722 s/:*\$(srcdir):*/:/;
16723 s/:*\${srcdir}:*/:/;
16725 s/^\([^=]*=[ ]*\):*/\1/;
16731 DEFS=-DHAVE_CONFIG_H
16734 : ${CONFIG_STATUS=./config.status}
16735 ac_clean_files_save=$ac_clean_files
16736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16737 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16738 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16739 cat >$CONFIG_STATUS <<_ACEOF
16741 # Generated by $as_me.
16742 # Run this file to recreate the current configuration.
16743 # Compiler output produced by configure, useful for debugging
16744 # configure, is in config.log if it exists.
16747 SHELL=\${CONFIG_SHELL-$SHELL}
16750 cat >>$CONFIG_STATUS <<\_ACEOF
16752 ## --------------------- ##
16753 ## M4sh Initialization. ##
16754 ## --------------------- ##
16756 # Be Bourne compatible
16757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16760 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16765 # Support unset when possible.
16766 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16772 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16773 { $as_unset LANG || test "${LANG+set}" != set; } ||
16774 { LANG=C; export LANG; }
16775 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16776 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16777 { LC_ALL=C; export LC_ALL; }
16778 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16779 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16780 { LC_TIME=C; export LC_TIME; }
16781 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16782 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16783 { LC_CTYPE=C; export LC_CTYPE; }
16784 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16785 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16786 { LANGUAGE=C; export LANGUAGE; }
16787 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16788 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16789 { LC_COLLATE=C; export LC_COLLATE; }
16790 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16791 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16792 { LC_NUMERIC=C; export LC_NUMERIC; }
16793 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16794 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16795 { LC_MESSAGES=C; export LC_MESSAGES; }
16798 # Name of the executable.
16799 as_me=`(basename "$0") 2>/dev/null ||
16800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16801 X"$0" : 'X\(//\)$' \| \
16802 X"$0" : 'X\(/\)$' \| \
16803 . : '\(.\)' 2>/dev/null ||
16805 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16806 /^X\/\(\/\/\)$/{ s//\1/; q; }
16807 /^X\/\(\/\).*/{ s//\1/; q; }
16810 # PATH needs CR, and LINENO needs CR and PATH.
16811 # Avoid depending upon Character Ranges.
16812 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16813 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16814 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16815 as_cr_digits='0123456789'
16816 as_cr_alnum=$as_cr_Letters$as_cr_digits
16818 # The user is always right.
16819 if test "${PATH_SEPARATOR+set}" != set; then
16820 echo "#! /bin/sh" >conftest.sh
16821 echo "exit 0" >>conftest.sh
16822 chmod +x conftest.sh
16823 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16832 as_lineno_1=$LINENO
16833 as_lineno_2=$LINENO
16834 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16835 test "x$as_lineno_1" != "x$as_lineno_2" &&
16836 test "x$as_lineno_3" = "x$as_lineno_2" || {
16837 # Find who we are. Look in the path if we contain no path at all
16840 *[\\/]* ) as_myself=$0 ;;
16841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16842 for as_dir in $PATH
16845 test -z "$as_dir" && as_dir=.
16846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16851 # We did not find ourselves, most probably we were run as `sh COMMAND'
16852 # in which case we are not to be found in the path.
16853 if test "x$as_myself" = x; then
16856 if test ! -f "$as_myself"; then
16857 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16858 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16859 { (exit 1); exit 1; }; }
16861 case $CONFIG_SHELL in
16863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16867 test -z "$as_dir" && as_dir=.
16868 for as_base in sh bash ksh sh5; do
16871 if ("$as_dir/$as_base" -c '
16872 as_lineno_1=$LINENO
16873 as_lineno_2=$LINENO
16874 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16875 test "x$as_lineno_1" != "x$as_lineno_2" &&
16876 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16877 CONFIG_SHELL=$as_dir/$as_base
16878 export CONFIG_SHELL
16879 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16887 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16888 # uniformly replaced by the line number. The first 'sed' inserts a
16889 # line-number line before each line; the second 'sed' does the real
16890 # work. The second script uses 'N' to pair each line-number line
16891 # with the numbered line, and appends trailing '-' during
16892 # substitution so that $LINENO is not a special case at line end.
16893 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16894 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16895 sed '=' <$as_myself |
16900 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16903 s,^['$as_cr_digits']*\n,,
16904 ' >$as_me.lineno &&
16905 chmod +x $as_me.lineno ||
16906 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16907 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16908 { (exit 1); exit 1; }; }
16910 # Don't try to exec as it changes $[0], causing all sort of problems
16911 # (the dirname of $[0] is not the place where we might find the
16912 # original and so on. Autoconf is especially sensible to this).
16914 # Exit status is that of the last command.
16919 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16920 *c*,-n*) ECHO_N= ECHO_C='
16922 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16923 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16926 if expr a : '\(a\)' >/dev/null 2>&1; then
16932 rm -f conf$$ conf$$.exe conf$$.file
16934 if ln -s conf$$.file conf$$ 2>/dev/null; then
16935 # We could just check for DJGPP; but this test a) works b) is more generic
16936 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16937 if test -f conf$$.exe; then
16938 # Don't use ln at all; we don't have any links
16943 elif ln conf$$.file conf$$ 2>/dev/null; then
16948 rm -f conf$$ conf$$.exe conf$$.file
16950 as_executable_p="test -f"
16952 # Sed expression to map a string onto a valid CPP name.
16953 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16955 # Sed expression to map a string onto a valid variable name.
16956 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16960 # We need space, tab and new line, in precisely that order.
16966 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16970 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16971 # report actual input values of CONFIG_FILES etc. instead of their
16972 # values after options handling. Logging --version etc. is OK.
16976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16977 ## Running $as_me. ##
16982 This file was extended by PostgreSQL $as_me 7.3devel, which was
16983 generated by GNU Autoconf 2.53. Invocation command line was
16985 CONFIG_FILES = $CONFIG_FILES
16986 CONFIG_HEADERS = $CONFIG_HEADERS
16987 CONFIG_LINKS = $CONFIG_LINKS
16988 CONFIG_COMMANDS = $CONFIG_COMMANDS
16992 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16996 # Files that config.status was made for.
16997 if test -n "$ac_config_files"; then
16998 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17001 if test -n "$ac_config_headers"; then
17002 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17005 if test -n "$ac_config_links"; then
17006 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17009 if test -n "$ac_config_commands"; then
17010 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17013 cat >>$CONFIG_STATUS <<\_ACEOF
17016 \`$as_me' instantiates files from templates according to the
17017 current configuration.
17019 Usage: $0 [OPTIONS] [FILE]...
17021 -h, --help print this help, then exit
17022 -V, --version print version number, then exit
17023 -d, --debug don't remove temporary files
17024 --recheck update $as_me by reconfiguring in the same conditions
17025 --file=FILE[:TEMPLATE]
17026 instantiate the configuration file FILE
17027 --header=FILE[:TEMPLATE]
17028 instantiate the configuration header FILE
17030 Configuration files:
17033 Configuration headers:
17036 Configuration links:
17039 Report bugs to <bug-autoconf@gnu.org>."
17042 cat >>$CONFIG_STATUS <<_ACEOF
17044 PostgreSQL config.status 7.3devel
17045 configured by $0, generated by GNU Autoconf 2.53,
17046 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17048 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17049 Free Software Foundation, Inc.
17050 This config.status script is free software; the Free Software Foundation
17051 gives unlimited permission to copy, distribute and modify it."
17055 cat >>$CONFIG_STATUS <<\_ACEOF
17056 # If no file are specified by the user, then we need to provide default
17057 # value. By we need to know if files were specified by the user.
17063 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17064 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17066 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17070 *) # This is not an option, so the user has probably given explicit
17072 ac_need_defaults=false;;
17076 # Handling of the options.
17078 cat >>$CONFIG_STATUS <<_ACEOF
17079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17080 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17081 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17083 cat >>$CONFIG_STATUS <<\_ACEOF
17084 --version | --vers* | -V )
17085 echo "$ac_cs_version"; exit 0 ;;
17087 # Conflict between --help and --header
17088 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17089 Try \`$0 --help' for more information." >&5
17090 echo "$as_me: error: ambiguous option: $1
17091 Try \`$0 --help' for more information." >&2;}
17092 { (exit 1); exit 1; }; };;
17093 --help | --hel | -h )
17094 echo "$ac_cs_usage"; exit 0 ;;
17095 --debug | --d* | -d )
17097 --file | --fil | --fi | --f )
17099 CONFIG_FILES="$CONFIG_FILES $1"
17100 ac_need_defaults=false;;
17101 --header | --heade | --head | --hea )
17103 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17104 ac_need_defaults=false;;
17106 # This is an error.
17107 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17108 Try \`$0 --help' for more information." >&5
17109 echo "$as_me: error: unrecognized option: $1
17110 Try \`$0 --help' for more information." >&2;}
17111 { (exit 1); exit 1; }; } ;;
17113 *) ac_config_targets="$ac_config_targets $1" ;;
17125 cat >>$CONFIG_STATUS <<\_ACEOF
17126 for ac_config_target in $ac_config_targets
17128 case "$ac_config_target" in
17129 # Handling of arguments.
17130 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17131 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17132 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17133 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17134 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17135 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17136 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17137 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17138 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17140 { (exit 1); exit 1; }; };;
17144 # If the user did not use the arguments to specify the items to instantiate,
17145 # then the envvar interface is used. Set only those that are not.
17146 # We use the long form for the default assignment because of an extremely
17147 # bizarre bug on SunOS 4.1.3.
17148 if $ac_need_defaults; then
17149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17151 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17154 # Create a temporary directory, and hook for its removal unless debugging.
17157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17158 trap '{ (exit 1); exit 1; }' 1 2 13 15
17161 # Create a (secure) tmp directory for tmp files.
17164 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17165 test -n "$tmp" && test -d "$tmp"
17168 tmp=$TMPDIR/cs$$-$RANDOM
17169 (umask 077 && mkdir $tmp)
17172 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17173 { (exit 1); exit 1; }
17178 cat >>$CONFIG_STATUS <<_ACEOF
17181 # CONFIG_FILES section.
17184 # No need to generate the scripts if there are no CONFIG_FILES.
17185 # This happens for instance when ./config.status config.h
17186 if test -n "\$CONFIG_FILES"; then
17187 # Protect against being on the right side of a sed subst in config.status.
17188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17190 s,@SHELL@,$SHELL,;t t
17191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17197 s,@exec_prefix@,$exec_prefix,;t t
17198 s,@prefix@,$prefix,;t t
17199 s,@program_transform_name@,$program_transform_name,;t t
17200 s,@bindir@,$bindir,;t t
17201 s,@sbindir@,$sbindir,;t t
17202 s,@libexecdir@,$libexecdir,;t t
17203 s,@datadir@,$datadir,;t t
17204 s,@sysconfdir@,$sysconfdir,;t t
17205 s,@sharedstatedir@,$sharedstatedir,;t t
17206 s,@localstatedir@,$localstatedir,;t t
17207 s,@libdir@,$libdir,;t t
17208 s,@includedir@,$includedir,;t t
17209 s,@oldincludedir@,$oldincludedir,;t t
17210 s,@infodir@,$infodir,;t t
17211 s,@mandir@,$mandir,;t t
17212 s,@build_alias@,$build_alias,;t t
17213 s,@host_alias@,$host_alias,;t t
17214 s,@target_alias@,$target_alias,;t t
17215 s,@DEFS@,$DEFS,;t t
17216 s,@ECHO_C@,$ECHO_C,;t t
17217 s,@ECHO_N@,$ECHO_N,;t t
17218 s,@ECHO_T@,$ECHO_T,;t t
17219 s,@LIBS@,$LIBS,;t t
17220 s,@docdir@,$docdir,;t t
17221 s,@configure_args@,$configure_args,;t t
17222 s,@build@,$build,;t t
17223 s,@build_cpu@,$build_cpu,;t t
17224 s,@build_vendor@,$build_vendor,;t t
17225 s,@build_os@,$build_os,;t t
17226 s,@host@,$host,;t t
17227 s,@host_cpu@,$host_cpu,;t t
17228 s,@host_vendor@,$host_vendor,;t t
17229 s,@host_os@,$host_os,;t t
17230 s,@PORTNAME@,$PORTNAME,;t t
17232 s,@MULTIBYTE@,$MULTIBYTE,;t t
17233 s,@enable_nls@,$enable_nls,;t t
17234 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17235 s,@default_port@,$default_port,;t t
17236 s,@enable_shared@,$enable_shared,;t t
17237 s,@enable_rpath@,$enable_rpath,;t t
17238 s,@enable_debug@,$enable_debug,;t t
17240 s,@CFLAGS@,$CFLAGS,;t t
17241 s,@LDFLAGS@,$LDFLAGS,;t t
17242 s,@CPPFLAGS@,$CPPFLAGS,;t t
17243 s,@ac_ct_CC@,$ac_ct_CC,;t t
17244 s,@EXEEXT@,$EXEEXT,;t t
17245 s,@OBJEXT@,$OBJEXT,;t t
17248 s,@autodepend@,$autodepend,;t t
17249 s,@INCLUDES@,$INCLUDES,;t t
17250 s,@with_tcl@,$with_tcl,;t t
17251 s,@with_tk@,$with_tk,;t t
17252 s,@with_perl@,$with_perl,;t t
17253 s,@with_python@,$with_python,;t t
17255 s,@with_java@,$with_java,;t t
17256 s,@with_krb4@,$with_krb4,;t t
17257 s,@with_krb5@,$with_krb5,;t t
17258 s,@krb_srvtab@,$krb_srvtab,;t t
17259 s,@with_pam@,$with_pam,;t t
17260 s,@with_openssl@,$with_openssl,;t t
17261 s,@enable_odbc@,$enable_odbc,;t t
17262 s,@with_unixodbc@,$with_unixodbc,;t t
17263 s,@with_iodbc@,$with_iodbc,;t t
17264 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17265 s,@ELF_SYS@,$ELF_SYS,;t t
17267 s,@CXXFLAGS@,$CXXFLAGS,;t t
17268 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17269 s,@CXXCPP@,$CXXCPP,;t t
17270 s,@with_CXX@,$with_CXX,;t t
17273 s,@FLEX@,$FLEX,;t t
17274 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17275 s,@LN_S@,$LN_S,;t t
17277 s,@with_gnu_ld@,$with_gnu_ld,;t t
17278 s,@ld_R_works@,$ld_R_works,;t t
17279 s,@RANLIB@,$RANLIB,;t t
17280 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17281 s,@LORDER@,$LORDER,;t t
17283 s,@STRIP@,$STRIP,;t t
17284 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17285 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17286 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17287 s,@YACC@,$YACC,;t t
17288 s,@YFLAGS@,$YFLAGS,;t t
17289 s,@WISH@,$WISH,;t t
17290 s,@PERL@,$PERL,;t t
17291 s,@perl_installsitearch@,$perl_installsitearch,;t t
17292 s,@perl_installsitelib@,$perl_installsitelib,;t t
17293 s,@perl_installman3dir@,$perl_installman3dir,;t t
17294 s,@PYTHON@,$PYTHON,;t t
17295 s,@python_version@,$python_version,;t t
17296 s,@python_prefix@,$python_prefix,;t t
17297 s,@python_execprefix@,$python_execprefix,;t t
17298 s,@python_configdir@,$python_configdir,;t t
17299 s,@python_moduledir@,$python_moduledir,;t t
17300 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17301 s,@python_includespec@,$python_includespec,;t t
17302 s,@python_libspec@,$python_libspec,;t t
17303 s,@MEMCMP@,$MEMCMP,;t t
17304 s,@SNPRINTF@,$SNPRINTF,;t t
17305 s,@ISINF@,$ISINF,;t t
17306 s,@GETRUSAGE@,$GETRUSAGE,;t t
17307 s,@SRANDOM@,$SRANDOM,;t t
17308 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17309 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17310 s,@INET_ATON@,$INET_ATON,;t t
17311 s,@STRERROR@,$STRERROR,;t t
17312 s,@STRDUP@,$STRDUP,;t t
17313 s,@STRTOL@,$STRTOL,;t t
17314 s,@STRTOUL@,$STRTOUL,;t t
17315 s,@STRCASECMP@,$STRCASECMP,;t t
17316 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17317 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17318 s,@MSGFMT@,$MSGFMT,;t t
17319 s,@MSGMERGE@,$MSGMERGE,;t t
17320 s,@XGETTEXT@,$XGETTEXT,;t t
17321 s,@localedir@,$localedir,;t t
17322 s,@TCLSH@,$TCLSH,;t t
17323 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17324 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17325 s,@NSGMLS@,$NSGMLS,;t t
17326 s,@JADE@,$JADE,;t t
17327 s,@have_docbook@,$have_docbook,;t t
17328 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17329 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17330 s,@SGMLSPL@,$SGMLSPL,;t t
17331 s,@vpath_build@,$vpath_build,;t t
17336 cat >>$CONFIG_STATUS <<\_ACEOF
17337 # Split the substitutions into bite-sized pieces for seds with
17338 # small command number limits, like on Digital OSF/1 and HP-UX.
17339 ac_max_sed_lines=48
17340 ac_sed_frag=1 # Number of current file.
17341 ac_beg=1 # First line for current file.
17342 ac_end=$ac_max_sed_lines # Line after last line for current file.
17345 while $ac_more_lines; do
17346 if test $ac_beg -gt 1; then
17347 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17349 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17351 if test ! -s $tmp/subs.frag; then
17352 ac_more_lines=false
17354 # The purpose of the label and of the branching condition is to
17355 # speed up the sed processing (if there are no `@' at all, there
17356 # is no need to browse any of the substitutions).
17357 # These are the two extra sed commands mentioned above.
17359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17360 if test -z "$ac_sed_cmds"; then
17361 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17363 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17365 ac_sed_frag=`expr $ac_sed_frag + 1`
17367 ac_end=`expr $ac_end + $ac_max_sed_lines`
17370 if test -z "$ac_sed_cmds"; then
17373 fi # test -n "$CONFIG_FILES"
17376 cat >>$CONFIG_STATUS <<\_ACEOF
17377 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17378 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17380 - | *:- | *:-:* ) # input from stdin
17382 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17383 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17384 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17385 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17386 * ) ac_file_in=$ac_file.in ;;
17389 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17390 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17391 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17392 X"$ac_file" : 'X\(//\)[^/]' \| \
17393 X"$ac_file" : 'X\(//\)$' \| \
17394 X"$ac_file" : 'X\(/\)' \| \
17395 . : '\(.\)' 2>/dev/null ||
17397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17399 /^X\(\/\/\)$/{ s//\1/; q; }
17400 /^X\(\/\).*/{ s//\1/; q; }
17402 { case "$ac_dir" in
17403 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17407 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17408 case $as_mkdir_dir in
17409 # Skip DOS drivespec
17410 ?:) as_incr_dir=$as_mkdir_dir ;;
17412 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17413 test -d "$as_incr_dir" ||
17414 mkdir "$as_incr_dir" ||
17415 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17416 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17417 { (exit 1); exit 1; }; }
17424 if test "$ac_dir" != .; then
17425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17426 # A "../" for each directory in $ac_dir_suffix.
17427 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17429 ac_dir_suffix= ac_top_builddir=
17433 .) # No --srcdir option. We are building in place.
17435 if test -z "$ac_top_builddir"; then
17438 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17440 [\\/]* | ?:[\\/]* ) # Absolute path.
17441 ac_srcdir=$srcdir$ac_dir_suffix;
17442 ac_top_srcdir=$srcdir ;;
17443 *) # Relative path.
17444 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17445 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17447 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17449 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17450 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17451 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17452 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17456 if test x"$ac_file" != x-; then
17457 { echo "$as_me:$LINENO: creating $ac_file" >&5
17458 echo "$as_me: creating $ac_file" >&6;}
17461 # Let's still pretend it is `configure' which instantiates (i.e., don't
17462 # use $as_me), people would be surprised to read:
17463 # /* config.h. Generated by config.status. */
17464 if test x"$ac_file" = x-; then
17467 configure_input="$ac_file. "
17469 configure_input=$configure_input"Generated from `echo $ac_file_in |
17470 sed 's,.*/,,'` by configure."
17472 # First look for the input files in the build tree, otherwise in the
17474 ac_file_inputs=`IFS=:
17475 for f in $ac_file_in; do
17477 -) echo $tmp/stdin ;;
17479 # Absolute (can't be DOS-style, as IFS=:)
17480 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17481 echo "$as_me: error: cannot find input file: $f" >&2;}
17482 { (exit 1); exit 1; }; }
17485 if test -f "$f"; then
17488 elif test -f "$srcdir/$f"; then
17493 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17494 echo "$as_me: error: cannot find input file: $f" >&2;}
17495 { (exit 1); exit 1; }; }
17498 done` || { (exit 1); exit 1; }
17500 cat >>$CONFIG_STATUS <<_ACEOF
17504 cat >>$CONFIG_STATUS <<\_ACEOF
17506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17507 s,@configure_input@,$configure_input,;t t
17508 s,@srcdir@,$ac_srcdir,;t t
17509 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17510 s,@top_srcdir@,$ac_top_srcdir,;t t
17511 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17512 s,@builddir@,$ac_builddir,;t t
17513 s,@abs_builddir@,$ac_abs_builddir,;t t
17514 s,@top_builddir@,$ac_top_builddir,;t t
17515 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17516 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17518 if test x"$ac_file" != x-; then
17519 mv $tmp/out $ac_file
17527 cat >>$CONFIG_STATUS <<\_ACEOF
17530 # CONFIG_HEADER section.
17533 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17534 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17536 # ac_d sets the value in "#define NAME VALUE" lines.
17537 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17538 ac_dB='[ ].*$,\1#\2'
17541 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17542 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17543 ac_uB='$,\1#\2define\3'
17547 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17550 - | *:- | *:-:* ) # input from stdin
17552 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17554 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17555 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17556 * ) ac_file_in=$ac_file.in ;;
17559 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17560 echo "$as_me: creating $ac_file" >&6;}
17562 # First look for the input files in the build tree, otherwise in the
17564 ac_file_inputs=`IFS=:
17565 for f in $ac_file_in; do
17567 -) echo $tmp/stdin ;;
17569 # Absolute (can't be DOS-style, as IFS=:)
17570 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17571 echo "$as_me: error: cannot find input file: $f" >&2;}
17572 { (exit 1); exit 1; }; }
17575 if test -f "$f"; then
17578 elif test -f "$srcdir/$f"; then
17583 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17584 echo "$as_me: error: cannot find input file: $f" >&2;}
17585 { (exit 1); exit 1; }; }
17588 done` || { (exit 1); exit 1; }
17589 # Remove the trailing spaces.
17590 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17594 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17595 # `conftest.undefs', that substitutes the proper values into
17596 # config.h.in to produce config.h. The first handles `#define'
17597 # templates, and the second `#undef' templates.
17598 # And first: Protect against being on the right side of a sed subst in
17599 # config.status. Protect against being in an unquoted here document
17600 # in config.status.
17601 rm -f conftest.defines conftest.undefs
17602 # Using a here document instead of a string reduces the quoting nightmare.
17603 # Putting comments in sed scripts is not portable.
17605 # `end' is used to avoid that the second main sed command (meant for
17606 # 0-ary CPP macros) applies to n-ary macro definitions.
17607 # See the Autoconf documentation for `clear'.
17608 cat >confdef2sed.sed <<\_ACEOF
17613 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17615 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17618 # If some macros were called several times there might be several times
17619 # the same #defines, which is useless. Nevertheless, we may not want to
17620 # sort them, since we want the *last* AC-DEFINE to be honored.
17621 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17622 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17623 rm -f confdef2sed.sed
17625 # This sed command replaces #undef with comments. This is necessary, for
17626 # example, in the case of _POSIX_SOURCE, which is predefined and required
17627 # on some systems where configure will not decide to define it.
17628 cat >>conftest.undefs <<\_ACEOF
17629 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17632 # Break up conftest.defines because some shells have a limit on the size
17633 # of here documents, and old seds have small limits too (100 cmds).
17634 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17635 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17636 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17637 echo ' :' >>$CONFIG_STATUS
17638 rm -f conftest.tail
17639 while grep . conftest.defines >/dev/null
17641 # Write a limited-size here document to $tmp/defines.sed.
17642 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17643 # Speed up: don't consider the non `#define' lines.
17644 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17645 # Work around the forget-to-reset-the-flag bug.
17646 echo 't clr' >>$CONFIG_STATUS
17647 echo ': clr' >>$CONFIG_STATUS
17648 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17650 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17652 mv $tmp/out $tmp/in
17654 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17655 rm -f conftest.defines
17656 mv conftest.tail conftest.defines
17658 rm -f conftest.defines
17659 echo ' fi # egrep' >>$CONFIG_STATUS
17660 echo >>$CONFIG_STATUS
17662 # Break up conftest.undefs because some shells have a limit on the size
17663 # of here documents, and old seds have small limits too (100 cmds).
17664 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17665 rm -f conftest.tail
17666 while grep . conftest.undefs >/dev/null
17668 # Write a limited-size here document to $tmp/undefs.sed.
17669 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17670 # Speed up: don't consider the non `#undef'
17671 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17672 # Work around the forget-to-reset-the-flag bug.
17673 echo 't clr' >>$CONFIG_STATUS
17674 echo ': clr' >>$CONFIG_STATUS
17675 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17677 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17679 mv $tmp/out $tmp/in
17681 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17682 rm -f conftest.undefs
17683 mv conftest.tail conftest.undefs
17685 rm -f conftest.undefs
17687 cat >>$CONFIG_STATUS <<\_ACEOF
17688 # Let's still pretend it is `configure' which instantiates (i.e., don't
17689 # use $as_me), people would be surprised to read:
17690 # /* config.h. Generated by config.status. */
17691 if test x"$ac_file" = x-; then
17692 echo "/* Generated by configure. */" >$tmp/config.h
17694 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17696 cat $tmp/in >>$tmp/config.h
17698 if test x"$ac_file" != x-; then
17699 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17700 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17701 echo "$as_me: $ac_file is unchanged" >&6;}
17703 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17705 X"$ac_file" : 'X\(//\)[^/]' \| \
17706 X"$ac_file" : 'X\(//\)$' \| \
17707 X"$ac_file" : 'X\(/\)' \| \
17708 . : '\(.\)' 2>/dev/null ||
17710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17712 /^X\(\/\/\)$/{ s//\1/; q; }
17713 /^X\(\/\).*/{ s//\1/; q; }
17715 { case "$ac_dir" in
17716 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17720 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17721 case $as_mkdir_dir in
17722 # Skip DOS drivespec
17723 ?:) as_incr_dir=$as_mkdir_dir ;;
17725 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17726 test -d "$as_incr_dir" ||
17727 mkdir "$as_incr_dir" ||
17728 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17729 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17730 { (exit 1); exit 1; }; }
17736 mv $tmp/config.h $ac_file
17740 rm -f $tmp/config.h
17742 # Run the commands associated with the file.
17744 src/include/pg_config.h )
17745 # Update timestamp for pg_config.h (see Makefile.global)
17746 echo >src/include/stamp-h
17751 cat >>$CONFIG_STATUS <<\_ACEOF
17754 # CONFIG_LINKS section.
17757 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17758 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17759 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17761 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17762 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17764 if test ! -r $srcdir/$ac_source; then
17765 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17766 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17767 { (exit 1); exit 1; }; }
17771 # Make relative symlinks.
17772 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17773 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17774 X"$ac_dest" : 'X\(//\)[^/]' \| \
17775 X"$ac_dest" : 'X\(//\)$' \| \
17776 X"$ac_dest" : 'X\(/\)' \| \
17777 . : '\(.\)' 2>/dev/null ||
17779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17781 /^X\(\/\/\)$/{ s//\1/; q; }
17782 /^X\(\/\).*/{ s//\1/; q; }
17784 { case "$ac_dest_dir" in
17785 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17788 as_dummy="$ac_dest_dir"
17789 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17790 case $as_mkdir_dir in
17791 # Skip DOS drivespec
17792 ?:) as_incr_dir=$as_mkdir_dir ;;
17794 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17795 test -d "$as_incr_dir" ||
17796 mkdir "$as_incr_dir" ||
17797 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17798 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17799 { (exit 1); exit 1; }; }
17806 if test "$ac_dest_dir" != .; then
17807 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17808 # A "../" for each directory in $ac_dir_suffix.
17809 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17811 ac_dir_suffix= ac_top_builddir=
17815 .) # No --srcdir option. We are building in place.
17817 if test -z "$ac_top_builddir"; then
17820 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17822 [\\/]* | ?:[\\/]* ) # Absolute path.
17823 ac_srcdir=$srcdir$ac_dir_suffix;
17824 ac_top_srcdir=$srcdir ;;
17825 *) # Relative path.
17826 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17827 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17829 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17831 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17832 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17833 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17834 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17838 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17839 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17842 # Make a symlink if possible; otherwise try a hard link.
17843 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17844 ln $srcdir/$ac_source $ac_dest ||
17845 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17846 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17847 { (exit 1); exit 1; }; }
17851 cat >>$CONFIG_STATUS <<\_ACEOF
17853 { (exit 0); exit 0; }
17855 chmod +x $CONFIG_STATUS
17856 ac_clean_files=$ac_clean_files_save
17859 # configure is writing to config.log, and then calls config.status.
17860 # config.status does its own redirection, appending to config.log.
17861 # Unfortunately, on DOS this fails, as config.log is still kept open
17862 # by configure, so config.status won't be able to write to it; its
17863 # output is simply discarded. So we exec the FD to /dev/null,
17864 # effectively closing config.log, so it can be properly (re)opened and
17865 # appended to by config.status. When coming back to configure, we
17866 # need to make the FD available again.
17867 if test "$no_create" != yes; then
17870 $SHELL $CONFIG_STATUS || ac_cs_success=false
17872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17873 # would make configure fail if this is the last instruction.
17874 $ac_cs_success || { (exit 1); exit 1; }