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
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-recode enable character set recode support
849 --enable-multibyte enable multibyte character support
850 --enable-nls[=LANGUAGES] enable Native Language Support
851 --disable-shared do not build shared libraries
852 --disable-rpath do not embed shared library search path in executables
853 --enable-debug build with debugging symbols (-g)
854 --enable-depend turn on automatic dependency tracking
855 --enable-cassert enable assertion checks (for debugging)
856 --enable-odbc build the ODBC driver package
857 --enable-syslog enable logging to syslog
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-includes=DIRS look for additional header files in DIRS
864 --with-libraries=DIRS look for additional libraries in DIRS
865 --with-libs=DIRS alternative spelling of --with-libraries
866 --with-pgport=PORTNUM change default port number 5432
867 --with-maxbackends=N set default maximum number of connections 32
868 --with-tcl build Tcl and Tk interfaces
869 --without-tk do not build Tk interfaces if Tcl is enabled
870 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
871 --with-tkconfig=DIR tkConfig.sh is in DIR
872 --with-perl build Perl interface and PL/Perl
873 --with-python build Python interface module
874 --with-java build JDBC interface and Java tools
875 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
876 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
877 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
878 --with-pam build with PAM support
879 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
880 --without-readline do not use Readline
881 --without-zlib do not use Zlib
882 --with-unixodbc build ODBC driver for unixODBC
883 --with-iodbc build ODBC driver for iODBC
884 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
885 --with-CXX build C++ modules (libpq++)
886 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
896 CXX C++ compiler command
897 CXXFLAGS C++ compiler flags
898 CXXCPP C++ preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 Report bugs to <pgsql-bugs@postgresql.org>.
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
919 ac_dir_suffix= ac_top_builddir=
923 .) # No --srcdir option. We are building in place.
925 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
939 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
940 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
941 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
942 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
945 # Check for guested configure; otherwise get Cygnus style configure.
946 if test -f $ac_srcdir/configure.gnu; then
948 $SHELL $ac_srcdir/configure.gnu --help=recursive
949 elif test -f $ac_srcdir/configure; then
951 $SHELL $ac_srcdir/configure --help=recursive
952 elif test -f $ac_srcdir/configure.ac ||
953 test -f $ac_srcdir/configure.in; then
957 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963 test -n "$ac_init_help" && exit 0
964 if $ac_init_version; then
966 PostgreSQL configure 7.3devel
967 generated by GNU Autoconf 2.53
969 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
970 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
974 Copyright 2002 PostgreSQL Global Development Group
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
983 It was created by PostgreSQL $as_me 7.3devel, which was
984 generated by GNU Autoconf 2.53. Invocation command line was
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n ) continue ;;
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 case " $ac_configure_args " in
1051 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1052 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1055 # Get rid of the leading space.
1058 # When interrupted or exit'd, cleanup temporary files, and complete
1059 # config.log. We remove comments because anyway the quotes in there
1060 # would cause problems or look ugly.
1061 # WARNING: Be sure not to use single quotes in there, as some shells,
1062 # such as our DU 5.0 friend, will then `close' the trap.
1063 trap 'exit_status=$?
1064 # Save into config.log some information that might help in debugging.
1068 ## ---------------- ##
1069 ## Cache variables. ##
1070 ## ---------------- ##
1073 # The following way of writing the cache mishandles newlines in values,
1076 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1079 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 if test -s confdefs.h; then
1096 sed "/^$/d" confdefs.h
1099 test "$ac_signal" != 0 &&
1100 echo "$as_me: caught signal $ac_signal"
1101 echo "$as_me: exit $exit_status"
1103 rm -f core core.* *.core &&
1104 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107 for ac_signal in 1 2 13 15; do
1108 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 # Predefined preprocessor variables.
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147 if test "x$prefix" != xNONE; then
1148 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1150 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153 for ac_site_file in $CONFIG_SITE; do
1154 if test -r "$ac_site_file"; then
1155 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157 sed 's/^/| /' "$ac_site_file" >&5
1162 if test -r "$cache_file"; then
1163 # Some versions of bash will fail to source /dev/null (special
1164 # files actually), so we avoid doing that.
1165 if test -f "$cache_file"; then
1166 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1169 [\\/]* | ?:[\\/]* ) . $cache_file;;
1170 *) . ./$cache_file;;
1174 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1179 # Check that the precious variables saved in the cache have kept the same
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185 eval ac_new_set=\$ac_env_${ac_var}_set
1186 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187 eval ac_new_val="\$ac_env_${ac_var}_value"
1188 case $ac_old_set,$ac_new_set in
1190 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192 ac_cache_corrupted=: ;;
1194 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196 ac_cache_corrupted=: ;;
1199 if test "x$ac_old_val" != "x$ac_new_val"; then
1200 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1203 echo "$as_me: former value: $ac_old_val" >&2;}
1204 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1205 echo "$as_me: current value: $ac_new_val" >&2;}
1206 ac_cache_corrupted=:
1209 # Pass precious variables to config.status.
1210 if test "$ac_new_set" = set; then
1212 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 *) ac_arg=$ac_var=$ac_new_val ;;
1216 case " $ac_configure_args " in
1217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1218 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1222 if $ac_cache_corrupted; then
1223 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227 { (exit 1); exit 1; }; }
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269 for ac_dir in config $srcdir/config; do
1270 if test -f $ac_dir/install-sh; then
1272 ac_install_sh="$ac_aux_dir/install-sh -c"
1274 elif test -f $ac_dir/install.sh; then
1276 ac_install_sh="$ac_aux_dir/install.sh -c"
1278 elif test -f $ac_dir/shtool; then
1280 ac_install_sh="$ac_aux_dir/shtool install -c"
1284 if test -z "$ac_aux_dir"; then
1285 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1286 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1287 { (exit 1); exit 1; }; }
1289 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1290 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1291 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1294 configure_args=$ac_configure_args
1298 cat >>confdefs.h <<_ACEOF
1299 #define PG_VERSION "$PACKAGE_VERSION"
1303 # Make sure we can run config.sub.
1304 $ac_config_sub sun4 >/dev/null 2>&1 ||
1305 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1306 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1307 { (exit 1); exit 1; }; }
1309 echo "$as_me:$LINENO: checking build system type" >&5
1310 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1311 if test "${ac_cv_build+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 ac_cv_build_alias=$build_alias
1315 test -z "$ac_cv_build_alias" &&
1316 ac_cv_build_alias=`$ac_config_guess`
1317 test -z "$ac_cv_build_alias" &&
1318 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1319 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1320 { (exit 1); exit 1; }; }
1321 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1322 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1323 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1324 { (exit 1); exit 1; }; }
1327 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1328 echo "${ECHO_T}$ac_cv_build" >&6
1330 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1331 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1332 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1335 echo "$as_me:$LINENO: checking host system type" >&5
1336 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1337 if test "${ac_cv_host+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 ac_cv_host_alias=$host_alias
1341 test -z "$ac_cv_host_alias" &&
1342 ac_cv_host_alias=$ac_cv_build_alias
1343 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1344 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1345 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1346 { (exit 1); exit 1; }; }
1349 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1350 echo "${ECHO_T}$ac_cv_host" >&6
1352 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359 echo "$as_me:$LINENO: checking which template to use" >&5
1360 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1365 # Check whether --with-template or --without-template was given.
1366 if test "${with_template+set}" = set; then
1367 withval="$with_template"
1371 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1372 echo "$as_me: error: argument required for --with-template option" >&2;}
1373 { (exit 1); exit 1; }; }
1376 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378 { (exit 1); exit 1; }; }
1383 list) echo; ls "$srcdir/src/template"; exit;;
1384 *) if test -f "$srcdir/src/template/$with_template" ; then
1387 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1388 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1389 { (exit 1); exit 1; }; }
1398 # --with-template not given
1401 aix*) template=aix ;;
1402 beos*) template=beos ;;
1403 bsdi*) template=bsdi ;;
1404 cygwin*) template=win ;;
1405 darwin*) template=darwin ;;
1406 dgux*) template=dgux ;;
1407 freebsd*) template=freebsd ;;
1408 hpux*) template=hpux ;;
1409 irix*) template=irix5 ;;
1410 linux*) template=linux ;;
1411 netbsd*) template=netbsd ;;
1412 nextstep*) template=nextstep ;;
1413 openbsd*) template=openbsd ;;
1414 osf*) template=osf ;;
1415 qnx*) template=qnx4 ;;
1416 sco*) template=sco ;;
1417 solaris*) template=solaris ;;
1418 sunos*) template=sunos4 ;;
1420 case $host_vendor in
1421 univel) template=univel ;;
1423 sysv4*) template=svr4 ;;
1424 sysv5*) template=unixware ;;
1425 ultrix*) template=ultrix4 ;;
1428 if test x"$template" = x"" ; then
1429 { { echo "$as_me:$LINENO: error:
1430 *******************************************************************
1431 PostgreSQL has apparently not been ported to your platform yet.
1432 To try a manual configuration, look into the src/template directory
1433 for a similar platform and use the '--with-template=' option.
1435 Please also contact <pgsql-ports@postgresql.org> to see about
1436 rectifying this. Include the above 'checking host system type...'
1438 *******************************************************************
1440 echo "$as_me: error:
1441 *******************************************************************
1442 PostgreSQL has apparently not been ported to your platform yet.
1443 To try a manual configuration, look into the src/template directory
1444 for a similar platform and use the '--with-template=' option.
1446 Please also contact <pgsql-ports@postgresql.org> to see about
1447 rectifying this. Include the above 'checking host system type...'
1449 *******************************************************************
1451 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $template" >&5
1459 echo "${ECHO_T}$template" >&6
1464 # Pick right test-and-set (TAS) code. Most platforms have inline
1465 # assembler code in src/include/storage/s_lock.h, so we just use
1466 # a dummy file here.
1468 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1469 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1470 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1471 *) need_tas=no; tas_file=dummy.s ;;
1473 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1476 if test "$need_tas" = yes ; then
1484 ## Command line options
1489 # Add non-standard directories to the include path
1494 # Check whether --with-includes or --without-includes was given.
1495 if test "${with_includes+set}" = set; then
1496 withval="$with_includes"
1500 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1501 echo "$as_me: error: argument required for --with-includes option" >&2;}
1502 { (exit 1); exit 1; }; }
1505 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507 { (exit 1); exit 1; }; }
1519 # Add non-standard directories to the library search path
1524 # Check whether --with-libraries or --without-libraries was given.
1525 if test "${with_libraries+set}" = set; then
1526 withval="$with_libraries"
1530 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1531 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1532 { (exit 1); exit 1; }; }
1535 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537 { (exit 1); exit 1; }; }
1540 LIBRARY_DIRS=$withval
1550 # Check whether --with-libs or --without-libs was given.
1551 if test "${with_libs+set}" = set; then
1552 withval="$with_libs"
1556 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1557 echo "$as_me: error: argument required for --with-libs option" >&2;}
1558 { (exit 1); exit 1; }; }
1561 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563 { (exit 1); exit 1; }; }
1566 LIBRARY_DIRS=$withval
1575 # Character set recode (--enable-recode)
1577 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1578 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1581 # Check whether --enable-recode or --disable-recode was given.
1582 if test "${enable_recode+set}" = set; then
1583 enableval="$enable_recode"
1588 cat >>confdefs.h <<\_ACEOF
1589 #define CYR_RECODE 1
1597 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1598 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1599 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $enable_recode" >&5
1609 echo "${ECHO_T}$enable_recode" >&6
1616 echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1617 echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1621 # Check whether --enable-multibyte or --disable-multibyte was given.
1622 if test "${enable_multibyte+set}" = set; then
1623 enableval="$enable_multibyte"
1633 enable_multibyte=yes
1636 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)
1637 MULTIBYTE=$enableval;;
1639 { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1640 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1641 UNICODE, MULE_INTERNAL,
1642 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1643 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1644 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1645 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1646 Or do not specify an argument to the option to use the default." >&5
1647 echo "$as_me: error: argument to --enable-multibyte must be one of:
1648 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1649 UNICODE, MULE_INTERNAL,
1650 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1651 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1652 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1653 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1654 Or do not specify an argument to the option to use the default." >&2;}
1655 { (exit 1); exit 1; }; };;
1666 if test "$enable_multibyte" = yes; then
1669 cat >>confdefs.h <<\_ACEOF
1673 echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1674 echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1687 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1688 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1691 # Check whether --enable-nls or --disable-nls was given.
1692 if test "${enable_nls+set}" = set; then
1693 enableval="$enable_nls"
1704 WANTED_LANGUAGES=$enableval
1713 if test "$enable_nls" = yes; then
1715 cat >>confdefs.h <<\_ACEOF
1716 #define ENABLE_NLS 1
1721 echo "$as_me:$LINENO: result: $enable_nls" >&5
1722 echo "${ECHO_T}$enable_nls" >&6
1727 # Default port number (--with-pgport), default 5432
1729 echo "$as_me:$LINENO: checking for default port number" >&5
1730 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1734 # Check whether --with-pgport or --without-pgport was given.
1735 if test "${with_pgport+set}" = set; then
1736 withval="$with_pgport"
1740 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1741 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1742 { (exit 1); exit 1; }; }
1745 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1746 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1747 { (exit 1); exit 1; }; }
1750 default_port=$withval
1758 echo "$as_me:$LINENO: result: $default_port" >&5
1759 echo "${ECHO_T}$default_port" >&6
1760 # Need both of these because some places want an integer and some a string
1762 cat >>confdefs.h <<_ACEOF
1763 #define DEF_PGPORT ${default_port}
1767 cat >>confdefs.h <<_ACEOF
1768 #define DEF_PGPORT_STR "${default_port}"
1774 # Maximum number of allowed connections (--with-maxbackends), default 32
1776 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1777 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1781 # Check whether --with-maxbackends or --without-maxbackends was given.
1782 if test "${with_maxbackends+set}" = set; then
1783 withval="$with_maxbackends"
1787 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1788 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1789 { (exit 1); exit 1; }; }
1792 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1793 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1794 { (exit 1); exit 1; }; }
1805 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1806 echo "${ECHO_T}$with_maxbackends" >&6
1808 cat >>confdefs.h <<_ACEOF
1809 #define DEF_MAXBACKENDS $with_maxbackends
1815 # Option to disable shared libraries
1819 # Check whether --enable-shared or --disable-shared was given.
1820 if test "${enable_shared+set}" = set; then
1821 enableval="$enable_shared"
1831 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1832 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1833 { (exit 1); exit 1; }; }
1845 # '-rpath'-like feature can be disabled
1849 # Check whether --enable-rpath or --disable-rpath was given.
1850 if test "${enable_rpath+set}" = set; then
1851 enableval="$enable_rpath"
1861 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1862 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1863 { (exit 1); exit 1; }; }
1876 # --enable-debug adds -g to compiler flags
1880 # Check whether --enable-debug or --disable-debug was given.
1881 if test "${enable_debug+set}" = set; then
1882 enableval="$enable_debug"
1892 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1893 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1894 { (exit 1); exit 1; }; }
1909 # For historical reasons you can also use --with-CC to specify the C compiler
1910 # to use, although the standard way to do this is to set the CC environment
1915 # Check whether --with-CC or --without-CC was given.
1916 if test "${with_CC+set}" = set; then
1921 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1922 echo "$as_me: error: argument required for --with-CC option" >&2;}
1923 { (exit 1); exit 1; }; }
1926 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1927 echo "$as_me: error: argument required for --with-CC option" >&2;}
1928 { (exit 1); exit 1; }; }
1939 aix) pgac_cc_list="gcc xlc";;
1940 irix) pgac_cc_list="cc";; # no gcc
1941 *) pgac_cc_list="gcc cc";;
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950 for ac_prog in $pgac_cc_list
1952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test -n "$CC"; then
1980 echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1987 test -n "$CC" && break
1990 if test -z "$CC"; then
1992 for ac_prog in $pgac_cc_list
1994 # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_CC="$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$ac_ct_CC" && break
2036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2037 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2038 { (exit 1); exit 1; }; }
2040 # Provide some information about the compiler.
2041 echo "$as_me:$LINENO:" \
2042 "checking for C compiler version" >&5
2043 ac_compiler=`set X $ac_compile; echo $2`
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2045 (eval $ac_compiler --version </dev/null >&5) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2050 (eval $ac_compiler -v </dev/null >&5) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2055 (eval $ac_compiler -V </dev/null >&5) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }
2060 cat >conftest.$ac_ext <<_ACEOF
2061 #line $LINENO "configure"
2062 #include "confdefs.h"
2064 #ifdef F77_DUMMY_MAIN
2068 int F77_DUMMY_MAIN() { return 1; }
2078 ac_clean_files_save=$ac_clean_files
2079 ac_clean_files="$ac_clean_files a.out a.exe"
2080 # Try to create an executable without -o first, disregard a.out.
2081 # It will help us diagnose broken compilers, and finding out an intuition
2083 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2084 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2085 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2087 (eval $ac_link_default) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # Find the output, starting from the most likely. This scheme is
2092 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2095 # Be careful to initialize this variable, since it used to be cached.
2096 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2098 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2099 ls a.out conftest 2>/dev/null;
2100 ls a.* conftest.* 2>/dev/null`; do
2102 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2103 a.out ) # We found the default executable, but exeext='' is most
2106 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2114 echo "$as_me: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2117 echo "$as_me: error: C compiler cannot create executables" >&2;}
2118 { (exit 77); exit 77; }; }
2121 ac_exeext=$ac_cv_exeext
2122 echo "$as_me:$LINENO: result: $ac_file" >&5
2123 echo "${ECHO_T}$ac_file" >&6
2125 # Check the compiler produces executables we can run. If not, either
2126 # the compiler is broken, or we cross compile.
2127 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2128 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2129 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2130 # If not cross compiling, check that we can run a simple program.
2131 if test "$cross_compiling" != yes; then
2132 if { ac_try='./$ac_file'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2140 if test "$cross_compiling" = maybe; then
2143 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2144 If you meant to cross compile, use \`--host'." >&5
2145 echo "$as_me: error: cannot run C compiled programs.
2146 If you meant to cross compile, use \`--host'." >&2;}
2147 { (exit 1); exit 1; }; }
2151 echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6
2154 rm -f a.out a.exe conftest$ac_cv_exeext
2155 ac_clean_files=$ac_clean_files_save
2156 # Check the compiler produces executables we can run. If not, either
2157 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2161 echo "${ECHO_T}$cross_compiling" >&6
2163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2166 (eval $ac_link) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2172 # work properly (i.e., refer to `conftest.exe'), while it won't with
2174 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2176 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2185 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2186 { (exit 1); exit 1; }; }
2189 rm -f conftest$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2193 rm -f conftest.$ac_ext
2194 EXEEXT=$ac_cv_exeext
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 #include "confdefs.h"
2205 #ifdef F77_DUMMY_MAIN
2209 int F77_DUMMY_MAIN() { return 1; }
2219 rm -f conftest.o conftest.obj
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; then
2225 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2233 echo "$as_me: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2236 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2242 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6
2244 OBJEXT=$ac_cv_objext
2246 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2255 #ifdef F77_DUMMY_MAIN
2259 int F77_DUMMY_MAIN() { return 1; }
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2286 echo "$as_me: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2290 rm -f conftest.$ac_objext conftest.$ac_ext
2291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2294 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2295 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2296 GCC=`test $ac_compiler_gnu = yes && echo yes`
2297 ac_test_CFLAGS=${CFLAGS+set}
2298 ac_save_CFLAGS=$CFLAGS
2300 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2301 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_g+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2307 #include "confdefs.h"
2309 #ifdef F77_DUMMY_MAIN
2313 int F77_DUMMY_MAIN() { return 1; }
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2337 echo "$as_me: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2341 rm -f conftest.$ac_objext conftest.$ac_ext
2343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2345 if test "$ac_test_CFLAGS" = set; then
2346 CFLAGS=$ac_save_CFLAGS
2347 elif test $ac_cv_prog_cc_g = yes; then
2348 if test "$GCC" = yes; then
2354 if test "$GCC" = yes; then
2360 # Some people use a C++ compiler to compile C. Since we use `exit',
2361 # in C++ we need to declare it. In case someone uses the same compiler
2362 # for both compiling C and C++ we need to have the C++ compiler decide
2363 # the declaration of exit, since it's the most demanding environment.
2364 cat >conftest.$ac_ext <<_ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2381 for ac_declaration in \
2383 '#include <stdlib.h>' \
2384 'extern "C" void std::exit (int) throw (); using std::exit;' \
2385 'extern "C" void std::exit (int); using std::exit;' \
2386 'extern "C" void exit (int) throw ();' \
2387 'extern "C" void exit (int);' \
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2395 #ifdef F77_DUMMY_MAIN
2399 int F77_DUMMY_MAIN() { return 1; }
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2428 cat >conftest.$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2432 #ifdef F77_DUMMY_MAIN
2436 int F77_DUMMY_MAIN() { return 1; }
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -s conftest.$ac_objext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2460 echo "$as_me: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 rm -f conftest.$ac_objext conftest.$ac_ext
2466 if test -n "$ac_declaration"; then
2467 echo '#ifdef __cplusplus' >>confdefs.h
2468 echo $ac_declaration >>confdefs.h
2469 echo '#endif' >>confdefs.h
2473 echo "$as_me: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2476 rm -f conftest.$ac_objext conftest.$ac_ext
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484 . "$srcdir/src/template/$template" || exit
2486 if test "$ac_env_CFLAGS_set" = set; then
2487 CFLAGS=$ac_env_CFLAGS_value
2489 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2492 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2493 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2494 # Check if the compiler still works with the template settings
2495 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2496 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2502 #ifdef F77_DUMMY_MAIN
2506 int F77_DUMMY_MAIN() { return 1; }
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest$ac_exeext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 echo "$as_me:$LINENO: result: yes" >&5
2529 echo "${ECHO_T}yes" >&6
2531 echo "$as_me: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6
2535 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2536 echo "$as_me: error: cannot proceed" >&2;}
2537 { (exit 1); exit 1; }; }
2539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2546 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2547 # On Suns, sometimes $CPP names a directory.
2548 if test -n "$CPP" && test -d "$CPP"; then
2551 if test -z "$CPP"; then
2552 if test "${ac_cv_prog_CPP+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 # Double quotes because CPP needs to be expanded
2556 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2559 for ac_c_preproc_warn_flag in '' yes
2561 # Use a header file that comes with gcc, so configuring glibc
2562 # with a fresh cross-compiler works.
2563 # On the NeXT, cc -E runs the code through the compiler's parser,
2564 # not just through cpp. "Syntax error" is here to catch this case.
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 #include "confdefs.h"
2571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2574 egrep -v '^ *\+' conftest.er1 >conftest.err
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } >/dev/null; then
2579 if test -s conftest.err; then
2580 ac_cpp_err=$ac_c_preproc_warn_flag
2587 if test -z "$ac_cpp_err"; then
2590 echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 # Broken: fails on valid input.
2595 rm -f conftest.err conftest.$ac_ext
2597 # OK, works on sane cases. Now check whether non-existent headers
2598 # can be detected and how.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2601 #include "confdefs.h"
2602 #include <ac_nonexistent.h>
2604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2607 egrep -v '^ *\+' conftest.er1 >conftest.err
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } >/dev/null; then
2612 if test -s conftest.err; then
2613 ac_cpp_err=$ac_c_preproc_warn_flag
2620 if test -z "$ac_cpp_err"; then
2621 # Broken: success on invalid input.
2624 echo "$as_me: failed program was:" >&5
2625 cat conftest.$ac_ext >&5
2626 # Passes both tests.
2630 rm -f conftest.err conftest.$ac_ext
2633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634 rm -f conftest.err conftest.$ac_ext
2635 if $ac_preproc_ok; then
2647 echo "$as_me:$LINENO: result: $CPP" >&5
2648 echo "${ECHO_T}$CPP" >&6
2650 for ac_c_preproc_warn_flag in '' yes
2652 # Use a header file that comes with gcc, so configuring glibc
2653 # with a fresh cross-compiler works.
2654 # On the NeXT, cc -E runs the code through the compiler's parser,
2655 # not just through cpp. "Syntax error" is here to catch this case.
2656 cat >conftest.$ac_ext <<_ACEOF
2657 #line $LINENO "configure"
2658 #include "confdefs.h"
2662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665 egrep -v '^ *\+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } >/dev/null; then
2670 if test -s conftest.err; then
2671 ac_cpp_err=$ac_c_preproc_warn_flag
2678 if test -z "$ac_cpp_err"; then
2681 echo "$as_me: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 # Broken: fails on valid input.
2686 rm -f conftest.err conftest.$ac_ext
2688 # OK, works on sane cases. Now check whether non-existent headers
2689 # can be detected and how.
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 #include "confdefs.h"
2693 #include <ac_nonexistent.h>
2695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2698 egrep -v '^ *\+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } >/dev/null; then
2703 if test -s conftest.err; then
2704 ac_cpp_err=$ac_c_preproc_warn_flag
2711 if test -z "$ac_cpp_err"; then
2712 # Broken: success on invalid input.
2715 echo "$as_me: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 # Passes both tests.
2721 rm -f conftest.err conftest.$ac_ext
2724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2725 rm -f conftest.err conftest.$ac_ext
2726 if $ac_preproc_ok; then
2729 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2730 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2731 { (exit 1); exit 1; }; }
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 # Create compiler version string
2743 if test x"$GCC" = x"yes" ; then
2744 cc_string="GCC `${CC} --version | sed q`"
2749 cat >>confdefs.h <<_ACEOF
2750 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2756 # Automatic dependency tracking
2760 # Check whether --enable-depend or --disable-depend was given.
2761 if test "${enable_depend+set}" = set; then
2762 enableval="$enable_depend"
2772 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2773 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2774 { (exit 1); exit 1; }; }
2787 # Enable assert checks
2791 # Check whether --enable-cassert or --disable-cassert was given.
2792 if test "${enable_cassert+set}" = set; then
2793 enableval="$enable_cassert"
2798 cat >>confdefs.h <<\_ACEOF
2799 #define USE_ASSERT_CHECKING 1
2807 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2808 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2809 { (exit 1); exit 1; }; }
2821 # Include directories
2825 # SRCH_INC comes from the template file
2826 for dir in $with_includes $SRCH_INC; do
2827 if test -d "$dir"; then
2828 INCLUDES="$INCLUDES -I$dir"
2830 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2831 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2839 # Library directories
2843 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2844 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2845 if test -d "$dir"; then
2846 LIBDIRS="$LIBDIRS -L$dir"
2848 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2849 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2858 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2859 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2863 # Check whether --with-tcl or --without-tcl was given.
2864 if test "${with_tcl+set}" = set; then
2875 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2876 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2877 { (exit 1); exit 1; }; }
2886 echo "$as_me:$LINENO: result: $with_tcl" >&5
2887 echo "${ECHO_T}$with_tcl" >&6
2890 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2891 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2892 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2893 if test "$with_tcl" = yes; then
2897 # Check whether --with-tk or --without-tk was given.
2898 if test "${with_tk+set}" = set; then
2909 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2910 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2911 { (exit 1); exit 1; }; }
2923 echo "$as_me:$LINENO: result: $with_tk" >&5
2924 echo "${ECHO_T}$with_tk" >&6
2928 # We see if the path to the Tcl/Tk configuration scripts is specified.
2929 # This will override the use of tclsh to find the paths to search.
2934 # Check whether --with-tclconfig or --without-tclconfig was given.
2935 if test "${with_tclconfig+set}" = set; then
2936 withval="$with_tclconfig"
2940 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2941 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2942 { (exit 1); exit 1; }; }
2945 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2946 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2947 { (exit 1); exit 1; }; }
2957 # We see if the path to the Tk configuration scripts is specified.
2958 # This will override the use of tclsh to find the paths to search.
2963 # Check whether --with-tkconfig or --without-tkconfig was given.
2964 if test "${with_tkconfig+set}" = set; then
2965 withval="$with_tkconfig"
2969 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2970 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2971 { (exit 1); exit 1; }; }
2974 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2975 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2976 { (exit 1); exit 1; }; }
2987 # Optionally build Perl modules (Pg.pm and PL/Perl)
2989 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2990 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2994 # Check whether --with-perl or --without-perl was given.
2995 if test "${with_perl+set}" = set; then
2996 withval="$with_perl"
3006 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3007 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3008 { (exit 1); exit 1; }; }
3017 echo "$as_me:$LINENO: result: $with_perl" >&5
3018 echo "${ECHO_T}$with_perl" >&6
3022 # Optionally build Python interface module
3024 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3025 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3029 # Check whether --with-python or --without-python was given.
3030 if test "${with_python+set}" = set; then
3031 withval="$with_python"
3041 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3042 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3043 { (exit 1); exit 1; }; }
3052 echo "$as_me:$LINENO: result: $with_python" >&5
3053 echo "${ECHO_T}$with_python" >&6
3057 # Optionally build the Java/JDBC tools
3059 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3060 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3064 # Check whether --with-java or --without-java was given.
3065 if test "${with_java+set}" = set; then
3066 withval="$with_java"
3070 echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6
3073 for ac_prog in jakarta-ant ant ant.sh ant.bat
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3079 if test "${ac_cv_path_ANT+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$ANT"; then
3107 echo "$as_me:$LINENO: result: $ANT" >&5
3108 echo "${ECHO_T}$ANT" >&6
3110 echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3114 test -n "$ANT" && break
3118 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3119 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3120 if test "${pgac_cv_prog_ant_works+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat > conftest.java << EOF
3125 public class conftest {
3126 int testmethod(int a, int b) {
3132 cat > conftest.xml << EOF
3133 <project name="conftest" default="conftest">
3134 <target name="conftest">
3135 <javac srcdir="." includes="conftest.java">
3141 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3142 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3143 (eval $pgac_cmd) 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }
3148 if test $? = 0 && test -f ./conftest.class ; then
3149 pgac_cv_prog_ant_works=yes
3151 echo "configure: failed java program was:" >&5
3152 cat conftest.java >&5
3153 echo "configure: failed build file was:" >&5
3154 cat conftest.xml >&5
3155 pgac_cv_prog_ant_works=no
3158 rm -f conftest* core core.* *.core
3161 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3162 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3164 if test "$pgac_cv_prog_ant_works" != yes; then
3165 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3166 echo "$as_me: error: ant does not work" >&2;}
3167 { (exit 1); exit 1; }; }
3171 if test -z "$ANT"; then
3172 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3173 echo "$as_me: error: Ant is required to build Java components" >&2;}
3174 { (exit 1); exit 1; }; }
3178 echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3182 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3183 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3184 { (exit 1); exit 1; }; }
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3200 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3201 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3205 # Check whether --with-krb4 or --without-krb4 was given.
3206 if test "${with_krb4+set}" = set; then
3207 withval="$with_krb4"
3211 krb4_prefix=/usr/athena
3218 krb4_prefix=$withval
3227 if test "$with_krb4" = yes; then
3229 echo "$as_me:$LINENO: result: yes" >&5
3230 echo "${ECHO_T}yes" >&6
3232 cat >>confdefs.h <<\_ACEOF
3237 if test -d "$krb4_prefix/include"; then
3238 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3240 if test -d "$krb4_prefix/lib"; then
3241 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3244 krb_srvtab="/etc/srvtab"
3247 echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3258 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3259 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3263 # Check whether --with-krb5 or --without-krb5 was given.
3264 if test "${with_krb5+set}" = set; then
3265 withval="$with_krb5"
3269 krb5_prefix=/usr/athena
3276 krb5_prefix=$withval
3285 if test "$with_krb5" = yes; then
3287 echo "$as_me:$LINENO: result: yes" >&5
3288 echo "${ECHO_T}yes" >&6
3290 cat >>confdefs.h <<\_ACEOF
3295 if test -d "$krb5_prefix/include"; then
3296 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3298 if test -d "$krb5_prefix/lib"; then
3299 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3302 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3313 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3314 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3315 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3316 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3317 { (exit 1); exit 1; }; }
3324 # Kerberos configuration parameters
3329 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3330 if test "${with_krb_srvnam+set}" = set; then
3331 withval="$with_krb_srvnam"
3335 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3336 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3337 { (exit 1); exit 1; }; }
3340 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342 { (exit 1); exit 1; }; }
3350 with_krb_srvnam="postgres"
3354 cat >>confdefs.h <<_ACEOF
3355 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3363 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3364 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3368 # Check whether --with-pam or --without-pam was given.
3369 if test "${with_pam+set}" = set; then
3375 cat >>confdefs.h <<\_ACEOF
3384 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3385 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3386 { (exit 1); exit 1; }; }
3395 echo "$as_me:$LINENO: result: $with_pam" >&5
3396 echo "${ECHO_T}$with_pam" >&6
3406 # Check whether --with-openssl or --without-openssl was given.
3407 if test "${with_openssl+set}" = set; then
3408 withval="$with_openssl"
3412 openssl_prefix=/usr/local/ssl
3419 openssl_prefix=$withval
3428 if test "$with_openssl" = yes; then
3430 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3431 echo "${ECHO_T}building with OpenSSL support" >&6
3433 cat >>confdefs.h <<\_ACEOF
3438 if test -d "${openssl_prefix}/include" ; then
3439 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3441 if test -d "${openssl_prefix}/lib" ; then
3442 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3457 # Check whether --with-readline or --without-readline was given.
3458 if test "${with_readline+set}" = set; then
3459 withval="$with_readline"
3469 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3470 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3471 { (exit 1); exit 1; }; }
3487 # Check whether --with-zlib or --without-zlib was given.
3488 if test "${with_zlib+set}" = set; then
3489 withval="$with_zlib"
3499 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3500 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3501 { (exit 1); exit 1; }; }
3514 # Optionally enable the building of the ODBC driver
3518 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3519 enable_odbc=$with_odbc
3522 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3523 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3526 # Check whether --enable-odbc or --disable-odbc was given.
3527 if test "${enable_odbc+set}" = set; then
3528 enableval="$enable_odbc"
3538 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3539 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3540 { (exit 1); exit 1; }; }
3552 # Check whether --with-unixodbc or --without-unixodbc was given.
3553 if test "${with_unixodbc+set}" = set; then
3554 withval="$with_unixodbc"
3564 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3565 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3566 { (exit 1); exit 1; }; }
3578 # Check whether --with-iodbc or --without-iodbc was given.
3579 if test "${with_iodbc+set}" = set; then
3580 withval="$with_iodbc"
3590 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3591 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3592 { (exit 1); exit 1; }; }
3601 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3602 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3603 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3604 { (exit 1); exit 1; }; }
3606 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3609 case $enable_odbc:$with_unixodbc:$with_iodbc in
3610 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3611 echo "${ECHO_T}yes (stand-alone)" >&6;;
3612 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3613 echo "${ECHO_T}yes (unixODBC)" >&6
3615 cat >>confdefs.h <<\_ACEOF
3616 #define WITH_UNIXODBC 1
3620 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3621 echo "${ECHO_T}yes (iODBC)" >&6
3623 cat >>confdefs.h <<\_ACEOF
3624 #define WITH_IODBC 1
3628 no:*) echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6;;
3636 # Allow for overriding the default location of the odbcinst.ini
3637 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3641 # Check whether --with-odbcinst or --without-odbcinst was given.
3642 if test "${with_odbcinst+set}" = set; then
3643 withval="$with_odbcinst"
3647 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3648 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3649 { (exit 1); exit 1; }; }
3652 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3653 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3654 { (exit 1); exit 1; }; }
3657 odbcinst_ini_dir=$withval
3662 odbcinst_ini_dir="\${sysconfdir}"
3669 # Assume system is ELF if it predefines __ELF__ as 1,
3670 # otherwise believe host_os based default.
3672 freebsd1*|freebsd2*) elf=no;;
3673 freebsd3*|freebsd4*) elf=yes;;
3677 cat >conftest.$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 #include "confdefs.h"
3685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686 egrep "yes" >/dev/null 2>&1; then
3689 if test "X$elf" = "Xyes" ; then
3702 # Optionally build C++ code (i.e., libpq++)
3704 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3705 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3709 # Check whether --with-CXX or --without-CXX was given.
3710 if test "${with_CXX+set}" = set; then
3731 if test "$with_CXX" = yes; then
3733 echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3736 # If the user has specified CXXFLAGS in the environment, leave it
3737 # alone, else use a default.
3740 ac_cpp='$CXXCPP $CPPFLAGS'
3741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3744 if test -n "$ac_tool_prefix"; then
3745 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_CXX+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$CXX"; then
3755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 if test -n "$CXX"; then
3775 echo "$as_me:$LINENO: result: $CXX" >&5
3776 echo "${ECHO_T}$CXX" >&6
3778 echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3782 test -n "$CXX" && break
3785 if test -z "$CXX"; then
3787 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$ac_ct_CXX"; then
3797 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_CXX="$ac_prog"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3816 if test -n "$ac_ct_CXX"; then
3817 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3818 echo "${ECHO_T}$ac_ct_CXX" >&6
3820 echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3824 test -n "$ac_ct_CXX" && break
3826 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3832 # Provide some information about the compiler.
3833 echo "$as_me:$LINENO:" \
3834 "checking for C++ compiler version" >&5
3835 ac_compiler=`set X $ac_compile; echo $2`
3836 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3837 (eval $ac_compiler --version </dev/null >&5) 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }
3841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3842 (eval $ac_compiler -v </dev/null >&5) 2>&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3847 (eval $ac_compiler -V </dev/null >&5) 2>&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3852 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3853 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3854 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3858 #line $LINENO "configure"
3859 #include "confdefs.h"
3861 #ifdef F77_DUMMY_MAIN
3865 int F77_DUMMY_MAIN() { return 1; }
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -s conftest.$ac_objext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3892 echo "$as_me: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3896 rm -f conftest.$ac_objext conftest.$ac_ext
3897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3900 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3901 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3902 GXX=`test $ac_compiler_gnu = yes && echo yes`
3903 ac_test_CXXFLAGS=${CXXFLAGS+set}
3904 ac_save_CXXFLAGS=$CXXFLAGS
3906 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3907 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3908 if test "${ac_cv_prog_cxx_g+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3915 #ifdef F77_DUMMY_MAIN
3919 int F77_DUMMY_MAIN() { return 1; }
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_cv_prog_cxx_g=yes
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3947 rm -f conftest.$ac_objext conftest.$ac_ext
3949 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3950 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3951 if test "$ac_test_CXXFLAGS" = set; then
3952 CXXFLAGS=$ac_save_CXXFLAGS
3953 elif test $ac_cv_prog_cxx_g = yes; then
3954 if test "$GXX" = yes; then
3960 if test "$GXX" = yes; then
3966 for ac_declaration in \
3968 '#include <stdlib.h>' \
3969 'extern "C" void std::exit (int) throw (); using std::exit;' \
3970 'extern "C" void std::exit (int); using std::exit;' \
3971 'extern "C" void exit (int) throw ();' \
3972 'extern "C" void exit (int);' \
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line $LINENO "configure"
3977 #include "confdefs.h"
3980 #ifdef F77_DUMMY_MAIN
3984 int F77_DUMMY_MAIN() { return 1; }
3994 rm -f conftest.$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4008 echo "$as_me: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4012 rm -f conftest.$ac_objext conftest.$ac_ext
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4015 #include "confdefs.h"
4017 #ifdef F77_DUMMY_MAIN
4021 int F77_DUMMY_MAIN() { return 1; }
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4045 echo "$as_me: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4048 rm -f conftest.$ac_objext conftest.$ac_ext
4051 if test -n "$ac_declaration"; then
4052 echo '#ifdef __cplusplus' >>confdefs.h
4053 echo $ac_declaration >>confdefs.h
4054 echo '#endif' >>confdefs.h
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 if test "$ac_env_CXXFLAGS" != set; then
4064 if test "$GXX" = yes; then
4068 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
4069 unixware) CXXFLAGS='-O' ;;
4074 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4075 CXXFLAGS="$CXXFLAGS -g"
4077 { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4078 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4081 ac_cpp='$CXXCPP $CPPFLAGS'
4082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4085 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4086 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4087 if test -z "$CXXCPP"; then
4088 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # Double quotes because CXXCPP needs to be expanded
4092 for CXXCPP in "$CXX -E" "/lib/cpp"
4095 for ac_cxx_preproc_warn_flag in '' yes
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat >conftest.$ac_ext <<_ACEOF
4102 #line $LINENO "configure"
4103 #include "confdefs.h"
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4110 egrep -v '^ *\+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_cxx_preproc_warn_flag
4123 if test -z "$ac_cpp_err"; then
4126 echo "$as_me: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 # Broken: fails on valid input.
4131 rm -f conftest.err conftest.$ac_ext
4133 # OK, works on sane cases. Now check whether non-existent headers
4134 # can be detected and how.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 #line $LINENO "configure"
4137 #include "confdefs.h"
4138 #include <ac_nonexistent.h>
4140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4143 egrep -v '^ *\+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } >/dev/null; then
4148 if test -s conftest.err; then
4149 ac_cpp_err=$ac_cxx_preproc_warn_flag
4156 if test -z "$ac_cpp_err"; then
4157 # Broken: success on invalid input.
4160 echo "$as_me: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 # Passes both tests.
4166 rm -f conftest.err conftest.$ac_ext
4169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170 rm -f conftest.err conftest.$ac_ext
4171 if $ac_preproc_ok; then
4176 ac_cv_prog_CXXCPP=$CXXCPP
4179 CXXCPP=$ac_cv_prog_CXXCPP
4181 ac_cv_prog_CXXCPP=$CXXCPP
4183 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4184 echo "${ECHO_T}$CXXCPP" >&6
4186 for ac_cxx_preproc_warn_flag in '' yes
4188 # Use a header file that comes with gcc, so configuring glibc
4189 # with a fresh cross-compiler works.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4201 egrep -v '^ *\+' conftest.er1 >conftest.err
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } >/dev/null; then
4206 if test -s conftest.err; then
4207 ac_cpp_err=$ac_cxx_preproc_warn_flag
4214 if test -z "$ac_cpp_err"; then
4217 echo "$as_me: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4219 # Broken: fails on valid input.
4222 rm -f conftest.err conftest.$ac_ext
4224 # OK, works on sane cases. Now check whether non-existent headers
4225 # can be detected and how.
4226 cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4228 #include "confdefs.h"
4229 #include <ac_nonexistent.h>
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4234 egrep -v '^ *\+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null; then
4239 if test -s conftest.err; then
4240 ac_cpp_err=$ac_cxx_preproc_warn_flag
4247 if test -z "$ac_cpp_err"; then
4248 # Broken: success on invalid input.
4251 echo "$as_me: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4253 # Passes both tests.
4257 rm -f conftest.err conftest.$ac_ext
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then
4265 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4266 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4267 { (exit 1); exit 1; }; }
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4285 CPPFLAGS="$CPPFLAGS $INCLUDES"
4286 LDFLAGS="$LDFLAGS $LIBDIRS"
4288 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4289 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4290 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4291 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4294 for ac_prog in gawk mawk nawk awk
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300 if test "${ac_cv_prog_AWK+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$AWK"; then
4304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_AWK="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 if test -n "$AWK"; then
4324 echo "$as_me:$LINENO: result: $AWK" >&5
4325 echo "${ECHO_T}$AWK" >&6
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4331 test -n "$AWK" && break
4334 echo "$as_me:$LINENO: checking for flex" >&5
4335 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4336 if test "${pgac_cv_path_flex+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 # Let the user override the test
4340 if test -n "$FLEX"; then
4341 pgac_cv_path_flex=$FLEX
4345 for pgac_dir in $PATH; do
4346 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4349 for pgac_prog in flex lex; do
4350 pgac_candidate="$pgac_dir/$pgac_prog"
4351 if test -f "$pgac_candidate" \
4352 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4354 echo '%%' > conftest.l
4355 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4356 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4357 pgac_broken_flex=$pgac_candidate
4361 pgac_cv_path_flex=$pgac_candidate
4369 : ${pgac_cv_path_flex=no}
4373 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4374 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4375 if test x"$pgac_cv_path_flex" = x"no"; then
4376 if test -n "$pgac_broken_flex"; then
4377 { echo "$as_me:$LINENO: WARNING:
4378 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4379 *** should get version 2.5.4 or later." >&5
4380 echo "$as_me: WARNING:
4381 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4382 *** should get version 2.5.4 or later." >&2;}
4385 { echo "$as_me:$LINENO: WARNING:
4386 *** Without Flex you will not be able to build PostgreSQL from CVS or
4387 *** change any of the scanner definition files. You can obtain Flex from
4388 *** a GNU mirror site. (If you are using the official distribution of
4389 *** PostgreSQL then you do not need to worry about this because the Flex
4390 *** output is pre-generated.)" >&5
4391 echo "$as_me: 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.)" >&2;}
4399 if test x"$pgac_cv_path_flex" = x"no"; then
4402 FLEX=$pgac_cv_path_flex
4408 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4409 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4411 if test "$LN_S" = "ln -s"; then
4412 echo "$as_me:$LINENO: result: yes" >&5
4413 echo "${ECHO_T}yes" >&6
4415 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4416 echo "${ECHO_T}no, using $LN_S" >&6
4420 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4421 if test "${with_gnu_ld+set}" = set; then
4422 withval="$with_gnu_ld"
4423 test "$withval" = no || with_gnu_ld=yes
4428 if test "$GCC" = yes; then
4429 # Check if gcc -print-prog-name=ld gives a path.
4430 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4431 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4434 # gcc leaves a trailing carriage return which upsets mingw
4435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4440 # Accept absolute paths.
4441 [\\/]* | [A-Za-z]:[\\/]*)
4442 re_direlt='/[^/][^/]*/\.\./'
4443 # Canonicalize the path of ld
4444 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4445 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4446 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4448 test -z "$LD" && LD="$ac_prog"
4451 # If it fails, then pretend we aren't using GCC.
4455 # If it is relative, then search for the first ld in PATH.
4459 elif test "$with_gnu_ld" = yes; then
4460 echo "$as_me:$LINENO: checking for GNU ld" >&5
4461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4463 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4466 if test "${ac_cv_path_LD+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -z "$LD"; then
4470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4471 for ac_dir in $PATH; do
4472 test -z "$ac_dir" && ac_dir=.
4473 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4474 ac_cv_path_LD="$ac_dir/$ac_prog"
4475 # Check to see if the program is GNU ld. I'd rather use --version,
4476 # but apparently some GNU ld's only accept -v.
4477 # Break only if it was the GNU/non-GNU ld that we prefer.
4478 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4479 test "$with_gnu_ld" != no && break
4481 test "$with_gnu_ld" != yes && break
4487 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4492 if test -n "$LD"; then
4493 echo "$as_me:$LINENO: result: $LD" >&5
4494 echo "${ECHO_T}$LD" >&6
4496 echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4499 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4500 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4501 { (exit 1); exit 1; }; }
4502 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4503 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4504 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4508 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4509 ac_cv_prog_gnu_ld=yes
4511 ac_cv_prog_gnu_ld=no
4514 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4515 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4516 with_gnu_ld=$ac_cv_prog_gnu_ld
4521 case $host_os in sysv5*)
4522 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4523 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4524 if test "${pgac_cv_prog_ld_R+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4531 #include "confdefs.h"
4533 #ifdef F77_DUMMY_MAIN
4537 int F77_DUMMY_MAIN() { return 1; }
4547 rm -f conftest.$ac_objext conftest$ac_exeext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -s conftest$ac_exeext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 pgac_cv_prog_ld_R=yes
4561 echo "$as_me: failed program was:" >&5
4562 cat conftest.$ac_ext >&5
4563 pgac_cv_prog_ld_R=no
4565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4566 LDFLAGS=$pgac_save_LDFLAGS
4569 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4570 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4571 ld_R_works=$pgac_cv_prog_ld_R
4574 if test -n "$ac_tool_prefix"; then
4575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4577 echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_prog_RANLIB+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test -n "$RANLIB"; then
4583 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 RANLIB=$ac_cv_prog_RANLIB
4602 if test -n "$RANLIB"; then
4603 echo "$as_me:$LINENO: result: $RANLIB" >&5
4604 echo "${ECHO_T}$RANLIB" >&6
4606 echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4611 if test -z "$ac_cv_prog_RANLIB"; then
4612 ac_ct_RANLIB=$RANLIB
4613 # Extract the first word of "ranlib", so it can be a program name with args.
4614 set dummy ranlib; ac_word=$2
4615 echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if test -n "$ac_ct_RANLIB"; then
4621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_ac_ct_RANLIB="ranlib"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4641 if test -n "$ac_ct_RANLIB"; then
4642 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4643 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4645 echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4649 RANLIB=$ac_ct_RANLIB
4651 RANLIB="$ac_cv_prog_RANLIB"
4654 for ac_prog in lorder
4656 # Extract the first word of "$ac_prog", so it can be a program name with args.
4657 set dummy $ac_prog; ac_word=$2
4658 echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4660 if test "${ac_cv_prog_LORDER+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$LORDER"; then
4664 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_LORDER="$ac_prog"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 LORDER=$ac_cv_prog_LORDER
4683 if test -n "$LORDER"; then
4684 echo "$as_me:$LINENO: result: $LORDER" >&5
4685 echo "${ECHO_T}$LORDER" >&6
4687 echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4691 test -n "$LORDER" && break
4694 # Extract the first word of "tar", so it can be a program name with args.
4695 set dummy tar; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_TAR+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 if test -n "$TAR"; then
4726 echo "$as_me:$LINENO: result: $TAR" >&5
4727 echo "${ECHO_T}$TAR" >&6
4729 echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}strip; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_prog_STRIP+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 if test -n "$STRIP"; then
4743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 STRIP=$ac_cv_prog_STRIP
4762 if test -n "$STRIP"; then
4763 echo "$as_me:$LINENO: result: $STRIP" >&5
4764 echo "${ECHO_T}$STRIP" >&6
4766 echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4771 if test -z "$ac_cv_prog_STRIP"; then
4773 # Extract the first word of "strip", so it can be a program name with args.
4774 set dummy strip; ac_word=$2
4775 echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test -n "$ac_ct_STRIP"; then
4781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790 ac_cv_prog_ac_ct_STRIP="strip"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4801 if test -n "$ac_ct_STRIP"; then
4802 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4803 echo "${ECHO_T}$ac_ct_STRIP" >&6
4805 echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4811 STRIP="$ac_cv_prog_STRIP"
4815 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4816 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4817 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4818 STRIP_STATIC_LIB="$STRIP -x"
4819 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4820 echo "$as_me:$LINENO: result: yes" >&5
4821 echo "${ECHO_T}yes" >&6
4825 echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4832 for ac_prog in 'bison -y'
4834 # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_YACC+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 if test -n "$YACC"; then
4842 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_YACC="$ac_prog"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 YACC=$ac_cv_prog_YACC
4861 if test -n "$YACC"; then
4862 echo "$as_me:$LINENO: result: $YACC" >&5
4863 echo "${ECHO_T}$YACC" >&6
4865 echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6
4869 test -n "$YACC" && break
4872 if test -z "$YACC"; then
4873 { echo "$as_me:$LINENO: WARNING:
4874 *** Without Bison you will not be able to build PostgreSQL from CVS or
4875 *** change any of the parser definition files. You can obtain Bison from
4876 *** a GNU mirror site. (If you are using the official distribution of
4877 *** PostgreSQL then you do not need to worry about this because the Bison
4878 *** output is pre-generated.) To use a different yacc program (possible,
4879 *** but not recommended), set the environment variable YACC before running
4880 *** 'configure'." >&5
4881 echo "$as_me: WARNING:
4882 *** Without Bison you will not be able to build PostgreSQL from CVS or
4883 *** change any of the parser definition files. You can obtain Bison from
4884 *** a GNU mirror site. (If you are using the official distribution of
4885 *** PostgreSQL then you do not need to worry about this because the Bison
4886 *** output is pre-generated.) To use a different yacc program (possible,
4887 *** but not recommended), set the environment variable YACC before running
4888 *** 'configure'." >&2;}
4892 if test "$with_tk" = yes; then
4893 # Extract the first word of "wish", so it can be a program name with args.
4894 set dummy wish; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_path_WISH+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 WISH=$ac_cv_path_WISH
4924 if test -n "$WISH"; then
4925 echo "$as_me:$LINENO: result: $WISH" >&5
4926 echo "${ECHO_T}$WISH" >&6
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4932 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4933 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4934 { (exit 1); exit 1; }; }
4937 # Extract the first word of "perl", so it can be a program name with args.
4938 set dummy perl; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_PERL+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 PERL=$ac_cv_path_PERL
4968 if test -n "$PERL"; then
4969 echo "$as_me:$LINENO: result: $PERL" >&5
4970 echo "${ECHO_T}$PERL" >&6
4972 echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4976 if test "$with_perl" = yes; then
4979 echo "$as_me:$LINENO: checking Perl installation directories" >&5
4980 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
4982 # These are the ones we currently need. Others can be added easily.
4983 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4984 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4985 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4988 echo "$as_me:$LINENO: result: done" >&5
4989 echo "${ECHO_T}done" >&6
4993 if test "$with_python" = yes; then
4994 # Extract the first word of "python", so it can be a program name with args.
4995 set dummy python; ac_word=$2
4996 echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998 if test "${ac_cv_path_PYTHON+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 PYTHON=$ac_cv_path_PYTHON
5025 if test -n "$PYTHON"; then
5026 echo "$as_me:$LINENO: result: $PYTHON" >&5
5027 echo "${ECHO_T}$PYTHON" >&6
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5033 if test x"$PYTHON" = x""; then
5034 { { echo "$as_me:$LINENO: error: Python not found" >&5
5035 echo "$as_me: error: Python not found" >&2;}
5036 { (exit 1); exit 1; }; }
5040 echo "$as_me:$LINENO: checking Python installation directories" >&5
5041 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5042 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5043 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5044 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5045 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5046 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5047 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5048 python_includespec="-I${python_prefix}/include/python${python_version}"
5049 if test "$python_prefix" != "$python_execprefix"; then
5050 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5053 # This should be enough of a message.
5054 if test "$python_prefix" != "$python_execprefix"; then
5055 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5056 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5058 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5059 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5066 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5067 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5069 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5070 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5071 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5072 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5073 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5075 pgac_tab=" " # tab character
5076 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"`
5078 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5079 echo "${ECHO_T}${python_libspec}" >&6
5089 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5092 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5093 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5094 if test "${ac_cv_lib_bsd_main+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_check_lib_save_LIBS=$LIBS
5099 cat >conftest.$ac_ext <<_ACEOF
5100 #line $LINENO "configure"
5101 #include "confdefs.h"
5104 #ifdef F77_DUMMY_MAIN
5108 int F77_DUMMY_MAIN() { return 1; }
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120 (eval $ac_link) 2>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_lib_bsd_main=yes
5132 echo "$as_me: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5134 ac_cv_lib_bsd_main=no
5136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5137 LIBS=$ac_check_lib_save_LIBS
5139 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5140 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5141 if test $ac_cv_lib_bsd_main = yes; then
5142 cat >>confdefs.h <<_ACEOF
5143 #define HAVE_LIBBSD 1
5152 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5153 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5154 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_check_lib_save_LIBS=$LIBS
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 #include "confdefs.h"
5163 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5169 char setproctitle ();
5170 #ifdef F77_DUMMY_MAIN
5174 int F77_DUMMY_MAIN() { return 1; }
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_lib_util_setproctitle=yes
5198 echo "$as_me: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 ac_cv_lib_util_setproctitle=no
5202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5205 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5206 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5207 if test $ac_cv_lib_util_setproctitle = yes; then
5208 cat >>confdefs.h <<_ACEOF
5209 #define HAVE_LIBUTIL 1
5217 echo "$as_me:$LINENO: checking for main in -lm" >&5
5218 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5219 if test "${ac_cv_lib_m_main+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 ac_check_lib_save_LIBS=$LIBS
5224 cat >conftest.$ac_ext <<_ACEOF
5225 #line $LINENO "configure"
5226 #include "confdefs.h"
5229 #ifdef F77_DUMMY_MAIN
5233 int F77_DUMMY_MAIN() { return 1; }
5243 rm -f conftest.$ac_objext conftest$ac_exeext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245 (eval $ac_link) 2>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -s conftest$ac_exeext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 ac_cv_lib_m_main=yes
5257 echo "$as_me: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5264 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5265 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5266 if test $ac_cv_lib_m_main = yes; then
5267 cat >>confdefs.h <<_ACEOF
5276 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5277 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5278 if test "${ac_cv_lib_dl_main+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_check_lib_save_LIBS=$LIBS
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line $LINENO "configure"
5285 #include "confdefs.h"
5288 #ifdef F77_DUMMY_MAIN
5292 int F77_DUMMY_MAIN() { return 1; }
5302 rm -f conftest.$ac_objext conftest$ac_exeext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5304 (eval $ac_link) 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -s conftest$ac_exeext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 ac_cv_lib_dl_main=yes
5316 echo "$as_me: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5318 ac_cv_lib_dl_main=no
5320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5321 LIBS=$ac_check_lib_save_LIBS
5323 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5324 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5325 if test $ac_cv_lib_dl_main = yes; then
5326 cat >>confdefs.h <<_ACEOF
5327 #define HAVE_LIBDL 1
5335 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5336 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5337 if test "${ac_cv_lib_socket_main+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_check_lib_save_LIBS=$LIBS
5341 LIBS="-lsocket $LIBS"
5342 cat >conftest.$ac_ext <<_ACEOF
5343 #line $LINENO "configure"
5344 #include "confdefs.h"
5347 #ifdef F77_DUMMY_MAIN
5351 int F77_DUMMY_MAIN() { return 1; }
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -s conftest$ac_exeext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_cv_lib_socket_main=yes
5375 echo "$as_me: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 ac_cv_lib_socket_main=no
5379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_check_lib_save_LIBS
5382 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5383 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5384 if test $ac_cv_lib_socket_main = yes; then
5385 cat >>confdefs.h <<_ACEOF
5386 #define HAVE_LIBSOCKET 1
5389 LIBS="-lsocket $LIBS"
5394 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5395 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5396 if test "${ac_cv_lib_nsl_main+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 ac_check_lib_save_LIBS=$LIBS
5401 cat >conftest.$ac_ext <<_ACEOF
5402 #line $LINENO "configure"
5403 #include "confdefs.h"
5406 #ifdef F77_DUMMY_MAIN
5410 int F77_DUMMY_MAIN() { return 1; }
5420 rm -f conftest.$ac_objext conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -s conftest$ac_exeext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_lib_nsl_main=yes
5434 echo "$as_me: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 ac_cv_lib_nsl_main=no
5438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5439 LIBS=$ac_check_lib_save_LIBS
5441 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5442 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5443 if test $ac_cv_lib_nsl_main = yes; then
5444 cat >>confdefs.h <<_ACEOF
5445 #define HAVE_LIBNSL 1
5453 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5454 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5455 if test "${ac_cv_lib_ipc_main+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 ac_check_lib_save_LIBS=$LIBS
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 #include "confdefs.h"
5465 #ifdef F77_DUMMY_MAIN
5469 int F77_DUMMY_MAIN() { return 1; }
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481 (eval $ac_link) 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_lib_ipc_main=yes
5493 echo "$as_me: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 ac_cv_lib_ipc_main=no
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5498 LIBS=$ac_check_lib_save_LIBS
5500 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5501 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5502 if test $ac_cv_lib_ipc_main = yes; then
5503 cat >>confdefs.h <<_ACEOF
5504 #define HAVE_LIBIPC 1
5512 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5513 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5514 if test "${ac_cv_lib_IPC_main+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 ac_check_lib_save_LIBS=$LIBS
5519 cat >conftest.$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5521 #include "confdefs.h"
5524 #ifdef F77_DUMMY_MAIN
5528 int F77_DUMMY_MAIN() { return 1; }
5538 rm -f conftest.$ac_objext conftest$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -s conftest$ac_exeext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_lib_IPC_main=yes
5552 echo "$as_me: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5554 ac_cv_lib_IPC_main=no
5556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5557 LIBS=$ac_check_lib_save_LIBS
5559 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5560 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5561 if test $ac_cv_lib_IPC_main = yes; then
5562 cat >>confdefs.h <<_ACEOF
5563 #define HAVE_LIBIPC 1
5571 echo "$as_me:$LINENO: checking for main in -llc" >&5
5572 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5573 if test "${ac_cv_lib_lc_main+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 ac_check_lib_save_LIBS=$LIBS
5578 cat >conftest.$ac_ext <<_ACEOF
5579 #line $LINENO "configure"
5580 #include "confdefs.h"
5583 #ifdef F77_DUMMY_MAIN
5587 int F77_DUMMY_MAIN() { return 1; }
5597 rm -f conftest.$ac_objext conftest$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599 (eval $ac_link) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -s conftest$ac_exeext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_lib_lc_main=yes
5611 echo "$as_me: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5613 ac_cv_lib_lc_main=no
5615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5619 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5620 if test $ac_cv_lib_lc_main = yes; then
5621 cat >>confdefs.h <<_ACEOF
5622 #define HAVE_LIBLC 1
5630 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5631 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5632 if test "${ac_cv_lib_dld_main+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_check_lib_save_LIBS=$LIBS
5637 cat >conftest.$ac_ext <<_ACEOF
5638 #line $LINENO "configure"
5639 #include "confdefs.h"
5642 #ifdef F77_DUMMY_MAIN
5646 int F77_DUMMY_MAIN() { return 1; }
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_lib_dld_main=yes
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 ac_cv_lib_dld_main=no
5674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_check_lib_save_LIBS
5677 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5678 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5679 if test $ac_cv_lib_dld_main = yes; then
5680 cat >>confdefs.h <<_ACEOF
5681 #define HAVE_LIBDLD 1
5689 echo "$as_me:$LINENO: checking for main in -lld" >&5
5690 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5691 if test "${ac_cv_lib_ld_main+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 ac_check_lib_save_LIBS=$LIBS
5696 cat >conftest.$ac_ext <<_ACEOF
5697 #line $LINENO "configure"
5698 #include "confdefs.h"
5701 #ifdef F77_DUMMY_MAIN
5705 int F77_DUMMY_MAIN() { return 1; }
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_lib_ld_main=yes
5729 echo "$as_me: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5731 ac_cv_lib_ld_main=no
5733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_check_lib_save_LIBS
5736 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5737 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5738 if test $ac_cv_lib_ld_main = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740 #define HAVE_LIBLD 1
5748 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5749 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5750 if test "${ac_cv_lib_compat_main+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 ac_check_lib_save_LIBS=$LIBS
5754 LIBS="-lcompat $LIBS"
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 #include "confdefs.h"
5760 #ifdef F77_DUMMY_MAIN
5764 int F77_DUMMY_MAIN() { return 1; }
5774 rm -f conftest.$ac_objext conftest$ac_exeext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 (eval $ac_link) 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -s conftest$ac_exeext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_cv_lib_compat_main=yes
5788 echo "$as_me: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5790 ac_cv_lib_compat_main=no
5792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5793 LIBS=$ac_check_lib_save_LIBS
5795 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5796 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5797 if test $ac_cv_lib_compat_main = yes; then
5798 cat >>confdefs.h <<_ACEOF
5799 #define HAVE_LIBCOMPAT 1
5802 LIBS="-lcompat $LIBS"
5807 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5808 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5809 if test "${ac_cv_lib_BSD_main+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 ac_check_lib_save_LIBS=$LIBS
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 #include "confdefs.h"
5819 #ifdef F77_DUMMY_MAIN
5823 int F77_DUMMY_MAIN() { return 1; }
5833 rm -f conftest.$ac_objext conftest$ac_exeext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5835 (eval $ac_link) 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -s conftest$ac_exeext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 ac_cv_lib_BSD_main=yes
5847 echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 ac_cv_lib_BSD_main=no
5851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5852 LIBS=$ac_check_lib_save_LIBS
5854 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5855 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5856 if test $ac_cv_lib_BSD_main = yes; then
5857 cat >>confdefs.h <<_ACEOF
5858 #define HAVE_LIBBSD 1
5866 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5867 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5868 if test "${ac_cv_lib_gen_main+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 ac_check_lib_save_LIBS=$LIBS
5873 cat >conftest.$ac_ext <<_ACEOF
5874 #line $LINENO "configure"
5875 #include "confdefs.h"
5878 #ifdef F77_DUMMY_MAIN
5882 int F77_DUMMY_MAIN() { return 1; }
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894 (eval $ac_link) 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -s conftest$ac_exeext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_lib_gen_main=yes
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_lib_gen_main=no
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5914 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5915 if test $ac_cv_lib_gen_main = yes; then
5916 cat >>confdefs.h <<_ACEOF
5917 #define HAVE_LIBGEN 1
5925 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5926 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5927 if test "${ac_cv_lib_PW_main+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_check_lib_save_LIBS=$LIBS
5932 cat >conftest.$ac_ext <<_ACEOF
5933 #line $LINENO "configure"
5934 #include "confdefs.h"
5937 #ifdef F77_DUMMY_MAIN
5941 int F77_DUMMY_MAIN() { return 1; }
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -s conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_lib_PW_main=yes
5965 echo "$as_me: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 ac_cv_lib_PW_main=no
5969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5970 LIBS=$ac_check_lib_save_LIBS
5972 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5973 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5974 if test $ac_cv_lib_PW_main = yes; then
5975 cat >>confdefs.h <<_ACEOF
5976 #define HAVE_LIBPW 1
5984 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5985 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5986 if test "${ac_cv_lib_resolv_main+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 ac_check_lib_save_LIBS=$LIBS
5990 LIBS="-lresolv $LIBS"
5991 cat >conftest.$ac_ext <<_ACEOF
5992 #line $LINENO "configure"
5993 #include "confdefs.h"
5996 #ifdef F77_DUMMY_MAIN
6000 int F77_DUMMY_MAIN() { return 1; }
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -s conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_lib_resolv_main=yes
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 ac_cv_lib_resolv_main=no
6028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6029 LIBS=$ac_check_lib_save_LIBS
6031 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6032 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6033 if test $ac_cv_lib_resolv_main = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define HAVE_LIBRESOLV 1
6038 LIBS="-lresolv $LIBS"
6044 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6045 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6046 if test "${ac_cv_lib_unix_main+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 ac_check_lib_save_LIBS=$LIBS
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6053 #include "confdefs.h"
6056 #ifdef F77_DUMMY_MAIN
6060 int F77_DUMMY_MAIN() { return 1; }
6070 rm -f conftest.$ac_objext conftest$ac_exeext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6072 (eval $ac_link) 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_cv_lib_unix_main=yes
6084 echo "$as_me: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 ac_cv_lib_unix_main=no
6088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6089 LIBS=$ac_check_lib_save_LIBS
6091 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6092 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6093 if test $ac_cv_lib_unix_main = yes; then
6094 cat >>confdefs.h <<_ACEOF
6095 #define HAVE_LIBUNIX 1
6102 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6103 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6104 if test "${ac_cv_search_crypt+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 ac_func_search_save_LIBS=$LIBS
6108 ac_cv_search_crypt=no
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line $LINENO "configure"
6111 #include "confdefs.h"
6113 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6120 #ifdef F77_DUMMY_MAIN
6124 int F77_DUMMY_MAIN() { return 1; }
6134 rm -f conftest.$ac_objext conftest$ac_exeext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136 (eval $ac_link) 2>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -s conftest$ac_exeext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 ac_cv_search_crypt="none required"
6148 echo "$as_me: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6152 if test "$ac_cv_search_crypt" = no; then
6153 for ac_lib in crypt; do
6154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6155 cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 #include "confdefs.h"
6159 /* Override any gcc2 internal prototype to avoid an error. */
6163 /* We use char because int might match the return type of a gcc2
6164 builtin and then its argument prototype would still apply. */
6166 #ifdef F77_DUMMY_MAIN
6170 int F77_DUMMY_MAIN() { return 1; }
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 ac_cv_search_crypt="-l$ac_lib"
6195 echo "$as_me: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6201 LIBS=$ac_func_search_save_LIBS
6203 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6204 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6205 if test "$ac_cv_search_crypt" != no; then
6206 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6212 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6213 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6214 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 ac_check_lib_save_LIBS=$LIBS
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 #include "confdefs.h"
6223 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6229 char __inet_ntoa ();
6230 #ifdef F77_DUMMY_MAIN
6234 int F77_DUMMY_MAIN() { return 1; }
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246 (eval $ac_link) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -s conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_cv_lib_bind___inet_ntoa=yes
6258 echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 ac_cv_lib_bind___inet_ntoa=no
6262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6263 LIBS=$ac_check_lib_save_LIBS
6265 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6266 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6267 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define HAVE_LIBBIND 1
6277 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6278 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6279 if test "${ac_cv_search_fdatasync+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 ac_func_search_save_LIBS=$LIBS
6283 ac_cv_search_fdatasync=no
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6288 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6295 #ifdef F77_DUMMY_MAIN
6299 int F77_DUMMY_MAIN() { return 1; }
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_search_fdatasync="none required"
6323 echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6327 if test "$ac_cv_search_fdatasync" = no; then
6328 for ac_lib in rt posix4; do
6329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6330 cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 #include "confdefs.h"
6334 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6341 #ifdef F77_DUMMY_MAIN
6345 int F77_DUMMY_MAIN() { return 1; }
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -s conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_search_fdatasync="-l$ac_lib"
6370 echo "$as_me: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_func_search_save_LIBS
6378 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6379 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6380 if test "$ac_cv_search_fdatasync" != no; then
6381 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6386 if test "$with_readline" = yes; then
6388 echo "$as_me:$LINENO: checking for readline" >&5
6389 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6391 if test "${pgac_cv_check_readline+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 pgac_cv_check_readline=no
6395 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6396 for pgac_rllib in -lreadline -ledit ; do
6397 pgac_save_LIBS=$LIBS
6398 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6403 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6410 #ifdef F77_DUMMY_MAIN
6414 int F77_DUMMY_MAIN() { return 1; }
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -s conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6437 # NetBSD and OpenBSD have a broken linker that does not
6438 # recognize dependent libraries
6439 case $host_os in netbsd* | openbsd* )
6442 *) pgac_lib=" -lcurses" ;;
6446 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6450 echo "$as_me: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$pgac_save_LIBS
6457 LIBS=$pgac_save_LIBS
6461 if test "$pgac_cv_check_readline" != no ; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define HAVE_LIBREADLINE 1
6467 LIBS="$pgac_cv_check_readline $LIBS"
6468 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6469 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6471 echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6
6474 if test x"$pgac_cv_check_readline" = x"no"; then
6475 { { echo "$as_me:$LINENO: error: readline library not found
6476 Use --without-readline to disable readline support." >&5
6477 echo "$as_me: error: readline library not found
6478 Use --without-readline to disable readline support." >&2;}
6479 { (exit 1); exit 1; }; }
6483 if test "$with_zlib" = yes; then
6485 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6486 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6487 if test "${ac_cv_lib_z_inflate+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 ac_check_lib_save_LIBS=$LIBS
6492 cat >conftest.$ac_ext <<_ACEOF
6493 #line $LINENO "configure"
6494 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6503 #ifdef F77_DUMMY_MAIN
6507 int F77_DUMMY_MAIN() { return 1; }
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_cv_lib_z_inflate=yes
6531 echo "$as_me: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6533 ac_cv_lib_z_inflate=no
6535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6538 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6539 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6540 if test $ac_cv_lib_z_inflate = yes; then
6541 cat >>confdefs.h <<_ACEOF
6548 { { echo "$as_me:$LINENO: error: zlib library not found
6549 Use --without-zlib to disable zlib support." >&5
6550 echo "$as_me: error: zlib library not found
6551 Use --without-zlib to disable zlib support." >&2;}
6552 { (exit 1); exit 1; }; }
6557 if test "$with_krb4" = yes ; then
6559 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6560 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6561 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 ac_check_lib_save_LIBS=$LIBS
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char des_encrypt ();
6577 #ifdef F77_DUMMY_MAIN
6581 int F77_DUMMY_MAIN() { return 1; }
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -s conftest$ac_exeext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 ac_cv_lib_des_des_encrypt=yes
6605 echo "$as_me: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 ac_cv_lib_des_des_encrypt=no
6609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6612 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6613 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6614 if test $ac_cv_lib_des_des_encrypt = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define HAVE_LIBDES 1
6622 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6623 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6624 { (exit 1); exit 1; }; }
6628 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6629 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6630 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_check_lib_save_LIBS=$LIBS
6635 cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 #include "confdefs.h"
6639 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6645 char krb_sendauth ();
6646 #ifdef F77_DUMMY_MAIN
6650 int F77_DUMMY_MAIN() { return 1; }
6660 rm -f conftest.$ac_objext conftest$ac_exeext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6662 (eval $ac_link) 2>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try='test -s conftest$ac_exeext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_cv_lib_krb_krb_sendauth=yes
6674 echo "$as_me: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 ac_cv_lib_krb_krb_sendauth=no
6678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6679 LIBS=$ac_check_lib_save_LIBS
6681 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6682 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6683 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6684 cat >>confdefs.h <<_ACEOF
6685 #define HAVE_LIBKRB 1
6691 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6692 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6693 { (exit 1); exit 1; }; }
6698 if test "$with_krb5" = yes ; then
6699 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6700 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6701 if test "${ac_cv_search_com_err+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_func_search_save_LIBS=$LIBS
6705 ac_cv_search_com_err=no
6706 cat >conftest.$ac_ext <<_ACEOF
6707 #line $LINENO "configure"
6708 #include "confdefs.h"
6710 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6717 #ifdef F77_DUMMY_MAIN
6721 int F77_DUMMY_MAIN() { return 1; }
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } &&
6737 { ac_try='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 ac_cv_search_com_err="none required"
6745 echo "$as_me: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 if test "$ac_cv_search_com_err" = no; then
6750 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6752 cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 #include "confdefs.h"
6756 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6763 #ifdef F77_DUMMY_MAIN
6767 int F77_DUMMY_MAIN() { return 1; }
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779 (eval $ac_link) 2>&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try='test -s conftest$ac_exeext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_search_com_err="-l$ac_lib"
6792 echo "$as_me: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6798 LIBS=$ac_func_search_save_LIBS
6800 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6801 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6802 if test "$ac_cv_search_com_err" != no; then
6803 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6806 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6807 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6808 { (exit 1); exit 1; }; }
6811 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6812 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6813 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_func_search_save_LIBS=$LIBS
6817 ac_cv_search_krb5_encrypt=no
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line $LINENO "configure"
6820 #include "confdefs.h"
6822 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6828 char krb5_encrypt ();
6829 #ifdef F77_DUMMY_MAIN
6833 int F77_DUMMY_MAIN() { return 1; }
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_cv_search_krb5_encrypt="none required"
6857 echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 if test "$ac_cv_search_krb5_encrypt" = no; then
6862 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6864 cat >conftest.$ac_ext <<_ACEOF
6865 #line $LINENO "configure"
6866 #include "confdefs.h"
6868 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874 char krb5_encrypt ();
6875 #ifdef F77_DUMMY_MAIN
6879 int F77_DUMMY_MAIN() { return 1; }
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891 (eval $ac_link) 2>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -s conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_search_krb5_encrypt="-l$ac_lib"
6904 echo "$as_me: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6910 LIBS=$ac_func_search_save_LIBS
6912 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6913 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6914 if test "$ac_cv_search_krb5_encrypt" != no; then
6915 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6918 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6919 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6920 { (exit 1); exit 1; }; }
6923 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6924 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6925 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_func_search_save_LIBS=$LIBS
6929 ac_cv_search_krb5_sendauth=no
6930 cat >conftest.$ac_ext <<_ACEOF
6931 #line $LINENO "configure"
6932 #include "confdefs.h"
6934 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6940 char krb5_sendauth ();
6941 #ifdef F77_DUMMY_MAIN
6945 int F77_DUMMY_MAIN() { return 1; }
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_search_krb5_sendauth="none required"
6969 echo "$as_me: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6973 if test "$ac_cv_search_krb5_sendauth" = no; then
6974 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6976 cat >conftest.$ac_ext <<_ACEOF
6977 #line $LINENO "configure"
6978 #include "confdefs.h"
6980 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986 char krb5_sendauth ();
6987 #ifdef F77_DUMMY_MAIN
6991 int F77_DUMMY_MAIN() { return 1; }
7001 rm -f conftest.$ac_objext conftest$ac_exeext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -s conftest$ac_exeext'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 ac_cv_search_krb5_sendauth="-l$ac_lib"
7016 echo "$as_me: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7022 LIBS=$ac_func_search_save_LIBS
7024 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7025 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7026 if test "$ac_cv_search_krb5_sendauth" != no; then
7027 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7030 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7031 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7032 { (exit 1); exit 1; }; }
7037 if test "$with_openssl" = yes ; then
7039 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7040 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7041 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_check_lib_save_LIBS=$LIBS
7045 LIBS="-lcrypto $LIBS"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056 char CRYPTO_new_ex_data ();
7057 #ifdef F77_DUMMY_MAIN
7061 int F77_DUMMY_MAIN() { return 1; }
7066 CRYPTO_new_ex_data ();
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_check_lib_save_LIBS
7092 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7093 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7094 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_LIBCRYPTO 1
7099 LIBS="-lcrypto $LIBS"
7102 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7103 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7104 { (exit 1); exit 1; }; }
7108 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7109 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7110 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 ac_check_lib_save_LIBS=$LIBS
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 #include "confdefs.h"
7119 /* Override any gcc2 internal prototype to avoid an error. */
7123 /* We use char because int might match the return type of a gcc2
7124 builtin and then its argument prototype would still apply. */
7125 char SSL_library_init ();
7126 #ifdef F77_DUMMY_MAIN
7130 int F77_DUMMY_MAIN() { return 1; }
7135 SSL_library_init ();
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142 (eval $ac_link) 2>&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
7146 { ac_try='test -s conftest$ac_exeext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 ac_cv_lib_ssl_SSL_library_init=yes
7154 echo "$as_me: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7156 ac_cv_lib_ssl_SSL_library_init=no
7158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7159 LIBS=$ac_check_lib_save_LIBS
7161 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7162 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7163 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7164 cat >>confdefs.h <<_ACEOF
7165 #define HAVE_LIBSSL 1
7171 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7172 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7173 { (exit 1); exit 1; }; }
7178 if test "$with_pam" = yes ; then
7180 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7181 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7182 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 ac_check_lib_save_LIBS=$LIBS
7187 cat >conftest.$ac_ext <<_ACEOF
7188 #line $LINENO "configure"
7189 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7198 #ifdef F77_DUMMY_MAIN
7202 int F77_DUMMY_MAIN() { return 1; }
7212 rm -f conftest.$ac_objext conftest$ac_exeext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214 (eval $ac_link) 2>&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -s conftest$ac_exeext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_cv_lib_pam_pam_start=yes
7226 echo "$as_me: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7228 ac_cv_lib_pam_pam_start=no
7230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7231 LIBS=$ac_check_lib_save_LIBS
7233 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7234 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7235 if test $ac_cv_lib_pam_pam_start = yes; then
7236 cat >>confdefs.h <<_ACEOF
7237 #define HAVE_LIBPAM 1
7243 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7244 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7245 { (exit 1); exit 1; }; }
7254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7256 if test "${ac_cv_header_stdc+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7260 #line $LINENO "configure"
7261 #include "confdefs.h"
7268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7271 egrep -v '^ *\+' conftest.er1 >conftest.err
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } >/dev/null; then
7276 if test -s conftest.err; then
7277 ac_cpp_err=$ac_c_preproc_warn_flag
7284 if test -z "$ac_cpp_err"; then
7285 ac_cv_header_stdc=yes
7287 echo "$as_me: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 ac_cv_header_stdc=no
7291 rm -f conftest.err conftest.$ac_ext
7293 if test $ac_cv_header_stdc = yes; then
7294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7295 cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7297 #include "confdefs.h"
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302 egrep "memchr" >/dev/null 2>&1; then
7305 ac_cv_header_stdc=no
7311 if test $ac_cv_header_stdc = yes; then
7312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7313 cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 #include "confdefs.h"
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320 egrep "free" >/dev/null 2>&1; then
7323 ac_cv_header_stdc=no
7329 if test $ac_cv_header_stdc = yes; then
7330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7331 if test "$cross_compiling" = yes; then
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7338 #if ((' ' & 0x0FF) == 0x020)
7339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7342 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7343 || ('j' <= (c) && (c) <= 'r') \
7344 || ('s' <= (c) && (c) <= 'z'))
7345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7353 for (i = 0; i < 256; i++)
7354 if (XOR (islower (i), ISLOWER (i))
7355 || toupper (i) != TOUPPER (i))
7360 rm -f conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7373 echo "$as_me: program exited with status $ac_status" >&5
7374 echo "$as_me: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7377 ac_cv_header_stdc=no
7379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7383 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7384 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7385 if test $ac_cv_header_stdc = yes; then
7387 cat >>confdefs.h <<\_ACEOF
7388 #define STDC_HEADERS 1
7393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7403 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7404 inttypes.h stdint.h unistd.h
7406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7407 echo "$as_me:$LINENO: checking for $ac_header" >&5
7408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7415 $ac_includes_default
7417 #include <$ac_header>
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 eval "$as_ac_Header=yes"
7433 echo "$as_me: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 eval "$as_ac_Header=no"
7437 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7442 cat >>confdefs.h <<_ACEOF
7443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7469 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
7471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7481 # Is the header compilable?
7482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7484 cat >conftest.$ac_ext <<_ACEOF
7485 #line $LINENO "configure"
7486 #include "confdefs.h"
7487 $ac_includes_default
7488 #include <$ac_header>
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_header_compiler=yes
7504 echo "$as_me: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 ac_header_compiler=no
7508 rm -f conftest.$ac_objext conftest.$ac_ext
7509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7510 echo "${ECHO_T}$ac_header_compiler" >&6
7512 # Is the header present?
7513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7515 cat >conftest.$ac_ext <<_ACEOF
7516 #line $LINENO "configure"
7517 #include "confdefs.h"
7518 #include <$ac_header>
7520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7523 egrep -v '^ *\+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } >/dev/null; then
7528 if test -s conftest.err; then
7529 ac_cpp_err=$ac_c_preproc_warn_flag
7536 if test -z "$ac_cpp_err"; then
7537 ac_header_preproc=yes
7539 echo "$as_me: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7541 ac_header_preproc=no
7543 rm -f conftest.err conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7545 echo "${ECHO_T}$ac_header_preproc" >&6
7547 # So? What about this header?
7548 case $ac_header_compiler:$ac_header_preproc in
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7562 echo "$as_me:$LINENO: checking for $ac_header" >&5
7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 eval "$as_ac_Header=$ac_header_preproc"
7569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7584 # netinet/in.h is included first.
7586 for ac_header in netinet/in.h
7588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590 echo "$as_me:$LINENO: checking for $ac_header" >&5
7591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7598 # Is the header compilable?
7599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7601 cat >conftest.$ac_ext <<_ACEOF
7602 #line $LINENO "configure"
7603 #include "confdefs.h"
7604 $ac_includes_default
7605 #include <$ac_header>
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_header_compiler=yes
7621 echo "$as_me: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7623 ac_header_compiler=no
7625 rm -f conftest.$ac_objext conftest.$ac_ext
7626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7627 echo "${ECHO_T}$ac_header_compiler" >&6
7629 # Is the header present?
7630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7633 #line $LINENO "configure"
7634 #include "confdefs.h"
7635 #include <$ac_header>
7637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7640 egrep -v '^ *\+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } >/dev/null; then
7645 if test -s conftest.err; then
7646 ac_cpp_err=$ac_c_preproc_warn_flag
7653 if test -z "$ac_cpp_err"; then
7654 ac_header_preproc=yes
7656 echo "$as_me: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 ac_header_preproc=no
7660 rm -f conftest.err conftest.$ac_ext
7661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7662 echo "${ECHO_T}$ac_header_preproc" >&6
7664 # So? What about this header?
7665 case $ac_header_compiler:$ac_header_preproc in
7667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7679 echo "$as_me:$LINENO: checking for $ac_header" >&5
7680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 eval "$as_ac_Header=$ac_header_preproc"
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7691 cat >>confdefs.h <<_ACEOF
7692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700 for ac_header in netinet/tcp.h
7702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7703 echo "$as_me:$LINENO: checking for $ac_header" >&5
7704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 #include "confdefs.h"
7711 $ac_includes_default
7712 #ifdef HAVE_NETINET_IN_H
7713 #include <netinet/in.h>
7717 #include <$ac_header>
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 eval "$as_ac_Header=yes"
7733 echo "$as_me: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 eval "$as_ac_Header=no"
7737 rm -f conftest.$ac_objext conftest.$ac_ext
7739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7742 cat >>confdefs.h <<_ACEOF
7743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7751 if test "$with_readline" = yes; then
7753 for ac_header in readline/readline.h
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757 echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 #include <$ac_header>
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_header_compiler=yes
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_header_compiler=no
7792 rm -f conftest.$ac_objext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7794 echo "${ECHO_T}$ac_header_compiler" >&6
7796 # Is the header present?
7797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 #include "confdefs.h"
7802 #include <$ac_header>
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807 egrep -v '^ *\+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } >/dev/null; then
7812 if test -s conftest.err; then
7813 ac_cpp_err=$ac_c_preproc_warn_flag
7820 if test -z "$ac_cpp_err"; then
7821 ac_header_preproc=yes
7823 echo "$as_me: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 ac_header_preproc=no
7827 rm -f conftest.err conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6
7831 # So? What about this header?
7832 case $ac_header_compiler:$ac_header_preproc in
7834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 eval "$as_ac_Header=$ac_header_preproc"
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858 cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 for ac_header in readline.h
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868 echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887 (eval $ac_compile) 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_header_compiler=yes
7899 echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7918 egrep -v '^ *\+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } >/dev/null; then
7923 if test -s conftest.err; then
7924 ac_cpp_err=$ac_c_preproc_warn_flag
7931 if test -z "$ac_cpp_err"; then
7932 ac_header_preproc=yes
7934 echo "$as_me: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7936 ac_header_preproc=no
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7942 # So? What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 eval "$as_ac_Header=$ac_header_preproc"
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969 cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7974 { { echo "$as_me:$LINENO: error: readline header not found
7975 Use --without-readline to disable readline support." >&5
7976 echo "$as_me: error: readline header not found
7977 Use --without-readline to disable readline support." >&2;}
7978 { (exit 1); exit 1; }; }
7988 for ac_header in readline/history.h
7990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7992 echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8000 # Is the header compilable?
8001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line $LINENO "configure"
8005 #include "confdefs.h"
8006 $ac_includes_default
8007 #include <$ac_header>
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -s conftest.$ac_objext'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 ac_header_compiler=yes
8023 echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 ac_header_compiler=no
8027 rm -f conftest.$ac_objext conftest.$ac_ext
8028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8029 echo "${ECHO_T}$ac_header_compiler" >&6
8031 # Is the header present?
8032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8034 cat >conftest.$ac_ext <<_ACEOF
8035 #line $LINENO "configure"
8036 #include "confdefs.h"
8037 #include <$ac_header>
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8042 egrep -v '^ *\+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } >/dev/null; then
8047 if test -s conftest.err; then
8048 ac_cpp_err=$ac_c_preproc_warn_flag
8055 if test -z "$ac_cpp_err"; then
8056 ac_header_preproc=yes
8058 echo "$as_me: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8060 ac_header_preproc=no
8062 rm -f conftest.err conftest.$ac_ext
8063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8064 echo "${ECHO_T}$ac_header_preproc" >&6
8066 # So? What about this header?
8067 case $ac_header_compiler:$ac_header_preproc in
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 eval "$as_ac_Header=$ac_header_preproc"
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093 cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8099 for ac_header in history.h
8101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103 echo "$as_me:$LINENO: checking for $ac_header" >&5
8104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8111 # Is the header compilable?
8112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8115 #line $LINENO "configure"
8116 #include "confdefs.h"
8117 $ac_includes_default
8118 #include <$ac_header>
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_header_compiler=yes
8134 echo "$as_me: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 ac_header_compiler=no
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140 echo "${ECHO_T}$ac_header_compiler" >&6
8142 # Is the header present?
8143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8147 #include "confdefs.h"
8148 #include <$ac_header>
8150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8153 egrep -v '^ *\+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } >/dev/null; then
8158 if test -s conftest.err; then
8159 ac_cpp_err=$ac_c_preproc_warn_flag
8166 if test -z "$ac_cpp_err"; then
8167 ac_header_preproc=yes
8169 echo "$as_me: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 ac_header_preproc=no
8173 rm -f conftest.err conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8175 echo "${ECHO_T}$ac_header_preproc" >&6
8177 # So? What about this header?
8178 case $ac_header_compiler:$ac_header_preproc in
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8192 echo "$as_me:$LINENO: checking for $ac_header" >&5
8193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 eval "$as_ac_Header=$ac_header_preproc"
8199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8209 { { echo "$as_me:$LINENO: error: history header not found
8210 Use --without-readline to disable readline support." >&5
8211 echo "$as_me: error: history header not found
8212 Use --without-readline to disable readline support." >&2;}
8213 { (exit 1); exit 1; }; }
8224 if test "$with_zlib" = yes; then
8225 if test "${ac_cv_header_zlib_h+set}" = set; then
8226 echo "$as_me:$LINENO: checking for zlib.h" >&5
8227 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8228 if test "${ac_cv_header_zlib_h+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8232 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8234 # Is the header compilable?
8235 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8236 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8237 cat >conftest.$ac_ext <<_ACEOF
8238 #line $LINENO "configure"
8239 #include "confdefs.h"
8240 $ac_includes_default
8243 rm -f conftest.$ac_objext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245 (eval $ac_compile) 2>&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -s conftest.$ac_objext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_header_compiler=yes
8257 echo "$as_me: failed program was:" >&5
8258 cat conftest.$ac_ext >&5
8259 ac_header_compiler=no
8261 rm -f conftest.$ac_objext conftest.$ac_ext
8262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8263 echo "${ECHO_T}$ac_header_compiler" >&6
8265 # Is the header present?
8266 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8267 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8268 cat >conftest.$ac_ext <<_ACEOF
8269 #line $LINENO "configure"
8270 #include "confdefs.h"
8273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8276 egrep -v '^ *\+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } >/dev/null; then
8281 if test -s conftest.err; then
8282 ac_cpp_err=$ac_c_preproc_warn_flag
8289 if test -z "$ac_cpp_err"; then
8290 ac_header_preproc=yes
8292 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8294 ac_header_preproc=no
8296 rm -f conftest.err conftest.$ac_ext
8297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8298 echo "${ECHO_T}$ac_header_preproc" >&6
8300 # So? What about this header?
8301 case $ac_header_compiler:$ac_header_preproc in
8303 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8304 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8305 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8306 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8308 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8309 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8311 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8312 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8313 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8315 echo "$as_me:$LINENO: checking for zlib.h" >&5
8316 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8317 if test "${ac_cv_header_zlib_h+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 ac_cv_header_zlib_h=$ac_header_preproc
8322 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8323 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8326 if test $ac_cv_header_zlib_h = yes; then
8329 { { echo "$as_me:$LINENO: error: zlib header not found
8330 Use --without-zlib to disable zlib support." >&5
8331 echo "$as_me: error: zlib header not found
8332 Use --without-zlib to disable zlib support." >&2;}
8333 { (exit 1); exit 1; }; }
8339 if test "$with_krb4" = yes ; then
8340 if test "${ac_cv_header_krb_h+set}" = set; then
8341 echo "$as_me:$LINENO: checking for krb.h" >&5
8342 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_krb_h+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8349 # Is the header compilable?
8350 echo "$as_me:$LINENO: checking krb.h usability" >&5
8351 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest.$ac_objext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_header_compiler=yes
8372 echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking krb.h presence" >&5
8382 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8391 egrep -v '^ *\+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } >/dev/null; then
8396 if test -s conftest.err; then
8397 ac_cpp_err=$ac_c_preproc_warn_flag
8404 if test -z "$ac_cpp_err"; then
8405 ac_header_preproc=yes
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 ac_header_preproc=no
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8415 # So? What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8418 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8423 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8430 echo "$as_me:$LINENO: checking for krb.h" >&5
8431 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_krb_h+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_cv_header_krb_h=$ac_header_preproc
8437 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8441 if test $ac_cv_header_krb_h = yes; then
8444 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8445 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8446 { (exit 1); exit 1; }; }
8452 if test "$with_krb5" = yes ; then
8453 if test "${ac_cv_header_krb5_h+set}" = set; then
8454 echo "$as_me:$LINENO: checking for krb5.h" >&5
8455 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_krb5_h+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8462 # Is the header compilable?
8463 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8464 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 #include "confdefs.h"
8468 $ac_includes_default
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_header_compiler=no
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8491 echo "${ECHO_T}$ac_header_compiler" >&6
8493 # Is the header present?
8494 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8495 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8504 egrep -v '^ *\+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } >/dev/null; then
8509 if test -s conftest.err; then
8510 ac_cpp_err=$ac_c_preproc_warn_flag
8517 if test -z "$ac_cpp_err"; then
8518 ac_header_preproc=yes
8520 echo "$as_me: failed program was:" >&5
8521 cat conftest.$ac_ext >&5
8522 ac_header_preproc=no
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526 echo "${ECHO_T}$ac_header_preproc" >&6
8528 # So? What about this header?
8529 case $ac_header_compiler:$ac_header_preproc in
8531 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8536 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8543 echo "$as_me:$LINENO: checking for krb5.h" >&5
8544 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_krb5_h+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_cv_header_krb5_h=$ac_header_preproc
8550 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8554 if test $ac_cv_header_krb5_h = yes; then
8557 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8558 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8559 { (exit 1); exit 1; }; }
8563 if test "${ac_cv_header_com_err_h+set}" = set; then
8564 echo "$as_me:$LINENO: checking for com_err.h" >&5
8565 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8566 if test "${ac_cv_header_com_err_h+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8570 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8572 # Is the header compilable?
8573 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8574 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 #include "confdefs.h"
8578 $ac_includes_default
8579 #include <com_err.h>
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_header_compiler=yes
8595 echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_header_compiler=no
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6
8603 # Is the header present?
8604 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8605 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609 #include <com_err.h>
8611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8614 egrep -v '^ *\+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } >/dev/null; then
8619 if test -s conftest.err; then
8620 ac_cpp_err=$ac_c_preproc_warn_flag
8627 if test -z "$ac_cpp_err"; then
8628 ac_header_preproc=yes
8630 echo "$as_me: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 ac_header_preproc=no
8634 rm -f conftest.err conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636 echo "${ECHO_T}$ac_header_preproc" >&6
8638 # So? What about this header?
8639 case $ac_header_compiler:$ac_header_preproc in
8641 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8642 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8646 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8647 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8649 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8653 echo "$as_me:$LINENO: checking for com_err.h" >&5
8654 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8655 if test "${ac_cv_header_com_err_h+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_cv_header_com_err_h=$ac_header_preproc
8660 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8661 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8664 if test $ac_cv_header_com_err_h = yes; then
8667 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8668 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8669 { (exit 1); exit 1; }; }
8675 if test "$with_openssl" = yes ; then
8676 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8677 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8678 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8679 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8683 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8685 # Is the header compilable?
8686 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8687 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8688 cat >conftest.$ac_ext <<_ACEOF
8689 #line $LINENO "configure"
8690 #include "confdefs.h"
8691 $ac_includes_default
8692 #include <openssl/ssl.h>
8694 rm -f conftest.$ac_objext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8696 (eval $ac_compile) 2>&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_header_compiler=yes
8708 echo "$as_me: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 ac_header_compiler=no
8712 rm -f conftest.$ac_objext conftest.$ac_ext
8713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714 echo "${ECHO_T}$ac_header_compiler" >&6
8716 # Is the header present?
8717 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8718 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8719 cat >conftest.$ac_ext <<_ACEOF
8720 #line $LINENO "configure"
8721 #include "confdefs.h"
8722 #include <openssl/ssl.h>
8724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8727 egrep -v '^ *\+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } >/dev/null; then
8732 if test -s conftest.err; then
8733 ac_cpp_err=$ac_c_preproc_warn_flag
8740 if test -z "$ac_cpp_err"; then
8741 ac_header_preproc=yes
8743 echo "$as_me: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8745 ac_header_preproc=no
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8751 # So? What about this header?
8752 case $ac_header_compiler:$ac_header_preproc in
8754 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8757 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8759 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8760 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8762 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8764 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8766 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8767 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8768 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8773 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8774 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8777 if test $ac_cv_header_openssl_ssl_h = yes; then
8780 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8781 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8782 { (exit 1); exit 1; }; }
8786 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8787 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8788 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8789 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8793 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8795 # Is the header compilable?
8796 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8797 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 #include "confdefs.h"
8801 $ac_includes_default
8802 #include <openssl/err.h>
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806 (eval $ac_compile) 2>&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -s conftest.$ac_objext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_header_compiler=yes
8818 echo "$as_me: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8820 ac_header_compiler=no
8822 rm -f conftest.$ac_objext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8824 echo "${ECHO_T}$ac_header_compiler" >&6
8826 # Is the header present?
8827 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8828 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line $LINENO "configure"
8831 #include "confdefs.h"
8832 #include <openssl/err.h>
8834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8837 egrep -v '^ *\+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } >/dev/null; then
8842 if test -s conftest.err; then
8843 ac_cpp_err=$ac_c_preproc_warn_flag
8850 if test -z "$ac_cpp_err"; then
8851 ac_header_preproc=yes
8853 echo "$as_me: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8855 ac_header_preproc=no
8857 rm -f conftest.err conftest.$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859 echo "${ECHO_T}$ac_header_preproc" >&6
8861 # So? What about this header?
8862 case $ac_header_compiler:$ac_header_preproc in
8864 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8865 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8867 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8869 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8870 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8872 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8874 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8876 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8877 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8878 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 ac_cv_header_openssl_err_h=$ac_header_preproc
8883 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8884 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8887 if test $ac_cv_header_openssl_err_h = yes; then
8890 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8891 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8892 { (exit 1); exit 1; }; }
8898 if test "$with_pam" = yes ; then
8899 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8900 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8901 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8902 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8906 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8908 # Is the header compilable?
8909 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8910 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 #include "confdefs.h"
8914 $ac_includes_default
8915 #include <security/pam_appl.h>
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919 (eval $ac_compile) 2>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_header_compiler=yes
8931 echo "$as_me: failed program was:" >&5
8932 cat conftest.$ac_ext >&5
8933 ac_header_compiler=no
8935 rm -f conftest.$ac_objext conftest.$ac_ext
8936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8937 echo "${ECHO_T}$ac_header_compiler" >&6
8939 # Is the header present?
8940 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8941 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8943 #line $LINENO "configure"
8944 #include "confdefs.h"
8945 #include <security/pam_appl.h>
8947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8950 egrep -v '^ *\+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } >/dev/null; then
8955 if test -s conftest.err; then
8956 ac_cpp_err=$ac_c_preproc_warn_flag
8963 if test -z "$ac_cpp_err"; then
8964 ac_header_preproc=yes
8966 echo "$as_me: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8968 ac_header_preproc=no
8970 rm -f conftest.err conftest.$ac_ext
8971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8972 echo "${ECHO_T}$ac_header_preproc" >&6
8974 # So? What about this header?
8975 case $ac_header_compiler:$ac_header_preproc in
8977 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8978 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8980 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8982 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8983 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8984 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8985 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8986 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8987 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8989 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8990 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8991 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8996 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8997 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9000 if test $ac_cv_header_security_pam_appl_h = yes; then
9003 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9004 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9005 { (exit 1); exit 1; }; }
9013 ## Types, structures, compiler characteristics
9016 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9017 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9018 if test "${ac_cv_c_const+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9022 #line $LINENO "configure"
9023 #include "confdefs.h"
9025 #ifdef F77_DUMMY_MAIN
9029 int F77_DUMMY_MAIN() { return 1; }
9034 /* FIXME: Include the comments suggested by Paul. */
9036 /* Ultrix mips cc rejects this. */
9037 typedef int charset[2];
9039 /* SunOS 4.1.1 cc rejects this. */
9040 char const *const *ccp;
9042 /* NEC SVR4.0.2 mips cc rejects this. */
9043 struct point {int x, y;};
9044 static struct point const zero = {0,0};
9045 /* AIX XL C 1.02.0.0 rejects this.
9046 It does not let you subtract one const X* pointer from another in
9047 an arm of an if-expression whose if-part is not a constant
9049 const char *g = "string";
9050 ccp = &g + (g ? g-g : 0);
9051 /* HPUX 7.0 cc rejects these. */
9054 ccp = (char const *const *) p;
9055 { /* SCO 3.2v4 cc rejects this. */
9057 char const *s = 0 ? (char *) 0 : (char const *) 0;
9061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9063 const int *foo = &x[0];
9066 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9067 typedef const int *iptr;
9071 { /* AIX XL C 1.02.0.0 rejects this saying
9072 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9073 struct s { int j; const int *ap[3]; };
9074 struct s *b; b->j = 5;
9076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9085 rm -f conftest.$ac_objext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087 (eval $ac_compile) 2>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -s conftest.$ac_objext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9099 echo "$as_me: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9103 rm -f conftest.$ac_objext conftest.$ac_ext
9105 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9106 echo "${ECHO_T}$ac_cv_c_const" >&6
9107 if test $ac_cv_c_const = no; then
9109 cat >>confdefs.h <<\_ACEOF
9115 echo "$as_me:$LINENO: checking for inline" >&5
9116 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9117 if test "${ac_cv_c_inline+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 for ac_kw in inline __inline__ __inline; do
9122 cat >conftest.$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9124 #include "confdefs.h"
9126 static $ac_kw int static_foo () {return 0; }
9127 $ac_kw int foo () {return 0; }
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_c_inline=$ac_kw; break
9145 echo "$as_me: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9148 rm -f conftest.$ac_objext conftest.$ac_ext
9152 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9153 echo "${ECHO_T}$ac_cv_c_inline" >&6
9154 case $ac_cv_c_inline in
9157 cat >>confdefs.h <<\_ACEOF
9161 *) cat >>confdefs.h <<_ACEOF
9162 #define inline $ac_cv_c_inline
9167 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9168 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9169 if test "${ac_cv_c_stringize+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 cat >conftest.$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9174 #include "confdefs.h"
9177 char *s = x(teststring);
9179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9180 egrep "#teststring" >/dev/null 2>&1; then
9181 ac_cv_c_stringize=no
9183 ac_cv_c_stringize=yes
9188 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9189 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9190 if test $ac_cv_c_stringize = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define HAVE_STRINGIZE 1
9198 echo "$as_me:$LINENO: checking for signed types" >&5
9199 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9200 if test "${pgac_cv_c_signed+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9204 #line $LINENO "configure"
9205 #include "confdefs.h"
9207 #ifdef F77_DUMMY_MAIN
9211 int F77_DUMMY_MAIN() { return 1; }
9216 signed char c; signed short s; signed int i;
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223 (eval $ac_compile) 2>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 pgac_cv_c_signed=yes
9235 echo "$as_me: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9239 rm -f conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9242 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9243 if test x"$pgac_cv_c_signed" = xno ; then
9245 cat >>confdefs.h <<\_ACEOF
9250 echo "$as_me:$LINENO: checking for working volatile" >&5
9251 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9252 if test "${ac_cv_c_volatile+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 #include "confdefs.h"
9259 #ifdef F77_DUMMY_MAIN
9263 int F77_DUMMY_MAIN() { return 1; }
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -s conftest.$ac_objext'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; }; then
9287 ac_cv_c_volatile=yes
9289 echo "$as_me: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9293 rm -f conftest.$ac_objext conftest.$ac_ext
9295 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9296 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9297 if test $ac_cv_c_volatile = no; then
9299 cat >>confdefs.h <<\_ACEOF
9305 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9306 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9307 if test "${ac_cv_struct_tm+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 cat >conftest.$ac_ext <<_ACEOF
9311 #line $LINENO "configure"
9312 #include "confdefs.h"
9313 #include <sys/types.h>
9316 #ifdef F77_DUMMY_MAIN
9320 int F77_DUMMY_MAIN() { return 1; }
9325 struct tm *tp; tp->tm_sec;
9330 rm -f conftest.$ac_objext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9332 (eval $ac_compile) 2>&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_cv_struct_tm=time.h
9344 echo "$as_me: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 ac_cv_struct_tm=sys/time.h
9348 rm -f conftest.$ac_objext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9351 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9352 if test $ac_cv_struct_tm = sys/time.h; then
9354 cat >>confdefs.h <<\_ACEOF
9355 #define TM_IN_SYS_TIME 1
9360 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9361 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9362 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9367 #include "confdefs.h"
9368 #include <sys/types.h>
9369 #include <$ac_cv_struct_tm>
9372 #ifdef F77_DUMMY_MAIN
9376 int F77_DUMMY_MAIN() { return 1; }
9381 static struct tm ac_aggr;
9382 if (ac_aggr.tm_zone)
9388 rm -f conftest.$ac_objext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390 (eval $ac_compile) 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_cv_member_struct_tm_tm_zone=yes
9402 echo "$as_me: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9404 ac_cv_member_struct_tm_tm_zone=no
9406 rm -f conftest.$ac_objext conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9409 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9410 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9412 cat >>confdefs.h <<_ACEOF
9413 #define HAVE_STRUCT_TM_TM_ZONE 1
9419 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9421 cat >>confdefs.h <<\_ACEOF
9422 #define HAVE_TM_ZONE 1
9426 echo "$as_me:$LINENO: checking for tzname" >&5
9427 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9428 if test "${ac_cv_var_tzname+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 cat >conftest.$ac_ext <<_ACEOF
9432 #line $LINENO "configure"
9433 #include "confdefs.h"
9435 #ifndef tzname /* For SGI. */
9436 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9439 #ifdef F77_DUMMY_MAIN
9443 int F77_DUMMY_MAIN() { return 1; }
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_var_tzname=yes
9467 echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9474 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9475 if test $ac_cv_var_tzname = yes; then
9477 cat >>confdefs.h <<\_ACEOF
9478 #define HAVE_TZNAME 1
9484 echo "$as_me:$LINENO: checking for union semun" >&5
9485 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9486 if test "${ac_cv_type_union_semun+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 #include "confdefs.h"
9492 #include <sys/types.h>
9493 #include <sys/ipc.h>
9494 #include <sys/sem.h>
9496 #ifdef F77_DUMMY_MAIN
9500 int F77_DUMMY_MAIN() { return 1; }
9505 if ((union semun *) 0)
9507 if (sizeof (union semun))
9513 rm -f conftest.$ac_objext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -s conftest.$ac_objext'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then
9525 ac_cv_type_union_semun=yes
9527 echo "$as_me: failed program was:" >&5
9528 cat conftest.$ac_ext >&5
9529 ac_cv_type_union_semun=no
9531 rm -f conftest.$ac_objext conftest.$ac_ext
9533 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9534 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9535 if test $ac_cv_type_union_semun = yes; then
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_UNION_SEMUN 1
9544 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9545 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9546 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9550 #line $LINENO "configure"
9551 #include "confdefs.h"
9552 #include <sys/types.h>
9553 #ifdef HAVE_SYS_UN_H
9558 #ifdef F77_DUMMY_MAIN
9562 int F77_DUMMY_MAIN() { return 1; }
9567 if ((struct sockaddr_un *) 0)
9569 if (sizeof (struct sockaddr_un))
9575 rm -f conftest.$ac_objext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9577 (eval $ac_compile) 2>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -s conftest.$ac_objext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_type_struct_sockaddr_un=yes
9589 echo "$as_me: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9591 ac_cv_type_struct_sockaddr_un=no
9593 rm -f conftest.$ac_objext conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9596 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9597 if test $ac_cv_type_struct_sockaddr_un = yes; then
9599 cat >>confdefs.h <<_ACEOF
9600 #define HAVE_STRUCT_SOCKADDR_UN 1
9607 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9608 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9609 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9614 #include "confdefs.h"
9615 #include <sys/param.h>
9616 #include <sys/socket.h>
9617 #include <sys/ucred.h>
9619 #ifdef F77_DUMMY_MAIN
9623 int F77_DUMMY_MAIN() { return 1; }
9628 if ((struct cmsgcred *) 0)
9630 if (sizeof (struct cmsgcred))
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638 (eval $ac_compile) 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -s conftest.$ac_objext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_type_struct_cmsgcred=yes
9650 echo "$as_me: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 ac_cv_type_struct_cmsgcred=no
9654 rm -f conftest.$ac_objext conftest.$ac_ext
9656 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9657 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9658 if test $ac_cv_type_struct_cmsgcred = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define HAVE_STRUCT_CMSGCRED 1
9666 echo "$as_me:$LINENO: checking for struct fcred" >&5
9667 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9668 if test "${ac_cv_type_struct_fcred+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 cat >conftest.$ac_ext <<_ACEOF
9672 #line $LINENO "configure"
9673 #include "confdefs.h"
9674 #include <sys/param.h>
9675 #include <sys/socket.h>
9676 #include <sys/ucred.h>
9678 #ifdef F77_DUMMY_MAIN
9682 int F77_DUMMY_MAIN() { return 1; }
9687 if ((struct fcred *) 0)
9689 if (sizeof (struct fcred))
9695 rm -f conftest.$ac_objext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9697 (eval $ac_compile) 2>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -s conftest.$ac_objext'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 ac_cv_type_struct_fcred=yes
9709 echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 ac_cv_type_struct_fcred=no
9713 rm -f conftest.$ac_objext conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9716 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9717 if test $ac_cv_type_struct_fcred = yes; then
9719 cat >>confdefs.h <<_ACEOF
9720 #define HAVE_STRUCT_FCRED 1
9725 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9726 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9727 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 #include "confdefs.h"
9733 #include <sys/param.h>
9734 #include <sys/socket.h>
9735 #include <sys/ucred.h>
9737 #ifdef F77_DUMMY_MAIN
9741 int F77_DUMMY_MAIN() { return 1; }
9746 if ((struct sockcred *) 0)
9748 if (sizeof (struct sockcred))
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -s conftest.$ac_objext'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_type_struct_sockcred=yes
9768 echo "$as_me: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 ac_cv_type_struct_sockcred=no
9772 rm -f conftest.$ac_objext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9775 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9776 if test $ac_cv_type_struct_sockcred = yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define HAVE_STRUCT_SOCKCRED 1
9786 if test "$with_zlib" = yes; then
9787 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9788 # did not). While we could work around the lack of z_streamp, it
9789 # seems unwise to encourage people to use such old zlib versions...
9790 echo "$as_me:$LINENO: checking for z_streamp" >&5
9791 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9792 if test "${ac_cv_type_z_streamp+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 #include "confdefs.h"
9800 #ifdef F77_DUMMY_MAIN
9804 int F77_DUMMY_MAIN() { return 1; }
9809 if ((z_streamp *) 0)
9811 if (sizeof (z_streamp))
9817 rm -f conftest.$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_cv_type_z_streamp=yes
9831 echo "$as_me: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 ac_cv_type_z_streamp=no
9835 rm -f conftest.$ac_objext conftest.$ac_ext
9837 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9838 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9839 if test $ac_cv_type_z_streamp = yes; then
9842 { { echo "$as_me:$LINENO: error: zlib version is too old
9843 Use --without-zlib to disable zlib support." >&5
9844 echo "$as_me: error: zlib version is too old
9845 Use --without-zlib to disable zlib support." >&2;}
9846 { (exit 1); exit 1; }; }
9851 if test "$with_krb5" = yes; then
9852 # Check for differences between MIT and Heimdal (KTH) releases
9853 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9854 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9855 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 cat >conftest.$ac_ext <<_ACEOF
9859 #line $LINENO "configure"
9860 #include "confdefs.h"
9863 #ifdef F77_DUMMY_MAIN
9867 int F77_DUMMY_MAIN() { return 1; }
9872 static krb5_ticket ac_aggr;
9873 if (ac_aggr.enc_part2)
9879 rm -f conftest.$ac_objext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881 (eval $ac_compile) 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -s conftest.$ac_objext'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_member_krb5_ticket_enc_part2=yes
9893 echo "$as_me: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 ac_cv_member_krb5_ticket_enc_part2=no
9897 rm -f conftest.$ac_objext conftest.$ac_ext
9899 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9900 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9901 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9903 cat >>confdefs.h <<_ACEOF
9904 #define HAVE_KRB5_TICKET_ENC_PART2 1
9909 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9910 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9911 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9916 #include "confdefs.h"
9919 #ifdef F77_DUMMY_MAIN
9923 int F77_DUMMY_MAIN() { return 1; }
9928 static krb5_ticket ac_aggr;
9935 rm -f conftest.$ac_objext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_member_krb5_ticket_client=yes
9949 echo "$as_me: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 ac_cv_member_krb5_ticket_client=no
9953 rm -f conftest.$ac_objext conftest.$ac_ext
9955 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9956 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9957 if test $ac_cv_member_krb5_ticket_client = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960 #define HAVE_KRB5_TICKET_CLIENT 1
9965 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9966 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9967 { (exit 1); exit 1; }; }
9972 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9973 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9974 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9979 #include "confdefs.h"
9982 #ifdef F77_DUMMY_MAIN
9986 int F77_DUMMY_MAIN() { return 1; }
9991 static krb5_error ac_aggr;
9992 if (ac_aggr.text.data)
9998 rm -f conftest.$ac_objext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_member_krb5_error_text_data=yes
10012 echo "$as_me: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 ac_cv_member_krb5_error_text_data=no
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10018 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10019 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10020 if test $ac_cv_member_krb5_error_text_data = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10028 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10029 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10030 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 cat >conftest.$ac_ext <<_ACEOF
10034 #line $LINENO "configure"
10035 #include "confdefs.h"
10038 #ifdef F77_DUMMY_MAIN
10039 # ifdef __cplusplus
10042 int F77_DUMMY_MAIN() { return 1; }
10047 static krb5_error ac_aggr;
10048 if (ac_aggr.e_data)
10054 rm -f conftest.$ac_objext
10055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056 (eval $ac_compile) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -s conftest.$ac_objext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 ac_cv_member_krb5_error_e_data=yes
10068 echo "$as_me: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
10070 ac_cv_member_krb5_error_e_data=no
10072 rm -f conftest.$ac_objext conftest.$ac_ext
10074 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10075 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10076 if test $ac_cv_member_krb5_error_e_data = yes; then
10079 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10080 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10081 { (exit 1); exit 1; }; }
10090 ## Functions, global variables
10092 echo "$as_me:$LINENO: checking for int timezone" >&5
10093 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10094 if test "${pgac_cv_var_int_timezone+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 #include "confdefs.h"
10102 #ifdef F77_DUMMY_MAIN
10103 # ifdef __cplusplus
10106 int F77_DUMMY_MAIN() { return 1; }
10111 res = timezone / 60;
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 pgac_cv_var_int_timezone=yes
10130 echo "$as_me: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 pgac_cv_var_int_timezone=no
10134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10137 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10138 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10140 cat >>confdefs.h <<\_ACEOF
10141 #define HAVE_INT_TIMEZONE
10145 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10146 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10147 if test "${ac_cv_func_accept_arg1+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 if test "${ac_cv_func_accept_arg2+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 if test "${ac_cv_func_accept_arg3+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10157 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10158 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 #include "confdefs.h"
10162 #ifdef HAVE_SYS_TYPES_H
10163 #include <sys/types.h>
10165 #ifdef HAVE_SYS_SOCKET_H
10166 #include <sys/socket.h>
10168 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10169 #ifdef F77_DUMMY_MAIN
10170 # ifdef __cplusplus
10173 int F77_DUMMY_MAIN() { return 1; }
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_not_found=no; break 3
10197 echo "$as_me: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10201 rm -f conftest.$ac_objext conftest.$ac_ext
10205 if test "$ac_not_found" = yes; then
10206 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10207 echo "$as_me: error: could not determine argument types" >&2;}
10208 { (exit 1); exit 1; }; }
10210 if test "$ac_cv_func_accept_arg3" = "void"; then
10211 ac_cv_func_accept_arg3=int
10219 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10220 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10222 cat >>confdefs.h <<_ACEOF
10223 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10227 cat >>confdefs.h <<_ACEOF
10228 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10232 cat >>confdefs.h <<_ACEOF
10233 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10237 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10238 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10239 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10245 #include <sys/time.h>
10246 #ifdef F77_DUMMY_MAIN
10247 # ifdef __cplusplus
10250 int F77_DUMMY_MAIN() { return 1; }
10255 struct timeval *tp;
10256 struct timezone *tzp;
10257 gettimeofday(tp,tzp);
10262 rm -f conftest.$ac_objext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264 (eval $ac_compile) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -s conftest.$ac_objext'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 pgac_cv_func_gettimeofday_1arg=no
10276 echo "$as_me: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 pgac_cv_func_gettimeofday_1arg=yes
10280 rm -f conftest.$ac_objext conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10283 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10284 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define GETTIMEOFDAY_1ARG
10292 # SunOS doesn't handle negative byte comparisons properly with +/- return
10293 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10294 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10295 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 if test "$cross_compiling" = yes; then
10299 pgac_cv_func_memcmp_clean=no
10301 cat >conftest.$ac_ext <<_ACEOF
10302 #line $LINENO "configure"
10303 #include "confdefs.h"
10307 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10308 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10312 rm -f conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 pgac_cv_func_memcmp_clean=yes
10325 echo "$as_me: program exited with status $ac_status" >&5
10326 echo "$as_me: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10328 ( exit $ac_status )
10329 pgac_cv_func_memcmp_clean=no
10331 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10335 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10336 if test $pgac_cv_func_memcmp_clean = no ; then
10355 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10358 echo "$as_me:$LINENO: checking for $ac_func" >&5
10359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10360 if eval "test \"\${$as_ac_var+set}\" = set"; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 cat >conftest.$ac_ext <<_ACEOF
10364 #line $LINENO "configure"
10365 #include "confdefs.h"
10366 /* System header to define __stub macros and hopefully few prototypes,
10367 which can conflict with char $ac_func (); below. */
10368 #include <assert.h>
10369 /* Override any gcc2 internal prototype to avoid an error. */
10373 /* We use char because int might match the return type of a gcc2
10374 builtin and then its argument prototype would still apply. */
10378 #ifdef F77_DUMMY_MAIN
10379 # ifdef __cplusplus
10382 int F77_DUMMY_MAIN() { return 1; }
10387 /* The GNU C library defines this for functions which it implements
10388 to always fail with ENOSYS. Some functions are actually named
10389 something starting with __ and the normal name is an alias. */
10390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402 (eval $ac_link) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 eval "$as_ac_var=yes"
10414 echo "$as_me: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 eval "$as_ac_var=no"
10418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10431 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10432 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10433 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 cat >conftest.$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10438 #include "confdefs.h"
10439 #include <unistd.h>
10441 #ifdef F77_DUMMY_MAIN
10442 # ifdef __cplusplus
10445 int F77_DUMMY_MAIN() { return 1; }
10451 char *p = (char *) fdatasync;
10458 rm -f conftest.$ac_objext
10459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10460 (eval $ac_compile) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -s conftest.$ac_objext'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }; then
10470 ac_cv_have_decl_fdatasync=yes
10472 echo "$as_me: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 ac_cv_have_decl_fdatasync=no
10476 rm -f conftest.$ac_objext conftest.$ac_ext
10478 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10479 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10480 if test $ac_cv_have_decl_fdatasync = yes; then
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_DECL_FDATASYNC 1
10488 cat >>confdefs.h <<_ACEOF
10489 #define HAVE_DECL_FDATASYNC 0
10497 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10498 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10499 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 #include "confdefs.h"
10505 #include <machine/vmparam.h>
10506 #include <sys/exec.h>
10508 #ifdef F77_DUMMY_MAIN
10509 # ifdef __cplusplus
10512 int F77_DUMMY_MAIN() { return 1; }
10517 PS_STRINGS->ps_nargvstr = 1;
10518 PS_STRINGS->ps_argvstr = "foo";
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest$ac_exeext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 pgac_cv_var_PS_STRINGS=yes
10537 echo "$as_me: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 pgac_cv_var_PS_STRINGS=no
10541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10543 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10544 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10545 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_PS_STRINGS
10554 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10555 # is missing. Yes, there are machines that have only one. We may
10556 # also decide to use snprintf.c if snprintf() is present but does not
10557 # have working "long long int" support -- see below.
10561 for ac_func in snprintf
10563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10564 echo "$as_me:$LINENO: checking for $ac_func" >&5
10565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10566 if eval "test \"\${$as_ac_var+set}\" = set"; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 cat >conftest.$ac_ext <<_ACEOF
10570 #line $LINENO "configure"
10571 #include "confdefs.h"
10572 /* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char $ac_func (); below. */
10574 #include <assert.h>
10575 /* Override any gcc2 internal prototype to avoid an error. */
10579 /* We use char because int might match the return type of a gcc2
10580 builtin and then its argument prototype would still apply. */
10584 #ifdef F77_DUMMY_MAIN
10585 # ifdef __cplusplus
10588 int F77_DUMMY_MAIN() { return 1; }
10593 /* The GNU C library defines this for functions which it implements
10594 to always fail with ENOSYS. Some functions are actually named
10595 something starting with __ and the normal name is an alias. */
10596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 eval "$as_ac_var=yes"
10620 echo "$as_me: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 eval "$as_ac_var=no"
10624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10628 if test `eval echo '${'$as_ac_var'}'` = yes; then
10629 cat >>confdefs.h <<_ACEOF
10630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10634 SNPRINTF='snprintf.o'
10639 for ac_func in vsnprintf
10641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10644 if eval "test \"\${$as_ac_var+set}\" = set"; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 cat >conftest.$ac_ext <<_ACEOF
10648 #line $LINENO "configure"
10649 #include "confdefs.h"
10650 /* System header to define __stub macros and hopefully few prototypes,
10651 which can conflict with char $ac_func (); below. */
10652 #include <assert.h>
10653 /* Override any gcc2 internal prototype to avoid an error. */
10657 /* We use char because int might match the return type of a gcc2
10658 builtin and then its argument prototype would still apply. */
10662 #ifdef F77_DUMMY_MAIN
10663 # ifdef __cplusplus
10666 int F77_DUMMY_MAIN() { return 1; }
10671 /* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686 (eval $ac_link) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -s conftest$ac_exeext'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 eval "$as_ac_var=yes"
10698 echo "$as_me: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 eval "$as_ac_var=no"
10702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10706 if test `eval echo '${'$as_ac_var'}'` = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10712 SNPRINTF='snprintf.o'
10719 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10720 # include/c.h will provide declarations. Note this is a separate test
10721 # from whether the functions exist in the C library --- there are
10722 # systems that have the functions but don't bother to declare them :-(
10724 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10725 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10726 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 cat >conftest.$ac_ext <<_ACEOF
10730 #line $LINENO "configure"
10731 #include "confdefs.h"
10732 $ac_includes_default
10733 #ifdef F77_DUMMY_MAIN
10734 # ifdef __cplusplus
10737 int F77_DUMMY_MAIN() { return 1; }
10743 char *p = (char *) snprintf;
10750 rm -f conftest.$ac_objext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752 (eval $ac_compile) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -s conftest.$ac_objext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_cv_have_decl_snprintf=yes
10764 echo "$as_me: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 ac_cv_have_decl_snprintf=no
10768 rm -f conftest.$ac_objext conftest.$ac_ext
10770 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10771 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10772 if test $ac_cv_have_decl_snprintf = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define HAVE_DECL_SNPRINTF 1
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE_DECL_SNPRINTF 0
10786 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10787 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10788 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 #include "confdefs.h"
10794 $ac_includes_default
10795 #ifdef F77_DUMMY_MAIN
10796 # ifdef __cplusplus
10799 int F77_DUMMY_MAIN() { return 1; }
10805 char *p = (char *) vsnprintf;
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -s conftest.$ac_objext'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_have_decl_vsnprintf=yes
10826 echo "$as_me: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 ac_cv_have_decl_vsnprintf=no
10830 rm -f conftest.$ac_objext conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10833 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10834 if test $ac_cv_have_decl_vsnprintf = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define HAVE_DECL_VSNPRINTF 1
10842 cat >>confdefs.h <<_ACEOF
10843 #define HAVE_DECL_VSNPRINTF 0
10852 # do this one the hard way in case isinf() is a macro
10853 echo "$as_me:$LINENO: checking for isinf" >&5
10854 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10855 if test "${ac_cv_func_isinf+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 cat >conftest.$ac_ext <<_ACEOF
10859 #line $LINENO "configure"
10860 #include "confdefs.h"
10863 #ifdef F77_DUMMY_MAIN
10864 # ifdef __cplusplus
10867 int F77_DUMMY_MAIN() { return 1; }
10872 double x = 0.0; int res = isinf(x);
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10879 (eval $ac_link) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -s conftest$ac_exeext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_cv_func_isinf=yes
10891 echo "$as_me: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 ac_cv_func_isinf=no
10895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10897 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10898 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10900 if test $ac_cv_func_isinf = yes ; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_ISINF 1
10909 # Look for a way to implement a substitute for isinf()
10914 for ac_func in fpclass fp_class fp_class_d class
10916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10917 echo "$as_me:$LINENO: checking for $ac_func" >&5
10918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10919 if eval "test \"\${$as_ac_var+set}\" = set"; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10924 #include "confdefs.h"
10925 /* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char $ac_func (); below. */
10927 #include <assert.h>
10928 /* Override any gcc2 internal prototype to avoid an error. */
10932 /* We use char because int might match the return type of a gcc2
10933 builtin and then its argument prototype would still apply. */
10937 #ifdef F77_DUMMY_MAIN
10938 # ifdef __cplusplus
10941 int F77_DUMMY_MAIN() { return 1; }
10946 /* The GNU C library defines this for functions which it implements
10947 to always fail with ENOSYS. Some functions are actually named
10948 something starting with __ and the normal name is an alias. */
10949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10959 rm -f conftest.$ac_objext conftest$ac_exeext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10961 (eval $ac_link) 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -s conftest$ac_exeext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 eval "$as_ac_var=yes"
10973 echo "$as_me: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 eval "$as_ac_var=no"
10977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10981 if test `eval echo '${'$as_ac_var'}'` = yes; then
10982 cat >>confdefs.h <<_ACEOF
10983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10994 for ac_func in getrusage
10996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 echo "$as_me:$LINENO: checking for $ac_func" >&5
10998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10999 if eval "test \"\${$as_ac_var+set}\" = set"; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11004 #include "confdefs.h"
11005 /* System header to define __stub macros and hopefully few prototypes,
11006 which can conflict with char $ac_func (); below. */
11007 #include <assert.h>
11008 /* Override any gcc2 internal prototype to avoid an error. */
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11017 #ifdef F77_DUMMY_MAIN
11018 # ifdef __cplusplus
11021 int F77_DUMMY_MAIN() { return 1; }
11026 /* The GNU C library defines this for functions which it implements
11027 to always fail with ENOSYS. Some functions are actually named
11028 something starting with __ and the normal name is an alias. */
11029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 eval "$as_ac_var=yes"
11053 echo "$as_me: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11055 eval "$as_ac_var=no"
11057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11061 if test `eval echo '${'$as_ac_var'}'` = yes; then
11062 cat >>confdefs.h <<_ACEOF
11063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11067 GETRUSAGE='getrusage.o'
11073 for ac_func in srandom
11075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11076 echo "$as_me:$LINENO: checking for $ac_func" >&5
11077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_var+set}\" = set"; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below. */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error. */
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11096 #ifdef F77_DUMMY_MAIN
11097 # ifdef __cplusplus
11100 int F77_DUMMY_MAIN() { return 1; }
11105 /* The GNU C library defines this for functions which it implements
11106 to always fail with ENOSYS. Some functions are actually named
11107 something starting with __ and the normal name is an alias. */
11108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120 (eval $ac_link) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -s conftest$ac_exeext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 eval "$as_ac_var=yes"
11132 echo "$as_me: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 eval "$as_ac_var=no"
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11140 if test `eval echo '${'$as_ac_var'}'` = yes; then
11141 cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11146 SRANDOM='srandom.o'
11152 for ac_func in gethostname
11154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11155 echo "$as_me:$LINENO: checking for $ac_func" >&5
11156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11157 if eval "test \"\${$as_ac_var+set}\" = set"; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 cat >conftest.$ac_ext <<_ACEOF
11161 #line $LINENO "configure"
11162 #include "confdefs.h"
11163 /* System header to define __stub macros and hopefully few prototypes,
11164 which can conflict with char $ac_func (); below. */
11165 #include <assert.h>
11166 /* Override any gcc2 internal prototype to avoid an error. */
11170 /* We use char because int might match the return type of a gcc2
11171 builtin and then its argument prototype would still apply. */
11175 #ifdef F77_DUMMY_MAIN
11176 # ifdef __cplusplus
11179 int F77_DUMMY_MAIN() { return 1; }
11184 /* The GNU C library defines this for functions which it implements
11185 to always fail with ENOSYS. Some functions are actually named
11186 something starting with __ and the normal name is an alias. */
11187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199 (eval $ac_link) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -s conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 eval "$as_ac_var=yes"
11211 echo "$as_me: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 eval "$as_ac_var=no"
11215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11225 GETHOSTNAME='gethostname.o'
11231 for ac_func in random
11233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234 echo "$as_me:$LINENO: checking for $ac_func" >&5
11235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11236 if eval "test \"\${$as_ac_var+set}\" = set"; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11241 #include "confdefs.h"
11242 /* System header to define __stub macros and hopefully few prototypes,
11243 which can conflict with char $ac_func (); below. */
11244 #include <assert.h>
11245 /* Override any gcc2 internal prototype to avoid an error. */
11249 /* We use char because int might match the return type of a gcc2
11250 builtin and then its argument prototype would still apply. */
11254 #ifdef F77_DUMMY_MAIN
11255 # ifdef __cplusplus
11258 int F77_DUMMY_MAIN() { return 1; }
11263 /* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -s conftest$ac_exeext'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 eval "$as_ac_var=yes"
11290 echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 eval "$as_ac_var=no"
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11304 MISSING_RANDOM='random.o'
11310 for ac_func in inet_aton
11312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11313 echo "$as_me:$LINENO: checking for $ac_func" >&5
11314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11315 if eval "test \"\${$as_ac_var+set}\" = set"; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11319 #line $LINENO "configure"
11320 #include "confdefs.h"
11321 /* System header to define __stub macros and hopefully few prototypes,
11322 which can conflict with char $ac_func (); below. */
11323 #include <assert.h>
11324 /* Override any gcc2 internal prototype to avoid an error. */
11328 /* We use char because int might match the return type of a gcc2
11329 builtin and then its argument prototype would still apply. */
11333 #ifdef F77_DUMMY_MAIN
11334 # ifdef __cplusplus
11337 int F77_DUMMY_MAIN() { return 1; }
11342 /* The GNU C library defines this for functions which it implements
11343 to always fail with ENOSYS. Some functions are actually named
11344 something starting with __ and the normal name is an alias. */
11345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357 (eval $ac_link) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -s conftest$ac_exeext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 eval "$as_ac_var=yes"
11369 echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 eval "$as_ac_var=no"
11373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11383 INET_ATON='inet_aton.o'
11389 for ac_func in strerror
11391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11392 echo "$as_me:$LINENO: checking for $ac_func" >&5
11393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11394 if eval "test \"\${$as_ac_var+set}\" = set"; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 #include "confdefs.h"
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below. */
11402 #include <assert.h>
11403 /* Override any gcc2 internal prototype to avoid an error. */
11407 /* We use char because int might match the return type of a gcc2
11408 builtin and then its argument prototype would still apply. */
11412 #ifdef F77_DUMMY_MAIN
11413 # ifdef __cplusplus
11416 int F77_DUMMY_MAIN() { return 1; }
11421 /* The GNU C library defines this for functions which it implements
11422 to always fail with ENOSYS. Some functions are actually named
11423 something starting with __ and the normal name is an alias. */
11424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11436 (eval $ac_link) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -s conftest$ac_exeext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 eval "$as_ac_var=yes"
11448 echo "$as_me: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11450 eval "$as_ac_var=no"
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11456 if test `eval echo '${'$as_ac_var'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11462 STRERROR='strerror.o'
11468 for ac_func in strdup
11470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11471 echo "$as_me:$LINENO: checking for $ac_func" >&5
11472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11473 if eval "test \"\${$as_ac_var+set}\" = set"; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 cat >conftest.$ac_ext <<_ACEOF
11477 #line $LINENO "configure"
11478 #include "confdefs.h"
11479 /* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func (); below. */
11481 #include <assert.h>
11482 /* Override any gcc2 internal prototype to avoid an error. */
11486 /* We use char because int might match the return type of a gcc2
11487 builtin and then its argument prototype would still apply. */
11491 #ifdef F77_DUMMY_MAIN
11492 # ifdef __cplusplus
11495 int F77_DUMMY_MAIN() { return 1; }
11500 /* The GNU C library defines this for functions which it implements
11501 to always fail with ENOSYS. Some functions are actually named
11502 something starting with __ and the normal name is an alias. */
11503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -s conftest$ac_exeext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 eval "$as_ac_var=yes"
11527 echo "$as_me: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 eval "$as_ac_var=no"
11531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11535 if test `eval echo '${'$as_ac_var'}'` = yes; then
11536 cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11541 STRDUP='../../utils/strdup.o'
11547 for ac_func in strtol
11549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_var+set}\" = set"; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below. */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error. */
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11570 #ifdef F77_DUMMY_MAIN
11571 # ifdef __cplusplus
11574 int F77_DUMMY_MAIN() { return 1; }
11579 /* The GNU C library defines this for functions which it implements
11580 to always fail with ENOSYS. Some functions are actually named
11581 something starting with __ and the normal name is an alias. */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594 (eval $ac_link) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -s conftest$ac_exeext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11606 echo "$as_me: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 for ac_func in strtoul
11628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11631 if eval "test \"\${$as_ac_var+set}\" = set"; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11636 #include "confdefs.h"
11637 /* System header to define __stub macros and hopefully few prototypes,
11638 which can conflict with char $ac_func (); below. */
11639 #include <assert.h>
11640 /* Override any gcc2 internal prototype to avoid an error. */
11644 /* We use char because int might match the return type of a gcc2
11645 builtin and then its argument prototype would still apply. */
11649 #ifdef F77_DUMMY_MAIN
11650 # ifdef __cplusplus
11653 int F77_DUMMY_MAIN() { return 1; }
11658 /* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 eval "$as_ac_var=yes"
11685 echo "$as_me: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11687 eval "$as_ac_var=no"
11689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11699 STRTOUL='strtoul.o'
11705 for ac_func in strcasecmp
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_var+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717 which can conflict with char $ac_func (); below. */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error. */
11723 /* We use char because int might match the return type of a gcc2
11724 builtin and then its argument prototype would still apply. */
11728 #ifdef F77_DUMMY_MAIN
11729 # ifdef __cplusplus
11732 int F77_DUMMY_MAIN() { return 1; }
11737 /* The GNU C library defines this for functions which it implements
11738 to always fail with ENOSYS. Some functions are actually named
11739 something starting with __ and the normal name is an alias. */
11740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 eval "$as_ac_var=yes"
11764 echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11778 STRCASECMP='strcasecmp.o'
11784 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11785 # this hackery with HPUXMATHLIB allows us to cope.
11789 if [ -r /lib/pa1.1/libm.a ] ; then
11790 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11796 for ac_func in rint
11798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11799 echo "$as_me:$LINENO: checking for $ac_func" >&5
11800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11801 if eval "test \"\${$as_ac_var+set}\" = set"; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 cat >conftest.$ac_ext <<_ACEOF
11805 #line $LINENO "configure"
11806 #include "confdefs.h"
11807 /* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char $ac_func (); below. */
11809 #include <assert.h>
11810 /* Override any gcc2 internal prototype to avoid an error. */
11814 /* We use char because int might match the return type of a gcc2
11815 builtin and then its argument prototype would still apply. */
11819 #ifdef F77_DUMMY_MAIN
11820 # ifdef __cplusplus
11823 int F77_DUMMY_MAIN() { return 1; }
11828 /* The GNU C library defines this for functions which it implements
11829 to always fail with ENOSYS. Some functions are actually named
11830 something starting with __ and the normal name is an alias. */
11831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843 (eval $ac_link) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 eval "$as_ac_var=yes"
11855 echo "$as_me: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11857 eval "$as_ac_var=no"
11859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11863 if test `eval echo '${'$as_ac_var'}'` = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11869 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11870 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11871 if test "${ac_cv_lib_m_rint+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lm $HPUXMATHLIB $LIBS"
11876 cat >conftest.$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11878 #include "confdefs.h"
11880 /* Override any gcc2 internal prototype to avoid an error. */
11884 /* We use char because int might match the return type of a gcc2
11885 builtin and then its argument prototype would still apply. */
11887 #ifdef F77_DUMMY_MAIN
11888 # ifdef __cplusplus
11891 int F77_DUMMY_MAIN() { return 1; }
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -s conftest$ac_exeext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_lib_m_rint=yes
11915 echo "$as_me: failed program was:" >&5
11916 cat conftest.$ac_ext >&5
11917 ac_cv_lib_m_rint=no
11919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11920 LIBS=$ac_check_lib_save_LIBS
11922 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11923 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11924 if test $ac_cv_lib_m_rint = yes; then
11925 cat >>confdefs.h <<\_ACEOF
11926 #define HAVE_RINT 1
11936 if test "$with_readline" = yes; then
11937 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11938 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11939 cat >conftest.$ac_ext <<_ACEOF
11940 #line $LINENO "configure"
11941 #include "confdefs.h"
11943 #ifdef HAVE_READLINE_READLINE_H
11944 # include <readline/readline.h>
11945 #elif defined(HAVE_READLINE_H)
11946 # include <readline.h>
11949 #ifdef F77_DUMMY_MAIN
11950 # ifdef __cplusplus
11953 int F77_DUMMY_MAIN() { return 1; }
11958 rl_completion_append_character = 'x';
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 echo "$as_me:$LINENO: result: yes" >&5
11976 echo "${ECHO_T}yes" >&6
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11983 echo "$as_me: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 echo "$as_me:$LINENO: result: no" >&5
11986 echo "${ECHO_T}no" >&6
11988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11991 for ac_func in rl_completion_matches rl_filename_completion_function
11993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11994 echo "$as_me:$LINENO: checking for $ac_func" >&5
11995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11996 if eval "test \"\${$as_ac_var+set}\" = set"; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 #line $LINENO "configure"
12001 #include "confdefs.h"
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below. */
12004 #include <assert.h>
12005 /* Override any gcc2 internal prototype to avoid an error. */
12009 /* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12014 #ifdef F77_DUMMY_MAIN
12015 # ifdef __cplusplus
12018 int F77_DUMMY_MAIN() { return 1; }
12023 /* The GNU C library defines this for functions which it implements
12024 to always fail with ENOSYS. Some functions are actually named
12025 something starting with __ and the normal name is an alias. */
12026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038 (eval $ac_link) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 eval "$as_ac_var=yes"
12050 echo "$as_me: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12052 eval "$as_ac_var=no"
12054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12058 if test `eval echo '${'$as_ac_var'}'` = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12069 echo "$as_me:$LINENO: checking for finite" >&5
12070 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12071 cat >conftest.$ac_ext <<_ACEOF
12072 #line $LINENO "configure"
12073 #include "confdefs.h"
12075 #ifdef F77_DUMMY_MAIN
12076 # ifdef __cplusplus
12079 int F77_DUMMY_MAIN() { return 1; }
12084 int dummy=finite(1.0);
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_FINITE 1
12106 echo "$as_me:$LINENO: result: yes" >&5
12107 echo "${ECHO_T}yes" >&6
12109 echo "$as_me: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 echo "$as_me:$LINENO: result: no" >&5
12112 echo "${ECHO_T}no" >&6
12114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12116 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12117 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 #include "confdefs.h"
12121 #include <setjmp.h>
12122 #ifdef F77_DUMMY_MAIN
12123 # ifdef __cplusplus
12126 int F77_DUMMY_MAIN() { return 1; }
12131 sigjmp_buf x; sigsetjmp(x, 1);
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12149 cat >>confdefs.h <<\_ACEOF
12150 #define HAVE_SIGSETJMP 1
12153 echo "$as_me:$LINENO: result: yes" >&5
12154 echo "${ECHO_T}yes" >&6
12156 echo "$as_me: failed program was:" >&5
12157 cat conftest.$ac_ext >&5
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12166 # Check whether --enable-syslog or --disable-syslog was given.
12167 if test "${enable_syslog+set}" = set; then
12168 enableval="$enable_syslog"
12172 echo "$as_me:$LINENO: checking for syslog" >&5
12173 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12174 if test "${ac_cv_func_syslog+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12179 #include "confdefs.h"
12180 /* System header to define __stub macros and hopefully few prototypes,
12181 which can conflict with char syslog (); below. */
12182 #include <assert.h>
12183 /* Override any gcc2 internal prototype to avoid an error. */
12187 /* We use char because int might match the return type of a gcc2
12188 builtin and then its argument prototype would still apply. */
12192 #ifdef F77_DUMMY_MAIN
12193 # ifdef __cplusplus
12196 int F77_DUMMY_MAIN() { return 1; }
12201 /* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204 #if defined (__stub_syslog) || defined (__stub___syslog)
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_func_syslog=yes
12228 echo "$as_me: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 ac_cv_func_syslog=no
12232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12234 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12235 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12236 if test $ac_cv_func_syslog = yes; then
12238 cat >>confdefs.h <<\_ACEOF
12239 #define ENABLE_SYSLOG 1
12243 { { echo "$as_me:$LINENO: error: no syslog interface found" >&5
12244 echo "$as_me: error: no syslog interface found" >&2;}
12245 { (exit 1); exit 1; }; }
12253 { { echo "$as_me:$LINENO: error: no argument expected for --enable-syslog option" >&5
12254 echo "$as_me: error: no argument expected for --enable-syslog option" >&2;}
12255 { (exit 1); exit 1; }; }
12266 echo "$as_me:$LINENO: checking for optreset" >&5
12267 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12268 if test "${pgac_cv_var_int_optreset+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 #include "confdefs.h"
12274 #include <unistd.h>
12275 #ifdef F77_DUMMY_MAIN
12276 # ifdef __cplusplus
12279 int F77_DUMMY_MAIN() { return 1; }
12284 extern int optreset; optreset = 1;
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291 (eval $ac_link) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 pgac_cv_var_int_optreset=yes
12303 echo "$as_me: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12305 pgac_cv_var_int_optreset=no
12307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12309 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12310 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12311 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12313 cat >>confdefs.h <<\_ACEOF
12314 #define HAVE_INT_OPTRESET 1
12320 # This test makes sure that run tests work at all. Sometimes a shared
12321 # library is found by the linker, but the runtime linker can't find it.
12322 # This check should come after all modifications of compiler or linker
12323 # variables, and before any other run tests.
12324 echo "$as_me:$LINENO: checking test program" >&5
12325 echo $ECHO_N "checking test program... $ECHO_C" >&6
12326 if test "$cross_compiling" = yes; then
12327 echo "$as_me:$LINENO: result: cross-compiling" >&5
12328 echo "${ECHO_T}cross-compiling" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 int main() { return 0; }
12335 rm -f conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 echo "$as_me:$LINENO: result: ok" >&5
12347 echo "${ECHO_T}ok" >&6
12349 echo "$as_me: program exited with status $ac_status" >&5
12350 echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 ( exit $ac_status )
12353 echo "$as_me:$LINENO: result: failed" >&5
12354 echo "${ECHO_T}failed" >&6
12355 { { echo "$as_me:$LINENO: error:
12356 *** Could not execute a simple test program. This may be a problem
12357 *** related to locating shared libraries. Check the file 'config.log'
12358 *** for the exact reason." >&5
12359 echo "$as_me: error:
12360 *** Could not execute a simple test program. This may be a problem
12361 *** related to locating shared libraries. Check the file 'config.log'
12362 *** for the exact reason." >&2;}
12363 { (exit 1); exit 1; }; }
12365 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12370 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12371 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12372 if test "${pgac_cv_type_long_int_64+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 if test "$cross_compiling" = yes; then
12376 pgac_cv_type_long_int_64=no
12377 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12378 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383 typedef long int int64;
12386 * These are globals to discourage the compiler from folding all the
12387 * arithmetic tests down to compile-time constants.
12389 int64 a = 20000001;
12390 int64 b = 40000005;
12392 int does_int64_work()
12396 if (sizeof(int64) != 8)
12397 return 0; /* definitely not the right size */
12399 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12407 exit(! does_int64_work());
12410 rm -f conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412 (eval $ac_link) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 pgac_cv_type_long_int_64=yes
12423 echo "$as_me: program exited with status $ac_status" >&5
12424 echo "$as_me: failed program was:" >&5
12425 cat conftest.$ac_ext >&5
12426 ( exit $ac_status )
12427 pgac_cv_type_long_int_64=no
12429 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12432 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12433 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12435 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12436 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_LONG_INT_64
12445 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12446 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12447 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12448 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 if test "$cross_compiling" = yes; then
12452 pgac_cv_type_long_long_int_64=no
12453 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12454 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 #include "confdefs.h"
12459 typedef long long int int64;
12462 * These are globals to discourage the compiler from folding all the
12463 * arithmetic tests down to compile-time constants.
12465 int64 a = 20000001;
12466 int64 b = 40000005;
12468 int does_int64_work()
12472 if (sizeof(int64) != 8)
12473 return 0; /* definitely not the right size */
12475 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12483 exit(! does_int64_work());
12486 rm -f conftest$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 pgac_cv_type_long_long_int_64=yes
12499 echo "$as_me: program exited with status $ac_status" >&5
12500 echo "$as_me: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 ( exit $ac_status )
12503 pgac_cv_type_long_long_int_64=no
12505 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12508 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12509 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12511 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12512 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12514 cat >>confdefs.h <<\_ACEOF
12515 #define HAVE_LONG_LONG_INT_64
12524 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12525 cat >conftest.$ac_ext <<_ACEOF
12526 #line $LINENO "configure"
12527 #include "confdefs.h"
12529 #define INT64CONST(x) x##LL
12530 long long int foo = INT64CONST(0x1234567890123456);
12532 #ifdef F77_DUMMY_MAIN
12533 # ifdef __cplusplus
12536 int F77_DUMMY_MAIN() { return 1; }
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548 (eval $ac_compile) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12559 cat >>confdefs.h <<\_ACEOF
12560 #define HAVE_LL_CONSTANTS 1
12564 echo "$as_me: failed program was:" >&5
12565 cat conftest.$ac_ext >&5
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12572 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12573 if [ x$SNPRINTF = x ] ; then
12574 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12575 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12576 if test "$cross_compiling" = yes; then
12577 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12578 echo "${ECHO_T}assuming not on target machine" >&6
12579 # Force usage of our own snprintf, since we cannot test foreign snprintf
12580 SNPRINTF='snprintf.o'
12581 INT64_FORMAT='"%lld"'
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12588 typedef long long int int64;
12589 #define INT64_FORMAT "%lld"
12591 int64 a = 20000001;
12592 int64 b = 40000005;
12594 int does_int64_snprintf_work()
12599 if (sizeof(int64) != 8)
12600 return 0; /* doesn't look like the right size */
12603 snprintf(buf, 100, INT64_FORMAT, c);
12604 if (strcmp(buf, "800000140000005") != 0)
12605 return 0; /* either multiply or snprintf is busted */
12609 exit(! does_int64_snprintf_work());
12612 rm -f conftest$ac_exeext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12614 (eval $ac_link) 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 echo "$as_me:$LINENO: result: yes" >&5
12624 echo "${ECHO_T}yes" >&6
12625 INT64_FORMAT='"%lld"'
12628 echo "$as_me: program exited with status $ac_status" >&5
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 ( exit $ac_status )
12632 echo "$as_me:$LINENO: result: no" >&5
12633 echo "${ECHO_T}no" >&6
12634 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12635 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12636 if test "$cross_compiling" = yes; then
12637 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12638 echo "${ECHO_T}assuming not on target machine" >&6
12639 # Force usage of our own snprintf, since we cannot test foreign snprintf
12640 SNPRINTF='snprintf.o'
12641 INT64_FORMAT='"%lld"'
12644 cat >conftest.$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12646 #include "confdefs.h"
12648 typedef long long int int64;
12649 #define INT64_FORMAT "%qd"
12651 int64 a = 20000001;
12652 int64 b = 40000005;
12654 int does_int64_snprintf_work()
12659 if (sizeof(int64) != 8)
12660 return 0; /* doesn't look like the right size */
12663 snprintf(buf, 100, INT64_FORMAT, c);
12664 if (strcmp(buf, "800000140000005") != 0)
12665 return 0; /* either multiply or snprintf is busted */
12669 exit(! does_int64_snprintf_work());
12672 rm -f conftest$ac_exeext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674 (eval $ac_link) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 echo "$as_me:$LINENO: result: yes" >&5
12684 echo "${ECHO_T}yes" >&6
12685 INT64_FORMAT='"%qd"'
12688 echo "$as_me: program exited with status $ac_status" >&5
12689 echo "$as_me: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 ( exit $ac_status )
12692 echo "$as_me:$LINENO: result: no" >&5
12693 echo "${ECHO_T}no" >&6
12694 # Force usage of our own snprintf, since system snprintf is broken
12695 SNPRINTF='snprintf.o'
12696 INT64_FORMAT='"%lld"'
12699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12702 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12705 # here if we previously decided we needed to use our own snprintf
12706 INT64_FORMAT='"%lld"'
12709 # Here if we are not using 'long long int' at all
12710 INT64_FORMAT='"%ld"'
12714 cat >>confdefs.h <<_ACEOF
12715 #define INT64_FORMAT $INT64_FORMAT
12722 for ac_func in strtoll strtoq
12724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12725 echo "$as_me:$LINENO: checking for $ac_func" >&5
12726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12727 if eval "test \"\${$as_ac_var+set}\" = set"; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 #include "confdefs.h"
12733 /* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below. */
12735 #include <assert.h>
12736 /* Override any gcc2 internal prototype to avoid an error. */
12740 /* We use char because int might match the return type of a gcc2
12741 builtin and then its argument prototype would still apply. */
12745 #ifdef F77_DUMMY_MAIN
12746 # ifdef __cplusplus
12749 int F77_DUMMY_MAIN() { return 1; }
12754 /* The GNU C library defines this for functions which it implements
12755 to always fail with ENOSYS. Some functions are actually named
12756 something starting with __ and the normal name is an alias. */
12757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769 (eval $ac_link) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -s conftest$ac_exeext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 eval "$as_ac_var=yes"
12781 echo "$as_me: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12783 eval "$as_ac_var=no"
12785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12789 if test `eval echo '${'$as_ac_var'}'` = yes; then
12790 cat >>confdefs.h <<_ACEOF
12791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12799 for ac_func in strtoull strtouq
12801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12802 echo "$as_me:$LINENO: checking for $ac_func" >&5
12803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12804 if eval "test \"\${$as_ac_var+set}\" = set"; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 cat >conftest.$ac_ext <<_ACEOF
12808 #line $LINENO "configure"
12809 #include "confdefs.h"
12810 /* System header to define __stub macros and hopefully few prototypes,
12811 which can conflict with char $ac_func (); below. */
12812 #include <assert.h>
12813 /* Override any gcc2 internal prototype to avoid an error. */
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12822 #ifdef F77_DUMMY_MAIN
12823 # ifdef __cplusplus
12826 int F77_DUMMY_MAIN() { return 1; }
12831 /* The GNU C library defines this for functions which it implements
12832 to always fail with ENOSYS. Some functions are actually named
12833 something starting with __ and the normal name is an alias. */
12834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846 (eval $ac_link) 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -s conftest$ac_exeext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 eval "$as_ac_var=yes"
12858 echo "$as_me: failed program was:" >&5
12859 cat conftest.$ac_ext >&5
12860 eval "$as_ac_var=no"
12862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12866 if test `eval echo '${'$as_ac_var'}'` = yes; then
12867 cat >>confdefs.h <<_ACEOF
12868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12875 # Check for one of atexit() or on_exit()
12877 for ac_func in atexit
12879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12880 echo "$as_me:$LINENO: checking for $ac_func" >&5
12881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12882 if eval "test \"\${$as_ac_var+set}\" = set"; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 cat >conftest.$ac_ext <<_ACEOF
12886 #line $LINENO "configure"
12887 #include "confdefs.h"
12888 /* System header to define __stub macros and hopefully few prototypes,
12889 which can conflict with char $ac_func (); below. */
12890 #include <assert.h>
12891 /* Override any gcc2 internal prototype to avoid an error. */
12895 /* We use char because int might match the return type of a gcc2
12896 builtin and then its argument prototype would still apply. */
12900 #ifdef F77_DUMMY_MAIN
12901 # ifdef __cplusplus
12904 int F77_DUMMY_MAIN() { return 1; }
12909 /* The GNU C library defines this for functions which it implements
12910 to always fail with ENOSYS. Some functions are actually named
12911 something starting with __ and the normal name is an alias. */
12912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 eval "$as_ac_var=yes"
12936 echo "$as_me: failed program was:" >&5
12937 cat conftest.$ac_ext >&5
12938 eval "$as_ac_var=no"
12940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12944 if test `eval echo '${'$as_ac_var'}'` = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12951 for ac_func in on_exit
12953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12954 echo "$as_me:$LINENO: checking for $ac_func" >&5
12955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12956 if eval "test \"\${$as_ac_var+set}\" = set"; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 cat >conftest.$ac_ext <<_ACEOF
12960 #line $LINENO "configure"
12961 #include "confdefs.h"
12962 /* System header to define __stub macros and hopefully few prototypes,
12963 which can conflict with char $ac_func (); below. */
12964 #include <assert.h>
12965 /* Override any gcc2 internal prototype to avoid an error. */
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12974 #ifdef F77_DUMMY_MAIN
12975 # ifdef __cplusplus
12978 int F77_DUMMY_MAIN() { return 1; }
12983 /* The GNU C library defines this for functions which it implements
12984 to always fail with ENOSYS. Some functions are actually named
12985 something starting with __ and the normal name is an alias. */
12986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 eval "$as_ac_var=yes"
13010 echo "$as_me: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 eval "$as_ac_var=no"
13014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13018 if test `eval echo '${'$as_ac_var'}'` = yes; then
13019 cat >>confdefs.h <<_ACEOF
13020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13024 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13025 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13026 { (exit 1); exit 1; }; }
13035 echo "$as_me:$LINENO: checking for unsigned long" >&5
13036 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13037 if test "${ac_cv_type_unsigned_long+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13041 #line $LINENO "configure"
13042 #include "confdefs.h"
13043 $ac_includes_default
13044 #ifdef F77_DUMMY_MAIN
13045 # ifdef __cplusplus
13048 int F77_DUMMY_MAIN() { return 1; }
13053 if ((unsigned long *) 0)
13055 if (sizeof (unsigned long))
13061 rm -f conftest.$ac_objext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063 (eval $ac_compile) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -s conftest.$ac_objext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_cv_type_unsigned_long=yes
13075 echo "$as_me: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 ac_cv_type_unsigned_long=no
13079 rm -f conftest.$ac_objext conftest.$ac_ext
13081 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13082 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13084 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13085 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13086 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 if test "$ac_cv_type_unsigned_long" = yes; then
13090 # The cast to unsigned long works around a bug in the HP C Compiler
13091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13093 # This bug is HP SR number 8606223364.
13094 if test "$cross_compiling" = yes; then
13095 # Depending upon the size, compute the lo and hi bounds.
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13098 #include "confdefs.h"
13099 $ac_includes_default
13100 #ifdef F77_DUMMY_MAIN
13101 # ifdef __cplusplus
13104 int F77_DUMMY_MAIN() { return 1; }
13109 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13130 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 #include "confdefs.h"
13133 $ac_includes_default
13134 #ifdef F77_DUMMY_MAIN
13135 # ifdef __cplusplus
13138 int F77_DUMMY_MAIN() { return 1; }
13143 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13150 rm -f conftest.$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_hi=$ac_mid; break
13164 echo "$as_me: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 ac_lo=`expr $ac_mid + 1`
13167 if test $ac_lo -le $ac_mid; then
13171 ac_mid=`expr 2 '*' $ac_mid + 1`
13173 rm -f conftest.$ac_objext conftest.$ac_ext
13176 echo "$as_me: failed program was:" >&5
13177 cat conftest.$ac_ext >&5
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13180 #include "confdefs.h"
13181 $ac_includes_default
13182 #ifdef F77_DUMMY_MAIN
13183 # ifdef __cplusplus
13186 int F77_DUMMY_MAIN() { return 1; }
13191 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13212 cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13214 #include "confdefs.h"
13215 $ac_includes_default
13216 #ifdef F77_DUMMY_MAIN
13217 # ifdef __cplusplus
13220 int F77_DUMMY_MAIN() { return 1; }
13225 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -s conftest.$ac_objext'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; }; then
13244 ac_lo=$ac_mid; break
13246 echo "$as_me: failed program was:" >&5
13247 cat conftest.$ac_ext >&5
13248 ac_hi=`expr '(' $ac_mid ')' - 1`
13249 if test $ac_mid -le $ac_hi; then
13253 ac_mid=`expr 2 '*' $ac_mid`
13255 rm -f conftest.$ac_objext conftest.$ac_ext
13258 echo "$as_me: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13265 # Binary search between lo and hi bounds.
13266 while test "x$ac_lo" != "x$ac_hi"; do
13267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13268 cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13270 #include "confdefs.h"
13271 $ac_includes_default
13272 #ifdef F77_DUMMY_MAIN
13273 # ifdef __cplusplus
13276 int F77_DUMMY_MAIN() { return 1; }
13281 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13302 echo "$as_me: failed program was:" >&5
13303 cat conftest.$ac_ext >&5
13304 ac_lo=`expr '(' $ac_mid ')' + 1`
13306 rm -f conftest.$ac_objext conftest.$ac_ext
13309 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13310 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13311 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13312 { (exit 1); exit 1; }; } ;;
13315 if test "$cross_compiling" = yes; then
13316 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13317 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13318 { (exit 1); exit 1; }; }
13320 cat >conftest.$ac_ext <<_ACEOF
13321 #line $LINENO "configure"
13322 #include "confdefs.h"
13323 $ac_includes_default
13324 long longval () { return (long) (sizeof (unsigned long)); }
13325 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13327 #include <stdlib.h>
13328 #ifdef F77_DUMMY_MAIN
13329 # ifdef __cplusplus
13332 int F77_DUMMY_MAIN() { return 1; }
13338 FILE *f = fopen ("conftest.val", "w");
13341 if (((long) (sizeof (unsigned long))) < 0)
13343 long i = longval ();
13344 if (i != ((long) (sizeof (unsigned long))))
13346 fprintf (f, "%ld\n", i);
13350 unsigned long i = ulongval ();
13351 if (i != ((long) (sizeof (unsigned long))))
13353 fprintf (f, "%lu\n", i);
13355 exit (ferror (f) || fclose (f) != 0);
13361 rm -f conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13374 echo "$as_me: program exited with status $ac_status" >&5
13375 echo "$as_me: failed program was:" >&5
13376 cat conftest.$ac_ext >&5
13377 ( exit $ac_status )
13378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13379 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13380 { (exit 1); exit 1; }; }
13382 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13387 ac_cv_sizeof_unsigned_long=0
13390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13391 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13392 cat >>confdefs.h <<_ACEOF
13393 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13398 cat >>confdefs.h <<_ACEOF
13399 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13403 # Determine memory alignment requirements for the basic C data types.
13405 echo "$as_me:$LINENO: checking for short" >&5
13406 echo $ECHO_N "checking for short... $ECHO_C" >&6
13407 if test "${ac_cv_type_short+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13412 #include "confdefs.h"
13413 $ac_includes_default
13414 #ifdef F77_DUMMY_MAIN
13415 # ifdef __cplusplus
13418 int F77_DUMMY_MAIN() { return 1; }
13425 if (sizeof (short))
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433 (eval $ac_compile) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_cv_type_short=yes
13445 echo "$as_me: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13447 ac_cv_type_short=no
13449 rm -f conftest.$ac_objext conftest.$ac_ext
13451 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13452 echo "${ECHO_T}$ac_cv_type_short" >&6
13454 echo "$as_me:$LINENO: checking alignment of short" >&5
13455 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13456 if test "${pgac_cv_alignof_short+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 if test "$ac_cv_type_short" = yes; then
13460 if test "$cross_compiling" = yes; then
13461 # Depending upon the size, compute the lo and hi bounds.
13462 cat >conftest.$ac_ext <<_ACEOF
13463 #line $LINENO "configure"
13464 #include "confdefs.h"
13465 $ac_includes_default
13466 struct { char filler; short field; } pgac_struct;
13467 #ifdef F77_DUMMY_MAIN
13468 # ifdef __cplusplus
13471 int F77_DUMMY_MAIN() { return 1; }
13476 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -s conftest.$ac_objext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13497 cat >conftest.$ac_ext <<_ACEOF
13498 #line $LINENO "configure"
13499 #include "confdefs.h"
13500 $ac_includes_default
13501 struct { char filler; short field; } pgac_struct;
13502 #ifdef F77_DUMMY_MAIN
13503 # ifdef __cplusplus
13506 int F77_DUMMY_MAIN() { return 1; }
13511 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13518 rm -f conftest.$ac_objext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13520 (eval $ac_compile) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
13524 { ac_try='test -s conftest.$ac_objext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_hi=$ac_mid; break
13532 echo "$as_me: failed program was:" >&5
13533 cat conftest.$ac_ext >&5
13534 ac_lo=`expr $ac_mid + 1`
13535 if test $ac_lo -le $ac_mid; then
13539 ac_mid=`expr 2 '*' $ac_mid + 1`
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13544 echo "$as_me: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13546 cat >conftest.$ac_ext <<_ACEOF
13547 #line $LINENO "configure"
13548 #include "confdefs.h"
13549 $ac_includes_default
13550 struct { char filler; short field; } pgac_struct;
13551 #ifdef F77_DUMMY_MAIN
13552 # ifdef __cplusplus
13555 int F77_DUMMY_MAIN() { return 1; }
13560 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569 (eval $ac_compile) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -s conftest.$ac_objext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13581 cat >conftest.$ac_ext <<_ACEOF
13582 #line $LINENO "configure"
13583 #include "confdefs.h"
13584 $ac_includes_default
13585 struct { char filler; short field; } pgac_struct;
13586 #ifdef F77_DUMMY_MAIN
13587 # ifdef __cplusplus
13590 int F77_DUMMY_MAIN() { return 1; }
13595 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_lo=$ac_mid; break
13616 echo "$as_me: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13618 ac_hi=`expr '(' $ac_mid ')' - 1`
13619 if test $ac_mid -le $ac_hi; then
13623 ac_mid=`expr 2 '*' $ac_mid`
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13628 echo "$as_me: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13632 rm -f conftest.$ac_objext conftest.$ac_ext
13634 rm -f conftest.$ac_objext conftest.$ac_ext
13635 # Binary search between lo and hi bounds.
13636 while test "x$ac_lo" != "x$ac_hi"; do
13637 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13638 cat >conftest.$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13640 #include "confdefs.h"
13641 $ac_includes_default
13642 struct { char filler; short field; } pgac_struct;
13643 #ifdef F77_DUMMY_MAIN
13644 # ifdef __cplusplus
13647 int F77_DUMMY_MAIN() { return 1; }
13652 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13673 echo "$as_me: failed program was:" >&5
13674 cat conftest.$ac_ext >&5
13675 ac_lo=`expr '(' $ac_mid ')' + 1`
13677 rm -f conftest.$ac_objext conftest.$ac_ext
13680 ?*) pgac_cv_alignof_short=$ac_lo;;
13681 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13682 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13683 { (exit 1); exit 1; }; } ;;
13686 if test "$cross_compiling" = yes; then
13687 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13689 { (exit 1); exit 1; }; }
13691 cat >conftest.$ac_ext <<_ACEOF
13692 #line $LINENO "configure"
13693 #include "confdefs.h"
13694 $ac_includes_default
13695 struct { char filler; short field; } pgac_struct;
13696 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13697 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13699 #include <stdlib.h>
13700 #ifdef F77_DUMMY_MAIN
13701 # ifdef __cplusplus
13704 int F77_DUMMY_MAIN() { return 1; }
13710 FILE *f = fopen ("conftest.val", "w");
13713 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13715 long i = longval ();
13716 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13718 fprintf (f, "%ld\n", i);
13722 unsigned long i = ulongval ();
13723 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13725 fprintf (f, "%lu\n", i);
13727 exit (ferror (f) || fclose (f) != 0);
13733 rm -f conftest$ac_exeext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735 (eval $ac_link) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 pgac_cv_alignof_short=`cat conftest.val`
13746 echo "$as_me: program exited with status $ac_status" >&5
13747 echo "$as_me: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 ( exit $ac_status )
13750 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13751 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13752 { (exit 1); exit 1; }; }
13754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13759 pgac_cv_alignof_short=0
13762 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13763 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13764 cat >>confdefs.h <<_ACEOF
13765 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13769 echo "$as_me:$LINENO: checking for int" >&5
13770 echo $ECHO_N "checking for int... $ECHO_C" >&6
13771 if test "${ac_cv_type_int+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13776 #include "confdefs.h"
13777 $ac_includes_default
13778 #ifdef F77_DUMMY_MAIN
13779 # ifdef __cplusplus
13782 int F77_DUMMY_MAIN() { return 1; }
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797 (eval $ac_compile) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -s conftest.$ac_objext'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13809 echo "$as_me: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13815 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13816 echo "${ECHO_T}$ac_cv_type_int" >&6
13818 echo "$as_me:$LINENO: checking alignment of int" >&5
13819 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13820 if test "${pgac_cv_alignof_int+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 if test "$ac_cv_type_int" = yes; then
13824 if test "$cross_compiling" = yes; then
13825 # Depending upon the size, compute the lo and hi bounds.
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13828 #include "confdefs.h"
13829 $ac_includes_default
13830 struct { char filler; int field; } pgac_struct;
13831 #ifdef F77_DUMMY_MAIN
13832 # ifdef __cplusplus
13835 int F77_DUMMY_MAIN() { return 1; }
13840 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849 (eval $ac_compile) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13861 cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13864 $ac_includes_default
13865 struct { char filler; int field; } pgac_struct;
13866 #ifdef F77_DUMMY_MAIN
13867 # ifdef __cplusplus
13870 int F77_DUMMY_MAIN() { return 1; }
13875 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_hi=$ac_mid; break
13896 echo "$as_me: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 ac_lo=`expr $ac_mid + 1`
13899 if test $ac_lo -le $ac_mid; then
13903 ac_mid=`expr 2 '*' $ac_mid + 1`
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 cat >conftest.$ac_ext <<_ACEOF
13911 #line $LINENO "configure"
13912 #include "confdefs.h"
13913 $ac_includes_default
13914 struct { char filler; int field; } pgac_struct;
13915 #ifdef F77_DUMMY_MAIN
13916 # ifdef __cplusplus
13919 int F77_DUMMY_MAIN() { return 1; }
13924 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13945 cat >conftest.$ac_ext <<_ACEOF
13946 #line $LINENO "configure"
13947 #include "confdefs.h"
13948 $ac_includes_default
13949 struct { char filler; int field; } pgac_struct;
13950 #ifdef F77_DUMMY_MAIN
13951 # ifdef __cplusplus
13954 int F77_DUMMY_MAIN() { return 1; }
13959 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_lo=$ac_mid; break
13980 echo "$as_me: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 ac_hi=`expr '(' $ac_mid ')' - 1`
13983 if test $ac_mid -le $ac_hi; then
13987 ac_mid=`expr 2 '*' $ac_mid`
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13992 echo "$as_me: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13998 rm -f conftest.$ac_objext conftest.$ac_ext
13999 # Binary search between lo and hi bounds.
14000 while test "x$ac_lo" != "x$ac_hi"; do
14001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 struct { char filler; int field; } pgac_struct;
14007 #ifdef F77_DUMMY_MAIN
14008 # ifdef __cplusplus
14011 int F77_DUMMY_MAIN() { return 1; }
14016 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -s conftest.$ac_objext'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14037 echo "$as_me: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 ac_lo=`expr '(' $ac_mid ')' + 1`
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14044 ?*) pgac_cv_alignof_int=$ac_lo;;
14045 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14046 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14047 { (exit 1); exit 1; }; } ;;
14050 if test "$cross_compiling" = yes; then
14051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14052 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14053 { (exit 1); exit 1; }; }
14055 cat >conftest.$ac_ext <<_ACEOF
14056 #line $LINENO "configure"
14057 #include "confdefs.h"
14058 $ac_includes_default
14059 struct { char filler; int field; } pgac_struct;
14060 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14061 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14063 #include <stdlib.h>
14064 #ifdef F77_DUMMY_MAIN
14065 # ifdef __cplusplus
14068 int F77_DUMMY_MAIN() { return 1; }
14074 FILE *f = fopen ("conftest.val", "w");
14077 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14079 long i = longval ();
14080 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14082 fprintf (f, "%ld\n", i);
14086 unsigned long i = ulongval ();
14087 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14089 fprintf (f, "%lu\n", i);
14091 exit (ferror (f) || fclose (f) != 0);
14097 rm -f conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 pgac_cv_alignof_int=`cat conftest.val`
14110 echo "$as_me: program exited with status $ac_status" >&5
14111 echo "$as_me: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 ( exit $ac_status )
14114 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14115 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14116 { (exit 1); exit 1; }; }
14118 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14123 pgac_cv_alignof_int=0
14126 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14127 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14128 cat >>confdefs.h <<_ACEOF
14129 #define ALIGNOF_INT $pgac_cv_alignof_int
14133 echo "$as_me:$LINENO: checking for long" >&5
14134 echo $ECHO_N "checking for long... $ECHO_C" >&6
14135 if test "${ac_cv_type_long+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 #include "confdefs.h"
14141 $ac_includes_default
14142 #ifdef F77_DUMMY_MAIN
14143 # ifdef __cplusplus
14146 int F77_DUMMY_MAIN() { return 1; }
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_cv_type_long=yes
14173 echo "$as_me: failed program was:" >&5
14174 cat conftest.$ac_ext >&5
14177 rm -f conftest.$ac_objext conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14180 echo "${ECHO_T}$ac_cv_type_long" >&6
14182 echo "$as_me:$LINENO: checking alignment of long" >&5
14183 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14184 if test "${pgac_cv_alignof_long+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 if test "$ac_cv_type_long" = yes; then
14188 if test "$cross_compiling" = yes; then
14189 # Depending upon the size, compute the lo and hi bounds.
14190 cat >conftest.$ac_ext <<_ACEOF
14191 #line $LINENO "configure"
14192 #include "confdefs.h"
14193 $ac_includes_default
14194 struct { char filler; long field; } pgac_struct;
14195 #ifdef F77_DUMMY_MAIN
14196 # ifdef __cplusplus
14199 int F77_DUMMY_MAIN() { return 1; }
14204 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14211 rm -f conftest.$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 (eval $ac_compile) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14225 cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 #include "confdefs.h"
14228 $ac_includes_default
14229 struct { char filler; long field; } pgac_struct;
14230 #ifdef F77_DUMMY_MAIN
14231 # ifdef __cplusplus
14234 int F77_DUMMY_MAIN() { return 1; }
14239 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_hi=$ac_mid; break
14260 echo "$as_me: failed program was:" >&5
14261 cat conftest.$ac_ext >&5
14262 ac_lo=`expr $ac_mid + 1`
14263 if test $ac_lo -le $ac_mid; then
14267 ac_mid=`expr 2 '*' $ac_mid + 1`
14269 rm -f conftest.$ac_objext conftest.$ac_ext
14272 echo "$as_me: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14274 cat >conftest.$ac_ext <<_ACEOF
14275 #line $LINENO "configure"
14276 #include "confdefs.h"
14277 $ac_includes_default
14278 struct { char filler; long field; } pgac_struct;
14279 #ifdef F77_DUMMY_MAIN
14280 # ifdef __cplusplus
14283 int F77_DUMMY_MAIN() { return 1; }
14288 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14295 rm -f conftest.$ac_objext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297 (eval $ac_compile) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 $ac_includes_default
14313 struct { char filler; long field; } pgac_struct;
14314 #ifdef F77_DUMMY_MAIN
14315 # ifdef __cplusplus
14318 int F77_DUMMY_MAIN() { return 1; }
14323 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14330 rm -f conftest.$ac_objext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332 (eval $ac_compile) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 ac_lo=$ac_mid; break
14344 echo "$as_me: failed program was:" >&5
14345 cat conftest.$ac_ext >&5
14346 ac_hi=`expr '(' $ac_mid ')' - 1`
14347 if test $ac_mid -le $ac_hi; then
14351 ac_mid=`expr 2 '*' $ac_mid`
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14362 rm -f conftest.$ac_objext conftest.$ac_ext
14363 # Binary search between lo and hi bounds.
14364 while test "x$ac_lo" != "x$ac_hi"; do
14365 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14366 cat >conftest.$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14368 #include "confdefs.h"
14369 $ac_includes_default
14370 struct { char filler; long field; } pgac_struct;
14371 #ifdef F77_DUMMY_MAIN
14372 # ifdef __cplusplus
14375 int F77_DUMMY_MAIN() { return 1; }
14380 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -s conftest.$ac_objext'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14401 echo "$as_me: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 ac_lo=`expr '(' $ac_mid ')' + 1`
14405 rm -f conftest.$ac_objext conftest.$ac_ext
14408 ?*) pgac_cv_alignof_long=$ac_lo;;
14409 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14410 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14411 { (exit 1); exit 1; }; } ;;
14414 if test "$cross_compiling" = yes; then
14415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14416 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14417 { (exit 1); exit 1; }; }
14419 cat >conftest.$ac_ext <<_ACEOF
14420 #line $LINENO "configure"
14421 #include "confdefs.h"
14422 $ac_includes_default
14423 struct { char filler; long field; } pgac_struct;
14424 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14425 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14427 #include <stdlib.h>
14428 #ifdef F77_DUMMY_MAIN
14429 # ifdef __cplusplus
14432 int F77_DUMMY_MAIN() { return 1; }
14438 FILE *f = fopen ("conftest.val", "w");
14441 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14443 long i = longval ();
14444 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14446 fprintf (f, "%ld\n", i);
14450 unsigned long i = ulongval ();
14451 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14453 fprintf (f, "%lu\n", i);
14455 exit (ferror (f) || fclose (f) != 0);
14461 rm -f conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 pgac_cv_alignof_long=`cat conftest.val`
14474 echo "$as_me: program exited with status $ac_status" >&5
14475 echo "$as_me: failed program was:" >&5
14476 cat conftest.$ac_ext >&5
14477 ( exit $ac_status )
14478 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14479 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14480 { (exit 1); exit 1; }; }
14482 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14487 pgac_cv_alignof_long=0
14490 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14491 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14492 cat >>confdefs.h <<_ACEOF
14493 #define ALIGNOF_LONG $pgac_cv_alignof_long
14497 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14498 echo "$as_me:$LINENO: checking for long long int" >&5
14499 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14500 if test "${ac_cv_type_long_long_int+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 cat >conftest.$ac_ext <<_ACEOF
14504 #line $LINENO "configure"
14505 #include "confdefs.h"
14506 $ac_includes_default
14507 #ifdef F77_DUMMY_MAIN
14508 # ifdef __cplusplus
14511 int F77_DUMMY_MAIN() { return 1; }
14516 if ((long long int *) 0)
14518 if (sizeof (long long int))
14524 rm -f conftest.$ac_objext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526 (eval $ac_compile) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -s conftest.$ac_objext'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_cv_type_long_long_int=yes
14538 echo "$as_me: failed program was:" >&5
14539 cat conftest.$ac_ext >&5
14540 ac_cv_type_long_long_int=no
14542 rm -f conftest.$ac_objext conftest.$ac_ext
14544 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14545 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14547 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14548 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14549 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 if test "$ac_cv_type_long_long_int" = yes; then
14553 if test "$cross_compiling" = yes; then
14554 # Depending upon the size, compute the lo and hi bounds.
14555 cat >conftest.$ac_ext <<_ACEOF
14556 #line $LINENO "configure"
14557 #include "confdefs.h"
14558 $ac_includes_default
14559 struct { char filler; long long int field; } pgac_struct;
14560 #ifdef F77_DUMMY_MAIN
14561 # ifdef __cplusplus
14564 int F77_DUMMY_MAIN() { return 1; }
14569 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14576 rm -f conftest.$ac_objext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14578 (eval $ac_compile) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14590 cat >conftest.$ac_ext <<_ACEOF
14591 #line $LINENO "configure"
14592 #include "confdefs.h"
14593 $ac_includes_default
14594 struct { char filler; long long int field; } pgac_struct;
14595 #ifdef F77_DUMMY_MAIN
14596 # ifdef __cplusplus
14599 int F77_DUMMY_MAIN() { return 1; }
14604 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14611 rm -f conftest.$ac_objext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -s conftest.$ac_objext'
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ac_hi=$ac_mid; break
14625 echo "$as_me: failed program was:" >&5
14626 cat conftest.$ac_ext >&5
14627 ac_lo=`expr $ac_mid + 1`
14628 if test $ac_lo -le $ac_mid; then
14632 ac_mid=`expr 2 '*' $ac_mid + 1`
14634 rm -f conftest.$ac_objext conftest.$ac_ext
14637 echo "$as_me: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14639 cat >conftest.$ac_ext <<_ACEOF
14640 #line $LINENO "configure"
14641 #include "confdefs.h"
14642 $ac_includes_default
14643 struct { char filler; long long int field; } pgac_struct;
14644 #ifdef F77_DUMMY_MAIN
14645 # ifdef __cplusplus
14648 int F77_DUMMY_MAIN() { return 1; }
14653 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14674 cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14676 #include "confdefs.h"
14677 $ac_includes_default
14678 struct { char filler; long long int field; } pgac_struct;
14679 #ifdef F77_DUMMY_MAIN
14680 # ifdef __cplusplus
14683 int F77_DUMMY_MAIN() { return 1; }
14688 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14695 rm -f conftest.$ac_objext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697 (eval $ac_compile) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -s conftest.$ac_objext'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_lo=$ac_mid; break
14709 echo "$as_me: failed program was:" >&5
14710 cat conftest.$ac_ext >&5
14711 ac_hi=`expr '(' $ac_mid ')' - 1`
14712 if test $ac_mid -le $ac_hi; then
14716 ac_mid=`expr 2 '*' $ac_mid`
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14725 rm -f conftest.$ac_objext conftest.$ac_ext
14727 rm -f conftest.$ac_objext conftest.$ac_ext
14728 # Binary search between lo and hi bounds.
14729 while test "x$ac_lo" != "x$ac_hi"; do
14730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14731 cat >conftest.$ac_ext <<_ACEOF
14732 #line $LINENO "configure"
14733 #include "confdefs.h"
14734 $ac_includes_default
14735 struct { char filler; long long int field; } pgac_struct;
14736 #ifdef F77_DUMMY_MAIN
14737 # ifdef __cplusplus
14740 int F77_DUMMY_MAIN() { return 1; }
14745 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14766 echo "$as_me: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14768 ac_lo=`expr '(' $ac_mid ')' + 1`
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14773 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14774 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14775 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14776 { (exit 1); exit 1; }; } ;;
14779 if test "$cross_compiling" = yes; then
14780 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14781 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14782 { (exit 1); exit 1; }; }
14784 cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14786 #include "confdefs.h"
14787 $ac_includes_default
14788 struct { char filler; long long int field; } pgac_struct;
14789 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14790 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14792 #include <stdlib.h>
14793 #ifdef F77_DUMMY_MAIN
14794 # ifdef __cplusplus
14797 int F77_DUMMY_MAIN() { return 1; }
14803 FILE *f = fopen ("conftest.val", "w");
14806 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14808 long i = longval ();
14809 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14811 fprintf (f, "%ld\n", i);
14815 unsigned long i = ulongval ();
14816 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14818 fprintf (f, "%lu\n", i);
14820 exit (ferror (f) || fclose (f) != 0);
14826 rm -f conftest$ac_exeext
14827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14828 (eval $ac_link) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 pgac_cv_alignof_long_long_int=`cat conftest.val`
14839 echo "$as_me: program exited with status $ac_status" >&5
14840 echo "$as_me: failed program was:" >&5
14841 cat conftest.$ac_ext >&5
14842 ( exit $ac_status )
14843 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14844 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14845 { (exit 1); exit 1; }; }
14847 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14852 pgac_cv_alignof_long_long_int=0
14855 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14856 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14857 cat >>confdefs.h <<_ACEOF
14858 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14863 echo "$as_me:$LINENO: checking for double" >&5
14864 echo $ECHO_N "checking for double... $ECHO_C" >&6
14865 if test "${ac_cv_type_double+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 cat >conftest.$ac_ext <<_ACEOF
14869 #line $LINENO "configure"
14870 #include "confdefs.h"
14871 $ac_includes_default
14872 #ifdef F77_DUMMY_MAIN
14873 # ifdef __cplusplus
14876 int F77_DUMMY_MAIN() { return 1; }
14883 if (sizeof (double))
14889 rm -f conftest.$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_type_double=yes
14903 echo "$as_me: failed program was:" >&5
14904 cat conftest.$ac_ext >&5
14905 ac_cv_type_double=no
14907 rm -f conftest.$ac_objext conftest.$ac_ext
14909 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14910 echo "${ECHO_T}$ac_cv_type_double" >&6
14912 echo "$as_me:$LINENO: checking alignment of double" >&5
14913 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14914 if test "${pgac_cv_alignof_double+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 if test "$ac_cv_type_double" = yes; then
14918 if test "$cross_compiling" = yes; then
14919 # Depending upon the size, compute the lo and hi bounds.
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14922 #include "confdefs.h"
14923 $ac_includes_default
14924 struct { char filler; double field; } pgac_struct;
14925 #ifdef F77_DUMMY_MAIN
14926 # ifdef __cplusplus
14929 int F77_DUMMY_MAIN() { return 1; }
14934 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943 (eval $ac_compile) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14955 cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14957 #include "confdefs.h"
14958 $ac_includes_default
14959 struct { char filler; double field; } pgac_struct;
14960 #ifdef F77_DUMMY_MAIN
14961 # ifdef __cplusplus
14964 int F77_DUMMY_MAIN() { return 1; }
14969 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14976 rm -f conftest.$ac_objext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978 (eval $ac_compile) 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_hi=$ac_mid; break
14990 echo "$as_me: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14992 ac_lo=`expr $ac_mid + 1`
14993 if test $ac_lo -le $ac_mid; then
14997 ac_mid=`expr 2 '*' $ac_mid + 1`
14999 rm -f conftest.$ac_objext conftest.$ac_ext
15002 echo "$as_me: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15004 cat >conftest.$ac_ext <<_ACEOF
15005 #line $LINENO "configure"
15006 #include "confdefs.h"
15007 $ac_includes_default
15008 struct { char filler; double field; } pgac_struct;
15009 #ifdef F77_DUMMY_MAIN
15010 # ifdef __cplusplus
15013 int F77_DUMMY_MAIN() { return 1; }
15018 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15025 rm -f conftest.$ac_objext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027 (eval $ac_compile) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -s conftest.$ac_objext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15039 cat >conftest.$ac_ext <<_ACEOF
15040 #line $LINENO "configure"
15041 #include "confdefs.h"
15042 $ac_includes_default
15043 struct { char filler; double field; } pgac_struct;
15044 #ifdef F77_DUMMY_MAIN
15045 # ifdef __cplusplus
15048 int F77_DUMMY_MAIN() { return 1; }
15053 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15060 rm -f conftest.$ac_objext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15062 (eval $ac_compile) 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -s conftest.$ac_objext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 ac_lo=$ac_mid; break
15074 echo "$as_me: failed program was:" >&5
15075 cat conftest.$ac_ext >&5
15076 ac_hi=`expr '(' $ac_mid ')' - 1`
15077 if test $ac_mid -le $ac_hi; then
15081 ac_mid=`expr 2 '*' $ac_mid`
15083 rm -f conftest.$ac_objext conftest.$ac_ext
15086 echo "$as_me: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15090 rm -f conftest.$ac_objext conftest.$ac_ext
15092 rm -f conftest.$ac_objext conftest.$ac_ext
15093 # Binary search between lo and hi bounds.
15094 while test "x$ac_lo" != "x$ac_hi"; do
15095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15096 cat >conftest.$ac_ext <<_ACEOF
15097 #line $LINENO "configure"
15098 #include "confdefs.h"
15099 $ac_includes_default
15100 struct { char filler; double field; } pgac_struct;
15101 #ifdef F77_DUMMY_MAIN
15102 # ifdef __cplusplus
15105 int F77_DUMMY_MAIN() { return 1; }
15110 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15117 rm -f conftest.$ac_objext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15119 (eval $ac_compile) 2>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15131 echo "$as_me: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15133 ac_lo=`expr '(' $ac_mid ')' + 1`
15135 rm -f conftest.$ac_objext conftest.$ac_ext
15138 ?*) pgac_cv_alignof_double=$ac_lo;;
15139 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15140 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15141 { (exit 1); exit 1; }; } ;;
15144 if test "$cross_compiling" = yes; then
15145 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15146 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15147 { (exit 1); exit 1; }; }
15149 cat >conftest.$ac_ext <<_ACEOF
15150 #line $LINENO "configure"
15151 #include "confdefs.h"
15152 $ac_includes_default
15153 struct { char filler; double field; } pgac_struct;
15154 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15155 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15157 #include <stdlib.h>
15158 #ifdef F77_DUMMY_MAIN
15159 # ifdef __cplusplus
15162 int F77_DUMMY_MAIN() { return 1; }
15168 FILE *f = fopen ("conftest.val", "w");
15171 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15173 long i = longval ();
15174 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15176 fprintf (f, "%ld\n", i);
15180 unsigned long i = ulongval ();
15181 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15183 fprintf (f, "%lu\n", i);
15185 exit (ferror (f) || fclose (f) != 0);
15191 rm -f conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15202 pgac_cv_alignof_double=`cat conftest.val`
15204 echo "$as_me: program exited with status $ac_status" >&5
15205 echo "$as_me: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 ( exit $ac_status )
15208 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15209 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15210 { (exit 1); exit 1; }; }
15212 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15217 pgac_cv_alignof_double=0
15220 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15221 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15222 cat >>confdefs.h <<_ACEOF
15223 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15228 # Compute maximum alignment of any basic type.
15229 # We assume long's alignment is at least as strong as char, short, or int;
15230 # but we must check long long (if it exists) and double.
15232 MAX_ALIGNOF=$pgac_cv_alignof_long
15233 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15234 MAX_ALIGNOF=$pgac_cv_alignof_double
15236 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15237 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15240 cat >>confdefs.h <<_ACEOF
15241 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15246 # Some platforms predefine the types int8, int16, etc. Only check
15247 # a (hopefully) representative subset.
15248 echo "$as_me:$LINENO: checking for int8" >&5
15249 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15250 if test "${ac_cv_type_int8+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 cat >conftest.$ac_ext <<_ACEOF
15254 #line $LINENO "configure"
15255 #include "confdefs.h"
15257 #ifdef HAVE_SUPPORTDEFS_H
15258 #include <SupportDefs.h>
15261 #ifdef F77_DUMMY_MAIN
15262 # ifdef __cplusplus
15265 int F77_DUMMY_MAIN() { return 1; }
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 ac_cv_type_int8=yes
15292 echo "$as_me: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15298 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15299 echo "${ECHO_T}$ac_cv_type_int8" >&6
15300 if test $ac_cv_type_int8 = yes; then
15302 cat >>confdefs.h <<_ACEOF
15303 #define HAVE_INT8 1
15308 echo "$as_me:$LINENO: checking for uint8" >&5
15309 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15310 if test "${ac_cv_type_uint8+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 cat >conftest.$ac_ext <<_ACEOF
15314 #line $LINENO "configure"
15315 #include "confdefs.h"
15317 #ifdef HAVE_SUPPORTDEFS_H
15318 #include <SupportDefs.h>
15321 #ifdef F77_DUMMY_MAIN
15322 # ifdef __cplusplus
15325 int F77_DUMMY_MAIN() { return 1; }
15332 if (sizeof (uint8))
15338 rm -f conftest.$ac_objext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_cv_type_uint8=yes
15352 echo "$as_me: failed program was:" >&5
15353 cat conftest.$ac_ext >&5
15354 ac_cv_type_uint8=no
15356 rm -f conftest.$ac_objext conftest.$ac_ext
15358 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15359 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15360 if test $ac_cv_type_uint8 = yes; then
15362 cat >>confdefs.h <<_ACEOF
15363 #define HAVE_UINT8 1
15368 echo "$as_me:$LINENO: checking for int64" >&5
15369 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15370 if test "${ac_cv_type_int64+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15375 #include "confdefs.h"
15377 #ifdef HAVE_SUPPORTDEFS_H
15378 #include <SupportDefs.h>
15381 #ifdef F77_DUMMY_MAIN
15382 # ifdef __cplusplus
15385 int F77_DUMMY_MAIN() { return 1; }
15392 if (sizeof (int64))
15398 rm -f conftest.$ac_objext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15400 (eval $ac_compile) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try='test -s conftest.$ac_objext'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_cv_type_int64=yes
15412 echo "$as_me: failed program was:" >&5
15413 cat conftest.$ac_ext >&5
15414 ac_cv_type_int64=no
15416 rm -f conftest.$ac_objext conftest.$ac_ext
15418 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15419 echo "${ECHO_T}$ac_cv_type_int64" >&6
15420 if test $ac_cv_type_int64 = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define HAVE_INT64 1
15428 echo "$as_me:$LINENO: checking for uint64" >&5
15429 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15430 if test "${ac_cv_type_uint64+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15435 #include "confdefs.h"
15437 #ifdef HAVE_SUPPORTDEFS_H
15438 #include <SupportDefs.h>
15441 #ifdef F77_DUMMY_MAIN
15442 # ifdef __cplusplus
15445 int F77_DUMMY_MAIN() { return 1; }
15452 if (sizeof (uint64))
15458 rm -f conftest.$ac_objext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15460 (eval $ac_compile) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15470 ac_cv_type_uint64=yes
15472 echo "$as_me: failed program was:" >&5
15473 cat conftest.$ac_ext >&5
15474 ac_cv_type_uint64=no
15476 rm -f conftest.$ac_objext conftest.$ac_ext
15478 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15479 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15480 if test $ac_cv_type_uint64 = yes; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_UINT64 1
15490 # We also check for sig_atomic_t, which *should* be defined per ANSI
15491 # C, but is missing on some old platforms.
15492 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15493 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15494 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 #include "confdefs.h"
15500 #include <signal.h>
15502 #ifdef F77_DUMMY_MAIN
15503 # ifdef __cplusplus
15506 int F77_DUMMY_MAIN() { return 1; }
15511 if ((sig_atomic_t *) 0)
15513 if (sizeof (sig_atomic_t))
15519 rm -f conftest.$ac_objext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521 (eval $ac_compile) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -s conftest.$ac_objext'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_cv_type_sig_atomic_t=yes
15533 echo "$as_me: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 ac_cv_type_sig_atomic_t=no
15537 rm -f conftest.$ac_objext conftest.$ac_ext
15539 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15540 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15541 if test $ac_cv_type_sig_atomic_t = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_SIG_ATOMIC_T 1
15552 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15553 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15554 if test "${pgac_cv_func_posix_signals+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 cat >conftest.$ac_ext <<_ACEOF
15558 #line $LINENO "configure"
15559 #include "confdefs.h"
15560 #include <signal.h>
15562 #ifdef F77_DUMMY_MAIN
15563 # ifdef __cplusplus
15566 int F77_DUMMY_MAIN() { return 1; }
15571 struct sigaction act, oact;
15572 sigemptyset(&act.sa_mask);
15573 act.sa_flags = SA_RESTART;
15574 sigaction(0, &act, &oact);
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -s conftest$ac_exeext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 pgac_cv_func_posix_signals=yes
15593 echo "$as_me: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15595 pgac_cv_func_posix_signals=no
15597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15599 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15600 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15601 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define HAVE_POSIX_SIGNALS
15608 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15612 if test "$enable_nls" = yes ; then
15614 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15615 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15616 if test "${ac_cv_search_gettext+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 ac_func_search_save_LIBS=$LIBS
15620 ac_cv_search_gettext=no
15621 cat >conftest.$ac_ext <<_ACEOF
15622 #line $LINENO "configure"
15623 #include "confdefs.h"
15625 /* Override any gcc2 internal prototype to avoid an error. */
15629 /* We use char because int might match the return type of a gcc2
15630 builtin and then its argument prototype would still apply. */
15632 #ifdef F77_DUMMY_MAIN
15633 # ifdef __cplusplus
15636 int F77_DUMMY_MAIN() { return 1; }
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648 (eval $ac_link) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -s conftest$ac_exeext'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_cv_search_gettext="none required"
15660 echo "$as_me: failed program was:" >&5
15661 cat conftest.$ac_ext >&5
15663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15664 if test "$ac_cv_search_gettext" = no; then
15665 for ac_lib in intl; do
15666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15667 cat >conftest.$ac_ext <<_ACEOF
15668 #line $LINENO "configure"
15669 #include "confdefs.h"
15671 /* Override any gcc2 internal prototype to avoid an error. */
15675 /* We use char because int might match the return type of a gcc2
15676 builtin and then its argument prototype would still apply. */
15678 #ifdef F77_DUMMY_MAIN
15679 # ifdef __cplusplus
15682 int F77_DUMMY_MAIN() { return 1; }
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694 (eval $ac_link) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -s conftest$ac_exeext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_cv_search_gettext="-l$ac_lib"
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15713 LIBS=$ac_func_search_save_LIBS
15715 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15716 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15717 if test "$ac_cv_search_gettext" != no; then
15718 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15721 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15722 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15723 { (exit 1); exit 1; }; }
15726 if test "${ac_cv_header_libintl_h+set}" = set; then
15727 echo "$as_me:$LINENO: checking for libintl.h" >&5
15728 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15729 if test "${ac_cv_header_libintl_h+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15733 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15735 # Is the header compilable?
15736 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15737 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15738 cat >conftest.$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 #include "confdefs.h"
15741 $ac_includes_default
15742 #include <libintl.h>
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -s conftest.$ac_objext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler=yes
15758 echo "$as_me: failed program was:" >&5
15759 cat conftest.$ac_ext >&5
15760 ac_header_compiler=no
15762 rm -f conftest.$ac_objext conftest.$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6
15766 # Is the header present?
15767 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15768 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 #include "confdefs.h"
15772 #include <libintl.h>
15774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15777 egrep -v '^ *\+' conftest.er1 >conftest.err
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } >/dev/null; then
15782 if test -s conftest.err; then
15783 ac_cpp_err=$ac_c_preproc_warn_flag
15790 if test -z "$ac_cpp_err"; then
15791 ac_header_preproc=yes
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 ac_header_preproc=no
15797 rm -f conftest.err conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15799 echo "${ECHO_T}$ac_header_preproc" >&6
15801 # So? What about this header?
15802 case $ac_header_compiler:$ac_header_preproc in
15804 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15805 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15809 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15814 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15816 echo "$as_me:$LINENO: checking for libintl.h" >&5
15817 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15818 if test "${ac_cv_header_libintl_h+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 ac_cv_header_libintl_h=$ac_header_preproc
15823 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15824 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15827 if test $ac_cv_header_libintl_h = yes; then
15830 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15831 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15832 { (exit 1); exit 1; }; }
15836 for ac_prog in msgfmt
15838 # Extract the first word of "$ac_prog", so it can be a program name with args.
15839 set dummy $ac_prog; ac_word=$2
15840 echo "$as_me:$LINENO: checking for $ac_word" >&5
15841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15842 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 if test -n "$MSGFMT"; then
15846 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15849 for as_dir in $PATH
15852 test -z "$as_dir" && as_dir=.
15853 for ac_exec_ext in '' $ac_executable_extensions; do
15854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15855 ac_cv_prog_MSGFMT="$ac_prog"
15856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15864 MSGFMT=$ac_cv_prog_MSGFMT
15865 if test -n "$MSGFMT"; then
15866 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15867 echo "${ECHO_T}$MSGFMT" >&6
15869 echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15873 test -n "$MSGFMT" && break
15876 if test -z "$MSGFMT"; then
15877 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15878 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15879 { (exit 1); exit 1; }; }
15881 for ac_prog in msgmerge
15883 # Extract the first word of "$ac_prog", so it can be a program name with args.
15884 set dummy $ac_prog; ac_word=$2
15885 echo "$as_me:$LINENO: checking for $ac_word" >&5
15886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15887 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 if test -n "$MSGMERGE"; then
15891 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15894 for as_dir in $PATH
15897 test -z "$as_dir" && as_dir=.
15898 for ac_exec_ext in '' $ac_executable_extensions; do
15899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15900 ac_cv_prog_MSGMERGE="$ac_prog"
15901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 MSGMERGE=$ac_cv_prog_MSGMERGE
15910 if test -n "$MSGMERGE"; then
15911 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15912 echo "${ECHO_T}$MSGMERGE" >&6
15914 echo "$as_me:$LINENO: result: no" >&5
15915 echo "${ECHO_T}no" >&6
15918 test -n "$MSGMERGE" && break
15921 for ac_prog in xgettext
15923 # Extract the first word of "$ac_prog", so it can be a program name with args.
15924 set dummy $ac_prog; ac_word=$2
15925 echo "$as_me:$LINENO: checking for $ac_word" >&5
15926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15927 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 if test -n "$XGETTEXT"; then
15931 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15934 for as_dir in $PATH
15937 test -z "$as_dir" && as_dir=.
15938 for ac_exec_ext in '' $ac_executable_extensions; do
15939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15940 ac_cv_prog_XGETTEXT="$ac_prog"
15941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15949 XGETTEXT=$ac_cv_prog_XGETTEXT
15950 if test -n "$XGETTEXT"; then
15951 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15952 echo "${ECHO_T}$XGETTEXT" >&6
15954 echo "$as_me:$LINENO: result: no" >&5
15955 echo "${ECHO_T}no" >&6
15958 test -n "$XGETTEXT" && break
15962 # Note: share/locale is always the default, independent of $datadir
15963 localedir='${prefix}/share/locale'
15964 if test x"$prefix" = x"NONE"; then
15965 exp_localedir="$ac_default_prefix/share/locale"
15967 exp_localedir="$prefix/share/locale"
15972 cat >>confdefs.h <<_ACEOF
15973 #define LOCALEDIR "$exp_localedir"
15979 if test "$with_CXX" = yes; then
15983 ac_cpp='$CXXCPP $CPPFLAGS'
15984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15988 if test "${ac_cv_header_string+set}" = set; then
15989 echo "$as_me:$LINENO: checking for string" >&5
15990 echo $ECHO_N "checking for string... $ECHO_C" >&6
15991 if test "${ac_cv_header_string+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15995 echo "${ECHO_T}$ac_cv_header_string" >&6
15997 # Is the header compilable?
15998 echo "$as_me:$LINENO: checking string usability" >&5
15999 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16001 #line $LINENO "configure"
16002 #include "confdefs.h"
16003 $ac_includes_default
16006 rm -f conftest.$ac_objext
16007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16008 (eval $ac_compile) 2>&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -s conftest.$ac_objext'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_header_compiler=yes
16020 echo "$as_me: failed program was:" >&5
16021 cat conftest.$ac_ext >&5
16022 ac_header_compiler=no
16024 rm -f conftest.$ac_objext conftest.$ac_ext
16025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16026 echo "${ECHO_T}$ac_header_compiler" >&6
16028 # Is the header present?
16029 echo "$as_me:$LINENO: checking string presence" >&5
16030 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16031 cat >conftest.$ac_ext <<_ACEOF
16032 #line $LINENO "configure"
16033 #include "confdefs.h"
16036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16039 egrep -v '^ *\+' conftest.er1 >conftest.err
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } >/dev/null; then
16044 if test -s conftest.err; then
16045 ac_cpp_err=$ac_cxx_preproc_warn_flag
16052 if test -z "$ac_cpp_err"; then
16053 ac_header_preproc=yes
16055 echo "$as_me: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16057 ac_header_preproc=no
16059 rm -f conftest.err conftest.$ac_ext
16060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16061 echo "${ECHO_T}$ac_header_preproc" >&6
16063 # So? What about this header?
16064 case $ac_header_compiler:$ac_header_preproc in
16066 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16067 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16069 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16071 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16072 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16074 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16076 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16078 echo "$as_me:$LINENO: checking for string" >&5
16079 echo $ECHO_N "checking for string... $ECHO_C" >&6
16080 if test "${ac_cv_header_string+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 ac_cv_header_string=$ac_header_preproc
16085 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16086 echo "${ECHO_T}$ac_cv_header_string" >&6
16089 if test $ac_cv_header_string = yes; then
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_CXX_STRING_HEADER 1
16096 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16097 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16098 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16103 #include "confdefs.h"
16105 #include <stdlib.h>
16106 #include <string.h>
16108 #ifdef F77_DUMMY_MAIN
16109 # ifdef __cplusplus
16112 int F77_DUMMY_MAIN() { return 1; }
16117 string foo = "test"
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -s conftest.$ac_objext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 pgac_cv_class_string_in_string_h=yes
16136 echo "$as_me: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 pgac_cv_class_string_in_string_h=no
16140 rm -f conftest.$ac_objext conftest.$ac_ext
16142 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16143 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16145 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16146 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16147 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16148 { (exit 1); exit 1; }; }
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16161 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16162 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16163 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 ac_cpp='$CXXCPP $CPPFLAGS'
16169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16173 cat >conftest.$ac_ext <<_ACEOF
16174 #line $LINENO "configure"
16175 #include "confdefs.h"
16177 #include <stdlib.h>
16178 #ifdef HAVE_CXX_STRING_HEADER
16181 using namespace std;
16183 #ifdef F77_DUMMY_MAIN
16184 # ifdef __cplusplus
16187 int F77_DUMMY_MAIN() { return 1; }
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 pgac_cv_cxx_namespace_std=yes
16211 echo "$as_me: failed program was:" >&5
16212 cat conftest.$ac_ext >&5
16213 pgac_cv_cxx_namespace_std=no
16215 rm -f conftest.$ac_objext conftest.$ac_ext
16217 ac_cpp='$CPP $CPPFLAGS'
16218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16223 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16224 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16226 if test $pgac_cv_cxx_namespace_std = yes ; then
16228 cat >>confdefs.h <<\_ACEOF
16229 #define HAVE_NAMESPACE_STD 1
16236 # Check for Tcl configuration script tclConfig.sh
16237 if test "$with_tcl" = yes; then
16238 for ac_prog in tclsh tcl
16240 # Extract the first word of "$ac_prog", so it can be a program name with args.
16241 set dummy $ac_prog; ac_word=$2
16242 echo "$as_me:$LINENO: checking for $ac_word" >&5
16243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16244 if test "${ac_cv_path_TCLSH+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16253 for as_dir in $PATH
16256 test -z "$as_dir" && as_dir=.
16257 for ac_exec_ext in '' $ac_executable_extensions; do
16258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16259 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16269 TCLSH=$ac_cv_path_TCLSH
16271 if test -n "$TCLSH"; then
16272 echo "$as_me:$LINENO: result: $TCLSH" >&5
16273 echo "${ECHO_T}$TCLSH" >&6
16275 echo "$as_me:$LINENO: result: no" >&5
16276 echo "${ECHO_T}no" >&6
16279 test -n "$TCLSH" && break
16282 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16283 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16284 # Let user override test
16285 if test -z "$TCL_CONFIG_SH"; then
16286 pgac_test_dirs="$with_tclconfig"
16288 set X $pgac_test_dirs; shift
16289 if test $# -eq 0; then
16290 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16291 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16292 { (exit 1); exit 1; }; }
16293 set X `echo 'puts $auto_path' | $TCLSH`; shift
16297 if test -r "$pgac_dir/tclConfig.sh"; then
16298 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16304 if test -z "$TCL_CONFIG_SH"; then
16305 echo "$as_me:$LINENO: result: no" >&5
16306 echo "${ECHO_T}no" >&6
16307 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16308 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16309 { (exit 1); exit 1; }; }
16311 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16312 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16319 # Check for Tk configuration script tkConfig.sh
16320 if test "$with_tk" = yes; then
16321 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16322 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16323 # Let user override test
16324 if test -z "$TK_CONFIG_SH"; then
16325 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16327 set X $pgac_test_dirs; shift
16328 if test $# -eq 0; then
16329 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16330 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16331 { (exit 1); exit 1; }; }
16332 set X `echo 'puts $auto_path' | $TCLSH`; shift
16336 if test -r "$pgac_dir/tkConfig.sh"; then
16337 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16343 if test -z "$TK_CONFIG_SH"; then
16344 echo "$as_me:$LINENO: result: no" >&5
16345 echo "${ECHO_T}no" >&6
16346 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16347 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16348 { (exit 1); exit 1; }; }
16350 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16351 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16360 # Check for DocBook and tools
16362 for ac_prog in onsgmls nsgmls
16364 # Extract the first word of "$ac_prog", so it can be a program name with args.
16365 set dummy $ac_prog; ac_word=$2
16366 echo "$as_me:$LINENO: checking for $ac_word" >&5
16367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16368 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 if test -n "$NSGMLS"; then
16372 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16375 for as_dir in $PATH
16378 test -z "$as_dir" && as_dir=.
16379 for ac_exec_ext in '' $ac_executable_extensions; do
16380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16381 ac_cv_prog_NSGMLS="$ac_prog"
16382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16390 NSGMLS=$ac_cv_prog_NSGMLS
16391 if test -n "$NSGMLS"; then
16392 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16393 echo "${ECHO_T}$NSGMLS" >&6
16395 echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6
16399 test -n "$NSGMLS" && break
16402 # If you don't have nsgmls you won't get very far, so save the cycles.
16403 if test -n "$NSGMLS"; then
16404 for ac_prog in openjade jade
16406 # Extract the first word of "$ac_prog", so it can be a program name with args.
16407 set dummy $ac_prog; ac_word=$2
16408 echo "$as_me:$LINENO: checking for $ac_word" >&5
16409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16410 if test "${ac_cv_prog_JADE+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16413 if test -n "$JADE"; then
16414 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $PATH
16420 test -z "$as_dir" && as_dir=.
16421 for ac_exec_ext in '' $ac_executable_extensions; do
16422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16423 ac_cv_prog_JADE="$ac_prog"
16424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16432 JADE=$ac_cv_prog_JADE
16433 if test -n "$JADE"; then
16434 echo "$as_me:$LINENO: result: $JADE" >&5
16435 echo "${ECHO_T}$JADE" >&6
16437 echo "$as_me:$LINENO: result: no" >&5
16438 echo "${ECHO_T}no" >&6
16441 test -n "$JADE" && break
16445 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16446 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16447 if test "${pgac_cv_check_docbook+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 cat >conftest.sgml <<EOF
16451 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16453 <title>test</title>
16455 <title>random</title>
16457 <title>testsect</title>
16464 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16465 if test $? -eq 0; then
16466 pgac_cv_check_docbook=yes
16468 pgac_cv_check_docbook=no
16470 rm -f conftest.sgml
16472 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16473 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16475 have_docbook=$pgac_cv_check_docbook
16478 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16479 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16480 if test "${pgac_cv_path_stylesheets+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 if test -n "$DOCBOOKSTYLE"; then
16484 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16486 for pgac_prefix in /usr /usr/local /opt; do
16487 for pgac_infix in share lib; do
16488 for pgac_postfix in \
16489 sgml/stylesheets/nwalsh-modular \
16490 sgml/stylesheets/docbook \
16491 sgml/docbook/dsssl/modular
16493 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16494 if test -r "$pgac_candidate/html/docbook.dsl" \
16495 && test -r "$pgac_candidate/print/docbook.dsl"
16497 pgac_cv_path_stylesheets=$pgac_candidate
16506 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16508 if test -n "$DOCBOOKSTYLE"; then
16509 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16510 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16512 echo "$as_me:$LINENO: result: no" >&5
16513 echo "${ECHO_T}no" >&6
16515 for ac_prog in sgmlspl
16517 # Extract the first word of "$ac_prog", so it can be a program name with args.
16518 set dummy $ac_prog; ac_word=$2
16519 echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16521 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 if test -n "$SGMLSPL"; then
16525 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534 ac_cv_prog_SGMLSPL="$ac_prog"
16535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16543 SGMLSPL=$ac_cv_prog_SGMLSPL
16544 if test -n "$SGMLSPL"; then
16545 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16546 echo "${ECHO_T}$SGMLSPL" >&6
16548 echo "$as_me:$LINENO: result: no" >&5
16549 echo "${ECHO_T}no" >&6
16552 test -n "$SGMLSPL" && break
16558 # prepare build tree if outside source tree
16559 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16560 # Note 2: /bin/pwd might be better than shell's built-in at getting
16561 # a symlink-free name.
16562 if test "$no_create" != yes; then
16563 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16568 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16569 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16570 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16571 || { { echo "$as_me:$LINENO: error: failed" >&5
16572 echo "$as_me: error: failed" >&2;}
16573 { (exit 1); exit 1; }; }
16574 echo "$as_me:$LINENO: result: done" >&5
16575 echo "${ECHO_T}done" >&6
16580 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16583 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}"
16586 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16589 cat >confcache <<\_ACEOF
16590 # This file is a shell script that caches the results of configure
16591 # tests run on this system so they can be shared between configure
16592 # scripts and configure runs, see configure's option --config-cache.
16593 # It is not useful on other systems. If it contains results you don't
16594 # want to keep, you may remove or edit it.
16596 # config.status only pays attention to the cache file if you give it
16597 # the --recheck option to rerun configure.
16599 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16601 # following values.
16605 # The following way of writing the cache mishandles newlines in values,
16606 # but we know of no workaround that is simple, portable, and efficient.
16607 # So, don't put newlines in cache variables' values.
16608 # Ultrix sh set writes to stderr and can't be redirected directly,
16609 # and sets the high bit in the cache file unless we assign to the vars.
16612 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16614 # `set' does not quote correctly, so add quotes (double-quote
16615 # substitution turns \\\\ into \\, and sed turns \\ into \).
16618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16621 # `set' quotes correctly as required by POSIX, so do not add quotes.
16623 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16632 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16634 if cmp -s $cache_file confcache; then :; else
16635 if test -w $cache_file; then
16636 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16637 cat confcache >$cache_file
16639 echo "not updating unwritable cache $cache_file"
16644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16645 # Let make expand exec_prefix.
16646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16650 # trailing colons and then remove the whole line if VPATH becomes empty
16651 # (actually we leave an empty line to preserve line numbers).
16652 if test "x$srcdir" = x.; then
16653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16654 s/:*\$(srcdir):*/:/;
16655 s/:*\${srcdir}:*/:/;
16657 s/^\([^=]*=[ ]*\):*/\1/;
16663 DEFS=-DHAVE_CONFIG_H
16666 : ${CONFIG_STATUS=./config.status}
16667 ac_clean_files_save=$ac_clean_files
16668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16669 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16670 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16671 cat >$CONFIG_STATUS <<_ACEOF
16673 # Generated by $as_me.
16674 # Run this file to recreate the current configuration.
16675 # Compiler output produced by configure, useful for debugging
16676 # configure, is in config.log if it exists.
16679 SHELL=\${CONFIG_SHELL-$SHELL}
16682 cat >>$CONFIG_STATUS <<\_ACEOF
16684 ## --------------------- ##
16685 ## M4sh Initialization. ##
16686 ## --------------------- ##
16688 # Be Bourne compatible
16689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16692 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16697 # Support unset when possible.
16698 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16704 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16705 { $as_unset LANG || test "${LANG+set}" != set; } ||
16706 { LANG=C; export LANG; }
16707 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16708 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16709 { LC_ALL=C; export LC_ALL; }
16710 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16711 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16712 { LC_TIME=C; export LC_TIME; }
16713 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16714 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16715 { LC_CTYPE=C; export LC_CTYPE; }
16716 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16717 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16718 { LANGUAGE=C; export LANGUAGE; }
16719 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16720 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16721 { LC_COLLATE=C; export LC_COLLATE; }
16722 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16723 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16724 { LC_NUMERIC=C; export LC_NUMERIC; }
16725 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16726 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16727 { LC_MESSAGES=C; export LC_MESSAGES; }
16730 # Name of the executable.
16731 as_me=`(basename "$0") 2>/dev/null ||
16732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16733 X"$0" : 'X\(//\)$' \| \
16734 X"$0" : 'X\(/\)$' \| \
16735 . : '\(.\)' 2>/dev/null ||
16737 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16738 /^X\/\(\/\/\)$/{ s//\1/; q; }
16739 /^X\/\(\/\).*/{ s//\1/; q; }
16742 # PATH needs CR, and LINENO needs CR and PATH.
16743 # Avoid depending upon Character Ranges.
16744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16747 as_cr_digits='0123456789'
16748 as_cr_alnum=$as_cr_Letters$as_cr_digits
16750 # The user is always right.
16751 if test "${PATH_SEPARATOR+set}" != set; then
16752 echo "#! /bin/sh" >conftest.sh
16753 echo "exit 0" >>conftest.sh
16754 chmod +x conftest.sh
16755 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16764 as_lineno_1=$LINENO
16765 as_lineno_2=$LINENO
16766 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16767 test "x$as_lineno_1" != "x$as_lineno_2" &&
16768 test "x$as_lineno_3" = "x$as_lineno_2" || {
16769 # Find who we are. Look in the path if we contain no path at all
16772 *[\\/]* ) as_myself=$0 ;;
16773 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16774 for as_dir in $PATH
16777 test -z "$as_dir" && as_dir=.
16778 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16783 # We did not find ourselves, most probably we were run as `sh COMMAND'
16784 # in which case we are not to be found in the path.
16785 if test "x$as_myself" = x; then
16788 if test ! -f "$as_myself"; then
16789 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16790 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16791 { (exit 1); exit 1; }; }
16793 case $CONFIG_SHELL in
16795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16796 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16799 test -z "$as_dir" && as_dir=.
16800 for as_base in sh bash ksh sh5; do
16803 if ("$as_dir/$as_base" -c '
16804 as_lineno_1=$LINENO
16805 as_lineno_2=$LINENO
16806 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16807 test "x$as_lineno_1" != "x$as_lineno_2" &&
16808 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16809 CONFIG_SHELL=$as_dir/$as_base
16810 export CONFIG_SHELL
16811 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16820 # uniformly replaced by the line number. The first 'sed' inserts a
16821 # line-number line before each line; the second 'sed' does the real
16822 # work. The second script uses 'N' to pair each line-number line
16823 # with the numbered line, and appends trailing '-' during
16824 # substitution so that $LINENO is not a special case at line end.
16825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16826 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16827 sed '=' <$as_myself |
16832 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16835 s,^['$as_cr_digits']*\n,,
16836 ' >$as_me.lineno &&
16837 chmod +x $as_me.lineno ||
16838 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16840 { (exit 1); exit 1; }; }
16842 # Don't try to exec as it changes $[0], causing all sort of problems
16843 # (the dirname of $[0] is not the place where we might find the
16844 # original and so on. Autoconf is especially sensible to this).
16846 # Exit status is that of the last command.
16851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16852 *c*,-n*) ECHO_N= ECHO_C='
16854 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16855 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16858 if expr a : '\(a\)' >/dev/null 2>&1; then
16864 rm -f conf$$ conf$$.exe conf$$.file
16866 if ln -s conf$$.file conf$$ 2>/dev/null; then
16867 # We could just check for DJGPP; but this test a) works b) is more generic
16868 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16869 if test -f conf$$.exe; then
16870 # Don't use ln at all; we don't have any links
16875 elif ln conf$$.file conf$$ 2>/dev/null; then
16880 rm -f conf$$ conf$$.exe conf$$.file
16882 as_executable_p="test -f"
16884 # Sed expression to map a string onto a valid CPP name.
16885 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16887 # Sed expression to map a string onto a valid variable name.
16888 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16892 # We need space, tab and new line, in precisely that order.
16898 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16902 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16903 # report actual input values of CONFIG_FILES etc. instead of their
16904 # values after options handling. Logging --version etc. is OK.
16908 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16909 ## Running $as_me. ##
16914 This file was extended by PostgreSQL $as_me 7.3devel, which was
16915 generated by GNU Autoconf 2.53. Invocation command line was
16917 CONFIG_FILES = $CONFIG_FILES
16918 CONFIG_HEADERS = $CONFIG_HEADERS
16919 CONFIG_LINKS = $CONFIG_LINKS
16920 CONFIG_COMMANDS = $CONFIG_COMMANDS
16924 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16928 # Files that config.status was made for.
16929 if test -n "$ac_config_files"; then
16930 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16933 if test -n "$ac_config_headers"; then
16934 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16937 if test -n "$ac_config_links"; then
16938 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16941 if test -n "$ac_config_commands"; then
16942 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16945 cat >>$CONFIG_STATUS <<\_ACEOF
16948 \`$as_me' instantiates files from templates according to the
16949 current configuration.
16951 Usage: $0 [OPTIONS] [FILE]...
16953 -h, --help print this help, then exit
16954 -V, --version print version number, then exit
16955 -d, --debug don't remove temporary files
16956 --recheck update $as_me by reconfiguring in the same conditions
16957 --file=FILE[:TEMPLATE]
16958 instantiate the configuration file FILE
16959 --header=FILE[:TEMPLATE]
16960 instantiate the configuration header FILE
16962 Configuration files:
16965 Configuration headers:
16968 Configuration links:
16971 Report bugs to <bug-autoconf@gnu.org>."
16974 cat >>$CONFIG_STATUS <<_ACEOF
16976 PostgreSQL config.status 7.3devel
16977 configured by $0, generated by GNU Autoconf 2.53,
16978 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16980 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16981 Free Software Foundation, Inc.
16982 This config.status script is free software; the Free Software Foundation
16983 gives unlimited permission to copy, distribute and modify it."
16987 cat >>$CONFIG_STATUS <<\_ACEOF
16988 # If no file are specified by the user, then we need to provide default
16989 # value. By we need to know if files were specified by the user.
16995 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16996 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16998 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17002 *) # This is not an option, so the user has probably given explicit
17004 ac_need_defaults=false;;
17008 # Handling of the options.
17010 cat >>$CONFIG_STATUS <<_ACEOF
17011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17012 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17013 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17015 cat >>$CONFIG_STATUS <<\_ACEOF
17016 --version | --vers* | -V )
17017 echo "$ac_cs_version"; exit 0 ;;
17019 # Conflict between --help and --header
17020 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17021 Try \`$0 --help' for more information." >&5
17022 echo "$as_me: error: ambiguous option: $1
17023 Try \`$0 --help' for more information." >&2;}
17024 { (exit 1); exit 1; }; };;
17025 --help | --hel | -h )
17026 echo "$ac_cs_usage"; exit 0 ;;
17027 --debug | --d* | -d )
17029 --file | --fil | --fi | --f )
17031 CONFIG_FILES="$CONFIG_FILES $1"
17032 ac_need_defaults=false;;
17033 --header | --heade | --head | --hea )
17035 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17036 ac_need_defaults=false;;
17038 # This is an error.
17039 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17040 Try \`$0 --help' for more information." >&5
17041 echo "$as_me: error: unrecognized option: $1
17042 Try \`$0 --help' for more information." >&2;}
17043 { (exit 1); exit 1; }; } ;;
17045 *) ac_config_targets="$ac_config_targets $1" ;;
17057 cat >>$CONFIG_STATUS <<\_ACEOF
17058 for ac_config_target in $ac_config_targets
17060 case "$ac_config_target" in
17061 # Handling of arguments.
17062 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17063 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17064 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17065 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17066 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17067 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17068 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17069 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17070 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17071 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17072 { (exit 1); exit 1; }; };;
17076 # If the user did not use the arguments to specify the items to instantiate,
17077 # then the envvar interface is used. Set only those that are not.
17078 # We use the long form for the default assignment because of an extremely
17079 # bizarre bug on SunOS 4.1.3.
17080 if $ac_need_defaults; then
17081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17083 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17086 # Create a temporary directory, and hook for its removal unless debugging.
17089 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17090 trap '{ (exit 1); exit 1; }' 1 2 13 15
17093 # Create a (secure) tmp directory for tmp files.
17096 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17097 test -n "$tmp" && test -d "$tmp"
17100 tmp=$TMPDIR/cs$$-$RANDOM
17101 (umask 077 && mkdir $tmp)
17104 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17105 { (exit 1); exit 1; }
17110 cat >>$CONFIG_STATUS <<_ACEOF
17113 # CONFIG_FILES section.
17116 # No need to generate the scripts if there are no CONFIG_FILES.
17117 # This happens for instance when ./config.status config.h
17118 if test -n "\$CONFIG_FILES"; then
17119 # Protect against being on the right side of a sed subst in config.status.
17120 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17121 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17122 s,@SHELL@,$SHELL,;t t
17123 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17124 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17125 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17126 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17127 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17128 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17129 s,@exec_prefix@,$exec_prefix,;t t
17130 s,@prefix@,$prefix,;t t
17131 s,@program_transform_name@,$program_transform_name,;t t
17132 s,@bindir@,$bindir,;t t
17133 s,@sbindir@,$sbindir,;t t
17134 s,@libexecdir@,$libexecdir,;t t
17135 s,@datadir@,$datadir,;t t
17136 s,@sysconfdir@,$sysconfdir,;t t
17137 s,@sharedstatedir@,$sharedstatedir,;t t
17138 s,@localstatedir@,$localstatedir,;t t
17139 s,@libdir@,$libdir,;t t
17140 s,@includedir@,$includedir,;t t
17141 s,@oldincludedir@,$oldincludedir,;t t
17142 s,@infodir@,$infodir,;t t
17143 s,@mandir@,$mandir,;t t
17144 s,@build_alias@,$build_alias,;t t
17145 s,@host_alias@,$host_alias,;t t
17146 s,@target_alias@,$target_alias,;t t
17147 s,@DEFS@,$DEFS,;t t
17148 s,@ECHO_C@,$ECHO_C,;t t
17149 s,@ECHO_N@,$ECHO_N,;t t
17150 s,@ECHO_T@,$ECHO_T,;t t
17151 s,@LIBS@,$LIBS,;t t
17152 s,@docdir@,$docdir,;t t
17153 s,@configure_args@,$configure_args,;t t
17154 s,@build@,$build,;t t
17155 s,@build_cpu@,$build_cpu,;t t
17156 s,@build_vendor@,$build_vendor,;t t
17157 s,@build_os@,$build_os,;t t
17158 s,@host@,$host,;t t
17159 s,@host_cpu@,$host_cpu,;t t
17160 s,@host_vendor@,$host_vendor,;t t
17161 s,@host_os@,$host_os,;t t
17162 s,@PORTNAME@,$PORTNAME,;t t
17164 s,@MULTIBYTE@,$MULTIBYTE,;t t
17165 s,@enable_nls@,$enable_nls,;t t
17166 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17167 s,@default_port@,$default_port,;t t
17168 s,@enable_shared@,$enable_shared,;t t
17169 s,@enable_rpath@,$enable_rpath,;t t
17170 s,@enable_debug@,$enable_debug,;t t
17172 s,@CFLAGS@,$CFLAGS,;t t
17173 s,@LDFLAGS@,$LDFLAGS,;t t
17174 s,@CPPFLAGS@,$CPPFLAGS,;t t
17175 s,@ac_ct_CC@,$ac_ct_CC,;t t
17176 s,@EXEEXT@,$EXEEXT,;t t
17177 s,@OBJEXT@,$OBJEXT,;t t
17180 s,@autodepend@,$autodepend,;t t
17181 s,@INCLUDES@,$INCLUDES,;t t
17182 s,@with_tcl@,$with_tcl,;t t
17183 s,@with_tk@,$with_tk,;t t
17184 s,@with_perl@,$with_perl,;t t
17185 s,@with_python@,$with_python,;t t
17187 s,@with_java@,$with_java,;t t
17188 s,@with_krb4@,$with_krb4,;t t
17189 s,@with_krb5@,$with_krb5,;t t
17190 s,@krb_srvtab@,$krb_srvtab,;t t
17191 s,@with_pam@,$with_pam,;t t
17192 s,@with_openssl@,$with_openssl,;t t
17193 s,@enable_odbc@,$enable_odbc,;t t
17194 s,@with_unixodbc@,$with_unixodbc,;t t
17195 s,@with_iodbc@,$with_iodbc,;t t
17196 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17197 s,@ELF_SYS@,$ELF_SYS,;t t
17199 s,@CXXFLAGS@,$CXXFLAGS,;t t
17200 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17201 s,@CXXCPP@,$CXXCPP,;t t
17202 s,@with_CXX@,$with_CXX,;t t
17205 s,@FLEX@,$FLEX,;t t
17206 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17207 s,@LN_S@,$LN_S,;t t
17209 s,@with_gnu_ld@,$with_gnu_ld,;t t
17210 s,@ld_R_works@,$ld_R_works,;t t
17211 s,@RANLIB@,$RANLIB,;t t
17212 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17213 s,@LORDER@,$LORDER,;t t
17215 s,@STRIP@,$STRIP,;t t
17216 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17217 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17218 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17219 s,@YACC@,$YACC,;t t
17220 s,@YFLAGS@,$YFLAGS,;t t
17221 s,@WISH@,$WISH,;t t
17222 s,@PERL@,$PERL,;t t
17223 s,@perl_installsitearch@,$perl_installsitearch,;t t
17224 s,@perl_installsitelib@,$perl_installsitelib,;t t
17225 s,@perl_installman3dir@,$perl_installman3dir,;t t
17226 s,@PYTHON@,$PYTHON,;t t
17227 s,@python_version@,$python_version,;t t
17228 s,@python_prefix@,$python_prefix,;t t
17229 s,@python_execprefix@,$python_execprefix,;t t
17230 s,@python_configdir@,$python_configdir,;t t
17231 s,@python_moduledir@,$python_moduledir,;t t
17232 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17233 s,@python_includespec@,$python_includespec,;t t
17234 s,@python_libspec@,$python_libspec,;t t
17235 s,@MEMCMP@,$MEMCMP,;t t
17236 s,@SNPRINTF@,$SNPRINTF,;t t
17237 s,@ISINF@,$ISINF,;t t
17238 s,@GETRUSAGE@,$GETRUSAGE,;t t
17239 s,@SRANDOM@,$SRANDOM,;t t
17240 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17241 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17242 s,@INET_ATON@,$INET_ATON,;t t
17243 s,@STRERROR@,$STRERROR,;t t
17244 s,@STRDUP@,$STRDUP,;t t
17245 s,@STRTOL@,$STRTOL,;t t
17246 s,@STRTOUL@,$STRTOUL,;t t
17247 s,@STRCASECMP@,$STRCASECMP,;t t
17248 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17249 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17250 s,@MSGFMT@,$MSGFMT,;t t
17251 s,@MSGMERGE@,$MSGMERGE,;t t
17252 s,@XGETTEXT@,$XGETTEXT,;t t
17253 s,@localedir@,$localedir,;t t
17254 s,@TCLSH@,$TCLSH,;t t
17255 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17256 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17257 s,@NSGMLS@,$NSGMLS,;t t
17258 s,@JADE@,$JADE,;t t
17259 s,@have_docbook@,$have_docbook,;t t
17260 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17261 s,@SGMLSPL@,$SGMLSPL,;t t
17262 s,@vpath_build@,$vpath_build,;t t
17267 cat >>$CONFIG_STATUS <<\_ACEOF
17268 # Split the substitutions into bite-sized pieces for seds with
17269 # small command number limits, like on Digital OSF/1 and HP-UX.
17270 ac_max_sed_lines=48
17271 ac_sed_frag=1 # Number of current file.
17272 ac_beg=1 # First line for current file.
17273 ac_end=$ac_max_sed_lines # Line after last line for current file.
17276 while $ac_more_lines; do
17277 if test $ac_beg -gt 1; then
17278 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17280 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17282 if test ! -s $tmp/subs.frag; then
17283 ac_more_lines=false
17285 # The purpose of the label and of the branching condition is to
17286 # speed up the sed processing (if there are no `@' at all, there
17287 # is no need to browse any of the substitutions).
17288 # These are the two extra sed commands mentioned above.
17290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17291 if test -z "$ac_sed_cmds"; then
17292 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17294 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17296 ac_sed_frag=`expr $ac_sed_frag + 1`
17298 ac_end=`expr $ac_end + $ac_max_sed_lines`
17301 if test -z "$ac_sed_cmds"; then
17304 fi # test -n "$CONFIG_FILES"
17307 cat >>$CONFIG_STATUS <<\_ACEOF
17308 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17311 - | *:- | *:-:* ) # input from stdin
17313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17317 * ) ac_file_in=$ac_file.in ;;
17320 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17323 X"$ac_file" : 'X\(//\)[^/]' \| \
17324 X"$ac_file" : 'X\(//\)$' \| \
17325 X"$ac_file" : 'X\(/\)' \| \
17326 . : '\(.\)' 2>/dev/null ||
17328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17330 /^X\(\/\/\)$/{ s//\1/; q; }
17331 /^X\(\/\).*/{ s//\1/; q; }
17333 { case "$ac_dir" in
17334 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17338 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17339 case $as_mkdir_dir in
17340 # Skip DOS drivespec
17341 ?:) as_incr_dir=$as_mkdir_dir ;;
17343 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17344 test -d "$as_incr_dir" ||
17345 mkdir "$as_incr_dir" ||
17346 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17347 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17348 { (exit 1); exit 1; }; }
17355 if test "$ac_dir" != .; then
17356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17357 # A "../" for each directory in $ac_dir_suffix.
17358 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17360 ac_dir_suffix= ac_top_builddir=
17364 .) # No --srcdir option. We are building in place.
17366 if test -z "$ac_top_builddir"; then
17369 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17371 [\\/]* | ?:[\\/]* ) # Absolute path.
17372 ac_srcdir=$srcdir$ac_dir_suffix;
17373 ac_top_srcdir=$srcdir ;;
17374 *) # Relative path.
17375 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17376 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17378 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17380 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17381 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17382 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17383 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17387 if test x"$ac_file" != x-; then
17388 { echo "$as_me:$LINENO: creating $ac_file" >&5
17389 echo "$as_me: creating $ac_file" >&6;}
17392 # Let's still pretend it is `configure' which instantiates (i.e., don't
17393 # use $as_me), people would be surprised to read:
17394 # /* config.h. Generated by config.status. */
17395 if test x"$ac_file" = x-; then
17398 configure_input="$ac_file. "
17400 configure_input=$configure_input"Generated from `echo $ac_file_in |
17401 sed 's,.*/,,'` by configure."
17403 # First look for the input files in the build tree, otherwise in the
17405 ac_file_inputs=`IFS=:
17406 for f in $ac_file_in; do
17408 -) echo $tmp/stdin ;;
17410 # Absolute (can't be DOS-style, as IFS=:)
17411 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17412 echo "$as_me: error: cannot find input file: $f" >&2;}
17413 { (exit 1); exit 1; }; }
17416 if test -f "$f"; then
17419 elif test -f "$srcdir/$f"; then
17424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17425 echo "$as_me: error: cannot find input file: $f" >&2;}
17426 { (exit 1); exit 1; }; }
17429 done` || { (exit 1); exit 1; }
17431 cat >>$CONFIG_STATUS <<_ACEOF
17435 cat >>$CONFIG_STATUS <<\_ACEOF
17437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17438 s,@configure_input@,$configure_input,;t t
17439 s,@srcdir@,$ac_srcdir,;t t
17440 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17441 s,@top_srcdir@,$ac_top_srcdir,;t t
17442 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17443 s,@builddir@,$ac_builddir,;t t
17444 s,@abs_builddir@,$ac_abs_builddir,;t t
17445 s,@top_builddir@,$ac_top_builddir,;t t
17446 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17447 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17449 if test x"$ac_file" != x-; then
17450 mv $tmp/out $ac_file
17458 cat >>$CONFIG_STATUS <<\_ACEOF
17461 # CONFIG_HEADER section.
17464 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17465 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17467 # ac_d sets the value in "#define NAME VALUE" lines.
17468 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17469 ac_dB='[ ].*$,\1#\2'
17472 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17473 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17474 ac_uB='$,\1#\2define\3'
17478 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17481 - | *:- | *:-:* ) # input from stdin
17483 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17485 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17487 * ) ac_file_in=$ac_file.in ;;
17490 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17491 echo "$as_me: creating $ac_file" >&6;}
17493 # First look for the input files in the build tree, otherwise in the
17495 ac_file_inputs=`IFS=:
17496 for f in $ac_file_in; do
17498 -) echo $tmp/stdin ;;
17500 # Absolute (can't be DOS-style, as IFS=:)
17501 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17502 echo "$as_me: error: cannot find input file: $f" >&2;}
17503 { (exit 1); exit 1; }; }
17506 if test -f "$f"; then
17509 elif test -f "$srcdir/$f"; then
17514 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17515 echo "$as_me: error: cannot find input file: $f" >&2;}
17516 { (exit 1); exit 1; }; }
17519 done` || { (exit 1); exit 1; }
17520 # Remove the trailing spaces.
17521 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17525 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17526 # `conftest.undefs', that substitutes the proper values into
17527 # config.h.in to produce config.h. The first handles `#define'
17528 # templates, and the second `#undef' templates.
17529 # And first: Protect against being on the right side of a sed subst in
17530 # config.status. Protect against being in an unquoted here document
17531 # in config.status.
17532 rm -f conftest.defines conftest.undefs
17533 # Using a here document instead of a string reduces the quoting nightmare.
17534 # Putting comments in sed scripts is not portable.
17536 # `end' is used to avoid that the second main sed command (meant for
17537 # 0-ary CPP macros) applies to n-ary macro definitions.
17538 # See the Autoconf documentation for `clear'.
17539 cat >confdef2sed.sed <<\_ACEOF
17544 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17546 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17549 # If some macros were called several times there might be several times
17550 # the same #defines, which is useless. Nevertheless, we may not want to
17551 # sort them, since we want the *last* AC-DEFINE to be honored.
17552 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17553 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17554 rm -f confdef2sed.sed
17556 # This sed command replaces #undef with comments. This is necessary, for
17557 # example, in the case of _POSIX_SOURCE, which is predefined and required
17558 # on some systems where configure will not decide to define it.
17559 cat >>conftest.undefs <<\_ACEOF
17560 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17563 # Break up conftest.defines because some shells have a limit on the size
17564 # of here documents, and old seds have small limits too (100 cmds).
17565 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17566 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17567 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17568 echo ' :' >>$CONFIG_STATUS
17569 rm -f conftest.tail
17570 while grep . conftest.defines >/dev/null
17572 # Write a limited-size here document to $tmp/defines.sed.
17573 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17574 # Speed up: don't consider the non `#define' lines.
17575 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17576 # Work around the forget-to-reset-the-flag bug.
17577 echo 't clr' >>$CONFIG_STATUS
17578 echo ': clr' >>$CONFIG_STATUS
17579 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17581 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17583 mv $tmp/out $tmp/in
17585 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17586 rm -f conftest.defines
17587 mv conftest.tail conftest.defines
17589 rm -f conftest.defines
17590 echo ' fi # egrep' >>$CONFIG_STATUS
17591 echo >>$CONFIG_STATUS
17593 # Break up conftest.undefs because some shells have a limit on the size
17594 # of here documents, and old seds have small limits too (100 cmds).
17595 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17596 rm -f conftest.tail
17597 while grep . conftest.undefs >/dev/null
17599 # Write a limited-size here document to $tmp/undefs.sed.
17600 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17601 # Speed up: don't consider the non `#undef'
17602 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17603 # Work around the forget-to-reset-the-flag bug.
17604 echo 't clr' >>$CONFIG_STATUS
17605 echo ': clr' >>$CONFIG_STATUS
17606 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17608 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17610 mv $tmp/out $tmp/in
17612 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17613 rm -f conftest.undefs
17614 mv conftest.tail conftest.undefs
17616 rm -f conftest.undefs
17618 cat >>$CONFIG_STATUS <<\_ACEOF
17619 # Let's still pretend it is `configure' which instantiates (i.e., don't
17620 # use $as_me), people would be surprised to read:
17621 # /* config.h. Generated by config.status. */
17622 if test x"$ac_file" = x-; then
17623 echo "/* Generated by configure. */" >$tmp/config.h
17625 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17627 cat $tmp/in >>$tmp/config.h
17629 if test x"$ac_file" != x-; then
17630 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17631 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17632 echo "$as_me: $ac_file is unchanged" >&6;}
17634 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17636 X"$ac_file" : 'X\(//\)[^/]' \| \
17637 X"$ac_file" : 'X\(//\)$' \| \
17638 X"$ac_file" : 'X\(/\)' \| \
17639 . : '\(.\)' 2>/dev/null ||
17641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17643 /^X\(\/\/\)$/{ s//\1/; q; }
17644 /^X\(\/\).*/{ s//\1/; q; }
17646 { case "$ac_dir" in
17647 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17651 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17652 case $as_mkdir_dir in
17653 # Skip DOS drivespec
17654 ?:) as_incr_dir=$as_mkdir_dir ;;
17656 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17657 test -d "$as_incr_dir" ||
17658 mkdir "$as_incr_dir" ||
17659 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17660 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17661 { (exit 1); exit 1; }; }
17667 mv $tmp/config.h $ac_file
17671 rm -f $tmp/config.h
17673 # Run the commands associated with the file.
17675 src/include/pg_config.h )
17676 # Update timestamp for pg_config.h (see Makefile.global)
17677 echo >src/include/stamp-h
17682 cat >>$CONFIG_STATUS <<\_ACEOF
17685 # CONFIG_LINKS section.
17688 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17689 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17690 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17692 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17693 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17695 if test ! -r $srcdir/$ac_source; then
17696 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17697 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17698 { (exit 1); exit 1; }; }
17702 # Make relative symlinks.
17703 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17704 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17705 X"$ac_dest" : 'X\(//\)[^/]' \| \
17706 X"$ac_dest" : 'X\(//\)$' \| \
17707 X"$ac_dest" : 'X\(/\)' \| \
17708 . : '\(.\)' 2>/dev/null ||
17710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17712 /^X\(\/\/\)$/{ s//\1/; q; }
17713 /^X\(\/\).*/{ s//\1/; q; }
17715 { case "$ac_dest_dir" in
17716 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17719 as_dummy="$ac_dest_dir"
17720 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17721 case $as_mkdir_dir in
17722 # Skip DOS drivespec
17723 ?:) as_incr_dir=$as_mkdir_dir ;;
17725 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17726 test -d "$as_incr_dir" ||
17727 mkdir "$as_incr_dir" ||
17728 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17729 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17730 { (exit 1); exit 1; }; }
17737 if test "$ac_dest_dir" != .; then
17738 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17739 # A "../" for each directory in $ac_dir_suffix.
17740 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17742 ac_dir_suffix= ac_top_builddir=
17746 .) # No --srcdir option. We are building in place.
17748 if test -z "$ac_top_builddir"; then
17751 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17753 [\\/]* | ?:[\\/]* ) # Absolute path.
17754 ac_srcdir=$srcdir$ac_dir_suffix;
17755 ac_top_srcdir=$srcdir ;;
17756 *) # Relative path.
17757 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17758 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17760 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17762 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17763 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17764 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17765 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17769 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17770 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17773 # Make a symlink if possible; otherwise try a hard link.
17774 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17775 ln $srcdir/$ac_source $ac_dest ||
17776 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17777 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17778 { (exit 1); exit 1; }; }
17782 cat >>$CONFIG_STATUS <<\_ACEOF
17784 { (exit 0); exit 0; }
17786 chmod +x $CONFIG_STATUS
17787 ac_clean_files=$ac_clean_files_save
17790 # configure is writing to config.log, and then calls config.status.
17791 # config.status does its own redirection, appending to config.log.
17792 # Unfortunately, on DOS this fails, as config.log is still kept open
17793 # by configure, so config.status won't be able to write to it; its
17794 # output is simply discarded. So we exec the FD to /dev/null,
17795 # effectively closing config.log, so it can be properly (re)opened and
17796 # appended to by config.status. When coming back to configure, we
17797 # need to make the FD available again.
17798 if test "$no_create" != yes; then
17801 $SHELL $CONFIG_STATUS || ac_cs_success=false
17803 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17804 # would make configure fail if this is the last instruction.
17805 $ac_cs_success || { (exit 1); exit 1; }