2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.1devel.
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 (c) 1996-2005, 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='8.1devel'
262 PACKAGE_STRING='PostgreSQL 8.1devel'
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 infodir='${prefix}/info'
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 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
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 infodir 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_LDFLAGS_SL_set=${LDFLAGS_SL+set}
761 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
762 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
763 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
764 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
765 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
767 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
770 # Report the --help message.
772 if test "$ac_init_help" = "long"; then
773 # Omit some internal or obsolete options to make the list less imposing.
774 # This message is too long to be a string in the A/UX 3.1 sh.
776 \`configure' configures PostgreSQL 8.1devel to adapt to many kinds of systems.
778 Usage: $0 [OPTION]... [VAR=VALUE]...
780 To assign environment variables (e.g., CC, CFLAGS...), specify them as
781 VAR=VALUE. See below for descriptions of some of the useful variables.
783 Defaults for the options are specified in brackets.
786 -h, --help display this help and exit
787 --help=short display options specific to this package
788 --help=recursive display the short help of all the included packages
789 -V, --version display version information and exit
790 -q, --quiet, --silent do not print \`checking...' messages
791 --cache-file=FILE cache test results in FILE [disabled]
792 -C, --config-cache alias for \`--cache-file=config.cache'
793 -n, --no-create do not create output files
794 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799 Installation directories:
800 --prefix=PREFIX install architecture-independent files in PREFIX
802 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 By default, \`make install' will install all the files in
806 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
807 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
808 for instance \`--prefix=\$HOME'.
810 For better control, use the options below.
812 Fine tuning of the installation directories:
813 --bindir=DIR user executables [EPREFIX/bin]
814 --sbindir=DIR system admin executables [EPREFIX/sbin]
815 --libexecdir=DIR program executables [EPREFIX/libexec]
816 --datadir=DIR read-only architecture-independent data [PREFIX/share]
817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
820 --libdir=DIR object code libraries [EPREFIX/lib]
821 --includedir=DIR C header files [PREFIX/include]
822 --oldincludedir=DIR C header files for non-gcc [/usr/include]
823 --infodir=DIR info documentation [PREFIX/info]
824 --mandir=DIR man documentation [PREFIX/man]
830 --build=BUILD configure for building on BUILD [guessed]
831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of PostgreSQL 8.1devel:";;
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-integer-datetimes enable 64-bit integer date/time support
845 --enable-nls[=LANGUAGES] enable Native Language Support
846 --disable-shared do not build shared libraries
847 --disable-rpath do not embed shared library search path in executables
848 --disable-spinlocks do not use spinlocks
849 --enable-debug build with debugging symbols (-g)
850 --enable-depend turn on automatic dependency tracking
851 --enable-cassert enable assertion checks (for debugging)
852 --enable-thread-safety make client libraries thread-safe
853 --enable-thread-safety-force force thread-safety in spite of thread test failure
854 --disable-largefile omit support for large files
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
861 --without-docdir do not install the documentation
862 --with-includes=DIRS look for additional header files in DIRS
863 --with-libraries=DIRS look for additional libraries in DIRS
864 --with-libs=DIRS alternative spelling of --with-libraries
865 --with-pgport=PORTNUM change default port number 5432
866 --with-tcl build Tcl modules (PL/Tcl)
867 --with-tclconfig=DIR tclConfig.sh is in DIR
868 --with-perl build Perl modules (PL/Perl)
869 --with-python build Python modules (PL/Python)
870 --with-krb5 build with Kerberos 5 support
871 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
872 --with-pam build with PAM support
873 --with-bonjour build with Bonjour support
874 --with-openssl build with OpenSSL support
875 --without-readline do not use Readline
876 --without-zlib do not use Zlib
877 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
889 location of DocBook stylesheets
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
894 Report bugs to <pgsql-bugs@postgresql.org>.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
931 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
957 PostgreSQL configure 8.1devel
958 generated by GNU Autoconf 2.53
960 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
961 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
965 Copyright (c) 1996-2005, PostgreSQL Global Development Group
971 This file contains any messages produced by compilers while
972 running configure, to aid debugging if configure makes a mistake.
974 It was created by PostgreSQL $as_me 8.1devel, which was
975 generated by GNU Autoconf 2.53. Invocation command line was
986 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987 uname -m = `(uname -m) 2>/dev/null || echo unknown`
988 uname -r = `(uname -r) 2>/dev/null || echo unknown`
989 uname -s = `(uname -s) 2>/dev/null || echo unknown`
990 uname -v = `(uname -v) 2>/dev/null || echo unknown`
992 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
995 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
996 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
997 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
999 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1000 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1001 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 test -z "$as_dir" && as_dir=.
1010 echo "PATH: $as_dir"
1025 # Keep a trace of the command line.
1026 # Strip out --no-create and --no-recursion so they do not pile up.
1027 # Also quote any args containing shell meta-characters.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n ) continue ;;
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041 case " $ac_configure_args " in
1042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1043 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1064 # The following way of writing the cache mishandles newlines in values,
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 if test -s confdefs.h; then
1087 sed "/^$/d" confdefs.h
1090 test "$ac_signal" != 0 &&
1091 echo "$as_me: caught signal $ac_signal"
1092 echo "$as_me: exit $exit_status"
1094 rm -f core core.* *.core &&
1095 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1098 for ac_signal in 1 2 13 15; do
1099 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1104 rm -rf conftest* confdefs.h
1105 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1108 # Predefined preprocessor variables.
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_NAME "$PACKAGE_NAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_STRING "$PACKAGE_STRING"
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135 # Let the site file select an alternate cache file if it wants to.
1136 # Prefer explicitly selected file to automatically selected ones.
1137 if test -z "$CONFIG_SITE"; then
1138 if test "x$prefix" != xNONE; then
1139 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1141 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1144 for ac_site_file in $CONFIG_SITE; do
1145 if test -r "$ac_site_file"; then
1146 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1147 echo "$as_me: loading site script $ac_site_file" >&6;}
1148 sed 's/^/| /' "$ac_site_file" >&5
1153 if test -r "$cache_file"; then
1154 # Some versions of bash will fail to source /dev/null (special
1155 # files actually), so we avoid doing that.
1156 if test -f "$cache_file"; then
1157 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1158 echo "$as_me: loading cache $cache_file" >&6;}
1160 [\\/]* | ?:[\\/]* ) . $cache_file;;
1161 *) . ./$cache_file;;
1165 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1166 echo "$as_me: creating cache $cache_file" >&6;}
1170 # Check that the precious variables saved in the cache have kept the same
1172 ac_cache_corrupted=false
1173 for ac_var in `(set) 2>&1 |
1174 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1175 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1176 eval ac_new_set=\$ac_env_${ac_var}_set
1177 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1178 eval ac_new_val="\$ac_env_${ac_var}_value"
1179 case $ac_old_set,$ac_new_set in
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1185 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1186 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1187 ac_cache_corrupted=: ;;
1190 if test "x$ac_old_val" != "x$ac_new_val"; then
1191 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1192 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1193 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1194 echo "$as_me: former value: $ac_old_val" >&2;}
1195 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1196 echo "$as_me: current value: $ac_new_val" >&2;}
1197 ac_cache_corrupted=:
1200 # Pass precious variables to config.status.
1201 if test "$ac_new_set" = set; then
1203 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1205 *) ac_arg=$ac_var=$ac_new_val ;;
1207 case " $ac_configure_args " in
1208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1209 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213 if $ac_cache_corrupted; then
1214 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1215 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1216 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1217 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1218 { (exit 1); exit 1; }; }
1222 ac_cpp='$CPP $CPPFLAGS'
1223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257 for ac_dir in config $srcdir/config; do
1258 if test -f $ac_dir/install-sh; then
1260 ac_install_sh="$ac_aux_dir/install-sh -c"
1262 elif test -f $ac_dir/install.sh; then
1264 ac_install_sh="$ac_aux_dir/install.sh -c"
1266 elif test -f $ac_dir/shtool; then
1268 ac_install_sh="$ac_aux_dir/shtool install -c"
1272 if test -z "$ac_aux_dir"; then
1273 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1274 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1275 { (exit 1); exit 1; }; }
1277 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1278 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1279 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1282 configure_args=$ac_configure_args
1286 cat >>confdefs.h <<_ACEOF
1287 #define PG_VERSION "$PACKAGE_VERSION"
1291 # Make sure we can run config.sub.
1292 $ac_config_sub sun4 >/dev/null 2>&1 ||
1293 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1294 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1295 { (exit 1); exit 1; }; }
1297 echo "$as_me:$LINENO: checking build system type" >&5
1298 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1299 if test "${ac_cv_build+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 ac_cv_build_alias=$build_alias
1303 test -z "$ac_cv_build_alias" &&
1304 ac_cv_build_alias=`$ac_config_guess`
1305 test -z "$ac_cv_build_alias" &&
1306 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1307 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1308 { (exit 1); exit 1; }; }
1309 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1310 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1311 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1312 { (exit 1); exit 1; }; }
1315 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1316 echo "${ECHO_T}$ac_cv_build" >&6
1318 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1319 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1320 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323 echo "$as_me:$LINENO: checking host system type" >&5
1324 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1325 if test "${ac_cv_host+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 ac_cv_host_alias=$host_alias
1329 test -z "$ac_cv_host_alias" &&
1330 ac_cv_host_alias=$ac_cv_build_alias
1331 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1332 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1333 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1334 { (exit 1); exit 1; }; }
1337 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1338 echo "${ECHO_T}$ac_cv_host" >&6
1340 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1341 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1342 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1347 echo "$as_me:$LINENO: checking which template to use" >&5
1348 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1353 # Check whether --with-template or --without-template was given.
1354 if test "${with_template+set}" = set; then
1355 withval="$with_template"
1359 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1360 echo "$as_me: error: argument required for --with-template option" >&2;}
1361 { (exit 1); exit 1; }; }
1364 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1365 echo "$as_me: error: argument required for --with-template option" >&2;}
1366 { (exit 1); exit 1; }; }
1371 list) echo; ls "$srcdir/src/template"; exit;;
1372 *) if test -f "$srcdir/src/template/$with_template" ; then
1375 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1376 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1377 { (exit 1); exit 1; }; }
1386 # --with-template not given
1389 aix*) template=aix ;;
1390 beos*) template=beos ;;
1391 bsdi*) template=bsdi ;;
1392 cygwin*) template=cygwin ;;
1393 darwin*) template=darwin ;;
1394 dgux*) template=dgux ;;
1395 freebsd*) template=freebsd ;;
1396 hpux*) template=hpux ;;
1397 irix*) template=irix ;;
1398 linux*|gnu*|k*bsd*-gnu)
1400 mingw*) template=win32 ;;
1401 netbsd*) template=netbsd ;;
1402 nextstep*) template=nextstep ;;
1403 openbsd*) template=openbsd ;;
1404 osf*) template=osf ;;
1405 qnx*) template=qnx4 ;;
1406 sco*) template=sco ;;
1407 solaris*) template=solaris ;;
1408 sunos*) template=sunos4 ;;
1410 case $host_vendor in
1411 univel) template=univel ;;
1413 sysv4*) template=svr4 ;;
1414 sysv5*) template=unixware ;;
1415 ultrix*) template=ultrix4 ;;
1418 if test x"$template" = x"" ; then
1419 { { echo "$as_me:$LINENO: error:
1420 *******************************************************************
1421 PostgreSQL has apparently not been ported to your platform yet.
1422 To try a manual configuration, look into the src/template directory
1423 for a similar platform and use the '--with-template=' option.
1425 Please also contact <pgsql-ports@postgresql.org> to see about
1426 rectifying this. Include the above 'checking host system type...'
1428 *******************************************************************
1430 echo "$as_me: error:
1431 *******************************************************************
1432 PostgreSQL has apparently not been ported to your platform yet.
1433 To try a manual configuration, look into the src/template directory
1434 for a similar platform and use the '--with-template=' option.
1436 Please also contact <pgsql-ports@postgresql.org> to see about
1437 rectifying this. Include the above 'checking host system type...'
1439 *******************************************************************
1441 { (exit 1); exit 1; }; }
1448 echo "$as_me:$LINENO: result: $template" >&5
1449 echo "${ECHO_T}$template" >&6
1454 # Initialize default assumption that we do not need separate assembly code
1455 # for TAS (test-and-set). This can be overridden by the template file
1456 # when it's executed.
1463 ## Command line options
1467 # Installation directory for documentation
1472 # Check whether --with-docdir or --without-docdir was given.
1473 if test "${with_docdir+set}" = set; then
1474 withval="$with_docdir"
1478 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1479 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1480 { (exit 1); exit 1; }; }
1491 docdir='${prefix}/doc'
1498 # Add non-standard directories to the include path
1503 # Check whether --with-includes or --without-includes was given.
1504 if test "${with_includes+set}" = set; then
1505 withval="$with_includes"
1509 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1510 echo "$as_me: error: argument required for --with-includes option" >&2;}
1511 { (exit 1); exit 1; }; }
1514 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1515 echo "$as_me: error: argument required for --with-includes option" >&2;}
1516 { (exit 1); exit 1; }; }
1528 # Add non-standard directories to the library search path
1533 # Check whether --with-libraries or --without-libraries was given.
1534 if test "${with_libraries+set}" = set; then
1535 withval="$with_libraries"
1539 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1540 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1541 { (exit 1); exit 1; }; }
1544 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1545 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1546 { (exit 1); exit 1; }; }
1549 LIBRARY_DIRS=$withval
1559 # Check whether --with-libs or --without-libs was given.
1560 if test "${with_libs+set}" = set; then
1561 withval="$with_libs"
1565 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1566 echo "$as_me: error: argument required for --with-libs option" >&2;}
1567 { (exit 1); exit 1; }; }
1570 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1571 echo "$as_me: error: argument required for --with-libs option" >&2;}
1572 { (exit 1); exit 1; }; }
1575 LIBRARY_DIRS=$withval
1584 # 64-bit integer date/time storage (--enable-integer-datetimes)
1586 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1587 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1590 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1591 if test "${enable_integer_datetimes+set}" = set; then
1592 enableval="$enable_integer_datetimes"
1597 cat >>confdefs.h <<\_ACEOF
1598 #define USE_INTEGER_DATETIMES 1
1606 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1607 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1608 { (exit 1); exit 1; }; }
1613 enable_integer_datetimes=no
1617 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1618 echo "${ECHO_T}$enable_integer_datetimes" >&6
1624 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1625 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1628 # Check whether --enable-nls or --disable-nls was given.
1629 if test "${enable_nls+set}" = set; then
1630 enableval="$enable_nls"
1641 WANTED_LANGUAGES=$enableval
1650 if test "$enable_nls" = yes; then
1652 cat >>confdefs.h <<\_ACEOF
1653 #define ENABLE_NLS 1
1658 echo "$as_me:$LINENO: result: $enable_nls" >&5
1659 echo "${ECHO_T}$enable_nls" >&6
1664 # Default port number (--with-pgport), default 5432
1666 echo "$as_me:$LINENO: checking for default port number" >&5
1667 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1671 # Check whether --with-pgport or --without-pgport was given.
1672 if test "${with_pgport+set}" = set; then
1673 withval="$with_pgport"
1677 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1678 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1679 { (exit 1); exit 1; }; }
1682 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1683 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1684 { (exit 1); exit 1; }; }
1687 default_port=$withval
1695 echo "$as_me:$LINENO: result: $default_port" >&5
1696 echo "${ECHO_T}$default_port" >&6
1697 # Need both of these because some places want an integer and some a string
1699 cat >>confdefs.h <<_ACEOF
1700 #define DEF_PGPORT ${default_port}
1704 cat >>confdefs.h <<_ACEOF
1705 #define DEF_PGPORT_STR "${default_port}"
1711 # Option to disable shared libraries
1715 # Check whether --enable-shared or --disable-shared was given.
1716 if test "${enable_shared+set}" = set; then
1717 enableval="$enable_shared"
1727 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1728 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1729 { (exit 1); exit 1; }; }
1741 # '-rpath'-like feature can be disabled
1745 # Check whether --enable-rpath or --disable-rpath was given.
1746 if test "${enable_rpath+set}" = set; then
1747 enableval="$enable_rpath"
1757 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1758 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1759 { (exit 1); exit 1; }; }
1775 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1776 if test "${enable_spinlocks+set}" = set; then
1777 enableval="$enable_spinlocks"
1787 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1788 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1789 { (exit 1); exit 1; }; }
1794 enable_spinlocks=yes
1800 # --enable-debug adds -g to compiler flags
1804 # Check whether --enable-debug or --disable-debug was given.
1805 if test "${enable_debug+set}" = set; then
1806 enableval="$enable_debug"
1816 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1817 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1818 { (exit 1); exit 1; }; }
1833 # For historical reasons you can also use --with-CC to specify the C compiler
1834 # to use, although the standard way to do this is to set the CC environment
1839 # Check whether --with-CC or --without-CC was given.
1840 if test "${with_CC+set}" = set; then
1845 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1846 echo "$as_me: error: argument required for --with-CC option" >&2;}
1847 { (exit 1); exit 1; }; }
1850 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1851 echo "$as_me: error: argument required for --with-CC option" >&2;}
1852 { (exit 1); exit 1; }; }
1863 aix) pgac_cc_list="gcc xlc";;
1864 irix) pgac_cc_list="cc";; # no gcc
1865 *) pgac_cc_list="gcc cc";;
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874 for ac_prog in $pgac_cc_list
1876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 if test -n "$CC"; then
1904 echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1911 test -n "$CC" && break
1914 if test -z "$CC"; then
1916 for ac_prog in $pgac_cc_list
1918 # Extract the first word of "$ac_prog", so it can be a program name with args.
1919 set dummy $ac_prog; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$ac_ct_CC"; then
1926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_ac_ct_CC="$ac_prog"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1945 if test -n "$ac_ct_CC"; then
1946 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1947 echo "${ECHO_T}$ac_ct_CC" >&6
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 test -n "$ac_ct_CC" && break
1960 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1961 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1962 { (exit 1); exit 1; }; }
1964 # Provide some information about the compiler.
1965 echo "$as_me:$LINENO:" \
1966 "checking for C compiler version" >&5
1967 ac_compiler=`set X $ac_compile; echo $2`
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1969 (eval $ac_compiler --version </dev/null >&5) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1974 (eval $ac_compiler -v </dev/null >&5) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1978 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1979 (eval $ac_compiler -V </dev/null >&5) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }
1984 cat >conftest.$ac_ext <<_ACEOF
1985 #line $LINENO "configure"
1986 #include "confdefs.h"
1988 #ifdef F77_DUMMY_MAIN
1992 int F77_DUMMY_MAIN() { return 1; }
2002 ac_clean_files_save=$ac_clean_files
2003 ac_clean_files="$ac_clean_files a.out a.exe"
2004 # Try to create an executable without -o first, disregard a.out.
2005 # It will help us diagnose broken compilers, and finding out an intuition
2007 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2008 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2009 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2010 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2011 (eval $ac_link_default) 2>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; then
2015 # Find the output, starting from the most likely. This scheme is
2016 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019 # Be careful to initialize this variable, since it used to be cached.
2020 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2022 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2023 ls a.out conftest 2>/dev/null;
2024 ls a.* conftest.* 2>/dev/null`; do
2026 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2027 a.out ) # We found the default executable, but exeext='' is most
2030 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2031 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2038 echo "$as_me: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2041 echo "$as_me: error: C compiler cannot create executables" >&2;}
2042 { (exit 77); exit 77; }; }
2045 ac_exeext=$ac_cv_exeext
2046 echo "$as_me:$LINENO: result: $ac_file" >&5
2047 echo "${ECHO_T}$ac_file" >&6
2049 # Check the compiler produces executables we can run. If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2052 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2053 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2054 # If not cross compiling, check that we can run a simple program.
2055 if test "$cross_compiling" != yes; then
2056 if { ac_try='./$ac_file'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 if test "$cross_compiling" = maybe; then
2067 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2068 If you meant to cross compile, use \`--host'." >&5
2069 echo "$as_me: error: cannot run C compiled programs.
2070 If you meant to cross compile, use \`--host'." >&2;}
2071 { (exit 1); exit 1; }; }
2075 echo "$as_me:$LINENO: result: yes" >&5
2076 echo "${ECHO_T}yes" >&6
2078 rm -f a.out a.exe conftest$ac_cv_exeext
2079 ac_clean_files=$ac_clean_files_save
2080 # Check the compiler produces executables we can run. If not, either
2081 # the compiler is broken, or we cross compile.
2082 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2083 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2084 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2085 echo "${ECHO_T}$cross_compiling" >&6
2087 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2088 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2090 (eval $ac_link) 2>&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2095 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2096 # work properly (i.e., refer to `conftest.exe'), while it won't with
2098 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2100 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2109 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2110 { (exit 1); exit 1; }; }
2113 rm -f conftest$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2115 echo "${ECHO_T}$ac_cv_exeext" >&6
2117 rm -f conftest.$ac_ext
2118 EXEEXT=$ac_cv_exeext
2120 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2121 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2122 if test "${ac_cv_objext+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2129 #ifdef F77_DUMMY_MAIN
2133 int F77_DUMMY_MAIN() { return 1; }
2143 rm -f conftest.o conftest.obj
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157 echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2160 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2161 { (exit 1); exit 1; }; }
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2177 #include "confdefs.h"
2179 #ifdef F77_DUMMY_MAIN
2183 int F77_DUMMY_MAIN() { return 1; }
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -s conftest.$ac_objext'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2210 echo "$as_me: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2214 rm -f conftest.$ac_objext conftest.$ac_ext
2215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2218 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2220 GCC=`test $ac_compiler_gnu = yes && echo yes`
2221 ac_test_CFLAGS=${CFLAGS+set}
2222 ac_save_CFLAGS=$CFLAGS
2224 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2225 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2226 if test "${ac_cv_prog_cc_g+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #line $LINENO "configure"
2231 #include "confdefs.h"
2233 #ifdef F77_DUMMY_MAIN
2237 int F77_DUMMY_MAIN() { return 1; }
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 echo "$as_me: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2265 rm -f conftest.$ac_objext conftest.$ac_ext
2267 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269 if test "$ac_test_CFLAGS" = set; then
2270 CFLAGS=$ac_save_CFLAGS
2271 elif test $ac_cv_prog_cc_g = yes; then
2272 if test "$GCC" = yes; then
2278 if test "$GCC" = yes; then
2284 # Some people use a C++ compiler to compile C. Since we use `exit',
2285 # in C++ we need to declare it. In case someone uses the same compiler
2286 # for both compiling C and C++ we need to have the C++ compiler decide
2287 # the declaration of exit, since it's the most demanding environment.
2288 cat >conftest.$ac_ext <<_ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 for ac_declaration in \
2307 '#include <stdlib.h>' \
2308 'extern "C" void std::exit (int) throw (); using std::exit;' \
2309 'extern "C" void std::exit (int); using std::exit;' \
2310 'extern "C" void exit (int) throw ();' \
2311 'extern "C" void exit (int);' \
2314 cat >conftest.$ac_ext <<_ACEOF
2315 #line $LINENO "configure"
2316 #include "confdefs.h"
2319 #ifdef F77_DUMMY_MAIN
2323 int F77_DUMMY_MAIN() { return 1; }
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2351 rm -f conftest.$ac_objext conftest.$ac_ext
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2356 #ifdef F77_DUMMY_MAIN
2360 int F77_DUMMY_MAIN() { return 1; }
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 echo "$as_me: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2387 rm -f conftest.$ac_objext conftest.$ac_ext
2390 if test -n "$ac_declaration"; then
2391 echo '#ifdef __cplusplus' >>confdefs.h
2392 echo $ac_declaration >>confdefs.h
2393 echo '#endif' >>confdefs.h
2397 echo "$as_me: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2400 rm -f conftest.$ac_objext conftest.$ac_ext
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 . "$srcdir/src/template/$template" || exit
2415 # CFLAGS are selected so:
2416 # If the user specifies something in the environment, that is used.
2417 # else: If the template file set something, that is used.
2418 # else: If the compiler is GCC, then we use -O2.
2419 # else: If the compiler is something else, then we use -0.
2421 if test "$ac_env_CFLAGS_set" = set; then
2422 CFLAGS=$ac_env_CFLAGS_value
2423 elif test "${CFLAGS+set}" = set; then
2424 : # (keep what template set)
2425 elif test "$GCC" = yes; then
2428 # if the user selected debug mode, don't use -O
2429 if test "$enable_debug" != yes; then
2434 if test "$GCC" = yes; then
2435 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
2437 # Some versions of GCC support some additional useful warning flags.
2438 # Check whether they are supported, and add them to CFLAGS if so.
2439 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2440 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2441 pgac_save_CFLAGS=$CFLAGS
2442 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2443 cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2445 #include "confdefs.h"
2447 #ifdef F77_DUMMY_MAIN
2451 int F77_DUMMY_MAIN() { return 1; }
2461 rm -f conftest.$ac_objext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2476 echo "$as_me: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2478 CFLAGS="$pgac_save_CFLAGS"
2479 echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2484 echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
2485 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6
2486 pgac_save_CFLAGS=$CFLAGS
2487 CFLAGS="$pgac_save_CFLAGS -Wold-style-definition"
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 #include "confdefs.h"
2492 #ifdef F77_DUMMY_MAIN
2496 int F77_DUMMY_MAIN() { return 1; }
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6
2521 echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 CFLAGS="$pgac_save_CFLAGS"
2524 echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6
2527 rm -f conftest.$ac_objext conftest.$ac_ext
2529 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2530 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2531 pgac_save_CFLAGS=$CFLAGS
2532 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2533 cat >conftest.$ac_ext <<_ACEOF
2534 #line $LINENO "configure"
2535 #include "confdefs.h"
2537 #ifdef F77_DUMMY_MAIN
2541 int F77_DUMMY_MAIN() { return 1; }
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 echo "$as_me:$LINENO: result: yes" >&5
2564 echo "${ECHO_T}yes" >&6
2566 echo "$as_me: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 CFLAGS="$pgac_save_CFLAGS"
2569 echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2572 rm -f conftest.$ac_objext conftest.$ac_ext
2575 # Disable strict-aliasing rules; needed for gcc 3.3+
2576 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2577 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2578 pgac_save_CFLAGS=$CFLAGS
2579 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2584 #ifdef F77_DUMMY_MAIN
2588 int F77_DUMMY_MAIN() { return 1; }
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2613 echo "$as_me: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 CFLAGS="$pgac_save_CFLAGS"
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2619 rm -f conftest.$ac_objext conftest.$ac_ext
2623 # supply -g if --enable-debug
2624 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2628 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2629 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2631 # We already have this in Makefile.win32, but configure needs it too
2632 if test "$PORTNAME" = "win32"; then
2633 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2636 # Check if the compiler still works with the template settings
2637 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2638 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2640 cat >conftest.$ac_ext <<_ACEOF
2641 #line $LINENO "configure"
2642 #include "confdefs.h"
2644 #ifdef F77_DUMMY_MAIN
2648 int F77_DUMMY_MAIN() { return 1; }
2658 rm -f conftest.$ac_objext conftest$ac_exeext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660 (eval $ac_link) 2>&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -s conftest$ac_exeext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 echo "$as_me:$LINENO: result: yes" >&5
2671 echo "${ECHO_T}yes" >&6
2673 echo "$as_me: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2677 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2678 echo "$as_me: error: cannot proceed" >&2;}
2679 { (exit 1); exit 1; }; }
2681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2683 # Defend against gcc -ffast-math
2684 if test "$GCC" = yes; then
2685 cat >conftest.$ac_ext <<_ACEOF
2686 #line $LINENO "configure"
2687 #include "confdefs.h"
2689 #ifdef F77_DUMMY_MAIN
2693 int F77_DUMMY_MAIN() { return 1; }
2698 #ifdef __FAST_MATH__
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2722 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2723 { (exit 1); exit 1; }; }
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2735 # On Suns, sometimes $CPP names a directory.
2736 if test -n "$CPP" && test -d "$CPP"; then
2739 if test -z "$CPP"; then
2740 if test "${ac_cv_prog_CPP+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 # Double quotes because CPP needs to be expanded
2744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2747 for ac_c_preproc_warn_flag in '' yes
2749 # Use a header file that comes with gcc, so configuring glibc
2750 # with a fresh cross-compiler works.
2751 # On the NeXT, cc -E runs the code through the compiler's parser,
2752 # not just through cpp. "Syntax error" is here to catch this case.
2753 cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2762 egrep -v '^ *\+' conftest.er1 >conftest.err
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } >/dev/null; then
2767 if test -s conftest.err; then
2768 ac_cpp_err=$ac_c_preproc_warn_flag
2775 if test -z "$ac_cpp_err"; then
2778 echo "$as_me: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2780 # Broken: fails on valid input.
2783 rm -f conftest.err conftest.$ac_ext
2785 # OK, works on sane cases. Now check whether non-existent headers
2786 # can be detected and how.
2787 cat >conftest.$ac_ext <<_ACEOF
2788 #line $LINENO "configure"
2789 #include "confdefs.h"
2790 #include <ac_nonexistent.h>
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 egrep -v '^ *\+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_c_preproc_warn_flag
2808 if test -z "$ac_cpp_err"; then
2809 # Broken: success on invalid input.
2812 echo "$as_me: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2814 # Passes both tests.
2818 rm -f conftest.err conftest.$ac_ext
2821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2822 rm -f conftest.err conftest.$ac_ext
2823 if $ac_preproc_ok; then
2835 echo "$as_me:$LINENO: result: $CPP" >&5
2836 echo "${ECHO_T}$CPP" >&6
2838 for ac_c_preproc_warn_flag in '' yes
2840 # Use a header file that comes with gcc, so configuring glibc
2841 # with a fresh cross-compiler works.
2842 # On the NeXT, cc -E runs the code through the compiler's parser,
2843 # not just through cpp. "Syntax error" is here to catch this case.
2844 cat >conftest.$ac_ext <<_ACEOF
2845 #line $LINENO "configure"
2846 #include "confdefs.h"
2850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2853 egrep -v '^ *\+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } >/dev/null; then
2858 if test -s conftest.err; then
2859 ac_cpp_err=$ac_c_preproc_warn_flag
2866 if test -z "$ac_cpp_err"; then
2869 echo "$as_me: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2871 # Broken: fails on valid input.
2874 rm -f conftest.err conftest.$ac_ext
2876 # OK, works on sane cases. Now check whether non-existent headers
2877 # can be detected and how.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 #line $LINENO "configure"
2880 #include "confdefs.h"
2881 #include <ac_nonexistent.h>
2883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886 egrep -v '^ *\+' conftest.er1 >conftest.err
2888 cat conftest.err >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } >/dev/null; then
2891 if test -s conftest.err; then
2892 ac_cpp_err=$ac_c_preproc_warn_flag
2899 if test -z "$ac_cpp_err"; then
2900 # Broken: success on invalid input.
2903 echo "$as_me: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 # Passes both tests.
2909 rm -f conftest.err conftest.$ac_ext
2912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2913 rm -f conftest.err conftest.$ac_ext
2914 if $ac_preproc_ok; then
2917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2919 { (exit 1); exit 1; }; }
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 # Create compiler version string
2931 if test x"$GCC" = x"yes" ; then
2932 cc_string="GCC `${CC} --version | sed q`"
2937 cat >>confdefs.h <<_ACEOF
2938 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2944 # Set up TAS assembly code if needed; the template file has now had its
2945 # chance to request this.
2947 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2950 if test "$need_tas" = yes ; then
2959 # Automatic dependency tracking
2963 # Check whether --enable-depend or --disable-depend was given.
2964 if test "${enable_depend+set}" = set; then
2965 enableval="$enable_depend"
2975 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2976 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2977 { (exit 1); exit 1; }; }
2990 # Enable assert checks
2994 # Check whether --enable-cassert or --disable-cassert was given.
2995 if test "${enable_cassert+set}" = set; then
2996 enableval="$enable_cassert"
3001 cat >>confdefs.h <<\_ACEOF
3002 #define USE_ASSERT_CHECKING 1
3010 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3011 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3012 { (exit 1); exit 1; }; }
3024 # Include directories
3027 IFS="${IFS}${PATH_SEPARATOR}"
3028 # SRCH_INC comes from the template file
3029 for dir in $with_includes $SRCH_INC; do
3030 if test -d "$dir"; then
3031 INCLUDES="$INCLUDES -I$dir"
3033 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3034 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3042 # Library directories
3045 IFS="${IFS}${PATH_SEPARATOR}"
3046 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3047 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3048 if test -d "$dir"; then
3049 LIBDIRS="$LIBDIRS -L$dir"
3051 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3052 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3058 # Enable thread-safe client libraries
3060 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3061 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3064 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3065 if test "${enable_thread_safety+set}" = set; then
3066 enableval="$enable_thread_safety"
3076 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3077 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3078 { (exit 1); exit 1; }; }
3083 enable_thread_safety=no
3089 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3090 if test "${enable_thread_safety_force+set}" = set; then
3091 enableval="$enable_thread_safety_force"
3101 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3102 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3103 { (exit 1); exit 1; }; }
3108 enable_thread_safety_force=no
3112 if test "$enable_thread_safety" = yes -o \
3113 "$enable_thread_safety_force" = yes; then
3114 enable_thread_safety="yes" # for 'force'
3116 cat >>confdefs.h <<\_ACEOF
3117 #define ENABLE_THREAD_SAFETY 1
3121 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3122 echo "${ECHO_T}$enable_thread_safety" >&6
3126 # Optionally build Tcl modules (PL/Tcl)
3128 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3129 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3133 # Check whether --with-tcl or --without-tcl was given.
3134 if test "${with_tcl+set}" = set; then
3145 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3146 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3147 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: $with_tcl" >&5
3157 echo "${ECHO_T}$with_tcl" >&6
3160 # We see if the path to the Tcl/Tk configuration scripts is specified.
3161 # This will override the use of tclsh to find the paths to search.
3166 # Check whether --with-tclconfig or --without-tclconfig was given.
3167 if test "${with_tclconfig+set}" = set; then
3168 withval="$with_tclconfig"
3172 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3173 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3174 { (exit 1); exit 1; }; }
3177 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3178 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3179 { (exit 1); exit 1; }; }
3190 # Optionally build Perl modules (PL/Perl)
3192 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3193 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3197 # Check whether --with-perl or --without-perl was given.
3198 if test "${with_perl+set}" = set; then
3199 withval="$with_perl"
3209 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3210 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3211 { (exit 1); exit 1; }; }
3220 echo "$as_me:$LINENO: result: $with_perl" >&5
3221 echo "${ECHO_T}$with_perl" >&6
3225 # Optionally build Python modules (PL/Python)
3227 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3228 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3232 # Check whether --with-python or --without-python was given.
3233 if test "${with_python+set}" = set; then
3234 withval="$with_python"
3244 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3245 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3246 { (exit 1); exit 1; }; }
3255 echo "$as_me:$LINENO: result: $with_python" >&5
3256 echo "${ECHO_T}$with_python" >&6
3262 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3263 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3267 # Check whether --with-krb5 or --without-krb5 was given.
3268 if test "${with_krb5+set}" = set; then
3269 withval="$with_krb5"
3275 cat >>confdefs.h <<\_ACEOF
3279 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3286 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3287 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3288 { (exit 1); exit 1; }; }
3297 echo "$as_me:$LINENO: result: $with_krb5" >&5
3298 echo "${ECHO_T}$with_krb5" >&6
3306 # Kerberos configuration parameters
3311 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3312 if test "${with_krb_srvnam+set}" = set; then
3313 withval="$with_krb_srvnam"
3317 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3318 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3319 { (exit 1); exit 1; }; }
3322 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3323 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3324 { (exit 1); exit 1; }; }
3332 with_krb_srvnam="postgres"
3336 cat >>confdefs.h <<_ACEOF
3337 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3345 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3346 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3350 # Check whether --with-pam or --without-pam was given.
3351 if test "${with_pam+set}" = set; then
3357 cat >>confdefs.h <<\_ACEOF
3366 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3367 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3368 { (exit 1); exit 1; }; }
3377 echo "$as_me:$LINENO: result: $with_pam" >&5
3378 echo "${ECHO_T}$with_pam" >&6
3385 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3386 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3390 # Check whether --with-bonjour or --without-bonjour was given.
3391 if test "${with_bonjour+set}" = set; then
3392 withval="$with_bonjour"
3397 cat >>confdefs.h <<\_ACEOF
3398 #define USE_BONJOUR 1
3406 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3407 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3408 { (exit 1); exit 1; }; }
3417 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3418 echo "${ECHO_T}$with_bonjour" >&6
3425 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3426 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3430 # Check whether --with-openssl or --without-openssl was given.
3431 if test "${with_openssl+set}" = set; then
3432 withval="$with_openssl"
3437 cat >>confdefs.h <<\_ACEOF
3446 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3447 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3448 { (exit 1); exit 1; }; }
3457 echo "$as_me:$LINENO: result: $with_openssl" >&5
3458 echo "${ECHO_T}$with_openssl" >&6
3468 # Check whether --with-readline or --without-readline was given.
3469 if test "${with_readline+set}" = set; then
3470 withval="$with_readline"
3480 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3481 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3482 { (exit 1); exit 1; }; }
3491 # readline on MinGW has problems with backslashes in psql and other bugs.
3492 # This is particularly a problem with non-US code pages.
3493 # Therefore disable its use until we understand the cause. 2004-07-20
3494 if test "$PORTNAME" = "win32"; then
3495 if test "$with_readline" = yes; then
3496 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3497 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3509 # Check whether --with-zlib or --without-zlib was given.
3510 if test "${with_zlib+set}" = set; then
3511 withval="$with_zlib"
3521 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3522 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3523 { (exit 1); exit 1; }; }
3537 # Assume system is ELF if it predefines __ELF__ as 1,
3538 # otherwise believe host_os based default.
3540 freebsd1*|freebsd2*) elf=no;;
3541 freebsd3*|freebsd4*) elf=yes;;
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line $LINENO "configure"
3547 #include "confdefs.h"
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 egrep "yes" >/dev/null 2>&1; then
3557 if test "X$elf" = "Xyes" ; then
3571 CPPFLAGS="$CPPFLAGS $INCLUDES"
3572 LDFLAGS="$LDFLAGS $LIBDIRS"
3574 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3575 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3576 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3577 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3581 for ac_prog in gawk mawk nawk awk
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_AWK+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 if test -n "$AWK"; then
3591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_AWK="$ac_prog"
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$AWK"; then
3611 echo "$as_me:$LINENO: result: $AWK" >&5
3612 echo "${ECHO_T}$AWK" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 test -n "$AWK" && break
3621 echo "$as_me:$LINENO: checking for flex" >&5
3622 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3623 if test "${pgac_cv_path_flex+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 # Let the user override the test
3627 if test -n "$FLEX"; then
3628 pgac_cv_path_flex=$FLEX
3632 for pgac_dir in $PATH; do
3634 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3637 for pgac_prog in flex lex; do
3638 pgac_candidate="$pgac_dir/$pgac_prog"
3639 if test -f "$pgac_candidate" \
3640 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3642 echo '%%' > conftest.l
3643 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3644 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3645 pgac_broken_flex=$pgac_candidate
3649 pgac_cv_path_flex=$pgac_candidate
3655 rm -f conftest.l lex.yy.c
3656 : ${pgac_cv_path_flex=no}
3660 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3661 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3662 if test x"$pgac_cv_path_flex" = x"no"; then
3663 if test -n "$pgac_broken_flex"; then
3664 { echo "$as_me:$LINENO: WARNING:
3665 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3666 *** should get version 2.5.4 or later." >&5
3667 echo "$as_me: WARNING:
3668 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3669 *** should get version 2.5.4 or later." >&2;}
3672 { echo "$as_me:$LINENO: WARNING:
3673 *** Without Flex you will not be able to build PostgreSQL from CVS or
3674 *** change any of the scanner definition files. You can obtain Flex from
3675 *** a GNU mirror site. (If you are using the official distribution of
3676 *** PostgreSQL then you do not need to worry about this because the Flex
3677 *** output is pre-generated.)" >&5
3678 echo "$as_me: WARNING:
3679 *** Without Flex you will not be able to build PostgreSQL from CVS or
3680 *** change any of the scanner definition files. You can obtain Flex from
3681 *** a GNU mirror site. (If you are using the official distribution of
3682 *** PostgreSQL then you do not need to worry about this because the Flex
3683 *** output is pre-generated.)" >&2;}
3686 if test x"$pgac_cv_path_flex" = x"no"; then
3689 FLEX=$pgac_cv_path_flex
3695 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3696 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3698 if test "$LN_S" = "ln -s"; then
3699 echo "$as_me:$LINENO: result: yes" >&5
3700 echo "${ECHO_T}yes" >&6
3702 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3703 echo "${ECHO_T}no, using $LN_S" >&6
3707 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3708 if test "${with_gnu_ld+set}" = set; then
3709 withval="$with_gnu_ld"
3710 test "$withval" = no || with_gnu_ld=yes
3715 if test "$GCC" = yes; then
3716 # Check if gcc -print-prog-name=ld gives a path.
3717 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3718 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3721 # gcc leaves a trailing carriage return which upsets mingw
3722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3727 # Accept absolute paths.
3728 [\\/]* | [A-Za-z]:[\\/]*)
3729 re_direlt='/[^/][^/]*/\.\./'
3730 # Canonicalize the path of ld
3731 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3732 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3733 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3735 test -z "$LD" && LD="$ac_prog"
3738 # If it fails, then pretend we aren't using GCC.
3742 # If it is relative, then search for the first ld in PATH.
3746 elif test "$with_gnu_ld" = yes; then
3747 echo "$as_me:$LINENO: checking for GNU ld" >&5
3748 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3750 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3751 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3753 if test "${ac_cv_path_LD+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 if test -z "$LD"; then
3757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3758 for ac_dir in $PATH; do
3759 test -z "$ac_dir" && ac_dir=.
3760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3761 ac_cv_path_LD="$ac_dir/$ac_prog"
3762 # Check to see if the program is GNU ld. I'd rather use --version,
3763 # but apparently some GNU ld's only accept -v.
3764 # Break only if it was the GNU/non-GNU ld that we prefer.
3765 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3766 test "$with_gnu_ld" != no && break
3768 test "$with_gnu_ld" != yes && break
3774 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3779 if test -n "$LD"; then
3780 echo "$as_me:$LINENO: result: $LD" >&5
3781 echo "${ECHO_T}$LD" >&6
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3788 { (exit 1); exit 1; }; }
3789 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3791 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3795 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3796 ac_cv_prog_gnu_ld=yes
3798 ac_cv_prog_gnu_ld=no
3801 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3802 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3803 with_gnu_ld=$ac_cv_prog_gnu_ld
3808 case $host_os in sysv5*)
3809 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3810 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3811 if test "${pgac_cv_prog_ld_R+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 #include "confdefs.h"
3820 #ifdef F77_DUMMY_MAIN
3824 int F77_DUMMY_MAIN() { return 1; }
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 pgac_cv_prog_ld_R=yes
3848 echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 pgac_cv_prog_ld_R=no
3852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3853 LDFLAGS=$pgac_save_LDFLAGS
3856 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3857 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3858 ld_R_works=$pgac_cv_prog_ld_R
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_RANLIB+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$RANLIB"; then
3870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 RANLIB=$ac_cv_prog_RANLIB
3889 if test -n "$RANLIB"; then
3890 echo "$as_me:$LINENO: result: $RANLIB" >&5
3891 echo "${ECHO_T}$RANLIB" >&6
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3898 if test -z "$ac_cv_prog_RANLIB"; then
3899 ac_ct_RANLIB=$RANLIB
3900 # Extract the first word of "ranlib", so it can be a program name with args.
3901 set dummy ranlib; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$ac_ct_RANLIB"; then
3908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_ac_ct_RANLIB="ranlib"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3927 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3928 if test -n "$ac_ct_RANLIB"; then
3929 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3930 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3936 RANLIB=$ac_ct_RANLIB
3938 RANLIB="$ac_cv_prog_RANLIB"
3941 for ac_prog in lorder
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_prog_LORDER+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 if test -n "$LORDER"; then
3951 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_LORDER="$ac_prog"
3961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 LORDER=$ac_cv_prog_LORDER
3970 if test -n "$LORDER"; then
3971 echo "$as_me:$LINENO: result: $LORDER" >&5
3972 echo "${ECHO_T}$LORDER" >&6
3974 echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3978 test -n "$LORDER" && break
3981 # Extract the first word of "tar", so it can be a program name with args.
3982 set dummy tar; ac_word=$2
3983 echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985 if test "${ac_cv_path_TAR+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 if test -n "$TAR"; then
4013 echo "$as_me:$LINENO: result: $TAR" >&5
4014 echo "${ECHO_T}$TAR" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -n "$ac_tool_prefix"; then
4022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}strip; ac_word=$2
4024 echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4026 if test "${ac_cv_prog_STRIP+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 if test -n "$STRIP"; then
4030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 STRIP=$ac_cv_prog_STRIP
4049 if test -n "$STRIP"; then
4050 echo "$as_me:$LINENO: result: $STRIP" >&5
4051 echo "${ECHO_T}$STRIP" >&6
4053 echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4058 if test -z "$ac_cv_prog_STRIP"; then
4060 # Extract the first word of "strip", so it can be a program name with args.
4061 set dummy strip; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if test -n "$ac_ct_STRIP"; then
4068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_ac_ct_STRIP="strip"
4078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4087 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4088 if test -n "$ac_ct_STRIP"; then
4089 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4090 echo "${ECHO_T}$ac_ct_STRIP" >&6
4092 echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4098 STRIP="$ac_cv_prog_STRIP"
4102 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4103 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4104 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4105 STRIP_STATIC_LIB="$STRIP -x"
4106 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4107 echo "$as_me:$LINENO: result: yes" >&5
4108 echo "${ECHO_T}yes" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4119 for ac_prog in 'bison -y'
4121 # Extract the first word of "$ac_prog", so it can be a program name with args.
4122 set dummy $ac_prog; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_prog_YACC+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 if test -n "$YACC"; then
4129 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_YACC="$ac_prog"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 YACC=$ac_cv_prog_YACC
4148 if test -n "$YACC"; then
4149 echo "$as_me:$LINENO: result: $YACC" >&5
4150 echo "${ECHO_T}$YACC" >&6
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4156 test -n "$YACC" && break
4160 if test "$YACC"; then
4161 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4162 { echo "$as_me:$LINENO: WARNING:
4163 *** If you are going to modify the grammar files or build from CVS, the installed
4164 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4165 echo "$as_me: WARNING:
4166 *** If you are going to modify the grammar files or build from CVS, the installed
4167 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4171 if test -z "$YACC"; then
4172 { echo "$as_me:$LINENO: WARNING:
4173 *** Without Bison you will not be able to build PostgreSQL from CVS or
4174 *** change any of the parser definition files. You can obtain Bison from
4175 *** a GNU mirror site. (If you are using the official distribution of
4176 *** PostgreSQL then you do not need to worry about this because the Bison
4177 *** output is pre-generated.) To use a different yacc program (possible,
4178 *** but not recommended), set the environment variable YACC before running
4179 *** 'configure'." >&5
4180 echo "$as_me: WARNING:
4181 *** Without Bison you will not be able to build PostgreSQL from CVS or
4182 *** change any of the parser definition files. You can obtain Bison from
4183 *** a GNU mirror site. (If you are using the official distribution of
4184 *** PostgreSQL then you do not need to worry about this because the Bison
4185 *** output is pre-generated.) To use a different yacc program (possible,
4186 *** but not recommended), set the environment variable YACC before running
4187 *** 'configure'." >&2;}
4191 # Extract the first word of "perl", so it can be a program name with args.
4192 set dummy perl; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_path_PERL+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 PERL=$ac_cv_path_PERL
4222 if test -n "$PERL"; then
4223 echo "$as_me:$LINENO: result: $PERL" >&5
4224 echo "${ECHO_T}$PERL" >&6
4226 echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4230 if test "$with_perl" = yes; then
4232 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4233 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4234 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4235 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4236 echo "${ECHO_T}$perl_archlibexp" >&6
4237 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4238 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4239 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4240 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4241 echo "${ECHO_T}$perl_privlibexp" >&6
4242 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4243 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4244 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4245 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4246 echo "${ECHO_T}$perl_useshrplib" >&6
4248 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4249 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4250 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4251 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4252 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4253 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4254 echo "${ECHO_T}$perl_embed_ldflags" >&6
4257 if test "$with_python" = yes; then
4258 # Extract the first word of "python", so it can be a program name with args.
4259 set dummy python; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_PYTHON+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 PYTHON=$ac_cv_path_PYTHON
4289 if test -n "$PYTHON"; then
4290 echo "$as_me:$LINENO: result: $PYTHON" >&5
4291 echo "${ECHO_T}$PYTHON" >&6
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4297 if test x"$PYTHON" = x""; then
4298 { { echo "$as_me:$LINENO: error: Python not found" >&5
4299 echo "$as_me: error: Python not found" >&2;}
4300 { (exit 1); exit 1; }; }
4304 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4305 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4306 if "${PYTHON}" 2>&- -c 'import distutils'
4308 echo "$as_me:$LINENO: result: yes" >&5
4309 echo "${ECHO_T}yes" >&6
4311 echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4313 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4314 echo "$as_me: error: distutils module not found" >&2;}
4315 { (exit 1); exit 1; }; }
4317 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4318 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4319 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4320 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
4321 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4323 # This should be enough of a message.
4324 echo "$as_me:$LINENO: result: $python_configdir" >&5
4325 echo "${ECHO_T}$python_configdir" >&6
4328 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4329 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4331 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4332 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4333 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4334 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4336 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4338 # New way: use the official shared library
4339 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4340 python_libspec="-L${python_libdir} -l${ldlibrary}"
4342 # Old way: use libpython from python_configdir
4343 python_libdir="${python_configdir}"
4344 python_libspec="-L${python_libdir} -lpython${python_version}"
4347 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4349 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4350 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4360 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4363 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4364 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4365 if test "${ac_cv_lib_bsd_main+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 ac_check_lib_save_LIBS=$LIBS
4370 cat >conftest.$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4372 #include "confdefs.h"
4375 #ifdef F77_DUMMY_MAIN
4379 int F77_DUMMY_MAIN() { return 1; }
4389 rm -f conftest.$ac_objext conftest$ac_exeext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4391 (eval $ac_link) 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -s conftest$ac_exeext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_cv_lib_bsd_main=yes
4403 echo "$as_me: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4405 ac_cv_lib_bsd_main=no
4407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4410 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4411 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4412 if test $ac_cv_lib_bsd_main = yes; then
4413 cat >>confdefs.h <<_ACEOF
4414 #define HAVE_LIBBSD 1
4423 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4424 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4425 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 ac_check_lib_save_LIBS=$LIBS
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 #include "confdefs.h"
4434 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4440 char setproctitle ();
4441 #ifdef F77_DUMMY_MAIN
4445 int F77_DUMMY_MAIN() { return 1; }
4455 rm -f conftest.$ac_objext conftest$ac_exeext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4457 (eval $ac_link) 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -s conftest$ac_exeext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_lib_util_setproctitle=yes
4469 echo "$as_me: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4471 ac_cv_lib_util_setproctitle=no
4473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4474 LIBS=$ac_check_lib_save_LIBS
4476 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4477 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4478 if test $ac_cv_lib_util_setproctitle = yes; then
4479 cat >>confdefs.h <<_ACEOF
4480 #define HAVE_LIBUTIL 1
4488 echo "$as_me:$LINENO: checking for main in -lm" >&5
4489 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4490 if test "${ac_cv_lib_m_main+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_check_lib_save_LIBS=$LIBS
4495 cat >conftest.$ac_ext <<_ACEOF
4496 #line $LINENO "configure"
4497 #include "confdefs.h"
4500 #ifdef F77_DUMMY_MAIN
4504 int F77_DUMMY_MAIN() { return 1; }
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516 (eval $ac_link) 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -s conftest$ac_exeext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_cv_lib_m_main=yes
4528 echo "$as_me: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4533 LIBS=$ac_check_lib_save_LIBS
4535 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4536 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4537 if test $ac_cv_lib_m_main = yes; then
4538 cat >>confdefs.h <<_ACEOF
4547 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4548 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4549 if test "${ac_cv_lib_dl_main+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 ac_check_lib_save_LIBS=$LIBS
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 #include "confdefs.h"
4559 #ifdef F77_DUMMY_MAIN
4563 int F77_DUMMY_MAIN() { return 1; }
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575 (eval $ac_link) 2>&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_lib_dl_main=yes
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 ac_cv_lib_dl_main=no
4591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4592 LIBS=$ac_check_lib_save_LIBS
4594 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4595 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4596 if test $ac_cv_lib_dl_main = yes; then
4597 cat >>confdefs.h <<_ACEOF
4598 #define HAVE_LIBDL 1
4606 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4607 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4608 if test "${ac_cv_lib_nsl_main+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 ac_check_lib_save_LIBS=$LIBS
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 #include "confdefs.h"
4618 #ifdef F77_DUMMY_MAIN
4622 int F77_DUMMY_MAIN() { return 1; }
4632 rm -f conftest.$ac_objext conftest$ac_exeext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4634 (eval $ac_link) 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_cv_lib_nsl_main=yes
4646 echo "$as_me: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4648 ac_cv_lib_nsl_main=no
4650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4651 LIBS=$ac_check_lib_save_LIBS
4653 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4654 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4655 if test $ac_cv_lib_nsl_main = yes; then
4656 cat >>confdefs.h <<_ACEOF
4657 #define HAVE_LIBNSL 1
4665 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4666 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4667 if test "${ac_cv_lib_socket_main+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 ac_check_lib_save_LIBS=$LIBS
4671 LIBS="-lsocket $LIBS"
4672 cat >conftest.$ac_ext <<_ACEOF
4673 #line $LINENO "configure"
4674 #include "confdefs.h"
4677 #ifdef F77_DUMMY_MAIN
4681 int F77_DUMMY_MAIN() { return 1; }
4691 rm -f conftest.$ac_objext conftest$ac_exeext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4693 (eval $ac_link) 2>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -s conftest$ac_exeext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_lib_socket_main=yes
4705 echo "$as_me: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4707 ac_cv_lib_socket_main=no
4709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4710 LIBS=$ac_check_lib_save_LIBS
4712 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4713 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4714 if test $ac_cv_lib_socket_main = yes; then
4715 cat >>confdefs.h <<_ACEOF
4716 #define HAVE_LIBSOCKET 1
4719 LIBS="-lsocket $LIBS"
4724 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4725 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4726 if test "${ac_cv_lib_ipc_main+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 ac_check_lib_save_LIBS=$LIBS
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 #include "confdefs.h"
4736 #ifdef F77_DUMMY_MAIN
4740 int F77_DUMMY_MAIN() { return 1; }
4750 rm -f conftest.$ac_objext conftest$ac_exeext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752 (eval $ac_link) 2>&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -s conftest$ac_exeext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_cv_lib_ipc_main=yes
4764 echo "$as_me: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4766 ac_cv_lib_ipc_main=no
4768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4769 LIBS=$ac_check_lib_save_LIBS
4771 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4772 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4773 if test $ac_cv_lib_ipc_main = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775 #define HAVE_LIBIPC 1
4783 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4784 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4785 if test "${ac_cv_lib_IPC_main+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 ac_check_lib_save_LIBS=$LIBS
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4792 #include "confdefs.h"
4795 #ifdef F77_DUMMY_MAIN
4799 int F77_DUMMY_MAIN() { return 1; }
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811 (eval $ac_link) 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest$ac_exeext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_lib_IPC_main=yes
4823 echo "$as_me: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 ac_cv_lib_IPC_main=no
4827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828 LIBS=$ac_check_lib_save_LIBS
4830 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4831 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4832 if test $ac_cv_lib_IPC_main = yes; then
4833 cat >>confdefs.h <<_ACEOF
4834 #define HAVE_LIBIPC 1
4842 echo "$as_me:$LINENO: checking for main in -llc" >&5
4843 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4844 if test "${ac_cv_lib_lc_main+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_check_lib_save_LIBS=$LIBS
4849 cat >conftest.$ac_ext <<_ACEOF
4850 #line $LINENO "configure"
4851 #include "confdefs.h"
4854 #ifdef F77_DUMMY_MAIN
4858 int F77_DUMMY_MAIN() { return 1; }
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -s conftest$ac_exeext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_cv_lib_lc_main=yes
4882 echo "$as_me: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 ac_cv_lib_lc_main=no
4886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4887 LIBS=$ac_check_lib_save_LIBS
4889 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4890 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4891 if test $ac_cv_lib_lc_main = yes; then
4892 cat >>confdefs.h <<_ACEOF
4893 #define HAVE_LIBLC 1
4901 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4902 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4903 if test "${ac_cv_lib_dld_main+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_check_lib_save_LIBS=$LIBS
4908 cat >conftest.$ac_ext <<_ACEOF
4909 #line $LINENO "configure"
4910 #include "confdefs.h"
4913 #ifdef F77_DUMMY_MAIN
4917 int F77_DUMMY_MAIN() { return 1; }
4927 rm -f conftest.$ac_objext conftest$ac_exeext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929 (eval $ac_link) 2>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -s conftest$ac_exeext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_lib_dld_main=yes
4941 echo "$as_me: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4943 ac_cv_lib_dld_main=no
4945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4946 LIBS=$ac_check_lib_save_LIBS
4948 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4949 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4950 if test $ac_cv_lib_dld_main = yes; then
4951 cat >>confdefs.h <<_ACEOF
4952 #define HAVE_LIBDLD 1
4960 echo "$as_me:$LINENO: checking for main in -lld" >&5
4961 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4962 if test "${ac_cv_lib_ld_main+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 ac_check_lib_save_LIBS=$LIBS
4967 cat >conftest.$ac_ext <<_ACEOF
4968 #line $LINENO "configure"
4969 #include "confdefs.h"
4972 #ifdef F77_DUMMY_MAIN
4976 int F77_DUMMY_MAIN() { return 1; }
4986 rm -f conftest.$ac_objext conftest$ac_exeext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4988 (eval $ac_link) 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -s conftest$ac_exeext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_lib_ld_main=yes
5000 echo "$as_me: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 ac_cv_lib_ld_main=no
5004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5005 LIBS=$ac_check_lib_save_LIBS
5007 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5008 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5009 if test $ac_cv_lib_ld_main = yes; then
5010 cat >>confdefs.h <<_ACEOF
5011 #define HAVE_LIBLD 1
5019 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5020 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5021 if test "${ac_cv_lib_compat_main+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 ac_check_lib_save_LIBS=$LIBS
5025 LIBS="-lcompat $LIBS"
5026 cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5028 #include "confdefs.h"
5031 #ifdef F77_DUMMY_MAIN
5035 int F77_DUMMY_MAIN() { return 1; }
5045 rm -f conftest.$ac_objext conftest$ac_exeext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5047 (eval $ac_link) 2>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } &&
5051 { ac_try='test -s conftest$ac_exeext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_cv_lib_compat_main=yes
5059 echo "$as_me: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5061 ac_cv_lib_compat_main=no
5063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5064 LIBS=$ac_check_lib_save_LIBS
5066 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5067 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5068 if test $ac_cv_lib_compat_main = yes; then
5069 cat >>confdefs.h <<_ACEOF
5070 #define HAVE_LIBCOMPAT 1
5073 LIBS="-lcompat $LIBS"
5078 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5079 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5080 if test "${ac_cv_lib_BSD_main+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 ac_check_lib_save_LIBS=$LIBS
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 #include "confdefs.h"
5090 #ifdef F77_DUMMY_MAIN
5094 int F77_DUMMY_MAIN() { return 1; }
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106 (eval $ac_link) 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest$ac_exeext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_lib_BSD_main=yes
5118 echo "$as_me: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 ac_cv_lib_BSD_main=no
5122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5123 LIBS=$ac_check_lib_save_LIBS
5125 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5126 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5127 if test $ac_cv_lib_BSD_main = yes; then
5128 cat >>confdefs.h <<_ACEOF
5129 #define HAVE_LIBBSD 1
5137 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5138 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5139 if test "${ac_cv_lib_gen_main+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 ac_check_lib_save_LIBS=$LIBS
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5146 #include "confdefs.h"
5149 #ifdef F77_DUMMY_MAIN
5153 int F77_DUMMY_MAIN() { return 1; }
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -s conftest$ac_exeext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 ac_cv_lib_gen_main=yes
5177 echo "$as_me: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5179 ac_cv_lib_gen_main=no
5181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5184 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5185 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5186 if test $ac_cv_lib_gen_main = yes; then
5187 cat >>confdefs.h <<_ACEOF
5188 #define HAVE_LIBGEN 1
5196 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5197 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5198 if test "${ac_cv_lib_PW_main+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 ac_check_lib_save_LIBS=$LIBS
5203 cat >conftest.$ac_ext <<_ACEOF
5204 #line $LINENO "configure"
5205 #include "confdefs.h"
5208 #ifdef F77_DUMMY_MAIN
5212 int F77_DUMMY_MAIN() { return 1; }
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -s conftest$ac_exeext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_lib_PW_main=yes
5236 echo "$as_me: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 ac_cv_lib_PW_main=no
5240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5241 LIBS=$ac_check_lib_save_LIBS
5243 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5244 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5245 if test $ac_cv_lib_PW_main = yes; then
5246 cat >>confdefs.h <<_ACEOF
5247 #define HAVE_LIBPW 1
5255 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5256 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5257 if test "${ac_cv_lib_resolv_main+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 ac_check_lib_save_LIBS=$LIBS
5261 LIBS="-lresolv $LIBS"
5262 cat >conftest.$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 #include "confdefs.h"
5267 #ifdef F77_DUMMY_MAIN
5271 int F77_DUMMY_MAIN() { return 1; }
5281 rm -f conftest.$ac_objext conftest$ac_exeext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283 (eval $ac_link) 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest$ac_exeext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_cv_lib_resolv_main=yes
5295 echo "$as_me: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5297 ac_cv_lib_resolv_main=no
5299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5300 LIBS=$ac_check_lib_save_LIBS
5302 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5303 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5304 if test $ac_cv_lib_resolv_main = yes; then
5305 cat >>confdefs.h <<_ACEOF
5306 #define HAVE_LIBRESOLV 1
5309 LIBS="-lresolv $LIBS"
5313 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5314 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5315 if test "${ac_cv_search_getopt_long+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_func_search_save_LIBS=$LIBS
5319 ac_cv_search_getopt_long=no
5320 cat >conftest.$ac_ext <<_ACEOF
5321 #line $LINENO "configure"
5322 #include "confdefs.h"
5324 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330 char getopt_long ();
5331 #ifdef F77_DUMMY_MAIN
5335 int F77_DUMMY_MAIN() { return 1; }
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_search_getopt_long="none required"
5359 echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 if test "$ac_cv_search_getopt_long" = no; then
5364 for ac_lib in getopt gnugetopt; do
5365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5366 cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 #include "confdefs.h"
5370 /* Override any gcc2 internal prototype to avoid an error. */
5374 /* We use char because int might match the return type of a gcc2
5375 builtin and then its argument prototype would still apply. */
5376 char getopt_long ();
5377 #ifdef F77_DUMMY_MAIN
5381 int F77_DUMMY_MAIN() { return 1; }
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5393 (eval $ac_link) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_search_getopt_long="-l$ac_lib"
5406 echo "$as_me: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5412 LIBS=$ac_func_search_save_LIBS
5414 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5415 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5416 if test "$ac_cv_search_getopt_long" != no; then
5417 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5423 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5424 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5425 if test "${ac_cv_lib_unix_main+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 ac_check_lib_save_LIBS=$LIBS
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 #include "confdefs.h"
5435 #ifdef F77_DUMMY_MAIN
5439 int F77_DUMMY_MAIN() { return 1; }
5449 rm -f conftest.$ac_objext conftest$ac_exeext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451 (eval $ac_link) 2>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try='test -s conftest$ac_exeext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_cv_lib_unix_main=yes
5463 echo "$as_me: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5465 ac_cv_lib_unix_main=no
5467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5470 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5471 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5472 if test $ac_cv_lib_unix_main = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define HAVE_LIBUNIX 1
5481 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5482 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5483 if test "${ac_cv_search_crypt+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 ac_func_search_save_LIBS=$LIBS
5487 ac_cv_search_crypt=no
5488 cat >conftest.$ac_ext <<_ACEOF
5489 #line $LINENO "configure"
5490 #include "confdefs.h"
5492 /* Override any gcc2 internal prototype to avoid an error. */
5496 /* We use char because int might match the return type of a gcc2
5497 builtin and then its argument prototype would still apply. */
5499 #ifdef F77_DUMMY_MAIN
5503 int F77_DUMMY_MAIN() { return 1; }
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -s conftest$ac_exeext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_cv_search_crypt="none required"
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5531 if test "$ac_cv_search_crypt" = no; then
5532 for ac_lib in crypt; do
5533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5534 cat >conftest.$ac_ext <<_ACEOF
5535 #line $LINENO "configure"
5536 #include "confdefs.h"
5538 /* Override any gcc2 internal prototype to avoid an error. */
5542 /* We use char because int might match the return type of a gcc2
5543 builtin and then its argument prototype would still apply. */
5545 #ifdef F77_DUMMY_MAIN
5549 int F77_DUMMY_MAIN() { return 1; }
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -s conftest$ac_exeext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 ac_cv_search_crypt="-l$ac_lib"
5574 echo "$as_me: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_func_search_save_LIBS
5582 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5583 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5584 if test "$ac_cv_search_crypt" != no; then
5585 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5590 if test "$PORTNAME" = "beos"
5593 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5594 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5595 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 ac_check_lib_save_LIBS=$LIBS
5600 cat >conftest.$ac_ext <<_ACEOF
5601 #line $LINENO "configure"
5602 #include "confdefs.h"
5604 /* Override any gcc2 internal prototype to avoid an error. */
5608 /* We use char because int might match the return type of a gcc2
5609 builtin and then its argument prototype would still apply. */
5610 char __inet_ntoa ();
5611 #ifdef F77_DUMMY_MAIN
5615 int F77_DUMMY_MAIN() { return 1; }
5625 rm -f conftest.$ac_objext conftest$ac_exeext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627 (eval $ac_link) 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -s conftest$ac_exeext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_cv_lib_bind___inet_ntoa=yes
5639 echo "$as_me: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5641 ac_cv_lib_bind___inet_ntoa=no
5643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5647 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5648 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5649 cat >>confdefs.h <<_ACEOF
5650 #define HAVE_LIBBIND 1
5659 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5660 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5661 if test "${ac_cv_search_fdatasync+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 ac_func_search_save_LIBS=$LIBS
5665 ac_cv_search_fdatasync=no
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line $LINENO "configure"
5668 #include "confdefs.h"
5670 /* Override any gcc2 internal prototype to avoid an error. */
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5677 #ifdef F77_DUMMY_MAIN
5681 int F77_DUMMY_MAIN() { return 1; }
5691 rm -f conftest.$ac_objext conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_search_fdatasync="none required"
5705 echo "$as_me: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5709 if test "$ac_cv_search_fdatasync" = no; then
5710 for ac_lib in rt posix4; do
5711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5712 cat >conftest.$ac_ext <<_ACEOF
5713 #line $LINENO "configure"
5714 #include "confdefs.h"
5716 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5723 #ifdef F77_DUMMY_MAIN
5727 int F77_DUMMY_MAIN() { return 1; }
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_cv_search_fdatasync="-l$ac_lib"
5752 echo "$as_me: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_func_search_save_LIBS
5760 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5761 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5762 if test "$ac_cv_search_fdatasync" != no; then
5763 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5769 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5770 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5771 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 ac_check_lib_save_LIBS=$LIBS
5775 LIBS="-lcygipc $LIBS"
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 #include "confdefs.h"
5780 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5787 #ifdef F77_DUMMY_MAIN
5791 int F77_DUMMY_MAIN() { return 1; }
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803 (eval $ac_link) 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -s conftest$ac_exeext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_lib_cygipc_shmget=yes
5815 echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5817 ac_cv_lib_cygipc_shmget=no
5819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5820 LIBS=$ac_check_lib_save_LIBS
5822 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5823 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5824 if test $ac_cv_lib_cygipc_shmget = yes; then
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_LIBCYGIPC 1
5829 LIBS="-lcygipc $LIBS"
5834 if test "$PORTNAME" = "win32"
5837 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5838 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5839 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 ac_check_lib_save_LIBS=$LIBS
5843 LIBS="-lwsock32 $LIBS"
5844 cat >conftest.$ac_ext <<_ACEOF
5845 #line $LINENO "configure"
5846 #include "confdefs.h"
5849 #ifdef F77_DUMMY_MAIN
5853 int F77_DUMMY_MAIN() { return 1; }
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865 (eval $ac_link) 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_lib_wsock32_main=yes
5877 echo "$as_me: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5879 ac_cv_lib_wsock32_main=no
5881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5885 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5886 if test $ac_cv_lib_wsock32_main = yes; then
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_LIBWSOCK32 1
5891 LIBS="-lwsock32 $LIBS"
5897 if test "$with_readline" = yes; then
5899 echo "$as_me:$LINENO: checking for readline" >&5
5900 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5902 if test "${pgac_cv_check_readline+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 pgac_cv_check_readline=no
5906 pgac_save_LIBS=$LIBS
5907 for pgac_rllib in -lreadline -ledit ; do
5908 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5909 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 #include "confdefs.h"
5914 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5921 #ifdef F77_DUMMY_MAIN
5925 int F77_DUMMY_MAIN() { return 1; }
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 (eval $ac_link) 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -s conftest$ac_exeext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5948 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
5949 # recognize dependent libraries; assume curses is needed if we didn't
5950 # find any dependency.
5952 netbsd* | openbsd* | irix*)
5953 if test x"$pgac_lib" = x"" ; then
5954 pgac_lib=" -lcurses"
5958 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5962 echo "$as_me: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5968 LIBS=$pgac_save_LIBS
5972 if test "$pgac_cv_check_readline" != no ; then
5974 cat >>confdefs.h <<\_ACEOF
5975 #define HAVE_LIBREADLINE 1
5978 LIBS="$pgac_cv_check_readline $LIBS"
5979 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5980 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5982 echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5985 if test x"$pgac_cv_check_readline" = x"no"; then
5986 { { echo "$as_me:$LINENO: error: readline library not found
5987 If you have readline already installed, see config.log for details on the
5988 failure. It is possible the compiler isn't looking in the proper directory.
5989 Use --without-readline to disable readline support." >&5
5990 echo "$as_me: error: readline library not found
5991 If you have readline already installed, see config.log for details on the
5992 failure. It is possible the compiler isn't looking in the proper directory.
5993 Use --without-readline to disable readline support." >&2;}
5994 { (exit 1); exit 1; }; }
5998 if test "$with_zlib" = yes; then
6000 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6001 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6002 if test "${ac_cv_lib_z_inflate+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 ac_check_lib_save_LIBS=$LIBS
6007 cat >conftest.$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6009 #include "confdefs.h"
6011 /* Override any gcc2 internal prototype to avoid an error. */
6015 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6018 #ifdef F77_DUMMY_MAIN
6022 int F77_DUMMY_MAIN() { return 1; }
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -s conftest$ac_exeext'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 ac_cv_lib_z_inflate=yes
6046 echo "$as_me: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6048 ac_cv_lib_z_inflate=no
6050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6051 LIBS=$ac_check_lib_save_LIBS
6053 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6054 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6055 if test $ac_cv_lib_z_inflate = yes; then
6056 cat >>confdefs.h <<_ACEOF
6063 { { echo "$as_me:$LINENO: error: zlib library not found
6064 If you have zlib already installed, see config.log for details on the
6065 failure. It is possible the compiler isn't looking in the proper directory.
6066 Use --without-zlib to disable zlib support." >&5
6067 echo "$as_me: error: zlib library not found
6068 If you have zlib already installed, see config.log for details on the
6069 failure. It is possible the compiler isn't looking in the proper directory.
6070 Use --without-zlib to disable zlib support." >&2;}
6071 { (exit 1); exit 1; }; }
6076 if test "$enable_spinlocks" = yes; then
6078 cat >>confdefs.h <<\_ACEOF
6079 #define HAVE_SPINLOCKS 1
6083 { echo "$as_me:$LINENO: WARNING:
6084 *** Not using spinlocks will cause poor performance." >&5
6085 echo "$as_me: WARNING:
6086 *** Not using spinlocks will cause poor performance." >&2;}
6089 if test "$with_krb5" = yes ; then
6090 if test "$PORTNAME" != "win32"; then
6091 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6092 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6093 if test "${ac_cv_search_com_err+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_func_search_save_LIBS=$LIBS
6097 ac_cv_search_com_err=no
6098 cat >conftest.$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 #include "confdefs.h"
6102 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6109 #ifdef F77_DUMMY_MAIN
6113 int F77_DUMMY_MAIN() { return 1; }
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -s conftest$ac_exeext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_search_com_err="none required"
6137 echo "$as_me: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6141 if test "$ac_cv_search_com_err" = no; then
6142 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 #include "confdefs.h"
6148 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6155 #ifdef F77_DUMMY_MAIN
6159 int F77_DUMMY_MAIN() { return 1; }
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_search_com_err="-l$ac_lib"
6184 echo "$as_me: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6190 LIBS=$ac_func_search_save_LIBS
6192 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6193 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6194 if test "$ac_cv_search_com_err" != no; then
6195 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6198 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6199 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6200 { (exit 1); exit 1; }; }
6203 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6204 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6205 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 ac_func_search_save_LIBS=$LIBS
6209 ac_cv_search_krb5_encrypt=no
6210 cat >conftest.$ac_ext <<_ACEOF
6211 #line $LINENO "configure"
6212 #include "confdefs.h"
6214 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6220 char krb5_encrypt ();
6221 #ifdef F77_DUMMY_MAIN
6225 int F77_DUMMY_MAIN() { return 1; }
6235 rm -f conftest.$ac_objext conftest$ac_exeext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237 (eval $ac_link) 2>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -s conftest$ac_exeext'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_search_krb5_encrypt="none required"
6249 echo "$as_me: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6253 if test "$ac_cv_search_krb5_encrypt" = no; then
6254 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6256 cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6258 #include "confdefs.h"
6260 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6266 char krb5_encrypt ();
6267 #ifdef F77_DUMMY_MAIN
6271 int F77_DUMMY_MAIN() { return 1; }
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -s conftest$ac_exeext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_search_krb5_encrypt="-l$ac_lib"
6296 echo "$as_me: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302 LIBS=$ac_func_search_save_LIBS
6304 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6305 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6306 if test "$ac_cv_search_krb5_encrypt" != no; then
6307 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6310 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6311 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6312 { (exit 1); exit 1; }; }
6315 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6316 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6317 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_func_search_save_LIBS=$LIBS
6321 ac_cv_search_krb5_sendauth=no
6322 cat >conftest.$ac_ext <<_ACEOF
6323 #line $LINENO "configure"
6324 #include "confdefs.h"
6326 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6332 char krb5_sendauth ();
6333 #ifdef F77_DUMMY_MAIN
6337 int F77_DUMMY_MAIN() { return 1; }
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349 (eval $ac_link) 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_search_krb5_sendauth="none required"
6361 echo "$as_me: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6365 if test "$ac_cv_search_krb5_sendauth" = no; then
6366 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 #include "confdefs.h"
6372 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6378 char krb5_sendauth ();
6379 #ifdef F77_DUMMY_MAIN
6383 int F77_DUMMY_MAIN() { return 1; }
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -s conftest$ac_exeext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_cv_search_krb5_sendauth="-l$ac_lib"
6408 echo "$as_me: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6414 LIBS=$ac_func_search_save_LIBS
6416 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6417 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6418 if test "$ac_cv_search_krb5_sendauth" != no; then
6419 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6422 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6423 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6424 { (exit 1); exit 1; }; }
6428 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6429 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6430 if test "${ac_cv_search_com_err+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_func_search_save_LIBS=$LIBS
6434 ac_cv_search_com_err=no
6435 cat >conftest.$ac_ext <<_ACEOF
6436 #line $LINENO "configure"
6437 #include "confdefs.h"
6439 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6446 #ifdef F77_DUMMY_MAIN
6450 int F77_DUMMY_MAIN() { return 1; }
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 ac_cv_search_com_err="none required"
6474 echo "$as_me: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6478 if test "$ac_cv_search_com_err" = no; then
6479 for ac_lib in 'comerr32 -lkrb5_32'; do
6480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6481 cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 #include "confdefs.h"
6485 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6492 #ifdef F77_DUMMY_MAIN
6496 int F77_DUMMY_MAIN() { return 1; }
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -s conftest$ac_exeext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_search_com_err="-l$ac_lib"
6521 echo "$as_me: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6527 LIBS=$ac_func_search_save_LIBS
6529 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6530 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6531 if test "$ac_cv_search_com_err" != no; then
6532 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6535 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6536 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6537 { (exit 1); exit 1; }; }
6543 if test "$with_openssl" = yes ; then
6544 if test "$PORTNAME" != "win32"; then
6546 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6547 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6548 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 ac_check_lib_save_LIBS=$LIBS
6552 LIBS="-lcrypto $LIBS"
6553 cat >conftest.$ac_ext <<_ACEOF
6554 #line $LINENO "configure"
6555 #include "confdefs.h"
6557 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563 char CRYPTO_new_ex_data ();
6564 #ifdef F77_DUMMY_MAIN
6568 int F77_DUMMY_MAIN() { return 1; }
6573 CRYPTO_new_ex_data ();
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -s conftest$ac_exeext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6592 echo "$as_me: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6597 LIBS=$ac_check_lib_save_LIBS
6599 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6600 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6601 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603 #define HAVE_LIBCRYPTO 1
6606 LIBS="-lcrypto $LIBS"
6609 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6610 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6611 { (exit 1); exit 1; }; }
6615 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6616 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6617 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 ac_check_lib_save_LIBS=$LIBS
6622 cat >conftest.$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6624 #include "confdefs.h"
6626 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632 char SSL_library_init ();
6633 #ifdef F77_DUMMY_MAIN
6637 int F77_DUMMY_MAIN() { return 1; }
6642 SSL_library_init ();
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -s conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_cv_lib_ssl_SSL_library_init=yes
6661 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 ac_cv_lib_ssl_SSL_library_init=no
6665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6666 LIBS=$ac_check_lib_save_LIBS
6668 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6669 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6670 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6671 cat >>confdefs.h <<_ACEOF
6672 #define HAVE_LIBSSL 1
6678 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6679 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6680 { (exit 1); exit 1; }; }
6685 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6686 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6687 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_check_lib_save_LIBS=$LIBS
6691 LIBS="-leay32 $LIBS"
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6696 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6702 char CRYPTO_new_ex_data ();
6703 #ifdef F77_DUMMY_MAIN
6707 int F77_DUMMY_MAIN() { return 1; }
6712 CRYPTO_new_ex_data ();
6717 rm -f conftest.$ac_objext conftest$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6736 LIBS=$ac_check_lib_save_LIBS
6738 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6739 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6740 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_LIBEAY32 1
6745 LIBS="-leay32 $LIBS"
6748 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
6749 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
6750 { (exit 1); exit 1; }; }
6754 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
6755 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
6756 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 ac_check_lib_save_LIBS=$LIBS
6760 LIBS="-lssleay32 $LIBS"
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6763 #include "confdefs.h"
6765 /* Override any gcc2 internal prototype to avoid an error. */
6769 /* We use char because int might match the return type of a gcc2
6770 builtin and then its argument prototype would still apply. */
6771 char SSL_library_init ();
6772 #ifdef F77_DUMMY_MAIN
6776 int F77_DUMMY_MAIN() { return 1; }
6781 SSL_library_init ();
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6788 (eval $ac_link) 2>&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -s conftest$ac_exeext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_lib_ssleay32_SSL_library_init=yes
6800 echo "$as_me: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6802 ac_cv_lib_ssleay32_SSL_library_init=no
6804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6805 LIBS=$ac_check_lib_save_LIBS
6807 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
6808 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
6809 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
6810 cat >>confdefs.h <<_ACEOF
6811 #define HAVE_LIBSSLEAY32 1
6814 LIBS="-lssleay32 $LIBS"
6817 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
6818 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
6819 { (exit 1); exit 1; }; }
6825 if test "$with_pam" = yes ; then
6827 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6828 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6829 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 ac_check_lib_save_LIBS=$LIBS
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6842 /* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
6845 #ifdef F77_DUMMY_MAIN
6849 int F77_DUMMY_MAIN() { return 1; }
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861 (eval $ac_link) 2>&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
6865 { ac_try='test -s conftest$ac_exeext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_cv_lib_pam_pam_start=yes
6873 echo "$as_me: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 ac_cv_lib_pam_pam_start=no
6877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6878 LIBS=$ac_check_lib_save_LIBS
6880 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6881 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6882 if test $ac_cv_lib_pam_pam_start = yes; then
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_LIBPAM 1
6890 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6891 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6892 { (exit 1); exit 1; }; }
6902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6904 if test "${ac_cv_header_stdc+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6908 #line $LINENO "configure"
6909 #include "confdefs.h"
6916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6919 egrep -v '^ *\+' conftest.er1 >conftest.err
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } >/dev/null; then
6924 if test -s conftest.err; then
6925 ac_cpp_err=$ac_c_preproc_warn_flag
6932 if test -z "$ac_cpp_err"; then
6933 ac_cv_header_stdc=yes
6935 echo "$as_me: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6937 ac_cv_header_stdc=no
6939 rm -f conftest.err conftest.$ac_ext
6941 if test $ac_cv_header_stdc = yes; then
6942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6943 cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6945 #include "confdefs.h"
6949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950 egrep "memchr" >/dev/null 2>&1; then
6953 ac_cv_header_stdc=no
6959 if test $ac_cv_header_stdc = yes; then
6960 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6961 cat >conftest.$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6963 #include "confdefs.h"
6967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6968 egrep "free" >/dev/null 2>&1; then
6971 ac_cv_header_stdc=no
6977 if test $ac_cv_header_stdc = yes; then
6978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6979 if test "$cross_compiling" = yes; then
6982 cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 #include "confdefs.h"
6986 #if ((' ' & 0x0FF) == 0x020)
6987 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6988 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6990 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6991 || ('j' <= (c) && (c) <= 'r') \
6992 || ('s' <= (c) && (c) <= 'z'))
6993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7001 for (i = 0; i < 256; i++)
7002 if (XOR (islower (i), ISLOWER (i))
7003 || toupper (i) != TOUPPER (i))
7008 rm -f conftest$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010 (eval $ac_link) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7021 echo "$as_me: program exited with status $ac_status" >&5
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7025 ac_cv_header_stdc=no
7027 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7031 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7032 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7033 if test $ac_cv_header_stdc = yes; then
7035 cat >>confdefs.h <<\_ACEOF
7036 #define STDC_HEADERS 1
7041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7052 inttypes.h stdint.h unistd.h
7054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7055 echo "$as_me:$LINENO: checking for $ac_header" >&5
7056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 cat >conftest.$ac_ext <<_ACEOF
7061 #line $LINENO "configure"
7062 #include "confdefs.h"
7063 $ac_includes_default
7065 #include <$ac_header>
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 eval "$as_ac_Header=yes"
7081 echo "$as_me: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7083 eval "$as_ac_Header=no"
7085 rm -f conftest.$ac_objext conftest.$ac_ext
7087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7090 cat >>confdefs.h <<_ACEOF
7091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7124 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128 echo "$as_me:$LINENO: checking for $ac_header" >&5
7129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7136 # Is the header compilable?
7137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7142 $ac_includes_default
7143 #include <$ac_header>
7145 rm -f conftest.$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -s conftest.$ac_objext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_header_compiler=yes
7159 echo "$as_me: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 ac_header_compiler=no
7163 rm -f conftest.$ac_objext conftest.$ac_ext
7164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7165 echo "${ECHO_T}$ac_header_compiler" >&6
7167 # Is the header present?
7168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7170 cat >conftest.$ac_ext <<_ACEOF
7171 #line $LINENO "configure"
7172 #include "confdefs.h"
7173 #include <$ac_header>
7175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7178 egrep -v '^ *\+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } >/dev/null; then
7183 if test -s conftest.err; then
7184 ac_cpp_err=$ac_c_preproc_warn_flag
7191 if test -z "$ac_cpp_err"; then
7192 ac_header_preproc=yes
7194 echo "$as_me: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7196 ac_header_preproc=no
7198 rm -f conftest.err conftest.$ac_ext
7199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7200 echo "${ECHO_T}$ac_header_preproc" >&6
7202 # So? What about this header?
7203 case $ac_header_compiler:$ac_header_preproc in
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7217 echo "$as_me:$LINENO: checking for $ac_header" >&5
7218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 eval "$as_ac_Header=$ac_header_preproc"
7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7229 cat >>confdefs.h <<_ACEOF
7230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7239 # netinet/in.h is included first.
7241 for ac_header in netinet/in.h
7243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo "$as_me:$LINENO: checking for $ac_header" >&5
7246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7253 # Is the header compilable?
7254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7256 cat >conftest.$ac_ext <<_ACEOF
7257 #line $LINENO "configure"
7258 #include "confdefs.h"
7259 $ac_includes_default
7260 #include <$ac_header>
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 ac_header_compiler=yes
7276 echo "$as_me: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 ac_header_compiler=no
7280 rm -f conftest.$ac_objext conftest.$ac_ext
7281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7282 echo "${ECHO_T}$ac_header_compiler" >&6
7284 # Is the header present?
7285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7287 cat >conftest.$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7289 #include "confdefs.h"
7290 #include <$ac_header>
7292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7295 egrep -v '^ *\+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } >/dev/null; then
7300 if test -s conftest.err; then
7301 ac_cpp_err=$ac_c_preproc_warn_flag
7308 if test -z "$ac_cpp_err"; then
7309 ac_header_preproc=yes
7311 echo "$as_me: failed program was:" >&5
7312 cat conftest.$ac_ext >&5
7313 ac_header_preproc=no
7315 rm -f conftest.err conftest.$ac_ext
7316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7317 echo "${ECHO_T}$ac_header_preproc" >&6
7319 # So? What about this header?
7320 case $ac_header_compiler:$ac_header_preproc in
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7334 echo "$as_me:$LINENO: checking for $ac_header" >&5
7335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 eval "$as_ac_Header=$ac_header_preproc"
7341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7346 cat >>confdefs.h <<_ACEOF
7347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7355 for ac_header in netinet/tcp.h
7357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7358 echo "$as_me:$LINENO: checking for $ac_header" >&5
7359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 cat >conftest.$ac_ext <<_ACEOF
7364 #line $LINENO "configure"
7365 #include "confdefs.h"
7366 $ac_includes_default
7367 #ifdef HAVE_NETINET_IN_H
7368 #include <netinet/in.h>
7372 #include <$ac_header>
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -s conftest.$ac_objext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 eval "$as_ac_Header=yes"
7388 echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 eval "$as_ac_Header=no"
7392 rm -f conftest.$ac_objext conftest.$ac_ext
7394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397 cat >>confdefs.h <<_ACEOF
7398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7406 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7408 for ac_header in readline/readline.h
7410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo "$as_me:$LINENO: checking for $ac_header" >&5
7413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7420 # Is the header compilable?
7421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7424 #line $LINENO "configure"
7425 #include "confdefs.h"
7426 $ac_includes_default
7427 #include <$ac_header>
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 (eval $ac_compile) 2>&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 ac_header_compiler=yes
7443 echo "$as_me: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7445 ac_header_compiler=no
7447 rm -f conftest.$ac_objext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6
7451 # Is the header present?
7452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7455 #line $LINENO "configure"
7456 #include "confdefs.h"
7457 #include <$ac_header>
7459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7462 egrep -v '^ *\+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } >/dev/null; then
7467 if test -s conftest.err; then
7468 ac_cpp_err=$ac_c_preproc_warn_flag
7475 if test -z "$ac_cpp_err"; then
7476 ac_header_preproc=yes
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 ac_header_preproc=no
7482 rm -f conftest.err conftest.$ac_ext
7483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6
7486 # So? What about this header?
7487 case $ac_header_compiler:$ac_header_preproc in
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 eval "$as_ac_Header=$ac_header_preproc"
7508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513 cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519 for ac_header in readline.h
7521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7523 echo "$as_me:$LINENO: checking for $ac_header" >&5
7524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7531 # Is the header compilable?
7532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7534 cat >conftest.$ac_ext <<_ACEOF
7535 #line $LINENO "configure"
7536 #include "confdefs.h"
7537 $ac_includes_default
7538 #include <$ac_header>
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_header_compiler=yes
7554 echo "$as_me: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7556 ac_header_compiler=no
7558 rm -f conftest.$ac_objext conftest.$ac_ext
7559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7560 echo "${ECHO_T}$ac_header_compiler" >&6
7562 # Is the header present?
7563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7565 cat >conftest.$ac_ext <<_ACEOF
7566 #line $LINENO "configure"
7567 #include "confdefs.h"
7568 #include <$ac_header>
7570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7573 egrep -v '^ *\+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } >/dev/null; then
7578 if test -s conftest.err; then
7579 ac_cpp_err=$ac_c_preproc_warn_flag
7586 if test -z "$ac_cpp_err"; then
7587 ac_header_preproc=yes
7589 echo "$as_me: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 ac_header_preproc=no
7593 rm -f conftest.err conftest.$ac_ext
7594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7595 echo "${ECHO_T}$ac_header_preproc" >&6
7597 # So? What about this header?
7598 case $ac_header_compiler:$ac_header_preproc in
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7612 echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 eval "$as_ac_Header=$ac_header_preproc"
7619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7629 { { echo "$as_me:$LINENO: error: readline header not found
7630 If you have readline already installed, see config.log for details on the
7631 failure. It is possible the compiler isn't looking in the proper directory.
7632 Use --without-readline to disable readline support." >&5
7633 echo "$as_me: error: readline header not found
7634 If you have readline already installed, see config.log for details on the
7635 failure. It is possible the compiler isn't looking in the proper directory.
7636 Use --without-readline to disable readline support." >&2;}
7637 { (exit 1); exit 1; }; }
7647 for ac_header in readline/history.h
7649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7651 echo "$as_me:$LINENO: checking for $ac_header" >&5
7652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7659 # Is the header compilable?
7660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7662 cat >conftest.$ac_ext <<_ACEOF
7663 #line $LINENO "configure"
7664 #include "confdefs.h"
7665 $ac_includes_default
7666 #include <$ac_header>
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -s conftest.$ac_objext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_header_compiler=yes
7682 echo "$as_me: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 ac_header_compiler=no
7686 rm -f conftest.$ac_objext conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7688 echo "${ECHO_T}$ac_header_compiler" >&6
7690 # Is the header present?
7691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7694 #line $LINENO "configure"
7695 #include "confdefs.h"
7696 #include <$ac_header>
7698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7701 egrep -v '^ *\+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } >/dev/null; then
7706 if test -s conftest.err; then
7707 ac_cpp_err=$ac_c_preproc_warn_flag
7714 if test -z "$ac_cpp_err"; then
7715 ac_header_preproc=yes
7717 echo "$as_me: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7719 ac_header_preproc=no
7721 rm -f conftest.err conftest.$ac_ext
7722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 echo "${ECHO_T}$ac_header_preproc" >&6
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc in
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7740 echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 eval "$as_ac_Header=$ac_header_preproc"
7747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7752 cat >>confdefs.h <<_ACEOF
7753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7758 for ac_header in history.h
7760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7762 echo "$as_me:$LINENO: checking for $ac_header" >&5
7763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7770 # Is the header compilable?
7771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 #include "confdefs.h"
7776 $ac_includes_default
7777 #include <$ac_header>
7779 rm -f conftest.$ac_objext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781 (eval $ac_compile) 2>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_header_compiler=yes
7793 echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 ac_header_compiler=no
7797 rm -f conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7806 #include "confdefs.h"
7807 #include <$ac_header>
7809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7812 egrep -v '^ *\+' conftest.er1 >conftest.err
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } >/dev/null; then
7817 if test -s conftest.err; then
7818 ac_cpp_err=$ac_c_preproc_warn_flag
7825 if test -z "$ac_cpp_err"; then
7826 ac_header_preproc=yes
7828 echo "$as_me: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7830 ac_header_preproc=no
7832 rm -f conftest.err conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7834 echo "${ECHO_T}$ac_header_preproc" >&6
7836 # So? What about this header?
7837 case $ac_header_compiler:$ac_header_preproc in
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7851 echo "$as_me:$LINENO: checking for $ac_header" >&5
7852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 eval "$as_ac_Header=$ac_header_preproc"
7858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7863 cat >>confdefs.h <<_ACEOF
7864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7868 { { echo "$as_me:$LINENO: error: history header not found
7869 If you have readline already installed, see config.log for details on the
7870 failure. It is possible the compiler isn't looking in the proper directory.
7871 Use --without-readline to disable readline support." >&5
7872 echo "$as_me: error: history header not found
7873 If you have readline already installed, see config.log for details on the
7874 failure. It is possible the compiler isn't looking in the proper directory.
7875 Use --without-readline to disable readline support." >&2;}
7876 { (exit 1); exit 1; }; }
7887 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
7888 # Some installations of libedit usurp /usr/include/readline/, which seems
7889 # bad practice, since in combined installations readline will have its headers
7890 # there. We might have to resort to AC_EGREP checks to make sure we found
7891 # the proper header...
7893 for ac_header in editline/readline.h
7895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7897 echo "$as_me:$LINENO: checking for $ac_header" >&5
7898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7905 # Is the header compilable?
7906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7908 cat >conftest.$ac_ext <<_ACEOF
7909 #line $LINENO "configure"
7910 #include "confdefs.h"
7911 $ac_includes_default
7912 #include <$ac_header>
7914 rm -f conftest.$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -s conftest.$ac_objext'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_header_compiler=yes
7928 echo "$as_me: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7930 ac_header_compiler=no
7932 rm -f conftest.$ac_objext conftest.$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7934 echo "${ECHO_T}$ac_header_compiler" >&6
7936 # Is the header present?
7937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 #include "confdefs.h"
7942 #include <$ac_header>
7944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7947 egrep -v '^ *\+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } >/dev/null; then
7952 if test -s conftest.err; then
7953 ac_cpp_err=$ac_c_preproc_warn_flag
7960 if test -z "$ac_cpp_err"; then
7961 ac_header_preproc=yes
7963 echo "$as_me: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7965 ac_header_preproc=no
7967 rm -f conftest.err conftest.$ac_ext
7968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7969 echo "${ECHO_T}$ac_header_preproc" >&6
7971 # So? What about this header?
7972 case $ac_header_compiler:$ac_header_preproc in
7974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 eval "$as_ac_Header=$ac_header_preproc"
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8004 for ac_header in readline.h
8006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8008 echo "$as_me:$LINENO: checking for $ac_header" >&5
8009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8016 # Is the header compilable?
8017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8021 #include "confdefs.h"
8022 $ac_includes_default
8023 #include <$ac_header>
8025 rm -f conftest.$ac_objext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027 (eval $ac_compile) 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_header_compiler=yes
8039 echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 ac_header_compiler=no
8043 rm -f conftest.$ac_objext conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8045 echo "${ECHO_T}$ac_header_compiler" >&6
8047 # Is the header present?
8048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 #include "confdefs.h"
8053 #include <$ac_header>
8055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8058 egrep -v '^ *\+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } >/dev/null; then
8063 if test -s conftest.err; then
8064 ac_cpp_err=$ac_c_preproc_warn_flag
8071 if test -z "$ac_cpp_err"; then
8072 ac_header_preproc=yes
8074 echo "$as_me: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8076 ac_header_preproc=no
8078 rm -f conftest.err conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8080 echo "${ECHO_T}$ac_header_preproc" >&6
8082 # So? What about this header?
8083 case $ac_header_compiler:$ac_header_preproc in
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8097 echo "$as_me:$LINENO: checking for $ac_header" >&5
8098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 eval "$as_ac_Header=$ac_header_preproc"
8104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8109 cat >>confdefs.h <<_ACEOF
8110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115 for ac_header in readline/readline.h
8117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8119 echo "$as_me:$LINENO: checking for $ac_header" >&5
8120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8127 # Is the header compilable?
8128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 #include "confdefs.h"
8133 $ac_includes_default
8134 #include <$ac_header>
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_header_compiler=yes
8150 echo "$as_me: failed program was:" >&5
8151 cat conftest.$ac_ext >&5
8152 ac_header_compiler=no
8154 rm -f conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8163 #include "confdefs.h"
8164 #include <$ac_header>
8166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8169 egrep -v '^ *\+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8182 if test -z "$ac_cpp_err"; then
8183 ac_header_preproc=yes
8185 echo "$as_me: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8187 ac_header_preproc=no
8189 rm -f conftest.err conftest.$ac_ext
8190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8191 echo "${ECHO_T}$ac_header_preproc" >&6
8193 # So? What about this header?
8194 case $ac_header_compiler:$ac_header_preproc in
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8208 echo "$as_me:$LINENO: checking for $ac_header" >&5
8209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 eval "$as_ac_Header=$ac_header_preproc"
8215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8220 cat >>confdefs.h <<_ACEOF
8221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225 { { echo "$as_me:$LINENO: error: readline header not found
8226 If you have libedit already installed, see config.log for details on the
8227 failure. It is possible the compiler isn't looking in the proper directory.
8228 Use --without-readline to disable libedit support." >&5
8229 echo "$as_me: error: readline header not found
8230 If you have libedit already installed, see config.log for details on the
8231 failure. It is possible the compiler isn't looking in the proper directory.
8232 Use --without-readline to disable libedit support." >&2;}
8233 { (exit 1); exit 1; }; }
8247 for ac_header in editline/history.h
8249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251 echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8259 # Is the header compilable?
8260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8263 #line $LINENO "configure"
8264 #include "confdefs.h"
8265 $ac_includes_default
8266 #include <$ac_header>
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 ac_header_compiler=yes
8282 echo "$as_me: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284 ac_header_compiler=no
8286 rm -f conftest.$ac_objext conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288 echo "${ECHO_T}$ac_header_compiler" >&6
8290 # Is the header present?
8291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8294 #line $LINENO "configure"
8295 #include "confdefs.h"
8296 #include <$ac_header>
8298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8301 egrep -v '^ *\+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } >/dev/null; then
8306 if test -s conftest.err; then
8307 ac_cpp_err=$ac_c_preproc_warn_flag
8314 if test -z "$ac_cpp_err"; then
8315 ac_header_preproc=yes
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ac_header_preproc=no
8321 rm -f conftest.err conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8323 echo "${ECHO_T}$ac_header_preproc" >&6
8325 # So? What about this header?
8326 case $ac_header_compiler:$ac_header_preproc in
8328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8340 echo "$as_me:$LINENO: checking for $ac_header" >&5
8341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 eval "$as_ac_Header=$ac_header_preproc"
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8352 cat >>confdefs.h <<_ACEOF
8353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358 for ac_header in history.h
8360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8362 echo "$as_me:$LINENO: checking for $ac_header" >&5
8363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8370 # Is the header compilable?
8371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8373 cat >conftest.$ac_ext <<_ACEOF
8374 #line $LINENO "configure"
8375 #include "confdefs.h"
8376 $ac_includes_default
8377 #include <$ac_header>
8379 rm -f conftest.$ac_objext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_header_compiler=yes
8393 echo "$as_me: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 ac_header_compiler=no
8397 rm -f conftest.$ac_objext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8399 echo "${ECHO_T}$ac_header_compiler" >&6
8401 # Is the header present?
8402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8405 #line $LINENO "configure"
8406 #include "confdefs.h"
8407 #include <$ac_header>
8409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8412 egrep -v '^ *\+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } >/dev/null; then
8417 if test -s conftest.err; then
8418 ac_cpp_err=$ac_c_preproc_warn_flag
8425 if test -z "$ac_cpp_err"; then
8426 ac_header_preproc=yes
8428 echo "$as_me: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8430 ac_header_preproc=no
8432 rm -f conftest.err conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6
8436 # So? What about this header?
8437 case $ac_header_compiler:$ac_header_preproc in
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8451 echo "$as_me:$LINENO: checking for $ac_header" >&5
8452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 eval "$as_ac_Header=$ac_header_preproc"
8458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8463 cat >>confdefs.h <<_ACEOF
8464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8469 for ac_header in readline/history.h
8471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8473 echo "$as_me:$LINENO: checking for $ac_header" >&5
8474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8481 # Is the header compilable?
8482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8486 #include "confdefs.h"
8487 $ac_includes_default
8488 #include <$ac_header>
8490 rm -f conftest.$ac_objext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492 (eval $ac_compile) 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -s conftest.$ac_objext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_header_compiler=yes
8504 echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 ac_header_compiler=no
8508 rm -f conftest.$ac_objext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8510 echo "${ECHO_T}$ac_header_compiler" >&6
8512 # Is the header present?
8513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line $LINENO "configure"
8517 #include "confdefs.h"
8518 #include <$ac_header>
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 egrep -v '^ *\+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_c_preproc_warn_flag
8536 if test -z "$ac_cpp_err"; then
8537 ac_header_preproc=yes
8539 echo "$as_me: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8541 ac_header_preproc=no
8543 rm -f conftest.err conftest.$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8545 echo "${ECHO_T}$ac_header_preproc" >&6
8547 # So? What about this header?
8548 case $ac_header_compiler:$ac_header_preproc in
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8562 echo "$as_me:$LINENO: checking for $ac_header" >&5
8563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 eval "$as_ac_Header=$ac_header_preproc"
8569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8574 cat >>confdefs.h <<_ACEOF
8575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579 { { echo "$as_me:$LINENO: error: history header not found
8580 If you have libedit already installed, see config.log for details on the
8581 failure. It is possible the compiler isn't looking in the proper directory.
8582 Use --without-readline to disable libedit support." >&5
8583 echo "$as_me: error: history header not found
8584 If you have libedit already installed, see config.log for details on the
8585 failure. It is possible the compiler isn't looking in the proper directory.
8586 Use --without-readline to disable libedit support." >&2;}
8587 { (exit 1); exit 1; }; }
8602 if test "$with_zlib" = yes; then
8603 if test "${ac_cv_header_zlib_h+set}" = set; then
8604 echo "$as_me:$LINENO: checking for zlib.h" >&5
8605 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8606 if test "${ac_cv_header_zlib_h+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8610 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8612 # Is the header compilable?
8613 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8614 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8616 #line $LINENO "configure"
8617 #include "confdefs.h"
8618 $ac_includes_default
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_header_compiler=yes
8635 echo "$as_me: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8637 ac_header_compiler=no
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8643 # Is the header present?
8644 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8645 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654 egrep -v '^ *\+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } >/dev/null; then
8659 if test -s conftest.err; then
8660 ac_cpp_err=$ac_c_preproc_warn_flag
8667 if test -z "$ac_cpp_err"; then
8668 ac_header_preproc=yes
8670 echo "$as_me: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8672 ac_header_preproc=no
8674 rm -f conftest.err conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8676 echo "${ECHO_T}$ac_header_preproc" >&6
8678 # So? What about this header?
8679 case $ac_header_compiler:$ac_header_preproc in
8681 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8682 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8686 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8687 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8689 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8693 echo "$as_me:$LINENO: checking for zlib.h" >&5
8694 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8695 if test "${ac_cv_header_zlib_h+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 ac_cv_header_zlib_h=$ac_header_preproc
8700 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8701 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8704 if test $ac_cv_header_zlib_h = yes; then
8707 { { echo "$as_me:$LINENO: error: zlib header not found
8708 If you have zlib already installed, see config.log for details on the
8709 failure. It is possible the compiler isn't looking in the proper directory.
8710 Use --without-zlib to disable zlib support." >&5
8711 echo "$as_me: error: zlib header not found
8712 If you have zlib already installed, see config.log for details on the
8713 failure. It is possible the compiler isn't looking in the proper directory.
8714 Use --without-zlib to disable zlib support." >&2;}
8715 { (exit 1); exit 1; }; }
8721 if test "$with_krb5" = yes ; then
8722 if test "${ac_cv_header_krb5_h+set}" = set; then
8723 echo "$as_me:$LINENO: checking for krb5.h" >&5
8724 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8725 if test "${ac_cv_header_krb5_h+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8729 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8731 # Is the header compilable?
8732 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8733 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8736 #include "confdefs.h"
8737 $ac_includes_default
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -s conftest.$ac_objext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_header_compiler=yes
8754 echo "$as_me: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 ac_header_compiler=no
8758 rm -f conftest.$ac_objext conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8760 echo "${ECHO_T}$ac_header_compiler" >&6
8762 # Is the header present?
8763 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8764 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8767 #include "confdefs.h"
8770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8773 egrep -v '^ *\+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } >/dev/null; then
8778 if test -s conftest.err; then
8779 ac_cpp_err=$ac_c_preproc_warn_flag
8786 if test -z "$ac_cpp_err"; then
8787 ac_header_preproc=yes
8789 echo "$as_me: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 ac_header_preproc=no
8793 rm -f conftest.err conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8795 echo "${ECHO_T}$ac_header_preproc" >&6
8797 # So? What about this header?
8798 case $ac_header_compiler:$ac_header_preproc in
8800 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8801 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8803 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8805 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8806 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8808 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8812 echo "$as_me:$LINENO: checking for krb5.h" >&5
8813 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8814 if test "${ac_cv_header_krb5_h+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 ac_cv_header_krb5_h=$ac_header_preproc
8819 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8820 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8823 if test $ac_cv_header_krb5_h = yes; then
8826 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8827 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8828 { (exit 1); exit 1; }; }
8834 if test "$with_openssl" = yes ; then
8835 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8836 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8837 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8838 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8842 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8844 # Is the header compilable?
8845 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8846 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8847 cat >conftest.$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8849 #include "confdefs.h"
8850 $ac_includes_default
8851 #include <openssl/ssl.h>
8853 rm -f conftest.$ac_objext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8855 (eval $ac_compile) 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_header_compiler=yes
8867 echo "$as_me: failed program was:" >&5
8868 cat conftest.$ac_ext >&5
8869 ac_header_compiler=no
8871 rm -f conftest.$ac_objext conftest.$ac_ext
8872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8873 echo "${ECHO_T}$ac_header_compiler" >&6
8875 # Is the header present?
8876 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8877 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 #include "confdefs.h"
8881 #include <openssl/ssl.h>
8883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8886 egrep -v '^ *\+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } >/dev/null; then
8891 if test -s conftest.err; then
8892 ac_cpp_err=$ac_c_preproc_warn_flag
8899 if test -z "$ac_cpp_err"; then
8900 ac_header_preproc=yes
8902 echo "$as_me: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8904 ac_header_preproc=no
8906 rm -f conftest.err conftest.$ac_ext
8907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8908 echo "${ECHO_T}$ac_header_preproc" >&6
8910 # So? What about this header?
8911 case $ac_header_compiler:$ac_header_preproc in
8913 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8914 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8916 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8918 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8919 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8921 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8923 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8925 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8926 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8927 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8932 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8933 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8936 if test $ac_cv_header_openssl_ssl_h = yes; then
8939 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8940 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8941 { (exit 1); exit 1; }; }
8945 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8946 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8947 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8948 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8952 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8954 # Is the header compilable?
8955 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8956 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8959 #include "confdefs.h"
8960 $ac_includes_default
8961 #include <openssl/err.h>
8963 rm -f conftest.$ac_objext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8965 (eval $ac_compile) 2>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -s conftest.$ac_objext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_header_compiler=yes
8977 echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8979 ac_header_compiler=no
8981 rm -f conftest.$ac_objext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8983 echo "${ECHO_T}$ac_header_compiler" >&6
8985 # Is the header present?
8986 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8987 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 #include "confdefs.h"
8991 #include <openssl/err.h>
8993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8996 egrep -v '^ *\+' conftest.er1 >conftest.err
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } >/dev/null; then
9001 if test -s conftest.err; then
9002 ac_cpp_err=$ac_c_preproc_warn_flag
9009 if test -z "$ac_cpp_err"; then
9010 ac_header_preproc=yes
9012 echo "$as_me: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9014 ac_header_preproc=no
9016 rm -f conftest.err conftest.$ac_ext
9017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9018 echo "${ECHO_T}$ac_header_preproc" >&6
9020 # So? What about this header?
9021 case $ac_header_compiler:$ac_header_preproc in
9023 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9024 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9026 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9028 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9029 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9031 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9033 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9035 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9036 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9037 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 ac_cv_header_openssl_err_h=$ac_header_preproc
9042 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9043 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9046 if test $ac_cv_header_openssl_err_h = yes; then
9049 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9050 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9051 { (exit 1); exit 1; }; }
9057 if test "$with_pam" = yes ; then
9059 for ac_header in security/pam_appl.h
9061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9063 echo "$as_me:$LINENO: checking for $ac_header" >&5
9064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9071 # Is the header compilable?
9072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 #include "confdefs.h"
9077 $ac_includes_default
9078 #include <$ac_header>
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_header_compiler=yes
9094 echo "$as_me: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 ac_header_compiler=no
9098 rm -f conftest.$ac_objext conftest.$ac_ext
9099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9100 echo "${ECHO_T}$ac_header_compiler" >&6
9102 # Is the header present?
9103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 #include "confdefs.h"
9108 #include <$ac_header>
9110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9113 egrep -v '^ *\+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } >/dev/null; then
9118 if test -s conftest.err; then
9119 ac_cpp_err=$ac_c_preproc_warn_flag
9126 if test -z "$ac_cpp_err"; then
9127 ac_header_preproc=yes
9129 echo "$as_me: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 ac_header_preproc=no
9133 rm -f conftest.err conftest.$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135 echo "${ECHO_T}$ac_header_preproc" >&6
9137 # So? What about this header?
9138 case $ac_header_compiler:$ac_header_preproc in
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9152 echo "$as_me:$LINENO: checking for $ac_header" >&5
9153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 eval "$as_ac_Header=$ac_header_preproc"
9159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9164 cat >>confdefs.h <<_ACEOF
9165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9170 for ac_header in pam/pam_appl.h
9172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo "$as_me:$LINENO: checking for $ac_header" >&5
9175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9182 # Is the header compilable?
9183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9186 #line $LINENO "configure"
9187 #include "confdefs.h"
9188 $ac_includes_default
9189 #include <$ac_header>
9191 rm -f conftest.$ac_objext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9193 (eval $ac_compile) 2>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -s conftest.$ac_objext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 ac_header_compiler=yes
9205 echo "$as_me: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9207 ac_header_compiler=no
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9211 echo "${ECHO_T}$ac_header_compiler" >&6
9213 # Is the header present?
9214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 #include "confdefs.h"
9219 #include <$ac_header>
9221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9224 egrep -v '^ *\+' conftest.er1 >conftest.err
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } >/dev/null; then
9229 if test -s conftest.err; then
9230 ac_cpp_err=$ac_c_preproc_warn_flag
9237 if test -z "$ac_cpp_err"; then
9238 ac_header_preproc=yes
9240 echo "$as_me: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9242 ac_header_preproc=no
9244 rm -f conftest.err conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9246 echo "${ECHO_T}$ac_header_preproc" >&6
9248 # So? What about this header?
9249 case $ac_header_compiler:$ac_header_preproc in
9251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9263 echo "$as_me:$LINENO: checking for $ac_header" >&5
9264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 eval "$as_ac_Header=$ac_header_preproc"
9270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9275 cat >>confdefs.h <<_ACEOF
9276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9280 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9281 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9282 { (exit 1); exit 1; }; }
9293 if test "$with_bonjour" = yes ; then
9294 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9295 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9296 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9297 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9301 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9303 # Is the header compilable?
9304 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9305 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9306 cat >conftest.$ac_ext <<_ACEOF
9307 #line $LINENO "configure"
9308 #include "confdefs.h"
9309 $ac_includes_default
9310 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_header_compiler=yes
9326 echo "$as_me: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9328 ac_header_compiler=no
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6
9334 # Is the header present?
9335 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9336 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9338 #line $LINENO "configure"
9339 #include "confdefs.h"
9340 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9345 egrep -v '^ *\+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } >/dev/null; then
9350 if test -s conftest.err; then
9351 ac_cpp_err=$ac_c_preproc_warn_flag
9358 if test -z "$ac_cpp_err"; then
9359 ac_header_preproc=yes
9361 echo "$as_me: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 ac_header_preproc=no
9365 rm -f conftest.err conftest.$ac_ext
9366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9367 echo "${ECHO_T}$ac_header_preproc" >&6
9369 # So? What about this header?
9370 case $ac_header_compiler:$ac_header_preproc in
9372 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9373 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9375 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9377 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9378 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9380 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9382 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9384 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9385 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9386 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9391 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9392 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9395 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9398 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
9399 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
9400 { (exit 1); exit 1; }; }
9408 ## Types, structures, compiler characteristics
9412 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9413 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9414 if test "${ac_cv_c_const+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9419 #include "confdefs.h"
9421 #ifdef F77_DUMMY_MAIN
9425 int F77_DUMMY_MAIN() { return 1; }
9430 /* FIXME: Include the comments suggested by Paul. */
9432 /* Ultrix mips cc rejects this. */
9433 typedef int charset[2];
9435 /* SunOS 4.1.1 cc rejects this. */
9436 char const *const *ccp;
9438 /* NEC SVR4.0.2 mips cc rejects this. */
9439 struct point {int x, y;};
9440 static struct point const zero = {0,0};
9441 /* AIX XL C 1.02.0.0 rejects this.
9442 It does not let you subtract one const X* pointer from another in
9443 an arm of an if-expression whose if-part is not a constant
9445 const char *g = "string";
9446 ccp = &g + (g ? g-g : 0);
9447 /* HPUX 7.0 cc rejects these. */
9450 ccp = (char const *const *) p;
9451 { /* SCO 3.2v4 cc rejects this. */
9453 char const *s = 0 ? (char *) 0 : (char const *) 0;
9457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9459 const int *foo = &x[0];
9462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9463 typedef const int *iptr;
9467 { /* AIX XL C 1.02.0.0 rejects this saying
9468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9469 struct s { int j; const int *ap[3]; };
9470 struct s *b; b->j = 5;
9472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9481 rm -f conftest.$ac_objext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9483 (eval $ac_compile) 2>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -s conftest.$ac_objext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9495 echo "$as_me: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9499 rm -f conftest.$ac_objext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9502 echo "${ECHO_T}$ac_cv_c_const" >&6
9503 if test $ac_cv_c_const = no; then
9505 cat >>confdefs.h <<\_ACEOF
9511 echo "$as_me:$LINENO: checking for inline" >&5
9512 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9513 if test "${ac_cv_c_inline+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 for ac_kw in inline __inline__ __inline; do
9518 cat >conftest.$ac_ext <<_ACEOF
9519 #line $LINENO "configure"
9520 #include "confdefs.h"
9523 static $ac_kw foo_t static_foo () {return 0; }
9524 $ac_kw int foo () {return 0; }
9528 rm -f conftest.$ac_objext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9530 (eval $ac_compile) 2>&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try='test -s conftest.$ac_objext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 ac_cv_c_inline=$ac_kw; break
9542 echo "$as_me: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 rm -f conftest.$ac_objext conftest.$ac_ext
9549 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9550 echo "${ECHO_T}$ac_cv_c_inline" >&6
9551 case $ac_cv_c_inline in
9554 cat >>confdefs.h <<\_ACEOF
9558 *) cat >>confdefs.h <<_ACEOF
9559 #define inline $ac_cv_c_inline
9564 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9565 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9566 if test "${ac_cv_c_stringize+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 #include "confdefs.h"
9574 char *s = x(teststring);
9576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9577 egrep "#teststring" >/dev/null 2>&1; then
9578 ac_cv_c_stringize=no
9580 ac_cv_c_stringize=yes
9585 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9586 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9587 if test $ac_cv_c_stringize = yes; then
9589 cat >>confdefs.h <<\_ACEOF
9590 #define HAVE_STRINGIZE 1
9595 echo "$as_me:$LINENO: checking for signed types" >&5
9596 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9597 if test "${pgac_cv_c_signed+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9604 #ifdef F77_DUMMY_MAIN
9608 int F77_DUMMY_MAIN() { return 1; }
9613 signed char c; signed short s; signed int i;
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620 (eval $ac_compile) 2>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -s conftest.$ac_objext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 pgac_cv_c_signed=yes
9632 echo "$as_me: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9636 rm -f conftest.$ac_objext conftest.$ac_ext
9638 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9639 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9640 if test x"$pgac_cv_c_signed" = xno ; then
9642 cat >>confdefs.h <<\_ACEOF
9647 echo "$as_me:$LINENO: checking for working volatile" >&5
9648 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9649 if test "${ac_cv_c_volatile+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9656 #ifdef F77_DUMMY_MAIN
9660 int F77_DUMMY_MAIN() { return 1; }
9672 rm -f conftest.$ac_objext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9674 (eval $ac_compile) 2>&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_cv_c_volatile=yes
9686 echo "$as_me: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9690 rm -f conftest.$ac_objext conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9693 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9694 if test $ac_cv_c_volatile = no; then
9696 cat >>confdefs.h <<\_ACEOF
9702 echo "$as_me:$LINENO: checking for __func__" >&5
9703 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9704 if test "${pgac_cv_funcname_func_support+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 cat >conftest.$ac_ext <<_ACEOF
9708 #line $LINENO "configure"
9709 #include "confdefs.h"
9711 #ifdef F77_DUMMY_MAIN
9715 int F77_DUMMY_MAIN() { return 1; }
9720 printf("%s\n", __func__);
9725 rm -f conftest.$ac_objext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9727 (eval $ac_compile) 2>&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -s conftest.$ac_objext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 pgac_cv_funcname_func_support=yes
9739 echo "$as_me: failed program was:" >&5
9740 cat conftest.$ac_ext >&5
9741 pgac_cv_funcname_func_support=no
9743 rm -f conftest.$ac_objext conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9746 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9747 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9749 cat >>confdefs.h <<\_ACEOF
9750 #define HAVE_FUNCNAME__FUNC 1
9754 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9755 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9756 if test "${pgac_cv_funcname_function_support+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 cat >conftest.$ac_ext <<_ACEOF
9760 #line $LINENO "configure"
9761 #include "confdefs.h"
9763 #ifdef F77_DUMMY_MAIN
9767 int F77_DUMMY_MAIN() { return 1; }
9772 printf("%s\n", __FUNCTION__);
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -s conftest.$ac_objext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 pgac_cv_funcname_function_support=yes
9791 echo "$as_me: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 pgac_cv_funcname_function_support=no
9795 rm -f conftest.$ac_objext conftest.$ac_ext
9797 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9798 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9799 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_FUNCNAME__FUNCTION 1
9807 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9809 if test "${ac_cv_struct_tm+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 cat >conftest.$ac_ext <<_ACEOF
9813 #line $LINENO "configure"
9814 #include "confdefs.h"
9815 #include <sys/types.h>
9818 #ifdef F77_DUMMY_MAIN
9822 int F77_DUMMY_MAIN() { return 1; }
9827 struct tm *tp; tp->tm_sec;
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } &&
9838 { ac_try='test -s conftest.$ac_objext'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 ac_cv_struct_tm=time.h
9846 echo "$as_me: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9848 ac_cv_struct_tm=sys/time.h
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9852 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9853 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9854 if test $ac_cv_struct_tm = sys/time.h; then
9856 cat >>confdefs.h <<\_ACEOF
9857 #define TM_IN_SYS_TIME 1
9862 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9863 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9864 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 #include "confdefs.h"
9870 #include <sys/types.h>
9871 #include <$ac_cv_struct_tm>
9874 #ifdef F77_DUMMY_MAIN
9878 int F77_DUMMY_MAIN() { return 1; }
9883 static struct tm ac_aggr;
9884 if (ac_aggr.tm_zone)
9890 rm -f conftest.$ac_objext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892 (eval $ac_compile) 2>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -s conftest.$ac_objext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_member_struct_tm_tm_zone=yes
9904 echo "$as_me: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 ac_cv_member_struct_tm_tm_zone=no
9908 rm -f conftest.$ac_objext conftest.$ac_ext
9910 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9911 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9912 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9914 cat >>confdefs.h <<_ACEOF
9915 #define HAVE_STRUCT_TM_TM_ZONE 1
9921 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9923 cat >>confdefs.h <<\_ACEOF
9924 #define HAVE_TM_ZONE 1
9928 echo "$as_me:$LINENO: checking for tzname" >&5
9929 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9930 if test "${ac_cv_var_tzname+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 cat >conftest.$ac_ext <<_ACEOF
9934 #line $LINENO "configure"
9935 #include "confdefs.h"
9937 #ifndef tzname /* For SGI. */
9938 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9941 #ifdef F77_DUMMY_MAIN
9945 int F77_DUMMY_MAIN() { return 1; }
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_var_tzname=yes
9969 echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9976 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9977 if test $ac_cv_var_tzname = yes; then
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_TZNAME 1
9985 echo "$as_me:$LINENO: checking for union semun" >&5
9986 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9987 if test "${ac_cv_type_union_semun+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 #include "confdefs.h"
9993 #include <sys/types.h>
9994 #include <sys/ipc.h>
9995 #include <sys/sem.h>
9997 #ifdef F77_DUMMY_MAIN
10001 int F77_DUMMY_MAIN() { return 1; }
10006 if ((union semun *) 0)
10008 if (sizeof (union semun))
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -s conftest.$ac_objext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_cv_type_union_semun=yes
10028 echo "$as_me: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10030 ac_cv_type_union_semun=no
10032 rm -f conftest.$ac_objext conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
10035 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
10036 if test $ac_cv_type_union_semun = yes; then
10038 cat >>confdefs.h <<_ACEOF
10039 #define HAVE_UNION_SEMUN 1
10045 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
10046 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
10047 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 cat >conftest.$ac_ext <<_ACEOF
10051 #line $LINENO "configure"
10052 #include "confdefs.h"
10053 #include <sys/types.h>
10054 #ifdef HAVE_SYS_UN_H
10055 #include <sys/un.h>
10059 #ifdef F77_DUMMY_MAIN
10060 # ifdef __cplusplus
10063 int F77_DUMMY_MAIN() { return 1; }
10068 if ((struct sockaddr_un *) 0)
10070 if (sizeof (struct sockaddr_un))
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -s conftest.$ac_objext'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_type_struct_sockaddr_un=yes
10090 echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 ac_cv_type_struct_sockaddr_un=no
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10096 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
10097 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
10098 if test $ac_cv_type_struct_sockaddr_un = yes; then
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_STRUCT_SOCKADDR_UN 1
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_UNIX_SOCKETS 1
10111 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
10112 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10113 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10117 #line $LINENO "configure"
10118 #include "confdefs.h"
10119 #include <sys/types.h>
10120 #ifdef HAVE_SYS_SOCKET_H
10121 #include <sys/socket.h>
10125 #ifdef F77_DUMMY_MAIN
10126 # ifdef __cplusplus
10129 int F77_DUMMY_MAIN() { return 1; }
10134 if ((struct sockaddr_storage *) 0)
10136 if (sizeof (struct sockaddr_storage))
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -s conftest.$ac_objext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_type_struct_sockaddr_storage=yes
10156 echo "$as_me: failed program was:" >&5
10157 cat conftest.$ac_ext >&5
10158 ac_cv_type_struct_sockaddr_storage=no
10160 rm -f conftest.$ac_objext conftest.$ac_ext
10162 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10163 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10164 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10166 cat >>confdefs.h <<_ACEOF
10167 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10173 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
10174 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
10175 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10179 #line $LINENO "configure"
10180 #include "confdefs.h"
10181 #include <sys/types.h>
10182 #ifdef HAVE_SYS_SOCKET_H
10183 #include <sys/socket.h>
10187 #ifdef F77_DUMMY_MAIN
10188 # ifdef __cplusplus
10191 int F77_DUMMY_MAIN() { return 1; }
10196 static struct sockaddr_storage ac_aggr;
10197 if (ac_aggr.ss_family)
10203 rm -f conftest.$ac_objext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205 (eval $ac_compile) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_member_struct_sockaddr_storage_ss_family=yes
10217 echo "$as_me: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10219 ac_cv_member_struct_sockaddr_storage_ss_family=no
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10224 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10225 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10233 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10234 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10235 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10240 #include "confdefs.h"
10241 #include <sys/types.h>
10242 #ifdef HAVE_SYS_SOCKET_H
10243 #include <sys/socket.h>
10247 #ifdef F77_DUMMY_MAIN
10248 # ifdef __cplusplus
10251 int F77_DUMMY_MAIN() { return 1; }
10256 static struct sockaddr_storage ac_aggr;
10257 if (ac_aggr.__ss_family)
10263 rm -f conftest.$ac_objext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265 (eval $ac_compile) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -s conftest.$ac_objext'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10277 echo "$as_me: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 ac_cv_member_struct_sockaddr_storage___ss_family=no
10281 rm -f conftest.$ac_objext conftest.$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10284 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10285 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10287 cat >>confdefs.h <<_ACEOF
10288 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10293 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10294 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10295 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 #include "confdefs.h"
10301 #include <sys/types.h>
10302 #ifdef HAVE_SYS_SOCKET_H
10303 #include <sys/socket.h>
10307 #ifdef F77_DUMMY_MAIN
10308 # ifdef __cplusplus
10311 int F77_DUMMY_MAIN() { return 1; }
10316 static struct sockaddr_storage ac_aggr;
10317 if (ac_aggr.ss_len)
10323 rm -f conftest.$ac_objext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325 (eval $ac_compile) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10337 echo "$as_me: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 ac_cv_member_struct_sockaddr_storage_ss_len=no
10341 rm -f conftest.$ac_objext conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10344 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10345 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10347 cat >>confdefs.h <<_ACEOF
10348 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10353 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10354 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10355 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 cat >conftest.$ac_ext <<_ACEOF
10359 #line $LINENO "configure"
10360 #include "confdefs.h"
10361 #include <sys/types.h>
10362 #ifdef HAVE_SYS_SOCKET_H
10363 #include <sys/socket.h>
10367 #ifdef F77_DUMMY_MAIN
10368 # ifdef __cplusplus
10371 int F77_DUMMY_MAIN() { return 1; }
10376 static struct sockaddr_storage ac_aggr;
10377 if (ac_aggr.__ss_len)
10383 rm -f conftest.$ac_objext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385 (eval $ac_compile) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -s conftest.$ac_objext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10397 echo "$as_me: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 ac_cv_member_struct_sockaddr_storage___ss_len=no
10401 rm -f conftest.$ac_objext conftest.$ac_ext
10403 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10404 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10405 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10413 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10414 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10415 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 cat >conftest.$ac_ext <<_ACEOF
10419 #line $LINENO "configure"
10420 #include "confdefs.h"
10421 #include <sys/types.h>
10422 #ifdef HAVE_SYS_SOCKET_H
10423 #include <sys/socket.h>
10427 #ifdef F77_DUMMY_MAIN
10428 # ifdef __cplusplus
10431 int F77_DUMMY_MAIN() { return 1; }
10436 static struct sockaddr ac_aggr;
10437 if (ac_aggr.sa_len)
10443 rm -f conftest.$ac_objext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -s conftest.$ac_objext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_cv_member_struct_sockaddr_sa_len=yes
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 ac_cv_member_struct_sockaddr_sa_len=no
10461 rm -f conftest.$ac_objext conftest.$ac_ext
10463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10464 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10465 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10467 cat >>confdefs.h <<_ACEOF
10468 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10474 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10475 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10476 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 #include "confdefs.h"
10482 #include <sys/types.h>
10483 #include <sys/socket.h>
10487 #ifdef F77_DUMMY_MAIN
10488 # ifdef __cplusplus
10491 int F77_DUMMY_MAIN() { return 1; }
10496 if ((struct addrinfo *) 0)
10498 if (sizeof (struct addrinfo))
10504 rm -f conftest.$ac_objext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 ac_cv_type_struct_addrinfo=yes
10518 echo "$as_me: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 ac_cv_type_struct_addrinfo=no
10522 rm -f conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10525 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10526 if test $ac_cv_type_struct_addrinfo = yes; then
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_STRUCT_ADDRINFO 1
10536 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10537 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10538 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 cat >conftest.$ac_ext <<_ACEOF
10542 #line $LINENO "configure"
10543 #include "confdefs.h"
10544 #include <sys/param.h>
10545 #include <sys/types.h>
10546 #include <sys/socket.h>
10547 #include <sys/ucred.h>
10549 #ifdef F77_DUMMY_MAIN
10550 # ifdef __cplusplus
10553 int F77_DUMMY_MAIN() { return 1; }
10558 if ((struct cmsgcred *) 0)
10560 if (sizeof (struct cmsgcred))
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -s conftest.$ac_objext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_type_struct_cmsgcred=yes
10580 echo "$as_me: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 ac_cv_type_struct_cmsgcred=no
10584 rm -f conftest.$ac_objext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10587 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10588 if test $ac_cv_type_struct_cmsgcred = yes; then
10590 cat >>confdefs.h <<_ACEOF
10591 #define HAVE_STRUCT_CMSGCRED 1
10596 echo "$as_me:$LINENO: checking for struct fcred" >&5
10597 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10598 if test "${ac_cv_type_struct_fcred+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10603 #include "confdefs.h"
10604 #include <sys/param.h>
10605 #include <sys/types.h>
10606 #include <sys/socket.h>
10607 #include <sys/ucred.h>
10609 #ifdef F77_DUMMY_MAIN
10610 # ifdef __cplusplus
10613 int F77_DUMMY_MAIN() { return 1; }
10618 if ((struct fcred *) 0)
10620 if (sizeof (struct fcred))
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_cv_type_struct_fcred=yes
10640 echo "$as_me: failed program was:" >&5
10641 cat conftest.$ac_ext >&5
10642 ac_cv_type_struct_fcred=no
10644 rm -f conftest.$ac_objext conftest.$ac_ext
10646 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10647 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10648 if test $ac_cv_type_struct_fcred = yes; then
10650 cat >>confdefs.h <<_ACEOF
10651 #define HAVE_STRUCT_FCRED 1
10656 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10657 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10658 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10662 #line $LINENO "configure"
10663 #include "confdefs.h"
10664 #include <sys/param.h>
10665 #include <sys/types.h>
10666 #include <sys/socket.h>
10667 #include <sys/ucred.h>
10669 #ifdef F77_DUMMY_MAIN
10670 # ifdef __cplusplus
10673 int F77_DUMMY_MAIN() { return 1; }
10678 if ((struct sockcred *) 0)
10680 if (sizeof (struct sockcred))
10686 rm -f conftest.$ac_objext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10688 (eval $ac_compile) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 ac_cv_type_struct_sockcred=yes
10700 echo "$as_me: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 ac_cv_type_struct_sockcred=no
10704 rm -f conftest.$ac_objext conftest.$ac_ext
10706 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10707 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10708 if test $ac_cv_type_struct_sockcred = yes; then
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_STRUCT_SOCKCRED 1
10718 echo "$as_me:$LINENO: checking for struct option" >&5
10719 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10720 if test "${ac_cv_type_struct_option+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10725 #include "confdefs.h"
10726 #ifdef HAVE_GETOPT_H
10727 #include <getopt.h>
10730 #ifdef F77_DUMMY_MAIN
10731 # ifdef __cplusplus
10734 int F77_DUMMY_MAIN() { return 1; }
10739 if ((struct option *) 0)
10741 if (sizeof (struct option))
10747 rm -f conftest.$ac_objext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10749 (eval $ac_compile) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_cv_type_struct_option=yes
10761 echo "$as_me: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 ac_cv_type_struct_option=no
10765 rm -f conftest.$ac_objext conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10768 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10769 if test $ac_cv_type_struct_option = yes; then
10771 cat >>confdefs.h <<_ACEOF
10772 #define HAVE_STRUCT_OPTION 1
10779 if test "$with_zlib" = yes; then
10780 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10781 # did not). While we could work around the lack of z_streamp, it
10782 # seems unwise to encourage people to use such old zlib versions...
10783 echo "$as_me:$LINENO: checking for z_streamp" >&5
10784 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10785 if test "${ac_cv_type_z_streamp+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10790 #include "confdefs.h"
10793 #ifdef F77_DUMMY_MAIN
10794 # ifdef __cplusplus
10797 int F77_DUMMY_MAIN() { return 1; }
10802 if ((z_streamp *) 0)
10804 if (sizeof (z_streamp))
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_type_z_streamp=yes
10824 echo "$as_me: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 ac_cv_type_z_streamp=no
10828 rm -f conftest.$ac_objext conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10831 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10832 if test $ac_cv_type_z_streamp = yes; then
10835 { { echo "$as_me:$LINENO: error: zlib version is too old
10836 Use --without-zlib to disable zlib support." >&5
10837 echo "$as_me: error: zlib version is too old
10838 Use --without-zlib to disable zlib support." >&2;}
10839 { (exit 1); exit 1; }; }
10844 if test "$with_krb5" = yes; then
10845 # Check for differences between MIT and Heimdal (KTH) releases
10846 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10847 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10848 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 cat >conftest.$ac_ext <<_ACEOF
10852 #line $LINENO "configure"
10853 #include "confdefs.h"
10856 #ifdef F77_DUMMY_MAIN
10857 # ifdef __cplusplus
10860 int F77_DUMMY_MAIN() { return 1; }
10865 static krb5_ticket ac_aggr;
10866 if (ac_aggr.enc_part2)
10872 rm -f conftest.$ac_objext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874 (eval $ac_compile) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_member_krb5_ticket_enc_part2=yes
10886 echo "$as_me: failed program was:" >&5
10887 cat conftest.$ac_ext >&5
10888 ac_cv_member_krb5_ticket_enc_part2=no
10890 rm -f conftest.$ac_objext conftest.$ac_ext
10892 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10893 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10894 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10896 cat >>confdefs.h <<_ACEOF
10897 #define HAVE_KRB5_TICKET_ENC_PART2 1
10902 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10903 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10904 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10908 #line $LINENO "configure"
10909 #include "confdefs.h"
10912 #ifdef F77_DUMMY_MAIN
10913 # ifdef __cplusplus
10916 int F77_DUMMY_MAIN() { return 1; }
10921 static krb5_ticket ac_aggr;
10922 if (ac_aggr.client)
10928 rm -f conftest.$ac_objext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10930 (eval $ac_compile) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_member_krb5_ticket_client=yes
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 ac_cv_member_krb5_ticket_client=no
10946 rm -f conftest.$ac_objext conftest.$ac_ext
10948 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10949 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10950 if test $ac_cv_member_krb5_ticket_client = yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define HAVE_KRB5_TICKET_CLIENT 1
10958 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10959 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10960 { (exit 1); exit 1; }; }
10965 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10966 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10967 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 cat >conftest.$ac_ext <<_ACEOF
10971 #line $LINENO "configure"
10972 #include "confdefs.h"
10975 #ifdef F77_DUMMY_MAIN
10976 # ifdef __cplusplus
10979 int F77_DUMMY_MAIN() { return 1; }
10984 static krb5_error ac_aggr;
10985 if (ac_aggr.text.data)
10991 rm -f conftest.$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993 (eval $ac_compile) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_cv_member_krb5_error_text_data=yes
11005 echo "$as_me: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 ac_cv_member_krb5_error_text_data=no
11009 rm -f conftest.$ac_objext conftest.$ac_ext
11011 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
11012 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
11013 if test $ac_cv_member_krb5_error_text_data = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_KRB5_ERROR_TEXT_DATA 1
11021 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
11022 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
11023 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11028 #include "confdefs.h"
11031 #ifdef F77_DUMMY_MAIN
11032 # ifdef __cplusplus
11035 int F77_DUMMY_MAIN() { return 1; }
11040 static krb5_error ac_aggr;
11041 if (ac_aggr.e_data)
11047 rm -f conftest.$ac_objext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11049 (eval $ac_compile) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -s conftest.$ac_objext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_cv_member_krb5_error_e_data=yes
11061 echo "$as_me: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 ac_cv_member_krb5_error_e_data=no
11065 rm -f conftest.$ac_objext conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
11068 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
11069 if test $ac_cv_member_krb5_error_e_data = yes; then
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_KRB5_ERROR_E_DATA 1
11077 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
11078 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
11079 { (exit 1); exit 1; }; }
11087 ## Functions, global variables
11090 echo "$as_me:$LINENO: checking for int timezone" >&5
11091 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
11092 if test "${pgac_cv_var_int_timezone+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 cat >conftest.$ac_ext <<_ACEOF
11096 #line $LINENO "configure"
11097 #include "confdefs.h"
11100 #ifdef F77_DUMMY_MAIN
11101 # ifdef __cplusplus
11104 int F77_DUMMY_MAIN() { return 1; }
11110 res = timezone / 60;
11112 res = _timezone / 60;
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 pgac_cv_var_int_timezone=yes
11132 echo "$as_me: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 pgac_cv_var_int_timezone=no
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
11139 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
11140 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11142 cat >>confdefs.h <<\_ACEOF
11143 #define HAVE_INT_TIMEZONE
11147 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
11148 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
11149 if test "${ac_cv_func_accept_return+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 if test "${ac_cv_func_accept_arg1+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 if test "${ac_cv_func_accept_arg2+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 if test "${ac_cv_func_accept_arg3+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
11162 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
11163 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11164 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11165 cat >conftest.$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11167 #include "confdefs.h"
11168 #ifdef HAVE_SYS_TYPES_H
11169 #include <sys/types.h>
11171 #ifdef HAVE_SYS_SOCKET_H
11172 #include <sys/socket.h>
11174 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11175 #ifdef F77_DUMMY_MAIN
11176 # ifdef __cplusplus
11179 int F77_DUMMY_MAIN() { return 1; }
11189 rm -f conftest.$ac_objext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191 (eval $ac_compile) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_not_found=no; break 4
11203 echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11207 rm -f conftest.$ac_objext conftest.$ac_ext
11212 if test "$ac_not_found" = yes; then
11213 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11214 echo "$as_me: error: could not determine argument types" >&2;}
11215 { (exit 1); exit 1; }; }
11217 if test "$ac_cv_func_accept_arg3" = "void"; then
11218 ac_cv_func_accept_arg3=int
11228 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
11229 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11231 cat >>confdefs.h <<_ACEOF
11232 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11236 cat >>confdefs.h <<_ACEOF
11237 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11241 cat >>confdefs.h <<_ACEOF
11242 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11246 cat >>confdefs.h <<_ACEOF
11247 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11251 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11252 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11253 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11258 #include "confdefs.h"
11259 #include <sys/time.h>
11260 #ifdef F77_DUMMY_MAIN
11261 # ifdef __cplusplus
11264 int F77_DUMMY_MAIN() { return 1; }
11269 struct timeval *tp;
11270 struct timezone *tzp;
11271 gettimeofday(tp,tzp);
11276 rm -f conftest.$ac_objext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278 (eval $ac_compile) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -s conftest.$ac_objext'
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 pgac_cv_func_gettimeofday_1arg=no
11290 echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 pgac_cv_func_gettimeofday_1arg=yes
11294 rm -f conftest.$ac_objext conftest.$ac_ext
11296 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11297 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11298 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11300 cat >>confdefs.h <<\_ACEOF
11301 #define GETTIMEOFDAY_1ARG
11327 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11330 echo "$as_me:$LINENO: checking for $ac_func" >&5
11331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11332 if eval "test \"\${$as_ac_var+set}\" = set"; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11337 #include "confdefs.h"
11338 /* System header to define __stub macros and hopefully few prototypes,
11339 which can conflict with char $ac_func (); below. */
11340 #include <assert.h>
11341 /* Override any gcc2 internal prototype to avoid an error. */
11345 /* We use char because int might match the return type of a gcc2
11346 builtin and then its argument prototype would still apply. */
11350 #ifdef F77_DUMMY_MAIN
11351 # ifdef __cplusplus
11354 int F77_DUMMY_MAIN() { return 1; }
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 eval "$as_ac_var=yes"
11386 echo "$as_me: failed program was:" >&5
11387 cat conftest.$ac_ext >&5
11388 eval "$as_ac_var=no"
11390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11403 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11404 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11405 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 #include <unistd.h>
11413 #ifdef F77_DUMMY_MAIN
11414 # ifdef __cplusplus
11417 int F77_DUMMY_MAIN() { return 1; }
11423 char *p = (char *) fdatasync;
11430 rm -f conftest.$ac_objext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11432 (eval $ac_compile) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -s conftest.$ac_objext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_have_decl_fdatasync=yes
11444 echo "$as_me: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11446 ac_cv_have_decl_fdatasync=no
11448 rm -f conftest.$ac_objext conftest.$ac_ext
11450 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11451 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11452 if test $ac_cv_have_decl_fdatasync = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define HAVE_DECL_FDATASYNC 1
11460 cat >>confdefs.h <<_ACEOF
11461 #define HAVE_DECL_FDATASYNC 0
11470 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11471 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11472 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11478 $ac_includes_default
11479 #include <netinet/in.h>
11481 #ifdef F77_DUMMY_MAIN
11482 # ifdef __cplusplus
11485 int F77_DUMMY_MAIN() { return 1; }
11490 if ((struct sockaddr_in6 *) 0)
11492 if (sizeof (struct sockaddr_in6))
11498 rm -f conftest.$ac_objext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500 (eval $ac_compile) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_type_struct_sockaddr_in6=yes
11512 echo "$as_me: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 ac_cv_type_struct_sockaddr_in6=no
11516 rm -f conftest.$ac_objext conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11519 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11520 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11521 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11522 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11523 if test "${ac_cv_func_inet_ntop+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11528 #include "confdefs.h"
11529 /* System header to define __stub macros and hopefully few prototypes,
11530 which can conflict with char inet_ntop (); below. */
11531 #include <assert.h>
11532 /* Override any gcc2 internal prototype to avoid an error. */
11536 /* We use char because int might match the return type of a gcc2
11537 builtin and then its argument prototype would still apply. */
11541 #ifdef F77_DUMMY_MAIN
11542 # ifdef __cplusplus
11545 int F77_DUMMY_MAIN() { return 1; }
11550 /* The GNU C library defines this for functions which it implements
11551 to always fail with ENOSYS. Some functions are actually named
11552 something starting with __ and the normal name is an alias. */
11553 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565 (eval $ac_link) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -s conftest$ac_exeext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_func_inet_ntop=yes
11577 echo "$as_me: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 ac_cv_func_inet_ntop=no
11581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11584 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11585 if test $ac_cv_func_inet_ntop = yes; then
11587 cat >>confdefs.h <<\_ACEOF
11588 #define HAVE_IPV6 1
11598 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11599 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11600 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11604 #line $LINENO "configure"
11605 #include "confdefs.h"
11606 #include <machine/vmparam.h>
11607 #include <sys/exec.h>
11609 #ifdef F77_DUMMY_MAIN
11610 # ifdef __cplusplus
11613 int F77_DUMMY_MAIN() { return 1; }
11618 PS_STRINGS->ps_nargvstr = 1;
11619 PS_STRINGS->ps_argvstr = "foo";
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -s conftest$ac_exeext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 pgac_cv_var_PS_STRINGS=yes
11638 echo "$as_me: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 pgac_cv_var_PS_STRINGS=no
11642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11644 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11645 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11646 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11648 cat >>confdefs.h <<\_ACEOF
11649 #define HAVE_PS_STRINGS
11655 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11656 # is missing. Yes, there are machines that have only one. We may
11657 # also decide to use snprintf.c if snprintf() is present but does not
11658 # have all the features we need --- see below.
11660 pgac_need_repl_snprintf=no
11662 for ac_func in snprintf
11664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11665 echo "$as_me:$LINENO: checking for $ac_func" >&5
11666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_var+set}\" = set"; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 cat >conftest.$ac_ext <<_ACEOF
11671 #line $LINENO "configure"
11672 #include "confdefs.h"
11673 /* System header to define __stub macros and hopefully few prototypes,
11674 which can conflict with char $ac_func (); below. */
11675 #include <assert.h>
11676 /* Override any gcc2 internal prototype to avoid an error. */
11680 /* We use char because int might match the return type of a gcc2
11681 builtin and then its argument prototype would still apply. */
11685 #ifdef F77_DUMMY_MAIN
11686 # ifdef __cplusplus
11689 int F77_DUMMY_MAIN() { return 1; }
11694 /* The GNU C library defines this for functions which it implements
11695 to always fail with ENOSYS. Some functions are actually named
11696 something starting with __ and the normal name is an alias. */
11697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 eval "$as_ac_var=yes"
11721 echo "$as_me: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 eval "$as_ac_var=no"
11725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11729 if test `eval echo '${'$as_ac_var'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11735 pgac_need_repl_snprintf=yes
11740 for ac_func in vsnprintf
11742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11745 if eval "test \"\${$as_ac_var+set}\" = set"; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 /* System header to define __stub macros and hopefully few prototypes,
11752 which can conflict with char $ac_func (); below. */
11753 #include <assert.h>
11754 /* Override any gcc2 internal prototype to avoid an error. */
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11763 #ifdef F77_DUMMY_MAIN
11764 # ifdef __cplusplus
11767 int F77_DUMMY_MAIN() { return 1; }
11772 /* The GNU C library defines this for functions which it implements
11773 to always fail with ENOSYS. Some functions are actually named
11774 something starting with __ and the normal name is an alias. */
11775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787 (eval $ac_link) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -s conftest$ac_exeext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 eval "$as_ac_var=yes"
11799 echo "$as_me: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11807 if test `eval echo '${'$as_ac_var'}'` = yes; then
11808 cat >>confdefs.h <<_ACEOF
11809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813 pgac_need_repl_snprintf=yes
11819 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11820 # include/c.h will provide declarations. Note this is a separate test
11821 # from whether the functions exist in the C library --- there are
11822 # systems that have the functions but don't bother to declare them :-(
11824 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11825 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11826 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 cat >conftest.$ac_ext <<_ACEOF
11830 #line $LINENO "configure"
11831 #include "confdefs.h"
11832 $ac_includes_default
11833 #ifdef F77_DUMMY_MAIN
11834 # ifdef __cplusplus
11837 int F77_DUMMY_MAIN() { return 1; }
11843 char *p = (char *) snprintf;
11850 rm -f conftest.$ac_objext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11852 (eval $ac_compile) 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -s conftest.$ac_objext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_cv_have_decl_snprintf=yes
11864 echo "$as_me: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11866 ac_cv_have_decl_snprintf=no
11868 rm -f conftest.$ac_objext conftest.$ac_ext
11870 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11871 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11872 if test $ac_cv_have_decl_snprintf = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define HAVE_DECL_SNPRINTF 1
11880 cat >>confdefs.h <<_ACEOF
11881 #define HAVE_DECL_SNPRINTF 0
11886 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11887 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11888 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 cat >conftest.$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11893 #include "confdefs.h"
11894 $ac_includes_default
11895 #ifdef F77_DUMMY_MAIN
11896 # ifdef __cplusplus
11899 int F77_DUMMY_MAIN() { return 1; }
11905 char *p = (char *) vsnprintf;
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_have_decl_vsnprintf=yes
11926 echo "$as_me: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11928 ac_cv_have_decl_vsnprintf=no
11930 rm -f conftest.$ac_objext conftest.$ac_ext
11932 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11933 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11934 if test $ac_cv_have_decl_vsnprintf = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_DECL_VSNPRINTF 1
11942 cat >>confdefs.h <<_ACEOF
11943 #define HAVE_DECL_VSNPRINTF 0
11952 # do this one the hard way in case isinf() is a macro
11953 echo "$as_me:$LINENO: checking for isinf" >&5
11954 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11955 if test "${ac_cv_func_isinf+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 cat >conftest.$ac_ext <<_ACEOF
11959 #line $LINENO "configure"
11960 #include "confdefs.h"
11963 #ifdef F77_DUMMY_MAIN
11964 # ifdef __cplusplus
11967 int F77_DUMMY_MAIN() { return 1; }
11972 double x = 0.0; int res = isinf(x);
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_func_isinf=yes
11991 echo "$as_me: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 ac_cv_func_isinf=no
11995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11997 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11998 echo "${ECHO_T}$ac_cv_func_isinf" >&6
12000 if test $ac_cv_func_isinf = yes ; then
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_ISINF 1
12007 LIBOBJS="$LIBOBJS isinf.$ac_objext"
12008 # Look for a way to implement a substitute for isinf()
12013 for ac_func in fpclass fp_class fp_class_d class
12015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016 echo "$as_me:$LINENO: checking for $ac_func" >&5
12017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12018 if eval "test \"\${$as_ac_var+set}\" = set"; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 cat >conftest.$ac_ext <<_ACEOF
12022 #line $LINENO "configure"
12023 #include "confdefs.h"
12024 /* System header to define __stub macros and hopefully few prototypes,
12025 which can conflict with char $ac_func (); below. */
12026 #include <assert.h>
12027 /* Override any gcc2 internal prototype to avoid an error. */
12031 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12036 #ifdef F77_DUMMY_MAIN
12037 # ifdef __cplusplus
12040 int F77_DUMMY_MAIN() { return 1; }
12045 /* The GNU C library defines this for functions which it implements
12046 to always fail with ENOSYS. Some functions are actually named
12047 something starting with __ and the normal name is an alias. */
12048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060 (eval $ac_link) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -s conftest$ac_exeext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 eval "$as_ac_var=yes"
12072 echo "$as_me: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 eval "$as_ac_var=no"
12076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12080 if test `eval echo '${'$as_ac_var'}'` = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12103 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
12105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12106 echo "$as_me:$LINENO: checking for $ac_func" >&5
12107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12108 if eval "test \"\${$as_ac_var+set}\" = set"; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12112 #line $LINENO "configure"
12113 #include "confdefs.h"
12114 /* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char $ac_func (); below. */
12116 #include <assert.h>
12117 /* Override any gcc2 internal prototype to avoid an error. */
12121 /* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12126 #ifdef F77_DUMMY_MAIN
12127 # ifdef __cplusplus
12130 int F77_DUMMY_MAIN() { return 1; }
12135 /* The GNU C library defines this for functions which it implements
12136 to always fail with ENOSYS. Some functions are actually named
12137 something starting with __ and the normal name is an alias. */
12138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150 (eval $ac_link) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -s conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 eval "$as_ac_var=yes"
12162 echo "$as_me: failed program was:" >&5
12163 cat conftest.$ac_ext >&5
12164 eval "$as_ac_var=no"
12166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12170 if test `eval echo '${'$as_ac_var'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12176 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12182 # system's version of getaddrinfo(), if any, may be used only if we found
12183 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12184 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12186 for ac_func in getaddrinfo
12188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12189 echo "$as_me:$LINENO: checking for $ac_func" >&5
12190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12191 if eval "test \"\${$as_ac_var+set}\" = set"; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 cat >conftest.$ac_ext <<_ACEOF
12195 #line $LINENO "configure"
12196 #include "confdefs.h"
12197 /* System header to define __stub macros and hopefully few prototypes,
12198 which can conflict with char $ac_func (); below. */
12199 #include <assert.h>
12200 /* Override any gcc2 internal prototype to avoid an error. */
12204 /* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12209 #ifdef F77_DUMMY_MAIN
12210 # ifdef __cplusplus
12213 int F77_DUMMY_MAIN() { return 1; }
12218 /* The GNU C library defines this for functions which it implements
12219 to always fail with ENOSYS. Some functions are actually named
12220 something starting with __ and the normal name is an alias. */
12221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12231 rm -f conftest.$ac_objext conftest$ac_exeext
12232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12233 (eval $ac_link) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -s conftest$ac_exeext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 eval "$as_ac_var=yes"
12245 echo "$as_me: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 eval "$as_ac_var=no"
12249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12253 if test `eval echo '${'$as_ac_var'}'` = yes; then
12254 cat >>confdefs.h <<_ACEOF
12255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12259 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12265 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12268 # similarly, use system's getopt_long() only if system provides struct option.
12269 if test x"$ac_cv_type_struct_option" = xyes ; then
12271 for ac_func in getopt_long
12273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12274 echo "$as_me:$LINENO: checking for $ac_func" >&5
12275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12276 if eval "test \"\${$as_ac_var+set}\" = set"; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12281 #include "confdefs.h"
12282 /* System header to define __stub macros and hopefully few prototypes,
12283 which can conflict with char $ac_func (); below. */
12284 #include <assert.h>
12285 /* Override any gcc2 internal prototype to avoid an error. */
12289 /* We use char because int might match the return type of a gcc2
12290 builtin and then its argument prototype would still apply. */
12294 #ifdef F77_DUMMY_MAIN
12295 # ifdef __cplusplus
12298 int F77_DUMMY_MAIN() { return 1; }
12303 /* The GNU C library defines this for functions which it implements
12304 to always fail with ENOSYS. Some functions are actually named
12305 something starting with __ and the normal name is an alias. */
12306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318 (eval $ac_link) 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 eval "$as_ac_var=yes"
12330 echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 eval "$as_ac_var=no"
12334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12338 if test `eval echo '${'$as_ac_var'}'` = yes; then
12339 cat >>confdefs.h <<_ACEOF
12340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12344 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12350 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12353 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12354 # We override the previous test that said fseeko/ftello didn't exist
12355 # OS tests are also done in include/c.h and port/fseeko.c
12356 case $host_os in bsdi*|netbsd*)
12357 ac_cv_func_fseeko=yes
12360 # Solaris has a very slow qsort in certain cases, so we replace it.
12361 if test "$PORTNAME" = "solaris"; then
12362 LIBOBJS="$LIBOBJS qsort.$ac_objext"
12366 if test "$PORTNAME" = "win32"; then
12367 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12368 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12369 LIBOBJS="$LIBOBJS kill.$ac_objext"
12370 LIBOBJS="$LIBOBJS open.$ac_objext"
12371 LIBOBJS="$LIBOBJS rand.$ac_objext"
12373 cat >>confdefs.h <<\_ACEOF
12374 #define HAVE_SYMLINK 1
12379 if test "$with_readline" = yes; then
12380 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12381 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12382 cat >conftest.$ac_ext <<_ACEOF
12383 #line $LINENO "configure"
12384 #include "confdefs.h"
12386 #ifdef HAVE_READLINE_READLINE_H
12387 # include <readline/readline.h>
12388 #elif defined(HAVE_READLINE_H)
12389 # include <readline.h>
12392 #ifdef F77_DUMMY_MAIN
12393 # ifdef __cplusplus
12396 int F77_DUMMY_MAIN() { return 1; }
12401 rl_completion_append_character = 'x';
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408 (eval $ac_link) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -s conftest$ac_exeext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 echo "$as_me:$LINENO: result: yes" >&5
12419 echo "${ECHO_T}yes" >&6
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12426 echo "$as_me: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6
12431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12434 for ac_func in rl_completion_matches rl_filename_completion_function
12436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437 echo "$as_me:$LINENO: checking for $ac_func" >&5
12438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12439 if eval "test \"\${$as_ac_var+set}\" = set"; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 cat >conftest.$ac_ext <<_ACEOF
12443 #line $LINENO "configure"
12444 #include "confdefs.h"
12445 /* System header to define __stub macros and hopefully few prototypes,
12446 which can conflict with char $ac_func (); below. */
12447 #include <assert.h>
12448 /* Override any gcc2 internal prototype to avoid an error. */
12452 /* We use char because int might match the return type of a gcc2
12453 builtin and then its argument prototype would still apply. */
12457 #ifdef F77_DUMMY_MAIN
12458 # ifdef __cplusplus
12461 int F77_DUMMY_MAIN() { return 1; }
12466 /* The GNU C library defines this for functions which it implements
12467 to always fail with ENOSYS. Some functions are actually named
12468 something starting with __ and the normal name is an alias. */
12469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 eval "$as_ac_var=yes"
12493 echo "$as_me: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 eval "$as_ac_var=no"
12497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12501 if test `eval echo '${'$as_ac_var'}'` = yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12510 for ac_func in replace_history_entry
12512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12513 echo "$as_me:$LINENO: checking for $ac_func" >&5
12514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12515 if eval "test \"\${$as_ac_var+set}\" = set"; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 cat >conftest.$ac_ext <<_ACEOF
12519 #line $LINENO "configure"
12520 #include "confdefs.h"
12521 /* System header to define __stub macros and hopefully few prototypes,
12522 which can conflict with char $ac_func (); below. */
12523 #include <assert.h>
12524 /* Override any gcc2 internal prototype to avoid an error. */
12528 /* We use char because int might match the return type of a gcc2
12529 builtin and then its argument prototype would still apply. */
12533 #ifdef F77_DUMMY_MAIN
12534 # ifdef __cplusplus
12537 int F77_DUMMY_MAIN() { return 1; }
12542 /* The GNU C library defines this for functions which it implements
12543 to always fail with ENOSYS. Some functions are actually named
12544 something starting with __ and the normal name is an alias. */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557 (eval $ac_link) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 eval "$as_ac_var=yes"
12569 echo "$as_me: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 eval "$as_ac_var=no"
12573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12577 if test `eval echo '${'$as_ac_var'}'` = yes; then
12578 cat >>confdefs.h <<_ACEOF
12579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12588 echo "$as_me:$LINENO: checking for finite" >&5
12589 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12590 cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 #include "confdefs.h"
12594 #ifdef F77_DUMMY_MAIN
12595 # ifdef __cplusplus
12598 int F77_DUMMY_MAIN() { return 1; }
12603 int dummy=finite(1.0);
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610 (eval $ac_link) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -s conftest$ac_exeext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12621 cat >>confdefs.h <<\_ACEOF
12622 #define HAVE_FINITE 1
12625 echo "$as_me:$LINENO: result: yes" >&5
12626 echo "${ECHO_T}yes" >&6
12628 echo "$as_me: failed program was:" >&5
12629 cat conftest.$ac_ext >&5
12630 echo "$as_me:$LINENO: result: no" >&5
12631 echo "${ECHO_T}no" >&6
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12635 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12636 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12638 #line $LINENO "configure"
12639 #include "confdefs.h"
12640 #include <setjmp.h>
12641 #ifdef F77_DUMMY_MAIN
12642 # ifdef __cplusplus
12645 int F77_DUMMY_MAIN() { return 1; }
12650 sigjmp_buf x; sigsetjmp(x, 1);
12655 rm -f conftest.$ac_objext conftest$ac_exeext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657 (eval $ac_link) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_SIGSETJMP 1
12672 echo "$as_me:$LINENO: result: yes" >&5
12673 echo "${ECHO_T}yes" >&6
12675 echo "$as_me: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 echo "$as_me:$LINENO: result: no" >&5
12678 echo "${ECHO_T}no" >&6
12680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12682 echo "$as_me:$LINENO: checking for syslog" >&5
12683 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12684 if test "${ac_cv_func_syslog+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 cat >conftest.$ac_ext <<_ACEOF
12688 #line $LINENO "configure"
12689 #include "confdefs.h"
12690 /* System header to define __stub macros and hopefully few prototypes,
12691 which can conflict with char syslog (); below. */
12692 #include <assert.h>
12693 /* Override any gcc2 internal prototype to avoid an error. */
12697 /* We use char because int might match the return type of a gcc2
12698 builtin and then its argument prototype would still apply. */
12702 #ifdef F77_DUMMY_MAIN
12703 # ifdef __cplusplus
12706 int F77_DUMMY_MAIN() { return 1; }
12711 /* The GNU C library defines this for functions which it implements
12712 to always fail with ENOSYS. Some functions are actually named
12713 something starting with __ and the normal name is an alias. */
12714 #if defined (__stub_syslog) || defined (__stub___syslog)
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12726 (eval $ac_link) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -s conftest$ac_exeext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 ac_cv_func_syslog=yes
12738 echo "$as_me: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12740 ac_cv_func_syslog=no
12742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12744 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12745 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12746 if test $ac_cv_func_syslog = yes; then
12747 if test "${ac_cv_header_syslog_h+set}" = set; then
12748 echo "$as_me:$LINENO: checking for syslog.h" >&5
12749 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12750 if test "${ac_cv_header_syslog_h+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12754 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12756 # Is the header compilable?
12757 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12758 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12759 cat >conftest.$ac_ext <<_ACEOF
12760 #line $LINENO "configure"
12761 #include "confdefs.h"
12762 $ac_includes_default
12763 #include <syslog.h>
12765 rm -f conftest.$ac_objext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767 (eval $ac_compile) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -s conftest.$ac_objext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_header_compiler=yes
12779 echo "$as_me: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12781 ac_header_compiler=no
12783 rm -f conftest.$ac_objext conftest.$ac_ext
12784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12785 echo "${ECHO_T}$ac_header_compiler" >&6
12787 # Is the header present?
12788 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12789 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12791 #line $LINENO "configure"
12792 #include "confdefs.h"
12793 #include <syslog.h>
12795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12798 egrep -v '^ *\+' conftest.er1 >conftest.err
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } >/dev/null; then
12803 if test -s conftest.err; then
12804 ac_cpp_err=$ac_c_preproc_warn_flag
12811 if test -z "$ac_cpp_err"; then
12812 ac_header_preproc=yes
12814 echo "$as_me: failed program was:" >&5
12815 cat conftest.$ac_ext >&5
12816 ac_header_preproc=no
12818 rm -f conftest.err conftest.$ac_ext
12819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12820 echo "${ECHO_T}$ac_header_preproc" >&6
12822 # So? What about this header?
12823 case $ac_header_compiler:$ac_header_preproc in
12825 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12826 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12828 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12830 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12831 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12833 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12835 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12837 echo "$as_me:$LINENO: checking for syslog.h" >&5
12838 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_syslog_h+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 ac_cv_header_syslog_h=$ac_header_preproc
12844 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12848 if test $ac_cv_header_syslog_h = yes; then
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_SYSLOG 1
12860 echo "$as_me:$LINENO: checking for optreset" >&5
12861 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12862 if test "${pgac_cv_var_int_optreset+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12867 #include "confdefs.h"
12868 #include <unistd.h>
12869 #ifdef F77_DUMMY_MAIN
12870 # ifdef __cplusplus
12873 int F77_DUMMY_MAIN() { return 1; }
12878 extern int optreset; optreset = 1;
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12885 (eval $ac_link) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 pgac_cv_var_int_optreset=yes
12897 echo "$as_me: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 pgac_cv_var_int_optreset=no
12901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12903 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12904 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12905 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12907 cat >>confdefs.h <<\_ACEOF
12908 #define HAVE_INT_OPTRESET 1
12915 for ac_func in strtoll strtoq
12917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12918 echo "$as_me:$LINENO: checking for $ac_func" >&5
12919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12920 if eval "test \"\${$as_ac_var+set}\" = set"; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12925 #include "confdefs.h"
12926 /* System header to define __stub macros and hopefully few prototypes,
12927 which can conflict with char $ac_func (); below. */
12928 #include <assert.h>
12929 /* Override any gcc2 internal prototype to avoid an error. */
12933 /* We use char because int might match the return type of a gcc2
12934 builtin and then its argument prototype would still apply. */
12938 #ifdef F77_DUMMY_MAIN
12939 # ifdef __cplusplus
12942 int F77_DUMMY_MAIN() { return 1; }
12947 /* The GNU C library defines this for functions which it implements
12948 to always fail with ENOSYS. Some functions are actually named
12949 something starting with __ and the normal name is an alias. */
12950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12962 (eval $ac_link) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 eval "$as_ac_var=yes"
12974 echo "$as_me: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 eval "$as_ac_var=no"
12978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12982 if test `eval echo '${'$as_ac_var'}'` = yes; then
12983 cat >>confdefs.h <<_ACEOF
12984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12992 for ac_func in strtoull strtouq
12994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12995 echo "$as_me:$LINENO: checking for $ac_func" >&5
12996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12997 if eval "test \"\${$as_ac_var+set}\" = set"; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 cat >conftest.$ac_ext <<_ACEOF
13001 #line $LINENO "configure"
13002 #include "confdefs.h"
13003 /* System header to define __stub macros and hopefully few prototypes,
13004 which can conflict with char $ac_func (); below. */
13005 #include <assert.h>
13006 /* Override any gcc2 internal prototype to avoid an error. */
13010 /* We use char because int might match the return type of a gcc2
13011 builtin and then its argument prototype would still apply. */
13015 #ifdef F77_DUMMY_MAIN
13016 # ifdef __cplusplus
13019 int F77_DUMMY_MAIN() { return 1; }
13024 /* The GNU C library defines this for functions which it implements
13025 to always fail with ENOSYS. Some functions are actually named
13026 something starting with __ and the normal name is an alias. */
13027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 eval "$as_ac_var=yes"
13051 echo "$as_me: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13053 eval "$as_ac_var=no"
13055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13059 if test `eval echo '${'$as_ac_var'}'` = yes; then
13060 cat >>confdefs.h <<_ACEOF
13061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13068 # Check for one of atexit() or on_exit()
13070 for ac_func in atexit
13072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 echo "$as_me:$LINENO: checking for $ac_func" >&5
13074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13075 if eval "test \"\${$as_ac_var+set}\" = set"; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 cat >conftest.$ac_ext <<_ACEOF
13079 #line $LINENO "configure"
13080 #include "confdefs.h"
13081 /* System header to define __stub macros and hopefully few prototypes,
13082 which can conflict with char $ac_func (); below. */
13083 #include <assert.h>
13084 /* Override any gcc2 internal prototype to avoid an error. */
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13093 #ifdef F77_DUMMY_MAIN
13094 # ifdef __cplusplus
13097 int F77_DUMMY_MAIN() { return 1; }
13102 /* The GNU C library defines this for functions which it implements
13103 to always fail with ENOSYS. Some functions are actually named
13104 something starting with __ and the normal name is an alias. */
13105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 eval "$as_ac_var=yes"
13129 echo "$as_me: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 eval "$as_ac_var=no"
13133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13137 if test `eval echo '${'$as_ac_var'}'` = yes; then
13138 cat >>confdefs.h <<_ACEOF
13139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13144 for ac_func in on_exit
13146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13147 echo "$as_me:$LINENO: checking for $ac_func" >&5
13148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13149 if eval "test \"\${$as_ac_var+set}\" = set"; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 cat >conftest.$ac_ext <<_ACEOF
13153 #line $LINENO "configure"
13154 #include "confdefs.h"
13155 /* System header to define __stub macros and hopefully few prototypes,
13156 which can conflict with char $ac_func (); below. */
13157 #include <assert.h>
13158 /* Override any gcc2 internal prototype to avoid an error. */
13162 /* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13167 #ifdef F77_DUMMY_MAIN
13168 # ifdef __cplusplus
13171 int F77_DUMMY_MAIN() { return 1; }
13176 /* The GNU C library defines this for functions which it implements
13177 to always fail with ENOSYS. Some functions are actually named
13178 something starting with __ and the normal name is an alias. */
13179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13191 (eval $ac_link) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -s conftest$ac_exeext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 eval "$as_ac_var=yes"
13203 echo "$as_me: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13205 eval "$as_ac_var=no"
13207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13211 if test `eval echo '${'$as_ac_var'}'` = yes; then
13212 cat >>confdefs.h <<_ACEOF
13213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13217 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13218 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13219 { (exit 1); exit 1; }; }
13227 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13228 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13229 if test "${ac_cv_sys_largefile_source+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 ac_cv_sys_largefile_source=no
13234 cat >conftest.$ac_ext <<_ACEOF
13235 #line $LINENO "configure"
13236 #include "confdefs.h"
13238 #ifdef F77_DUMMY_MAIN
13239 # ifdef __cplusplus
13242 int F77_DUMMY_MAIN() { return 1; }
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13266 echo "$as_me: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13269 rm -f conftest.$ac_objext conftest.$ac_ext
13270 cat >conftest.$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13272 #include "confdefs.h"
13273 #define _LARGEFILE_SOURCE 1
13275 #ifdef F77_DUMMY_MAIN
13276 # ifdef __cplusplus
13279 int F77_DUMMY_MAIN() { return 1; }
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -s conftest.$ac_objext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_sys_largefile_source=1; break
13303 echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13306 rm -f conftest.$ac_objext conftest.$ac_ext
13310 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13312 if test "$ac_cv_sys_largefile_source" != no; then
13314 cat >>confdefs.h <<_ACEOF
13315 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13321 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13322 # in glibc 2.1.3, but that breaks too many other things.
13323 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13324 echo "$as_me:$LINENO: checking for fseeko" >&5
13325 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13326 if test "${ac_cv_func_fseeko+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 cat >conftest.$ac_ext <<_ACEOF
13330 #line $LINENO "configure"
13331 #include "confdefs.h"
13333 #ifdef F77_DUMMY_MAIN
13334 # ifdef __cplusplus
13337 int F77_DUMMY_MAIN() { return 1; }
13342 return fseeko && fseeko (stdin, 0, 0);
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13349 (eval $ac_link) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -s conftest$ac_exeext'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_cv_func_fseeko=yes
13361 echo "$as_me: failed program was:" >&5
13362 cat conftest.$ac_ext >&5
13363 ac_cv_func_fseeko=no
13365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13367 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13368 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13369 if test $ac_cv_func_fseeko = yes; then
13371 cat >>confdefs.h <<\_ACEOF
13372 #define HAVE_FSEEKO 1
13381 # For each platform, we need to know about any special compile and link
13382 # libraries, and whether the normal C function names are thread-safe.
13383 # See the comment at the top of src/port/thread.c for more information.
13385 if test "$enable_thread_safety" = yes; then
13391 ac_cpp='$CPP $CPPFLAGS'
13392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13398 # We used to check for pthread.h first, but this fails if pthread.h
13399 # requires special compiler flags (e.g. on True64 or Sequent).
13400 # It gets checked for in the link test anyway.
13402 # First of all, check if the user has set any of the PTHREAD_LIBS,
13403 # etcetera environment variables, and if threads linking works using
13405 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13406 save_CFLAGS="$CFLAGS"
13407 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13409 LIBS="$PTHREAD_LIBS $LIBS"
13410 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13411 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13412 cat >conftest.$ac_ext <<_ACEOF
13413 #line $LINENO "configure"
13414 #include "confdefs.h"
13416 /* Override any gcc2 internal prototype to avoid an error. */
13420 /* We use char because int might match the return type of a gcc2
13421 builtin and then its argument prototype would still apply. */
13422 char pthread_join ();
13423 #ifdef F77_DUMMY_MAIN
13424 # ifdef __cplusplus
13427 int F77_DUMMY_MAIN() { return 1; }
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439 (eval $ac_link) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -s conftest$ac_exeext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13451 echo "$as_me: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13455 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13456 echo "${ECHO_T}$acx_pthread_ok" >&6
13457 if test x"$acx_pthread_ok" = xno; then
13462 CFLAGS="$save_CFLAGS"
13465 # We must check for the threads library under a number of different
13466 # names; the ordering is very important because some systems
13467 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13468 # libraries is broken (non-POSIX).
13470 # Create a list of thread flags to try. Items starting with a "-" are
13471 # C compiler flags, and other items are library names, except for "none"
13472 # which indicates that we try without any flags at all, and "pthread-config"
13473 # which is a program returning the flags for the Pth emulation library.
13475 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13477 # The ordering *is* (sometimes) important. Some notes on the
13478 # individual items follow:
13480 # pthreads: AIX (must check this before -lpthread)
13481 # none: in case threads are in libc; should be tried before -Kthread and
13482 # other compiler flags to prevent continual compiler warnings
13483 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13484 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13485 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13486 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13487 # -pthreads: Solaris/gcc
13488 # -mthreads: Mingw32/gcc, Lynx/gcc
13489 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13490 # doesn't hurt to check since this sometimes defines pthreads too;
13491 # also defines -D_REENTRANT)
13492 # pthread: Linux, etcetera
13493 # --thread-safe: KAI C++
13494 # pthread-config: use pthread-config program (for GNU Pth library)
13496 case "${host_cpu}-${host_os}" in
13499 # On Solaris (at least, for some versions), libc contains stubbed
13500 # (non-functional) versions of the pthreads routines, so link-based
13501 # tests will erroneously succeed. (We need to link with -pthread or
13502 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13503 # a function called by this macro, so we could check for that, but
13504 # who knows whether they'll stub that too in a future libc.) So,
13505 # we'll just look for -pthreads and -lpthread first:
13507 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13511 if test x"$acx_pthread_ok" = xno; then
13512 for flag in $acx_pthread_flags; do
13514 tryPTHREAD_CFLAGS=""
13518 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13519 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13523 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13524 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13525 tryPTHREAD_CFLAGS="$flag"
13529 # skip this if we already have flags defined, for PostgreSQL
13530 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13531 # Extract the first word of "pthread-config", so it can be a program name with args.
13532 set dummy pthread-config; ac_word=$2
13533 echo "$as_me:$LINENO: checking for $ac_word" >&5
13534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13535 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 if test -n "$acx_pthread_config"; then
13539 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 for as_dir in $PATH
13545 test -z "$as_dir" && as_dir=.
13546 for ac_exec_ext in '' $ac_executable_extensions; do
13547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13548 ac_cv_prog_acx_pthread_config="yes"
13549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13558 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13559 if test -n "$acx_pthread_config"; then
13560 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13561 echo "${ECHO_T}$acx_pthread_config" >&6
13563 echo "$as_me:$LINENO: result: no" >&5
13564 echo "${ECHO_T}no" >&6
13567 if test x"$acx_pthread_config" = xno; then continue; fi
13568 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
13569 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13573 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13574 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13575 tryPTHREAD_LIBS="-l$flag"
13580 save_CFLAGS="$CFLAGS"
13581 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
13582 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13584 # Check for various functions. We must include pthread.h,
13585 # since some functions may be macros. (On the Sequent, we
13586 # need a special flag -Kthread to make this header compile.)
13587 # We check for pthread_join because it is in -lpthread on IRIX
13588 # while pthread_create is in libc. We check for pthread_attr_init
13589 # due to DEC craziness with -lpthreads. We check for
13590 # pthread_cleanup_push because it is one of the few pthread
13591 # functions on Solaris that doesn't have a non-functional libc stub.
13592 # We try pthread_create on general principles.
13593 cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 #include "confdefs.h"
13596 #include <pthread.h>
13597 #ifdef F77_DUMMY_MAIN
13598 # ifdef __cplusplus
13601 int F77_DUMMY_MAIN() { return 1; }
13606 pthread_t th; pthread_join(th, 0);
13607 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13608 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13627 echo "$as_me: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13633 if test "x$acx_pthread_ok" = xyes; then
13634 # Don't use options that are ignored by the compiler.
13635 # We find them by checking stderror.
13636 cat >conftest.$ac_ext <<_ACEOF
13638 main (int argc, char **argv)
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
13647 # we continue with more flags because Linux needs -lpthread
13648 # for libpq builds on PostgreSQL. The test above only
13649 # tests for building binaries, not shared libraries.
13650 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
13651 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13652 else acx_pthread_ok=no
13657 CFLAGS="$save_CFLAGS"
13659 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13660 echo "${ECHO_T}$acx_pthread_ok" >&6
13664 # Various other checks:
13665 if test "x$acx_pthread_ok" = xyes; then
13667 LIBS="$PTHREAD_LIBS $LIBS"
13668 save_CFLAGS="$CFLAGS"
13669 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13671 # Detect AIX lossage: threads are created detached by default
13672 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13673 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13674 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13675 cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13677 #include "confdefs.h"
13678 #include <pthread.h>
13679 #ifdef F77_DUMMY_MAIN
13680 # ifdef __cplusplus
13683 int F77_DUMMY_MAIN() { return 1; }
13688 int attr=PTHREAD_CREATE_JOINABLE;
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -s conftest$ac_exeext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ok=PTHREAD_CREATE_JOINABLE
13707 echo "$as_me: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13712 if test x"$ok" = xunknown; then
13713 cat >conftest.$ac_ext <<_ACEOF
13714 #line $LINENO "configure"
13715 #include "confdefs.h"
13716 #include <pthread.h>
13717 #ifdef F77_DUMMY_MAIN
13718 # ifdef __cplusplus
13721 int F77_DUMMY_MAIN() { return 1; }
13726 int attr=PTHREAD_CREATE_UNDETACHED;
13731 rm -f conftest.$ac_objext conftest$ac_exeext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733 (eval $ac_link) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ok=PTHREAD_CREATE_UNDETACHED
13745 echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13751 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13753 cat >>confdefs.h <<\_ACEOF
13754 #define PTHREAD_CREATE_JOINABLE $ok
13758 echo "$as_me:$LINENO: result: ${ok}" >&5
13759 echo "${ECHO_T}${ok}" >&6
13760 if test x"$ok" = xunknown; then
13761 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13762 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13765 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13766 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13768 # We always add these in PostgreSQL
13769 # case "${host_cpu}-${host_os}" in
13770 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13771 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13773 echo "$as_me:$LINENO: result: ${flag}" >&5
13774 echo "${ECHO_T}${flag}" >&6
13775 if test "x$flag" != xno; then
13776 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13780 CFLAGS="$save_CFLAGS"
13782 # Supporting cc_r would require a special CC in all places that
13783 # use libpq, and that is ugly, so we don't do it. Users can still
13784 # define their compiler as cc_r to do thread builds of everything.
13785 # More AIX lossage: must compile with cc_r
13786 # Extract the first word of "cc_r", so it can be a program name with args.
13787 set dummy cc_r; ac_word=$2
13788 echo "$as_me:$LINENO: checking for $ac_word" >&5
13789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13790 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 if test -n "$PTHREAD_CC"; then
13794 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 ac_cv_prog_PTHREAD_CC="cc_r"
13804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13813 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13814 if test -n "$PTHREAD_CC"; then
13815 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13816 echo "${ECHO_T}$PTHREAD_CC" >&6
13818 echo "$as_me:$LINENO: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13830 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13831 if test x"$acx_pthread_ok" = xyes; then
13833 cat >>confdefs.h <<\_ACEOF
13834 #define HAVE_PTHREAD 1
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13850 # Some platforms use these, so just defineed them. They can't hurt if they
13851 # are not supported.
13852 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13855 # At this point, we don't want to muck with the compiler name for threading.
13856 # Let's see who fails, perhaps AIX. 2004-04-23
13857 if test "$PTHREAD_CC" != "$CC"; then
13858 { { echo "$as_me:$LINENO: error:
13859 PostgreSQL does not support platforms that require a special
13860 compiler binary for thread-safety.
13862 echo "$as_me: error:
13863 PostgreSQL does not support platforms that require a special
13864 compiler binary for thread-safety.
13866 { (exit 1); exit 1; }; }
13869 if test "$THREAD_SUPPORT" = no; then
13870 { { echo "$as_me:$LINENO: error:
13871 Cannot enable threads on your platform.
13872 Your platform is known to not support thread-safe programs.
13873 For details, compile and run src/bin/pg_thread_test.
13875 echo "$as_me: error:
13876 Cannot enable threads on your platform.
13877 Your platform is known to not support thread-safe programs.
13878 For details, compile and run src/bin/pg_thread_test.
13880 { (exit 1); exit 1; }; }
13883 # Check for *_r functions
13886 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13887 LIBS="$LIBS $PTHREAD_LIBS"
13889 if test "${ac_cv_header_pthread_h+set}" = set; then
13890 echo "$as_me:$LINENO: checking for pthread.h" >&5
13891 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13892 if test "${ac_cv_header_pthread_h+set}" = set; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13896 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13898 # Is the header compilable?
13899 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13900 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13901 cat >conftest.$ac_ext <<_ACEOF
13902 #line $LINENO "configure"
13903 #include "confdefs.h"
13904 $ac_includes_default
13905 #include <pthread.h>
13907 rm -f conftest.$ac_objext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13909 (eval $ac_compile) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -s conftest.$ac_objext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_header_compiler=yes
13921 echo "$as_me: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 ac_header_compiler=no
13925 rm -f conftest.$ac_objext conftest.$ac_ext
13926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13927 echo "${ECHO_T}$ac_header_compiler" >&6
13929 # Is the header present?
13930 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13931 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13932 cat >conftest.$ac_ext <<_ACEOF
13933 #line $LINENO "configure"
13934 #include "confdefs.h"
13935 #include <pthread.h>
13937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13940 egrep -v '^ *\+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null; then
13945 if test -s conftest.err; then
13946 ac_cpp_err=$ac_c_preproc_warn_flag
13953 if test -z "$ac_cpp_err"; then
13954 ac_header_preproc=yes
13956 echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13958 ac_header_preproc=no
13960 rm -f conftest.err conftest.$ac_ext
13961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13962 echo "${ECHO_T}$ac_header_preproc" >&6
13964 # So? What about this header?
13965 case $ac_header_compiler:$ac_header_preproc in
13967 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13968 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13970 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13972 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13973 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13975 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13977 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13979 echo "$as_me:$LINENO: checking for pthread.h" >&5
13980 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13981 if test "${ac_cv_header_pthread_h+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 ac_cv_header_pthread_h=$ac_header_preproc
13986 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13987 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13990 if test $ac_cv_header_pthread_h = yes; then
13993 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13994 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13995 { (exit 1); exit 1; }; }
14003 for ac_func in strerror_r getpwuid_r gethostbyname_r
14005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14006 echo "$as_me:$LINENO: checking for $ac_func" >&5
14007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14008 if eval "test \"\${$as_ac_var+set}\" = set"; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 cat >conftest.$ac_ext <<_ACEOF
14012 #line $LINENO "configure"
14013 #include "confdefs.h"
14014 /* System header to define __stub macros and hopefully few prototypes,
14015 which can conflict with char $ac_func (); below. */
14016 #include <assert.h>
14017 /* Override any gcc2 internal prototype to avoid an error. */
14021 /* We use char because int might match the return type of a gcc2
14022 builtin and then its argument prototype would still apply. */
14026 #ifdef F77_DUMMY_MAIN
14027 # ifdef __cplusplus
14030 int F77_DUMMY_MAIN() { return 1; }
14035 /* The GNU C library defines this for functions which it implements
14036 to always fail with ENOSYS. Some functions are actually named
14037 something starting with __ and the normal name is an alias. */
14038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 eval "$as_ac_var=yes"
14062 echo "$as_me: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14064 eval "$as_ac_var=no"
14066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14070 if test `eval echo '${'$as_ac_var'}'` = yes; then
14071 cat >>confdefs.h <<_ACEOF
14072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14079 # Do test here with the proper thread flags
14080 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
14081 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
14082 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 #include "confdefs.h"
14088 #include <sys/types.h>
14090 #ifdef F77_DUMMY_MAIN
14091 # ifdef __cplusplus
14094 int F77_DUMMY_MAIN() { return 1; }
14100 struct passwd *space;
14103 struct passwd **result;
14104 getpwuid_r(uid, space, buf, bufsize, result);
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111 (eval $ac_compile) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -s conftest.$ac_objext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 pgac_func_getpwuid_r_5arg=yes
14123 echo "$as_me: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 pgac_func_getpwuid_r_5arg=no
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14129 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
14130 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
14131 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
14133 cat >>confdefs.h <<\_ACEOF
14134 #define GETPWUID_R_5ARG
14139 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
14140 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
14141 if test "${pgac_func_strerror_r_int+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 #include "confdefs.h"
14147 #include <string.h>
14148 #ifdef F77_DUMMY_MAIN
14149 # ifdef __cplusplus
14152 int F77_DUMMY_MAIN() { return 1; }
14158 int strerror_r(int, char *, size_t);
14160 /* Older AIX has 'int' for the third argument so we don't test the args. */
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 pgac_func_strerror_r_int=yes
14181 echo "$as_me: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 pgac_func_strerror_r_int=no
14185 rm -f conftest.$ac_objext conftest.$ac_ext
14187 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
14188 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
14189 if test x"$pgac_func_strerror_r_int" = xyes ; then
14191 cat >>confdefs.h <<\_ACEOF
14192 #define STRERROR_R_INT
14202 # do not use values from template file
14211 # This test makes sure that run tests work at all. Sometimes a shared
14212 # library is found by the linker, but the runtime linker can't find it.
14213 # This check should come after all modifications of compiler or linker
14214 # variables, and before any other run tests.
14215 echo "$as_me:$LINENO: checking test program" >&5
14216 echo $ECHO_N "checking test program... $ECHO_C" >&6
14217 if test "$cross_compiling" = yes; then
14218 echo "$as_me:$LINENO: result: cross-compiling" >&5
14219 echo "${ECHO_T}cross-compiling" >&6
14221 cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 #include "confdefs.h"
14224 int main() { return 0; }
14226 rm -f conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228 (eval $ac_link) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 echo "$as_me:$LINENO: result: ok" >&5
14238 echo "${ECHO_T}ok" >&6
14240 echo "$as_me: program exited with status $ac_status" >&5
14241 echo "$as_me: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 ( exit $ac_status )
14244 echo "$as_me:$LINENO: result: failed" >&5
14245 echo "${ECHO_T}failed" >&6
14246 { { echo "$as_me:$LINENO: error:
14247 *** Could not execute a simple test program. This may be a problem
14248 *** related to locating shared libraries. Check the file 'config.log'
14249 *** for the exact reason." >&5
14250 echo "$as_me: error:
14251 *** Could not execute a simple test program. This may be a problem
14252 *** related to locating shared libraries. Check the file 'config.log'
14253 *** for the exact reason." >&2;}
14254 { (exit 1); exit 1; }; }
14256 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14260 # Force use of our snprintf if system's doesn't do arg control
14261 # This feature is used by NLS
14262 if test "$enable_nls" = yes &&
14263 test $pgac_need_repl_snprintf = no &&
14264 # On Win32, libintl replaces snprintf() with its own version that
14265 # understands arg control, so we don't need our own. In fact, it
14266 # also uses macros that conflict with ours, so we _can't_ use
14268 test "$PORTNAME" != "win32"; then
14269 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
14270 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
14271 if test "${pgac_cv_printf_arg_control+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 if test "$cross_compiling" = yes; then
14275 pgac_cv_printf_arg_control=cross
14277 cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14281 #include <string.h>
14287 /* can it swap arguments? */
14288 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
14289 if (strcmp(buf, "4 3") != 0)
14294 rm -f conftest$ac_exeext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14296 (eval $ac_link) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 pgac_cv_printf_arg_control=yes
14307 echo "$as_me: program exited with status $ac_status" >&5
14308 echo "$as_me: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 ( exit $ac_status )
14311 pgac_cv_printf_arg_control=no
14313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14317 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
14318 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
14320 if test $pgac_cv_printf_arg_control != yes ; then
14321 pgac_need_repl_snprintf=yes
14327 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
14328 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
14329 if test "${pgac_cv_type_long_int_64+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 if test "$cross_compiling" = yes; then
14333 # If cross-compiling, check the size reported by the compiler and
14334 # trust that the arithmetic works.
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 #include "confdefs.h"
14339 #ifdef F77_DUMMY_MAIN
14340 # ifdef __cplusplus
14343 int F77_DUMMY_MAIN() { return 1; }
14348 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 pgac_cv_type_long_int_64=yes
14369 echo "$as_me: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 pgac_cv_type_long_int_64=no
14373 rm -f conftest.$ac_objext conftest.$ac_ext
14375 cat >conftest.$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14377 #include "confdefs.h"
14378 typedef long int ac_int64;
14381 * These are globals to discourage the compiler from folding all the
14382 * arithmetic tests down to compile-time constants.
14384 ac_int64 a = 20000001;
14385 ac_int64 b = 40000005;
14387 int does_int64_work()
14391 if (sizeof(ac_int64) != 8)
14392 return 0; /* definitely not the right size */
14394 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14402 exit(! does_int64_work());
14405 rm -f conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 (eval $ac_link) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 pgac_cv_type_long_int_64=yes
14418 echo "$as_me: program exited with status $ac_status" >&5
14419 echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14421 ( exit $ac_status )
14422 pgac_cv_type_long_int_64=no
14424 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14427 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14428 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14430 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14431 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14433 cat >>confdefs.h <<\_ACEOF
14434 #define HAVE_LONG_INT_64
14440 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14441 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14442 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14443 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 if test "$cross_compiling" = yes; then
14447 # If cross-compiling, check the size reported by the compiler and
14448 # trust that the arithmetic works.
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 #include "confdefs.h"
14453 #ifdef F77_DUMMY_MAIN
14454 # ifdef __cplusplus
14457 int F77_DUMMY_MAIN() { return 1; }
14462 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 pgac_cv_type_long_long_int_64=yes
14483 echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 pgac_cv_type_long_long_int_64=no
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14489 cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 #include "confdefs.h"
14492 typedef long long int ac_int64;
14495 * These are globals to discourage the compiler from folding all the
14496 * arithmetic tests down to compile-time constants.
14498 ac_int64 a = 20000001;
14499 ac_int64 b = 40000005;
14501 int does_int64_work()
14505 if (sizeof(ac_int64) != 8)
14506 return 0; /* definitely not the right size */
14508 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14516 exit(! does_int64_work());
14519 rm -f conftest$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521 (eval $ac_link) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 pgac_cv_type_long_long_int_64=yes
14532 echo "$as_me: program exited with status $ac_status" >&5
14533 echo "$as_me: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14535 ( exit $ac_status )
14536 pgac_cv_type_long_long_int_64=no
14538 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14541 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14542 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14544 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14545 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_LONG_LONG_INT_64
14557 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14558 cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14562 #define INT64CONST(x) x##LL
14563 long long int foo = INT64CONST(0x1234567890123456);
14565 #ifdef F77_DUMMY_MAIN
14566 # ifdef __cplusplus
14569 int F77_DUMMY_MAIN() { return 1; }
14579 rm -f conftest.$ac_objext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581 (eval $ac_compile) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -s conftest.$ac_objext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_LL_CONSTANTS 1
14597 echo "$as_me: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14600 rm -f conftest.$ac_objext conftest.$ac_ext
14604 # If we found "long int" is 64 bits, assume snprintf handles it. If
14605 # we found we need to use "long long int", better check. We cope with
14606 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14607 # work, fall back to our own snprintf emulation (which we know uses %lld).
14609 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14610 if test $pgac_need_repl_snprintf = no; then
14611 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14612 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14613 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 for pgac_format in '%lld' '%qd' '%I64d'; do
14617 if test "$cross_compiling" = yes; then
14618 pgac_cv_snprintf_long_long_int_format=cross; break
14620 cat >conftest.$ac_ext <<_ACEOF
14621 #line $LINENO "configure"
14622 #include "confdefs.h"
14624 typedef long long int ac_int64;
14625 #define INT64_FORMAT "$pgac_format"
14627 ac_int64 a = 20000001;
14628 ac_int64 b = 40000005;
14630 int does_int64_snprintf_work()
14635 if (sizeof(ac_int64) != 8)
14636 return 0; /* doesn't look like the right size */
14639 snprintf(buf, 100, INT64_FORMAT, c);
14640 if (strcmp(buf, "800000140000005") != 0)
14641 return 0; /* either multiply or snprintf is busted */
14645 exit(! does_int64_snprintf_work());
14648 rm -f conftest$ac_exeext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14650 (eval $ac_link) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14661 echo "$as_me: program exited with status $ac_status" >&5
14662 echo "$as_me: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14665 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14670 LONG_LONG_INT_FORMAT=''
14672 case $pgac_cv_snprintf_long_long_int_format in
14673 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14674 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14675 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14676 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14677 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14678 *) echo "$as_me:$LINENO: result: none" >&5
14679 echo "${ECHO_T}none" >&6;;
14681 if test "$LONG_LONG_INT_FORMAT" = ""; then
14682 # Force usage of our own snprintf, since system snprintf is broken
14683 pgac_need_repl_snprintf=yes
14684 LONG_LONG_INT_FORMAT='%lld'
14687 # Here if we previously decided we needed to use our own snprintf
14688 LONG_LONG_INT_FORMAT='%lld'
14690 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14691 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14692 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14694 # Here if we are not using 'long long int' at all
14695 INT64_FORMAT='"%ld"'
14696 UINT64_FORMAT='"%lu"'
14700 cat >>confdefs.h <<_ACEOF
14701 #define INT64_FORMAT $INT64_FORMAT
14706 cat >>confdefs.h <<_ACEOF
14707 #define UINT64_FORMAT $UINT64_FORMAT
14711 # Now we have checked all the reasons to replace snprintf
14712 if test $pgac_need_repl_snprintf = yes; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define USE_SNPRINTF 1
14718 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14721 # Need a #define for the size of Datum (unsigned long)
14722 echo "$as_me:$LINENO: checking for unsigned long" >&5
14723 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14724 if test "${ac_cv_type_unsigned_long+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 cat >conftest.$ac_ext <<_ACEOF
14728 #line $LINENO "configure"
14729 #include "confdefs.h"
14730 $ac_includes_default
14731 #ifdef F77_DUMMY_MAIN
14732 # ifdef __cplusplus
14735 int F77_DUMMY_MAIN() { return 1; }
14740 if ((unsigned long *) 0)
14742 if (sizeof (unsigned long))
14748 rm -f conftest.$ac_objext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14750 (eval $ac_compile) 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try='test -s conftest.$ac_objext'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 ac_cv_type_unsigned_long=yes
14762 echo "$as_me: failed program was:" >&5
14763 cat conftest.$ac_ext >&5
14764 ac_cv_type_unsigned_long=no
14766 rm -f conftest.$ac_objext conftest.$ac_ext
14768 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14769 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14771 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14772 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14773 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 if test "$ac_cv_type_unsigned_long" = yes; then
14777 # The cast to unsigned long works around a bug in the HP C Compiler
14778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14780 # This bug is HP SR number 8606223364.
14781 if test "$cross_compiling" = yes; then
14782 # Depending upon the size, compute the lo and hi bounds.
14783 cat >conftest.$ac_ext <<_ACEOF
14784 #line $LINENO "configure"
14785 #include "confdefs.h"
14786 $ac_includes_default
14787 #ifdef F77_DUMMY_MAIN
14788 # ifdef __cplusplus
14791 int F77_DUMMY_MAIN() { return 1; }
14796 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14817 cat >conftest.$ac_ext <<_ACEOF
14818 #line $LINENO "configure"
14819 #include "confdefs.h"
14820 $ac_includes_default
14821 #ifdef F77_DUMMY_MAIN
14822 # ifdef __cplusplus
14825 int F77_DUMMY_MAIN() { return 1; }
14830 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_hi=$ac_mid; break
14851 echo "$as_me: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14853 ac_lo=`expr $ac_mid + 1`
14854 if test $ac_lo -le $ac_mid; then
14858 ac_mid=`expr 2 '*' $ac_mid + 1`
14860 rm -f conftest.$ac_objext conftest.$ac_ext
14863 echo "$as_me: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14865 cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 #include "confdefs.h"
14868 $ac_includes_default
14869 #ifdef F77_DUMMY_MAIN
14870 # ifdef __cplusplus
14873 int F77_DUMMY_MAIN() { return 1; }
14878 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14885 rm -f conftest.$ac_objext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887 (eval $ac_compile) 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } &&
14891 { ac_try='test -s conftest.$ac_objext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14899 cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14901 #include "confdefs.h"
14902 $ac_includes_default
14903 #ifdef F77_DUMMY_MAIN
14904 # ifdef __cplusplus
14907 int F77_DUMMY_MAIN() { return 1; }
14912 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_lo=$ac_mid; break
14933 echo "$as_me: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14935 ac_hi=`expr '(' $ac_mid ')' - 1`
14936 if test $ac_mid -le $ac_hi; then
14940 ac_mid=`expr 2 '*' $ac_mid`
14942 rm -f conftest.$ac_objext conftest.$ac_ext
14945 echo "$as_me: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14951 rm -f conftest.$ac_objext conftest.$ac_ext
14952 # Binary search between lo and hi bounds.
14953 while test "x$ac_lo" != "x$ac_hi"; do
14954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14955 cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14957 #include "confdefs.h"
14958 $ac_includes_default
14959 #ifdef F77_DUMMY_MAIN
14960 # ifdef __cplusplus
14963 int F77_DUMMY_MAIN() { return 1; }
14968 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14989 echo "$as_me: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14991 ac_lo=`expr '(' $ac_mid ')' + 1`
14993 rm -f conftest.$ac_objext conftest.$ac_ext
14996 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14997 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14998 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14999 { (exit 1); exit 1; }; } ;;
15002 if test "$cross_compiling" = yes; then
15003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15004 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15005 { (exit 1); exit 1; }; }
15007 cat >conftest.$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15009 #include "confdefs.h"
15010 $ac_includes_default
15011 long longval () { return (long) (sizeof (unsigned long)); }
15012 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
15014 #include <stdlib.h>
15015 #ifdef F77_DUMMY_MAIN
15016 # ifdef __cplusplus
15019 int F77_DUMMY_MAIN() { return 1; }
15025 FILE *f = fopen ("conftest.val", "w");
15028 if (((long) (sizeof (unsigned long))) < 0)
15030 long i = longval ();
15031 if (i != ((long) (sizeof (unsigned long))))
15033 fprintf (f, "%ld\n", i);
15037 unsigned long i = ulongval ();
15038 if (i != ((long) (sizeof (unsigned long))))
15040 fprintf (f, "%lu\n", i);
15042 exit (ferror (f) || fclose (f) != 0);
15048 rm -f conftest$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_sizeof_unsigned_long=`cat conftest.val`
15061 echo "$as_me: program exited with status $ac_status" >&5
15062 echo "$as_me: failed program was:" >&5
15063 cat conftest.$ac_ext >&5
15064 ( exit $ac_status )
15065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
15066 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
15067 { (exit 1); exit 1; }; }
15069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15074 ac_cv_sizeof_unsigned_long=0
15077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
15078 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
15079 cat >>confdefs.h <<_ACEOF
15080 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
15085 # Determine memory alignment requirements for the basic C data types.
15087 echo "$as_me:$LINENO: checking for short" >&5
15088 echo $ECHO_N "checking for short... $ECHO_C" >&6
15089 if test "${ac_cv_type_short+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 #include "confdefs.h"
15095 $ac_includes_default
15096 #ifdef F77_DUMMY_MAIN
15097 # ifdef __cplusplus
15100 int F77_DUMMY_MAIN() { return 1; }
15107 if (sizeof (short))
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115 (eval $ac_compile) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -s conftest.$ac_objext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 ac_cv_type_short=yes
15127 echo "$as_me: failed program was:" >&5
15128 cat conftest.$ac_ext >&5
15129 ac_cv_type_short=no
15131 rm -f conftest.$ac_objext conftest.$ac_ext
15133 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15134 echo "${ECHO_T}$ac_cv_type_short" >&6
15136 echo "$as_me:$LINENO: checking alignment of short" >&5
15137 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
15138 if test "${pgac_cv_alignof_short+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 if test "$ac_cv_type_short" = yes; then
15142 if test "$cross_compiling" = yes; then
15143 # Depending upon the size, compute the lo and hi bounds.
15144 cat >conftest.$ac_ext <<_ACEOF
15145 #line $LINENO "configure"
15146 #include "confdefs.h"
15147 $ac_includes_default
15148 struct { char filler; short field; } pgac_struct;
15149 #ifdef F77_DUMMY_MAIN
15150 # ifdef __cplusplus
15153 int F77_DUMMY_MAIN() { return 1; }
15158 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15165 rm -f conftest.$ac_objext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167 (eval $ac_compile) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
15171 { ac_try='test -s conftest.$ac_objext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15179 cat >conftest.$ac_ext <<_ACEOF
15180 #line $LINENO "configure"
15181 #include "confdefs.h"
15182 $ac_includes_default
15183 struct { char filler; short field; } pgac_struct;
15184 #ifdef F77_DUMMY_MAIN
15185 # ifdef __cplusplus
15188 int F77_DUMMY_MAIN() { return 1; }
15193 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15200 rm -f conftest.$ac_objext
15201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15202 (eval $ac_compile) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -s conftest.$ac_objext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_hi=$ac_mid; break
15214 echo "$as_me: failed program was:" >&5
15215 cat conftest.$ac_ext >&5
15216 ac_lo=`expr $ac_mid + 1`
15217 if test $ac_lo -le $ac_mid; then
15221 ac_mid=`expr 2 '*' $ac_mid + 1`
15223 rm -f conftest.$ac_objext conftest.$ac_ext
15226 echo "$as_me: failed program was:" >&5
15227 cat conftest.$ac_ext >&5
15228 cat >conftest.$ac_ext <<_ACEOF
15229 #line $LINENO "configure"
15230 #include "confdefs.h"
15231 $ac_includes_default
15232 struct { char filler; short field; } pgac_struct;
15233 #ifdef F77_DUMMY_MAIN
15234 # ifdef __cplusplus
15237 int F77_DUMMY_MAIN() { return 1; }
15242 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15249 rm -f conftest.$ac_objext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251 (eval $ac_compile) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15263 cat >conftest.$ac_ext <<_ACEOF
15264 #line $LINENO "configure"
15265 #include "confdefs.h"
15266 $ac_includes_default
15267 struct { char filler; short field; } pgac_struct;
15268 #ifdef F77_DUMMY_MAIN
15269 # ifdef __cplusplus
15272 int F77_DUMMY_MAIN() { return 1; }
15277 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15284 rm -f conftest.$ac_objext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286 (eval $ac_compile) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -s conftest.$ac_objext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_lo=$ac_mid; break
15298 echo "$as_me: failed program was:" >&5
15299 cat conftest.$ac_ext >&5
15300 ac_hi=`expr '(' $ac_mid ')' - 1`
15301 if test $ac_mid -le $ac_hi; then
15305 ac_mid=`expr 2 '*' $ac_mid`
15307 rm -f conftest.$ac_objext conftest.$ac_ext
15310 echo "$as_me: failed program was:" >&5
15311 cat conftest.$ac_ext >&5
15314 rm -f conftest.$ac_objext conftest.$ac_ext
15316 rm -f conftest.$ac_objext conftest.$ac_ext
15317 # Binary search between lo and hi bounds.
15318 while test "x$ac_lo" != "x$ac_hi"; do
15319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15320 cat >conftest.$ac_ext <<_ACEOF
15321 #line $LINENO "configure"
15322 #include "confdefs.h"
15323 $ac_includes_default
15324 struct { char filler; short field; } pgac_struct;
15325 #ifdef F77_DUMMY_MAIN
15326 # ifdef __cplusplus
15329 int F77_DUMMY_MAIN() { return 1; }
15334 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15341 rm -f conftest.$ac_objext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15343 (eval $ac_compile) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15355 echo "$as_me: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15357 ac_lo=`expr '(' $ac_mid ')' + 1`
15359 rm -f conftest.$ac_objext conftest.$ac_ext
15362 ?*) pgac_cv_alignof_short=$ac_lo;;
15363 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15364 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15365 { (exit 1); exit 1; }; } ;;
15368 if test "$cross_compiling" = yes; then
15369 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15370 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15371 { (exit 1); exit 1; }; }
15373 cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15375 #include "confdefs.h"
15376 $ac_includes_default
15377 struct { char filler; short field; } pgac_struct;
15378 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15379 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15381 #include <stdlib.h>
15382 #ifdef F77_DUMMY_MAIN
15383 # ifdef __cplusplus
15386 int F77_DUMMY_MAIN() { return 1; }
15392 FILE *f = fopen ("conftest.val", "w");
15395 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15397 long i = longval ();
15398 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15400 fprintf (f, "%ld\n", i);
15404 unsigned long i = ulongval ();
15405 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15407 fprintf (f, "%lu\n", i);
15409 exit (ferror (f) || fclose (f) != 0);
15415 rm -f conftest$ac_exeext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15417 (eval $ac_link) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 pgac_cv_alignof_short=`cat conftest.val`
15428 echo "$as_me: program exited with status $ac_status" >&5
15429 echo "$as_me: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 ( exit $ac_status )
15432 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15433 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15434 { (exit 1); exit 1; }; }
15436 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15441 pgac_cv_alignof_short=0
15444 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15445 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15446 cat >>confdefs.h <<_ACEOF
15447 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15451 echo "$as_me:$LINENO: checking for int" >&5
15452 echo $ECHO_N "checking for int... $ECHO_C" >&6
15453 if test "${ac_cv_type_int+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 cat >conftest.$ac_ext <<_ACEOF
15457 #line $LINENO "configure"
15458 #include "confdefs.h"
15459 $ac_includes_default
15460 #ifdef F77_DUMMY_MAIN
15461 # ifdef __cplusplus
15464 int F77_DUMMY_MAIN() { return 1; }
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15491 echo "$as_me: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15495 rm -f conftest.$ac_objext conftest.$ac_ext
15497 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15498 echo "${ECHO_T}$ac_cv_type_int" >&6
15500 echo "$as_me:$LINENO: checking alignment of int" >&5
15501 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15502 if test "${pgac_cv_alignof_int+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 if test "$ac_cv_type_int" = yes; then
15506 if test "$cross_compiling" = yes; then
15507 # Depending upon the size, compute the lo and hi bounds.
15508 cat >conftest.$ac_ext <<_ACEOF
15509 #line $LINENO "configure"
15510 #include "confdefs.h"
15511 $ac_includes_default
15512 struct { char filler; int field; } pgac_struct;
15513 #ifdef F77_DUMMY_MAIN
15514 # ifdef __cplusplus
15517 int F77_DUMMY_MAIN() { return 1; }
15522 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15529 rm -f conftest.$ac_objext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531 (eval $ac_compile) 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -s conftest.$ac_objext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15543 cat >conftest.$ac_ext <<_ACEOF
15544 #line $LINENO "configure"
15545 #include "confdefs.h"
15546 $ac_includes_default
15547 struct { char filler; int field; } pgac_struct;
15548 #ifdef F77_DUMMY_MAIN
15549 # ifdef __cplusplus
15552 int F77_DUMMY_MAIN() { return 1; }
15557 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15564 rm -f conftest.$ac_objext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566 (eval $ac_compile) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -s conftest.$ac_objext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_hi=$ac_mid; break
15578 echo "$as_me: failed program was:" >&5
15579 cat conftest.$ac_ext >&5
15580 ac_lo=`expr $ac_mid + 1`
15581 if test $ac_lo -le $ac_mid; then
15585 ac_mid=`expr 2 '*' $ac_mid + 1`
15587 rm -f conftest.$ac_objext conftest.$ac_ext
15590 echo "$as_me: failed program was:" >&5
15591 cat conftest.$ac_ext >&5
15592 cat >conftest.$ac_ext <<_ACEOF
15593 #line $LINENO "configure"
15594 #include "confdefs.h"
15595 $ac_includes_default
15596 struct { char filler; int field; } pgac_struct;
15597 #ifdef F77_DUMMY_MAIN
15598 # ifdef __cplusplus
15601 int F77_DUMMY_MAIN() { return 1; }
15606 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15613 rm -f conftest.$ac_objext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15615 (eval $ac_compile) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try='test -s conftest.$ac_objext'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15627 cat >conftest.$ac_ext <<_ACEOF
15628 #line $LINENO "configure"
15629 #include "confdefs.h"
15630 $ac_includes_default
15631 struct { char filler; int field; } pgac_struct;
15632 #ifdef F77_DUMMY_MAIN
15633 # ifdef __cplusplus
15636 int F77_DUMMY_MAIN() { return 1; }
15641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15648 rm -f conftest.$ac_objext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15650 (eval $ac_compile) 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -s conftest.$ac_objext'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_lo=$ac_mid; break
15662 echo "$as_me: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 ac_hi=`expr '(' $ac_mid ')' - 1`
15665 if test $ac_mid -le $ac_hi; then
15669 ac_mid=`expr 2 '*' $ac_mid`
15671 rm -f conftest.$ac_objext conftest.$ac_ext
15674 echo "$as_me: failed program was:" >&5
15675 cat conftest.$ac_ext >&5
15678 rm -f conftest.$ac_objext conftest.$ac_ext
15680 rm -f conftest.$ac_objext conftest.$ac_ext
15681 # Binary search between lo and hi bounds.
15682 while test "x$ac_lo" != "x$ac_hi"; do
15683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15684 cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 #include "confdefs.h"
15687 $ac_includes_default
15688 struct { char filler; int field; } pgac_struct;
15689 #ifdef F77_DUMMY_MAIN
15690 # ifdef __cplusplus
15693 int F77_DUMMY_MAIN() { return 1; }
15698 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15705 rm -f conftest.$ac_objext
15706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15707 (eval $ac_compile) 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
15711 { ac_try='test -s conftest.$ac_objext'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15719 echo "$as_me: failed program was:" >&5
15720 cat conftest.$ac_ext >&5
15721 ac_lo=`expr '(' $ac_mid ')' + 1`
15723 rm -f conftest.$ac_objext conftest.$ac_ext
15726 ?*) pgac_cv_alignof_int=$ac_lo;;
15727 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15728 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15729 { (exit 1); exit 1; }; } ;;
15732 if test "$cross_compiling" = yes; then
15733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15734 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15735 { (exit 1); exit 1; }; }
15737 cat >conftest.$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15739 #include "confdefs.h"
15740 $ac_includes_default
15741 struct { char filler; int field; } pgac_struct;
15742 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15743 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15745 #include <stdlib.h>
15746 #ifdef F77_DUMMY_MAIN
15747 # ifdef __cplusplus
15750 int F77_DUMMY_MAIN() { return 1; }
15756 FILE *f = fopen ("conftest.val", "w");
15759 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15761 long i = longval ();
15762 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15764 fprintf (f, "%ld\n", i);
15768 unsigned long i = ulongval ();
15769 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15771 fprintf (f, "%lu\n", i);
15773 exit (ferror (f) || fclose (f) != 0);
15779 rm -f conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781 (eval $ac_link) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 pgac_cv_alignof_int=`cat conftest.val`
15792 echo "$as_me: program exited with status $ac_status" >&5
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 ( exit $ac_status )
15796 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15797 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15798 { (exit 1); exit 1; }; }
15800 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15805 pgac_cv_alignof_int=0
15808 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15809 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15810 cat >>confdefs.h <<_ACEOF
15811 #define ALIGNOF_INT $pgac_cv_alignof_int
15815 echo "$as_me:$LINENO: checking for long" >&5
15816 echo $ECHO_N "checking for long... $ECHO_C" >&6
15817 if test "${ac_cv_type_long+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 cat >conftest.$ac_ext <<_ACEOF
15821 #line $LINENO "configure"
15822 #include "confdefs.h"
15823 $ac_includes_default
15824 #ifdef F77_DUMMY_MAIN
15825 # ifdef __cplusplus
15828 int F77_DUMMY_MAIN() { return 1; }
15841 rm -f conftest.$ac_objext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843 (eval $ac_compile) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } &&
15847 { ac_try='test -s conftest.$ac_objext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 ac_cv_type_long=yes
15855 echo "$as_me: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15859 rm -f conftest.$ac_objext conftest.$ac_ext
15861 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15862 echo "${ECHO_T}$ac_cv_type_long" >&6
15864 echo "$as_me:$LINENO: checking alignment of long" >&5
15865 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15866 if test "${pgac_cv_alignof_long+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 if test "$ac_cv_type_long" = yes; then
15870 if test "$cross_compiling" = yes; then
15871 # Depending upon the size, compute the lo and hi bounds.
15872 cat >conftest.$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15874 #include "confdefs.h"
15875 $ac_includes_default
15876 struct { char filler; long field; } pgac_struct;
15877 #ifdef F77_DUMMY_MAIN
15878 # ifdef __cplusplus
15881 int F77_DUMMY_MAIN() { return 1; }
15886 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895 (eval $ac_compile) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -s conftest.$ac_objext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15907 cat >conftest.$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15909 #include "confdefs.h"
15910 $ac_includes_default
15911 struct { char filler; long field; } pgac_struct;
15912 #ifdef F77_DUMMY_MAIN
15913 # ifdef __cplusplus
15916 int F77_DUMMY_MAIN() { return 1; }
15921 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15928 rm -f conftest.$ac_objext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930 (eval $ac_compile) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_hi=$ac_mid; break
15942 echo "$as_me: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15944 ac_lo=`expr $ac_mid + 1`
15945 if test $ac_lo -le $ac_mid; then
15949 ac_mid=`expr 2 '*' $ac_mid + 1`
15951 rm -f conftest.$ac_objext conftest.$ac_ext
15954 echo "$as_me: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15956 cat >conftest.$ac_ext <<_ACEOF
15957 #line $LINENO "configure"
15958 #include "confdefs.h"
15959 $ac_includes_default
15960 struct { char filler; long field; } pgac_struct;
15961 #ifdef F77_DUMMY_MAIN
15962 # ifdef __cplusplus
15965 int F77_DUMMY_MAIN() { return 1; }
15970 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15991 cat >conftest.$ac_ext <<_ACEOF
15992 #line $LINENO "configure"
15993 #include "confdefs.h"
15994 $ac_includes_default
15995 struct { char filler; long field; } pgac_struct;
15996 #ifdef F77_DUMMY_MAIN
15997 # ifdef __cplusplus
16000 int F77_DUMMY_MAIN() { return 1; }
16005 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16012 rm -f conftest.$ac_objext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014 (eval $ac_compile) 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -s conftest.$ac_objext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_lo=$ac_mid; break
16026 echo "$as_me: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16028 ac_hi=`expr '(' $ac_mid ')' - 1`
16029 if test $ac_mid -le $ac_hi; then
16033 ac_mid=`expr 2 '*' $ac_mid`
16035 rm -f conftest.$ac_objext conftest.$ac_ext
16038 echo "$as_me: failed program was:" >&5
16039 cat conftest.$ac_ext >&5
16042 rm -f conftest.$ac_objext conftest.$ac_ext
16044 rm -f conftest.$ac_objext conftest.$ac_ext
16045 # Binary search between lo and hi bounds.
16046 while test "x$ac_lo" != "x$ac_hi"; do
16047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16048 cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16050 #include "confdefs.h"
16051 $ac_includes_default
16052 struct { char filler; long field; } pgac_struct;
16053 #ifdef F77_DUMMY_MAIN
16054 # ifdef __cplusplus
16057 int F77_DUMMY_MAIN() { return 1; }
16062 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16069 rm -f conftest.$ac_objext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -s conftest.$ac_objext'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16083 echo "$as_me: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16085 ac_lo=`expr '(' $ac_mid ')' + 1`
16087 rm -f conftest.$ac_objext conftest.$ac_ext
16090 ?*) pgac_cv_alignof_long=$ac_lo;;
16091 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16092 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16093 { (exit 1); exit 1; }; } ;;
16096 if test "$cross_compiling" = yes; then
16097 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16098 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16099 { (exit 1); exit 1; }; }
16101 cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16103 #include "confdefs.h"
16104 $ac_includes_default
16105 struct { char filler; long field; } pgac_struct;
16106 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16107 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16109 #include <stdlib.h>
16110 #ifdef F77_DUMMY_MAIN
16111 # ifdef __cplusplus
16114 int F77_DUMMY_MAIN() { return 1; }
16120 FILE *f = fopen ("conftest.val", "w");
16123 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16125 long i = longval ();
16126 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16128 fprintf (f, "%ld\n", i);
16132 unsigned long i = ulongval ();
16133 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16135 fprintf (f, "%lu\n", i);
16137 exit (ferror (f) || fclose (f) != 0);
16143 rm -f conftest$ac_exeext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145 (eval $ac_link) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 pgac_cv_alignof_long=`cat conftest.val`
16156 echo "$as_me: program exited with status $ac_status" >&5
16157 echo "$as_me: failed program was:" >&5
16158 cat conftest.$ac_ext >&5
16159 ( exit $ac_status )
16160 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16161 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16162 { (exit 1); exit 1; }; }
16164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16169 pgac_cv_alignof_long=0
16172 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
16173 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
16174 cat >>confdefs.h <<_ACEOF
16175 #define ALIGNOF_LONG $pgac_cv_alignof_long
16179 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16180 echo "$as_me:$LINENO: checking for long long int" >&5
16181 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16182 if test "${ac_cv_type_long_long_int+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 cat >conftest.$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16188 $ac_includes_default
16189 #ifdef F77_DUMMY_MAIN
16190 # ifdef __cplusplus
16193 int F77_DUMMY_MAIN() { return 1; }
16198 if ((long long int *) 0)
16200 if (sizeof (long long int))
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208 (eval $ac_compile) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -s conftest.$ac_objext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_cv_type_long_long_int=yes
16220 echo "$as_me: failed program was:" >&5
16221 cat conftest.$ac_ext >&5
16222 ac_cv_type_long_long_int=no
16224 rm -f conftest.$ac_objext conftest.$ac_ext
16226 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16227 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16229 echo "$as_me:$LINENO: checking alignment of long long int" >&5
16230 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
16231 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 if test "$ac_cv_type_long_long_int" = yes; then
16235 if test "$cross_compiling" = yes; then
16236 # Depending upon the size, compute the lo and hi bounds.
16237 cat >conftest.$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16239 #include "confdefs.h"
16240 $ac_includes_default
16241 struct { char filler; long long int field; } pgac_struct;
16242 #ifdef F77_DUMMY_MAIN
16243 # ifdef __cplusplus
16246 int F77_DUMMY_MAIN() { return 1; }
16251 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16258 rm -f conftest.$ac_objext
16259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260 (eval $ac_compile) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -s conftest.$ac_objext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16272 cat >conftest.$ac_ext <<_ACEOF
16273 #line $LINENO "configure"
16274 #include "confdefs.h"
16275 $ac_includes_default
16276 struct { char filler; long long int field; } pgac_struct;
16277 #ifdef F77_DUMMY_MAIN
16278 # ifdef __cplusplus
16281 int F77_DUMMY_MAIN() { return 1; }
16286 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16293 rm -f conftest.$ac_objext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295 (eval $ac_compile) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -s conftest.$ac_objext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_hi=$ac_mid; break
16307 echo "$as_me: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16309 ac_lo=`expr $ac_mid + 1`
16310 if test $ac_lo -le $ac_mid; then
16314 ac_mid=`expr 2 '*' $ac_mid + 1`
16316 rm -f conftest.$ac_objext conftest.$ac_ext
16319 echo "$as_me: failed program was:" >&5
16320 cat conftest.$ac_ext >&5
16321 cat >conftest.$ac_ext <<_ACEOF
16322 #line $LINENO "configure"
16323 #include "confdefs.h"
16324 $ac_includes_default
16325 struct { char filler; long long int field; } pgac_struct;
16326 #ifdef F77_DUMMY_MAIN
16327 # ifdef __cplusplus
16330 int F77_DUMMY_MAIN() { return 1; }
16335 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16342 rm -f conftest.$ac_objext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -s conftest.$ac_objext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16356 cat >conftest.$ac_ext <<_ACEOF
16357 #line $LINENO "configure"
16358 #include "confdefs.h"
16359 $ac_includes_default
16360 struct { char filler; long long int field; } pgac_struct;
16361 #ifdef F77_DUMMY_MAIN
16362 # ifdef __cplusplus
16365 int F77_DUMMY_MAIN() { return 1; }
16370 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16377 rm -f conftest.$ac_objext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16379 (eval $ac_compile) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 { ac_try='test -s conftest.$ac_objext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_lo=$ac_mid; break
16391 echo "$as_me: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16393 ac_hi=`expr '(' $ac_mid ')' - 1`
16394 if test $ac_mid -le $ac_hi; then
16398 ac_mid=`expr 2 '*' $ac_mid`
16400 rm -f conftest.$ac_objext conftest.$ac_ext
16403 echo "$as_me: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16407 rm -f conftest.$ac_objext conftest.$ac_ext
16409 rm -f conftest.$ac_objext conftest.$ac_ext
16410 # Binary search between lo and hi bounds.
16411 while test "x$ac_lo" != "x$ac_hi"; do
16412 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16413 cat >conftest.$ac_ext <<_ACEOF
16414 #line $LINENO "configure"
16415 #include "confdefs.h"
16416 $ac_includes_default
16417 struct { char filler; long long int field; } pgac_struct;
16418 #ifdef F77_DUMMY_MAIN
16419 # ifdef __cplusplus
16422 int F77_DUMMY_MAIN() { return 1; }
16427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16434 rm -f conftest.$ac_objext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16436 (eval $ac_compile) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -s conftest.$ac_objext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16448 echo "$as_me: failed program was:" >&5
16449 cat conftest.$ac_ext >&5
16450 ac_lo=`expr '(' $ac_mid ')' + 1`
16452 rm -f conftest.$ac_objext conftest.$ac_ext
16455 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16456 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16457 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16458 { (exit 1); exit 1; }; } ;;
16461 if test "$cross_compiling" = yes; then
16462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16463 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16464 { (exit 1); exit 1; }; }
16466 cat >conftest.$ac_ext <<_ACEOF
16467 #line $LINENO "configure"
16468 #include "confdefs.h"
16469 $ac_includes_default
16470 struct { char filler; long long int field; } pgac_struct;
16471 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16472 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16474 #include <stdlib.h>
16475 #ifdef F77_DUMMY_MAIN
16476 # ifdef __cplusplus
16479 int F77_DUMMY_MAIN() { return 1; }
16485 FILE *f = fopen ("conftest.val", "w");
16488 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16490 long i = longval ();
16491 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16493 fprintf (f, "%ld\n", i);
16497 unsigned long i = ulongval ();
16498 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16500 fprintf (f, "%lu\n", i);
16502 exit (ferror (f) || fclose (f) != 0);
16508 rm -f conftest$ac_exeext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510 (eval $ac_link) 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 pgac_cv_alignof_long_long_int=`cat conftest.val`
16521 echo "$as_me: program exited with status $ac_status" >&5
16522 echo "$as_me: failed program was:" >&5
16523 cat conftest.$ac_ext >&5
16524 ( exit $ac_status )
16525 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16526 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16527 { (exit 1); exit 1; }; }
16529 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16534 pgac_cv_alignof_long_long_int=0
16537 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16538 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16539 cat >>confdefs.h <<_ACEOF
16540 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16545 echo "$as_me:$LINENO: checking for double" >&5
16546 echo $ECHO_N "checking for double... $ECHO_C" >&6
16547 if test "${ac_cv_type_double+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 #include "confdefs.h"
16553 $ac_includes_default
16554 #ifdef F77_DUMMY_MAIN
16555 # ifdef __cplusplus
16558 int F77_DUMMY_MAIN() { return 1; }
16565 if (sizeof (double))
16571 rm -f conftest.$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573 (eval $ac_compile) 2>&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -s conftest.$ac_objext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_cv_type_double=yes
16585 echo "$as_me: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 ac_cv_type_double=no
16589 rm -f conftest.$ac_objext conftest.$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16592 echo "${ECHO_T}$ac_cv_type_double" >&6
16594 echo "$as_me:$LINENO: checking alignment of double" >&5
16595 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16596 if test "${pgac_cv_alignof_double+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 if test "$ac_cv_type_double" = yes; then
16600 if test "$cross_compiling" = yes; then
16601 # Depending upon the size, compute the lo and hi bounds.
16602 cat >conftest.$ac_ext <<_ACEOF
16603 #line $LINENO "configure"
16604 #include "confdefs.h"
16605 $ac_includes_default
16606 struct { char filler; double field; } pgac_struct;
16607 #ifdef F77_DUMMY_MAIN
16608 # ifdef __cplusplus
16611 int F77_DUMMY_MAIN() { return 1; }
16616 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16623 rm -f conftest.$ac_objext
16624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16625 (eval $ac_compile) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -s conftest.$ac_objext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16637 cat >conftest.$ac_ext <<_ACEOF
16638 #line $LINENO "configure"
16639 #include "confdefs.h"
16640 $ac_includes_default
16641 struct { char filler; double field; } pgac_struct;
16642 #ifdef F77_DUMMY_MAIN
16643 # ifdef __cplusplus
16646 int F77_DUMMY_MAIN() { return 1; }
16651 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -s conftest.$ac_objext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_hi=$ac_mid; break
16672 echo "$as_me: failed program was:" >&5
16673 cat conftest.$ac_ext >&5
16674 ac_lo=`expr $ac_mid + 1`
16675 if test $ac_lo -le $ac_mid; then
16679 ac_mid=`expr 2 '*' $ac_mid + 1`
16681 rm -f conftest.$ac_objext conftest.$ac_ext
16684 echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 cat >conftest.$ac_ext <<_ACEOF
16687 #line $LINENO "configure"
16688 #include "confdefs.h"
16689 $ac_includes_default
16690 struct { char filler; double field; } pgac_struct;
16691 #ifdef F77_DUMMY_MAIN
16692 # ifdef __cplusplus
16695 int F77_DUMMY_MAIN() { return 1; }
16700 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16707 rm -f conftest.$ac_objext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709 (eval $ac_compile) 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16721 cat >conftest.$ac_ext <<_ACEOF
16722 #line $LINENO "configure"
16723 #include "confdefs.h"
16724 $ac_includes_default
16725 struct { char filler; double field; } pgac_struct;
16726 #ifdef F77_DUMMY_MAIN
16727 # ifdef __cplusplus
16730 int F77_DUMMY_MAIN() { return 1; }
16735 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16742 rm -f conftest.$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_lo=$ac_mid; break
16756 echo "$as_me: failed program was:" >&5
16757 cat conftest.$ac_ext >&5
16758 ac_hi=`expr '(' $ac_mid ')' - 1`
16759 if test $ac_mid -le $ac_hi; then
16763 ac_mid=`expr 2 '*' $ac_mid`
16765 rm -f conftest.$ac_objext conftest.$ac_ext
16768 echo "$as_me: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16772 rm -f conftest.$ac_objext conftest.$ac_ext
16774 rm -f conftest.$ac_objext conftest.$ac_ext
16775 # Binary search between lo and hi bounds.
16776 while test "x$ac_lo" != "x$ac_hi"; do
16777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16778 cat >conftest.$ac_ext <<_ACEOF
16779 #line $LINENO "configure"
16780 #include "confdefs.h"
16781 $ac_includes_default
16782 struct { char filler; double field; } pgac_struct;
16783 #ifdef F77_DUMMY_MAIN
16784 # ifdef __cplusplus
16787 int F77_DUMMY_MAIN() { return 1; }
16792 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16799 rm -f conftest.$ac_objext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16801 (eval $ac_compile) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -s conftest.$ac_objext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16813 echo "$as_me: failed program was:" >&5
16814 cat conftest.$ac_ext >&5
16815 ac_lo=`expr '(' $ac_mid ')' + 1`
16817 rm -f conftest.$ac_objext conftest.$ac_ext
16820 ?*) pgac_cv_alignof_double=$ac_lo;;
16821 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16822 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16823 { (exit 1); exit 1; }; } ;;
16826 if test "$cross_compiling" = yes; then
16827 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16828 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16829 { (exit 1); exit 1; }; }
16831 cat >conftest.$ac_ext <<_ACEOF
16832 #line $LINENO "configure"
16833 #include "confdefs.h"
16834 $ac_includes_default
16835 struct { char filler; double field; } pgac_struct;
16836 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16837 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16839 #include <stdlib.h>
16840 #ifdef F77_DUMMY_MAIN
16841 # ifdef __cplusplus
16844 int F77_DUMMY_MAIN() { return 1; }
16850 FILE *f = fopen ("conftest.val", "w");
16853 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16855 long i = longval ();
16856 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16858 fprintf (f, "%ld\n", i);
16862 unsigned long i = ulongval ();
16863 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16865 fprintf (f, "%lu\n", i);
16867 exit (ferror (f) || fclose (f) != 0);
16873 rm -f conftest$ac_exeext
16874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16875 (eval $ac_link) 2>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 pgac_cv_alignof_double=`cat conftest.val`
16886 echo "$as_me: program exited with status $ac_status" >&5
16887 echo "$as_me: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 ( exit $ac_status )
16890 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16891 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16892 { (exit 1); exit 1; }; }
16894 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16899 pgac_cv_alignof_double=0
16902 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16903 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16904 cat >>confdefs.h <<_ACEOF
16905 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16910 # Compute maximum alignment of any basic type.
16911 # We assume long's alignment is at least as strong as char, short, or int;
16912 # but we must check long long (if it exists) and double.
16914 MAX_ALIGNOF=$pgac_cv_alignof_long
16915 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16916 MAX_ALIGNOF=$pgac_cv_alignof_double
16918 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16919 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16922 cat >>confdefs.h <<_ACEOF
16923 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16928 # Some platforms predefine the types int8, int16, etc. Only check
16929 # a (hopefully) representative subset.
16930 echo "$as_me:$LINENO: checking for int8" >&5
16931 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16932 if test "${ac_cv_type_int8+set}" = set; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 cat >conftest.$ac_ext <<_ACEOF
16936 #line $LINENO "configure"
16937 #include "confdefs.h"
16939 #ifdef HAVE_SUPPORTDEFS_H
16940 #include <SupportDefs.h>
16943 #ifdef F77_DUMMY_MAIN
16944 # ifdef __cplusplus
16947 int F77_DUMMY_MAIN() { return 1; }
16960 rm -f conftest.$ac_objext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962 (eval $ac_compile) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -s conftest.$ac_objext'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16972 ac_cv_type_int8=yes
16974 echo "$as_me: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16978 rm -f conftest.$ac_objext conftest.$ac_ext
16980 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16981 echo "${ECHO_T}$ac_cv_type_int8" >&6
16982 if test $ac_cv_type_int8 = yes; then
16984 cat >>confdefs.h <<_ACEOF
16985 #define HAVE_INT8 1
16990 echo "$as_me:$LINENO: checking for uint8" >&5
16991 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16992 if test "${ac_cv_type_uint8+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 cat >conftest.$ac_ext <<_ACEOF
16996 #line $LINENO "configure"
16997 #include "confdefs.h"
16999 #ifdef HAVE_SUPPORTDEFS_H
17000 #include <SupportDefs.h>
17003 #ifdef F77_DUMMY_MAIN
17004 # ifdef __cplusplus
17007 int F77_DUMMY_MAIN() { return 1; }
17014 if (sizeof (uint8))
17020 rm -f conftest.$ac_objext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17022 (eval $ac_compile) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_type_uint8=yes
17034 echo "$as_me: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17036 ac_cv_type_uint8=no
17038 rm -f conftest.$ac_objext conftest.$ac_ext
17040 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
17041 echo "${ECHO_T}$ac_cv_type_uint8" >&6
17042 if test $ac_cv_type_uint8 = yes; then
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_UINT8 1
17050 echo "$as_me:$LINENO: checking for int64" >&5
17051 echo $ECHO_N "checking for int64... $ECHO_C" >&6
17052 if test "${ac_cv_type_int64+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 cat >conftest.$ac_ext <<_ACEOF
17056 #line $LINENO "configure"
17057 #include "confdefs.h"
17059 #ifdef HAVE_SUPPORTDEFS_H
17060 #include <SupportDefs.h>
17063 #ifdef F77_DUMMY_MAIN
17064 # ifdef __cplusplus
17067 int F77_DUMMY_MAIN() { return 1; }
17074 if (sizeof (int64))
17080 rm -f conftest.$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -s conftest.$ac_objext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_type_int64=yes
17094 echo "$as_me: failed program was:" >&5
17095 cat conftest.$ac_ext >&5
17096 ac_cv_type_int64=no
17098 rm -f conftest.$ac_objext conftest.$ac_ext
17100 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
17101 echo "${ECHO_T}$ac_cv_type_int64" >&6
17102 if test $ac_cv_type_int64 = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105 #define HAVE_INT64 1
17110 echo "$as_me:$LINENO: checking for uint64" >&5
17111 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
17112 if test "${ac_cv_type_uint64+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 cat >conftest.$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17117 #include "confdefs.h"
17119 #ifdef HAVE_SUPPORTDEFS_H
17120 #include <SupportDefs.h>
17123 #ifdef F77_DUMMY_MAIN
17124 # ifdef __cplusplus
17127 int F77_DUMMY_MAIN() { return 1; }
17134 if (sizeof (uint64))
17140 rm -f conftest.$ac_objext
17141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17142 (eval $ac_compile) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -s conftest.$ac_objext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_cv_type_uint64=yes
17154 echo "$as_me: failed program was:" >&5
17155 cat conftest.$ac_ext >&5
17156 ac_cv_type_uint64=no
17158 rm -f conftest.$ac_objext conftest.$ac_ext
17160 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
17161 echo "${ECHO_T}$ac_cv_type_uint64" >&6
17162 if test $ac_cv_type_uint64 = yes; then
17164 cat >>confdefs.h <<_ACEOF
17165 #define HAVE_UINT64 1
17172 # We also check for sig_atomic_t, which *should* be defined per ANSI
17173 # C, but is missing on some old platforms.
17174 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
17175 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
17176 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 cat >conftest.$ac_ext <<_ACEOF
17180 #line $LINENO "configure"
17181 #include "confdefs.h"
17182 #include <signal.h>
17184 #ifdef F77_DUMMY_MAIN
17185 # ifdef __cplusplus
17188 int F77_DUMMY_MAIN() { return 1; }
17193 if ((sig_atomic_t *) 0)
17195 if (sizeof (sig_atomic_t))
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -s conftest.$ac_objext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_type_sig_atomic_t=yes
17215 echo "$as_me: failed program was:" >&5
17216 cat conftest.$ac_ext >&5
17217 ac_cv_type_sig_atomic_t=no
17219 rm -f conftest.$ac_objext conftest.$ac_ext
17221 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
17222 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
17223 if test $ac_cv_type_sig_atomic_t = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_SIG_ATOMIC_T 1
17234 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
17235 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
17236 if test "${pgac_cv_func_posix_signals+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 cat >conftest.$ac_ext <<_ACEOF
17240 #line $LINENO "configure"
17241 #include "confdefs.h"
17242 #include <signal.h>
17244 #ifdef F77_DUMMY_MAIN
17245 # ifdef __cplusplus
17248 int F77_DUMMY_MAIN() { return 1; }
17253 struct sigaction act, oact;
17254 sigemptyset(&act.sa_mask);
17255 act.sa_flags = SA_RESTART;
17256 sigaction(0, &act, &oact);
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try='test -s conftest$ac_exeext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 pgac_cv_func_posix_signals=yes
17275 echo "$as_me: failed program was:" >&5
17276 cat conftest.$ac_ext >&5
17277 pgac_cv_func_posix_signals=no
17279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17281 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
17282 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
17283 if test x"$pgac_cv_func_posix_signals" = xyes ; then
17285 cat >>confdefs.h <<\_ACEOF
17286 #define HAVE_POSIX_SIGNALS
17290 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
17292 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
17293 { { echo "$as_me:$LINENO: error:
17294 *** Thread-safety requires POSIX signals, which are not supported by your
17295 *** operating system.
17297 echo "$as_me: error:
17298 *** Thread-safety requires POSIX signals, which are not supported by your
17299 *** operating system.
17301 { (exit 1); exit 1; }; }
17304 if test $ac_cv_func_fseeko = yes; then
17305 # Check whether --enable-largefile or --disable-largefile was given.
17306 if test "${enable_largefile+set}" = set; then
17307 enableval="$enable_largefile"
17310 if test "$enable_largefile" != no; then
17312 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17313 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
17314 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 ac_cv_sys_largefile_CC=no
17318 if test "$GCC" != yes; then
17321 # IRIX 6.2 and later do not support large files by default,
17322 # so use the C compiler's -n32 option if that helps.
17323 cat >conftest.$ac_ext <<_ACEOF
17324 #line $LINENO "configure"
17325 #include "confdefs.h"
17326 #include <sys/types.h>
17327 /* Check that off_t can represent 2**63 - 1 correctly.
17328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17329 since some C++ compilers masquerading as C compilers
17330 incorrectly reject 9223372036854775807. */
17331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17333 && LARGE_OFF_T % 2147483647 == 1)
17335 #ifdef F77_DUMMY_MAIN
17336 # ifdef __cplusplus
17339 int F77_DUMMY_MAIN() { return 1; }
17349 rm -f conftest.$ac_objext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17351 (eval $ac_compile) 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -s conftest.$ac_objext'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17363 echo "$as_me: failed program was:" >&5
17364 cat conftest.$ac_ext >&5
17366 rm -f conftest.$ac_objext
17368 rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_cv_sys_largefile_CC=' -n32'; break
17382 echo "$as_me: failed program was:" >&5
17383 cat conftest.$ac_ext >&5
17385 rm -f conftest.$ac_objext
17389 rm -f conftest.$ac_ext
17392 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17393 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
17394 if test "$ac_cv_sys_largefile_CC" != no; then
17395 CC=$CC$ac_cv_sys_largefile_CC
17398 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17399 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17400 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 ac_cv_sys_file_offset_bits=no
17405 cat >conftest.$ac_ext <<_ACEOF
17406 #line $LINENO "configure"
17407 #include "confdefs.h"
17408 #include <sys/types.h>
17409 /* Check that off_t can represent 2**63 - 1 correctly.
17410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17411 since some C++ compilers masquerading as C compilers
17412 incorrectly reject 9223372036854775807. */
17413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17415 && LARGE_OFF_T % 2147483647 == 1)
17417 #ifdef F77_DUMMY_MAIN
17418 # ifdef __cplusplus
17421 int F77_DUMMY_MAIN() { return 1; }
17431 rm -f conftest.$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17445 echo "$as_me: failed program was:" >&5
17446 cat conftest.$ac_ext >&5
17448 rm -f conftest.$ac_objext conftest.$ac_ext
17449 cat >conftest.$ac_ext <<_ACEOF
17450 #line $LINENO "configure"
17451 #include "confdefs.h"
17452 #define _FILE_OFFSET_BITS 64
17453 #include <sys/types.h>
17454 /* Check that off_t can represent 2**63 - 1 correctly.
17455 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17456 since some C++ compilers masquerading as C compilers
17457 incorrectly reject 9223372036854775807. */
17458 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17459 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17460 && LARGE_OFF_T % 2147483647 == 1)
17462 #ifdef F77_DUMMY_MAIN
17463 # ifdef __cplusplus
17466 int F77_DUMMY_MAIN() { return 1; }
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478 (eval $ac_compile) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_cv_sys_file_offset_bits=64; break
17490 echo "$as_me: failed program was:" >&5
17491 cat conftest.$ac_ext >&5
17493 rm -f conftest.$ac_objext conftest.$ac_ext
17497 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17498 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17499 if test "$ac_cv_sys_file_offset_bits" != no; then
17501 cat >>confdefs.h <<_ACEOF
17502 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17507 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17508 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17509 if test "${ac_cv_sys_large_files+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 ac_cv_sys_large_files=no
17514 cat >conftest.$ac_ext <<_ACEOF
17515 #line $LINENO "configure"
17516 #include "confdefs.h"
17517 #include <sys/types.h>
17518 /* Check that off_t can represent 2**63 - 1 correctly.
17519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17520 since some C++ compilers masquerading as C compilers
17521 incorrectly reject 9223372036854775807. */
17522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17524 && LARGE_OFF_T % 2147483647 == 1)
17526 #ifdef F77_DUMMY_MAIN
17527 # ifdef __cplusplus
17530 int F77_DUMMY_MAIN() { return 1; }
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542 (eval $ac_compile) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -s conftest.$ac_objext'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17554 echo "$as_me: failed program was:" >&5
17555 cat conftest.$ac_ext >&5
17557 rm -f conftest.$ac_objext conftest.$ac_ext
17558 cat >conftest.$ac_ext <<_ACEOF
17559 #line $LINENO "configure"
17560 #include "confdefs.h"
17561 #define _LARGE_FILES 1
17562 #include <sys/types.h>
17563 /* Check that off_t can represent 2**63 - 1 correctly.
17564 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17565 since some C++ compilers masquerading as C compilers
17566 incorrectly reject 9223372036854775807. */
17567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17569 && LARGE_OFF_T % 2147483647 == 1)
17571 #ifdef F77_DUMMY_MAIN
17572 # ifdef __cplusplus
17575 int F77_DUMMY_MAIN() { return 1; }
17585 rm -f conftest.$ac_objext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587 (eval $ac_compile) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -s conftest.$ac_objext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_sys_large_files=1; break
17599 echo "$as_me: failed program was:" >&5
17600 cat conftest.$ac_ext >&5
17602 rm -f conftest.$ac_objext conftest.$ac_ext
17606 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17607 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17608 if test "$ac_cv_sys_large_files" != no; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define _LARGE_FILES $ac_cv_sys_large_files
17620 # SunOS doesn't handle negative byte comparisons properly with +/- return
17621 echo "$as_me:$LINENO: checking for working memcmp" >&5
17622 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
17623 if test "${ac_cv_func_memcmp_working+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 if test "$cross_compiling" = yes; then
17627 ac_cv_func_memcmp_working=no
17629 cat >conftest.$ac_ext <<_ACEOF
17630 #line $LINENO "configure"
17631 #include "confdefs.h"
17633 #ifdef F77_DUMMY_MAIN
17634 # ifdef __cplusplus
17637 int F77_DUMMY_MAIN() { return 1; }
17643 /* Some versions of memcmp are not 8-bit clean. */
17644 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
17645 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17648 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17649 or more and with at least one buffer not starting on a 4-byte boundary.
17650 William Lewis provided this test program. */
17655 for (i = 0; i < 4; i++)
17659 strcpy (a, "--------01111111");
17660 strcpy (b, "--------10000000");
17661 if (memcmp (a, b, 16) >= 0)
17671 rm -f conftest$ac_exeext
17672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17673 (eval $ac_link) 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_func_memcmp_working=yes
17684 echo "$as_me: program exited with status $ac_status" >&5
17685 echo "$as_me: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 ( exit $ac_status )
17688 ac_cv_func_memcmp_working=no
17690 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17693 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
17694 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
17695 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17699 # Select semaphore implementation type.
17700 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17702 cat >>confdefs.h <<\_ACEOF
17703 #define USE_NAMED_POSIX_SEMAPHORES 1
17706 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17708 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17710 cat >>confdefs.h <<\_ACEOF
17711 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17714 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17717 cat >>confdefs.h <<\_ACEOF
17718 #define USE_SYSV_SEMAPHORES 1
17721 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17726 # Select shared-memory implementation type.
17728 cat >>confdefs.h <<\_ACEOF
17729 #define USE_SYSV_SHARED_MEMORY 1
17732 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17735 if test "$enable_nls" = yes ; then
17737 echo "$as_me:$LINENO: checking for library containing gettext" >&5
17738 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17739 if test "${ac_cv_search_gettext+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 ac_func_search_save_LIBS=$LIBS
17743 ac_cv_search_gettext=no
17744 cat >conftest.$ac_ext <<_ACEOF
17745 #line $LINENO "configure"
17746 #include "confdefs.h"
17748 /* Override any gcc2 internal prototype to avoid an error. */
17752 /* We use char because int might match the return type of a gcc2
17753 builtin and then its argument prototype would still apply. */
17755 #ifdef F77_DUMMY_MAIN
17756 # ifdef __cplusplus
17759 int F77_DUMMY_MAIN() { return 1; }
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -s conftest$ac_exeext'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_cv_search_gettext="none required"
17783 echo "$as_me: failed program was:" >&5
17784 cat conftest.$ac_ext >&5
17786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17787 if test "$ac_cv_search_gettext" = no; then
17788 for ac_lib in intl; do
17789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17790 cat >conftest.$ac_ext <<_ACEOF
17791 #line $LINENO "configure"
17792 #include "confdefs.h"
17794 /* Override any gcc2 internal prototype to avoid an error. */
17798 /* We use char because int might match the return type of a gcc2
17799 builtin and then its argument prototype would still apply. */
17801 #ifdef F77_DUMMY_MAIN
17802 # ifdef __cplusplus
17805 int F77_DUMMY_MAIN() { return 1; }
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17817 (eval $ac_link) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -s conftest$ac_exeext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_cv_search_gettext="-l$ac_lib"
17830 echo "$as_me: failed program was:" >&5
17831 cat conftest.$ac_ext >&5
17833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17836 LIBS=$ac_func_search_save_LIBS
17838 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17839 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17840 if test "$ac_cv_search_gettext" != no; then
17841 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17844 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17845 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17846 { (exit 1); exit 1; }; }
17849 if test "${ac_cv_header_libintl_h+set}" = set; then
17850 echo "$as_me:$LINENO: checking for libintl.h" >&5
17851 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17852 if test "${ac_cv_header_libintl_h+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17856 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17858 # Is the header compilable?
17859 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17860 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17861 cat >conftest.$ac_ext <<_ACEOF
17862 #line $LINENO "configure"
17863 #include "confdefs.h"
17864 $ac_includes_default
17865 #include <libintl.h>
17867 rm -f conftest.$ac_objext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17869 (eval $ac_compile) 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
17873 { ac_try='test -s conftest.$ac_objext'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_header_compiler=yes
17881 echo "$as_me: failed program was:" >&5
17882 cat conftest.$ac_ext >&5
17883 ac_header_compiler=no
17885 rm -f conftest.$ac_objext conftest.$ac_ext
17886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17887 echo "${ECHO_T}$ac_header_compiler" >&6
17889 # Is the header present?
17890 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17891 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17892 cat >conftest.$ac_ext <<_ACEOF
17893 #line $LINENO "configure"
17894 #include "confdefs.h"
17895 #include <libintl.h>
17897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17900 egrep -v '^ *\+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } >/dev/null; then
17905 if test -s conftest.err; then
17906 ac_cpp_err=$ac_c_preproc_warn_flag
17913 if test -z "$ac_cpp_err"; then
17914 ac_header_preproc=yes
17916 echo "$as_me: failed program was:" >&5
17917 cat conftest.$ac_ext >&5
17918 ac_header_preproc=no
17920 rm -f conftest.err conftest.$ac_ext
17921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17922 echo "${ECHO_T}$ac_header_preproc" >&6
17924 # So? What about this header?
17925 case $ac_header_compiler:$ac_header_preproc in
17927 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17928 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17932 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17933 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17935 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17939 echo "$as_me:$LINENO: checking for libintl.h" >&5
17940 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17941 if test "${ac_cv_header_libintl_h+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 ac_cv_header_libintl_h=$ac_header_preproc
17946 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17947 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17950 if test $ac_cv_header_libintl_h = yes; then
17953 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17954 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17955 { (exit 1); exit 1; }; }
17959 for ac_prog in msgfmt
17961 # Extract the first word of "$ac_prog", so it can be a program name with args.
17962 set dummy $ac_prog; ac_word=$2
17963 echo "$as_me:$LINENO: checking for $ac_word" >&5
17964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17965 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 if test -n "$MSGFMT"; then
17969 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $PATH
17975 test -z "$as_dir" && as_dir=.
17976 for ac_exec_ext in '' $ac_executable_extensions; do
17977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17978 ac_cv_prog_MSGFMT="$ac_prog"
17979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17987 MSGFMT=$ac_cv_prog_MSGFMT
17988 if test -n "$MSGFMT"; then
17989 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17990 echo "${ECHO_T}$MSGFMT" >&6
17992 echo "$as_me:$LINENO: result: no" >&5
17993 echo "${ECHO_T}no" >&6
17996 test -n "$MSGFMT" && break
17999 if test -z "$MSGFMT"; then
18000 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
18001 echo "$as_me: error: msgfmt is required for NLS" >&2;}
18002 { (exit 1); exit 1; }; }
18004 for ac_prog in msgmerge
18006 # Extract the first word of "$ac_prog", so it can be a program name with args.
18007 set dummy $ac_prog; ac_word=$2
18008 echo "$as_me:$LINENO: checking for $ac_word" >&5
18009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18010 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 if test -n "$MSGMERGE"; then
18014 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
18016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18017 for as_dir in $PATH
18020 test -z "$as_dir" && as_dir=.
18021 for ac_exec_ext in '' $ac_executable_extensions; do
18022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18023 ac_cv_prog_MSGMERGE="$ac_prog"
18024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18032 MSGMERGE=$ac_cv_prog_MSGMERGE
18033 if test -n "$MSGMERGE"; then
18034 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
18035 echo "${ECHO_T}$MSGMERGE" >&6
18037 echo "$as_me:$LINENO: result: no" >&5
18038 echo "${ECHO_T}no" >&6
18041 test -n "$MSGMERGE" && break
18044 for ac_prog in xgettext
18046 # Extract the first word of "$ac_prog", so it can be a program name with args.
18047 set dummy $ac_prog; ac_word=$2
18048 echo "$as_me:$LINENO: checking for $ac_word" >&5
18049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18050 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 if test -n "$XGETTEXT"; then
18054 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
18056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18057 for as_dir in $PATH
18060 test -z "$as_dir" && as_dir=.
18061 for ac_exec_ext in '' $ac_executable_extensions; do
18062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18063 ac_cv_prog_XGETTEXT="$ac_prog"
18064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18072 XGETTEXT=$ac_cv_prog_XGETTEXT
18073 if test -n "$XGETTEXT"; then
18074 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
18075 echo "${ECHO_T}$XGETTEXT" >&6
18077 echo "$as_me:$LINENO: result: no" >&5
18078 echo "${ECHO_T}no" >&6
18081 test -n "$XGETTEXT" && break
18085 # Note: share/locale is always the default, independent of $datadir
18086 localedir='${prefix}/share/locale'
18087 if test x"$prefix" = x"NONE"; then
18088 exp_localedir="$ac_default_prefix/share/locale"
18090 exp_localedir="$prefix/share/locale"
18095 cat >>confdefs.h <<_ACEOF
18096 #define LOCALEDIR "$exp_localedir"
18102 # Check for Tcl configuration script tclConfig.sh
18103 if test "$with_tcl" = yes; then
18104 for ac_prog in tclsh tcl
18106 # Extract the first word of "$ac_prog", so it can be a program name with args.
18107 set dummy $ac_prog; ac_word=$2
18108 echo "$as_me:$LINENO: checking for $ac_word" >&5
18109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18110 if test "${ac_cv_path_TCLSH+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18122 test -z "$as_dir" && as_dir=.
18123 for ac_exec_ext in '' $ac_executable_extensions; do
18124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
18126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18135 TCLSH=$ac_cv_path_TCLSH
18137 if test -n "$TCLSH"; then
18138 echo "$as_me:$LINENO: result: $TCLSH" >&5
18139 echo "${ECHO_T}$TCLSH" >&6
18141 echo "$as_me:$LINENO: result: no" >&5
18142 echo "${ECHO_T}no" >&6
18145 test -n "$TCLSH" && break
18148 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
18149 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
18150 # Let user override test
18151 if test -z "$TCL_CONFIG_SH"; then
18152 pgac_test_dirs="$with_tclconfig"
18154 set X $pgac_test_dirs; shift
18155 if test $# -eq 0; then
18156 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
18157 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
18158 { (exit 1); exit 1; }; }
18159 set X `echo 'puts $auto_path' | $TCLSH`; shift
18163 if test -r "$pgac_dir/tclConfig.sh"; then
18164 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
18170 if test -z "$TCL_CONFIG_SH"; then
18171 echo "$as_me:$LINENO: result: no" >&5
18172 echo "${ECHO_T}no" >&6
18173 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
18174 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
18175 { (exit 1); exit 1; }; }
18177 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
18178 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
18184 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
18185 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
18186 eval TCL_LIBS=\"$TCL_LIBS\"
18187 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
18188 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
18190 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18191 ac_save_CPPFLAGS=$CPPFLAGS
18192 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
18193 if test "${ac_cv_header_tcl_h+set}" = set; then
18194 echo "$as_me:$LINENO: checking for tcl.h" >&5
18195 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18196 if test "${ac_cv_header_tcl_h+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18200 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18202 # Is the header compilable?
18203 echo "$as_me:$LINENO: checking tcl.h usability" >&5
18204 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
18205 cat >conftest.$ac_ext <<_ACEOF
18206 #line $LINENO "configure"
18207 #include "confdefs.h"
18208 $ac_includes_default
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_header_compiler=yes
18225 echo "$as_me: failed program was:" >&5
18226 cat conftest.$ac_ext >&5
18227 ac_header_compiler=no
18229 rm -f conftest.$ac_objext conftest.$ac_ext
18230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18231 echo "${ECHO_T}$ac_header_compiler" >&6
18233 # Is the header present?
18234 echo "$as_me:$LINENO: checking tcl.h presence" >&5
18235 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
18236 cat >conftest.$ac_ext <<_ACEOF
18237 #line $LINENO "configure"
18238 #include "confdefs.h"
18241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18244 egrep -v '^ *\+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } >/dev/null; then
18249 if test -s conftest.err; then
18250 ac_cpp_err=$ac_c_preproc_warn_flag
18257 if test -z "$ac_cpp_err"; then
18258 ac_header_preproc=yes
18260 echo "$as_me: failed program was:" >&5
18261 cat conftest.$ac_ext >&5
18262 ac_header_preproc=no
18264 rm -f conftest.err conftest.$ac_ext
18265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18266 echo "${ECHO_T}$ac_header_preproc" >&6
18268 # So? What about this header?
18269 case $ac_header_compiler:$ac_header_preproc in
18271 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18272 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18274 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18276 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
18277 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
18279 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18281 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18283 echo "$as_me:$LINENO: checking for tcl.h" >&5
18284 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18285 if test "${ac_cv_header_tcl_h+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 ac_cv_header_tcl_h=$ac_header_preproc
18290 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18291 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18294 if test $ac_cv_header_tcl_h = yes; then
18297 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
18298 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
18299 { (exit 1); exit 1; }; }
18303 CPPFLAGS=$ac_save_CPPFLAGS
18307 # Check for DocBook and tools
18309 for ac_prog in onsgmls nsgmls
18311 # Extract the first word of "$ac_prog", so it can be a program name with args.
18312 set dummy $ac_prog; ac_word=$2
18313 echo "$as_me:$LINENO: checking for $ac_word" >&5
18314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18315 if test "${ac_cv_prog_NSGMLS+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 if test -n "$NSGMLS"; then
18319 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
18321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in $PATH
18325 test -z "$as_dir" && as_dir=.
18326 for ac_exec_ext in '' $ac_executable_extensions; do
18327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18328 ac_cv_prog_NSGMLS="$ac_prog"
18329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18337 NSGMLS=$ac_cv_prog_NSGMLS
18338 if test -n "$NSGMLS"; then
18339 echo "$as_me:$LINENO: result: $NSGMLS" >&5
18340 echo "${ECHO_T}$NSGMLS" >&6
18342 echo "$as_me:$LINENO: result: no" >&5
18343 echo "${ECHO_T}no" >&6
18346 test -n "$NSGMLS" && break
18349 for ac_prog in openjade jade
18351 # Extract the first word of "$ac_prog", so it can be a program name with args.
18352 set dummy $ac_prog; ac_word=$2
18353 echo "$as_me:$LINENO: checking for $ac_word" >&5
18354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18355 if test "${ac_cv_prog_JADE+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 if test -n "$JADE"; then
18359 ac_cv_prog_JADE="$JADE" # Let the user override the test.
18361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18362 for as_dir in $PATH
18365 test -z "$as_dir" && as_dir=.
18366 for ac_exec_ext in '' $ac_executable_extensions; do
18367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18368 ac_cv_prog_JADE="$ac_prog"
18369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18377 JADE=$ac_cv_prog_JADE
18378 if test -n "$JADE"; then
18379 echo "$as_me:$LINENO: result: $JADE" >&5
18380 echo "${ECHO_T}$JADE" >&6
18382 echo "$as_me:$LINENO: result: no" >&5
18383 echo "${ECHO_T}no" >&6
18386 test -n "$JADE" && break
18390 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
18391 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
18392 if test "${pgac_cv_check_docbook+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 cat >conftest.sgml <<EOF
18396 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
18398 <title>test</title>
18400 <title>random</title>
18402 <title>testsect</title>
18409 pgac_cv_check_docbook=no
18411 if test -n "$NSGMLS"; then
18412 $NSGMLS -s conftest.sgml 1>&5 2>&1
18413 if test $? -eq 0; then
18414 pgac_cv_check_docbook=yes
18417 rm -f conftest.sgml
18419 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
18420 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
18422 have_docbook=$pgac_cv_check_docbook
18425 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
18426 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
18427 if test "${pgac_cv_path_stylesheets+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 if test -n "$DOCBOOKSTYLE"; then
18431 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
18433 for pgac_prefix in /usr /usr/local /opt; do
18434 for pgac_infix in share lib; do
18435 for pgac_postfix in \
18436 sgml/stylesheets/nwalsh-modular \
18437 sgml/stylesheets/docbook \
18438 sgml/docbook-dsssl \
18439 sgml/docbook/dsssl/modular \
18440 sgml/docbook/stylesheet/dsssl/modular \
18441 sgml/docbook/dsssl-stylesheets
18443 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
18444 if test -r "$pgac_candidate/html/docbook.dsl" \
18445 && test -r "$pgac_candidate/print/docbook.dsl"
18447 pgac_cv_path_stylesheets=$pgac_candidate
18456 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
18458 if test -n "$DOCBOOKSTYLE"; then
18459 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
18460 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
18462 echo "$as_me:$LINENO: result: no" >&5
18463 echo "${ECHO_T}no" >&6
18465 if test -n "$DOCBOOKSTYLE"; then
18466 for ac_prog in collateindex.pl
18468 # Extract the first word of "$ac_prog", so it can be a program name with args.
18469 set dummy $ac_prog; ac_word=$2
18470 echo "$as_me:$LINENO: checking for $ac_word" >&5
18471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18472 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 case $COLLATEINDEX in
18477 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 for as_dir in $DOCBOOKSTYLE/bin $PATH
18484 test -z "$as_dir" && as_dir=.
18485 for ac_exec_ext in '' $ac_executable_extensions; do
18486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18487 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18497 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18499 if test -n "$COLLATEINDEX"; then
18500 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18501 echo "${ECHO_T}$COLLATEINDEX" >&6
18503 echo "$as_me:$LINENO: result: no" >&5
18504 echo "${ECHO_T}no" >&6
18507 test -n "$COLLATEINDEX" && break
18511 for ac_prog in collateindex.pl
18513 # Extract the first word of "$ac_prog", so it can be a program name with args.
18514 set dummy $ac_prog; ac_word=$2
18515 echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18517 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 case $COLLATEINDEX in
18522 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18529 test -z "$as_dir" && as_dir=.
18530 for ac_exec_ext in '' $ac_executable_extensions; do
18531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18542 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18544 if test -n "$COLLATEINDEX"; then
18545 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18546 echo "${ECHO_T}$COLLATEINDEX" >&6
18548 echo "$as_me:$LINENO: result: no" >&5
18549 echo "${ECHO_T}no" >&6
18552 test -n "$COLLATEINDEX" && break
18556 for ac_prog in sgmlspl
18558 # Extract the first word of "$ac_prog", so it can be a program name with args.
18559 set dummy $ac_prog; ac_word=$2
18560 echo "$as_me:$LINENO: checking for $ac_word" >&5
18561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18562 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 if test -n "$SGMLSPL"; then
18566 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
18568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569 for as_dir in $PATH
18572 test -z "$as_dir" && as_dir=.
18573 for ac_exec_ext in '' $ac_executable_extensions; do
18574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18575 ac_cv_prog_SGMLSPL="$ac_prog"
18576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18584 SGMLSPL=$ac_cv_prog_SGMLSPL
18585 if test -n "$SGMLSPL"; then
18586 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
18587 echo "${ECHO_T}$SGMLSPL" >&6
18589 echo "$as_me:$LINENO: result: no" >&5
18590 echo "${ECHO_T}no" >&6
18593 test -n "$SGMLSPL" && break
18599 # We have to run the thread test near the end so we have all our symbols
18600 # defined. Cross compiling throws a warning.
18602 if test "$enable_thread_safety_force" = yes; then
18603 { echo "$as_me:$LINENO: WARNING:
18604 *** Skipping thread test program. --enable-thread-safety-force was used.
18605 *** Run the program in src/tools/thread on the your machine and add
18606 proper locking function calls to your applications to guarantee thread
18609 echo "$as_me: WARNING:
18610 *** Skipping thread test program. --enable-thread-safety-force was used.
18611 *** Run the program in src/tools/thread on the your machine and add
18612 proper locking function calls to your applications to guarantee thread
18615 elif test "$enable_thread_safety" = yes; then
18616 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18617 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18621 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18622 LIBS="$LIBS $PTHREAD_LIBS"
18623 if test "$cross_compiling" = yes; then
18624 echo "$as_me:$LINENO: result: maybe" >&5
18625 echo "${ECHO_T}maybe" >&6
18626 { echo "$as_me:$LINENO: WARNING:
18627 *** Skipping thread test program because of cross-compile build.
18628 *** Run the program in src/tools/thread on the target machine.
18630 echo "$as_me: WARNING:
18631 *** Skipping thread test program because of cross-compile build.
18632 *** Run the program in src/tools/thread on the target machine.
18635 cat >conftest.$ac_ext <<_ACEOF
18636 #line $LINENO "configure"
18637 #include "confdefs.h"
18638 #include "$srcdir/src/tools/thread/thread_test.c"
18640 rm -f conftest$ac_exeext
18641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18642 (eval $ac_link) 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 echo "$as_me:$LINENO: result: yes" >&5
18652 echo "${ECHO_T}yes" >&6
18654 echo "$as_me: program exited with status $ac_status" >&5
18655 echo "$as_me: failed program was:" >&5
18656 cat conftest.$ac_ext >&5
18657 ( exit $ac_status )
18658 echo "$as_me:$LINENO: result: no" >&5
18659 echo "${ECHO_T}no" >&6
18660 { { echo "$as_me:$LINENO: error:
18661 *** Thread test program failed. Your platform is not thread-safe.
18662 *** Check the file 'config.log'for the exact reason.
18664 *** You can use the configure option --enable-thread-safety-force
18665 *** to force threads to be enabled. However, you must then run
18666 *** the program in src/tools/thread and add locking function calls
18667 *** to your applications to guarantee thread safety.
18669 echo "$as_me: error:
18670 *** Thread test program failed. Your platform is not thread-safe.
18671 *** Check the file 'config.log'for the exact reason.
18673 *** You can use the configure option --enable-thread-safety-force
18674 *** to force threads to be enabled. However, you must then run
18675 *** the program in src/tools/thread and add locking function calls
18676 *** to your applications to guarantee thread safety.
18678 { (exit 1); exit 1; }; }
18680 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18686 # prepare build tree if outside source tree
18687 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18688 # Note 2: /bin/pwd might be better than shell's built-in at getting
18689 # a symlink-free name.
18690 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18694 if test "$no_create" != yes; then
18695 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18696 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18697 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18698 || { { echo "$as_me:$LINENO: error: failed" >&5
18699 echo "$as_me: error: failed" >&2;}
18700 { (exit 1); exit 1; }; }
18701 echo "$as_me:$LINENO: result: done" >&5
18702 echo "${ECHO_T}done" >&6
18708 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18711 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
18714 if test "$PORTNAME" = "win32"; then
18715 ac_config_commands="$ac_config_commands check_win32_symlinks"
18719 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18722 cat >confcache <<\_ACEOF
18723 # This file is a shell script that caches the results of configure
18724 # tests run on this system so they can be shared between configure
18725 # scripts and configure runs, see configure's option --config-cache.
18726 # It is not useful on other systems. If it contains results you don't
18727 # want to keep, you may remove or edit it.
18729 # config.status only pays attention to the cache file if you give it
18730 # the --recheck option to rerun configure.
18732 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18734 # following values.
18738 # The following way of writing the cache mishandles newlines in values,
18739 # but we know of no workaround that is simple, portable, and efficient.
18740 # So, don't put newlines in cache variables' values.
18741 # Ultrix sh set writes to stderr and can't be redirected directly,
18742 # and sets the high bit in the cache file unless we assign to the vars.
18745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18747 # `set' does not quote correctly, so add quotes (double-quote
18748 # substitution turns \\\\ into \\, and sed turns \\ into \).
18751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18754 # `set' quotes correctly as required by POSIX, so do not add quotes.
18756 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18765 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18767 if cmp -s $cache_file confcache; then :; else
18768 if test -w $cache_file; then
18769 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18770 cat confcache >$cache_file
18772 echo "not updating unwritable cache $cache_file"
18777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18778 # Let make expand exec_prefix.
18779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18783 # trailing colons and then remove the whole line if VPATH becomes empty
18784 # (actually we leave an empty line to preserve line numbers).
18785 if test "x$srcdir" = x.; then
18786 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18787 s/:*\$(srcdir):*/:/;
18788 s/:*\${srcdir}:*/:/;
18790 s/^\([^=]*=[ ]*\):*/\1/;
18796 DEFS=-DHAVE_CONFIG_H
18799 : ${CONFIG_STATUS=./config.status}
18800 ac_clean_files_save=$ac_clean_files
18801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18802 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18803 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18804 cat >$CONFIG_STATUS <<_ACEOF
18806 # Generated by $as_me.
18807 # Run this file to recreate the current configuration.
18808 # Compiler output produced by configure, useful for debugging
18809 # configure, is in config.log if it exists.
18812 SHELL=\${CONFIG_SHELL-$SHELL}
18815 cat >>$CONFIG_STATUS <<\_ACEOF
18817 ## --------------------- ##
18818 ## M4sh Initialization. ##
18819 ## --------------------- ##
18821 # Be Bourne compatible
18822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18825 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18830 # Support unset when possible.
18831 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18837 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18838 { $as_unset LANG || test "${LANG+set}" != set; } ||
18839 { LANG=C; export LANG; }
18840 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18841 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18842 { LC_ALL=C; export LC_ALL; }
18843 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18844 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18845 { LC_TIME=C; export LC_TIME; }
18846 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18847 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18848 { LC_CTYPE=C; export LC_CTYPE; }
18849 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18850 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18851 { LANGUAGE=C; export LANGUAGE; }
18852 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18853 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18854 { LC_COLLATE=C; export LC_COLLATE; }
18855 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18856 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18857 { LC_NUMERIC=C; export LC_NUMERIC; }
18858 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18859 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18860 { LC_MESSAGES=C; export LC_MESSAGES; }
18863 # Name of the executable.
18864 as_me=`(basename "$0") 2>/dev/null ||
18865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18866 X"$0" : 'X\(//\)$' \| \
18867 X"$0" : 'X\(/\)$' \| \
18868 . : '\(.\)' 2>/dev/null ||
18870 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18871 /^X\/\(\/\/\)$/{ s//\1/; q; }
18872 /^X\/\(\/\).*/{ s//\1/; q; }
18875 # PATH needs CR, and LINENO needs CR and PATH.
18876 # Avoid depending upon Character Ranges.
18877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18880 as_cr_digits='0123456789'
18881 as_cr_alnum=$as_cr_Letters$as_cr_digits
18883 # The user is always right.
18884 if test "${PATH_SEPARATOR+set}" != set; then
18885 echo "#! /bin/sh" >conftest.sh
18886 echo "exit 0" >>conftest.sh
18887 chmod +x conftest.sh
18888 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18897 as_lineno_1=$LINENO
18898 as_lineno_2=$LINENO
18899 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18900 test "x$as_lineno_1" != "x$as_lineno_2" &&
18901 test "x$as_lineno_3" = "x$as_lineno_2" || {
18902 # Find who we are. Look in the path if we contain no path at all
18905 *[\\/]* ) as_myself=$0 ;;
18906 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18907 for as_dir in $PATH
18910 test -z "$as_dir" && as_dir=.
18911 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18916 # We did not find ourselves, most probably we were run as `sh COMMAND'
18917 # in which case we are not to be found in the path.
18918 if test "x$as_myself" = x; then
18921 if test ! -f "$as_myself"; then
18922 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18923 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18924 { (exit 1); exit 1; }; }
18926 case $CONFIG_SHELL in
18928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18929 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18932 test -z "$as_dir" && as_dir=.
18933 for as_base in sh bash ksh sh5; do
18936 if ("$as_dir/$as_base" -c '
18937 as_lineno_1=$LINENO
18938 as_lineno_2=$LINENO
18939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18940 test "x$as_lineno_1" != "x$as_lineno_2" &&
18941 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18942 CONFIG_SHELL=$as_dir/$as_base
18943 export CONFIG_SHELL
18944 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18953 # uniformly replaced by the line number. The first 'sed' inserts a
18954 # line-number line before each line; the second 'sed' does the real
18955 # work. The second script uses 'N' to pair each line-number line
18956 # with the numbered line, and appends trailing '-' during
18957 # substitution so that $LINENO is not a special case at line end.
18958 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18959 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18960 sed '=' <$as_myself |
18965 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18968 s,^['$as_cr_digits']*\n,,
18969 ' >$as_me.lineno &&
18970 chmod +x $as_me.lineno ||
18971 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18972 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18973 { (exit 1); exit 1; }; }
18975 # Don't try to exec as it changes $[0], causing all sort of problems
18976 # (the dirname of $[0] is not the place where we might find the
18977 # original and so on. Autoconf is especially sensible to this).
18979 # Exit status is that of the last command.
18984 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18985 *c*,-n*) ECHO_N= ECHO_C='
18987 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18988 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18991 if expr a : '\(a\)' >/dev/null 2>&1; then
18997 rm -f conf$$ conf$$.exe conf$$.file
18999 if ln -s conf$$.file conf$$ 2>/dev/null; then
19000 # We could just check for DJGPP; but this test a) works b) is more generic
19001 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19002 if test -f conf$$.exe; then
19003 # Don't use ln at all; we don't have any links
19008 elif ln conf$$.file conf$$ 2>/dev/null; then
19013 rm -f conf$$ conf$$.exe conf$$.file
19015 as_executable_p="test -f"
19017 # Sed expression to map a string onto a valid CPP name.
19018 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19020 # Sed expression to map a string onto a valid variable name.
19021 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19025 # We need space, tab and new line, in precisely that order.
19031 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
19035 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19036 # report actual input values of CONFIG_FILES etc. instead of their
19037 # values after options handling. Logging --version etc. is OK.
19041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19042 ## Running $as_me. ##
19047 This file was extended by PostgreSQL $as_me 8.1devel, which was
19048 generated by GNU Autoconf 2.53. Invocation command line was
19050 CONFIG_FILES = $CONFIG_FILES
19051 CONFIG_HEADERS = $CONFIG_HEADERS
19052 CONFIG_LINKS = $CONFIG_LINKS
19053 CONFIG_COMMANDS = $CONFIG_COMMANDS
19057 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19061 # Files that config.status was made for.
19062 if test -n "$ac_config_files"; then
19063 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19066 if test -n "$ac_config_headers"; then
19067 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19070 if test -n "$ac_config_links"; then
19071 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19074 if test -n "$ac_config_commands"; then
19075 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19078 cat >>$CONFIG_STATUS <<\_ACEOF
19081 \`$as_me' instantiates files from templates according to the
19082 current configuration.
19084 Usage: $0 [OPTIONS] [FILE]...
19086 -h, --help print this help, then exit
19087 -V, --version print version number, then exit
19088 -d, --debug don't remove temporary files
19089 --recheck update $as_me by reconfiguring in the same conditions
19090 --file=FILE[:TEMPLATE]
19091 instantiate the configuration file FILE
19092 --header=FILE[:TEMPLATE]
19093 instantiate the configuration header FILE
19095 Configuration files:
19098 Configuration headers:
19101 Configuration links:
19104 Configuration commands:
19107 Report bugs to <bug-autoconf@gnu.org>."
19110 cat >>$CONFIG_STATUS <<_ACEOF
19112 PostgreSQL config.status 8.1devel
19113 configured by $0, generated by GNU Autoconf 2.53,
19114 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19116 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19117 Free Software Foundation, Inc.
19118 This config.status script is free software; the Free Software Foundation
19119 gives unlimited permission to copy, distribute and modify it."
19123 cat >>$CONFIG_STATUS <<\_ACEOF
19124 # If no file are specified by the user, then we need to provide default
19125 # value. By we need to know if files were specified by the user.
19131 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19132 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19134 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19138 *) # This is not an option, so the user has probably given explicit
19140 ac_need_defaults=false;;
19144 # Handling of the options.
19146 cat >>$CONFIG_STATUS <<_ACEOF
19147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19148 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19149 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19151 cat >>$CONFIG_STATUS <<\_ACEOF
19152 --version | --vers* | -V )
19153 echo "$ac_cs_version"; exit 0 ;;
19155 # Conflict between --help and --header
19156 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19157 Try \`$0 --help' for more information." >&5
19158 echo "$as_me: error: ambiguous option: $1
19159 Try \`$0 --help' for more information." >&2;}
19160 { (exit 1); exit 1; }; };;
19161 --help | --hel | -h )
19162 echo "$ac_cs_usage"; exit 0 ;;
19163 --debug | --d* | -d )
19165 --file | --fil | --fi | --f )
19167 CONFIG_FILES="$CONFIG_FILES $1"
19168 ac_need_defaults=false;;
19169 --header | --heade | --head | --hea )
19171 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19172 ac_need_defaults=false;;
19174 # This is an error.
19175 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19176 Try \`$0 --help' for more information." >&5
19177 echo "$as_me: error: unrecognized option: $1
19178 Try \`$0 --help' for more information." >&2;}
19179 { (exit 1); exit 1; }; } ;;
19181 *) ac_config_targets="$ac_config_targets $1" ;;
19193 cat >>$CONFIG_STATUS <<\_ACEOF
19194 for ac_config_target in $ac_config_targets
19196 case "$ac_config_target" in
19197 # Handling of arguments.
19198 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19199 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
19200 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19201 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
19202 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19203 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19204 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
19205 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19206 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19207 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
19208 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
19209 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19210 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19211 { (exit 1); exit 1; }; };;
19215 # If the user did not use the arguments to specify the items to instantiate,
19216 # then the envvar interface is used. Set only those that are not.
19217 # We use the long form for the default assignment because of an extremely
19218 # bizarre bug on SunOS 4.1.3.
19219 if $ac_need_defaults; then
19220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19222 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19226 # Create a temporary directory, and hook for its removal unless debugging.
19229 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19230 trap '{ (exit 1); exit 1; }' 1 2 13 15
19233 # Create a (secure) tmp directory for tmp files.
19236 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19237 test -n "$tmp" && test -d "$tmp"
19240 tmp=$TMPDIR/cs$$-$RANDOM
19241 (umask 077 && mkdir $tmp)
19244 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19245 { (exit 1); exit 1; }
19250 cat >>$CONFIG_STATUS <<_ACEOF
19253 # CONFIG_FILES section.
19256 # No need to generate the scripts if there are no CONFIG_FILES.
19257 # This happens for instance when ./config.status config.h
19258 if test -n "\$CONFIG_FILES"; then
19259 # Protect against being on the right side of a sed subst in config.status.
19260 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19261 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19262 s,@SHELL@,$SHELL,;t t
19263 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19264 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19265 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19266 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19267 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19268 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19269 s,@exec_prefix@,$exec_prefix,;t t
19270 s,@prefix@,$prefix,;t t
19271 s,@program_transform_name@,$program_transform_name,;t t
19272 s,@bindir@,$bindir,;t t
19273 s,@sbindir@,$sbindir,;t t
19274 s,@libexecdir@,$libexecdir,;t t
19275 s,@datadir@,$datadir,;t t
19276 s,@sysconfdir@,$sysconfdir,;t t
19277 s,@sharedstatedir@,$sharedstatedir,;t t
19278 s,@localstatedir@,$localstatedir,;t t
19279 s,@libdir@,$libdir,;t t
19280 s,@includedir@,$includedir,;t t
19281 s,@oldincludedir@,$oldincludedir,;t t
19282 s,@infodir@,$infodir,;t t
19283 s,@mandir@,$mandir,;t t
19284 s,@build_alias@,$build_alias,;t t
19285 s,@host_alias@,$host_alias,;t t
19286 s,@target_alias@,$target_alias,;t t
19287 s,@DEFS@,$DEFS,;t t
19288 s,@ECHO_C@,$ECHO_C,;t t
19289 s,@ECHO_N@,$ECHO_N,;t t
19290 s,@ECHO_T@,$ECHO_T,;t t
19291 s,@LIBS@,$LIBS,;t t
19292 s,@configure_args@,$configure_args,;t t
19293 s,@build@,$build,;t t
19294 s,@build_cpu@,$build_cpu,;t t
19295 s,@build_vendor@,$build_vendor,;t t
19296 s,@build_os@,$build_os,;t t
19297 s,@host@,$host,;t t
19298 s,@host_cpu@,$host_cpu,;t t
19299 s,@host_vendor@,$host_vendor,;t t
19300 s,@host_os@,$host_os,;t t
19301 s,@PORTNAME@,$PORTNAME,;t t
19302 s,@docdir@,$docdir,;t t
19303 s,@enable_nls@,$enable_nls,;t t
19304 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
19305 s,@default_port@,$default_port,;t t
19306 s,@enable_shared@,$enable_shared,;t t
19307 s,@enable_rpath@,$enable_rpath,;t t
19308 s,@enable_debug@,$enable_debug,;t t
19310 s,@CFLAGS@,$CFLAGS,;t t
19311 s,@LDFLAGS@,$LDFLAGS,;t t
19312 s,@CPPFLAGS@,$CPPFLAGS,;t t
19313 s,@ac_ct_CC@,$ac_ct_CC,;t t
19314 s,@EXEEXT@,$EXEEXT,;t t
19315 s,@OBJEXT@,$OBJEXT,;t t
19319 s,@autodepend@,$autodepend,;t t
19320 s,@INCLUDES@,$INCLUDES,;t t
19321 s,@enable_thread_safety@,$enable_thread_safety,;t t
19322 s,@with_tcl@,$with_tcl,;t t
19323 s,@with_perl@,$with_perl,;t t
19324 s,@with_python@,$with_python,;t t
19325 s,@with_krb5@,$with_krb5,;t t
19326 s,@krb_srvtab@,$krb_srvtab,;t t
19327 s,@with_pam@,$with_pam,;t t
19328 s,@with_bonjour@,$with_bonjour,;t t
19329 s,@with_openssl@,$with_openssl,;t t
19330 s,@ELF_SYS@,$ELF_SYS,;t t
19331 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
19333 s,@FLEX@,$FLEX,;t t
19334 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
19335 s,@LN_S@,$LN_S,;t t
19337 s,@with_gnu_ld@,$with_gnu_ld,;t t
19338 s,@ld_R_works@,$ld_R_works,;t t
19339 s,@RANLIB@,$RANLIB,;t t
19340 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19341 s,@LORDER@,$LORDER,;t t
19343 s,@STRIP@,$STRIP,;t t
19344 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19345 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
19346 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
19347 s,@YACC@,$YACC,;t t
19348 s,@YFLAGS@,$YFLAGS,;t t
19349 s,@PERL@,$PERL,;t t
19350 s,@perl_archlibexp@,$perl_archlibexp,;t t
19351 s,@perl_privlibexp@,$perl_privlibexp,;t t
19352 s,@perl_useshrplib@,$perl_useshrplib,;t t
19353 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
19354 s,@PYTHON@,$PYTHON,;t t
19355 s,@python_version@,$python_version,;t t
19356 s,@python_configdir@,$python_configdir,;t t
19357 s,@python_includespec@,$python_includespec,;t t
19358 s,@python_libdir@,$python_libdir,;t t
19359 s,@python_libspec@,$python_libspec,;t t
19360 s,@python_additional_libs@,$python_additional_libs,;t t
19361 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
19362 s,@LIBOBJS@,$LIBOBJS,;t t
19363 s,@acx_pthread_config@,$acx_pthread_config,;t t
19364 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
19365 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
19366 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
19367 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
19368 s,@MSGFMT@,$MSGFMT,;t t
19369 s,@MSGMERGE@,$MSGMERGE,;t t
19370 s,@XGETTEXT@,$XGETTEXT,;t t
19371 s,@localedir@,$localedir,;t t
19372 s,@TCLSH@,$TCLSH,;t t
19373 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
19374 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
19375 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
19376 s,@TCL_LIBS@,$TCL_LIBS,;t t
19377 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
19378 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
19379 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
19380 s,@NSGMLS@,$NSGMLS,;t t
19381 s,@JADE@,$JADE,;t t
19382 s,@have_docbook@,$have_docbook,;t t
19383 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
19384 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
19385 s,@SGMLSPL@,$SGMLSPL,;t t
19386 s,@vpath_build@,$vpath_build,;t t
19391 cat >>$CONFIG_STATUS <<\_ACEOF
19392 # Split the substitutions into bite-sized pieces for seds with
19393 # small command number limits, like on Digital OSF/1 and HP-UX.
19394 ac_max_sed_lines=48
19395 ac_sed_frag=1 # Number of current file.
19396 ac_beg=1 # First line for current file.
19397 ac_end=$ac_max_sed_lines # Line after last line for current file.
19400 while $ac_more_lines; do
19401 if test $ac_beg -gt 1; then
19402 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19404 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19406 if test ! -s $tmp/subs.frag; then
19407 ac_more_lines=false
19409 # The purpose of the label and of the branching condition is to
19410 # speed up the sed processing (if there are no `@' at all, there
19411 # is no need to browse any of the substitutions).
19412 # These are the two extra sed commands mentioned above.
19414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19415 if test -z "$ac_sed_cmds"; then
19416 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19418 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19420 ac_sed_frag=`expr $ac_sed_frag + 1`
19422 ac_end=`expr $ac_end + $ac_max_sed_lines`
19425 if test -z "$ac_sed_cmds"; then
19428 fi # test -n "$CONFIG_FILES"
19431 cat >>$CONFIG_STATUS <<\_ACEOF
19432 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19435 - | *:- | *:-:* ) # input from stdin
19437 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19439 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19440 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19441 * ) ac_file_in=$ac_file.in ;;
19444 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19445 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19447 X"$ac_file" : 'X\(//\)[^/]' \| \
19448 X"$ac_file" : 'X\(//\)$' \| \
19449 X"$ac_file" : 'X\(/\)' \| \
19450 . : '\(.\)' 2>/dev/null ||
19452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19454 /^X\(\/\/\)$/{ s//\1/; q; }
19455 /^X\(\/\).*/{ s//\1/; q; }
19457 { case "$ac_dir" in
19458 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19462 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19463 case $as_mkdir_dir in
19464 # Skip DOS drivespec
19465 ?:) as_incr_dir=$as_mkdir_dir ;;
19467 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19468 test -d "$as_incr_dir" ||
19469 mkdir "$as_incr_dir" ||
19470 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19471 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19472 { (exit 1); exit 1; }; }
19479 if test "$ac_dir" != .; then
19480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19481 # A "../" for each directory in $ac_dir_suffix.
19482 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19484 ac_dir_suffix= ac_top_builddir=
19488 .) # No --srcdir option. We are building in place.
19490 if test -z "$ac_top_builddir"; then
19493 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19495 [\\/]* | ?:[\\/]* ) # Absolute path.
19496 ac_srcdir=$srcdir$ac_dir_suffix;
19497 ac_top_srcdir=$srcdir ;;
19498 *) # Relative path.
19499 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19500 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19502 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19504 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19505 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19506 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19507 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19511 if test x"$ac_file" != x-; then
19512 { echo "$as_me:$LINENO: creating $ac_file" >&5
19513 echo "$as_me: creating $ac_file" >&6;}
19516 # Let's still pretend it is `configure' which instantiates (i.e., don't
19517 # use $as_me), people would be surprised to read:
19518 # /* config.h. Generated by config.status. */
19519 if test x"$ac_file" = x-; then
19522 configure_input="$ac_file. "
19524 configure_input=$configure_input"Generated from `echo $ac_file_in |
19525 sed 's,.*/,,'` by configure."
19527 # First look for the input files in the build tree, otherwise in the
19529 ac_file_inputs=`IFS=:
19530 for f in $ac_file_in; do
19532 -) echo $tmp/stdin ;;
19534 # Absolute (can't be DOS-style, as IFS=:)
19535 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19536 echo "$as_me: error: cannot find input file: $f" >&2;}
19537 { (exit 1); exit 1; }; }
19540 if test -f "$f"; then
19543 elif test -f "$srcdir/$f"; then
19548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19549 echo "$as_me: error: cannot find input file: $f" >&2;}
19550 { (exit 1); exit 1; }; }
19553 done` || { (exit 1); exit 1; }
19555 cat >>$CONFIG_STATUS <<_ACEOF
19559 cat >>$CONFIG_STATUS <<\_ACEOF
19561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19562 s,@configure_input@,$configure_input,;t t
19563 s,@srcdir@,$ac_srcdir,;t t
19564 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19565 s,@top_srcdir@,$ac_top_srcdir,;t t
19566 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19567 s,@builddir@,$ac_builddir,;t t
19568 s,@abs_builddir@,$ac_abs_builddir,;t t
19569 s,@top_builddir@,$ac_top_builddir,;t t
19570 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19573 if test x"$ac_file" != x-; then
19574 mv $tmp/out $ac_file
19582 cat >>$CONFIG_STATUS <<\_ACEOF
19585 # CONFIG_HEADER section.
19588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19591 # ac_d sets the value in "#define NAME VALUE" lines.
19592 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19593 ac_dB='[ ].*$,\1#\2'
19596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19597 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19598 ac_uB='$,\1#\2define\3'
19602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19603 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19605 - | *:- | *:-:* ) # input from stdin
19607 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19609 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19611 * ) ac_file_in=$ac_file.in ;;
19614 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19615 echo "$as_me: creating $ac_file" >&6;}
19617 # First look for the input files in the build tree, otherwise in the
19619 ac_file_inputs=`IFS=:
19620 for f in $ac_file_in; do
19622 -) echo $tmp/stdin ;;
19624 # Absolute (can't be DOS-style, as IFS=:)
19625 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19626 echo "$as_me: error: cannot find input file: $f" >&2;}
19627 { (exit 1); exit 1; }; }
19630 if test -f "$f"; then
19633 elif test -f "$srcdir/$f"; then
19638 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19639 echo "$as_me: error: cannot find input file: $f" >&2;}
19640 { (exit 1); exit 1; }; }
19643 done` || { (exit 1); exit 1; }
19644 # Remove the trailing spaces.
19645 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19650 # `conftest.undefs', that substitutes the proper values into
19651 # config.h.in to produce config.h. The first handles `#define'
19652 # templates, and the second `#undef' templates.
19653 # And first: Protect against being on the right side of a sed subst in
19654 # config.status. Protect against being in an unquoted here document
19655 # in config.status.
19656 rm -f conftest.defines conftest.undefs
19657 # Using a here document instead of a string reduces the quoting nightmare.
19658 # Putting comments in sed scripts is not portable.
19660 # `end' is used to avoid that the second main sed command (meant for
19661 # 0-ary CPP macros) applies to n-ary macro definitions.
19662 # See the Autoconf documentation for `clear'.
19663 cat >confdef2sed.sed <<\_ACEOF
19668 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19670 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19673 # If some macros were called several times there might be several times
19674 # the same #defines, which is useless. Nevertheless, we may not want to
19675 # sort them, since we want the *last* AC-DEFINE to be honored.
19676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19678 rm -f confdef2sed.sed
19680 # This sed command replaces #undef with comments. This is necessary, for
19681 # example, in the case of _POSIX_SOURCE, which is predefined and required
19682 # on some systems where configure will not decide to define it.
19683 cat >>conftest.undefs <<\_ACEOF
19684 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19687 # Break up conftest.defines because some shells have a limit on the size
19688 # of here documents, and old seds have small limits too (100 cmds).
19689 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19690 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19691 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19692 echo ' :' >>$CONFIG_STATUS
19693 rm -f conftest.tail
19694 while grep . conftest.defines >/dev/null
19696 # Write a limited-size here document to $tmp/defines.sed.
19697 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19698 # Speed up: don't consider the non `#define' lines.
19699 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19700 # Work around the forget-to-reset-the-flag bug.
19701 echo 't clr' >>$CONFIG_STATUS
19702 echo ': clr' >>$CONFIG_STATUS
19703 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19705 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19707 mv $tmp/out $tmp/in
19709 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19710 rm -f conftest.defines
19711 mv conftest.tail conftest.defines
19713 rm -f conftest.defines
19714 echo ' fi # egrep' >>$CONFIG_STATUS
19715 echo >>$CONFIG_STATUS
19717 # Break up conftest.undefs because some shells have a limit on the size
19718 # of here documents, and old seds have small limits too (100 cmds).
19719 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19720 rm -f conftest.tail
19721 while grep . conftest.undefs >/dev/null
19723 # Write a limited-size here document to $tmp/undefs.sed.
19724 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19725 # Speed up: don't consider the non `#undef'
19726 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19727 # Work around the forget-to-reset-the-flag bug.
19728 echo 't clr' >>$CONFIG_STATUS
19729 echo ': clr' >>$CONFIG_STATUS
19730 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19732 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19734 mv $tmp/out $tmp/in
19736 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19737 rm -f conftest.undefs
19738 mv conftest.tail conftest.undefs
19740 rm -f conftest.undefs
19742 cat >>$CONFIG_STATUS <<\_ACEOF
19743 # Let's still pretend it is `configure' which instantiates (i.e., don't
19744 # use $as_me), people would be surprised to read:
19745 # /* config.h. Generated by config.status. */
19746 if test x"$ac_file" = x-; then
19747 echo "/* Generated by configure. */" >$tmp/config.h
19749 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19751 cat $tmp/in >>$tmp/config.h
19753 if test x"$ac_file" != x-; then
19754 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19756 echo "$as_me: $ac_file is unchanged" >&6;}
19758 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19760 X"$ac_file" : 'X\(//\)[^/]' \| \
19761 X"$ac_file" : 'X\(//\)$' \| \
19762 X"$ac_file" : 'X\(/\)' \| \
19763 . : '\(.\)' 2>/dev/null ||
19765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19767 /^X\(\/\/\)$/{ s//\1/; q; }
19768 /^X\(\/\).*/{ s//\1/; q; }
19770 { case "$ac_dir" in
19771 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19775 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19776 case $as_mkdir_dir in
19777 # Skip DOS drivespec
19778 ?:) as_incr_dir=$as_mkdir_dir ;;
19780 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19781 test -d "$as_incr_dir" ||
19782 mkdir "$as_incr_dir" ||
19783 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19784 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19785 { (exit 1); exit 1; }; }
19791 mv $tmp/config.h $ac_file
19795 rm -f $tmp/config.h
19797 # Run the commands associated with the file.
19799 src/include/pg_config.h )
19800 # Update timestamp for pg_config.h (see Makefile.global)
19801 echo >src/include/stamp-h
19806 cat >>$CONFIG_STATUS <<\_ACEOF
19809 # CONFIG_LINKS section.
19812 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19813 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19814 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19816 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19817 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19819 if test ! -r $srcdir/$ac_source; then
19820 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19821 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19822 { (exit 1); exit 1; }; }
19826 # Make relative symlinks.
19827 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19828 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19829 X"$ac_dest" : 'X\(//\)[^/]' \| \
19830 X"$ac_dest" : 'X\(//\)$' \| \
19831 X"$ac_dest" : 'X\(/\)' \| \
19832 . : '\(.\)' 2>/dev/null ||
19834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19836 /^X\(\/\/\)$/{ s//\1/; q; }
19837 /^X\(\/\).*/{ s//\1/; q; }
19839 { case "$ac_dest_dir" in
19840 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19843 as_dummy="$ac_dest_dir"
19844 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19845 case $as_mkdir_dir in
19846 # Skip DOS drivespec
19847 ?:) as_incr_dir=$as_mkdir_dir ;;
19849 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19850 test -d "$as_incr_dir" ||
19851 mkdir "$as_incr_dir" ||
19852 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19853 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19854 { (exit 1); exit 1; }; }
19861 if test "$ac_dest_dir" != .; then
19862 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19863 # A "../" for each directory in $ac_dir_suffix.
19864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19866 ac_dir_suffix= ac_top_builddir=
19870 .) # No --srcdir option. We are building in place.
19872 if test -z "$ac_top_builddir"; then
19875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19877 [\\/]* | ?:[\\/]* ) # Absolute path.
19878 ac_srcdir=$srcdir$ac_dir_suffix;
19879 ac_top_srcdir=$srcdir ;;
19880 *) # Relative path.
19881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19884 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19886 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19887 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19888 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19889 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19893 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19894 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19897 # Make a symlink if possible; otherwise try a hard link.
19898 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19899 ln $srcdir/$ac_source $ac_dest ||
19900 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19901 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19902 { (exit 1); exit 1; }; }
19905 cat >>$CONFIG_STATUS <<\_ACEOF
19908 # CONFIG_COMMANDS section.
19910 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19911 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19912 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19913 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19914 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19915 X"$ac_dest" : 'X\(//\)[^/]' \| \
19916 X"$ac_dest" : 'X\(//\)$' \| \
19917 X"$ac_dest" : 'X\(/\)' \| \
19918 . : '\(.\)' 2>/dev/null ||
19920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19922 /^X\(\/\/\)$/{ s//\1/; q; }
19923 /^X\(\/\).*/{ s//\1/; q; }
19927 if test "$ac_dir" != .; then
19928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19929 # A "../" for each directory in $ac_dir_suffix.
19930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19932 ac_dir_suffix= ac_top_builddir=
19936 .) # No --srcdir option. We are building in place.
19938 if test -z "$ac_top_builddir"; then
19941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19943 [\\/]* | ?:[\\/]* ) # Absolute path.
19944 ac_srcdir=$srcdir$ac_dir_suffix;
19945 ac_top_srcdir=$srcdir ;;
19946 *) # Relative path.
19947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19950 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19952 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19953 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19954 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19955 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19958 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19959 echo "$as_me: executing $ac_dest commands" >&6;}
19961 check_win32_symlinks )
19962 # Links sometimes fail undetected on Mingw -
19963 # so here we detect it and warn the user
19964 for FILE in $CONFIG_LINKS
19966 # test -e works for symlinks in the MinGW console
19967 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19968 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19975 cat >>$CONFIG_STATUS <<\_ACEOF
19977 { (exit 0); exit 0; }
19979 chmod +x $CONFIG_STATUS
19980 ac_clean_files=$ac_clean_files_save
19983 # configure is writing to config.log, and then calls config.status.
19984 # config.status does its own redirection, appending to config.log.
19985 # Unfortunately, on DOS this fails, as config.log is still kept open
19986 # by configure, so config.status won't be able to write to it; its
19987 # output is simply discarded. So we exec the FD to /dev/null,
19988 # effectively closing config.log, so it can be properly (re)opened and
19989 # appended to by config.status. When coming back to configure, we
19990 # need to make the FD available again.
19991 if test "$no_create" != yes; then
19994 $SHELL $CONFIG_STATUS || ac_cs_success=false
19996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19997 # would make configure fail if this is the last instruction.
19998 $ac_cs_success || { (exit 1); exit 1; }