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
861 --enable-syslog enable logging to syslog
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-includes=DIRS look for additional header files in DIRS
868 --with-libraries=DIRS look for additional libraries in DIRS
869 --with-libs=DIRS alternative spelling of --with-libraries
870 --with-pgport=PORTNUM change default port number 5432
871 --with-maxbackends=N set default maximum number of connections 32
872 --with-tcl build Tcl and Tk interfaces
873 --without-tk do not build Tk interfaces if Tcl is enabled
874 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
875 --with-tkconfig=DIR tkConfig.sh is in DIR
876 --with-perl build Perl interface and PL/Perl
877 --with-python build Python interface module
878 --with-java build JDBC interface and Java tools
879 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
880 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
881 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
882 --with-pam build with PAM support
883 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
884 --without-readline do not use Readline
885 --without-zlib do not use Zlib
886 --with-unixodbc build ODBC driver for unixODBC
887 --with-iodbc build ODBC driver for iODBC
888 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
889 --with-CXX build C++ modules (libpq++)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
900 CXX C++ compiler command
901 CXXFLAGS C++ compiler flags
902 CXXCPP C++ preprocessor
904 location of DocBook stylesheets
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
909 Report bugs to <pgsql-bugs@postgresql.org>.
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 ac_dir_suffix= ac_top_builddir=
929 .) # No --srcdir option. We are building in place.
931 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
945 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
946 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
947 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
948 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
972 PostgreSQL configure 7.3devel
973 generated by GNU Autoconf 2.53
975 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
976 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
980 Copyright 2002 PostgreSQL Global Development Group
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by PostgreSQL $as_me 7.3devel, which was
990 generated by GNU Autoconf 2.53. Invocation command line was
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Also quote any args containing shell meta-characters.
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n ) continue ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 case " $ac_configure_args " in
1057 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1058 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061 # Get rid of the leading space.
1064 # When interrupted or exit'd, cleanup temporary files, and complete
1065 # config.log. We remove comments because anyway the quotes in there
1066 # would cause problems or look ugly.
1067 # WARNING: Be sure not to use single quotes in there, as some shells,
1068 # such as our DU 5.0 friend, will then `close' the trap.
1069 trap 'exit_status=$?
1070 # Save into config.log some information that might help in debugging.
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1079 # The following way of writing the cache mishandles newlines in values,
1082 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 if test -s confdefs.h; then
1102 sed "/^$/d" confdefs.h
1105 test "$ac_signal" != 0 &&
1106 echo "$as_me: caught signal $ac_signal"
1107 echo "$as_me: exit $exit_status"
1109 rm -f core core.* *.core &&
1110 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1113 for ac_signal in 1 2 13 15; do
1114 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1119 rm -rf conftest* confdefs.h
1120 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1123 # Predefined preprocessor variables.
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_NAME "$PACKAGE_NAME"
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_STRING "$PACKAGE_STRING"
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1150 # Let the site file select an alternate cache file if it wants to.
1151 # Prefer explicitly selected file to automatically selected ones.
1152 if test -z "$CONFIG_SITE"; then
1153 if test "x$prefix" != xNONE; then
1154 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1156 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1159 for ac_site_file in $CONFIG_SITE; do
1160 if test -r "$ac_site_file"; then
1161 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162 echo "$as_me: loading site script $ac_site_file" >&6;}
1163 sed 's/^/| /' "$ac_site_file" >&5
1168 if test -r "$cache_file"; then
1169 # Some versions of bash will fail to source /dev/null (special
1170 # files actually), so we avoid doing that.
1171 if test -f "$cache_file"; then
1172 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173 echo "$as_me: loading cache $cache_file" >&6;}
1175 [\\/]* | ?:[\\/]* ) . $cache_file;;
1176 *) . ./$cache_file;;
1180 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181 echo "$as_me: creating cache $cache_file" >&6;}
1185 # Check that the precious variables saved in the cache have kept the same
1187 ac_cache_corrupted=false
1188 for ac_var in `(set) 2>&1 |
1189 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191 eval ac_new_set=\$ac_env_${ac_var}_set
1192 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193 eval ac_new_val="\$ac_env_${ac_var}_value"
1194 case $ac_old_set,$ac_new_set in
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1200 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202 ac_cache_corrupted=: ;;
1205 if test "x$ac_old_val" != "x$ac_new_val"; then
1206 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1209 echo "$as_me: former value: $ac_old_val" >&2;}
1210 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1211 echo "$as_me: current value: $ac_new_val" >&2;}
1212 ac_cache_corrupted=:
1215 # Pass precious variables to config.status.
1216 if test "$ac_new_set" = set; then
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 *) ac_arg=$ac_var=$ac_new_val ;;
1222 case " $ac_configure_args " in
1223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1224 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1228 if $ac_cache_corrupted; then
1229 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233 { (exit 1); exit 1; }; }
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 for ac_dir in config $srcdir/config; do
1276 if test -f $ac_dir/install-sh; then
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh; then
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1284 elif test -f $ac_dir/shtool; then
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300 configure_args=$ac_configure_args
1304 cat >>confdefs.h <<_ACEOF
1305 #define PG_VERSION "$PACKAGE_VERSION"
1309 # Make sure we can run config.sub.
1310 $ac_config_sub sun4 >/dev/null 2>&1 ||
1311 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322 ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326 { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348 ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1365 echo "$as_me:$LINENO: checking which template to use" >&5
1366 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1371 # Check whether --with-template or --without-template was given.
1372 if test "${with_template+set}" = set; then
1373 withval="$with_template"
1377 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1378 echo "$as_me: error: argument required for --with-template option" >&2;}
1379 { (exit 1); exit 1; }; }
1382 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1383 echo "$as_me: error: argument required for --with-template option" >&2;}
1384 { (exit 1); exit 1; }; }
1389 list) echo; ls "$srcdir/src/template"; exit;;
1390 *) if test -f "$srcdir/src/template/$with_template" ; then
1393 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1394 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1395 { (exit 1); exit 1; }; }
1404 # --with-template not given
1407 aix*) template=aix ;;
1408 beos*) template=beos ;;
1409 bsdi*) template=bsdi ;;
1410 cygwin*) template=win ;;
1411 darwin*) template=darwin ;;
1412 dgux*) template=dgux ;;
1413 freebsd*) template=freebsd ;;
1414 hpux*) template=hpux ;;
1415 irix*) template=irix5 ;;
1416 linux*) template=linux ;;
1417 netbsd*) template=netbsd ;;
1418 nextstep*) template=nextstep ;;
1419 openbsd*) template=openbsd ;;
1420 osf*) template=osf ;;
1421 qnx*) template=qnx4 ;;
1422 sco*) template=sco ;;
1423 solaris*) template=solaris ;;
1424 sunos*) template=sunos4 ;;
1426 case $host_vendor in
1427 univel) template=univel ;;
1429 sysv4*) template=svr4 ;;
1430 sysv5*) template=unixware ;;
1431 ultrix*) template=ultrix4 ;;
1434 if test x"$template" = x"" ; then
1435 { { echo "$as_me:$LINENO: error:
1436 *******************************************************************
1437 PostgreSQL has apparently not been ported to your platform yet.
1438 To try a manual configuration, look into the src/template directory
1439 for a similar platform and use the '--with-template=' option.
1441 Please also contact <pgsql-ports@postgresql.org> to see about
1442 rectifying this. Include the above 'checking host system type...'
1444 *******************************************************************
1446 echo "$as_me: error:
1447 *******************************************************************
1448 PostgreSQL has apparently not been ported to your platform yet.
1449 To try a manual configuration, look into the src/template directory
1450 for a similar platform and use the '--with-template=' option.
1452 Please also contact <pgsql-ports@postgresql.org> to see about
1453 rectifying this. Include the above 'checking host system type...'
1455 *******************************************************************
1457 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $template" >&5
1465 echo "${ECHO_T}$template" >&6
1470 # Pick right test-and-set (TAS) code. Most platforms have inline
1471 # assembler code in src/include/storage/s_lock.h, so we just use
1472 # a dummy file here.
1474 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1475 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1476 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1477 *) need_tas=no; tas_file=dummy.s ;;
1479 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1482 if test "$need_tas" = yes ; then
1490 ## Command line options
1495 # Add non-standard directories to the include path
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502 withval="$with_includes"
1506 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508 { (exit 1); exit 1; }; }
1511 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513 { (exit 1); exit 1; }; }
1525 # Add non-standard directories to the library search path
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532 withval="$with_libraries"
1536 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538 { (exit 1); exit 1; }; }
1541 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543 { (exit 1); exit 1; }; }
1546 LIBRARY_DIRS=$withval
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558 withval="$with_libs"
1562 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564 { (exit 1); exit 1; }; }
1567 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569 { (exit 1); exit 1; }; }
1572 LIBRARY_DIRS=$withval
1581 # Character set recode (--enable-recode)
1583 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1584 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1587 # Check whether --enable-recode or --disable-recode was given.
1588 if test "${enable_recode+set}" = set; then
1589 enableval="$enable_recode"
1594 cat >>confdefs.h <<\_ACEOF
1595 #define CYR_RECODE 1
1603 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1604 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1605 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $enable_recode" >&5
1615 echo "${ECHO_T}$enable_recode" >&6
1622 echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1623 echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1627 # Check whether --enable-multibyte or --disable-multibyte was given.
1628 if test "${enable_multibyte+set}" = set; then
1629 enableval="$enable_multibyte"
1639 enable_multibyte=yes
1642 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)
1643 MULTIBYTE=$enableval;;
1645 { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1646 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1647 UNICODE, MULE_INTERNAL,
1648 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1649 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1650 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1651 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1652 Or do not specify an argument to the option to use the default." >&5
1653 echo "$as_me: error: argument to --enable-multibyte must be one of:
1654 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1655 UNICODE, MULE_INTERNAL,
1656 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1657 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1658 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1659 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1660 Or do not specify an argument to the option to use the default." >&2;}
1661 { (exit 1); exit 1; }; };;
1672 if test "$enable_multibyte" = yes; then
1675 cat >>confdefs.h <<\_ACEOF
1679 echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1680 echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1693 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1694 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1697 # Check whether --enable-nls or --disable-nls was given.
1698 if test "${enable_nls+set}" = set; then
1699 enableval="$enable_nls"
1710 WANTED_LANGUAGES=$enableval
1719 if test "$enable_nls" = yes; then
1721 cat >>confdefs.h <<\_ACEOF
1722 #define ENABLE_NLS 1
1727 echo "$as_me:$LINENO: result: $enable_nls" >&5
1728 echo "${ECHO_T}$enable_nls" >&6
1733 # Default port number (--with-pgport), default 5432
1735 echo "$as_me:$LINENO: checking for default port number" >&5
1736 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1740 # Check whether --with-pgport or --without-pgport was given.
1741 if test "${with_pgport+set}" = set; then
1742 withval="$with_pgport"
1746 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1747 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1748 { (exit 1); exit 1; }; }
1751 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1752 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1753 { (exit 1); exit 1; }; }
1756 default_port=$withval
1764 echo "$as_me:$LINENO: result: $default_port" >&5
1765 echo "${ECHO_T}$default_port" >&6
1766 # Need both of these because some places want an integer and some a string
1768 cat >>confdefs.h <<_ACEOF
1769 #define DEF_PGPORT ${default_port}
1773 cat >>confdefs.h <<_ACEOF
1774 #define DEF_PGPORT_STR "${default_port}"
1780 # Maximum number of allowed connections (--with-maxbackends), default 32
1782 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1783 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1787 # Check whether --with-maxbackends or --without-maxbackends was given.
1788 if test "${with_maxbackends+set}" = set; then
1789 withval="$with_maxbackends"
1793 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1794 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1795 { (exit 1); exit 1; }; }
1798 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1799 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1800 { (exit 1); exit 1; }; }
1811 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1812 echo "${ECHO_T}$with_maxbackends" >&6
1814 cat >>confdefs.h <<_ACEOF
1815 #define DEF_MAXBACKENDS $with_maxbackends
1821 # Option to disable shared libraries
1825 # Check whether --enable-shared or --disable-shared was given.
1826 if test "${enable_shared+set}" = set; then
1827 enableval="$enable_shared"
1837 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1838 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1839 { (exit 1); exit 1; }; }
1851 # '-rpath'-like feature can be disabled
1855 # Check whether --enable-rpath or --disable-rpath was given.
1856 if test "${enable_rpath+set}" = set; then
1857 enableval="$enable_rpath"
1867 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1868 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1869 { (exit 1); exit 1; }; }
1882 # --enable-debug adds -g to compiler flags
1886 # Check whether --enable-debug or --disable-debug was given.
1887 if test "${enable_debug+set}" = set; then
1888 enableval="$enable_debug"
1898 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1899 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1900 { (exit 1); exit 1; }; }
1915 # For historical reasons you can also use --with-CC to specify the C compiler
1916 # to use, although the standard way to do this is to set the CC environment
1921 # Check whether --with-CC or --without-CC was given.
1922 if test "${with_CC+set}" = set; then
1927 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1928 echo "$as_me: error: argument required for --with-CC option" >&2;}
1929 { (exit 1); exit 1; }; }
1932 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1933 echo "$as_me: error: argument required for --with-CC option" >&2;}
1934 { (exit 1); exit 1; }; }
1945 aix) pgac_cc_list="gcc xlc";;
1946 irix) pgac_cc_list="cc";; # no gcc
1947 *) pgac_cc_list="gcc cc";;
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956 for ac_prog in $pgac_cc_list
1958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 if test -n "$CC"; then
1986 echo "$as_me:$LINENO: result: $CC" >&5
1987 echo "${ECHO_T}$CC" >&6
1989 echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1993 test -n "$CC" && break
1996 if test -z "$CC"; then
1998 for ac_prog in $pgac_cc_list
2000 # Extract the first word of "$ac_prog", so it can be a program name with args.
2001 set dummy $ac_prog; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$ac_ct_CC"; then
2008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_ac_ct_CC="$ac_prog"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027 if test -n "$ac_ct_CC"; then
2028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029 echo "${ECHO_T}$ac_ct_CC" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2035 test -n "$ac_ct_CC" && break
2042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2043 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev/null >&5) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev/null >&5) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev/null >&5) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #line $LINENO "configure"
2068 #include "confdefs.h"
2070 #ifdef F77_DUMMY_MAIN
2074 int F77_DUMMY_MAIN() { return 1; }
2084 ac_clean_files_save=$ac_clean_files
2085 ac_clean_files="$ac_clean_files a.out a.exe"
2086 # Try to create an executable without -o first, disregard a.out.
2087 # It will help us diagnose broken compilers, and finding out an intuition
2089 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2090 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2091 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093 (eval $ac_link_default) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 # Find the output, starting from the most likely. This scheme is
2098 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2101 # Be careful to initialize this variable, since it used to be cached.
2102 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2105 ls a.out conftest 2>/dev/null;
2106 ls a.* conftest.* 2>/dev/null`; do
2108 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2109 a.out ) # We found the default executable, but exeext='' is most
2112 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2113 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2120 echo "$as_me: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2123 echo "$as_me: error: C compiler cannot create executables" >&2;}
2124 { (exit 77); exit 77; }; }
2127 ac_exeext=$ac_cv_exeext
2128 echo "$as_me:$LINENO: result: $ac_file" >&5
2129 echo "${ECHO_T}$ac_file" >&6
2131 # Check the compiler produces executables we can run. If not, either
2132 # the compiler is broken, or we cross compile.
2133 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2134 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2135 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2136 # If not cross compiling, check that we can run a simple program.
2137 if test "$cross_compiling" != yes; then
2138 if { ac_try='./$ac_file'
2139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; }; then
2146 if test "$cross_compiling" = maybe; then
2149 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2150 If you meant to cross compile, use \`--host'." >&5
2151 echo "$as_me: error: cannot run C compiled programs.
2152 If you meant to cross compile, use \`--host'." >&2;}
2153 { (exit 1); exit 1; }; }
2157 echo "$as_me:$LINENO: result: yes" >&5
2158 echo "${ECHO_T}yes" >&6
2160 rm -f a.out a.exe conftest$ac_cv_exeext
2161 ac_clean_files=$ac_clean_files_save
2162 # Check the compiler produces executables we can run. If not, either
2163 # the compiler is broken, or we cross compile.
2164 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2165 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2166 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2167 echo "${ECHO_T}$cross_compiling" >&6
2169 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2170 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2172 (eval $ac_link) 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2177 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2178 # work properly (i.e., refer to `conftest.exe'), while it won't with
2180 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2182 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2192 { (exit 1); exit 1; }; }
2195 rm -f conftest$ac_cv_exeext
2196 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2197 echo "${ECHO_T}$ac_cv_exeext" >&6
2199 rm -f conftest.$ac_ext
2200 EXEEXT=$ac_cv_exeext
2202 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2203 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2204 if test "${ac_cv_objext+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 cat >conftest.$ac_ext <<_ACEOF
2208 #line $LINENO "configure"
2209 #include "confdefs.h"
2211 #ifdef F77_DUMMY_MAIN
2215 int F77_DUMMY_MAIN() { return 1; }
2225 rm -f conftest.o conftest.obj
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; then
2231 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2239 echo "$as_me: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2242 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2243 { (exit 1); exit 1; }; }
2246 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2248 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2249 echo "${ECHO_T}$ac_cv_objext" >&6
2250 OBJEXT=$ac_cv_objext
2252 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2253 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2254 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 cat >conftest.$ac_ext <<_ACEOF
2258 #line $LINENO "configure"
2259 #include "confdefs.h"
2261 #ifdef F77_DUMMY_MAIN
2265 int F77_DUMMY_MAIN() { return 1; }
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2292 echo "$as_me: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2296 rm -f conftest.$ac_objext conftest.$ac_ext
2297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2300 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2301 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2302 GCC=`test $ac_compiler_gnu = yes && echo yes`
2303 ac_test_CFLAGS=${CFLAGS+set}
2304 ac_save_CFLAGS=$CFLAGS
2306 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2307 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2308 if test "${ac_cv_prog_cc_g+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 #include "confdefs.h"
2315 #ifdef F77_DUMMY_MAIN
2319 int F77_DUMMY_MAIN() { return 1; }
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 echo "$as_me: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2347 rm -f conftest.$ac_objext conftest.$ac_ext
2349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2351 if test "$ac_test_CFLAGS" = set; then
2352 CFLAGS=$ac_save_CFLAGS
2353 elif test $ac_cv_prog_cc_g = yes; then
2354 if test "$GCC" = yes; then
2360 if test "$GCC" = yes; then
2366 # Some people use a C++ compiler to compile C. Since we use `exit',
2367 # in C++ we need to declare it. In case someone uses the same compiler
2368 # for both compiling C and C++ we need to have the C++ compiler decide
2369 # the declaration of exit, since it's the most demanding environment.
2370 cat >conftest.$ac_ext <<_ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2387 for ac_declaration in \
2389 '#include <stdlib.h>' \
2390 'extern "C" void std::exit (int) throw (); using std::exit;' \
2391 'extern "C" void std::exit (int); using std::exit;' \
2392 'extern "C" void exit (int) throw ();' \
2393 'extern "C" void exit (int);' \
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line $LINENO "configure"
2398 #include "confdefs.h"
2401 #ifdef F77_DUMMY_MAIN
2405 int F77_DUMMY_MAIN() { return 1; }
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -s conftest.$ac_objext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2433 rm -f conftest.$ac_objext conftest.$ac_ext
2434 cat >conftest.$ac_ext <<_ACEOF
2435 #line $LINENO "configure"
2436 #include "confdefs.h"
2438 #ifdef F77_DUMMY_MAIN
2442 int F77_DUMMY_MAIN() { return 1; }
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2466 echo "$as_me: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 rm -f conftest.$ac_objext conftest.$ac_ext
2472 if test -n "$ac_declaration"; then
2473 echo '#ifdef __cplusplus' >>confdefs.h
2474 echo $ac_declaration >>confdefs.h
2475 echo '#endif' >>confdefs.h
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 . "$srcdir/src/template/$template" || exit
2492 if test "$ac_env_CFLAGS_set" = set; then
2493 CFLAGS=$ac_env_CFLAGS_value
2495 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2498 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2499 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2500 # Check if the compiler still works with the template settings
2501 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2502 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2504 cat >conftest.$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2506 #include "confdefs.h"
2508 #ifdef F77_DUMMY_MAIN
2512 int F77_DUMMY_MAIN() { return 1; }
2522 rm -f conftest.$ac_objext conftest$ac_exeext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2524 (eval $ac_link) 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -s conftest$ac_exeext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2537 echo "$as_me: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2539 echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6
2541 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2542 echo "$as_me: error: cannot proceed" >&2;}
2543 { (exit 1); exit 1; }; }
2545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2552 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2553 # On Suns, sometimes $CPP names a directory.
2554 if test -n "$CPP" && test -d "$CPP"; then
2557 if test -z "$CPP"; then
2558 if test "${ac_cv_prog_CPP+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 # Double quotes because CPP needs to be expanded
2562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2565 for ac_c_preproc_warn_flag in '' yes
2567 # Use a header file that comes with gcc, so configuring glibc
2568 # with a fresh cross-compiler works.
2569 # On the NeXT, cc -E runs the code through the compiler's parser,
2570 # not just through cpp. "Syntax error" is here to catch this case.
2571 cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 #include "confdefs.h"
2577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2580 egrep -v '^ *\+' conftest.er1 >conftest.err
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } >/dev/null; then
2585 if test -s conftest.err; then
2586 ac_cpp_err=$ac_c_preproc_warn_flag
2593 if test -z "$ac_cpp_err"; then
2596 echo "$as_me: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 # Broken: fails on valid input.
2601 rm -f conftest.err conftest.$ac_ext
2603 # OK, works on sane cases. Now check whether non-existent headers
2604 # can be detected and how.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #line $LINENO "configure"
2607 #include "confdefs.h"
2608 #include <ac_nonexistent.h>
2610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2613 egrep -v '^ *\+' conftest.er1 >conftest.err
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } >/dev/null; then
2618 if test -s conftest.err; then
2619 ac_cpp_err=$ac_c_preproc_warn_flag
2626 if test -z "$ac_cpp_err"; then
2627 # Broken: success on invalid input.
2630 echo "$as_me: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2632 # Passes both tests.
2636 rm -f conftest.err conftest.$ac_ext
2639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2640 rm -f conftest.err conftest.$ac_ext
2641 if $ac_preproc_ok; then
2653 echo "$as_me:$LINENO: result: $CPP" >&5
2654 echo "${ECHO_T}$CPP" >&6
2656 for ac_c_preproc_warn_flag in '' yes
2658 # Use a header file that comes with gcc, so configuring glibc
2659 # with a fresh cross-compiler works.
2660 # On the NeXT, cc -E runs the code through the compiler's parser,
2661 # not just through cpp. "Syntax error" is here to catch this case.
2662 cat >conftest.$ac_ext <<_ACEOF
2663 #line $LINENO "configure"
2664 #include "confdefs.h"
2668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2671 egrep -v '^ *\+' conftest.er1 >conftest.err
2673 cat conftest.err >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } >/dev/null; then
2676 if test -s conftest.err; then
2677 ac_cpp_err=$ac_c_preproc_warn_flag
2684 if test -z "$ac_cpp_err"; then
2687 echo "$as_me: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 # Broken: fails on valid input.
2692 rm -f conftest.err conftest.$ac_ext
2694 # OK, works on sane cases. Now check whether non-existent headers
2695 # can be detected and how.
2696 cat >conftest.$ac_ext <<_ACEOF
2697 #line $LINENO "configure"
2698 #include "confdefs.h"
2699 #include <ac_nonexistent.h>
2701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2704 egrep -v '^ *\+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } >/dev/null; then
2709 if test -s conftest.err; then
2710 ac_cpp_err=$ac_c_preproc_warn_flag
2717 if test -z "$ac_cpp_err"; then
2718 # Broken: success on invalid input.
2721 echo "$as_me: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 # Passes both tests.
2727 rm -f conftest.err conftest.$ac_ext
2730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2731 rm -f conftest.err conftest.$ac_ext
2732 if $ac_preproc_ok; then
2735 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2736 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2737 { (exit 1); exit 1; }; }
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 # Create compiler version string
2749 if test x"$GCC" = x"yes" ; then
2750 cc_string="GCC `${CC} --version | sed q`"
2755 cat >>confdefs.h <<_ACEOF
2756 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2762 # Automatic dependency tracking
2766 # Check whether --enable-depend or --disable-depend was given.
2767 if test "${enable_depend+set}" = set; then
2768 enableval="$enable_depend"
2778 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2779 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2780 { (exit 1); exit 1; }; }
2793 # Enable assert checks
2797 # Check whether --enable-cassert or --disable-cassert was given.
2798 if test "${enable_cassert+set}" = set; then
2799 enableval="$enable_cassert"
2804 cat >>confdefs.h <<\_ACEOF
2805 #define USE_ASSERT_CHECKING 1
2813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2814 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2815 { (exit 1); exit 1; }; }
2827 # Include directories
2831 # SRCH_INC comes from the template file
2832 for dir in $with_includes $SRCH_INC; do
2833 if test -d "$dir"; then
2834 INCLUDES="$INCLUDES -I$dir"
2836 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2837 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2845 # Library directories
2849 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2850 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2851 if test -d "$dir"; then
2852 LIBDIRS="$LIBDIRS -L$dir"
2854 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2855 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2864 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2865 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2869 # Check whether --with-tcl or --without-tcl was given.
2870 if test "${with_tcl+set}" = set; then
2881 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2882 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2883 { (exit 1); exit 1; }; }
2892 echo "$as_me:$LINENO: result: $with_tcl" >&5
2893 echo "${ECHO_T}$with_tcl" >&6
2896 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2897 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2898 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2899 if test "$with_tcl" = yes; then
2903 # Check whether --with-tk or --without-tk was given.
2904 if test "${with_tk+set}" = set; then
2915 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2916 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2917 { (exit 1); exit 1; }; }
2929 echo "$as_me:$LINENO: result: $with_tk" >&5
2930 echo "${ECHO_T}$with_tk" >&6
2934 # We see if the path to the Tcl/Tk configuration scripts is specified.
2935 # This will override the use of tclsh to find the paths to search.
2940 # Check whether --with-tclconfig or --without-tclconfig was given.
2941 if test "${with_tclconfig+set}" = set; then
2942 withval="$with_tclconfig"
2946 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2947 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2948 { (exit 1); exit 1; }; }
2951 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2952 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2953 { (exit 1); exit 1; }; }
2963 # We see if the path to the Tk configuration scripts is specified.
2964 # This will override the use of tclsh to find the paths to search.
2969 # Check whether --with-tkconfig or --without-tkconfig was given.
2970 if test "${with_tkconfig+set}" = set; then
2971 withval="$with_tkconfig"
2975 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2976 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2977 { (exit 1); exit 1; }; }
2980 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2981 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2982 { (exit 1); exit 1; }; }
2993 # Optionally build Perl modules (Pg.pm and PL/Perl)
2995 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2996 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3000 # Check whether --with-perl or --without-perl was given.
3001 if test "${with_perl+set}" = set; then
3002 withval="$with_perl"
3012 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3013 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3014 { (exit 1); exit 1; }; }
3023 echo "$as_me:$LINENO: result: $with_perl" >&5
3024 echo "${ECHO_T}$with_perl" >&6
3028 # Optionally build Python interface module
3030 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3031 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3035 # Check whether --with-python or --without-python was given.
3036 if test "${with_python+set}" = set; then
3037 withval="$with_python"
3047 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3048 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3049 { (exit 1); exit 1; }; }
3058 echo "$as_me:$LINENO: result: $with_python" >&5
3059 echo "${ECHO_T}$with_python" >&6
3063 # Optionally build the Java/JDBC tools
3065 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3066 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3070 # Check whether --with-java or --without-java was given.
3071 if test "${with_java+set}" = set; then
3072 withval="$with_java"
3076 echo "$as_me:$LINENO: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6
3079 for ac_prog in jakarta-ant ant ant.sh ant.bat
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_path_ANT+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 if test -n "$ANT"; then
3113 echo "$as_me:$LINENO: result: $ANT" >&5
3114 echo "${ECHO_T}$ANT" >&6
3116 echo "$as_me:$LINENO: result: no" >&5
3117 echo "${ECHO_T}no" >&6
3120 test -n "$ANT" && break
3124 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3125 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3126 if test "${pgac_cv_prog_ant_works+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat > conftest.java << EOF
3131 public class conftest {
3132 int testmethod(int a, int b) {
3138 cat > conftest.xml << EOF
3139 <project name="conftest" default="conftest">
3140 <target name="conftest">
3141 <javac srcdir="." includes="conftest.java">
3147 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3148 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3149 (eval $pgac_cmd) 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3154 if test $? = 0 && test -f ./conftest.class ; then
3155 pgac_cv_prog_ant_works=yes
3157 echo "configure: failed java program was:" >&5
3158 cat conftest.java >&5
3159 echo "configure: failed build file was:" >&5
3160 cat conftest.xml >&5
3161 pgac_cv_prog_ant_works=no
3164 rm -f conftest* core core.* *.core
3167 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3168 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3170 if test "$pgac_cv_prog_ant_works" != yes; then
3171 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3172 echo "$as_me: error: ant does not work" >&2;}
3173 { (exit 1); exit 1; }; }
3177 if test -z "$ANT"; then
3178 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3179 echo "$as_me: error: Ant is required to build Java components" >&2;}
3180 { (exit 1); exit 1; }; }
3184 echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3188 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3189 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3190 { (exit 1); exit 1; }; }
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3206 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3207 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3211 # Check whether --with-krb4 or --without-krb4 was given.
3212 if test "${with_krb4+set}" = set; then
3213 withval="$with_krb4"
3217 krb4_prefix=/usr/athena
3224 krb4_prefix=$withval
3233 if test "$with_krb4" = yes; then
3235 echo "$as_me:$LINENO: result: yes" >&5
3236 echo "${ECHO_T}yes" >&6
3238 cat >>confdefs.h <<\_ACEOF
3243 if test -d "$krb4_prefix/include"; then
3244 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3246 if test -d "$krb4_prefix/lib"; then
3247 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3250 krb_srvtab="/etc/srvtab"
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3264 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3265 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3269 # Check whether --with-krb5 or --without-krb5 was given.
3270 if test "${with_krb5+set}" = set; then
3271 withval="$with_krb5"
3275 krb5_prefix=/usr/athena
3282 krb5_prefix=$withval
3291 if test "$with_krb5" = yes; then
3293 echo "$as_me:$LINENO: result: yes" >&5
3294 echo "${ECHO_T}yes" >&6
3296 cat >>confdefs.h <<\_ACEOF
3301 if test -d "$krb5_prefix/include"; then
3302 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3304 if test -d "$krb5_prefix/lib"; then
3305 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3308 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3311 echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3319 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3320 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3321 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3322 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3323 { (exit 1); exit 1; }; }
3330 # Kerberos configuration parameters
3335 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3336 if test "${with_krb_srvnam+set}" = set; then
3337 withval="$with_krb_srvnam"
3341 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3342 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3343 { (exit 1); exit 1; }; }
3346 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3347 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3348 { (exit 1); exit 1; }; }
3356 with_krb_srvnam="postgres"
3360 cat >>confdefs.h <<_ACEOF
3361 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3369 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3370 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3374 # Check whether --with-pam or --without-pam was given.
3375 if test "${with_pam+set}" = set; then
3381 cat >>confdefs.h <<\_ACEOF
3390 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3391 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3392 { (exit 1); exit 1; }; }
3401 echo "$as_me:$LINENO: result: $with_pam" >&5
3402 echo "${ECHO_T}$with_pam" >&6
3412 # Check whether --with-openssl or --without-openssl was given.
3413 if test "${with_openssl+set}" = set; then
3414 withval="$with_openssl"
3418 openssl_prefix=/usr/local/ssl
3425 openssl_prefix=$withval
3434 if test "$with_openssl" = yes; then
3436 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3437 echo "${ECHO_T}building with OpenSSL support" >&6
3439 cat >>confdefs.h <<\_ACEOF
3444 if test -d "${openssl_prefix}/include" ; then
3445 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3447 if test -d "${openssl_prefix}/lib" ; then
3448 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3463 # Check whether --with-readline or --without-readline was given.
3464 if test "${with_readline+set}" = set; then
3465 withval="$with_readline"
3475 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3476 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3477 { (exit 1); exit 1; }; }
3493 # Check whether --with-zlib or --without-zlib was given.
3494 if test "${with_zlib+set}" = set; then
3495 withval="$with_zlib"
3505 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3506 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3507 { (exit 1); exit 1; }; }
3520 # Optionally enable the building of the ODBC driver
3524 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3525 enable_odbc=$with_odbc
3528 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3529 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3532 # Check whether --enable-odbc or --disable-odbc was given.
3533 if test "${enable_odbc+set}" = set; then
3534 enableval="$enable_odbc"
3544 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3545 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3546 { (exit 1); exit 1; }; }
3558 # Check whether --with-unixodbc or --without-unixodbc was given.
3559 if test "${with_unixodbc+set}" = set; then
3560 withval="$with_unixodbc"
3570 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3571 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3572 { (exit 1); exit 1; }; }
3584 # Check whether --with-iodbc or --without-iodbc was given.
3585 if test "${with_iodbc+set}" = set; then
3586 withval="$with_iodbc"
3596 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3597 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3598 { (exit 1); exit 1; }; }
3607 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3608 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3609 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3610 { (exit 1); exit 1; }; }
3612 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3615 case $enable_odbc:$with_unixodbc:$with_iodbc in
3616 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3617 echo "${ECHO_T}yes (stand-alone)" >&6;;
3618 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3619 echo "${ECHO_T}yes (unixODBC)" >&6
3621 cat >>confdefs.h <<\_ACEOF
3622 #define WITH_UNIXODBC 1
3626 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3627 echo "${ECHO_T}yes (iODBC)" >&6
3629 cat >>confdefs.h <<\_ACEOF
3630 #define WITH_IODBC 1
3634 no:*) echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6;;
3642 # Allow for overriding the default location of the odbcinst.ini
3643 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3647 # Check whether --with-odbcinst or --without-odbcinst was given.
3648 if test "${with_odbcinst+set}" = set; then
3649 withval="$with_odbcinst"
3653 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3654 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3655 { (exit 1); exit 1; }; }
3658 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3659 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3660 { (exit 1); exit 1; }; }
3663 odbcinst_ini_dir=$withval
3668 odbcinst_ini_dir="\${sysconfdir}"
3675 # Assume system is ELF if it predefines __ELF__ as 1,
3676 # otherwise believe host_os based default.
3678 freebsd1*|freebsd2*) elf=no;;
3679 freebsd3*|freebsd4*) elf=yes;;
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 #include "confdefs.h"
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 egrep "yes" >/dev/null 2>&1; then
3695 if test "X$elf" = "Xyes" ; then
3708 # Optionally build C++ code (i.e., libpq++)
3710 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3711 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3715 # Check whether --with-CXX or --without-CXX was given.
3716 if test "${with_CXX+set}" = set; then
3737 if test "$with_CXX" = yes; then
3739 echo "$as_me:$LINENO: result: yes" >&5
3740 echo "${ECHO_T}yes" >&6
3742 # If the user has specified CXXFLAGS in the environment, leave it
3743 # alone, else use a default.
3746 ac_cpp='$CXXCPP $CPPFLAGS'
3747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3750 if test -n "$ac_tool_prefix"; then
3751 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3755 echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_CXX+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$CXX"; then
3761 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 if test -n "$CXX"; then
3781 echo "$as_me:$LINENO: result: $CXX" >&5
3782 echo "${ECHO_T}$CXX" >&6
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3788 test -n "$CXX" && break
3791 if test -z "$CXX"; then
3793 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 if test -n "$ac_ct_CXX"; then
3803 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_CXX="$ac_prog"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3822 if test -n "$ac_ct_CXX"; then
3823 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3824 echo "${ECHO_T}$ac_ct_CXX" >&6
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3830 test -n "$ac_ct_CXX" && break
3832 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3838 # Provide some information about the compiler.
3839 echo "$as_me:$LINENO:" \
3840 "checking for C++ compiler version" >&5
3841 ac_compiler=`set X $ac_compile; echo $2`
3842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3843 (eval $ac_compiler --version </dev/null >&5) 2>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }
3847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3848 (eval $ac_compiler -v </dev/null >&5) 2>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3853 (eval $ac_compiler -V </dev/null >&5) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3858 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3859 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3860 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 cat >conftest.$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3865 #include "confdefs.h"
3867 #ifdef F77_DUMMY_MAIN
3871 int F77_DUMMY_MAIN() { return 1; }
3884 rm -f conftest.$ac_objext
3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3898 echo "$as_me: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3902 rm -f conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3906 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3907 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3908 GXX=`test $ac_compiler_gnu = yes && echo yes`
3909 ac_test_CXXFLAGS=${CXXFLAGS+set}
3910 ac_save_CXXFLAGS=$CXXFLAGS
3912 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3913 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3914 if test "${ac_cv_prog_cxx_g+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 cat >conftest.$ac_ext <<_ACEOF
3918 #line $LINENO "configure"
3919 #include "confdefs.h"
3921 #ifdef F77_DUMMY_MAIN
3925 int F77_DUMMY_MAIN() { return 1; }
3935 rm -f conftest.$ac_objext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_prog_cxx_g=yes
3949 echo "$as_me: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3953 rm -f conftest.$ac_objext conftest.$ac_ext
3955 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3956 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3957 if test "$ac_test_CXXFLAGS" = set; then
3958 CXXFLAGS=$ac_save_CXXFLAGS
3959 elif test $ac_cv_prog_cxx_g = yes; then
3960 if test "$GXX" = yes; then
3966 if test "$GXX" = yes; then
3972 for ac_declaration in \
3974 '#include <stdlib.h>' \
3975 'extern "C" void std::exit (int) throw (); using std::exit;' \
3976 'extern "C" void std::exit (int); using std::exit;' \
3977 'extern "C" void exit (int) throw ();' \
3978 'extern "C" void exit (int);' \
3981 cat >conftest.$ac_ext <<_ACEOF
3982 #line $LINENO "configure"
3983 #include "confdefs.h"
3986 #ifdef F77_DUMMY_MAIN
3990 int F77_DUMMY_MAIN() { return 1; }
4000 rm -f conftest.$ac_objext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4002 (eval $ac_compile) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } &&
4006 { ac_try='test -s conftest.$ac_objext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4014 echo "$as_me: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4018 rm -f conftest.$ac_objext conftest.$ac_ext
4019 cat >conftest.$ac_ext <<_ACEOF
4020 #line $LINENO "configure"
4021 #include "confdefs.h"
4023 #ifdef F77_DUMMY_MAIN
4027 int F77_DUMMY_MAIN() { return 1; }
4037 rm -f conftest.$ac_objext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -s conftest.$ac_objext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4051 echo "$as_me: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4057 if test -n "$ac_declaration"; then
4058 echo '#ifdef __cplusplus' >>confdefs.h
4059 echo $ac_declaration >>confdefs.h
4060 echo '#endif' >>confdefs.h
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 if test "$ac_env_CXXFLAGS" != set; then
4070 if test "$GXX" = yes; then
4074 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
4075 unixware) CXXFLAGS='-O' ;;
4080 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4081 CXXFLAGS="$CXXFLAGS -g"
4083 { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4084 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4087 ac_cpp='$CXXCPP $CPPFLAGS'
4088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4091 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4092 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4093 if test -z "$CXXCPP"; then
4094 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 # Double quotes because CXXCPP needs to be expanded
4098 for CXXCPP in "$CXX -E" "/lib/cpp"
4101 for ac_cxx_preproc_warn_flag in '' yes
4103 # Use a header file that comes with gcc, so configuring glibc
4104 # with a fresh cross-compiler works.
4105 # On the NeXT, cc -E runs the code through the compiler's parser,
4106 # not just through cpp. "Syntax error" is here to catch this case.
4107 cat >conftest.$ac_ext <<_ACEOF
4108 #line $LINENO "configure"
4109 #include "confdefs.h"
4113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4116 egrep -v '^ *\+' conftest.er1 >conftest.err
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } >/dev/null; then
4121 if test -s conftest.err; then
4122 ac_cpp_err=$ac_cxx_preproc_warn_flag
4129 if test -z "$ac_cpp_err"; then
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4134 # Broken: fails on valid input.
4137 rm -f conftest.err conftest.$ac_ext
4139 # OK, works on sane cases. Now check whether non-existent headers
4140 # can be detected and how.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 #include "confdefs.h"
4144 #include <ac_nonexistent.h>
4146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4149 egrep -v '^ *\+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev/null; then
4154 if test -s conftest.err; then
4155 ac_cpp_err=$ac_cxx_preproc_warn_flag
4162 if test -z "$ac_cpp_err"; then
4163 # Broken: success on invalid input.
4166 echo "$as_me: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4168 # Passes both tests.
4172 rm -f conftest.err conftest.$ac_ext
4175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4176 rm -f conftest.err conftest.$ac_ext
4177 if $ac_preproc_ok; then
4182 ac_cv_prog_CXXCPP=$CXXCPP
4185 CXXCPP=$ac_cv_prog_CXXCPP
4187 ac_cv_prog_CXXCPP=$CXXCPP
4189 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4190 echo "${ECHO_T}$CXXCPP" >&6
4192 for ac_cxx_preproc_warn_flag in '' yes
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 #line $LINENO "configure"
4200 #include "confdefs.h"
4204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4207 egrep -v '^ *\+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null; then
4212 if test -s conftest.err; then
4213 ac_cpp_err=$ac_cxx_preproc_warn_flag
4220 if test -z "$ac_cpp_err"; then
4223 echo "$as_me: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4225 # Broken: fails on valid input.
4228 rm -f conftest.err conftest.$ac_ext
4230 # OK, works on sane cases. Now check whether non-existent headers
4231 # can be detected and how.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 #line $LINENO "configure"
4234 #include "confdefs.h"
4235 #include <ac_nonexistent.h>
4237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4240 egrep -v '^ *\+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null; then
4245 if test -s conftest.err; then
4246 ac_cpp_err=$ac_cxx_preproc_warn_flag
4253 if test -z "$ac_cpp_err"; then
4254 # Broken: success on invalid input.
4257 echo "$as_me: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4259 # Passes both tests.
4263 rm -f conftest.err conftest.$ac_ext
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then
4271 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4272 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4273 { (exit 1); exit 1; }; }
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4291 CPPFLAGS="$CPPFLAGS $INCLUDES"
4292 LDFLAGS="$LDFLAGS $LIBDIRS"
4294 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4295 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4296 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4297 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4300 for ac_prog in gawk mawk nawk awk
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_AWK+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test -n "$AWK"; then
4310 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_AWK="$ac_prog"
4320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test -n "$AWK"; then
4330 echo "$as_me:$LINENO: result: $AWK" >&5
4331 echo "${ECHO_T}$AWK" >&6
4333 echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6
4337 test -n "$AWK" && break
4340 echo "$as_me:$LINENO: checking for flex" >&5
4341 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4342 if test "${pgac_cv_path_flex+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 # Let the user override the test
4346 if test -n "$FLEX"; then
4347 pgac_cv_path_flex=$FLEX
4351 for pgac_dir in $PATH; do
4352 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4355 for pgac_prog in flex lex; do
4356 pgac_candidate="$pgac_dir/$pgac_prog"
4357 if test -f "$pgac_candidate" \
4358 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4360 echo '%%' > conftest.l
4361 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4362 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4363 pgac_broken_flex=$pgac_candidate
4367 pgac_cv_path_flex=$pgac_candidate
4375 : ${pgac_cv_path_flex=no}
4379 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4380 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4381 if test x"$pgac_cv_path_flex" = x"no"; then
4382 if test -n "$pgac_broken_flex"; then
4383 { echo "$as_me:$LINENO: WARNING:
4384 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4385 *** should get version 2.5.4 or later." >&5
4386 echo "$as_me: WARNING:
4387 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4388 *** should get version 2.5.4 or later." >&2;}
4391 { echo "$as_me:$LINENO: WARNING:
4392 *** Without Flex you will not be able to build PostgreSQL from CVS or
4393 *** change any of the scanner definition files. You can obtain Flex from
4394 *** a GNU mirror site. (If you are using the official distribution of
4395 *** PostgreSQL then you do not need to worry about this because the Flex
4396 *** output is pre-generated.)" >&5
4397 echo "$as_me: WARNING:
4398 *** Without Flex you will not be able to build PostgreSQL from CVS or
4399 *** change any of the scanner definition files. You can obtain Flex from
4400 *** a GNU mirror site. (If you are using the official distribution of
4401 *** PostgreSQL then you do not need to worry about this because the Flex
4402 *** output is pre-generated.)" >&2;}
4405 if test x"$pgac_cv_path_flex" = x"no"; then
4408 FLEX=$pgac_cv_path_flex
4414 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4415 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4417 if test "$LN_S" = "ln -s"; then
4418 echo "$as_me:$LINENO: result: yes" >&5
4419 echo "${ECHO_T}yes" >&6
4421 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4422 echo "${ECHO_T}no, using $LN_S" >&6
4426 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4427 if test "${with_gnu_ld+set}" = set; then
4428 withval="$with_gnu_ld"
4429 test "$withval" = no || with_gnu_ld=yes
4434 if test "$GCC" = yes; then
4435 # Check if gcc -print-prog-name=ld gives a path.
4436 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4437 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4440 # gcc leaves a trailing carriage return which upsets mingw
4441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4446 # Accept absolute paths.
4447 [\\/]* | [A-Za-z]:[\\/]*)
4448 re_direlt='/[^/][^/]*/\.\./'
4449 # Canonicalize the path of ld
4450 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4452 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4454 test -z "$LD" && LD="$ac_prog"
4457 # If it fails, then pretend we aren't using GCC.
4461 # If it is relative, then search for the first ld in PATH.
4465 elif test "$with_gnu_ld" = yes; then
4466 echo "$as_me:$LINENO: checking for GNU ld" >&5
4467 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4469 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4470 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4472 if test "${ac_cv_path_LD+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -z "$LD"; then
4476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4477 for ac_dir in $PATH; do
4478 test -z "$ac_dir" && ac_dir=.
4479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4480 ac_cv_path_LD="$ac_dir/$ac_prog"
4481 # Check to see if the program is GNU ld. I'd rather use --version,
4482 # but apparently some GNU ld's only accept -v.
4483 # Break only if it was the GNU/non-GNU ld that we prefer.
4484 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4485 test "$with_gnu_ld" != no && break
4487 test "$with_gnu_ld" != yes && break
4493 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4498 if test -n "$LD"; then
4499 echo "$as_me:$LINENO: result: $LD" >&5
4500 echo "${ECHO_T}$LD" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4505 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4506 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4507 { (exit 1); exit 1; }; }
4508 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4509 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4510 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4514 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4515 ac_cv_prog_gnu_ld=yes
4517 ac_cv_prog_gnu_ld=no
4520 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4521 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4522 with_gnu_ld=$ac_cv_prog_gnu_ld
4527 case $host_os in sysv5*)
4528 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4529 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4530 if test "${pgac_cv_prog_ld_R+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4535 cat >conftest.$ac_ext <<_ACEOF
4536 #line $LINENO "configure"
4537 #include "confdefs.h"
4539 #ifdef F77_DUMMY_MAIN
4543 int F77_DUMMY_MAIN() { return 1; }
4553 rm -f conftest.$ac_objext conftest$ac_exeext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 pgac_cv_prog_ld_R=yes
4567 echo "$as_me: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 pgac_cv_prog_ld_R=no
4571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4572 LDFLAGS=$pgac_save_LDFLAGS
4575 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4576 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4577 ld_R_works=$pgac_cv_prog_ld_R
4580 if test -n "$ac_tool_prefix"; then
4581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4583 echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585 if test "${ac_cv_prog_RANLIB+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if test -n "$RANLIB"; then
4589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 RANLIB=$ac_cv_prog_RANLIB
4608 if test -n "$RANLIB"; then
4609 echo "$as_me:$LINENO: result: $RANLIB" >&5
4610 echo "${ECHO_T}$RANLIB" >&6
4612 echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4617 if test -z "$ac_cv_prog_RANLIB"; then
4618 ac_ct_RANLIB=$RANLIB
4619 # Extract the first word of "ranlib", so it can be a program name with args.
4620 set dummy ranlib; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$ac_ct_RANLIB"; then
4627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_ac_ct_RANLIB="ranlib"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4647 if test -n "$ac_ct_RANLIB"; then
4648 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4649 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4655 RANLIB=$ac_ct_RANLIB
4657 RANLIB="$ac_cv_prog_RANLIB"
4660 for ac_prog in lorder
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4666 if test "${ac_cv_prog_LORDER+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 if test -n "$LORDER"; then
4670 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_LORDER="$ac_prog"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 LORDER=$ac_cv_prog_LORDER
4689 if test -n "$LORDER"; then
4690 echo "$as_me:$LINENO: result: $LORDER" >&5
4691 echo "${ECHO_T}$LORDER" >&6
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4697 test -n "$LORDER" && break
4700 # Extract the first word of "tar", so it can be a program name with args.
4701 set dummy tar; ac_word=$2
4702 echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_path_TAR+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 if test -n "$TAR"; then
4732 echo "$as_me:$LINENO: result: $TAR" >&5
4733 echo "${ECHO_T}$TAR" >&6
4735 echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}strip; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_STRIP+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test -n "$STRIP"; then
4749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 STRIP=$ac_cv_prog_STRIP
4768 if test -n "$STRIP"; then
4769 echo "$as_me:$LINENO: result: $STRIP" >&5
4770 echo "${ECHO_T}$STRIP" >&6
4772 echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4777 if test -z "$ac_cv_prog_STRIP"; then
4779 # Extract the first word of "strip", so it can be a program name with args.
4780 set dummy strip; ac_word=$2
4781 echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 if test -n "$ac_ct_STRIP"; then
4787 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_prog_ac_ct_STRIP="strip"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4806 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4807 if test -n "$ac_ct_STRIP"; then
4808 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4809 echo "${ECHO_T}$ac_ct_STRIP" >&6
4811 echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6
4817 STRIP="$ac_cv_prog_STRIP"
4821 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4822 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4823 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4824 STRIP_STATIC_LIB="$STRIP -x"
4825 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4826 echo "$as_me:$LINENO: result: yes" >&5
4827 echo "${ECHO_T}yes" >&6
4831 echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4838 for ac_prog in 'bison -y'
4840 # Extract the first word of "$ac_prog", so it can be a program name with args.
4841 set dummy $ac_prog; ac_word=$2
4842 echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4844 if test "${ac_cv_prog_YACC+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 if test -n "$YACC"; then
4848 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_prog_YACC="$ac_prog"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 YACC=$ac_cv_prog_YACC
4867 if test -n "$YACC"; then
4868 echo "$as_me:$LINENO: result: $YACC" >&5
4869 echo "${ECHO_T}$YACC" >&6
4871 echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6
4875 test -n "$YACC" && break
4878 if test -z "$YACC"; then
4879 { echo "$as_me:$LINENO: WARNING:
4880 *** Without Bison you will not be able to build PostgreSQL from CVS or
4881 *** change any of the parser definition files. You can obtain Bison from
4882 *** a GNU mirror site. (If you are using the official distribution of
4883 *** PostgreSQL then you do not need to worry about this because the Bison
4884 *** output is pre-generated.) To use a different yacc program (possible,
4885 *** but not recommended), set the environment variable YACC before running
4886 *** 'configure'." >&5
4887 echo "$as_me: WARNING:
4888 *** Without Bison you will not be able to build PostgreSQL from CVS or
4889 *** change any of the parser definition files. You can obtain Bison from
4890 *** a GNU mirror site. (If you are using the official distribution of
4891 *** PostgreSQL then you do not need to worry about this because the Bison
4892 *** output is pre-generated.) To use a different yacc program (possible,
4893 *** but not recommended), set the environment variable YACC before running
4894 *** 'configure'." >&2;}
4898 if test "$with_tk" = yes; then
4899 # Extract the first word of "wish", so it can be a program name with args.
4900 set dummy wish; ac_word=$2
4901 echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903 if test "${ac_cv_path_WISH+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 WISH=$ac_cv_path_WISH
4930 if test -n "$WISH"; then
4931 echo "$as_me:$LINENO: result: $WISH" >&5
4932 echo "${ECHO_T}$WISH" >&6
4934 echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4938 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4939 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4940 { (exit 1); exit 1; }; }
4943 # Extract the first word of "perl", so it can be a program name with args.
4944 set dummy perl; ac_word=$2
4945 echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947 if test "${ac_cv_path_PERL+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 PERL=$ac_cv_path_PERL
4974 if test -n "$PERL"; then
4975 echo "$as_me:$LINENO: result: $PERL" >&5
4976 echo "${ECHO_T}$PERL" >&6
4978 echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4982 if test "$with_perl" = yes; then
4985 echo "$as_me:$LINENO: checking Perl installation directories" >&5
4986 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
4988 # These are the ones we currently need. Others can be added easily.
4989 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4990 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4991 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4994 echo "$as_me:$LINENO: result: done" >&5
4995 echo "${ECHO_T}done" >&6
4999 if test "$with_python" = yes; then
5000 # Extract the first word of "python", so it can be a program name with args.
5001 set dummy python; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_PYTHON+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 PYTHON=$ac_cv_path_PYTHON
5031 if test -n "$PYTHON"; then
5032 echo "$as_me:$LINENO: result: $PYTHON" >&5
5033 echo "${ECHO_T}$PYTHON" >&6
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5039 if test x"$PYTHON" = x""; then
5040 { { echo "$as_me:$LINENO: error: Python not found" >&5
5041 echo "$as_me: error: Python not found" >&2;}
5042 { (exit 1); exit 1; }; }
5046 echo "$as_me:$LINENO: checking Python installation directories" >&5
5047 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5048 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5049 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5050 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5051 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5052 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5053 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5054 python_includespec="-I${python_prefix}/include/python${python_version}"
5055 if test "$python_prefix" != "$python_execprefix"; then
5056 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5059 # This should be enough of a message.
5060 if test "$python_prefix" != "$python_execprefix"; then
5061 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5062 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5064 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5065 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5072 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5073 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5075 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5076 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5079 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5081 pgac_tab=" " # tab character
5082 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"`
5084 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5085 echo "${ECHO_T}${python_libspec}" >&6
5095 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5098 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5099 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5100 if test "${ac_cv_lib_bsd_main+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 ac_check_lib_save_LIBS=$LIBS
5105 cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5107 #include "confdefs.h"
5110 #ifdef F77_DUMMY_MAIN
5114 int F77_DUMMY_MAIN() { return 1; }
5124 rm -f conftest.$ac_objext conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_bsd_main=yes
5138 echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 ac_cv_lib_bsd_main=no
5142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5145 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5146 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5147 if test $ac_cv_lib_bsd_main = yes; then
5148 cat >>confdefs.h <<_ACEOF
5149 #define HAVE_LIBBSD 1
5158 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5159 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5160 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 ac_check_lib_save_LIBS=$LIBS
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 #include "confdefs.h"
5169 /* Override any gcc2 internal prototype to avoid an error. */
5173 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5175 char setproctitle ();
5176 #ifdef F77_DUMMY_MAIN
5180 int F77_DUMMY_MAIN() { return 1; }
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -s conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_lib_util_setproctitle=yes
5204 echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_lib_util_setproctitle=no
5208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5212 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5213 if test $ac_cv_lib_util_setproctitle = yes; then
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBUTIL 1
5223 echo "$as_me:$LINENO: checking for main in -lm" >&5
5224 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5225 if test "${ac_cv_lib_m_main+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_check_lib_save_LIBS=$LIBS
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5235 #ifdef F77_DUMMY_MAIN
5239 int F77_DUMMY_MAIN() { return 1; }
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251 (eval $ac_link) 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -s conftest$ac_exeext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_lib_m_main=yes
5263 echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5271 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5272 if test $ac_cv_lib_m_main = yes; then
5273 cat >>confdefs.h <<_ACEOF
5282 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5283 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5284 if test "${ac_cv_lib_dl_main+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 ac_check_lib_save_LIBS=$LIBS
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5294 #ifdef F77_DUMMY_MAIN
5298 int F77_DUMMY_MAIN() { return 1; }
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_lib_dl_main=yes
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 ac_cv_lib_dl_main=no
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5330 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5331 if test $ac_cv_lib_dl_main = yes; then
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_LIBDL 1
5341 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5342 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5343 if test "${ac_cv_lib_socket_main+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-lsocket $LIBS"
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line $LINENO "configure"
5350 #include "confdefs.h"
5353 #ifdef F77_DUMMY_MAIN
5357 int F77_DUMMY_MAIN() { return 1; }
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_lib_socket_main=yes
5381 echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_lib_socket_main=no
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5389 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5390 if test $ac_cv_lib_socket_main = yes; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define HAVE_LIBSOCKET 1
5395 LIBS="-lsocket $LIBS"
5400 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5401 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5402 if test "${ac_cv_lib_nsl_main+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 ac_check_lib_save_LIBS=$LIBS
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5412 #ifdef F77_DUMMY_MAIN
5416 int F77_DUMMY_MAIN() { return 1; }
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest$ac_exeext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_lib_nsl_main=yes
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_lib_nsl_main=no
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5447 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5448 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5449 if test $ac_cv_lib_nsl_main = yes; then
5450 cat >>confdefs.h <<_ACEOF
5451 #define HAVE_LIBNSL 1
5459 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5460 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5461 if test "${ac_cv_lib_ipc_main+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_check_lib_save_LIBS=$LIBS
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5471 #ifdef F77_DUMMY_MAIN
5475 int F77_DUMMY_MAIN() { return 1; }
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487 (eval $ac_link) 2>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -s conftest$ac_exeext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_lib_ipc_main=yes
5499 echo "$as_me: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 ac_cv_lib_ipc_main=no
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5504 LIBS=$ac_check_lib_save_LIBS
5506 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5507 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5508 if test $ac_cv_lib_ipc_main = yes; then
5509 cat >>confdefs.h <<_ACEOF
5510 #define HAVE_LIBIPC 1
5518 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5519 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5520 if test "${ac_cv_lib_IPC_main+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 ac_check_lib_save_LIBS=$LIBS
5525 cat >conftest.$ac_ext <<_ACEOF
5526 #line $LINENO "configure"
5527 #include "confdefs.h"
5530 #ifdef F77_DUMMY_MAIN
5534 int F77_DUMMY_MAIN() { return 1; }
5544 rm -f conftest.$ac_objext conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546 (eval $ac_link) 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_lib_IPC_main=yes
5558 echo "$as_me: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 ac_cv_lib_IPC_main=no
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5565 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5566 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5567 if test $ac_cv_lib_IPC_main = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define HAVE_LIBIPC 1
5577 echo "$as_me:$LINENO: checking for main in -llc" >&5
5578 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5579 if test "${ac_cv_lib_lc_main+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 ac_check_lib_save_LIBS=$LIBS
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 #include "confdefs.h"
5589 #ifdef F77_DUMMY_MAIN
5593 int F77_DUMMY_MAIN() { return 1; }
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -s conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_lib_lc_main=yes
5617 echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 ac_cv_lib_lc_main=no
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 LIBS=$ac_check_lib_save_LIBS
5624 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5625 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5626 if test $ac_cv_lib_lc_main = yes; then
5627 cat >>confdefs.h <<_ACEOF
5628 #define HAVE_LIBLC 1
5636 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5637 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5638 if test "${ac_cv_lib_dld_main+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 ac_check_lib_save_LIBS=$LIBS
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5648 #ifdef F77_DUMMY_MAIN
5652 int F77_DUMMY_MAIN() { return 1; }
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -s conftest$ac_exeext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_lib_dld_main=yes
5676 echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_cv_lib_dld_main=no
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5684 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5685 if test $ac_cv_lib_dld_main = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define HAVE_LIBDLD 1
5695 echo "$as_me:$LINENO: checking for main in -lld" >&5
5696 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5697 if test "${ac_cv_lib_ld_main+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 ac_check_lib_save_LIBS=$LIBS
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 #include "confdefs.h"
5707 #ifdef F77_DUMMY_MAIN
5711 int F77_DUMMY_MAIN() { return 1; }
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -s conftest$ac_exeext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_lib_ld_main=yes
5735 echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 ac_cv_lib_ld_main=no
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5743 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5744 if test $ac_cv_lib_ld_main = yes; then
5745 cat >>confdefs.h <<_ACEOF
5746 #define HAVE_LIBLD 1
5754 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5755 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5756 if test "${ac_cv_lib_compat_main+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 ac_check_lib_save_LIBS=$LIBS
5760 LIBS="-lcompat $LIBS"
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5766 #ifdef F77_DUMMY_MAIN
5770 int F77_DUMMY_MAIN() { return 1; }
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782 (eval $ac_link) 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -s conftest$ac_exeext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_cv_lib_compat_main=yes
5794 echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 ac_cv_lib_compat_main=no
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 LIBS=$ac_check_lib_save_LIBS
5801 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5802 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5803 if test $ac_cv_lib_compat_main = yes; then
5804 cat >>confdefs.h <<_ACEOF
5805 #define HAVE_LIBCOMPAT 1
5808 LIBS="-lcompat $LIBS"
5813 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5814 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5815 if test "${ac_cv_lib_BSD_main+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_check_lib_save_LIBS=$LIBS
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 #include "confdefs.h"
5825 #ifdef F77_DUMMY_MAIN
5829 int F77_DUMMY_MAIN() { return 1; }
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_lib_BSD_main=yes
5853 echo "$as_me: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 ac_cv_lib_BSD_main=no
5857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5861 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5862 if test $ac_cv_lib_BSD_main = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864 #define HAVE_LIBBSD 1
5872 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5873 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5874 if test "${ac_cv_lib_gen_main+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_check_lib_save_LIBS=$LIBS
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5884 #ifdef F77_DUMMY_MAIN
5888 int F77_DUMMY_MAIN() { return 1; }
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -s conftest$ac_exeext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 ac_cv_lib_gen_main=yes
5912 echo "$as_me: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 ac_cv_lib_gen_main=no
5916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5919 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5920 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5921 if test $ac_cv_lib_gen_main = yes; then
5922 cat >>confdefs.h <<_ACEOF
5923 #define HAVE_LIBGEN 1
5931 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5932 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5933 if test "${ac_cv_lib_PW_main+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 ac_check_lib_save_LIBS=$LIBS
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 #include "confdefs.h"
5943 #ifdef F77_DUMMY_MAIN
5947 int F77_DUMMY_MAIN() { return 1; }
5957 rm -f conftest.$ac_objext conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -s conftest$ac_exeext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_lib_PW_main=yes
5971 echo "$as_me: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 ac_cv_lib_PW_main=no
5975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5978 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5979 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5980 if test $ac_cv_lib_PW_main = yes; then
5981 cat >>confdefs.h <<_ACEOF
5982 #define HAVE_LIBPW 1
5990 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5991 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5992 if test "${ac_cv_lib_resolv_main+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 ac_check_lib_save_LIBS=$LIBS
5996 LIBS="-lresolv $LIBS"
5997 cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6002 #ifdef F77_DUMMY_MAIN
6006 int F77_DUMMY_MAIN() { return 1; }
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -s conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_lib_resolv_main=yes
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 ac_cv_lib_resolv_main=no
6034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6037 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6038 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6039 if test $ac_cv_lib_resolv_main = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041 #define HAVE_LIBRESOLV 1
6044 LIBS="-lresolv $LIBS"
6050 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6051 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6052 if test "${ac_cv_lib_unix_main+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_check_lib_save_LIBS=$LIBS
6057 cat >conftest.$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6059 #include "confdefs.h"
6062 #ifdef F77_DUMMY_MAIN
6066 int F77_DUMMY_MAIN() { return 1; }
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078 (eval $ac_link) 2>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -s conftest$ac_exeext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_lib_unix_main=yes
6090 echo "$as_me: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 ac_cv_lib_unix_main=no
6094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6095 LIBS=$ac_check_lib_save_LIBS
6097 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6098 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6099 if test $ac_cv_lib_unix_main = yes; then
6100 cat >>confdefs.h <<_ACEOF
6101 #define HAVE_LIBUNIX 1
6108 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6109 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6110 if test "${ac_cv_search_crypt+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_func_search_save_LIBS=$LIBS
6114 ac_cv_search_crypt=no
6115 cat >conftest.$ac_ext <<_ACEOF
6116 #line $LINENO "configure"
6117 #include "confdefs.h"
6119 /* Override any gcc2 internal prototype to avoid an error. */
6123 /* We use char because int might match the return type of a gcc2
6124 builtin and then its argument prototype would still apply. */
6126 #ifdef F77_DUMMY_MAIN
6130 int F77_DUMMY_MAIN() { return 1; }
6140 rm -f conftest.$ac_objext conftest$ac_exeext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142 (eval $ac_link) 2>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -s conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_search_crypt="none required"
6154 echo "$as_me: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6158 if test "$ac_cv_search_crypt" = no; then
6159 for ac_lib in crypt; do
6160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6161 cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 #include "confdefs.h"
6165 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6172 #ifdef F77_DUMMY_MAIN
6176 int F77_DUMMY_MAIN() { return 1; }
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_search_crypt="-l$ac_lib"
6201 echo "$as_me: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_func_search_save_LIBS
6209 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6210 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6211 if test "$ac_cv_search_crypt" != no; then
6212 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6218 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6219 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6220 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 ac_check_lib_save_LIBS=$LIBS
6225 cat >conftest.$ac_ext <<_ACEOF
6226 #line $LINENO "configure"
6227 #include "confdefs.h"
6229 /* Override any gcc2 internal prototype to avoid an error. */
6233 /* We use char because int might match the return type of a gcc2
6234 builtin and then its argument prototype would still apply. */
6235 char __inet_ntoa ();
6236 #ifdef F77_DUMMY_MAIN
6240 int F77_DUMMY_MAIN() { return 1; }
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -s conftest$ac_exeext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_cv_lib_bind___inet_ntoa=yes
6264 echo "$as_me: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6266 ac_cv_lib_bind___inet_ntoa=no
6268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6269 LIBS=$ac_check_lib_save_LIBS
6271 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6272 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6273 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6274 cat >>confdefs.h <<_ACEOF
6275 #define HAVE_LIBBIND 1
6283 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6284 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6285 if test "${ac_cv_search_fdatasync+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_func_search_save_LIBS=$LIBS
6289 ac_cv_search_fdatasync=no
6290 cat >conftest.$ac_ext <<_ACEOF
6291 #line $LINENO "configure"
6292 #include "confdefs.h"
6294 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6301 #ifdef F77_DUMMY_MAIN
6305 int F77_DUMMY_MAIN() { return 1; }
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317 (eval $ac_link) 2>&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_search_fdatasync="none required"
6329 echo "$as_me: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6333 if test "$ac_cv_search_fdatasync" = no; then
6334 for ac_lib in rt posix4; do
6335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6336 cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6338 #include "confdefs.h"
6340 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6347 #ifdef F77_DUMMY_MAIN
6351 int F77_DUMMY_MAIN() { return 1; }
6361 rm -f conftest.$ac_objext conftest$ac_exeext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -s conftest$ac_exeext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_search_fdatasync="-l$ac_lib"
6376 echo "$as_me: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6382 LIBS=$ac_func_search_save_LIBS
6384 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6385 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6386 if test "$ac_cv_search_fdatasync" != no; then
6387 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6392 if test "$with_readline" = yes; then
6394 echo "$as_me:$LINENO: checking for readline" >&5
6395 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6397 if test "${pgac_cv_check_readline+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 pgac_cv_check_readline=no
6401 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6402 for pgac_rllib in -lreadline -ledit ; do
6403 pgac_save_LIBS=$LIBS
6404 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6416 #ifdef F77_DUMMY_MAIN
6420 int F77_DUMMY_MAIN() { return 1; }
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6432 (eval $ac_link) 2>&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -s conftest$ac_exeext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6443 # NetBSD and OpenBSD have a broken linker that does not
6444 # recognize dependent libraries
6445 case $host_os in netbsd* | openbsd* )
6448 *) pgac_lib=" -lcurses" ;;
6452 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6456 echo "$as_me: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6460 LIBS=$pgac_save_LIBS
6463 LIBS=$pgac_save_LIBS
6467 if test "$pgac_cv_check_readline" != no ; then
6469 cat >>confdefs.h <<\_ACEOF
6470 #define HAVE_LIBREADLINE 1
6473 LIBS="$pgac_cv_check_readline $LIBS"
6474 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6475 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6477 echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6
6480 if test x"$pgac_cv_check_readline" = x"no"; then
6481 { { echo "$as_me:$LINENO: error: readline library not found
6482 Use --without-readline to disable readline support." >&5
6483 echo "$as_me: error: readline library not found
6484 Use --without-readline to disable readline support." >&2;}
6485 { (exit 1); exit 1; }; }
6489 if test "$with_zlib" = yes; then
6491 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6492 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6493 if test "${ac_cv_lib_z_inflate+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_check_lib_save_LIBS=$LIBS
6498 cat >conftest.$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6500 #include "confdefs.h"
6502 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6509 #ifdef F77_DUMMY_MAIN
6513 int F77_DUMMY_MAIN() { return 1; }
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -s conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 ac_cv_lib_z_inflate=yes
6537 echo "$as_me: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6539 ac_cv_lib_z_inflate=no
6541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6542 LIBS=$ac_check_lib_save_LIBS
6544 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6545 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6546 if test $ac_cv_lib_z_inflate = yes; then
6547 cat >>confdefs.h <<_ACEOF
6554 { { echo "$as_me:$LINENO: error: zlib library not found
6555 Use --without-zlib to disable zlib support." >&5
6556 echo "$as_me: error: zlib library not found
6557 Use --without-zlib to disable zlib support." >&2;}
6558 { (exit 1); exit 1; }; }
6563 if test "$with_krb4" = yes ; then
6565 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6566 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6567 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 ac_check_lib_save_LIBS=$LIBS
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 #include "confdefs.h"
6576 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char des_encrypt ();
6583 #ifdef F77_DUMMY_MAIN
6587 int F77_DUMMY_MAIN() { return 1; }
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_lib_des_des_encrypt=yes
6611 echo "$as_me: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 ac_cv_lib_des_des_encrypt=no
6615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6616 LIBS=$ac_check_lib_save_LIBS
6618 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6619 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6620 if test $ac_cv_lib_des_des_encrypt = yes; then
6621 cat >>confdefs.h <<_ACEOF
6622 #define HAVE_LIBDES 1
6628 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6629 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6630 { (exit 1); exit 1; }; }
6634 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6635 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6636 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 ac_check_lib_save_LIBS=$LIBS
6641 cat >conftest.$ac_ext <<_ACEOF
6642 #line $LINENO "configure"
6643 #include "confdefs.h"
6645 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6651 char krb_sendauth ();
6652 #ifdef F77_DUMMY_MAIN
6656 int F77_DUMMY_MAIN() { return 1; }
6666 rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668 (eval $ac_link) 2>&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -s conftest$ac_exeext'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
6678 ac_cv_lib_krb_krb_sendauth=yes
6680 echo "$as_me: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6682 ac_cv_lib_krb_krb_sendauth=no
6684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6685 LIBS=$ac_check_lib_save_LIBS
6687 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6688 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6689 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_LIBKRB 1
6697 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6698 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6699 { (exit 1); exit 1; }; }
6704 if test "$with_krb5" = yes ; then
6705 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6706 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6707 if test "${ac_cv_search_com_err+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 ac_func_search_save_LIBS=$LIBS
6711 ac_cv_search_com_err=no
6712 cat >conftest.$ac_ext <<_ACEOF
6713 #line $LINENO "configure"
6714 #include "confdefs.h"
6716 /* Override any gcc2 internal prototype to avoid an error. */
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6723 #ifdef F77_DUMMY_MAIN
6727 int F77_DUMMY_MAIN() { return 1; }
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739 (eval $ac_link) 2>&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest$ac_exeext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_search_com_err="none required"
6751 echo "$as_me: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6755 if test "$ac_cv_search_com_err" = no; then
6756 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6758 cat >conftest.$ac_ext <<_ACEOF
6759 #line $LINENO "configure"
6760 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */
6766 /* We use char because int might match the return type of a gcc2
6767 builtin and then its argument prototype would still apply. */
6769 #ifdef F77_DUMMY_MAIN
6773 int F77_DUMMY_MAIN() { return 1; }
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_search_com_err="-l$ac_lib"
6798 echo "$as_me: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6804 LIBS=$ac_func_search_save_LIBS
6806 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6807 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6808 if test "$ac_cv_search_com_err" != no; then
6809 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6812 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6813 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6814 { (exit 1); exit 1; }; }
6817 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6818 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6819 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_func_search_save_LIBS=$LIBS
6823 ac_cv_search_krb5_encrypt=no
6824 cat >conftest.$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 #include "confdefs.h"
6828 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6834 char krb5_encrypt ();
6835 #ifdef F77_DUMMY_MAIN
6839 int F77_DUMMY_MAIN() { return 1; }
6849 rm -f conftest.$ac_objext conftest$ac_exeext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6851 (eval $ac_link) 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -s conftest$ac_exeext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_cv_search_krb5_encrypt="none required"
6863 echo "$as_me: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6867 if test "$ac_cv_search_krb5_encrypt" = no; then
6868 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6870 cat >conftest.$ac_ext <<_ACEOF
6871 #line $LINENO "configure"
6872 #include "confdefs.h"
6874 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6880 char krb5_encrypt ();
6881 #ifdef F77_DUMMY_MAIN
6885 int F77_DUMMY_MAIN() { return 1; }
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897 (eval $ac_link) 2>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -s conftest$ac_exeext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_search_krb5_encrypt="-l$ac_lib"
6910 echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6916 LIBS=$ac_func_search_save_LIBS
6918 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6919 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6920 if test "$ac_cv_search_krb5_encrypt" != no; then
6921 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6924 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6925 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6926 { (exit 1); exit 1; }; }
6929 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6930 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6931 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 ac_func_search_save_LIBS=$LIBS
6935 ac_cv_search_krb5_sendauth=no
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line $LINENO "configure"
6938 #include "confdefs.h"
6940 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6946 char krb5_sendauth ();
6947 #ifdef F77_DUMMY_MAIN
6951 int F77_DUMMY_MAIN() { return 1; }
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963 (eval $ac_link) 2>&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -s conftest$ac_exeext'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; }; then
6973 ac_cv_search_krb5_sendauth="none required"
6975 echo "$as_me: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6979 if test "$ac_cv_search_krb5_sendauth" = no; then
6980 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6982 cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 #include "confdefs.h"
6986 /* Override any gcc2 internal prototype to avoid an error. */
6990 /* We use char because int might match the return type of a gcc2
6991 builtin and then its argument prototype would still apply. */
6992 char krb5_sendauth ();
6993 #ifdef F77_DUMMY_MAIN
6997 int F77_DUMMY_MAIN() { return 1; }
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_search_krb5_sendauth="-l$ac_lib"
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_func_search_save_LIBS
7030 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7031 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7032 if test "$ac_cv_search_krb5_sendauth" != no; then
7033 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7036 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7037 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7038 { (exit 1); exit 1; }; }
7043 if test "$with_openssl" = yes ; then
7045 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7046 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7047 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 ac_check_lib_save_LIBS=$LIBS
7051 LIBS="-lcrypto $LIBS"
7052 cat >conftest.$ac_ext <<_ACEOF
7053 #line $LINENO "configure"
7054 #include "confdefs.h"
7056 /* Override any gcc2 internal prototype to avoid an error. */
7060 /* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7062 char CRYPTO_new_ex_data ();
7063 #ifdef F77_DUMMY_MAIN
7067 int F77_DUMMY_MAIN() { return 1; }
7072 CRYPTO_new_ex_data ();
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079 (eval $ac_link) 2>&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -s conftest$ac_exeext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 LIBS=$ac_check_lib_save_LIBS
7098 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7099 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7100 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 #define HAVE_LIBCRYPTO 1
7105 LIBS="-lcrypto $LIBS"
7108 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7109 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7110 { (exit 1); exit 1; }; }
7114 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7115 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7116 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 ac_check_lib_save_LIBS=$LIBS
7121 cat >conftest.$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7123 #include "confdefs.h"
7125 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7131 char SSL_library_init ();
7132 #ifdef F77_DUMMY_MAIN
7136 int F77_DUMMY_MAIN() { return 1; }
7141 SSL_library_init ();
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -s conftest$ac_exeext'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7158 ac_cv_lib_ssl_SSL_library_init=yes
7160 echo "$as_me: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 ac_cv_lib_ssl_SSL_library_init=no
7164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7165 LIBS=$ac_check_lib_save_LIBS
7167 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7168 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7169 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7170 cat >>confdefs.h <<_ACEOF
7171 #define HAVE_LIBSSL 1
7177 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7178 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7179 { (exit 1); exit 1; }; }
7184 if test "$with_pam" = yes ; then
7186 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7187 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7188 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ac_check_lib_save_LIBS=$LIBS
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7197 /* Override any gcc2 internal prototype to avoid an error. */
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7204 #ifdef F77_DUMMY_MAIN
7208 int F77_DUMMY_MAIN() { return 1; }
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_lib_pam_pam_start=yes
7232 echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_lib_pam_pam_start=no
7236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7240 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7241 if test $ac_cv_lib_pam_pam_start = yes; then
7242 cat >>confdefs.h <<_ACEOF
7243 #define HAVE_LIBPAM 1
7249 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7250 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7251 { (exit 1); exit 1; }; }
7260 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7261 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7262 if test "${ac_cv_header_stdc+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7267 #include "confdefs.h"
7274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7277 egrep -v '^ *\+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } >/dev/null; then
7282 if test -s conftest.err; then
7283 ac_cpp_err=$ac_c_preproc_warn_flag
7290 if test -z "$ac_cpp_err"; then
7291 ac_cv_header_stdc=yes
7293 echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_cv_header_stdc=no
7297 rm -f conftest.err conftest.$ac_ext
7299 if test $ac_cv_header_stdc = yes; then
7300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 egrep "memchr" >/dev/null 2>&1; then
7311 ac_cv_header_stdc=no
7317 if test $ac_cv_header_stdc = yes; then
7318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7319 cat >conftest.$ac_ext <<_ACEOF
7320 #line $LINENO "configure"
7321 #include "confdefs.h"
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326 egrep "free" >/dev/null 2>&1; then
7329 ac_cv_header_stdc=no
7335 if test $ac_cv_header_stdc = yes; then
7336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7337 if test "$cross_compiling" = yes; then
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 #include "confdefs.h"
7344 #if ((' ' & 0x0FF) == 0x020)
7345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7348 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7349 || ('j' <= (c) && (c) <= 'r') \
7350 || ('s' <= (c) && (c) <= 'z'))
7351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7359 for (i = 0; i < 256; i++)
7360 if (XOR (islower (i), ISLOWER (i))
7361 || toupper (i) != TOUPPER (i))
7366 rm -f conftest$ac_exeext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368 (eval $ac_link) 2>&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7379 echo "$as_me: program exited with status $ac_status" >&5
7380 echo "$as_me: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7383 ac_cv_header_stdc=no
7385 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7389 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7390 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7391 if test $ac_cv_header_stdc = yes; then
7393 cat >>confdefs.h <<\_ACEOF
7394 #define STDC_HEADERS 1
7399 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7409 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7410 inttypes.h stdint.h unistd.h
7412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7413 echo "$as_me:$LINENO: checking for $ac_header" >&5
7414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 cat >conftest.$ac_ext <<_ACEOF
7419 #line $LINENO "configure"
7420 #include "confdefs.h"
7421 $ac_includes_default
7423 #include <$ac_header>
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 eval "$as_ac_Header=yes"
7439 echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 eval "$as_ac_Header=no"
7443 rm -f conftest.$ac_objext conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448 cat >>confdefs.h <<_ACEOF
7449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7475 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
7477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7479 echo "$as_me:$LINENO: checking for $ac_header" >&5
7480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487 # Is the header compilable?
7488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7490 cat >conftest.$ac_ext <<_ACEOF
7491 #line $LINENO "configure"
7492 #include "confdefs.h"
7493 $ac_includes_default
7494 #include <$ac_header>
7496 rm -f conftest.$ac_objext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498 (eval $ac_compile) 2>&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -s conftest.$ac_objext'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 ac_header_compiler=yes
7510 echo "$as_me: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7512 ac_header_compiler=no
7514 rm -f conftest.$ac_objext conftest.$ac_ext
7515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7516 echo "${ECHO_T}$ac_header_compiler" >&6
7518 # Is the header present?
7519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7522 #line $LINENO "configure"
7523 #include "confdefs.h"
7524 #include <$ac_header>
7526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7529 egrep -v '^ *\+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev/null; then
7534 if test -s conftest.err; then
7535 ac_cpp_err=$ac_c_preproc_warn_flag
7542 if test -z "$ac_cpp_err"; then
7543 ac_header_preproc=yes
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_header_preproc=no
7549 rm -f conftest.err conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7551 echo "${ECHO_T}$ac_header_preproc" >&6
7553 # So? What about this header?
7554 case $ac_header_compiler:$ac_header_preproc in
7556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7568 echo "$as_me:$LINENO: checking for $ac_header" >&5
7569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 eval "$as_ac_Header=$ac_header_preproc"
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7580 cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7589 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7590 # netinet/in.h is included first.
7592 for ac_header in netinet/in.h
7594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596 echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7604 # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 #include "confdefs.h"
7610 $ac_includes_default
7611 #include <$ac_header>
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_header_compiler=yes
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 ac_header_compiler=no
7631 rm -f conftest.$ac_objext conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7633 echo "${ECHO_T}$ac_header_compiler" >&6
7635 # Is the header present?
7636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7640 #include "confdefs.h"
7641 #include <$ac_header>
7643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646 egrep -v '^ *\+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } >/dev/null; then
7651 if test -s conftest.err; then
7652 ac_cpp_err=$ac_c_preproc_warn_flag
7659 if test -z "$ac_cpp_err"; then
7660 ac_header_preproc=yes
7662 echo "$as_me: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7664 ac_header_preproc=no
7666 rm -f conftest.err conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7668 echo "${ECHO_T}$ac_header_preproc" >&6
7670 # So? What about this header?
7671 case $ac_header_compiler:$ac_header_preproc in
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7685 echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 eval "$as_ac_Header=$ac_header_preproc"
7692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7706 for ac_header in netinet/tcp.h
7708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7709 echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 cat >conftest.$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 #include "confdefs.h"
7717 $ac_includes_default
7718 #ifdef HAVE_NETINET_IN_H
7719 #include <netinet/in.h>
7723 #include <$ac_header>
7725 rm -f conftest.$ac_objext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727 (eval $ac_compile) 2>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -s conftest.$ac_objext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 eval "$as_ac_Header=yes"
7739 echo "$as_me: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7741 eval "$as_ac_Header=no"
7743 rm -f conftest.$ac_objext conftest.$ac_ext
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7748 cat >>confdefs.h <<_ACEOF
7749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7757 if test "$with_readline" = yes; then
7759 for ac_header in readline/readline.h
7761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763 echo "$as_me:$LINENO: checking for $ac_header" >&5
7764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7771 # Is the header compilable?
7772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 #include "confdefs.h"
7777 $ac_includes_default
7778 #include <$ac_header>
7780 rm -f conftest.$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_header_compiler=yes
7794 echo "$as_me: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 ac_header_compiler=no
7798 rm -f conftest.$ac_objext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7800 echo "${ECHO_T}$ac_header_compiler" >&6
7802 # Is the header present?
7803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 #include "confdefs.h"
7808 #include <$ac_header>
7810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7813 egrep -v '^ *\+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } >/dev/null; then
7818 if test -s conftest.err; then
7819 ac_cpp_err=$ac_c_preproc_warn_flag
7826 if test -z "$ac_cpp_err"; then
7827 ac_header_preproc=yes
7829 echo "$as_me: failed program was:" >&5
7830 cat conftest.$ac_ext >&5
7831 ac_header_preproc=no
7833 rm -f conftest.err conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7835 echo "${ECHO_T}$ac_header_preproc" >&6
7837 # So? What about this header?
7838 case $ac_header_compiler:$ac_header_preproc in
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7852 echo "$as_me:$LINENO: checking for $ac_header" >&5
7853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 eval "$as_ac_Header=$ac_header_preproc"
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7864 cat >>confdefs.h <<_ACEOF
7865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7870 for ac_header in readline.h
7872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7874 echo "$as_me:$LINENO: checking for $ac_header" >&5
7875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882 # Is the header compilable?
7883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 #include "confdefs.h"
7888 $ac_includes_default
7889 #include <$ac_header>
7891 rm -f conftest.$ac_objext
7892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7893 (eval $ac_compile) 2>&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_header_compiler=yes
7905 echo "$as_me: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 ac_header_compiler=no
7909 rm -f conftest.$ac_objext conftest.$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7911 echo "${ECHO_T}$ac_header_compiler" >&6
7913 # Is the header present?
7914 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7918 #include "confdefs.h"
7919 #include <$ac_header>
7921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7924 egrep -v '^ *\+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } >/dev/null; then
7929 if test -s conftest.err; then
7930 ac_cpp_err=$ac_c_preproc_warn_flag
7937 if test -z "$ac_cpp_err"; then
7938 ac_header_preproc=yes
7940 echo "$as_me: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7942 ac_header_preproc=no
7944 rm -f conftest.err conftest.$ac_ext
7945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7946 echo "${ECHO_T}$ac_header_preproc" >&6
7948 # So? What about this header?
7949 case $ac_header_compiler:$ac_header_preproc in
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7963 echo "$as_me:$LINENO: checking for $ac_header" >&5
7964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 eval "$as_ac_Header=$ac_header_preproc"
7970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7975 cat >>confdefs.h <<_ACEOF
7976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7980 { { echo "$as_me:$LINENO: error: readline header not found
7981 Use --without-readline to disable readline support." >&5
7982 echo "$as_me: error: readline header not found
7983 Use --without-readline to disable readline support." >&2;}
7984 { (exit 1); exit 1; }; }
7994 for ac_header in readline/history.h
7996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7998 echo "$as_me:$LINENO: checking for $ac_header" >&5
7999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8006 # Is the header compilable?
8007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8011 #include "confdefs.h"
8012 $ac_includes_default
8013 #include <$ac_header>
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017 (eval $ac_compile) 2>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_header_compiler=yes
8029 echo "$as_me: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8031 ac_header_compiler=no
8033 rm -f conftest.$ac_objext conftest.$ac_ext
8034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8035 echo "${ECHO_T}$ac_header_compiler" >&6
8037 # Is the header present?
8038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8040 cat >conftest.$ac_ext <<_ACEOF
8041 #line $LINENO "configure"
8042 #include "confdefs.h"
8043 #include <$ac_header>
8045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8048 egrep -v '^ *\+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } >/dev/null; then
8053 if test -s conftest.err; then
8054 ac_cpp_err=$ac_c_preproc_warn_flag
8061 if test -z "$ac_cpp_err"; then
8062 ac_header_preproc=yes
8064 echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 ac_header_preproc=no
8068 rm -f conftest.err conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8070 echo "${ECHO_T}$ac_header_preproc" >&6
8072 # So? What about this header?
8073 case $ac_header_compiler:$ac_header_preproc in
8075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8087 echo "$as_me:$LINENO: checking for $ac_header" >&5
8088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 eval "$as_ac_Header=$ac_header_preproc"
8094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8099 cat >>confdefs.h <<_ACEOF
8100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8105 for ac_header in history.h
8107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8109 echo "$as_me:$LINENO: checking for $ac_header" >&5
8110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8117 # Is the header compilable?
8118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8120 cat >conftest.$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8122 #include "confdefs.h"
8123 $ac_includes_default
8124 #include <$ac_header>
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_header_compiler=yes
8140 echo "$as_me: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8142 ac_header_compiler=no
8144 rm -f conftest.$ac_objext conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8146 echo "${ECHO_T}$ac_header_compiler" >&6
8148 # Is the header present?
8149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8151 cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 #include "confdefs.h"
8154 #include <$ac_header>
8156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8159 egrep -v '^ *\+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } >/dev/null; then
8164 if test -s conftest.err; then
8165 ac_cpp_err=$ac_c_preproc_warn_flag
8172 if test -z "$ac_cpp_err"; then
8173 ac_header_preproc=yes
8175 echo "$as_me: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 ac_header_preproc=no
8179 rm -f conftest.err conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181 echo "${ECHO_T}$ac_header_preproc" >&6
8183 # So? What about this header?
8184 case $ac_header_compiler:$ac_header_preproc in
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8198 echo "$as_me:$LINENO: checking for $ac_header" >&5
8199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 eval "$as_ac_Header=$ac_header_preproc"
8205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8215 { { echo "$as_me:$LINENO: error: history header not found
8216 Use --without-readline to disable readline support." >&5
8217 echo "$as_me: error: history header not found
8218 Use --without-readline to disable readline support." >&2;}
8219 { (exit 1); exit 1; }; }
8230 if test "$with_zlib" = yes; then
8231 if test "${ac_cv_header_zlib_h+set}" = set; then
8232 echo "$as_me:$LINENO: checking for zlib.h" >&5
8233 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_zlib_h+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8238 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8240 # Is the header compilable?
8241 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8242 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 #include "confdefs.h"
8246 $ac_includes_default
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8261 ac_header_compiler=yes
8263 echo "$as_me: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8265 ac_header_compiler=no
8267 rm -f conftest.$ac_objext conftest.$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8269 echo "${ECHO_T}$ac_header_compiler" >&6
8271 # Is the header present?
8272 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8273 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8276 #include "confdefs.h"
8279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8282 egrep -v '^ *\+' conftest.er1 >conftest.err
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } >/dev/null; then
8287 if test -s conftest.err; then
8288 ac_cpp_err=$ac_c_preproc_warn_flag
8295 if test -z "$ac_cpp_err"; then
8296 ac_header_preproc=yes
8298 echo "$as_me: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 ac_header_preproc=no
8302 rm -f conftest.err conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8304 echo "${ECHO_T}$ac_header_preproc" >&6
8306 # So? What about this header?
8307 case $ac_header_compiler:$ac_header_preproc in
8309 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8310 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8311 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8312 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8314 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8315 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8316 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8317 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8318 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8319 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8321 echo "$as_me:$LINENO: checking for zlib.h" >&5
8322 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8323 if test "${ac_cv_header_zlib_h+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_cv_header_zlib_h=$ac_header_preproc
8328 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8329 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8332 if test $ac_cv_header_zlib_h = yes; then
8335 { { echo "$as_me:$LINENO: error: zlib header not found
8336 Use --without-zlib to disable zlib support." >&5
8337 echo "$as_me: error: zlib header not found
8338 Use --without-zlib to disable zlib support." >&2;}
8339 { (exit 1); exit 1; }; }
8345 if test "$with_krb4" = yes ; then
8346 if test "${ac_cv_header_krb_h+set}" = set; then
8347 echo "$as_me:$LINENO: checking for krb.h" >&5
8348 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8349 if test "${ac_cv_header_krb_h+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8353 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8355 # Is the header compilable?
8356 echo "$as_me:$LINENO: checking krb.h usability" >&5
8357 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8359 #line $LINENO "configure"
8360 #include "confdefs.h"
8361 $ac_includes_default
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -s conftest.$ac_objext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_header_compiler=yes
8378 echo "$as_me: failed program was:" >&5
8379 cat conftest.$ac_ext >&5
8380 ac_header_compiler=no
8382 rm -f conftest.$ac_objext conftest.$ac_ext
8383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8384 echo "${ECHO_T}$ac_header_compiler" >&6
8386 # Is the header present?
8387 echo "$as_me:$LINENO: checking krb.h presence" >&5
8388 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8390 #line $LINENO "configure"
8391 #include "confdefs.h"
8394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8397 egrep -v '^ *\+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } >/dev/null; then
8402 if test -s conftest.err; then
8403 ac_cpp_err=$ac_c_preproc_warn_flag
8410 if test -z "$ac_cpp_err"; then
8411 ac_header_preproc=yes
8413 echo "$as_me: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8415 ac_header_preproc=no
8417 rm -f conftest.err conftest.$ac_ext
8418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8419 echo "${ECHO_T}$ac_header_preproc" >&6
8421 # So? What about this header?
8422 case $ac_header_compiler:$ac_header_preproc in
8424 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8425 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8427 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8429 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8430 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8431 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8432 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8434 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8436 echo "$as_me:$LINENO: checking for krb.h" >&5
8437 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8438 if test "${ac_cv_header_krb_h+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 ac_cv_header_krb_h=$ac_header_preproc
8443 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8444 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8447 if test $ac_cv_header_krb_h = yes; then
8450 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8451 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8452 { (exit 1); exit 1; }; }
8458 if test "$with_krb5" = yes ; then
8459 if test "${ac_cv_header_krb5_h+set}" = set; then
8460 echo "$as_me:$LINENO: checking for krb5.h" >&5
8461 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8462 if test "${ac_cv_header_krb5_h+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8466 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8468 # Is the header compilable?
8469 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8470 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 #include "confdefs.h"
8474 $ac_includes_default
8477 rm -f conftest.$ac_objext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8479 (eval $ac_compile) 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -s conftest.$ac_objext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_header_compiler=yes
8491 echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8493 ac_header_compiler=no
8495 rm -f conftest.$ac_objext conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8497 echo "${ECHO_T}$ac_header_compiler" >&6
8499 # Is the header present?
8500 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8501 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8504 #include "confdefs.h"
8507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8510 egrep -v '^ *\+' conftest.er1 >conftest.err
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } >/dev/null; then
8515 if test -s conftest.err; then
8516 ac_cpp_err=$ac_c_preproc_warn_flag
8523 if test -z "$ac_cpp_err"; then
8524 ac_header_preproc=yes
8526 echo "$as_me: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8528 ac_header_preproc=no
8530 rm -f conftest.err conftest.$ac_ext
8531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8532 echo "${ECHO_T}$ac_header_preproc" >&6
8534 # So? What about this header?
8535 case $ac_header_compiler:$ac_header_preproc in
8537 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8538 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8542 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8543 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8545 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8547 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8549 echo "$as_me:$LINENO: checking for krb5.h" >&5
8550 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8551 if test "${ac_cv_header_krb5_h+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_cv_header_krb5_h=$ac_header_preproc
8556 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8557 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8560 if test $ac_cv_header_krb5_h = yes; then
8563 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8564 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8565 { (exit 1); exit 1; }; }
8569 if test "${ac_cv_header_com_err_h+set}" = set; then
8570 echo "$as_me:$LINENO: checking for com_err.h" >&5
8571 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8572 if test "${ac_cv_header_com_err_h+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8576 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8578 # Is the header compilable?
8579 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8580 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 #include "confdefs.h"
8584 $ac_includes_default
8585 #include <com_err.h>
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_header_compiler=yes
8601 echo "$as_me: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 ac_header_compiler=no
8605 rm -f conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8607 echo "${ECHO_T}$ac_header_compiler" >&6
8609 # Is the header present?
8610 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8611 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 #include "confdefs.h"
8615 #include <com_err.h>
8617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8620 egrep -v '^ *\+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } >/dev/null; then
8625 if test -s conftest.err; then
8626 ac_cpp_err=$ac_c_preproc_warn_flag
8633 if test -z "$ac_cpp_err"; then
8634 ac_header_preproc=yes
8636 echo "$as_me: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8638 ac_header_preproc=no
8640 rm -f conftest.err conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642 echo "${ECHO_T}$ac_header_preproc" >&6
8644 # So? What about this header?
8645 case $ac_header_compiler:$ac_header_preproc in
8647 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8648 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8652 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8653 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8655 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8657 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8659 echo "$as_me:$LINENO: checking for com_err.h" >&5
8660 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8661 if test "${ac_cv_header_com_err_h+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 ac_cv_header_com_err_h=$ac_header_preproc
8666 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8667 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8670 if test $ac_cv_header_com_err_h = yes; then
8673 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8674 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8675 { (exit 1); exit 1; }; }
8681 if test "$with_openssl" = yes ; then
8682 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8683 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8684 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8685 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8689 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8691 # Is the header compilable?
8692 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8693 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8696 #include "confdefs.h"
8697 $ac_includes_default
8698 #include <openssl/ssl.h>
8700 rm -f conftest.$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -s conftest.$ac_objext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_header_compiler=yes
8714 echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 ac_header_compiler=no
8718 rm -f conftest.$ac_objext conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720 echo "${ECHO_T}$ac_header_compiler" >&6
8722 # Is the header present?
8723 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8724 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8725 cat >conftest.$ac_ext <<_ACEOF
8726 #line $LINENO "configure"
8727 #include "confdefs.h"
8728 #include <openssl/ssl.h>
8730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8733 egrep -v '^ *\+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } >/dev/null; then
8738 if test -s conftest.err; then
8739 ac_cpp_err=$ac_c_preproc_warn_flag
8746 if test -z "$ac_cpp_err"; then
8747 ac_header_preproc=yes
8749 echo "$as_me: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8751 ac_header_preproc=no
8753 rm -f conftest.err conftest.$ac_ext
8754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755 echo "${ECHO_T}$ac_header_preproc" >&6
8757 # So? What about this header?
8758 case $ac_header_compiler:$ac_header_preproc in
8760 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8761 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8765 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8766 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8768 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8772 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8773 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8774 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8779 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8780 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8783 if test $ac_cv_header_openssl_ssl_h = yes; then
8786 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8787 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8788 { (exit 1); exit 1; }; }
8792 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8793 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8794 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8795 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8799 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8801 # Is the header compilable?
8802 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8803 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8806 #include "confdefs.h"
8807 $ac_includes_default
8808 #include <openssl/err.h>
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812 (eval $ac_compile) 2>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -s conftest.$ac_objext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_header_compiler=yes
8824 echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_header_compiler=no
8828 rm -f conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8834 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 #include <openssl/err.h>
8840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8843 egrep -v '^ *\+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } >/dev/null; then
8848 if test -s conftest.err; then
8849 ac_cpp_err=$ac_c_preproc_warn_flag
8856 if test -z "$ac_cpp_err"; then
8857 ac_header_preproc=yes
8859 echo "$as_me: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8861 ac_header_preproc=no
8863 rm -f conftest.err conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6
8867 # So? What about this header?
8868 case $ac_header_compiler:$ac_header_preproc in
8870 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8875 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8876 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8878 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8882 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8883 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8884 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 ac_cv_header_openssl_err_h=$ac_header_preproc
8889 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8890 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8893 if test $ac_cv_header_openssl_err_h = yes; then
8896 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8897 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8898 { (exit 1); exit 1; }; }
8904 if test "$with_pam" = yes ; then
8905 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8906 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8907 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8908 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8912 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8914 # Is the header compilable?
8915 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8916 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8920 $ac_includes_default
8921 #include <security/pam_appl.h>
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -s conftest.$ac_objext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 ac_header_compiler=yes
8937 echo "$as_me: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8939 ac_header_compiler=no
8941 rm -f conftest.$ac_objext conftest.$ac_ext
8942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943 echo "${ECHO_T}$ac_header_compiler" >&6
8945 # Is the header present?
8946 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8947 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 #include "confdefs.h"
8951 #include <security/pam_appl.h>
8953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8956 egrep -v '^ *\+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } >/dev/null; then
8961 if test -s conftest.err; then
8962 ac_cpp_err=$ac_c_preproc_warn_flag
8969 if test -z "$ac_cpp_err"; then
8970 ac_header_preproc=yes
8972 echo "$as_me: failed program was:" >&5
8973 cat conftest.$ac_ext >&5
8974 ac_header_preproc=no
8976 rm -f conftest.err conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8978 echo "${ECHO_T}$ac_header_preproc" >&6
8980 # So? What about this header?
8981 case $ac_header_compiler:$ac_header_preproc in
8983 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8984 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8986 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8988 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8989 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8991 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8995 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8996 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8997 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 ac_cv_header_security_pam_appl_h=$ac_header_preproc
9002 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9003 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9006 if test $ac_cv_header_security_pam_appl_h = yes; then
9009 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9010 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9011 { (exit 1); exit 1; }; }
9019 ## Types, structures, compiler characteristics
9022 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9023 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9024 if test "${ac_cv_c_const+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9028 #line $LINENO "configure"
9029 #include "confdefs.h"
9031 #ifdef F77_DUMMY_MAIN
9035 int F77_DUMMY_MAIN() { return 1; }
9040 /* FIXME: Include the comments suggested by Paul. */
9042 /* Ultrix mips cc rejects this. */
9043 typedef int charset[2];
9045 /* SunOS 4.1.1 cc rejects this. */
9046 char const *const *ccp;
9048 /* NEC SVR4.0.2 mips cc rejects this. */
9049 struct point {int x, y;};
9050 static struct point const zero = {0,0};
9051 /* AIX XL C 1.02.0.0 rejects this.
9052 It does not let you subtract one const X* pointer from another in
9053 an arm of an if-expression whose if-part is not a constant
9055 const char *g = "string";
9056 ccp = &g + (g ? g-g : 0);
9057 /* HPUX 7.0 cc rejects these. */
9060 ccp = (char const *const *) p;
9061 { /* SCO 3.2v4 cc rejects this. */
9063 char const *s = 0 ? (char *) 0 : (char const *) 0;
9067 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9069 const int *foo = &x[0];
9072 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9073 typedef const int *iptr;
9077 { /* AIX XL C 1.02.0.0 rejects this saying
9078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9079 struct s { int j; const int *ap[3]; };
9080 struct s *b; b->j = 5;
9082 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093 (eval $ac_compile) 2>&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -s conftest.$ac_objext'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9105 echo "$as_me: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9109 rm -f conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9112 echo "${ECHO_T}$ac_cv_c_const" >&6
9113 if test $ac_cv_c_const = no; then
9115 cat >>confdefs.h <<\_ACEOF
9121 echo "$as_me:$LINENO: checking for inline" >&5
9122 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9123 if test "${ac_cv_c_inline+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 for ac_kw in inline __inline__ __inline; do
9128 cat >conftest.$ac_ext <<_ACEOF
9129 #line $LINENO "configure"
9130 #include "confdefs.h"
9132 static $ac_kw int static_foo () {return 0; }
9133 $ac_kw int foo () {return 0; }
9137 rm -f conftest.$ac_objext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139 (eval $ac_compile) 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -s conftest.$ac_objext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_c_inline=$ac_kw; break
9151 echo "$as_me: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9154 rm -f conftest.$ac_objext conftest.$ac_ext
9158 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9159 echo "${ECHO_T}$ac_cv_c_inline" >&6
9160 case $ac_cv_c_inline in
9163 cat >>confdefs.h <<\_ACEOF
9167 *) cat >>confdefs.h <<_ACEOF
9168 #define inline $ac_cv_c_inline
9173 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9174 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9175 if test "${ac_cv_c_stringize+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9179 #line $LINENO "configure"
9180 #include "confdefs.h"
9183 char *s = x(teststring);
9185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9186 egrep "#teststring" >/dev/null 2>&1; then
9187 ac_cv_c_stringize=no
9189 ac_cv_c_stringize=yes
9194 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9195 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9196 if test $ac_cv_c_stringize = yes; then
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_STRINGIZE 1
9204 echo "$as_me:$LINENO: checking for signed types" >&5
9205 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9206 if test "${pgac_cv_c_signed+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9211 #include "confdefs.h"
9213 #ifdef F77_DUMMY_MAIN
9217 int F77_DUMMY_MAIN() { return 1; }
9222 signed char c; signed short s; signed int i;
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229 (eval $ac_compile) 2>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 pgac_cv_c_signed=yes
9241 echo "$as_me: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9245 rm -f conftest.$ac_objext conftest.$ac_ext
9247 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9248 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9249 if test x"$pgac_cv_c_signed" = xno ; then
9251 cat >>confdefs.h <<\_ACEOF
9256 echo "$as_me:$LINENO: checking for working volatile" >&5
9257 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9258 if test "${ac_cv_c_volatile+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 cat >conftest.$ac_ext <<_ACEOF
9262 #line $LINENO "configure"
9263 #include "confdefs.h"
9265 #ifdef F77_DUMMY_MAIN
9269 int F77_DUMMY_MAIN() { return 1; }
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283 (eval $ac_compile) 2>&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -s conftest.$ac_objext'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 ac_cv_c_volatile=yes
9295 echo "$as_me: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9299 rm -f conftest.$ac_objext conftest.$ac_ext
9301 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9302 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9303 if test $ac_cv_c_volatile = no; then
9305 cat >>confdefs.h <<\_ACEOF
9311 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9312 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9313 if test "${ac_cv_struct_tm+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9317 #line $LINENO "configure"
9318 #include "confdefs.h"
9319 #include <sys/types.h>
9322 #ifdef F77_DUMMY_MAIN
9326 int F77_DUMMY_MAIN() { return 1; }
9331 struct tm *tp; tp->tm_sec;
9336 rm -f conftest.$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338 (eval $ac_compile) 2>&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -s conftest.$ac_objext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_struct_tm=time.h
9350 echo "$as_me: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 ac_cv_struct_tm=sys/time.h
9354 rm -f conftest.$ac_objext conftest.$ac_ext
9356 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9357 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9358 if test $ac_cv_struct_tm = sys/time.h; then
9360 cat >>confdefs.h <<\_ACEOF
9361 #define TM_IN_SYS_TIME 1
9366 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9367 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9368 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 #include "confdefs.h"
9374 #include <sys/types.h>
9375 #include <$ac_cv_struct_tm>
9378 #ifdef F77_DUMMY_MAIN
9382 int F77_DUMMY_MAIN() { return 1; }
9387 static struct tm ac_aggr;
9388 if (ac_aggr.tm_zone)
9394 rm -f conftest.$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_cv_member_struct_tm_tm_zone=yes
9408 echo "$as_me: failed program was:" >&5
9409 cat conftest.$ac_ext >&5
9410 ac_cv_member_struct_tm_tm_zone=no
9412 rm -f conftest.$ac_objext conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9415 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9416 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9418 cat >>confdefs.h <<_ACEOF
9419 #define HAVE_STRUCT_TM_TM_ZONE 1
9425 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9427 cat >>confdefs.h <<\_ACEOF
9428 #define HAVE_TM_ZONE 1
9432 echo "$as_me:$LINENO: checking for tzname" >&5
9433 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9434 if test "${ac_cv_var_tzname+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 #include "confdefs.h"
9441 #ifndef tzname /* For SGI. */
9442 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9445 #ifdef F77_DUMMY_MAIN
9449 int F77_DUMMY_MAIN() { return 1; }
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -s conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_var_tzname=yes
9473 echo "$as_me: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9479 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9480 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9481 if test $ac_cv_var_tzname = yes; then
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_TZNAME 1
9490 echo "$as_me:$LINENO: checking for union semun" >&5
9491 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9492 if test "${ac_cv_type_union_semun+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.$ac_ext <<_ACEOF
9496 #line $LINENO "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9499 #include <sys/ipc.h>
9500 #include <sys/sem.h>
9502 #ifdef F77_DUMMY_MAIN
9506 int F77_DUMMY_MAIN() { return 1; }
9511 if ((union semun *) 0)
9513 if (sizeof (union semun))
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -s conftest.$ac_objext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_type_union_semun=yes
9533 echo "$as_me: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 ac_cv_type_union_semun=no
9537 rm -f conftest.$ac_objext conftest.$ac_ext
9539 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9540 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9541 if test $ac_cv_type_union_semun = yes; then
9543 cat >>confdefs.h <<_ACEOF
9544 #define HAVE_UNION_SEMUN 1
9550 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9551 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9552 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9557 #include "confdefs.h"
9558 #include <sys/types.h>
9559 #ifdef HAVE_SYS_UN_H
9564 #ifdef F77_DUMMY_MAIN
9568 int F77_DUMMY_MAIN() { return 1; }
9573 if ((struct sockaddr_un *) 0)
9575 if (sizeof (struct sockaddr_un))
9581 rm -f conftest.$ac_objext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9583 (eval $ac_compile) 2>&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -s conftest.$ac_objext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_type_struct_sockaddr_un=yes
9595 echo "$as_me: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9597 ac_cv_type_struct_sockaddr_un=no
9599 rm -f conftest.$ac_objext conftest.$ac_ext
9601 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9602 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9603 if test $ac_cv_type_struct_sockaddr_un = yes; then
9605 cat >>confdefs.h <<_ACEOF
9606 #define HAVE_STRUCT_SOCKADDR_UN 1
9613 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9614 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9615 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9619 #line $LINENO "configure"
9620 #include "confdefs.h"
9621 #include <sys/param.h>
9622 #include <sys/socket.h>
9623 #include <sys/ucred.h>
9625 #ifdef F77_DUMMY_MAIN
9629 int F77_DUMMY_MAIN() { return 1; }
9634 if ((struct cmsgcred *) 0)
9636 if (sizeof (struct cmsgcred))
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -s conftest.$ac_objext'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 ac_cv_type_struct_cmsgcred=yes
9656 echo "$as_me: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 ac_cv_type_struct_cmsgcred=no
9660 rm -f conftest.$ac_objext conftest.$ac_ext
9662 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9663 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9664 if test $ac_cv_type_struct_cmsgcred = yes; then
9666 cat >>confdefs.h <<_ACEOF
9667 #define HAVE_STRUCT_CMSGCRED 1
9672 echo "$as_me:$LINENO: checking for struct fcred" >&5
9673 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9674 if test "${ac_cv_type_struct_fcred+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 #include "confdefs.h"
9680 #include <sys/param.h>
9681 #include <sys/socket.h>
9682 #include <sys/ucred.h>
9684 #ifdef F77_DUMMY_MAIN
9688 int F77_DUMMY_MAIN() { return 1; }
9693 if ((struct fcred *) 0)
9695 if (sizeof (struct fcred))
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703 (eval $ac_compile) 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -s conftest.$ac_objext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_type_struct_fcred=yes
9715 echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 ac_cv_type_struct_fcred=no
9719 rm -f conftest.$ac_objext conftest.$ac_ext
9721 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9722 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9723 if test $ac_cv_type_struct_fcred = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_STRUCT_FCRED 1
9731 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9732 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9733 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9738 #include "confdefs.h"
9739 #include <sys/param.h>
9740 #include <sys/socket.h>
9741 #include <sys/ucred.h>
9743 #ifdef F77_DUMMY_MAIN
9747 int F77_DUMMY_MAIN() { return 1; }
9752 if ((struct sockcred *) 0)
9754 if (sizeof (struct sockcred))
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_type_struct_sockcred=yes
9774 echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_sockcred=no
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9782 if test $ac_cv_type_struct_sockcred = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_SOCKCRED 1
9792 if test "$with_zlib" = yes; then
9793 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9794 # did not). While we could work around the lack of z_streamp, it
9795 # seems unwise to encourage people to use such old zlib versions...
9796 echo "$as_me:$LINENO: checking for z_streamp" >&5
9797 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9798 if test "${ac_cv_type_z_streamp+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 cat >conftest.$ac_ext <<_ACEOF
9802 #line $LINENO "configure"
9803 #include "confdefs.h"
9806 #ifdef F77_DUMMY_MAIN
9810 int F77_DUMMY_MAIN() { return 1; }
9815 if ((z_streamp *) 0)
9817 if (sizeof (z_streamp))
9823 rm -f conftest.$ac_objext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9825 (eval $ac_compile) 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -s conftest.$ac_objext'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9835 ac_cv_type_z_streamp=yes
9837 echo "$as_me: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 ac_cv_type_z_streamp=no
9841 rm -f conftest.$ac_objext conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9844 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9845 if test $ac_cv_type_z_streamp = yes; then
9848 { { echo "$as_me:$LINENO: error: zlib version is too old
9849 Use --without-zlib to disable zlib support." >&5
9850 echo "$as_me: error: zlib version is too old
9851 Use --without-zlib to disable zlib support." >&2;}
9852 { (exit 1); exit 1; }; }
9857 if test "$with_krb5" = yes; then
9858 # Check for differences between MIT and Heimdal (KTH) releases
9859 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9860 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9861 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 #include "confdefs.h"
9869 #ifdef F77_DUMMY_MAIN
9873 int F77_DUMMY_MAIN() { return 1; }
9878 static krb5_ticket ac_aggr;
9879 if (ac_aggr.enc_part2)
9885 rm -f conftest.$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887 (eval $ac_compile) 2>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_member_krb5_ticket_enc_part2=yes
9899 echo "$as_me: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 ac_cv_member_krb5_ticket_enc_part2=no
9903 rm -f conftest.$ac_objext conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9906 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9907 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_KRB5_TICKET_ENC_PART2 1
9915 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9916 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9917 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9922 #include "confdefs.h"
9925 #ifdef F77_DUMMY_MAIN
9929 int F77_DUMMY_MAIN() { return 1; }
9934 static krb5_ticket ac_aggr;
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -s conftest.$ac_objext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_cv_member_krb5_ticket_client=yes
9955 echo "$as_me: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 ac_cv_member_krb5_ticket_client=no
9959 rm -f conftest.$ac_objext conftest.$ac_ext
9961 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9962 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9963 if test $ac_cv_member_krb5_ticket_client = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_KRB5_TICKET_CLIENT 1
9971 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9972 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9973 { (exit 1); exit 1; }; }
9978 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9979 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9980 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 #include "confdefs.h"
9988 #ifdef F77_DUMMY_MAIN
9992 int F77_DUMMY_MAIN() { return 1; }
9997 static krb5_error ac_aggr;
9998 if (ac_aggr.text.data)
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -s conftest.$ac_objext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 ac_cv_member_krb5_error_text_data=yes
10018 echo "$as_me: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 ac_cv_member_krb5_error_text_data=no
10022 rm -f conftest.$ac_objext conftest.$ac_ext
10024 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10025 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10026 if test $ac_cv_member_krb5_error_text_data = yes; then
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10034 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10035 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10036 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10040 #line $LINENO "configure"
10041 #include "confdefs.h"
10044 #ifdef F77_DUMMY_MAIN
10045 # ifdef __cplusplus
10048 int F77_DUMMY_MAIN() { return 1; }
10053 static krb5_error ac_aggr;
10054 if (ac_aggr.e_data)
10060 rm -f conftest.$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062 (eval $ac_compile) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -s conftest.$ac_objext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_member_krb5_error_e_data=yes
10074 echo "$as_me: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10076 ac_cv_member_krb5_error_e_data=no
10078 rm -f conftest.$ac_objext conftest.$ac_ext
10080 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10081 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10082 if test $ac_cv_member_krb5_error_e_data = yes; then
10085 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10086 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10087 { (exit 1); exit 1; }; }
10096 ## Functions, global variables
10098 echo "$as_me:$LINENO: checking for int timezone" >&5
10099 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10100 if test "${pgac_cv_var_int_timezone+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10105 #include "confdefs.h"
10108 #ifdef F77_DUMMY_MAIN
10109 # ifdef __cplusplus
10112 int F77_DUMMY_MAIN() { return 1; }
10117 res = timezone / 60;
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124 (eval $ac_link) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 pgac_cv_var_int_timezone=yes
10136 echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 pgac_cv_var_int_timezone=no
10140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10142 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10143 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10144 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_INT_TIMEZONE
10151 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10152 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10153 if test "${ac_cv_func_accept_arg1+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 if test "${ac_cv_func_accept_arg2+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 if test "${ac_cv_func_accept_arg3+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10163 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10164 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10165 cat >conftest.$ac_ext <<_ACEOF
10166 #line $LINENO "configure"
10167 #include "confdefs.h"
10168 #ifdef HAVE_SYS_TYPES_H
10169 #include <sys/types.h>
10171 #ifdef HAVE_SYS_SOCKET_H
10172 #include <sys/socket.h>
10174 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10175 #ifdef F77_DUMMY_MAIN
10176 # ifdef __cplusplus
10179 int F77_DUMMY_MAIN() { return 1; }
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_not_found=no; break 3
10203 echo "$as_me: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10207 rm -f conftest.$ac_objext conftest.$ac_ext
10211 if test "$ac_not_found" = yes; then
10212 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10213 echo "$as_me: error: could not determine argument types" >&2;}
10214 { (exit 1); exit 1; }; }
10216 if test "$ac_cv_func_accept_arg3" = "void"; then
10217 ac_cv_func_accept_arg3=int
10225 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10226 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10228 cat >>confdefs.h <<_ACEOF
10229 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10233 cat >>confdefs.h <<_ACEOF
10234 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10238 cat >>confdefs.h <<_ACEOF
10239 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10243 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10244 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10245 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10250 #include "confdefs.h"
10251 #include <sys/time.h>
10252 #ifdef F77_DUMMY_MAIN
10253 # ifdef __cplusplus
10256 int F77_DUMMY_MAIN() { return 1; }
10261 struct timeval *tp;
10262 struct timezone *tzp;
10263 gettimeofday(tp,tzp);
10268 rm -f conftest.$ac_objext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270 (eval $ac_compile) 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 pgac_cv_func_gettimeofday_1arg=no
10282 echo "$as_me: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 pgac_cv_func_gettimeofday_1arg=yes
10286 rm -f conftest.$ac_objext conftest.$ac_ext
10288 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10289 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10290 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10292 cat >>confdefs.h <<\_ACEOF
10293 #define GETTIMEOFDAY_1ARG
10298 # SunOS doesn't handle negative byte comparisons properly with +/- return
10299 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10300 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10301 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 if test "$cross_compiling" = yes; then
10305 pgac_cv_func_memcmp_clean=no
10307 cat >conftest.$ac_ext <<_ACEOF
10308 #line $LINENO "configure"
10309 #include "confdefs.h"
10313 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10314 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10318 rm -f conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 pgac_cv_func_memcmp_clean=yes
10331 echo "$as_me: program exited with status $ac_status" >&5
10332 echo "$as_me: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 ( exit $ac_status )
10335 pgac_cv_func_memcmp_clean=no
10337 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10340 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10341 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10342 if test $pgac_cv_func_memcmp_clean = no ; then
10361 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10364 echo "$as_me:$LINENO: checking for $ac_func" >&5
10365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10366 if eval "test \"\${$as_ac_var+set}\" = set"; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 cat >conftest.$ac_ext <<_ACEOF
10370 #line $LINENO "configure"
10371 #include "confdefs.h"
10372 /* System header to define __stub macros and hopefully few prototypes,
10373 which can conflict with char $ac_func (); below. */
10374 #include <assert.h>
10375 /* Override any gcc2 internal prototype to avoid an error. */
10379 /* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10384 #ifdef F77_DUMMY_MAIN
10385 # ifdef __cplusplus
10388 int F77_DUMMY_MAIN() { return 1; }
10393 /* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -s conftest$ac_exeext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 eval "$as_ac_var=yes"
10420 echo "$as_me: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 eval "$as_ac_var=no"
10424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10428 if test `eval echo '${'$as_ac_var'}'` = yes; then
10429 cat >>confdefs.h <<_ACEOF
10430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10437 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10438 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10439 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10444 #include "confdefs.h"
10445 #include <unistd.h>
10447 #ifdef F77_DUMMY_MAIN
10448 # ifdef __cplusplus
10451 int F77_DUMMY_MAIN() { return 1; }
10457 char *p = (char *) fdatasync;
10464 rm -f conftest.$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466 (eval $ac_compile) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -s conftest.$ac_objext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_have_decl_fdatasync=yes
10478 echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 ac_cv_have_decl_fdatasync=no
10482 rm -f conftest.$ac_objext conftest.$ac_ext
10484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10485 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10486 if test $ac_cv_have_decl_fdatasync = yes; then
10488 cat >>confdefs.h <<_ACEOF
10489 #define HAVE_DECL_FDATASYNC 1
10494 cat >>confdefs.h <<_ACEOF
10495 #define HAVE_DECL_FDATASYNC 0
10503 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10504 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10505 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 #include <machine/vmparam.h>
10512 #include <sys/exec.h>
10514 #ifdef F77_DUMMY_MAIN
10515 # ifdef __cplusplus
10518 int F77_DUMMY_MAIN() { return 1; }
10523 PS_STRINGS->ps_nargvstr = 1;
10524 PS_STRINGS->ps_argvstr = "foo";
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -s conftest$ac_exeext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 pgac_cv_var_PS_STRINGS=yes
10543 echo "$as_me: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10545 pgac_cv_var_PS_STRINGS=no
10547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10549 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10550 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10551 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define HAVE_PS_STRINGS
10560 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10561 # is missing. Yes, there are machines that have only one. We may
10562 # also decide to use snprintf.c if snprintf() is present but does not
10563 # have working "long long int" support -- see below.
10567 for ac_func in snprintf
10569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10570 echo "$as_me:$LINENO: checking for $ac_func" >&5
10571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10572 if eval "test \"\${$as_ac_var+set}\" = set"; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 #include "confdefs.h"
10578 /* System header to define __stub macros and hopefully few prototypes,
10579 which can conflict with char $ac_func (); below. */
10580 #include <assert.h>
10581 /* Override any gcc2 internal prototype to avoid an error. */
10585 /* We use char because int might match the return type of a gcc2
10586 builtin and then its argument prototype would still apply. */
10590 #ifdef F77_DUMMY_MAIN
10591 # ifdef __cplusplus
10594 int F77_DUMMY_MAIN() { return 1; }
10599 /* The GNU C library defines this for functions which it implements
10600 to always fail with ENOSYS. Some functions are actually named
10601 something starting with __ and the normal name is an alias. */
10602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614 (eval $ac_link) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -s conftest$ac_exeext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624 eval "$as_ac_var=yes"
10626 echo "$as_me: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10628 eval "$as_ac_var=no"
10630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10634 if test `eval echo '${'$as_ac_var'}'` = yes; then
10635 cat >>confdefs.h <<_ACEOF
10636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10640 SNPRINTF='snprintf.o'
10645 for ac_func in vsnprintf
10647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10648 echo "$as_me:$LINENO: checking for $ac_func" >&5
10649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10650 if eval "test \"\${$as_ac_var+set}\" = set"; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656 /* System header to define __stub macros and hopefully few prototypes,
10657 which can conflict with char $ac_func (); below. */
10658 #include <assert.h>
10659 /* Override any gcc2 internal prototype to avoid an error. */
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10668 #ifdef F77_DUMMY_MAIN
10669 # ifdef __cplusplus
10672 int F77_DUMMY_MAIN() { return 1; }
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692 (eval $ac_link) 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 eval "$as_ac_var=yes"
10704 echo "$as_me: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10706 eval "$as_ac_var=no"
10708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10712 if test `eval echo '${'$as_ac_var'}'` = yes; then
10713 cat >>confdefs.h <<_ACEOF
10714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10718 SNPRINTF='snprintf.o'
10725 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10726 # include/c.h will provide declarations. Note this is a separate test
10727 # from whether the functions exist in the C library --- there are
10728 # systems that have the functions but don't bother to declare them :-(
10730 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10731 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10732 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10737 #include "confdefs.h"
10738 $ac_includes_default
10739 #ifdef F77_DUMMY_MAIN
10740 # ifdef __cplusplus
10743 int F77_DUMMY_MAIN() { return 1; }
10749 char *p = (char *) snprintf;
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758 (eval $ac_compile) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -s conftest.$ac_objext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_have_decl_snprintf=yes
10770 echo "$as_me: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 ac_cv_have_decl_snprintf=no
10774 rm -f conftest.$ac_objext conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10777 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10778 if test $ac_cv_have_decl_snprintf = yes; then
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE_DECL_SNPRINTF 1
10786 cat >>confdefs.h <<_ACEOF
10787 #define HAVE_DECL_SNPRINTF 0
10792 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10793 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10794 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 cat >conftest.$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10799 #include "confdefs.h"
10800 $ac_includes_default
10801 #ifdef F77_DUMMY_MAIN
10802 # ifdef __cplusplus
10805 int F77_DUMMY_MAIN() { return 1; }
10811 char *p = (char *) vsnprintf;
10818 rm -f conftest.$ac_objext
10819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10820 (eval $ac_compile) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_have_decl_vsnprintf=yes
10832 echo "$as_me: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10834 ac_cv_have_decl_vsnprintf=no
10836 rm -f conftest.$ac_objext conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10839 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10840 if test $ac_cv_have_decl_vsnprintf = yes; then
10842 cat >>confdefs.h <<_ACEOF
10843 #define HAVE_DECL_VSNPRINTF 1
10848 cat >>confdefs.h <<_ACEOF
10849 #define HAVE_DECL_VSNPRINTF 0
10858 # do this one the hard way in case isinf() is a macro
10859 echo "$as_me:$LINENO: checking for isinf" >&5
10860 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10861 if test "${ac_cv_func_isinf+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10869 #ifdef F77_DUMMY_MAIN
10870 # ifdef __cplusplus
10873 int F77_DUMMY_MAIN() { return 1; }
10878 double x = 0.0; int res = isinf(x);
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885 (eval $ac_link) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -s conftest$ac_exeext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_func_isinf=yes
10897 echo "$as_me: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 ac_cv_func_isinf=no
10901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10903 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10904 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10906 if test $ac_cv_func_isinf = yes ; then
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_ISINF 1
10915 # Look for a way to implement a substitute for isinf()
10920 for ac_func in fpclass fp_class fp_class_d class
10922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923 echo "$as_me:$LINENO: checking for $ac_func" >&5
10924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10925 if eval "test \"\${$as_ac_var+set}\" = set"; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10930 #include "confdefs.h"
10931 /* System header to define __stub macros and hopefully few prototypes,
10932 which can conflict with char $ac_func (); below. */
10933 #include <assert.h>
10934 /* Override any gcc2 internal prototype to avoid an error. */
10938 /* We use char because int might match the return type of a gcc2
10939 builtin and then its argument prototype would still apply. */
10943 #ifdef F77_DUMMY_MAIN
10944 # ifdef __cplusplus
10947 int F77_DUMMY_MAIN() { return 1; }
10952 /* The GNU C library defines this for functions which it implements
10953 to always fail with ENOSYS. Some functions are actually named
10954 something starting with __ and the normal name is an alias. */
10955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967 (eval $ac_link) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -s conftest$ac_exeext'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 eval "$as_ac_var=yes"
10979 echo "$as_me: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 eval "$as_ac_var=no"
10983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10987 if test `eval echo '${'$as_ac_var'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11000 for ac_func in getrusage
11002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11003 echo "$as_me:$LINENO: checking for $ac_func" >&5
11004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11005 if eval "test \"\${$as_ac_var+set}\" = set"; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11010 #include "confdefs.h"
11011 /* System header to define __stub macros and hopefully few prototypes,
11012 which can conflict with char $ac_func (); below. */
11013 #include <assert.h>
11014 /* Override any gcc2 internal prototype to avoid an error. */
11018 /* We use char because int might match the return type of a gcc2
11019 builtin and then its argument prototype would still apply. */
11023 #ifdef F77_DUMMY_MAIN
11024 # ifdef __cplusplus
11027 int F77_DUMMY_MAIN() { return 1; }
11032 /* The GNU C library defines this for functions which it implements
11033 to always fail with ENOSYS. Some functions are actually named
11034 something starting with __ and the normal name is an alias. */
11035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -s conftest$ac_exeext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 eval "$as_ac_var=yes"
11059 echo "$as_me: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11061 eval "$as_ac_var=no"
11063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11067 if test `eval echo '${'$as_ac_var'}'` = yes; then
11068 cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11073 GETRUSAGE='getrusage.o'
11079 for ac_func in srandom
11081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11082 echo "$as_me:$LINENO: checking for $ac_func" >&5
11083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11084 if eval "test \"\${$as_ac_var+set}\" = set"; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11089 #include "confdefs.h"
11090 /* System header to define __stub macros and hopefully few prototypes,
11091 which can conflict with char $ac_func (); below. */
11092 #include <assert.h>
11093 /* Override any gcc2 internal prototype to avoid an error. */
11097 /* We use char because int might match the return type of a gcc2
11098 builtin and then its argument prototype would still apply. */
11102 #ifdef F77_DUMMY_MAIN
11103 # ifdef __cplusplus
11106 int F77_DUMMY_MAIN() { return 1; }
11111 /* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -s conftest$ac_exeext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 eval "$as_ac_var=yes"
11138 echo "$as_me: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 eval "$as_ac_var=no"
11142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11146 if test `eval echo '${'$as_ac_var'}'` = yes; then
11147 cat >>confdefs.h <<_ACEOF
11148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11152 SRANDOM='srandom.o'
11158 for ac_func in gethostname
11160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11161 echo "$as_me:$LINENO: checking for $ac_func" >&5
11162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11163 if eval "test \"\${$as_ac_var+set}\" = set"; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 cat >conftest.$ac_ext <<_ACEOF
11167 #line $LINENO "configure"
11168 #include "confdefs.h"
11169 /* System header to define __stub macros and hopefully few prototypes,
11170 which can conflict with char $ac_func (); below. */
11171 #include <assert.h>
11172 /* Override any gcc2 internal prototype to avoid an error. */
11176 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11181 #ifdef F77_DUMMY_MAIN
11182 # ifdef __cplusplus
11185 int F77_DUMMY_MAIN() { return 1; }
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11203 rm -f conftest.$ac_objext conftest$ac_exeext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -s conftest$ac_exeext'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 eval "$as_ac_var=yes"
11217 echo "$as_me: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 eval "$as_ac_var=no"
11221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11225 if test `eval echo '${'$as_ac_var'}'` = yes; then
11226 cat >>confdefs.h <<_ACEOF
11227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11231 GETHOSTNAME='gethostname.o'
11237 for ac_func in random
11239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11240 echo "$as_me:$LINENO: checking for $ac_func" >&5
11241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11242 if eval "test \"\${$as_ac_var+set}\" = set"; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 cat >conftest.$ac_ext <<_ACEOF
11246 #line $LINENO "configure"
11247 #include "confdefs.h"
11248 /* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func (); below. */
11250 #include <assert.h>
11251 /* Override any gcc2 internal prototype to avoid an error. */
11255 /* We use char because int might match the return type of a gcc2
11256 builtin and then its argument prototype would still apply. */
11260 #ifdef F77_DUMMY_MAIN
11261 # ifdef __cplusplus
11264 int F77_DUMMY_MAIN() { return 1; }
11269 /* The GNU C library defines this for functions which it implements
11270 to always fail with ENOSYS. Some functions are actually named
11271 something starting with __ and the normal name is an alias. */
11272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 eval "$as_ac_var=yes"
11296 echo "$as_me: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11298 eval "$as_ac_var=no"
11300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11304 if test `eval echo '${'$as_ac_var'}'` = yes; then
11305 cat >>confdefs.h <<_ACEOF
11306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 MISSING_RANDOM='random.o'
11316 for ac_func in inet_aton
11318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 echo "$as_me:$LINENO: checking for $ac_func" >&5
11320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_var+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below. */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error. */
11334 /* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
11339 #ifdef F77_DUMMY_MAIN
11340 # ifdef __cplusplus
11343 int F77_DUMMY_MAIN() { return 1; }
11348 /* The GNU C library defines this for functions which it implements
11349 to always fail with ENOSYS. Some functions are actually named
11350 something starting with __ and the normal name is an alias. */
11351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363 (eval $ac_link) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -s conftest$ac_exeext'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; }; then
11373 eval "$as_ac_var=yes"
11375 echo "$as_me: failed program was:" >&5
11376 cat conftest.$ac_ext >&5
11377 eval "$as_ac_var=no"
11379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11383 if test `eval echo '${'$as_ac_var'}'` = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11389 INET_ATON='inet_aton.o'
11395 for ac_func in strerror
11397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11398 echo "$as_me:$LINENO: checking for $ac_func" >&5
11399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11400 if eval "test \"\${$as_ac_var+set}\" = set"; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 cat >conftest.$ac_ext <<_ACEOF
11404 #line $LINENO "configure"
11405 #include "confdefs.h"
11406 /* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below. */
11408 #include <assert.h>
11409 /* Override any gcc2 internal prototype to avoid an error. */
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11418 #ifdef F77_DUMMY_MAIN
11419 # ifdef __cplusplus
11422 int F77_DUMMY_MAIN() { return 1; }
11427 /* The GNU C library defines this for functions which it implements
11428 to always fail with ENOSYS. Some functions are actually named
11429 something starting with __ and the normal name is an alias. */
11430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442 (eval $ac_link) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -s conftest$ac_exeext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 eval "$as_ac_var=yes"
11454 echo "$as_me: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11456 eval "$as_ac_var=no"
11458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11468 STRERROR='strerror.o'
11474 for ac_func in strdup
11476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477 echo "$as_me:$LINENO: checking for $ac_func" >&5
11478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11479 if eval "test \"\${$as_ac_var+set}\" = set"; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11483 #line $LINENO "configure"
11484 #include "confdefs.h"
11485 /* System header to define __stub macros and hopefully few prototypes,
11486 which can conflict with char $ac_func (); below. */
11487 #include <assert.h>
11488 /* Override any gcc2 internal prototype to avoid an error. */
11492 /* We use char because int might match the return type of a gcc2
11493 builtin and then its argument prototype would still apply. */
11497 #ifdef F77_DUMMY_MAIN
11498 # ifdef __cplusplus
11501 int F77_DUMMY_MAIN() { return 1; }
11506 /* The GNU C library defines this for functions which it implements
11507 to always fail with ENOSYS. Some functions are actually named
11508 something starting with __ and the normal name is an alias. */
11509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 eval "$as_ac_var=yes"
11533 echo "$as_me: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 eval "$as_ac_var=no"
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11541 if test `eval echo '${'$as_ac_var'}'` = yes; then
11542 cat >>confdefs.h <<_ACEOF
11543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11547 STRDUP='../../utils/strdup.o'
11553 for ac_func in strtol
11555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11556 echo "$as_me:$LINENO: checking for $ac_func" >&5
11557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11558 if eval "test \"\${$as_ac_var+set}\" = set"; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 #include "confdefs.h"
11564 /* System header to define __stub macros and hopefully few prototypes,
11565 which can conflict with char $ac_func (); below. */
11566 #include <assert.h>
11567 /* Override any gcc2 internal prototype to avoid an error. */
11571 /* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11576 #ifdef F77_DUMMY_MAIN
11577 # ifdef __cplusplus
11580 int F77_DUMMY_MAIN() { return 1; }
11585 /* The GNU C library defines this for functions which it implements
11586 to always fail with ENOSYS. Some functions are actually named
11587 something starting with __ and the normal name is an alias. */
11588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -s conftest$ac_exeext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 eval "$as_ac_var=yes"
11612 echo "$as_me: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 eval "$as_ac_var=no"
11616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11620 if test `eval echo '${'$as_ac_var'}'` = yes; then
11621 cat >>confdefs.h <<_ACEOF
11622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11632 for ac_func in strtoul
11634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11635 echo "$as_me:$LINENO: checking for $ac_func" >&5
11636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11637 if eval "test \"\${$as_ac_var+set}\" = set"; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11642 #include "confdefs.h"
11643 /* System header to define __stub macros and hopefully few prototypes,
11644 which can conflict with char $ac_func (); below. */
11645 #include <assert.h>
11646 /* Override any gcc2 internal prototype to avoid an error. */
11650 /* We use char because int might match the return type of a gcc2
11651 builtin and then its argument prototype would still apply. */
11655 #ifdef F77_DUMMY_MAIN
11656 # ifdef __cplusplus
11659 int F77_DUMMY_MAIN() { return 1; }
11664 /* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679 (eval $ac_link) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 eval "$as_ac_var=yes"
11691 echo "$as_me: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 eval "$as_ac_var=no"
11695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11699 if test `eval echo '${'$as_ac_var'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11705 STRTOUL='strtoul.o'
11711 for ac_func in strcasecmp
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11716 if eval "test \"\${$as_ac_var+set}\" = set"; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 cat >conftest.$ac_ext <<_ACEOF
11720 #line $LINENO "configure"
11721 #include "confdefs.h"
11722 /* System header to define __stub macros and hopefully few prototypes,
11723 which can conflict with char $ac_func (); below. */
11724 #include <assert.h>
11725 /* Override any gcc2 internal prototype to avoid an error. */
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11734 #ifdef F77_DUMMY_MAIN
11735 # ifdef __cplusplus
11738 int F77_DUMMY_MAIN() { return 1; }
11743 /* The GNU C library defines this for functions which it implements
11744 to always fail with ENOSYS. Some functions are actually named
11745 something starting with __ and the normal name is an alias. */
11746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758 (eval $ac_link) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 eval "$as_ac_var=yes"
11770 echo "$as_me: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 eval "$as_ac_var=no"
11774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11778 if test `eval echo '${'$as_ac_var'}'` = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11784 STRCASECMP='strcasecmp.o'
11790 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11791 # this hackery with HPUXMATHLIB allows us to cope.
11795 if [ -r /lib/pa1.1/libm.a ] ; then
11796 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11802 for ac_func in rint
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11807 if eval "test \"\${$as_ac_var+set}\" = set"; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11811 #line $LINENO "configure"
11812 #include "confdefs.h"
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char $ac_func (); below. */
11815 #include <assert.h>
11816 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11825 #ifdef F77_DUMMY_MAIN
11826 # ifdef __cplusplus
11829 int F77_DUMMY_MAIN() { return 1; }
11834 /* The GNU C library defines this for functions which it implements
11835 to always fail with ENOSYS. Some functions are actually named
11836 something starting with __ and the normal name is an alias. */
11837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849 (eval $ac_link) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -s conftest$ac_exeext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 eval "$as_ac_var=yes"
11861 echo "$as_me: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11863 eval "$as_ac_var=no"
11865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11869 if test `eval echo '${'$as_ac_var'}'` = yes; then
11870 cat >>confdefs.h <<_ACEOF
11871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11875 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11876 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11877 if test "${ac_cv_lib_m_rint+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-lm $HPUXMATHLIB $LIBS"
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 #include "confdefs.h"
11886 /* Override any gcc2 internal prototype to avoid an error. */
11890 /* We use char because int might match the return type of a gcc2
11891 builtin and then its argument prototype would still apply. */
11893 #ifdef F77_DUMMY_MAIN
11894 # ifdef __cplusplus
11897 int F77_DUMMY_MAIN() { return 1; }
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -s conftest$ac_exeext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 ac_cv_lib_m_rint=yes
11921 echo "$as_me: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11923 ac_cv_lib_m_rint=no
11925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11928 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11929 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11930 if test $ac_cv_lib_m_rint = yes; then
11931 cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_RINT 1
11942 if test "$with_readline" = yes; then
11943 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11944 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11946 #line $LINENO "configure"
11947 #include "confdefs.h"
11949 #ifdef HAVE_READLINE_READLINE_H
11950 # include <readline/readline.h>
11951 #elif defined(HAVE_READLINE_H)
11952 # include <readline.h>
11955 #ifdef F77_DUMMY_MAIN
11956 # ifdef __cplusplus
11959 int F77_DUMMY_MAIN() { return 1; }
11964 rl_completion_append_character = 'x';
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 echo "$as_me:$LINENO: result: yes" >&5
11982 echo "${ECHO_T}yes" >&6
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11989 echo "$as_me: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11991 echo "$as_me:$LINENO: result: no" >&5
11992 echo "${ECHO_T}no" >&6
11994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11997 for ac_func in rl_completion_matches rl_filename_completion_function
11999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12000 echo "$as_me:$LINENO: checking for $ac_func" >&5
12001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12002 if eval "test \"\${$as_ac_var+set}\" = set"; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12007 #include "confdefs.h"
12008 /* System header to define __stub macros and hopefully few prototypes,
12009 which can conflict with char $ac_func (); below. */
12010 #include <assert.h>
12011 /* Override any gcc2 internal prototype to avoid an error. */
12015 /* We use char because int might match the return type of a gcc2
12016 builtin and then its argument prototype would still apply. */
12020 #ifdef F77_DUMMY_MAIN
12021 # ifdef __cplusplus
12024 int F77_DUMMY_MAIN() { return 1; }
12029 /* The GNU C library defines this for functions which it implements
12030 to always fail with ENOSYS. Some functions are actually named
12031 something starting with __ and the normal name is an alias. */
12032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 eval "$as_ac_var=yes"
12056 echo "$as_me: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 eval "$as_ac_var=no"
12060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12064 if test `eval echo '${'$as_ac_var'}'` = yes; then
12065 cat >>confdefs.h <<_ACEOF
12066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12075 echo "$as_me:$LINENO: checking for finite" >&5
12076 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12079 #include "confdefs.h"
12081 #ifdef F77_DUMMY_MAIN
12082 # ifdef __cplusplus
12085 int F77_DUMMY_MAIN() { return 1; }
12090 int dummy=finite(1.0);
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_FINITE 1
12112 echo "$as_me:$LINENO: result: yes" >&5
12113 echo "${ECHO_T}yes" >&6
12115 echo "$as_me: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 echo "$as_me:$LINENO: result: no" >&5
12118 echo "${ECHO_T}no" >&6
12120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12122 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12123 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12124 cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 #include "confdefs.h"
12127 #include <setjmp.h>
12128 #ifdef F77_DUMMY_MAIN
12129 # ifdef __cplusplus
12132 int F77_DUMMY_MAIN() { return 1; }
12137 sigjmp_buf x; sigsetjmp(x, 1);
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12144 (eval $ac_link) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -s conftest$ac_exeext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12155 cat >>confdefs.h <<\_ACEOF
12156 #define HAVE_SIGSETJMP 1
12159 echo "$as_me:$LINENO: result: yes" >&5
12160 echo "${ECHO_T}yes" >&6
12162 echo "$as_me: failed program was:" >&5
12163 cat conftest.$ac_ext >&5
12164 echo "$as_me:$LINENO: result: no" >&5
12165 echo "${ECHO_T}no" >&6
12167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12172 # Check whether --enable-syslog or --disable-syslog was given.
12173 if test "${enable_syslog+set}" = set; then
12174 enableval="$enable_syslog"
12178 echo "$as_me:$LINENO: checking for syslog" >&5
12179 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12180 if test "${ac_cv_func_syslog+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line $LINENO "configure"
12185 #include "confdefs.h"
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char syslog (); below. */
12188 #include <assert.h>
12189 /* Override any gcc2 internal prototype to avoid an error. */
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12198 #ifdef F77_DUMMY_MAIN
12199 # ifdef __cplusplus
12202 int F77_DUMMY_MAIN() { return 1; }
12207 /* The GNU C library defines this for functions which it implements
12208 to always fail with ENOSYS. Some functions are actually named
12209 something starting with __ and the normal name is an alias. */
12210 #if defined (__stub_syslog) || defined (__stub___syslog)
12220 rm -f conftest.$ac_objext conftest$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222 (eval $ac_link) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -s conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_func_syslog=yes
12234 echo "$as_me: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12236 ac_cv_func_syslog=no
12238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12240 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12241 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12242 if test $ac_cv_func_syslog = yes; then
12244 cat >>confdefs.h <<\_ACEOF
12245 #define ENABLE_SYSLOG 1
12249 { { echo "$as_me:$LINENO: error: no syslog interface found" >&5
12250 echo "$as_me: error: no syslog interface found" >&2;}
12251 { (exit 1); exit 1; }; }
12259 { { echo "$as_me:$LINENO: error: no argument expected for --enable-syslog option" >&5
12260 echo "$as_me: error: no argument expected for --enable-syslog option" >&2;}
12261 { (exit 1); exit 1; }; }
12272 echo "$as_me:$LINENO: checking for optreset" >&5
12273 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12274 if test "${pgac_cv_var_int_optreset+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 #include "confdefs.h"
12280 #include <unistd.h>
12281 #ifdef F77_DUMMY_MAIN
12282 # ifdef __cplusplus
12285 int F77_DUMMY_MAIN() { return 1; }
12290 extern int optreset; optreset = 1;
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 pgac_cv_var_int_optreset=yes
12309 echo "$as_me: failed program was:" >&5
12310 cat conftest.$ac_ext >&5
12311 pgac_cv_var_int_optreset=no
12313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12315 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12316 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12317 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define HAVE_INT_OPTRESET 1
12326 # This test makes sure that run tests work at all. Sometimes a shared
12327 # library is found by the linker, but the runtime linker can't find it.
12328 # This check should come after all modifications of compiler or linker
12329 # variables, and before any other run tests.
12330 echo "$as_me:$LINENO: checking test program" >&5
12331 echo $ECHO_N "checking test program... $ECHO_C" >&6
12332 if test "$cross_compiling" = yes; then
12333 echo "$as_me:$LINENO: result: cross-compiling" >&5
12334 echo "${ECHO_T}cross-compiling" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12337 #line $LINENO "configure"
12338 #include "confdefs.h"
12339 int main() { return 0; }
12341 rm -f conftest$ac_exeext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343 (eval $ac_link) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 echo "$as_me:$LINENO: result: ok" >&5
12353 echo "${ECHO_T}ok" >&6
12355 echo "$as_me: program exited with status $ac_status" >&5
12356 echo "$as_me: failed program was:" >&5
12357 cat conftest.$ac_ext >&5
12358 ( exit $ac_status )
12359 echo "$as_me:$LINENO: result: failed" >&5
12360 echo "${ECHO_T}failed" >&6
12361 { { echo "$as_me:$LINENO: error:
12362 *** Could not execute a simple test program. This may be a problem
12363 *** related to locating shared libraries. Check the file 'config.log'
12364 *** for the exact reason." >&5
12365 echo "$as_me: error:
12366 *** Could not execute a simple test program. This may be a problem
12367 *** related to locating shared libraries. Check the file 'config.log'
12368 *** for the exact reason." >&2;}
12369 { (exit 1); exit 1; }; }
12371 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12376 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12377 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12378 if test "${pgac_cv_type_long_int_64+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 if test "$cross_compiling" = yes; then
12382 pgac_cv_type_long_int_64=no
12383 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12384 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12386 cat >conftest.$ac_ext <<_ACEOF
12387 #line $LINENO "configure"
12388 #include "confdefs.h"
12389 typedef long int int64;
12392 * These are globals to discourage the compiler from folding all the
12393 * arithmetic tests down to compile-time constants.
12395 int64 a = 20000001;
12396 int64 b = 40000005;
12398 int does_int64_work()
12402 if (sizeof(int64) != 8)
12403 return 0; /* definitely not the right size */
12405 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12413 exit(! does_int64_work());
12416 rm -f conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418 (eval $ac_link) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 pgac_cv_type_long_int_64=yes
12429 echo "$as_me: program exited with status $ac_status" >&5
12430 echo "$as_me: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 ( exit $ac_status )
12433 pgac_cv_type_long_int_64=no
12435 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12438 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12439 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12441 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12442 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12444 cat >>confdefs.h <<\_ACEOF
12445 #define HAVE_LONG_INT_64
12451 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12452 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12453 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12454 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 if test "$cross_compiling" = yes; then
12458 pgac_cv_type_long_long_int_64=no
12459 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12460 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12462 cat >conftest.$ac_ext <<_ACEOF
12463 #line $LINENO "configure"
12464 #include "confdefs.h"
12465 typedef long long int int64;
12468 * These are globals to discourage the compiler from folding all the
12469 * arithmetic tests down to compile-time constants.
12471 int64 a = 20000001;
12472 int64 b = 40000005;
12474 int does_int64_work()
12478 if (sizeof(int64) != 8)
12479 return 0; /* definitely not the right size */
12481 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12489 exit(! does_int64_work());
12492 rm -f conftest$ac_exeext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494 (eval $ac_link) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 pgac_cv_type_long_long_int_64=yes
12505 echo "$as_me: program exited with status $ac_status" >&5
12506 echo "$as_me: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 ( exit $ac_status )
12509 pgac_cv_type_long_long_int_64=no
12511 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12514 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12515 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12517 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12518 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12520 cat >>confdefs.h <<\_ACEOF
12521 #define HAVE_LONG_LONG_INT_64
12530 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12531 cat >conftest.$ac_ext <<_ACEOF
12532 #line $LINENO "configure"
12533 #include "confdefs.h"
12535 #define INT64CONST(x) x##LL
12536 long long int foo = INT64CONST(0x1234567890123456);
12538 #ifdef F77_DUMMY_MAIN
12539 # ifdef __cplusplus
12542 int F77_DUMMY_MAIN() { return 1; }
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -s conftest.$ac_objext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_LL_CONSTANTS 1
12570 echo "$as_me: failed program was:" >&5
12571 cat conftest.$ac_ext >&5
12573 rm -f conftest.$ac_objext conftest.$ac_ext
12578 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12579 if [ x$SNPRINTF = x ] ; then
12580 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12581 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12582 if test "$cross_compiling" = yes; then
12583 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12584 echo "${ECHO_T}assuming not on target machine" >&6
12585 # Force usage of our own snprintf, since we cannot test foreign snprintf
12586 SNPRINTF='snprintf.o'
12587 INT64_FORMAT='"%lld"'
12590 cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 #include "confdefs.h"
12594 typedef long long int int64;
12595 #define INT64_FORMAT "%lld"
12597 int64 a = 20000001;
12598 int64 b = 40000005;
12600 int does_int64_snprintf_work()
12605 if (sizeof(int64) != 8)
12606 return 0; /* doesn't look like the right size */
12609 snprintf(buf, 100, INT64_FORMAT, c);
12610 if (strcmp(buf, "800000140000005") != 0)
12611 return 0; /* either multiply or snprintf is busted */
12615 exit(! does_int64_snprintf_work());
12618 rm -f conftest$ac_exeext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 echo "$as_me:$LINENO: result: yes" >&5
12630 echo "${ECHO_T}yes" >&6
12631 INT64_FORMAT='"%lld"'
12634 echo "$as_me: program exited with status $ac_status" >&5
12635 echo "$as_me: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12637 ( exit $ac_status )
12638 echo "$as_me:$LINENO: result: no" >&5
12639 echo "${ECHO_T}no" >&6
12640 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12641 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12642 if test "$cross_compiling" = yes; then
12643 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12644 echo "${ECHO_T}assuming not on target machine" >&6
12645 # Force usage of our own snprintf, since we cannot test foreign snprintf
12646 SNPRINTF='snprintf.o'
12647 INT64_FORMAT='"%lld"'
12650 cat >conftest.$ac_ext <<_ACEOF
12651 #line $LINENO "configure"
12652 #include "confdefs.h"
12654 typedef long long int int64;
12655 #define INT64_FORMAT "%qd"
12657 int64 a = 20000001;
12658 int64 b = 40000005;
12660 int does_int64_snprintf_work()
12665 if (sizeof(int64) != 8)
12666 return 0; /* doesn't look like the right size */
12669 snprintf(buf, 100, INT64_FORMAT, c);
12670 if (strcmp(buf, "800000140000005") != 0)
12671 return 0; /* either multiply or snprintf is busted */
12675 exit(! does_int64_snprintf_work());
12678 rm -f conftest$ac_exeext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680 (eval $ac_link) 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 echo "$as_me:$LINENO: result: yes" >&5
12690 echo "${ECHO_T}yes" >&6
12691 INT64_FORMAT='"%qd"'
12694 echo "$as_me: program exited with status $ac_status" >&5
12695 echo "$as_me: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 ( exit $ac_status )
12698 echo "$as_me:$LINENO: result: no" >&5
12699 echo "${ECHO_T}no" >&6
12700 # Force usage of our own snprintf, since system snprintf is broken
12701 SNPRINTF='snprintf.o'
12702 INT64_FORMAT='"%lld"'
12705 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12708 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12711 # here if we previously decided we needed to use our own snprintf
12712 INT64_FORMAT='"%lld"'
12715 # Here if we are not using 'long long int' at all
12716 INT64_FORMAT='"%ld"'
12720 cat >>confdefs.h <<_ACEOF
12721 #define INT64_FORMAT $INT64_FORMAT
12728 for ac_func in strtoll strtoq
12730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12731 echo "$as_me:$LINENO: checking for $ac_func" >&5
12732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12733 if eval "test \"\${$as_ac_var+set}\" = set"; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 cat >conftest.$ac_ext <<_ACEOF
12737 #line $LINENO "configure"
12738 #include "confdefs.h"
12739 /* System header to define __stub macros and hopefully few prototypes,
12740 which can conflict with char $ac_func (); below. */
12741 #include <assert.h>
12742 /* Override any gcc2 internal prototype to avoid an error. */
12746 /* We use char because int might match the return type of a gcc2
12747 builtin and then its argument prototype would still apply. */
12751 #ifdef F77_DUMMY_MAIN
12752 # ifdef __cplusplus
12755 int F77_DUMMY_MAIN() { return 1; }
12760 /* The GNU C library defines this for functions which it implements
12761 to always fail with ENOSYS. Some functions are actually named
12762 something starting with __ and the normal name is an alias. */
12763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -s conftest$ac_exeext'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12785 eval "$as_ac_var=yes"
12787 echo "$as_me: failed program was:" >&5
12788 cat conftest.$ac_ext >&5
12789 eval "$as_ac_var=no"
12791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12795 if test `eval echo '${'$as_ac_var'}'` = yes; then
12796 cat >>confdefs.h <<_ACEOF
12797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12805 for ac_func in strtoull strtouq
12807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12808 echo "$as_me:$LINENO: checking for $ac_func" >&5
12809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12810 if eval "test \"\${$as_ac_var+set}\" = set"; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 cat >conftest.$ac_ext <<_ACEOF
12814 #line $LINENO "configure"
12815 #include "confdefs.h"
12816 /* System header to define __stub macros and hopefully few prototypes,
12817 which can conflict with char $ac_func (); below. */
12818 #include <assert.h>
12819 /* Override any gcc2 internal prototype to avoid an error. */
12823 /* We use char because int might match the return type of a gcc2
12824 builtin and then its argument prototype would still apply. */
12828 #ifdef F77_DUMMY_MAIN
12829 # ifdef __cplusplus
12832 int F77_DUMMY_MAIN() { return 1; }
12837 /* The GNU C library defines this for functions which it implements
12838 to always fail with ENOSYS. Some functions are actually named
12839 something starting with __ and the normal name is an alias. */
12840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852 (eval $ac_link) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 eval "$as_ac_var=yes"
12864 echo "$as_me: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 eval "$as_ac_var=no"
12868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12872 if test `eval echo '${'$as_ac_var'}'` = yes; then
12873 cat >>confdefs.h <<_ACEOF
12874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12881 # Check for one of atexit() or on_exit()
12883 for ac_func in atexit
12885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12886 echo "$as_me:$LINENO: checking for $ac_func" >&5
12887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12888 if eval "test \"\${$as_ac_var+set}\" = set"; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 cat >conftest.$ac_ext <<_ACEOF
12892 #line $LINENO "configure"
12893 #include "confdefs.h"
12894 /* System header to define __stub macros and hopefully few prototypes,
12895 which can conflict with char $ac_func (); below. */
12896 #include <assert.h>
12897 /* Override any gcc2 internal prototype to avoid an error. */
12901 /* We use char because int might match the return type of a gcc2
12902 builtin and then its argument prototype would still apply. */
12906 #ifdef F77_DUMMY_MAIN
12907 # ifdef __cplusplus
12910 int F77_DUMMY_MAIN() { return 1; }
12915 /* The GNU C library defines this for functions which it implements
12916 to always fail with ENOSYS. Some functions are actually named
12917 something starting with __ and the normal name is an alias. */
12918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -s conftest$ac_exeext'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; }; then
12940 eval "$as_ac_var=yes"
12942 echo "$as_me: failed program was:" >&5
12943 cat conftest.$ac_ext >&5
12944 eval "$as_ac_var=no"
12946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12950 if test `eval echo '${'$as_ac_var'}'` = yes; then
12951 cat >>confdefs.h <<_ACEOF
12952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12957 for ac_func in on_exit
12959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12960 echo "$as_me:$LINENO: checking for $ac_func" >&5
12961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12962 if eval "test \"\${$as_ac_var+set}\" = set"; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #line $LINENO "configure"
12967 #include "confdefs.h"
12968 /* System header to define __stub macros and hopefully few prototypes,
12969 which can conflict with char $ac_func (); below. */
12970 #include <assert.h>
12971 /* Override any gcc2 internal prototype to avoid an error. */
12975 /* We use char because int might match the return type of a gcc2
12976 builtin and then its argument prototype would still apply. */
12980 #ifdef F77_DUMMY_MAIN
12981 # ifdef __cplusplus
12984 int F77_DUMMY_MAIN() { return 1; }
12989 /* The GNU C library defines this for functions which it implements
12990 to always fail with ENOSYS. Some functions are actually named
12991 something starting with __ and the normal name is an alias. */
12992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -s conftest$ac_exeext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 eval "$as_ac_var=yes"
13016 echo "$as_me: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 eval "$as_ac_var=no"
13020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13024 if test `eval echo '${'$as_ac_var'}'` = yes; then
13025 cat >>confdefs.h <<_ACEOF
13026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13030 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13031 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13032 { (exit 1); exit 1; }; }
13041 echo "$as_me:$LINENO: checking for unsigned long" >&5
13042 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13043 if test "${ac_cv_type_unsigned_long+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13047 #line $LINENO "configure"
13048 #include "confdefs.h"
13049 $ac_includes_default
13050 #ifdef F77_DUMMY_MAIN
13051 # ifdef __cplusplus
13054 int F77_DUMMY_MAIN() { return 1; }
13059 if ((unsigned long *) 0)
13061 if (sizeof (unsigned long))
13067 rm -f conftest.$ac_objext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13069 (eval $ac_compile) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -s conftest.$ac_objext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_type_unsigned_long=yes
13081 echo "$as_me: failed program was:" >&5
13082 cat conftest.$ac_ext >&5
13083 ac_cv_type_unsigned_long=no
13085 rm -f conftest.$ac_objext conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13088 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13090 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13091 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13092 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 if test "$ac_cv_type_unsigned_long" = yes; then
13096 # The cast to unsigned long works around a bug in the HP C Compiler
13097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13099 # This bug is HP SR number 8606223364.
13100 if test "$cross_compiling" = yes; then
13101 # Depending upon the size, compute the lo and hi bounds.
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line $LINENO "configure"
13104 #include "confdefs.h"
13105 $ac_includes_default
13106 #ifdef F77_DUMMY_MAIN
13107 # ifdef __cplusplus
13110 int F77_DUMMY_MAIN() { return 1; }
13115 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13122 rm -f conftest.$ac_objext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13136 cat >conftest.$ac_ext <<_ACEOF
13137 #line $LINENO "configure"
13138 #include "confdefs.h"
13139 $ac_includes_default
13140 #ifdef F77_DUMMY_MAIN
13141 # ifdef __cplusplus
13144 int F77_DUMMY_MAIN() { return 1; }
13149 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13156 rm -f conftest.$ac_objext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_hi=$ac_mid; break
13170 echo "$as_me: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 ac_lo=`expr $ac_mid + 1`
13173 if test $ac_lo -le $ac_mid; then
13177 ac_mid=`expr 2 '*' $ac_mid + 1`
13179 rm -f conftest.$ac_objext conftest.$ac_ext
13182 echo "$as_me: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 cat >conftest.$ac_ext <<_ACEOF
13185 #line $LINENO "configure"
13186 #include "confdefs.h"
13187 $ac_includes_default
13188 #ifdef F77_DUMMY_MAIN
13189 # ifdef __cplusplus
13192 int F77_DUMMY_MAIN() { return 1; }
13197 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -s conftest.$ac_objext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13218 cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 #include "confdefs.h"
13221 $ac_includes_default
13222 #ifdef F77_DUMMY_MAIN
13223 # ifdef __cplusplus
13226 int F77_DUMMY_MAIN() { return 1; }
13231 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -s conftest.$ac_objext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_lo=$ac_mid; break
13252 echo "$as_me: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 ac_hi=`expr '(' $ac_mid ')' - 1`
13255 if test $ac_mid -le $ac_hi; then
13259 ac_mid=`expr 2 '*' $ac_mid`
13261 rm -f conftest.$ac_objext conftest.$ac_ext
13264 echo "$as_me: failed program was:" >&5
13265 cat conftest.$ac_ext >&5
13268 rm -f conftest.$ac_objext conftest.$ac_ext
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13271 # Binary search between lo and hi bounds.
13272 while test "x$ac_lo" != "x$ac_hi"; do
13273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13274 cat >conftest.$ac_ext <<_ACEOF
13275 #line $LINENO "configure"
13276 #include "confdefs.h"
13277 $ac_includes_default
13278 #ifdef F77_DUMMY_MAIN
13279 # ifdef __cplusplus
13282 int F77_DUMMY_MAIN() { return 1; }
13287 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13294 rm -f conftest.$ac_objext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
13300 { ac_try='test -s conftest.$ac_objext'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13308 echo "$as_me: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13310 ac_lo=`expr '(' $ac_mid ')' + 1`
13312 rm -f conftest.$ac_objext conftest.$ac_ext
13315 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13316 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13317 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13318 { (exit 1); exit 1; }; } ;;
13321 if test "$cross_compiling" = yes; then
13322 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13323 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13324 { (exit 1); exit 1; }; }
13326 cat >conftest.$ac_ext <<_ACEOF
13327 #line $LINENO "configure"
13328 #include "confdefs.h"
13329 $ac_includes_default
13330 long longval () { return (long) (sizeof (unsigned long)); }
13331 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13333 #include <stdlib.h>
13334 #ifdef F77_DUMMY_MAIN
13335 # ifdef __cplusplus
13338 int F77_DUMMY_MAIN() { return 1; }
13344 FILE *f = fopen ("conftest.val", "w");
13347 if (((long) (sizeof (unsigned long))) < 0)
13349 long i = longval ();
13350 if (i != ((long) (sizeof (unsigned long))))
13352 fprintf (f, "%ld\n", i);
13356 unsigned long i = ulongval ();
13357 if (i != ((long) (sizeof (unsigned long))))
13359 fprintf (f, "%lu\n", i);
13361 exit (ferror (f) || fclose (f) != 0);
13367 rm -f conftest$ac_exeext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13369 (eval $ac_link) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13380 echo "$as_me: program exited with status $ac_status" >&5
13381 echo "$as_me: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 ( exit $ac_status )
13384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13385 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13386 { (exit 1); exit 1; }; }
13388 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13393 ac_cv_sizeof_unsigned_long=0
13396 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13397 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13398 cat >>confdefs.h <<_ACEOF
13399 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13404 cat >>confdefs.h <<_ACEOF
13405 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13409 # Determine memory alignment requirements for the basic C data types.
13411 echo "$as_me:$LINENO: checking for short" >&5
13412 echo $ECHO_N "checking for short... $ECHO_C" >&6
13413 if test "${ac_cv_type_short+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 cat >conftest.$ac_ext <<_ACEOF
13417 #line $LINENO "configure"
13418 #include "confdefs.h"
13419 $ac_includes_default
13420 #ifdef F77_DUMMY_MAIN
13421 # ifdef __cplusplus
13424 int F77_DUMMY_MAIN() { return 1; }
13431 if (sizeof (short))
13437 rm -f conftest.$ac_objext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13439 (eval $ac_compile) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -s conftest.$ac_objext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 ac_cv_type_short=yes
13451 echo "$as_me: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13453 ac_cv_type_short=no
13455 rm -f conftest.$ac_objext conftest.$ac_ext
13457 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13458 echo "${ECHO_T}$ac_cv_type_short" >&6
13460 echo "$as_me:$LINENO: checking alignment of short" >&5
13461 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13462 if test "${pgac_cv_alignof_short+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 if test "$ac_cv_type_short" = yes; then
13466 if test "$cross_compiling" = yes; then
13467 # Depending upon the size, compute the lo and hi bounds.
13468 cat >conftest.$ac_ext <<_ACEOF
13469 #line $LINENO "configure"
13470 #include "confdefs.h"
13471 $ac_includes_default
13472 struct { char filler; short field; } pgac_struct;
13473 #ifdef F77_DUMMY_MAIN
13474 # ifdef __cplusplus
13477 int F77_DUMMY_MAIN() { return 1; }
13482 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -s conftest.$ac_objext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13503 cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13505 #include "confdefs.h"
13506 $ac_includes_default
13507 struct { char filler; short field; } pgac_struct;
13508 #ifdef F77_DUMMY_MAIN
13509 # ifdef __cplusplus
13512 int F77_DUMMY_MAIN() { return 1; }
13517 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_hi=$ac_mid; break
13538 echo "$as_me: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 ac_lo=`expr $ac_mid + 1`
13541 if test $ac_lo -le $ac_mid; then
13545 ac_mid=`expr 2 '*' $ac_mid + 1`
13547 rm -f conftest.$ac_objext conftest.$ac_ext
13550 echo "$as_me: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13552 cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13555 $ac_includes_default
13556 struct { char filler; short field; } pgac_struct;
13557 #ifdef F77_DUMMY_MAIN
13558 # ifdef __cplusplus
13561 int F77_DUMMY_MAIN() { return 1; }
13566 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13573 rm -f conftest.$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575 (eval $ac_compile) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13587 cat >conftest.$ac_ext <<_ACEOF
13588 #line $LINENO "configure"
13589 #include "confdefs.h"
13590 $ac_includes_default
13591 struct { char filler; short field; } pgac_struct;
13592 #ifdef F77_DUMMY_MAIN
13593 # ifdef __cplusplus
13596 int F77_DUMMY_MAIN() { return 1; }
13601 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -s conftest.$ac_objext'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 ac_lo=$ac_mid; break
13622 echo "$as_me: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13624 ac_hi=`expr '(' $ac_mid ')' - 1`
13625 if test $ac_mid -le $ac_hi; then
13629 ac_mid=`expr 2 '*' $ac_mid`
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13634 echo "$as_me: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13638 rm -f conftest.$ac_objext conftest.$ac_ext
13640 rm -f conftest.$ac_objext conftest.$ac_ext
13641 # Binary search between lo and hi bounds.
13642 while test "x$ac_lo" != "x$ac_hi"; do
13643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13644 cat >conftest.$ac_ext <<_ACEOF
13645 #line $LINENO "configure"
13646 #include "confdefs.h"
13647 $ac_includes_default
13648 struct { char filler; short field; } pgac_struct;
13649 #ifdef F77_DUMMY_MAIN
13650 # ifdef __cplusplus
13653 int F77_DUMMY_MAIN() { return 1; }
13658 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13665 rm -f conftest.$ac_objext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13667 (eval $ac_compile) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13679 echo "$as_me: failed program was:" >&5
13680 cat conftest.$ac_ext >&5
13681 ac_lo=`expr '(' $ac_mid ')' + 1`
13683 rm -f conftest.$ac_objext conftest.$ac_ext
13686 ?*) pgac_cv_alignof_short=$ac_lo;;
13687 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13688 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13689 { (exit 1); exit 1; }; } ;;
13692 if test "$cross_compiling" = yes; then
13693 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13694 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13695 { (exit 1); exit 1; }; }
13697 cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 #include "confdefs.h"
13700 $ac_includes_default
13701 struct { char filler; short field; } pgac_struct;
13702 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13703 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13705 #include <stdlib.h>
13706 #ifdef F77_DUMMY_MAIN
13707 # ifdef __cplusplus
13710 int F77_DUMMY_MAIN() { return 1; }
13716 FILE *f = fopen ("conftest.val", "w");
13719 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13721 long i = longval ();
13722 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13724 fprintf (f, "%ld\n", i);
13728 unsigned long i = ulongval ();
13729 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13731 fprintf (f, "%lu\n", i);
13733 exit (ferror (f) || fclose (f) != 0);
13739 rm -f conftest$ac_exeext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13741 (eval $ac_link) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 pgac_cv_alignof_short=`cat conftest.val`
13752 echo "$as_me: program exited with status $ac_status" >&5
13753 echo "$as_me: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 ( exit $ac_status )
13756 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13757 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13758 { (exit 1); exit 1; }; }
13760 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13765 pgac_cv_alignof_short=0
13768 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13769 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13770 cat >>confdefs.h <<_ACEOF
13771 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13775 echo "$as_me:$LINENO: checking for int" >&5
13776 echo $ECHO_N "checking for int... $ECHO_C" >&6
13777 if test "${ac_cv_type_int+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 #include "confdefs.h"
13783 $ac_includes_default
13784 #ifdef F77_DUMMY_MAIN
13785 # ifdef __cplusplus
13788 int F77_DUMMY_MAIN() { return 1; }
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13815 echo "$as_me: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13819 rm -f conftest.$ac_objext conftest.$ac_ext
13821 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13822 echo "${ECHO_T}$ac_cv_type_int" >&6
13824 echo "$as_me:$LINENO: checking alignment of int" >&5
13825 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13826 if test "${pgac_cv_alignof_int+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 if test "$ac_cv_type_int" = yes; then
13830 if test "$cross_compiling" = yes; then
13831 # Depending upon the size, compute the lo and hi bounds.
13832 cat >conftest.$ac_ext <<_ACEOF
13833 #line $LINENO "configure"
13834 #include "confdefs.h"
13835 $ac_includes_default
13836 struct { char filler; int field; } pgac_struct;
13837 #ifdef F77_DUMMY_MAIN
13838 # ifdef __cplusplus
13841 int F77_DUMMY_MAIN() { return 1; }
13846 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -s conftest.$ac_objext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 #include "confdefs.h"
13870 $ac_includes_default
13871 struct { char filler; int field; } pgac_struct;
13872 #ifdef F77_DUMMY_MAIN
13873 # ifdef __cplusplus
13876 int F77_DUMMY_MAIN() { return 1; }
13881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_hi=$ac_mid; break
13902 echo "$as_me: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13904 ac_lo=`expr $ac_mid + 1`
13905 if test $ac_lo -le $ac_mid; then
13909 ac_mid=`expr 2 '*' $ac_mid + 1`
13911 rm -f conftest.$ac_objext conftest.$ac_ext
13914 echo "$as_me: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 cat >conftest.$ac_ext <<_ACEOF
13917 #line $LINENO "configure"
13918 #include "confdefs.h"
13919 $ac_includes_default
13920 struct { char filler; int field; } pgac_struct;
13921 #ifdef F77_DUMMY_MAIN
13922 # ifdef __cplusplus
13925 int F77_DUMMY_MAIN() { return 1; }
13930 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -s conftest.$ac_objext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13951 cat >conftest.$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 $ac_includes_default
13955 struct { char filler; int field; } pgac_struct;
13956 #ifdef F77_DUMMY_MAIN
13957 # ifdef __cplusplus
13960 int F77_DUMMY_MAIN() { return 1; }
13965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_lo=$ac_mid; break
13986 echo "$as_me: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13988 ac_hi=`expr '(' $ac_mid ')' - 1`
13989 if test $ac_mid -le $ac_hi; then
13993 ac_mid=`expr 2 '*' $ac_mid`
13995 rm -f conftest.$ac_objext conftest.$ac_ext
13998 echo "$as_me: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14002 rm -f conftest.$ac_objext conftest.$ac_ext
14004 rm -f conftest.$ac_objext conftest.$ac_ext
14005 # Binary search between lo and hi bounds.
14006 while test "x$ac_lo" != "x$ac_hi"; do
14007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14008 cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14010 #include "confdefs.h"
14011 $ac_includes_default
14012 struct { char filler; int field; } pgac_struct;
14013 #ifdef F77_DUMMY_MAIN
14014 # ifdef __cplusplus
14017 int F77_DUMMY_MAIN() { return 1; }
14022 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14029 rm -f conftest.$ac_objext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14043 echo "$as_me: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14045 ac_lo=`expr '(' $ac_mid ')' + 1`
14047 rm -f conftest.$ac_objext conftest.$ac_ext
14050 ?*) pgac_cv_alignof_int=$ac_lo;;
14051 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14052 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14053 { (exit 1); exit 1; }; } ;;
14056 if test "$cross_compiling" = yes; then
14057 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14058 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14059 { (exit 1); exit 1; }; }
14061 cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14063 #include "confdefs.h"
14064 $ac_includes_default
14065 struct { char filler; int field; } pgac_struct;
14066 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14067 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14069 #include <stdlib.h>
14070 #ifdef F77_DUMMY_MAIN
14071 # ifdef __cplusplus
14074 int F77_DUMMY_MAIN() { return 1; }
14080 FILE *f = fopen ("conftest.val", "w");
14083 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14085 long i = longval ();
14086 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14088 fprintf (f, "%ld\n", i);
14092 unsigned long i = ulongval ();
14093 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14095 fprintf (f, "%lu\n", i);
14097 exit (ferror (f) || fclose (f) != 0);
14103 rm -f conftest$ac_exeext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14105 (eval $ac_link) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 pgac_cv_alignof_int=`cat conftest.val`
14116 echo "$as_me: program exited with status $ac_status" >&5
14117 echo "$as_me: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 ( exit $ac_status )
14120 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14121 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14122 { (exit 1); exit 1; }; }
14124 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14129 pgac_cv_alignof_int=0
14132 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14133 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14134 cat >>confdefs.h <<_ACEOF
14135 #define ALIGNOF_INT $pgac_cv_alignof_int
14139 echo "$as_me:$LINENO: checking for long" >&5
14140 echo $ECHO_N "checking for long... $ECHO_C" >&6
14141 if test "${ac_cv_type_long+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 #include "confdefs.h"
14147 $ac_includes_default
14148 #ifdef F77_DUMMY_MAIN
14149 # ifdef __cplusplus
14152 int F77_DUMMY_MAIN() { return 1; }
14165 rm -f conftest.$ac_objext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_type_long=yes
14179 echo "$as_me: failed program was:" >&5
14180 cat conftest.$ac_ext >&5
14183 rm -f conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14186 echo "${ECHO_T}$ac_cv_type_long" >&6
14188 echo "$as_me:$LINENO: checking alignment of long" >&5
14189 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14190 if test "${pgac_cv_alignof_long+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 if test "$ac_cv_type_long" = yes; then
14194 if test "$cross_compiling" = yes; then
14195 # Depending upon the size, compute the lo and hi bounds.
14196 cat >conftest.$ac_ext <<_ACEOF
14197 #line $LINENO "configure"
14198 #include "confdefs.h"
14199 $ac_includes_default
14200 struct { char filler; long field; } pgac_struct;
14201 #ifdef F77_DUMMY_MAIN
14202 # ifdef __cplusplus
14205 int F77_DUMMY_MAIN() { return 1; }
14210 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14217 rm -f conftest.$ac_objext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14219 (eval $ac_compile) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } &&
14223 { ac_try='test -s conftest.$ac_objext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14231 cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14233 #include "confdefs.h"
14234 $ac_includes_default
14235 struct { char filler; long field; } pgac_struct;
14236 #ifdef F77_DUMMY_MAIN
14237 # ifdef __cplusplus
14240 int F77_DUMMY_MAIN() { return 1; }
14245 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14252 rm -f conftest.$ac_objext
14253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14254 (eval $ac_compile) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -s conftest.$ac_objext'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_hi=$ac_mid; break
14266 echo "$as_me: failed program was:" >&5
14267 cat conftest.$ac_ext >&5
14268 ac_lo=`expr $ac_mid + 1`
14269 if test $ac_lo -le $ac_mid; then
14273 ac_mid=`expr 2 '*' $ac_mid + 1`
14275 rm -f conftest.$ac_objext conftest.$ac_ext
14278 echo "$as_me: failed program was:" >&5
14279 cat conftest.$ac_ext >&5
14280 cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14282 #include "confdefs.h"
14283 $ac_includes_default
14284 struct { char filler; long field; } pgac_struct;
14285 #ifdef F77_DUMMY_MAIN
14286 # ifdef __cplusplus
14289 int F77_DUMMY_MAIN() { return 1; }
14294 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14315 cat >conftest.$ac_ext <<_ACEOF
14316 #line $LINENO "configure"
14317 #include "confdefs.h"
14318 $ac_includes_default
14319 struct { char filler; long field; } pgac_struct;
14320 #ifdef F77_DUMMY_MAIN
14321 # ifdef __cplusplus
14324 int F77_DUMMY_MAIN() { return 1; }
14329 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14336 rm -f conftest.$ac_objext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14338 (eval $ac_compile) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_lo=$ac_mid; break
14350 echo "$as_me: failed program was:" >&5
14351 cat conftest.$ac_ext >&5
14352 ac_hi=`expr '(' $ac_mid ')' - 1`
14353 if test $ac_mid -le $ac_hi; then
14357 ac_mid=`expr 2 '*' $ac_mid`
14359 rm -f conftest.$ac_objext conftest.$ac_ext
14362 echo "$as_me: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14366 rm -f conftest.$ac_objext conftest.$ac_ext
14368 rm -f conftest.$ac_objext conftest.$ac_ext
14369 # Binary search between lo and hi bounds.
14370 while test "x$ac_lo" != "x$ac_hi"; do
14371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14372 cat >conftest.$ac_ext <<_ACEOF
14373 #line $LINENO "configure"
14374 #include "confdefs.h"
14375 $ac_includes_default
14376 struct { char filler; long field; } pgac_struct;
14377 #ifdef F77_DUMMY_MAIN
14378 # ifdef __cplusplus
14381 int F77_DUMMY_MAIN() { return 1; }
14386 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -s conftest.$ac_objext'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14407 echo "$as_me: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 ac_lo=`expr '(' $ac_mid ')' + 1`
14411 rm -f conftest.$ac_objext conftest.$ac_ext
14414 ?*) pgac_cv_alignof_long=$ac_lo;;
14415 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14416 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14417 { (exit 1); exit 1; }; } ;;
14420 if test "$cross_compiling" = yes; then
14421 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14422 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14423 { (exit 1); exit 1; }; }
14425 cat >conftest.$ac_ext <<_ACEOF
14426 #line $LINENO "configure"
14427 #include "confdefs.h"
14428 $ac_includes_default
14429 struct { char filler; long field; } pgac_struct;
14430 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14431 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14433 #include <stdlib.h>
14434 #ifdef F77_DUMMY_MAIN
14435 # ifdef __cplusplus
14438 int F77_DUMMY_MAIN() { return 1; }
14444 FILE *f = fopen ("conftest.val", "w");
14447 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14449 long i = longval ();
14450 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14452 fprintf (f, "%ld\n", i);
14456 unsigned long i = ulongval ();
14457 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14459 fprintf (f, "%lu\n", i);
14461 exit (ferror (f) || fclose (f) != 0);
14467 rm -f conftest$ac_exeext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14469 (eval $ac_link) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 pgac_cv_alignof_long=`cat conftest.val`
14480 echo "$as_me: program exited with status $ac_status" >&5
14481 echo "$as_me: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14483 ( exit $ac_status )
14484 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14485 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14486 { (exit 1); exit 1; }; }
14488 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14493 pgac_cv_alignof_long=0
14496 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14497 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14498 cat >>confdefs.h <<_ACEOF
14499 #define ALIGNOF_LONG $pgac_cv_alignof_long
14503 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14504 echo "$as_me:$LINENO: checking for long long int" >&5
14505 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14506 if test "${ac_cv_type_long_long_int+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 cat >conftest.$ac_ext <<_ACEOF
14510 #line $LINENO "configure"
14511 #include "confdefs.h"
14512 $ac_includes_default
14513 #ifdef F77_DUMMY_MAIN
14514 # ifdef __cplusplus
14517 int F77_DUMMY_MAIN() { return 1; }
14522 if ((long long int *) 0)
14524 if (sizeof (long long int))
14530 rm -f conftest.$ac_objext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14532 (eval $ac_compile) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -s conftest.$ac_objext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_type_long_long_int=yes
14544 echo "$as_me: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14546 ac_cv_type_long_long_int=no
14548 rm -f conftest.$ac_objext conftest.$ac_ext
14550 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14551 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14553 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14554 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14555 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 if test "$ac_cv_type_long_long_int" = yes; then
14559 if test "$cross_compiling" = yes; then
14560 # Depending upon the size, compute the lo and hi bounds.
14561 cat >conftest.$ac_ext <<_ACEOF
14562 #line $LINENO "configure"
14563 #include "confdefs.h"
14564 $ac_includes_default
14565 struct { char filler; long long int field; } pgac_struct;
14566 #ifdef F77_DUMMY_MAIN
14567 # ifdef __cplusplus
14570 int F77_DUMMY_MAIN() { return 1; }
14575 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14582 rm -f conftest.$ac_objext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
14588 { ac_try='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14596 cat >conftest.$ac_ext <<_ACEOF
14597 #line $LINENO "configure"
14598 #include "confdefs.h"
14599 $ac_includes_default
14600 struct { char filler; long long int field; } pgac_struct;
14601 #ifdef F77_DUMMY_MAIN
14602 # ifdef __cplusplus
14605 int F77_DUMMY_MAIN() { return 1; }
14610 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14617 rm -f conftest.$ac_objext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619 (eval $ac_compile) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -s conftest.$ac_objext'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_hi=$ac_mid; break
14631 echo "$as_me: failed program was:" >&5
14632 cat conftest.$ac_ext >&5
14633 ac_lo=`expr $ac_mid + 1`
14634 if test $ac_lo -le $ac_mid; then
14638 ac_mid=`expr 2 '*' $ac_mid + 1`
14640 rm -f conftest.$ac_objext conftest.$ac_ext
14643 echo "$as_me: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14645 cat >conftest.$ac_ext <<_ACEOF
14646 #line $LINENO "configure"
14647 #include "confdefs.h"
14648 $ac_includes_default
14649 struct { char filler; long long int field; } pgac_struct;
14650 #ifdef F77_DUMMY_MAIN
14651 # ifdef __cplusplus
14654 int F77_DUMMY_MAIN() { return 1; }
14659 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -s conftest.$ac_objext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14680 cat >conftest.$ac_ext <<_ACEOF
14681 #line $LINENO "configure"
14682 #include "confdefs.h"
14683 $ac_includes_default
14684 struct { char filler; long long int field; } pgac_struct;
14685 #ifdef F77_DUMMY_MAIN
14686 # ifdef __cplusplus
14689 int F77_DUMMY_MAIN() { return 1; }
14694 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_lo=$ac_mid; break
14715 echo "$as_me: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 ac_hi=`expr '(' $ac_mid ')' - 1`
14718 if test $ac_mid -le $ac_hi; then
14722 ac_mid=`expr 2 '*' $ac_mid`
14724 rm -f conftest.$ac_objext conftest.$ac_ext
14727 echo "$as_me: failed program was:" >&5
14728 cat conftest.$ac_ext >&5
14731 rm -f conftest.$ac_objext conftest.$ac_ext
14733 rm -f conftest.$ac_objext conftest.$ac_ext
14734 # Binary search between lo and hi bounds.
14735 while test "x$ac_lo" != "x$ac_hi"; do
14736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14737 cat >conftest.$ac_ext <<_ACEOF
14738 #line $LINENO "configure"
14739 #include "confdefs.h"
14740 $ac_includes_default
14741 struct { char filler; long long int field; } pgac_struct;
14742 #ifdef F77_DUMMY_MAIN
14743 # ifdef __cplusplus
14746 int F77_DUMMY_MAIN() { return 1; }
14751 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760 (eval $ac_compile) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -s conftest.$ac_objext'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14772 echo "$as_me: failed program was:" >&5
14773 cat conftest.$ac_ext >&5
14774 ac_lo=`expr '(' $ac_mid ')' + 1`
14776 rm -f conftest.$ac_objext conftest.$ac_ext
14779 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14780 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14781 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14782 { (exit 1); exit 1; }; } ;;
14785 if test "$cross_compiling" = yes; then
14786 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14787 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14788 { (exit 1); exit 1; }; }
14790 cat >conftest.$ac_ext <<_ACEOF
14791 #line $LINENO "configure"
14792 #include "confdefs.h"
14793 $ac_includes_default
14794 struct { char filler; long long int field; } pgac_struct;
14795 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14796 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14798 #include <stdlib.h>
14799 #ifdef F77_DUMMY_MAIN
14800 # ifdef __cplusplus
14803 int F77_DUMMY_MAIN() { return 1; }
14809 FILE *f = fopen ("conftest.val", "w");
14812 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14814 long i = longval ();
14815 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14817 fprintf (f, "%ld\n", i);
14821 unsigned long i = ulongval ();
14822 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14824 fprintf (f, "%lu\n", i);
14826 exit (ferror (f) || fclose (f) != 0);
14832 rm -f conftest$ac_exeext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834 (eval $ac_link) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 pgac_cv_alignof_long_long_int=`cat conftest.val`
14845 echo "$as_me: program exited with status $ac_status" >&5
14846 echo "$as_me: failed program was:" >&5
14847 cat conftest.$ac_ext >&5
14848 ( exit $ac_status )
14849 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14850 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14851 { (exit 1); exit 1; }; }
14853 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14858 pgac_cv_alignof_long_long_int=0
14861 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14862 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14863 cat >>confdefs.h <<_ACEOF
14864 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14869 echo "$as_me:$LINENO: checking for double" >&5
14870 echo $ECHO_N "checking for double... $ECHO_C" >&6
14871 if test "${ac_cv_type_double+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 cat >conftest.$ac_ext <<_ACEOF
14875 #line $LINENO "configure"
14876 #include "confdefs.h"
14877 $ac_includes_default
14878 #ifdef F77_DUMMY_MAIN
14879 # ifdef __cplusplus
14882 int F77_DUMMY_MAIN() { return 1; }
14889 if (sizeof (double))
14895 rm -f conftest.$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_type_double=yes
14909 echo "$as_me: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14911 ac_cv_type_double=no
14913 rm -f conftest.$ac_objext conftest.$ac_ext
14915 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14916 echo "${ECHO_T}$ac_cv_type_double" >&6
14918 echo "$as_me:$LINENO: checking alignment of double" >&5
14919 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14920 if test "${pgac_cv_alignof_double+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 if test "$ac_cv_type_double" = yes; then
14924 if test "$cross_compiling" = yes; then
14925 # Depending upon the size, compute the lo and hi bounds.
14926 cat >conftest.$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14928 #include "confdefs.h"
14929 $ac_includes_default
14930 struct { char filler; double field; } pgac_struct;
14931 #ifdef F77_DUMMY_MAIN
14932 # ifdef __cplusplus
14935 int F77_DUMMY_MAIN() { return 1; }
14940 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14947 rm -f conftest.$ac_objext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949 (eval $ac_compile) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try='test -s conftest.$ac_objext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14961 cat >conftest.$ac_ext <<_ACEOF
14962 #line $LINENO "configure"
14963 #include "confdefs.h"
14964 $ac_includes_default
14965 struct { char filler; double field; } pgac_struct;
14966 #ifdef F77_DUMMY_MAIN
14967 # ifdef __cplusplus
14970 int F77_DUMMY_MAIN() { return 1; }
14975 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14982 rm -f conftest.$ac_objext
14983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984 (eval $ac_compile) 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -s conftest.$ac_objext'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_hi=$ac_mid; break
14996 echo "$as_me: failed program was:" >&5
14997 cat conftest.$ac_ext >&5
14998 ac_lo=`expr $ac_mid + 1`
14999 if test $ac_lo -le $ac_mid; then
15003 ac_mid=`expr 2 '*' $ac_mid + 1`
15005 rm -f conftest.$ac_objext conftest.$ac_ext
15008 echo "$as_me: failed program was:" >&5
15009 cat conftest.$ac_ext >&5
15010 cat >conftest.$ac_ext <<_ACEOF
15011 #line $LINENO "configure"
15012 #include "confdefs.h"
15013 $ac_includes_default
15014 struct { char filler; double field; } pgac_struct;
15015 #ifdef F77_DUMMY_MAIN
15016 # ifdef __cplusplus
15019 int F77_DUMMY_MAIN() { return 1; }
15024 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15031 rm -f conftest.$ac_objext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033 (eval $ac_compile) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15045 cat >conftest.$ac_ext <<_ACEOF
15046 #line $LINENO "configure"
15047 #include "confdefs.h"
15048 $ac_includes_default
15049 struct { char filler; double field; } pgac_struct;
15050 #ifdef F77_DUMMY_MAIN
15051 # ifdef __cplusplus
15054 int F77_DUMMY_MAIN() { return 1; }
15059 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15066 rm -f conftest.$ac_objext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15068 (eval $ac_compile) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -s conftest.$ac_objext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_lo=$ac_mid; break
15080 echo "$as_me: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 ac_hi=`expr '(' $ac_mid ')' - 1`
15083 if test $ac_mid -le $ac_hi; then
15087 ac_mid=`expr 2 '*' $ac_mid`
15089 rm -f conftest.$ac_objext conftest.$ac_ext
15092 echo "$as_me: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15096 rm -f conftest.$ac_objext conftest.$ac_ext
15098 rm -f conftest.$ac_objext conftest.$ac_ext
15099 # Binary search between lo and hi bounds.
15100 while test "x$ac_lo" != "x$ac_hi"; do
15101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line $LINENO "configure"
15104 #include "confdefs.h"
15105 $ac_includes_default
15106 struct { char filler; double field; } pgac_struct;
15107 #ifdef F77_DUMMY_MAIN
15108 # ifdef __cplusplus
15111 int F77_DUMMY_MAIN() { return 1; }
15116 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125 (eval $ac_compile) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15137 echo "$as_me: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15139 ac_lo=`expr '(' $ac_mid ')' + 1`
15141 rm -f conftest.$ac_objext conftest.$ac_ext
15144 ?*) pgac_cv_alignof_double=$ac_lo;;
15145 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15146 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15147 { (exit 1); exit 1; }; } ;;
15150 if test "$cross_compiling" = yes; then
15151 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15152 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15153 { (exit 1); exit 1; }; }
15155 cat >conftest.$ac_ext <<_ACEOF
15156 #line $LINENO "configure"
15157 #include "confdefs.h"
15158 $ac_includes_default
15159 struct { char filler; double field; } pgac_struct;
15160 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15161 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15163 #include <stdlib.h>
15164 #ifdef F77_DUMMY_MAIN
15165 # ifdef __cplusplus
15168 int F77_DUMMY_MAIN() { return 1; }
15174 FILE *f = fopen ("conftest.val", "w");
15177 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15179 long i = longval ();
15180 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15182 fprintf (f, "%ld\n", i);
15186 unsigned long i = ulongval ();
15187 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15189 fprintf (f, "%lu\n", i);
15191 exit (ferror (f) || fclose (f) != 0);
15197 rm -f conftest$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 pgac_cv_alignof_double=`cat conftest.val`
15210 echo "$as_me: program exited with status $ac_status" >&5
15211 echo "$as_me: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 ( exit $ac_status )
15214 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15215 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15216 { (exit 1); exit 1; }; }
15218 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15223 pgac_cv_alignof_double=0
15226 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15227 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15228 cat >>confdefs.h <<_ACEOF
15229 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15234 # Compute maximum alignment of any basic type.
15235 # We assume long's alignment is at least as strong as char, short, or int;
15236 # but we must check long long (if it exists) and double.
15238 MAX_ALIGNOF=$pgac_cv_alignof_long
15239 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15240 MAX_ALIGNOF=$pgac_cv_alignof_double
15242 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15243 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15246 cat >>confdefs.h <<_ACEOF
15247 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15252 # Some platforms predefine the types int8, int16, etc. Only check
15253 # a (hopefully) representative subset.
15254 echo "$as_me:$LINENO: checking for int8" >&5
15255 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15256 if test "${ac_cv_type_int8+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15260 #line $LINENO "configure"
15261 #include "confdefs.h"
15263 #ifdef HAVE_SUPPORTDEFS_H
15264 #include <SupportDefs.h>
15267 #ifdef F77_DUMMY_MAIN
15268 # ifdef __cplusplus
15271 int F77_DUMMY_MAIN() { return 1; }
15284 rm -f conftest.$ac_objext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286 (eval $ac_compile) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -s conftest.$ac_objext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_cv_type_int8=yes
15298 echo "$as_me: failed program was:" >&5
15299 cat conftest.$ac_ext >&5
15302 rm -f conftest.$ac_objext conftest.$ac_ext
15304 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15305 echo "${ECHO_T}$ac_cv_type_int8" >&6
15306 if test $ac_cv_type_int8 = yes; then
15308 cat >>confdefs.h <<_ACEOF
15309 #define HAVE_INT8 1
15314 echo "$as_me:$LINENO: checking for uint8" >&5
15315 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15316 if test "${ac_cv_type_uint8+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15320 #line $LINENO "configure"
15321 #include "confdefs.h"
15323 #ifdef HAVE_SUPPORTDEFS_H
15324 #include <SupportDefs.h>
15327 #ifdef F77_DUMMY_MAIN
15328 # ifdef __cplusplus
15331 int F77_DUMMY_MAIN() { return 1; }
15338 if (sizeof (uint8))
15344 rm -f conftest.$ac_objext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -s conftest.$ac_objext'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_cv_type_uint8=yes
15358 echo "$as_me: failed program was:" >&5
15359 cat conftest.$ac_ext >&5
15360 ac_cv_type_uint8=no
15362 rm -f conftest.$ac_objext conftest.$ac_ext
15364 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15365 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15366 if test $ac_cv_type_uint8 = yes; then
15368 cat >>confdefs.h <<_ACEOF
15369 #define HAVE_UINT8 1
15374 echo "$as_me:$LINENO: checking for int64" >&5
15375 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15376 if test "${ac_cv_type_int64+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 cat >conftest.$ac_ext <<_ACEOF
15380 #line $LINENO "configure"
15381 #include "confdefs.h"
15383 #ifdef HAVE_SUPPORTDEFS_H
15384 #include <SupportDefs.h>
15387 #ifdef F77_DUMMY_MAIN
15388 # ifdef __cplusplus
15391 int F77_DUMMY_MAIN() { return 1; }
15398 if (sizeof (int64))
15404 rm -f conftest.$ac_objext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15406 (eval $ac_compile) 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try='test -s conftest.$ac_objext'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 ac_cv_type_int64=yes
15418 echo "$as_me: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15420 ac_cv_type_int64=no
15422 rm -f conftest.$ac_objext conftest.$ac_ext
15424 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15425 echo "${ECHO_T}$ac_cv_type_int64" >&6
15426 if test $ac_cv_type_int64 = yes; then
15428 cat >>confdefs.h <<_ACEOF
15429 #define HAVE_INT64 1
15434 echo "$as_me:$LINENO: checking for uint64" >&5
15435 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15436 if test "${ac_cv_type_uint64+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 cat >conftest.$ac_ext <<_ACEOF
15440 #line $LINENO "configure"
15441 #include "confdefs.h"
15443 #ifdef HAVE_SUPPORTDEFS_H
15444 #include <SupportDefs.h>
15447 #ifdef F77_DUMMY_MAIN
15448 # ifdef __cplusplus
15451 int F77_DUMMY_MAIN() { return 1; }
15458 if (sizeof (uint64))
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_type_uint64=yes
15478 echo "$as_me: failed program was:" >&5
15479 cat conftest.$ac_ext >&5
15480 ac_cv_type_uint64=no
15482 rm -f conftest.$ac_objext conftest.$ac_ext
15484 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15485 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15486 if test $ac_cv_type_uint64 = yes; then
15488 cat >>confdefs.h <<_ACEOF
15489 #define HAVE_UINT64 1
15496 # We also check for sig_atomic_t, which *should* be defined per ANSI
15497 # C, but is missing on some old platforms.
15498 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15499 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15500 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 cat >conftest.$ac_ext <<_ACEOF
15504 #line $LINENO "configure"
15505 #include "confdefs.h"
15506 #include <signal.h>
15508 #ifdef F77_DUMMY_MAIN
15509 # ifdef __cplusplus
15512 int F77_DUMMY_MAIN() { return 1; }
15517 if ((sig_atomic_t *) 0)
15519 if (sizeof (sig_atomic_t))
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -s conftest.$ac_objext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_type_sig_atomic_t=yes
15539 echo "$as_me: failed program was:" >&5
15540 cat conftest.$ac_ext >&5
15541 ac_cv_type_sig_atomic_t=no
15543 rm -f conftest.$ac_objext conftest.$ac_ext
15545 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15546 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15547 if test $ac_cv_type_sig_atomic_t = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define HAVE_SIG_ATOMIC_T 1
15558 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15559 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15560 if test "${pgac_cv_func_posix_signals+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 cat >conftest.$ac_ext <<_ACEOF
15564 #line $LINENO "configure"
15565 #include "confdefs.h"
15566 #include <signal.h>
15568 #ifdef F77_DUMMY_MAIN
15569 # ifdef __cplusplus
15572 int F77_DUMMY_MAIN() { return 1; }
15577 struct sigaction act, oact;
15578 sigemptyset(&act.sa_mask);
15579 act.sa_flags = SA_RESTART;
15580 sigaction(0, &act, &oact);
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 pgac_cv_func_posix_signals=yes
15599 echo "$as_me: failed program was:" >&5
15600 cat conftest.$ac_ext >&5
15601 pgac_cv_func_posix_signals=no
15603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15605 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15606 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15607 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15609 cat >>confdefs.h <<\_ACEOF
15610 #define HAVE_POSIX_SIGNALS
15614 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15618 if test "$enable_nls" = yes ; then
15620 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15621 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15622 if test "${ac_cv_search_gettext+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 ac_func_search_save_LIBS=$LIBS
15626 ac_cv_search_gettext=no
15627 cat >conftest.$ac_ext <<_ACEOF
15628 #line $LINENO "configure"
15629 #include "confdefs.h"
15631 /* Override any gcc2 internal prototype to avoid an error. */
15635 /* We use char because int might match the return type of a gcc2
15636 builtin and then its argument prototype would still apply. */
15638 #ifdef F77_DUMMY_MAIN
15639 # ifdef __cplusplus
15642 int F77_DUMMY_MAIN() { return 1; }
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15654 (eval $ac_link) 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try='test -s conftest$ac_exeext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_search_gettext="none required"
15666 echo "$as_me: failed program was:" >&5
15667 cat conftest.$ac_ext >&5
15669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15670 if test "$ac_cv_search_gettext" = no; then
15671 for ac_lib in intl; do
15672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15673 cat >conftest.$ac_ext <<_ACEOF
15674 #line $LINENO "configure"
15675 #include "confdefs.h"
15677 /* Override any gcc2 internal prototype to avoid an error. */
15681 /* We use char because int might match the return type of a gcc2
15682 builtin and then its argument prototype would still apply. */
15684 #ifdef F77_DUMMY_MAIN
15685 # ifdef __cplusplus
15688 int F77_DUMMY_MAIN() { return 1; }
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15700 (eval $ac_link) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -s conftest$ac_exeext'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15710 ac_cv_search_gettext="-l$ac_lib"
15713 echo "$as_me: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_func_search_save_LIBS
15721 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15722 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15723 if test "$ac_cv_search_gettext" != no; then
15724 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15727 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15728 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15729 { (exit 1); exit 1; }; }
15732 if test "${ac_cv_header_libintl_h+set}" = set; then
15733 echo "$as_me:$LINENO: checking for libintl.h" >&5
15734 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15735 if test "${ac_cv_header_libintl_h+set}" = set; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15739 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15741 # Is the header compilable?
15742 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15743 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15744 cat >conftest.$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 #include "confdefs.h"
15747 $ac_includes_default
15748 #include <libintl.h>
15750 rm -f conftest.$ac_objext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_header_compiler=yes
15764 echo "$as_me: failed program was:" >&5
15765 cat conftest.$ac_ext >&5
15766 ac_header_compiler=no
15768 rm -f conftest.$ac_objext conftest.$ac_ext
15769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15770 echo "${ECHO_T}$ac_header_compiler" >&6
15772 # Is the header present?
15773 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15774 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15777 #include "confdefs.h"
15778 #include <libintl.h>
15780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15783 egrep -v '^ *\+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } >/dev/null; then
15788 if test -s conftest.err; then
15789 ac_cpp_err=$ac_c_preproc_warn_flag
15796 if test -z "$ac_cpp_err"; then
15797 ac_header_preproc=yes
15799 echo "$as_me: failed program was:" >&5
15800 cat conftest.$ac_ext >&5
15801 ac_header_preproc=no
15803 rm -f conftest.err conftest.$ac_ext
15804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15805 echo "${ECHO_T}$ac_header_preproc" >&6
15807 # So? What about this header?
15808 case $ac_header_compiler:$ac_header_preproc in
15810 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15811 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15813 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15815 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15816 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15818 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15820 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15822 echo "$as_me:$LINENO: checking for libintl.h" >&5
15823 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15824 if test "${ac_cv_header_libintl_h+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 ac_cv_header_libintl_h=$ac_header_preproc
15829 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15830 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15833 if test $ac_cv_header_libintl_h = yes; then
15836 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15837 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15838 { (exit 1); exit 1; }; }
15842 for ac_prog in msgfmt
15844 # Extract the first word of "$ac_prog", so it can be a program name with args.
15845 set dummy $ac_prog; ac_word=$2
15846 echo "$as_me:$LINENO: checking for $ac_word" >&5
15847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15848 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 if test -n "$MSGFMT"; then
15852 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15855 for as_dir in $PATH
15858 test -z "$as_dir" && as_dir=.
15859 for ac_exec_ext in '' $ac_executable_extensions; do
15860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15861 ac_cv_prog_MSGFMT="$ac_prog"
15862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15870 MSGFMT=$ac_cv_prog_MSGFMT
15871 if test -n "$MSGFMT"; then
15872 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15873 echo "${ECHO_T}$MSGFMT" >&6
15875 echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6
15879 test -n "$MSGFMT" && break
15882 if test -z "$MSGFMT"; then
15883 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15884 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15885 { (exit 1); exit 1; }; }
15887 for ac_prog in msgmerge
15889 # Extract the first word of "$ac_prog", so it can be a program name with args.
15890 set dummy $ac_prog; ac_word=$2
15891 echo "$as_me:$LINENO: checking for $ac_word" >&5
15892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15893 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 if test -n "$MSGMERGE"; then
15897 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_MSGMERGE="$ac_prog"
15907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15915 MSGMERGE=$ac_cv_prog_MSGMERGE
15916 if test -n "$MSGMERGE"; then
15917 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15918 echo "${ECHO_T}$MSGMERGE" >&6
15920 echo "$as_me:$LINENO: result: no" >&5
15921 echo "${ECHO_T}no" >&6
15924 test -n "$MSGMERGE" && break
15927 for ac_prog in xgettext
15929 # Extract the first word of "$ac_prog", so it can be a program name with args.
15930 set dummy $ac_prog; ac_word=$2
15931 echo "$as_me:$LINENO: checking for $ac_word" >&5
15932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15933 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 if test -n "$XGETTEXT"; then
15937 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940 for as_dir in $PATH
15943 test -z "$as_dir" && as_dir=.
15944 for ac_exec_ext in '' $ac_executable_extensions; do
15945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15946 ac_cv_prog_XGETTEXT="$ac_prog"
15947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 XGETTEXT=$ac_cv_prog_XGETTEXT
15956 if test -n "$XGETTEXT"; then
15957 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15958 echo "${ECHO_T}$XGETTEXT" >&6
15960 echo "$as_me:$LINENO: result: no" >&5
15961 echo "${ECHO_T}no" >&6
15964 test -n "$XGETTEXT" && break
15968 # Note: share/locale is always the default, independent of $datadir
15969 localedir='${prefix}/share/locale'
15970 if test x"$prefix" = x"NONE"; then
15971 exp_localedir="$ac_default_prefix/share/locale"
15973 exp_localedir="$prefix/share/locale"
15978 cat >>confdefs.h <<_ACEOF
15979 #define LOCALEDIR "$exp_localedir"
15985 if test "$with_CXX" = yes; then
15989 ac_cpp='$CXXCPP $CPPFLAGS'
15990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15994 if test "${ac_cv_header_string+set}" = set; then
15995 echo "$as_me:$LINENO: checking for string" >&5
15996 echo $ECHO_N "checking for string... $ECHO_C" >&6
15997 if test "${ac_cv_header_string+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16001 echo "${ECHO_T}$ac_cv_header_string" >&6
16003 # Is the header compilable?
16004 echo "$as_me:$LINENO: checking string usability" >&5
16005 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16006 cat >conftest.$ac_ext <<_ACEOF
16007 #line $LINENO "configure"
16008 #include "confdefs.h"
16009 $ac_includes_default
16012 rm -f conftest.$ac_objext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014 (eval $ac_compile) 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -s conftest.$ac_objext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_header_compiler=yes
16026 echo "$as_me: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16028 ac_header_compiler=no
16030 rm -f conftest.$ac_objext conftest.$ac_ext
16031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16032 echo "${ECHO_T}$ac_header_compiler" >&6
16034 # Is the header present?
16035 echo "$as_me:$LINENO: checking string presence" >&5
16036 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16038 #line $LINENO "configure"
16039 #include "confdefs.h"
16042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16045 egrep -v '^ *\+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } >/dev/null; then
16050 if test -s conftest.err; then
16051 ac_cpp_err=$ac_cxx_preproc_warn_flag
16058 if test -z "$ac_cpp_err"; then
16059 ac_header_preproc=yes
16061 echo "$as_me: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16063 ac_header_preproc=no
16065 rm -f conftest.err conftest.$ac_ext
16066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067 echo "${ECHO_T}$ac_header_preproc" >&6
16069 # So? What about this header?
16070 case $ac_header_compiler:$ac_header_preproc in
16072 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16073 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16075 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16077 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16078 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16080 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16082 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16084 echo "$as_me:$LINENO: checking for string" >&5
16085 echo $ECHO_N "checking for string... $ECHO_C" >&6
16086 if test "${ac_cv_header_string+set}" = set; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 ac_cv_header_string=$ac_header_preproc
16091 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16092 echo "${ECHO_T}$ac_cv_header_string" >&6
16095 if test $ac_cv_header_string = yes; then
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_CXX_STRING_HEADER 1
16102 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16103 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16104 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line $LINENO "configure"
16109 #include "confdefs.h"
16111 #include <stdlib.h>
16112 #include <string.h>
16114 #ifdef F77_DUMMY_MAIN
16115 # ifdef __cplusplus
16118 int F77_DUMMY_MAIN() { return 1; }
16123 string foo = "test"
16128 rm -f conftest.$ac_objext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130 (eval $ac_compile) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -s conftest.$ac_objext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 pgac_cv_class_string_in_string_h=yes
16142 echo "$as_me: failed program was:" >&5
16143 cat conftest.$ac_ext >&5
16144 pgac_cv_class_string_in_string_h=no
16146 rm -f conftest.$ac_objext conftest.$ac_ext
16148 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16149 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16151 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16152 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16153 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16154 { (exit 1); exit 1; }; }
16161 ac_cpp='$CPP $CPPFLAGS'
16162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16167 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16168 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16169 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 ac_cpp='$CXXCPP $CPPFLAGS'
16175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16179 cat >conftest.$ac_ext <<_ACEOF
16180 #line $LINENO "configure"
16181 #include "confdefs.h"
16183 #include <stdlib.h>
16184 #ifdef HAVE_CXX_STRING_HEADER
16187 using namespace std;
16189 #ifdef F77_DUMMY_MAIN
16190 # ifdef __cplusplus
16193 int F77_DUMMY_MAIN() { return 1; }
16203 rm -f conftest.$ac_objext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205 (eval $ac_compile) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 pgac_cv_cxx_namespace_std=yes
16217 echo "$as_me: failed program was:" >&5
16218 cat conftest.$ac_ext >&5
16219 pgac_cv_cxx_namespace_std=no
16221 rm -f conftest.$ac_objext conftest.$ac_ext
16223 ac_cpp='$CPP $CPPFLAGS'
16224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16229 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16230 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16232 if test $pgac_cv_cxx_namespace_std = yes ; then
16234 cat >>confdefs.h <<\_ACEOF
16235 #define HAVE_NAMESPACE_STD 1
16242 # Check for Tcl configuration script tclConfig.sh
16243 if test "$with_tcl" = yes; then
16244 for ac_prog in tclsh tcl
16246 # Extract the first word of "$ac_prog", so it can be a program name with args.
16247 set dummy $ac_prog; ac_word=$2
16248 echo "$as_me:$LINENO: checking for $ac_word" >&5
16249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16250 if test "${ac_cv_path_TCLSH+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259 for as_dir in $PATH
16262 test -z "$as_dir" && as_dir=.
16263 for ac_exec_ext in '' $ac_executable_extensions; do
16264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16265 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16275 TCLSH=$ac_cv_path_TCLSH
16277 if test -n "$TCLSH"; then
16278 echo "$as_me:$LINENO: result: $TCLSH" >&5
16279 echo "${ECHO_T}$TCLSH" >&6
16281 echo "$as_me:$LINENO: result: no" >&5
16282 echo "${ECHO_T}no" >&6
16285 test -n "$TCLSH" && break
16288 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16289 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16290 # Let user override test
16291 if test -z "$TCL_CONFIG_SH"; then
16292 pgac_test_dirs="$with_tclconfig"
16294 set X $pgac_test_dirs; shift
16295 if test $# -eq 0; then
16296 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16297 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16298 { (exit 1); exit 1; }; }
16299 set X `echo 'puts $auto_path' | $TCLSH`; shift
16303 if test -r "$pgac_dir/tclConfig.sh"; then
16304 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16310 if test -z "$TCL_CONFIG_SH"; then
16311 echo "$as_me:$LINENO: result: no" >&5
16312 echo "${ECHO_T}no" >&6
16313 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16314 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16315 { (exit 1); exit 1; }; }
16317 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16318 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16325 # Check for Tk configuration script tkConfig.sh
16326 if test "$with_tk" = yes; then
16327 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16328 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16329 # Let user override test
16330 if test -z "$TK_CONFIG_SH"; then
16331 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16333 set X $pgac_test_dirs; shift
16334 if test $# -eq 0; then
16335 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16336 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16337 { (exit 1); exit 1; }; }
16338 set X `echo 'puts $auto_path' | $TCLSH`; shift
16342 if test -r "$pgac_dir/tkConfig.sh"; then
16343 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16349 if test -z "$TK_CONFIG_SH"; then
16350 echo "$as_me:$LINENO: result: no" >&5
16351 echo "${ECHO_T}no" >&6
16352 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16353 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16354 { (exit 1); exit 1; }; }
16356 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16357 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16366 # Check for DocBook and tools
16368 for ac_prog in onsgmls nsgmls
16370 # Extract the first word of "$ac_prog", so it can be a program name with args.
16371 set dummy $ac_prog; ac_word=$2
16372 echo "$as_me:$LINENO: checking for $ac_word" >&5
16373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16374 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 if test -n "$NSGMLS"; then
16378 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16381 for as_dir in $PATH
16384 test -z "$as_dir" && as_dir=.
16385 for ac_exec_ext in '' $ac_executable_extensions; do
16386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16387 ac_cv_prog_NSGMLS="$ac_prog"
16388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16396 NSGMLS=$ac_cv_prog_NSGMLS
16397 if test -n "$NSGMLS"; then
16398 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16399 echo "${ECHO_T}$NSGMLS" >&6
16401 echo "$as_me:$LINENO: result: no" >&5
16402 echo "${ECHO_T}no" >&6
16405 test -n "$NSGMLS" && break
16408 for ac_prog in openjade jade
16410 # Extract the first word of "$ac_prog", so it can be a program name with args.
16411 set dummy $ac_prog; ac_word=$2
16412 echo "$as_me:$LINENO: checking for $ac_word" >&5
16413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16414 if test "${ac_cv_prog_JADE+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 if test -n "$JADE"; then
16418 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16421 for as_dir in $PATH
16424 test -z "$as_dir" && as_dir=.
16425 for ac_exec_ext in '' $ac_executable_extensions; do
16426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16427 ac_cv_prog_JADE="$ac_prog"
16428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16436 JADE=$ac_cv_prog_JADE
16437 if test -n "$JADE"; then
16438 echo "$as_me:$LINENO: result: $JADE" >&5
16439 echo "${ECHO_T}$JADE" >&6
16441 echo "$as_me:$LINENO: result: no" >&5
16442 echo "${ECHO_T}no" >&6
16445 test -n "$JADE" && break
16449 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16450 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16451 if test "${pgac_cv_check_docbook+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 cat >conftest.sgml <<EOF
16455 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16457 <title>test</title>
16459 <title>random</title>
16461 <title>testsect</title>
16468 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16469 if test $? -eq 0; then
16470 pgac_cv_check_docbook=yes
16472 pgac_cv_check_docbook=no
16474 rm -f conftest.sgml
16476 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16477 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16479 have_docbook=$pgac_cv_check_docbook
16482 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16483 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16484 if test "${pgac_cv_path_stylesheets+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 if test -n "$DOCBOOKSTYLE"; then
16488 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16490 for pgac_prefix in /usr /usr/local /opt; do
16491 for pgac_infix in share lib; do
16492 for pgac_postfix in \
16493 sgml/stylesheets/nwalsh-modular \
16494 sgml/stylesheets/docbook \
16495 sgml/docbook/dsssl/modular \
16496 sgml/docbook/dsssl-stylesheets
16498 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16499 if test -r "$pgac_candidate/html/docbook.dsl" \
16500 && test -r "$pgac_candidate/print/docbook.dsl"
16502 pgac_cv_path_stylesheets=$pgac_candidate
16511 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16513 if test -n "$DOCBOOKSTYLE"; then
16514 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16515 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16517 echo "$as_me:$LINENO: result: no" >&5
16518 echo "${ECHO_T}no" >&6
16520 if test -n "$DOCBOOKSTYLE"; then
16521 for ac_prog in collateindex.pl
16523 # Extract the first word of "$ac_prog", so it can be a program name with args.
16524 set dummy $ac_prog; ac_word=$2
16525 echo "$as_me:$LINENO: checking for $ac_word" >&5
16526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16527 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 case $COLLATEINDEX in
16532 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536 for as_dir in $DOCBOOKSTYLE/bin $PATH
16539 test -z "$as_dir" && as_dir=.
16540 for ac_exec_ext in '' $ac_executable_extensions; do
16541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16542 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16552 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16554 if test -n "$COLLATEINDEX"; then
16555 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16556 echo "${ECHO_T}$COLLATEINDEX" >&6
16558 echo "$as_me:$LINENO: result: no" >&5
16559 echo "${ECHO_T}no" >&6
16562 test -n "$COLLATEINDEX" && break
16566 for ac_prog in collateindex.pl
16568 # Extract the first word of "$ac_prog", so it can be a program name with args.
16569 set dummy $ac_prog; ac_word=$2
16570 echo "$as_me:$LINENO: checking for $ac_word" >&5
16571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16572 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 case $COLLATEINDEX in
16577 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16581 for as_dir in $PATH
16584 test -z "$as_dir" && as_dir=.
16585 for ac_exec_ext in '' $ac_executable_extensions; do
16586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16587 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16597 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16599 if test -n "$COLLATEINDEX"; then
16600 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16601 echo "${ECHO_T}$COLLATEINDEX" >&6
16603 echo "$as_me:$LINENO: result: no" >&5
16604 echo "${ECHO_T}no" >&6
16607 test -n "$COLLATEINDEX" && break
16611 for ac_prog in sgmlspl
16613 # Extract the first word of "$ac_prog", so it can be a program name with args.
16614 set dummy $ac_prog; ac_word=$2
16615 echo "$as_me:$LINENO: checking for $ac_word" >&5
16616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16617 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 if test -n "$SGMLSPL"; then
16621 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16624 for as_dir in $PATH
16627 test -z "$as_dir" && as_dir=.
16628 for ac_exec_ext in '' $ac_executable_extensions; do
16629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16630 ac_cv_prog_SGMLSPL="$ac_prog"
16631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16639 SGMLSPL=$ac_cv_prog_SGMLSPL
16640 if test -n "$SGMLSPL"; then
16641 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16642 echo "${ECHO_T}$SGMLSPL" >&6
16644 echo "$as_me:$LINENO: result: no" >&5
16645 echo "${ECHO_T}no" >&6
16648 test -n "$SGMLSPL" && break
16653 # prepare build tree if outside source tree
16654 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16655 # Note 2: /bin/pwd might be better than shell's built-in at getting
16656 # a symlink-free name.
16657 if test "$no_create" != yes; then
16658 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16663 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16664 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16665 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16666 || { { echo "$as_me:$LINENO: error: failed" >&5
16667 echo "$as_me: error: failed" >&2;}
16668 { (exit 1); exit 1; }; }
16669 echo "$as_me:$LINENO: result: done" >&5
16670 echo "${ECHO_T}done" >&6
16675 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16678 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}"
16681 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16684 cat >confcache <<\_ACEOF
16685 # This file is a shell script that caches the results of configure
16686 # tests run on this system so they can be shared between configure
16687 # scripts and configure runs, see configure's option --config-cache.
16688 # It is not useful on other systems. If it contains results you don't
16689 # want to keep, you may remove or edit it.
16691 # config.status only pays attention to the cache file if you give it
16692 # the --recheck option to rerun configure.
16694 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16696 # following values.
16700 # The following way of writing the cache mishandles newlines in values,
16701 # but we know of no workaround that is simple, portable, and efficient.
16702 # So, don't put newlines in cache variables' values.
16703 # Ultrix sh set writes to stderr and can't be redirected directly,
16704 # and sets the high bit in the cache file unless we assign to the vars.
16707 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16709 # `set' does not quote correctly, so add quotes (double-quote
16710 # substitution turns \\\\ into \\, and sed turns \\ into \).
16713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16716 # `set' quotes correctly as required by POSIX, so do not add quotes.
16718 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16727 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16729 if cmp -s $cache_file confcache; then :; else
16730 if test -w $cache_file; then
16731 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16732 cat confcache >$cache_file
16734 echo "not updating unwritable cache $cache_file"
16739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16740 # Let make expand exec_prefix.
16741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16743 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16745 # trailing colons and then remove the whole line if VPATH becomes empty
16746 # (actually we leave an empty line to preserve line numbers).
16747 if test "x$srcdir" = x.; then
16748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16749 s/:*\$(srcdir):*/:/;
16750 s/:*\${srcdir}:*/:/;
16752 s/^\([^=]*=[ ]*\):*/\1/;
16758 DEFS=-DHAVE_CONFIG_H
16761 : ${CONFIG_STATUS=./config.status}
16762 ac_clean_files_save=$ac_clean_files
16763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16766 cat >$CONFIG_STATUS <<_ACEOF
16768 # Generated by $as_me.
16769 # Run this file to recreate the current configuration.
16770 # Compiler output produced by configure, useful for debugging
16771 # configure, is in config.log if it exists.
16774 SHELL=\${CONFIG_SHELL-$SHELL}
16777 cat >>$CONFIG_STATUS <<\_ACEOF
16779 ## --------------------- ##
16780 ## M4sh Initialization. ##
16781 ## --------------------- ##
16783 # Be Bourne compatible
16784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16787 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16792 # Support unset when possible.
16793 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16799 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16800 { $as_unset LANG || test "${LANG+set}" != set; } ||
16801 { LANG=C; export LANG; }
16802 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16803 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16804 { LC_ALL=C; export LC_ALL; }
16805 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16806 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16807 { LC_TIME=C; export LC_TIME; }
16808 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16809 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16810 { LC_CTYPE=C; export LC_CTYPE; }
16811 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16812 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16813 { LANGUAGE=C; export LANGUAGE; }
16814 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16815 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16816 { LC_COLLATE=C; export LC_COLLATE; }
16817 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16818 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16819 { LC_NUMERIC=C; export LC_NUMERIC; }
16820 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16821 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16822 { LC_MESSAGES=C; export LC_MESSAGES; }
16825 # Name of the executable.
16826 as_me=`(basename "$0") 2>/dev/null ||
16827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16828 X"$0" : 'X\(//\)$' \| \
16829 X"$0" : 'X\(/\)$' \| \
16830 . : '\(.\)' 2>/dev/null ||
16832 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16833 /^X\/\(\/\/\)$/{ s//\1/; q; }
16834 /^X\/\(\/\).*/{ s//\1/; q; }
16837 # PATH needs CR, and LINENO needs CR and PATH.
16838 # Avoid depending upon Character Ranges.
16839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16842 as_cr_digits='0123456789'
16843 as_cr_alnum=$as_cr_Letters$as_cr_digits
16845 # The user is always right.
16846 if test "${PATH_SEPARATOR+set}" != set; then
16847 echo "#! /bin/sh" >conftest.sh
16848 echo "exit 0" >>conftest.sh
16849 chmod +x conftest.sh
16850 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16859 as_lineno_1=$LINENO
16860 as_lineno_2=$LINENO
16861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16862 test "x$as_lineno_1" != "x$as_lineno_2" &&
16863 test "x$as_lineno_3" = "x$as_lineno_2" || {
16864 # Find who we are. Look in the path if we contain no path at all
16867 *[\\/]* ) as_myself=$0 ;;
16868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16869 for as_dir in $PATH
16872 test -z "$as_dir" && as_dir=.
16873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16878 # We did not find ourselves, most probably we were run as `sh COMMAND'
16879 # in which case we are not to be found in the path.
16880 if test "x$as_myself" = x; then
16883 if test ! -f "$as_myself"; then
16884 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16885 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16886 { (exit 1); exit 1; }; }
16888 case $CONFIG_SHELL in
16890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16891 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16894 test -z "$as_dir" && as_dir=.
16895 for as_base in sh bash ksh sh5; do
16898 if ("$as_dir/$as_base" -c '
16899 as_lineno_1=$LINENO
16900 as_lineno_2=$LINENO
16901 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16902 test "x$as_lineno_1" != "x$as_lineno_2" &&
16903 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16904 CONFIG_SHELL=$as_dir/$as_base
16905 export CONFIG_SHELL
16906 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16915 # uniformly replaced by the line number. The first 'sed' inserts a
16916 # line-number line before each line; the second 'sed' does the real
16917 # work. The second script uses 'N' to pair each line-number line
16918 # with the numbered line, and appends trailing '-' during
16919 # substitution so that $LINENO is not a special case at line end.
16920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16921 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16922 sed '=' <$as_myself |
16927 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16930 s,^['$as_cr_digits']*\n,,
16931 ' >$as_me.lineno &&
16932 chmod +x $as_me.lineno ||
16933 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16934 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16935 { (exit 1); exit 1; }; }
16937 # Don't try to exec as it changes $[0], causing all sort of problems
16938 # (the dirname of $[0] is not the place where we might find the
16939 # original and so on. Autoconf is especially sensible to this).
16941 # Exit status is that of the last command.
16946 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16947 *c*,-n*) ECHO_N= ECHO_C='
16949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16953 if expr a : '\(a\)' >/dev/null 2>&1; then
16959 rm -f conf$$ conf$$.exe conf$$.file
16961 if ln -s conf$$.file conf$$ 2>/dev/null; then
16962 # We could just check for DJGPP; but this test a) works b) is more generic
16963 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16964 if test -f conf$$.exe; then
16965 # Don't use ln at all; we don't have any links
16970 elif ln conf$$.file conf$$ 2>/dev/null; then
16975 rm -f conf$$ conf$$.exe conf$$.file
16977 as_executable_p="test -f"
16979 # Sed expression to map a string onto a valid CPP name.
16980 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16982 # Sed expression to map a string onto a valid variable name.
16983 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16987 # We need space, tab and new line, in precisely that order.
16993 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16997 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16998 # report actual input values of CONFIG_FILES etc. instead of their
16999 # values after options handling. Logging --version etc. is OK.
17003 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17004 ## Running $as_me. ##
17009 This file was extended by PostgreSQL $as_me 7.3devel, which was
17010 generated by GNU Autoconf 2.53. Invocation command line was
17012 CONFIG_FILES = $CONFIG_FILES
17013 CONFIG_HEADERS = $CONFIG_HEADERS
17014 CONFIG_LINKS = $CONFIG_LINKS
17015 CONFIG_COMMANDS = $CONFIG_COMMANDS
17019 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17023 # Files that config.status was made for.
17024 if test -n "$ac_config_files"; then
17025 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17028 if test -n "$ac_config_headers"; then
17029 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17032 if test -n "$ac_config_links"; then
17033 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17036 if test -n "$ac_config_commands"; then
17037 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17040 cat >>$CONFIG_STATUS <<\_ACEOF
17043 \`$as_me' instantiates files from templates according to the
17044 current configuration.
17046 Usage: $0 [OPTIONS] [FILE]...
17048 -h, --help print this help, then exit
17049 -V, --version print version number, then exit
17050 -d, --debug don't remove temporary files
17051 --recheck update $as_me by reconfiguring in the same conditions
17052 --file=FILE[:TEMPLATE]
17053 instantiate the configuration file FILE
17054 --header=FILE[:TEMPLATE]
17055 instantiate the configuration header FILE
17057 Configuration files:
17060 Configuration headers:
17063 Configuration links:
17066 Report bugs to <bug-autoconf@gnu.org>."
17069 cat >>$CONFIG_STATUS <<_ACEOF
17071 PostgreSQL config.status 7.3devel
17072 configured by $0, generated by GNU Autoconf 2.53,
17073 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17075 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17076 Free Software Foundation, Inc.
17077 This config.status script is free software; the Free Software Foundation
17078 gives unlimited permission to copy, distribute and modify it."
17082 cat >>$CONFIG_STATUS <<\_ACEOF
17083 # If no file are specified by the user, then we need to provide default
17084 # value. By we need to know if files were specified by the user.
17090 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17091 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17093 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17097 *) # This is not an option, so the user has probably given explicit
17099 ac_need_defaults=false;;
17103 # Handling of the options.
17105 cat >>$CONFIG_STATUS <<_ACEOF
17106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17107 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17108 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17110 cat >>$CONFIG_STATUS <<\_ACEOF
17111 --version | --vers* | -V )
17112 echo "$ac_cs_version"; exit 0 ;;
17114 # Conflict between --help and --header
17115 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17116 Try \`$0 --help' for more information." >&5
17117 echo "$as_me: error: ambiguous option: $1
17118 Try \`$0 --help' for more information." >&2;}
17119 { (exit 1); exit 1; }; };;
17120 --help | --hel | -h )
17121 echo "$ac_cs_usage"; exit 0 ;;
17122 --debug | --d* | -d )
17124 --file | --fil | --fi | --f )
17126 CONFIG_FILES="$CONFIG_FILES $1"
17127 ac_need_defaults=false;;
17128 --header | --heade | --head | --hea )
17130 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17131 ac_need_defaults=false;;
17133 # This is an error.
17134 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17135 Try \`$0 --help' for more information." >&5
17136 echo "$as_me: error: unrecognized option: $1
17137 Try \`$0 --help' for more information." >&2;}
17138 { (exit 1); exit 1; }; } ;;
17140 *) ac_config_targets="$ac_config_targets $1" ;;
17152 cat >>$CONFIG_STATUS <<\_ACEOF
17153 for ac_config_target in $ac_config_targets
17155 case "$ac_config_target" in
17156 # Handling of arguments.
17157 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17158 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17159 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17160 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17161 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17162 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17163 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17164 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17165 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17166 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17167 { (exit 1); exit 1; }; };;
17171 # If the user did not use the arguments to specify the items to instantiate,
17172 # then the envvar interface is used. Set only those that are not.
17173 # We use the long form for the default assignment because of an extremely
17174 # bizarre bug on SunOS 4.1.3.
17175 if $ac_need_defaults; then
17176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17178 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17181 # Create a temporary directory, and hook for its removal unless debugging.
17184 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17185 trap '{ (exit 1); exit 1; }' 1 2 13 15
17188 # Create a (secure) tmp directory for tmp files.
17191 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17192 test -n "$tmp" && test -d "$tmp"
17195 tmp=$TMPDIR/cs$$-$RANDOM
17196 (umask 077 && mkdir $tmp)
17199 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17200 { (exit 1); exit 1; }
17205 cat >>$CONFIG_STATUS <<_ACEOF
17208 # CONFIG_FILES section.
17211 # No need to generate the scripts if there are no CONFIG_FILES.
17212 # This happens for instance when ./config.status config.h
17213 if test -n "\$CONFIG_FILES"; then
17214 # Protect against being on the right side of a sed subst in config.status.
17215 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17216 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17217 s,@SHELL@,$SHELL,;t t
17218 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17219 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17220 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17221 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17222 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17223 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17224 s,@exec_prefix@,$exec_prefix,;t t
17225 s,@prefix@,$prefix,;t t
17226 s,@program_transform_name@,$program_transform_name,;t t
17227 s,@bindir@,$bindir,;t t
17228 s,@sbindir@,$sbindir,;t t
17229 s,@libexecdir@,$libexecdir,;t t
17230 s,@datadir@,$datadir,;t t
17231 s,@sysconfdir@,$sysconfdir,;t t
17232 s,@sharedstatedir@,$sharedstatedir,;t t
17233 s,@localstatedir@,$localstatedir,;t t
17234 s,@libdir@,$libdir,;t t
17235 s,@includedir@,$includedir,;t t
17236 s,@oldincludedir@,$oldincludedir,;t t
17237 s,@infodir@,$infodir,;t t
17238 s,@mandir@,$mandir,;t t
17239 s,@build_alias@,$build_alias,;t t
17240 s,@host_alias@,$host_alias,;t t
17241 s,@target_alias@,$target_alias,;t t
17242 s,@DEFS@,$DEFS,;t t
17243 s,@ECHO_C@,$ECHO_C,;t t
17244 s,@ECHO_N@,$ECHO_N,;t t
17245 s,@ECHO_T@,$ECHO_T,;t t
17246 s,@LIBS@,$LIBS,;t t
17247 s,@docdir@,$docdir,;t t
17248 s,@configure_args@,$configure_args,;t t
17249 s,@build@,$build,;t t
17250 s,@build_cpu@,$build_cpu,;t t
17251 s,@build_vendor@,$build_vendor,;t t
17252 s,@build_os@,$build_os,;t t
17253 s,@host@,$host,;t t
17254 s,@host_cpu@,$host_cpu,;t t
17255 s,@host_vendor@,$host_vendor,;t t
17256 s,@host_os@,$host_os,;t t
17257 s,@PORTNAME@,$PORTNAME,;t t
17259 s,@MULTIBYTE@,$MULTIBYTE,;t t
17260 s,@enable_nls@,$enable_nls,;t t
17261 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17262 s,@default_port@,$default_port,;t t
17263 s,@enable_shared@,$enable_shared,;t t
17264 s,@enable_rpath@,$enable_rpath,;t t
17265 s,@enable_debug@,$enable_debug,;t t
17267 s,@CFLAGS@,$CFLAGS,;t t
17268 s,@LDFLAGS@,$LDFLAGS,;t t
17269 s,@CPPFLAGS@,$CPPFLAGS,;t t
17270 s,@ac_ct_CC@,$ac_ct_CC,;t t
17271 s,@EXEEXT@,$EXEEXT,;t t
17272 s,@OBJEXT@,$OBJEXT,;t t
17275 s,@autodepend@,$autodepend,;t t
17276 s,@INCLUDES@,$INCLUDES,;t t
17277 s,@with_tcl@,$with_tcl,;t t
17278 s,@with_tk@,$with_tk,;t t
17279 s,@with_perl@,$with_perl,;t t
17280 s,@with_python@,$with_python,;t t
17282 s,@with_java@,$with_java,;t t
17283 s,@with_krb4@,$with_krb4,;t t
17284 s,@with_krb5@,$with_krb5,;t t
17285 s,@krb_srvtab@,$krb_srvtab,;t t
17286 s,@with_pam@,$with_pam,;t t
17287 s,@with_openssl@,$with_openssl,;t t
17288 s,@enable_odbc@,$enable_odbc,;t t
17289 s,@with_unixodbc@,$with_unixodbc,;t t
17290 s,@with_iodbc@,$with_iodbc,;t t
17291 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17292 s,@ELF_SYS@,$ELF_SYS,;t t
17294 s,@CXXFLAGS@,$CXXFLAGS,;t t
17295 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17296 s,@CXXCPP@,$CXXCPP,;t t
17297 s,@with_CXX@,$with_CXX,;t t
17300 s,@FLEX@,$FLEX,;t t
17301 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17302 s,@LN_S@,$LN_S,;t t
17304 s,@with_gnu_ld@,$with_gnu_ld,;t t
17305 s,@ld_R_works@,$ld_R_works,;t t
17306 s,@RANLIB@,$RANLIB,;t t
17307 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17308 s,@LORDER@,$LORDER,;t t
17310 s,@STRIP@,$STRIP,;t t
17311 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17312 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17313 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17314 s,@YACC@,$YACC,;t t
17315 s,@YFLAGS@,$YFLAGS,;t t
17316 s,@WISH@,$WISH,;t t
17317 s,@PERL@,$PERL,;t t
17318 s,@perl_installsitearch@,$perl_installsitearch,;t t
17319 s,@perl_installsitelib@,$perl_installsitelib,;t t
17320 s,@perl_installman3dir@,$perl_installman3dir,;t t
17321 s,@PYTHON@,$PYTHON,;t t
17322 s,@python_version@,$python_version,;t t
17323 s,@python_prefix@,$python_prefix,;t t
17324 s,@python_execprefix@,$python_execprefix,;t t
17325 s,@python_configdir@,$python_configdir,;t t
17326 s,@python_moduledir@,$python_moduledir,;t t
17327 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17328 s,@python_includespec@,$python_includespec,;t t
17329 s,@python_libspec@,$python_libspec,;t t
17330 s,@MEMCMP@,$MEMCMP,;t t
17331 s,@SNPRINTF@,$SNPRINTF,;t t
17332 s,@ISINF@,$ISINF,;t t
17333 s,@GETRUSAGE@,$GETRUSAGE,;t t
17334 s,@SRANDOM@,$SRANDOM,;t t
17335 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17336 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17337 s,@INET_ATON@,$INET_ATON,;t t
17338 s,@STRERROR@,$STRERROR,;t t
17339 s,@STRDUP@,$STRDUP,;t t
17340 s,@STRTOL@,$STRTOL,;t t
17341 s,@STRTOUL@,$STRTOUL,;t t
17342 s,@STRCASECMP@,$STRCASECMP,;t t
17343 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17344 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17345 s,@MSGFMT@,$MSGFMT,;t t
17346 s,@MSGMERGE@,$MSGMERGE,;t t
17347 s,@XGETTEXT@,$XGETTEXT,;t t
17348 s,@localedir@,$localedir,;t t
17349 s,@TCLSH@,$TCLSH,;t t
17350 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17351 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17352 s,@NSGMLS@,$NSGMLS,;t t
17353 s,@JADE@,$JADE,;t t
17354 s,@have_docbook@,$have_docbook,;t t
17355 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17356 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17357 s,@SGMLSPL@,$SGMLSPL,;t t
17358 s,@vpath_build@,$vpath_build,;t t
17363 cat >>$CONFIG_STATUS <<\_ACEOF
17364 # Split the substitutions into bite-sized pieces for seds with
17365 # small command number limits, like on Digital OSF/1 and HP-UX.
17366 ac_max_sed_lines=48
17367 ac_sed_frag=1 # Number of current file.
17368 ac_beg=1 # First line for current file.
17369 ac_end=$ac_max_sed_lines # Line after last line for current file.
17372 while $ac_more_lines; do
17373 if test $ac_beg -gt 1; then
17374 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17376 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17378 if test ! -s $tmp/subs.frag; then
17379 ac_more_lines=false
17381 # The purpose of the label and of the branching condition is to
17382 # speed up the sed processing (if there are no `@' at all, there
17383 # is no need to browse any of the substitutions).
17384 # These are the two extra sed commands mentioned above.
17386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17387 if test -z "$ac_sed_cmds"; then
17388 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17390 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17392 ac_sed_frag=`expr $ac_sed_frag + 1`
17394 ac_end=`expr $ac_end + $ac_max_sed_lines`
17397 if test -z "$ac_sed_cmds"; then
17400 fi # test -n "$CONFIG_FILES"
17403 cat >>$CONFIG_STATUS <<\_ACEOF
17404 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17405 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17407 - | *:- | *:-:* ) # input from stdin
17409 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17410 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17411 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17412 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17413 * ) ac_file_in=$ac_file.in ;;
17416 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17417 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17419 X"$ac_file" : 'X\(//\)[^/]' \| \
17420 X"$ac_file" : 'X\(//\)$' \| \
17421 X"$ac_file" : 'X\(/\)' \| \
17422 . : '\(.\)' 2>/dev/null ||
17424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17426 /^X\(\/\/\)$/{ s//\1/; q; }
17427 /^X\(\/\).*/{ s//\1/; q; }
17429 { case "$ac_dir" in
17430 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17434 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17435 case $as_mkdir_dir in
17436 # Skip DOS drivespec
17437 ?:) as_incr_dir=$as_mkdir_dir ;;
17439 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17440 test -d "$as_incr_dir" ||
17441 mkdir "$as_incr_dir" ||
17442 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17443 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17444 { (exit 1); exit 1; }; }
17451 if test "$ac_dir" != .; then
17452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17453 # A "../" for each directory in $ac_dir_suffix.
17454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17456 ac_dir_suffix= ac_top_builddir=
17460 .) # No --srcdir option. We are building in place.
17462 if test -z "$ac_top_builddir"; then
17465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17467 [\\/]* | ?:[\\/]* ) # Absolute path.
17468 ac_srcdir=$srcdir$ac_dir_suffix;
17469 ac_top_srcdir=$srcdir ;;
17470 *) # Relative path.
17471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17474 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17476 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17477 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17478 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17479 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17483 if test x"$ac_file" != x-; then
17484 { echo "$as_me:$LINENO: creating $ac_file" >&5
17485 echo "$as_me: creating $ac_file" >&6;}
17488 # Let's still pretend it is `configure' which instantiates (i.e., don't
17489 # use $as_me), people would be surprised to read:
17490 # /* config.h. Generated by config.status. */
17491 if test x"$ac_file" = x-; then
17494 configure_input="$ac_file. "
17496 configure_input=$configure_input"Generated from `echo $ac_file_in |
17497 sed 's,.*/,,'` by configure."
17499 # First look for the input files in the build tree, otherwise in the
17501 ac_file_inputs=`IFS=:
17502 for f in $ac_file_in; do
17504 -) echo $tmp/stdin ;;
17506 # Absolute (can't be DOS-style, as IFS=:)
17507 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17508 echo "$as_me: error: cannot find input file: $f" >&2;}
17509 { (exit 1); exit 1; }; }
17512 if test -f "$f"; then
17515 elif test -f "$srcdir/$f"; then
17520 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17521 echo "$as_me: error: cannot find input file: $f" >&2;}
17522 { (exit 1); exit 1; }; }
17525 done` || { (exit 1); exit 1; }
17527 cat >>$CONFIG_STATUS <<_ACEOF
17531 cat >>$CONFIG_STATUS <<\_ACEOF
17533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17534 s,@configure_input@,$configure_input,;t t
17535 s,@srcdir@,$ac_srcdir,;t t
17536 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17537 s,@top_srcdir@,$ac_top_srcdir,;t t
17538 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17539 s,@builddir@,$ac_builddir,;t t
17540 s,@abs_builddir@,$ac_abs_builddir,;t t
17541 s,@top_builddir@,$ac_top_builddir,;t t
17542 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17543 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17545 if test x"$ac_file" != x-; then
17546 mv $tmp/out $ac_file
17554 cat >>$CONFIG_STATUS <<\_ACEOF
17557 # CONFIG_HEADER section.
17560 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17561 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17563 # ac_d sets the value in "#define NAME VALUE" lines.
17564 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17565 ac_dB='[ ].*$,\1#\2'
17568 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17569 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17570 ac_uB='$,\1#\2define\3'
17574 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17575 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17577 - | *:- | *:-:* ) # input from stdin
17579 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17581 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17583 * ) ac_file_in=$ac_file.in ;;
17586 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17587 echo "$as_me: creating $ac_file" >&6;}
17589 # First look for the input files in the build tree, otherwise in the
17591 ac_file_inputs=`IFS=:
17592 for f in $ac_file_in; do
17594 -) echo $tmp/stdin ;;
17596 # Absolute (can't be DOS-style, as IFS=:)
17597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17598 echo "$as_me: error: cannot find input file: $f" >&2;}
17599 { (exit 1); exit 1; }; }
17602 if test -f "$f"; then
17605 elif test -f "$srcdir/$f"; then
17610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17611 echo "$as_me: error: cannot find input file: $f" >&2;}
17612 { (exit 1); exit 1; }; }
17615 done` || { (exit 1); exit 1; }
17616 # Remove the trailing spaces.
17617 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17621 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17622 # `conftest.undefs', that substitutes the proper values into
17623 # config.h.in to produce config.h. The first handles `#define'
17624 # templates, and the second `#undef' templates.
17625 # And first: Protect against being on the right side of a sed subst in
17626 # config.status. Protect against being in an unquoted here document
17627 # in config.status.
17628 rm -f conftest.defines conftest.undefs
17629 # Using a here document instead of a string reduces the quoting nightmare.
17630 # Putting comments in sed scripts is not portable.
17632 # `end' is used to avoid that the second main sed command (meant for
17633 # 0-ary CPP macros) applies to n-ary macro definitions.
17634 # See the Autoconf documentation for `clear'.
17635 cat >confdef2sed.sed <<\_ACEOF
17640 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17642 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17645 # If some macros were called several times there might be several times
17646 # the same #defines, which is useless. Nevertheless, we may not want to
17647 # sort them, since we want the *last* AC-DEFINE to be honored.
17648 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17649 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17650 rm -f confdef2sed.sed
17652 # This sed command replaces #undef with comments. This is necessary, for
17653 # example, in the case of _POSIX_SOURCE, which is predefined and required
17654 # on some systems where configure will not decide to define it.
17655 cat >>conftest.undefs <<\_ACEOF
17656 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17659 # Break up conftest.defines because some shells have a limit on the size
17660 # of here documents, and old seds have small limits too (100 cmds).
17661 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17662 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17663 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17664 echo ' :' >>$CONFIG_STATUS
17665 rm -f conftest.tail
17666 while grep . conftest.defines >/dev/null
17668 # Write a limited-size here document to $tmp/defines.sed.
17669 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17670 # Speed up: don't consider the non `#define' lines.
17671 echo '/^[ ]*#[ ]*define/!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.defines >>$CONFIG_STATUS
17677 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17679 mv $tmp/out $tmp/in
17681 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17682 rm -f conftest.defines
17683 mv conftest.tail conftest.defines
17685 rm -f conftest.defines
17686 echo ' fi # egrep' >>$CONFIG_STATUS
17687 echo >>$CONFIG_STATUS
17689 # Break up conftest.undefs because some shells have a limit on the size
17690 # of here documents, and old seds have small limits too (100 cmds).
17691 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17692 rm -f conftest.tail
17693 while grep . conftest.undefs >/dev/null
17695 # Write a limited-size here document to $tmp/undefs.sed.
17696 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17697 # Speed up: don't consider the non `#undef'
17698 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17699 # Work around the forget-to-reset-the-flag bug.
17700 echo 't clr' >>$CONFIG_STATUS
17701 echo ': clr' >>$CONFIG_STATUS
17702 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17704 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17706 mv $tmp/out $tmp/in
17708 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17709 rm -f conftest.undefs
17710 mv conftest.tail conftest.undefs
17712 rm -f conftest.undefs
17714 cat >>$CONFIG_STATUS <<\_ACEOF
17715 # Let's still pretend it is `configure' which instantiates (i.e., don't
17716 # use $as_me), people would be surprised to read:
17717 # /* config.h. Generated by config.status. */
17718 if test x"$ac_file" = x-; then
17719 echo "/* Generated by configure. */" >$tmp/config.h
17721 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17723 cat $tmp/in >>$tmp/config.h
17725 if test x"$ac_file" != x-; then
17726 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17727 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17728 echo "$as_me: $ac_file is unchanged" >&6;}
17730 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17732 X"$ac_file" : 'X\(//\)[^/]' \| \
17733 X"$ac_file" : 'X\(//\)$' \| \
17734 X"$ac_file" : 'X\(/\)' \| \
17735 . : '\(.\)' 2>/dev/null ||
17737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17739 /^X\(\/\/\)$/{ s//\1/; q; }
17740 /^X\(\/\).*/{ s//\1/; q; }
17742 { case "$ac_dir" in
17743 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17747 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17748 case $as_mkdir_dir in
17749 # Skip DOS drivespec
17750 ?:) as_incr_dir=$as_mkdir_dir ;;
17752 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17753 test -d "$as_incr_dir" ||
17754 mkdir "$as_incr_dir" ||
17755 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17756 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17757 { (exit 1); exit 1; }; }
17763 mv $tmp/config.h $ac_file
17767 rm -f $tmp/config.h
17769 # Run the commands associated with the file.
17771 src/include/pg_config.h )
17772 # Update timestamp for pg_config.h (see Makefile.global)
17773 echo >src/include/stamp-h
17778 cat >>$CONFIG_STATUS <<\_ACEOF
17781 # CONFIG_LINKS section.
17784 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17785 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17786 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17788 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17789 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17791 if test ! -r $srcdir/$ac_source; then
17792 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17793 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17794 { (exit 1); exit 1; }; }
17798 # Make relative symlinks.
17799 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17800 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17801 X"$ac_dest" : 'X\(//\)[^/]' \| \
17802 X"$ac_dest" : 'X\(//\)$' \| \
17803 X"$ac_dest" : 'X\(/\)' \| \
17804 . : '\(.\)' 2>/dev/null ||
17806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17808 /^X\(\/\/\)$/{ s//\1/; q; }
17809 /^X\(\/\).*/{ s//\1/; q; }
17811 { case "$ac_dest_dir" in
17812 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17815 as_dummy="$ac_dest_dir"
17816 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17817 case $as_mkdir_dir in
17818 # Skip DOS drivespec
17819 ?:) as_incr_dir=$as_mkdir_dir ;;
17821 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17822 test -d "$as_incr_dir" ||
17823 mkdir "$as_incr_dir" ||
17824 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17825 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17826 { (exit 1); exit 1; }; }
17833 if test "$ac_dest_dir" != .; then
17834 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17835 # A "../" for each directory in $ac_dir_suffix.
17836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17838 ac_dir_suffix= ac_top_builddir=
17842 .) # No --srcdir option. We are building in place.
17844 if test -z "$ac_top_builddir"; then
17847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17849 [\\/]* | ?:[\\/]* ) # Absolute path.
17850 ac_srcdir=$srcdir$ac_dir_suffix;
17851 ac_top_srcdir=$srcdir ;;
17852 *) # Relative path.
17853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17856 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17858 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17859 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17860 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17861 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17865 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17866 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17869 # Make a symlink if possible; otherwise try a hard link.
17870 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17871 ln $srcdir/$ac_source $ac_dest ||
17872 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17873 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17874 { (exit 1); exit 1; }; }
17878 cat >>$CONFIG_STATUS <<\_ACEOF
17880 { (exit 0); exit 0; }
17882 chmod +x $CONFIG_STATUS
17883 ac_clean_files=$ac_clean_files_save
17886 # configure is writing to config.log, and then calls config.status.
17887 # config.status does its own redirection, appending to config.log.
17888 # Unfortunately, on DOS this fails, as config.log is still kept open
17889 # by configure, so config.status won't be able to write to it; its
17890 # output is simply discarded. So we exec the FD to /dev/null,
17891 # effectively closing config.log, so it can be properly (re)opened and
17892 # appended to by config.status. When coming back to configure, we
17893 # need to make the FD available again.
17894 if test "$no_create" != yes; then
17897 $SHELL $CONFIG_STATUS || ac_cs_success=false
17899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17900 # would make configure fail if this is the last instruction.
17901 $ac_cs_success || { (exit 1); exit 1; }